1 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
6 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/tests/legacy_password_test.c (vectors): Make static.
9 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
11 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
15 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
17 * grub-core/fs/proc.c: Allow \0 in proc files.
19 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
21 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
23 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
25 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
27 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
29 * grub-core/fs/ext2.c: Remove variable length arrays.
31 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
33 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
36 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
38 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
39 * grub-core/disk/cryptodisk.c: Likewise.
40 * grub-core/disk/geli.c: Likewise.
41 * grub-core/disk/luks.c: Likewise.
43 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
45 * grub-core/tests/legacy_password_test.c: New test.
46 * grub-core/commands/legacycfg.c: Remove variable length arrays.
48 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
50 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
52 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
54 * grub-core/tests/pbkdf2_test.c: New test.
56 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
58 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
60 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
62 * grub-core/io/lzopio.c: Remove variable length arrays.
64 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
66 * include/grub/crypto.h: Add maximums on hash size and cipher block
69 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
71 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
73 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
75 * grub-core/tests/xnu_uuid_test.c: New test.
77 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
79 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
82 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
84 * grub-core/commands/hashsum.c: Remove variable length arrays.
86 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
88 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
90 * tests/grub_func_test.in: Increase memory allocation.
92 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
94 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
95 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
98 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
100 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
101 (grub_util_get_fd_size_os): ...this.
102 (grub_hostdisk_flush_initial_buffer): New empty function.
104 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
106 * grub-core/gensyminfo.sh.in: Handle the case of portable output
107 without --defined-only.
109 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
111 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
112 rip-relative addressing in prologue.
114 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
116 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
117 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
119 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
121 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
122 Add missing semicolon.
124 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
126 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
128 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
130 * configure.ac: Check for lzma.h for enabling liblzma and allow
133 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
135 Add missing includes of loader.h.
137 2013-11-11 Fam Zheng <famcool@gmail.com>
139 * util/grub.d/30_os-prober.in: Add minix entry.
141 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
143 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
144 right buffer for temporary load.
146 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
148 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
150 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
152 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
155 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
157 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
159 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
161 (LzmaDec_InitDicAndState): Make static.
163 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
165 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
167 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
169 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
171 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
173 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
175 * docs/grub-dev.texi: Replace bzr references with git ones.
177 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
179 * docs/grub.texi (Simple configuration): Remove reference to
180 grub-reboot from saved default entry description - grub-default
181 does not use it anymore.
183 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
185 * configure.ac: Make efiemu test cflags match the cflags efiemu is
188 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
190 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
192 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
194 Fix grub_machine_fini bitrot.
196 Reported by: Glenn Washburn.
198 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
200 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
202 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
204 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
206 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
209 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
211 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
212 Add -march=core2 when testing compile of efiemu64.
214 Thanks Andrey Borzenkov for spotting this.
216 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
218 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
219 XEN PV environment and load kernels.
221 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
223 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
224 * grub-core/loader/multiboot_mbi2.c: Likewise.
226 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
228 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
231 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
233 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
235 Tested by: Denis 'GNUtoo' Carikli.
237 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
239 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
241 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
243 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
244 Use to get rounded angle rather than truncated.
246 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
248 * grub-core/term/serial.c: Add option for enabling/disabling
249 RTS/CTS flow control.
251 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
253 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
256 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
258 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
259 Use grub_fatal rather than divide by zero.
260 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
262 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
264 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
266 (grub_fixed_fsf_divide): Likewise.
268 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
270 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
271 division by-zero and senseless negative divisions.
273 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
275 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
276 division by-zero and senseless negative divisions.
277 (circprog_set_property): Don't accept negative num_ticks.
279 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
281 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
282 division by-zero and senseless negative divisions.
284 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
286 * configure.ac: Use elf_*_fbsd on kfreebsd.
288 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
290 * grub-core/tests/div_test.c: New test.
292 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
294 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
295 * grub-core/gfxmenu/gui_canvas.c: Likewise.
296 * grub-core/gfxmenu/view.c: Likewise.
297 * grub-core/video/fb/video_fb.c: Introduce new functions:
298 grub_video_set_area_status, grub_video_get_area_status,
299 grub_video_set_region, grub_video_get_region.
300 * grub-core/video/bochs.c: Likewise.
301 * grub-core/video/capture.c: Likewise.
302 * grub-core/video/video.c: Likewise.
303 * grub-core/video/cirrus.c: Likewise.
304 * grub-core/video/efi_gop.c: Likewise.
305 * grub-core/video/efi_uga.c: Likewise.
306 * grub-core/video/emu/sdl.c: Likewise.
307 * grub-core/video/radeon_fuloong2e.c: Likewise.
308 * grub-core/video/sis315pro.c: Likewise.
309 * grub-core/video/sm712.c: Likewise.
310 * grub-core/video/i386/pc/vbe.c: Likewise.
311 * grub-core/video/i386/pc/vga.c: Likewise.
312 * grub-core/video/ieee1275.c: Likewise.
313 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
314 * include/grub/video.h: Likewise.
315 * include/grub/video_fb.h: Likewise.
316 * include/grub/fbfill.h: Updated render_target structure.
317 grub_video_rect_t viewport, region, area
318 int area_offset_x, area_offset_y, area_enabled
319 * include/grub/gui.h: New helper function
320 grub_video_bounds_inside_region.
321 * docs/grub-dev.texi: Added information about new functions.
323 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
325 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
328 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
330 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
332 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
334 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
336 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
337 simple division on arm and ia64.
339 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
341 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
344 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
346 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
348 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
350 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
351 prefix symbol, not @.
353 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
355 * INSTALL: Add note about older gcc and clang.
357 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
359 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
361 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
363 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
364 NULL pointer dereference.
366 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
368 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
371 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
373 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
376 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
378 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
380 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
381 * grub-core/disk/geli.c (ascii2hex): Likewise.
383 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
385 * configure.ac: Run linker tests without -Werror.
386 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
387 Change all occurences of -static-libgcc resp -lgcc to
388 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
390 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
392 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
394 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
396 Allow compiling with clang (not really supported though).
398 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
400 * configure.ac: Add -no-integrated-as when using clangfor asm files.
401 Add -mrtd -mregparm=3 on i386 when not using clang.
402 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
404 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
406 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
408 * grub-core/lib/reed_solomon.c: Likewise.
409 * include/grub/i386/gdb.h: Likewise.
410 * include/grub/i386/pc/int.h: Likewise.
411 * include/grub/i386/pc/pxe.h: Likewise.
412 * include/grub/ieee1275/ieee1275.h: Likewise.
414 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
416 Import libgcrypt 1.5.3.
418 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
420 * configure.ac: Don't add -Wcast-align on x86.
422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
424 * configure.ac: Add -freg-struct-return on all platforms that
427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
429 * acinclude.m4: Use -Werror on parameter tests.
430 * configure.ac: Likewise.
432 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
434 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
436 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
438 * configure.ac: Check that -malign-loops works rather than assuming that
439 either -falign-loops or -malign-loops work.
441 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
443 * configure.ac: Remove -fnested-functions. We don't need it anymore.
445 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
447 * configure.ac: Prevent cflags leaking to subsequent tests by always
448 resetting cflags to target_cflags in target tests.
450 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
452 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
455 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
457 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
459 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
461 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
465 * grub-core/normal/cmdline.c (grub_cmdline_get):
466 Remove nested functions.
468 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
470 * tests/test_sha512sum.in: Make it work on emu.
472 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
474 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
476 (grub_bidi_line_logical_to_visual): Likewise.
478 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
480 Remove vestiges of -Wunsafe-loop-optimisations.
482 * conf/Makefile.common (CFLAGS_GNULIB): Remove
483 -Wno-unsafe-loop-optimisations.
484 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
486 * grub-core/io/gzio.c: Likewise.
487 * grub-core/script/parser.y: Likewise.
488 * grub-core/script/yylex.l: Likewise.
489 * util/grub-mkfont.c: Likewise.
491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
493 * util/grub-mkfont.c (process_cursive): Remove nested function.
495 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
497 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
498 (grub_boot_time): Likewise.
500 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
502 * include/grub/symbol.h (FUNCTION): Use @function rather than
504 (VARIABLE): Likewise.
506 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
508 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
510 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
512 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
513 (parse_dhcp_vendor): Likewise.
515 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
517 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
519 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
521 * grub-core/gettext/gettext.c (main_context), (secondary_context):
522 Define after defining type and not before.
524 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
526 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
528 (grub_gcm_decrypt): Likewise.
529 (algo_decrypt): Likewise.
530 (grub_zfs_decrypt_real): Transform error type.
532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
534 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
536 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
538 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
539 (grub_usbms_cbi_reset): Likewise.
540 (grub_usbms_bo_reset): Likewise.
541 (grub_usbms_reset): Likewise.
542 (grub_usbms_attach): Likewise.
543 (grub_usbms_transfer_cbi): Likewise.
545 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
547 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
548 "checksum = checksum;".
550 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
552 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
555 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
557 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
560 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
562 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
564 (grub_ehci_fini_hw): Likewise.
565 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
567 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
569 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
570 return grub_usb_err_t for cosistency. All users updated.
572 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
574 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
577 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
578 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
580 Issue separate DNS queries for ipv4 and ipv6
582 Adding multiple questions on a single DNS query is not supportted by
583 most DNS servers. This patch issues two separate DNS queries
584 sequentially for ipv4 and then for ipv6.
586 Fixes: https://savannah.gnu.org/bugs/?39710
588 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
589 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
590 * (grub_net_dns_lookup): Now using separated dns packages.
591 * (grub_cmd_nslookup): Add error condition.
592 * (grub_cmd_list_dns): Print DNS option.
593 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
594 --prefer-ipv4, and --prefer-ipv6.
595 * include/grub/net.h (grub_dns_option_t): New enum.
596 * (grub_net_network_level_address): option added.
598 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
600 * grub-core/video/fb/video_fb.c: Merge two blit functions
603 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
605 * grub-core/term/terminfo.c: Add sequences for home and end.
607 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
609 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
612 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
614 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
617 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
619 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
622 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
624 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
627 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
629 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
631 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
633 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
635 * docs/grub.texi: Document usage of menuentry id.
637 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
639 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
641 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
643 * grub-core/commands/i386/nthibr.c: New command.
645 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
647 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
649 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
651 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
654 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
656 Support GRUB_DISABLE_SUBMENU config.
658 Inspired by patch from Prarit Bhargava.
660 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
662 * docs/grub.texi: Mention RSA support.
664 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
666 * grub-core/commands/verify.c: Add RSA support.
668 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
670 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
671 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
672 device is known to be ATAPI.
674 2013-11-03 Mike Frysinger <vapier>
676 * configure.ac: Don't add target-prefix.
678 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
680 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
683 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
685 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
686 if language is English.
688 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
690 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
692 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
694 * configure.ac: Don't add -m32/-m64 on emu.
698 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
699 broken linux headers.
701 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
703 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
705 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
707 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
708 Reed-Solomon recovery if more than half of redundancy info is 0.
710 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
712 * util/grub-mount.c: Handle symlinks to directories.
714 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
716 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
717 find_file recursively for symlink.
719 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
721 * tests/util/grub-shell.in: Copy themes.
723 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
725 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
727 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
729 * configure.ac: Use 0x8000 for address instead of 8000.
731 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
733 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
736 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
738 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
741 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
743 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
745 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
747 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
748 file_progress_read_hook.
749 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
751 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
753 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
756 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
758 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
760 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
762 Rewrite blocklist functions in order to get progress when
763 reading large extents and decrease amount of blocklist hook calls.
765 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
767 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
770 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
772 Support --base-clock for serial command to handle weird cards with
773 non-standard base clock.
775 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
777 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
779 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
780 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
781 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
782 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
783 + strcpy rather than strncpy.
785 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
787 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
788 (check_pool_label): Likewise. Fixes overflow.
789 (nvlist_find_value): Fix comparison.
791 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
793 * include/grub/misc.h (grub_strcat): Removed. All users changed to
794 more appropriate functions.
796 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
798 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
801 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
803 * util/grub-mkrescue.in: Do not use UUID search on EFI.
805 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
807 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
810 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
812 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
814 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
816 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
817 (initialize_tables): reset tl and td to NULL after freeing.
819 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
821 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
823 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
825 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
828 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
830 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
832 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
834 * grub-core/loader/multiboot.c: Add support for multiboot kernels
837 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
839 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
840 a page in protected space.
842 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
844 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
845 allocate space for zero-sized modules.
847 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
849 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
851 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
853 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
855 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
857 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
858 safeguards. Fixes a crash with i386/pc/console.c.
860 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
862 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
863 and grub_hostfs_init.
865 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
867 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
868 windows method on other platforms without good stat as well.
870 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
872 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
874 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
876 Make / in btrfs refer to real root, not the default volume.
877 Modify mkrelpath to work even if device is mounted with subvolid option.
879 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
881 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
883 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
886 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
888 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
891 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
893 * docs/autoiso.cfg: New file.
895 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
897 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
898 COND_GRUB_PE2ELF conditions.
900 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
902 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
903 "vnd", "rd" and "fd" disks.
905 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
907 Move grub_disk_write out of kernel into disk.mod.
909 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
911 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
914 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
916 * grub-core/kern/misc.c (grub_abort): Make static
918 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
920 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
921 transform invalid unicode codepoints.
923 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
925 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
928 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
930 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
932 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
934 Consolidate cpuid code.
936 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
938 Move cpuid code to cpuid.h and TSC code to tsc.c.
940 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
942 * util/grub.d/00_header.in: Don't use LANG if it's not set.
944 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
946 * util/grub-mkconfig.in: Replace $0 with $self.
947 * util/grub-reboot.in: Likewise.
948 * util/grub-set-default.in: Likewise.
950 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
952 * docs/osdetect.cfg: New file.
954 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
956 * tests/util/grub-shell.in: Add new --debug option.
958 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
960 * tests/test_unset.in: New test.
962 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
964 * tests/test_sha512sum.in: New test.
966 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
968 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
969 * include/grub/misc.h: Remove strncat.
970 * grub-core/lib/posix_wrap/string.h: Likewise.
972 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
974 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
975 Try to handle more than 0xFFFF packets.
976 Reported by: Bernhard Übelacker <bernhardu>.
977 He also spotted few overflows in first version of this patch.
979 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
981 * tests/date_unit_test.c: New test.
983 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
985 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
986 of first three years after start of validity of unixtime.
988 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
990 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
991 division as the one making more sense.
992 (update_screen): Likewise.
993 (complete): Likewise.
995 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
997 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
999 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1001 Make char and string width grub_size_t rather than grub_ssize_t.
1003 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1005 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
1007 (grub_history_replace): Likewise.
1009 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1011 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
1014 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1016 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
1019 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1021 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
1022 Use unsigned divisions rather than signed variants.
1024 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1026 * grub-core/video/readers/png.c (grub_png_convert_image): Use
1027 unsigned arithmetics.
1030 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1032 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
1034 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1036 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
1037 rather than signed one.
1038 (recovery): Likewise.
1040 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1042 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
1044 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1046 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
1049 2013-10-25 Jon McCune <jonmccune@google.com>
1051 * docs/grub.texi: Cleanup security documentation around signatures.
1053 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1055 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
1057 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1059 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
1062 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1064 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
1065 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
1066 functions when compiling for kernel.
1068 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1070 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
1071 unsigned long long when using %llu.
1073 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1075 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
1076 terminal after updating progress.
1078 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1080 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
1081 argument. We don't disable Gate A20 in this code.
1083 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1085 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
1086 Conceptually based on change in branch "vbe-on-coreboot".
1088 2013-10-24 Robert Millan <rmh@gnu.org>
1090 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
1091 numeric constants with their symbolic equivalent.
1092 Taken from branch "vbe-on-coreboot".
1094 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1096 * docs/grub.texi: Fix ordering and use pxref rather than xref.
1098 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1100 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
1101 divmod64 for offset division.
1103 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1105 Rename .bzrignore to .gitignore. Add "*.o" rule.
1107 * .bzrignore: Renamed to...
1108 * .gitignore: ...this.
1110 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1112 Add new progress module that displays the load progress of files.
1114 * grub-core/lib/progress.c: New file.
1115 * grub-core/Makefile.core.def (progress): New module.
1116 * grub-core/kern/file.c (grub_file_open): File name added.
1117 * (grub_file_read): Progress hook added.
1118 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
1119 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
1120 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
1121 * include/grub/file.h (struct grub_file): Add progress module members.
1122 * include/grub/term.h (struct grub_term_output): Likewise.
1123 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
1124 Terminal velocity added.
1125 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
1126 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
1127 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
1128 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
1129 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
1130 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
1131 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
1132 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
1133 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
1134 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
1135 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
1136 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
1138 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1140 Verify signatures of signatures unless --skip-sig is specified.
1142 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1144 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
1147 Saves 70 bytes on compressed image.
1149 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1151 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
1154 Saves 10 bytes on compressed image.
1156 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1158 * grub-core/kern/misc.c (grub_isprint): Move to ...
1159 * include/grub/misc.h (grub_isprint): ... here. Make inline.
1161 Saves 20 bytes on compressed image due to remving exporting.
1163 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1165 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
1167 Saves 5 bytes on compressed image.
1169 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1171 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
1174 Saves 379 bytes on compressed image.
1176 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1178 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
1180 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1182 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
1184 Saves 40 bytes on compressed image.
1186 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1188 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
1189 mask rather than 64-bit type.
1191 Saves 20 bytes on compressed image.
1193 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1195 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
1196 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
1198 Saves 273 bytes on compressed image.
1200 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1202 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
1203 variable length arrays.
1205 Saves 50 bytes on compressed image.
1207 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1209 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1211 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1213 * grub-core/fs/ufs.c: Remove variable length arrays.
1215 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1217 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
1219 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1221 * grub-core/fs/zfs.c: Remove variable length arrays.
1222 Reduces zfs.mod by 160 bytes (208 compressed).
1224 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1226 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
1228 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1230 * grub-core/net/arp.c: Remove variable length arrays.
1231 * grub-core/net/bootp.c: Likewise.
1232 * grub-core/net/dns.c: Likewise.
1233 * grub-core/net/icmp6.c: Likewise.
1234 * grub-core/net/net.c: Likewise.
1236 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1238 * grub-core/fs/ntfs.c: Remove variable length arrays.
1239 Increases ntfs.mod by 64 bytes (but decreases by 3 when
1242 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1244 * grub-core/fs/hfs.c: Remove variable length arrays.
1245 Reduces hfs.mod by 8 bytes (52 compressed).
1247 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1249 * grub-core/fs/udf.c: Remove variable length arrays.
1250 Increases udf.mod by 128 bytes (but decreases by 13 when
1253 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1255 * grub-core/fs/iso9660.c: Remove variable length arrays.
1256 Increases iso9660.mod by 200 bytes (but decreases by 79 when
1259 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1261 * grub-core/fs/nilfs2.c: Remove variable length arrays.
1262 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
1265 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1267 * grub-core/fs/xfs.c: Remove variable length arrays.
1268 Reduces xfs.mod by 40 bytes (43 compressed).
1270 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1272 * grub-core/fs/fshelp.c: Remove variable length arrays.
1273 Reduces fshelp.mod by 116 bytes (23 compressed).
1275 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1277 * grub-core/normal/completion.c: Remove variable length arrays.
1278 * grub-core/normal/menu_entry.c: Likewise.
1280 Reduces normal.mod by 496 bytes.
1282 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1284 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
1285 by 356 bytes (158 compressed).
1287 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1289 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
1290 by 364 bytes (169 compressed).
1292 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1294 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
1295 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
1296 * include/grub/types.h (grub_unaligned_uint64_t): New type.
1298 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1300 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
1301 bitmasks to small structures of size chosen to fit in registers.
1303 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1305 * conf/Makefile.common: Use -freg-struct-return on i386. This
1306 decreases code size and improves performance.
1308 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1310 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
1312 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1314 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
1316 Simplify expressions to save around 256 bytes in kernel.img.
1317 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
1319 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1321 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
1322 Use GRUB_UTIL_FD_O_* rather than O_*.
1324 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1326 Add haiku-specific functions.
1328 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1330 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
1332 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1334 Move stat () and device mode checking into OS-dependent files as
1335 long as performance doesn't suffer.
1337 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1339 Split make_system_path_relative_to_its_root into separate file
1340 relpath.c from getroot.c as it's common between unix and haiku
1341 but otherwise haiku doesn't use any functions from unix getroot.c.
1343 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1345 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
1347 (grub_util_is_special_file): Likewise.
1349 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1351 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
1352 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
1354 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1356 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
1357 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
1359 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1361 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
1362 (load_image): Likewise.
1364 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1366 * util/grub-render-label.c: Move backend part to ...
1367 * util/render-label.c: ... here.
1369 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1371 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
1372 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
1374 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1376 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
1378 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1380 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
1381 CD-ROM in case when it's declared as having subpartitions.
1383 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1385 Don't add -lm on haiku.
1387 * configure.ac: Define BUILD_LIBM to -lm on most platforms
1389 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
1392 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1394 * configure.ac: Use -melf_*_haiku as target on haiku.
1396 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1398 * Makefile.util.def: Add util/setup.c to extra_dist.
1400 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1402 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
1403 unknown types through.
1405 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1407 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
1408 (grub_util_check_char_device): Likewise.
1409 * include/grub/emu/getroot.h: Likewise.
1411 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1413 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
1414 memset rather than inline static function.
1416 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1418 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
1419 not doing embedded decompressor.
1421 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1423 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
1425 * grub-core/kern/disk.c: Likewise.
1426 * grub-core/kern/misc.c: Likewise.
1427 * include/grub/parser.h: Likewise.
1428 * include/grub/script_sh.h: Likewise.
1429 * include/grub/zfs/zfs.h: Likewise.
1431 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1433 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
1435 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1437 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
1438 defined before trying to use it.
1440 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1442 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
1445 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1447 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
1448 Use __unused__ rather than __used__ on gcc < 3.2.
1450 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1452 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
1454 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
1456 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1458 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
1460 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1462 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
1463 * include/grub/emu/misc.h: Likewise.
1465 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1467 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
1470 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
1472 * grub-core/tests/checksums.h: Regenerated due to progress bar
1473 get_minimal_size changes.
1475 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
1477 Added `tr' command support.
1479 * grub-core/commands/tr.c: New file.
1480 * grub-core/Makefile.core.def: Build rules for new module.
1482 * tests/grub_cmd_tr.in: New test.
1483 * Makefile.util.def: Build rules for new test.
1485 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1487 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
1489 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1491 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
1492 * docs/gurb.texi: Likewise.
1494 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1496 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
1497 Pixmap highlighted section with east and west slices was displayed
1498 incorrectly due to negative width of the central slice.
1500 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1502 * docs/grub.texi: Graphical options information update.
1503 Removed outdated. Updated current. Inserted missed.
1505 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1507 * docs/grub.texi: Mention few new platform-specific commands.
1509 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1511 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
1512 currently used so this doesn't really have any effect.
1513 Reported by: Douglas Ray <dougray>
1515 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1517 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
1518 compilation but prevents gcc from displaying messages in non-Latin
1520 * conf/Makefile.common: Likewise.
1522 2013-10-16 Hiroyuki YAMAMORI
1524 Handle Japanese special keys.
1525 Reported by: Hiroyuki YAMAMORI.
1526 Codes supplied by: Hiroyuki YAMAMORI.
1528 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1530 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
1532 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1534 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
1535 * docs/grub.texi: Likewise.
1537 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1539 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
1540 value in case of incomplete read.
1541 (grub_util_fd_write): Likewise.
1543 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1545 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
1547 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1549 * util/grub-editenv.c (create_envblk_file): More from here ...
1550 * util/editenv.c (grub_util_create_envblk_file): ... to here.
1552 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1554 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
1555 canonicalize file name before doing the rest.
1557 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1559 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
1562 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1564 Define grub_util_is_directory/regular/special_file and
1565 use OS-dependent versions rather than to rely on stat().
1567 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1569 * util/grub-mkimage.c: Move backend part to ...
1570 * util/mkimage.c: ... here.
1572 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1574 Allow compilation with mingw64 albeit with warnings due to lack of
1577 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
1578 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
1579 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
1580 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
1582 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
1584 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1586 Remove leftover references to some of the system headers.
1588 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1590 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
1593 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1595 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
1598 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1600 Split out blocklist retrieving from setup.c to
1601 grub-core/osdep/blocklist.c and add windows implementation since
1602 generic version doesn't work on NTFS on Windows due to aggressive
1605 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1607 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
1610 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1612 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
1613 Cut tailing newline. Remove arbitrary limitation. Always use
1614 grub_util_tchar_to_utf8.
1616 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1618 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
1619 * tests/printf_unit_test.c (printf_test): Add %% tests.
1620 Reported by: Paulo Flabiano Smorigo.
1622 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1624 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
1627 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1629 * configure.ac: Check for nvlist_lookup_string in nvpair since we
1630 use nvlist_lookup_string and don't use nvlist_print.
1632 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1634 Add wrappers around rename, unlink, mkdir, opendir, readdir and
1635 closedir to handle filename charset translation.
1637 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1639 * include/grub/emu/hostdisk.h: Move file operations to
1640 * include/grub/emu/hostfile.h: ... here.
1642 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1644 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
1647 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1649 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
1651 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1653 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
1654 and remove export.h.
1656 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1658 * grub-core/kern/emu/error.c: Removed.
1659 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
1660 explicitly as it's already in libgnu.a.
1662 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1664 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
1665 config-util.h include.
1667 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1669 Split emunet into platform-dependent and GRUB-binding parts. Keep
1670 platform-dependent part in kernel for easy access to OS functions.
1672 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1674 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
1677 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1679 * grub-core/osdep/windows/emuconsole.c: New file.
1681 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1683 * conf/Makefile.extra-dist: Add osdep/*/init.c
1685 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1687 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
1689 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1691 * util/grub-probe.c (probe): Separate different drives in hint-str
1692 by spaces and not newlines.
1693 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
1695 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1697 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1700 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1702 Pass-through unknown E820 types. It required reorganisation of mmap
1705 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1707 * Makefile.util.def: Add osdep/init.c to grub-mount files.
1709 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1711 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
1714 2013-10-14 qwertial <qwertial>
1716 * grub-core/gdb_grub.in: Fix overflow and wrong field.
1718 2013-10-14 Jon McCune <jonmccune@google.com>
1720 * docs/grub.texi: Document new signatures possibility.
1722 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1724 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
1726 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1728 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
1730 (grub_util_tchar_to_utf8): Likewise.
1732 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1734 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
1735 * grub-core/kern/emu/main.c: Add missing include.
1736 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
1737 Don't call grub_util_init_nls.
1738 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
1741 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1743 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
1746 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1748 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
1750 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1752 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
1754 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1756 Add a wrapper for fopen. On unix-like systems just pass-through. On
1757 windows use unicode version.
1759 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1761 Move set_program_name and init_nls to host_init. On windows
1762 fix in this fuction console and argument charset as well.
1764 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
1766 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
1767 GRUB_ENABLE_CRYPTODISK.
1769 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
1770 GRUB_ENABLE_CRYPTODISK.
1771 * util/grub-mkconfig_lib.in: Likewise.
1773 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
1775 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
1777 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
1779 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
1780 error when enabling debug.
1782 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
1784 * configure.ac: Use -melf_*_obsd on openbsd.
1786 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1788 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
1790 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1792 * include/grub/misc.h: Use gnu_printf rather than printf as format
1793 template since our functions are independent of libc.
1795 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1797 * util/grub-setup.c (setup): Move copying of partition table as
1798 futher up as possible to avoid possible overwrite by floppy routines.
1800 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1802 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1804 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1806 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1807 * docs/grub.texi: Likewise.
1809 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1811 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1812 it's mostly unused. Move vestiges to the callers.
1814 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1816 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1817 version of salt and hash. Use grub_snprintf rather than snprintf.
1819 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1821 * docs/grub.texi: Fix problem with braces.
1823 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1825 * conf/Makefile.extra-dist: Fix extra-dist list.
1826 * grub-core/Makefile.core.def: Likewise.
1828 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1830 * docs/grub.texi: Document disk names used on Windows and AROS.
1832 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1834 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1836 * grub-core/osdep/aros/hostdisk.c: Likewise.
1838 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1840 Avoid including hostfile.h when not necessarry as it pulls
1841 in OS-specific headers which may redefine generic names
1844 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1846 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1847 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1848 scrollbar_bottom_pad
1849 * docs/grub.texi: Likewise.
1851 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1853 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1855 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1857 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1859 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1861 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1863 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1866 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1868 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1871 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1873 Move OS-specific driver configuration to grub_util_fd_open. This
1874 moves OS-dependent parts from kern/emu/hostdisk.c to
1875 grub-core/osdep/*/hostdisk.c.
1877 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1879 * util/grub-mkimage.c (generate_image): Use size_t instead of
1881 * util/grub-mkimagexx.c (locate_sections): Likewise.
1882 (load_image): Likewise.
1884 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1886 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1888 (grub_util_write_image): Likewise.
1890 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1892 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1893 get random when no RNG is available.
1894 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1896 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1898 * include/grub/util/lvm.h: Removed.
1900 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1902 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1903 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1905 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1907 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1909 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1911 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1913 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1915 * grub-core/net/drivers/emu/emunet.c: Move to ..
1916 * grub-core/osdep/linux/emunet.c: ..here.
1918 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1920 * util/ieee1275/ofpath.c: Move to ...
1921 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
1922 * grub-core/osdep/basic/ofpath.c: ..here.
1924 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1926 Move password-querying (util-version) routines to grub-core/osdep.
1928 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1930 Move sleep routines to grub-core/osdep.
1932 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1934 Move OS-dependent files to grub-core/osdep and document it.
1936 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1938 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
1939 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
1941 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1943 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
1945 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1947 * util/misc.c: Remove leftover inclusion of malloc.h.
1949 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1951 * include/grub/setjmp.h: Remove leftover GRUBOF.
1953 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1955 * util/raid.c: Fold into ...
1956 * util/getroot_linux.c: ... here. Make all functions static.
1958 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1960 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
1961 macros to GRUB ones.
1963 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1965 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
1966 occasional bug. If there are too many boot entries or too low
1967 scrollbar height then we need to use another formula to calculate
1968 the position and size of the scrollbar thumb.
1970 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1972 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
1974 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1976 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
1977 * docs/grub.texi: Likewise.
1979 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1981 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
1984 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1986 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
1987 minimal width calculations.
1989 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1991 * docs/grub.texi: Update note on colors on emu console.
1993 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1995 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
1996 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
1997 it's FS and not GRUB limitation.
1999 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2001 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
2003 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2005 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
2007 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2009 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
2010 kernels by version order.
2012 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2014 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
2016 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2018 Add AROS hostdisk and getroot routines.
2020 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2022 Make cryptodisk and diskfilter probe data retrievable programmatically
2023 and not just printable.
2025 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2027 Split random retrieving code into separate files.
2029 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2031 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
2034 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2036 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
2038 * grub-core/tests/fake_input.c: Likewise.
2039 * grub-core/tests/cmdline_cat_test.c: Likewise.
2041 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2043 * grub-core/video/capture.c: Do not do finalization when .fini
2044 is called as there is explicit capture_end.
2046 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2048 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
2049 changing windows to avoid crash.
2051 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2053 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
2055 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2057 * po/exclude.pot: Add several strings to exclude.
2059 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2061 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
2063 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2065 * autogen.sh: Add ./util/grub-gen-widthspec.c and
2066 ./util/grub-gen-asciih.c to exclude list.
2068 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2070 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
2071 and don't mark error strings for translation.
2073 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2075 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
2076 properly in case of missing block size.
2078 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2080 * grub-core/lib/arm/setjmp.S: Add missing license section.
2082 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2084 * po/swiss.sed: Add replacement for key names and for term computer.
2086 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
2088 * grub-core/gfxmenu/theme_loader.c: New global options for the
2089 theme background image handling. desktop-image-scale-method,
2090 desktop-image-h-align, desktop-image-v-align.
2091 * grub-core/gfxmenu/view.c: Likewise.
2092 * include/gfxmenu_view.h: Likewise.
2093 * include/bitmap_scale.h: Proportional scale functions introduced.
2094 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
2095 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
2096 cases of unexpected input variables for scale functions.
2097 * docs/grub.texi: Updated documentation for new options.
2099 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
2101 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
2103 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2105 * grub-core/tests/checksums.h: Corrected due to changes in
2106 bilinear interpolation function.
2108 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2110 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
2111 to eliminate artefacts in bilinear interpolation.
2113 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2115 * grub-core/video/readers/tga.c: Support paletted tga.
2117 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2119 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
2120 incorrect cbcr setting when in color mode.
2122 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2124 * grub-core/video/readers/png.c: Support paletted images and clean up
2127 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2129 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
2130 usage of wrong table which resulted in mishandling of 4-byte
2133 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2135 * grub-core/term/terminfo.c: Add Home and End key sequences.
2137 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2139 * grub-core/video/readers/png.c (grub_png_decode_image_header):
2140 Fix formula for computing total number of bytes.
2142 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2144 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
2145 image processing, fix big-endian and support grayscale.
2147 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2149 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
2150 Correctly will with maximum transparency when using index color.
2152 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2154 * grub-core/video/readers/png.c: Support grayscale
2156 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2158 * grub-core/video/readers/jpeg.c: Support grayscale.
2160 2013-09-26 Jon McCune <jonmccune@google.com>
2162 * grub-core/commands/loadenv.c: Support skipping signature check
2163 and variable names filtering.
2165 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2167 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
2168 * grub-core/kern/emu/hostfs.c: Likewise.
2169 * util/getroot_unix.c: Likewise.
2171 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2173 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
2174 Migrate all explicit defines to this new one.
2176 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2178 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
2179 grub_util_fd_strerror when using grub_util_fd_*.
2180 (grub_util_fd_open_device): Likewise.
2181 (grub_util_biosdisk_read): Likewise.
2182 (grub_util_biosdisk_write): Likewise.
2183 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
2184 (grub_util_fd_strerror): Likewise.
2185 (grub_util_fd_sync): Likewise.
2186 (grub_util_fd_close): Likewise.
2187 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
2188 (grub_util_fd_close): Likewise.
2189 (grub_util_fd_strerror): Likewise.
2190 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
2191 function proto rather than macro.
2192 (grub_util_fd_sync): Likewise.
2193 (grub_util_fd_open): Likewise.
2194 (grub_util_fd_strerror): New proto.
2196 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2198 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
2199 platforms on which it doesn't work.
2201 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2203 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
2204 stat immediately to where it's used.
2206 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2208 * util/getroot.c (grub_util_check_block_device): Move to ...
2209 * util/getroot_unix.c (grub_util_check_block_device): ... here.
2210 * util/getroot.c (grub_util_check_char_device): Move to ...
2211 * util/getroot_unix.c (grub_util_check_char_device): ... here.
2213 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2215 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
2218 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2220 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
2222 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2224 * docs/grub.texi (File name syntax): Document ZFS filenames
2225 (/volume@snapshot/...).
2227 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2229 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
2230 Always return full path. Fixes a problem with mkrelpath.
2232 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2234 * util/grub-install.in: Add GPT PReP support.
2235 * util/grub-probe.c (probe): Support GPT partition type.
2236 (main): Support -t gpt_parttype.
2238 2013-09-23 Aleš Nesrsta <starous@volny.cz>
2240 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
2242 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
2244 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
2246 2013-09-23 Tim Hardeck <thardeck>
2248 * util/grub.d/10_hurd.in: Filter out character for the class.
2249 * util/grub.d/10_kfreebsd.in: Likewise.
2250 * util/grub.d/10_linux.in: Likewise.
2251 * util/grub.d/20_linux_xen.in: Likewise.
2253 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
2255 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
2258 2013-09-23 Josh Triplett <josh@joshtriplett.org>
2260 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
2263 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2265 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
2266 doesn't use posix_wrap. Keep literal -fno-builtin however.
2268 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2270 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
2272 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2275 * configure.ac: Do not enable -Wmissing-noreturn as its
2276 usefulness is limited and creates problems on some OS notably with
2277 code generated by bison.
2279 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2282 * configure.ac: Do not explicitly enable -Waddress as it's not
2283 supported by all gcc and when it is, it's already enabled by -Wall.
2285 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2287 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
2288 desactivated use of EDID at all.
2290 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2293 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
2294 video if no text is available.
2296 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2299 * configure.ac: Substitute TARGET_RANLIB.
2301 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2304 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
2306 Based on patches from AROS.
2308 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2311 * grub-core/Makefile.am: Override STRIP and RANLIB.
2312 * configure.ac: compute TARGET_RANLIB.
2313 * INSTALL: Document TARGET_RANLIB
2315 Based on patches from AROS.
2317 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2319 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
2320 that floppies are unpartitioned.
2322 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2324 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
2325 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
2327 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2329 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
2330 less nice but more portable.
2331 * grub-core/lib/posix_wrap/wchar.h: Likewise.
2333 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2335 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
2337 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
2339 (grub_cryptodisk_cheat_insert): Likewise.
2340 (grub_cryptodisk_close): Likewise.
2342 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2344 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
2345 Use windows path for DEFAULT_DIRECTORY.
2347 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2349 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
2350 difference was likely just gcc version, not anything mingw-related.
2352 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2354 Use Winapi on both cygwin and mingw32 to share more code between both.
2356 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2358 * util/grub-install.in: Add --grub-editenv option.
2359 * util/grub-install_header (grub_compress_file): Explicitly check for
2360 plain file to avoid cp error.
2362 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2364 * docs/grub.texi (Device syntax): Document new LVM UUID based device
2365 names; fix LVM driver name (lvm, not lv).
2366 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
2369 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2371 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
2372 files rather than one file with loads of #if's.
2373 * util/getroot.c: Likewise.
2375 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2377 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
2379 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2381 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
2382 GNU/Hurd to the list of checked PRNG.
2384 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2386 * configure.ac: On FreeBSD use -melf_*_fbsd format.
2388 2013-09-21 Ales Nesrsta <starous@volny.cz>
2390 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
2392 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2394 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
2395 * grub-core/disk/lvm.c: Add LVM UUIDs.
2396 * util/getroot.c: Use LVM UUIDs whenever possible.
2398 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
2400 * docs/grub.texi (Networking commands): Add documentation for
2401 network related commands.
2403 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2405 * util/getroot.c (grub_util_open_dm): Check major rather than the name
2406 to determine if device is handled by devmapper.
2407 (convert_system_partition_to_system_disk): Likewise.
2408 (get_dm_uuid): Don't check explicitly if device is mapped, it's
2409 already done in grub_util_open_dm.
2411 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
2413 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
2414 Clean up stack manipulation (sync_caches_armv*)
2416 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2418 * util/lvm.c: Remove since unused. Remove remaining references.
2420 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2422 Handle the case of partitioned LVM properly.
2424 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2425 Stop on meeting LVM, mpath or DMRAID.
2426 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
2427 (read_device_map): Likewise.
2428 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
2429 device is full disk rather than erroring out on LVM and similar cases.
2431 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2433 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
2435 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2437 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
2439 Reported by: Leif Lindholm
2441 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
2442 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2444 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
2447 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
2449 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
2450 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
2452 2013-09-18 Douglas Ray <dougray@cpan.org>
2454 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
2457 2013-09-18 Aleš Nesrsta <starous@volny.cz>
2459 * docs/grub.texi: Fix broken link.
2461 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
2463 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
2464 to break endless loop.
2466 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2468 * util/grub-fstest.c: Fix several printf formats.
2469 * util/grub-mkimage.c: Likewise.
2470 * util/grub-mkimagexx.c: Likewise.
2471 * util/grub-script-check.c: Likewise.
2473 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2475 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
2478 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2480 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
2482 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2484 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
2485 removed in current versions cygwin_conv_*.
2487 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2489 * configure.ac: Disable efiemu runtime on cygwin.
2491 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2493 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
2494 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
2496 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2498 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
2501 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2503 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
2505 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
2508 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2510 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
2511 when on x86 and not cygwin.
2512 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
2515 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2517 * configure.ac: Set CPP to build one when checkoing for freetype for
2520 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2522 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
2523 [!GRUB_BUILD]: Remove has_argument.
2525 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2527 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
2528 Replace with a dummy.
2530 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2532 * configure.ac: Don't change host_os from mingw to cygwin.
2534 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2536 * configure.ac: Change target_os from windows to cygwin.
2538 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2540 Handle grub-pe2elf and grub-mkfont for cases when build != host.
2542 * Makefile.am (build-grub-mkfont): Don't include gnulib.
2543 (build-grub-gen-asciih): Likewise.
2544 (build-grub-gen-widthspec): Likewise.
2545 * Makefile.util.def (grub-pe2elf): Remove.
2546 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
2547 * configure.ac: Separate tests for build.
2548 Move ./build-grub-pe2elf to grub-core.
2550 * grub-core/Makefile.am (build-grub-pe2elf): New target.
2551 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
2553 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
2555 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
2556 * util/grub-pe2elf.c: Simplify not to rely on getopt.
2557 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
2559 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2561 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
2562 mingw32 as well based on grub_util_get_disk_size.
2563 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
2564 grub_util_get_fd_size.
2566 (fsync): Moved to ...
2567 * grub-core/kern/emu/misc.c (fsync): ... here.
2569 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2571 * include/grub/mm.h (grub_extend_alloc): Remove.
2572 * grub-core/loader/i386/pc/plan9.c: Use own version of
2573 grub_extend_alloc with appropriate types.
2575 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2577 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
2579 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2581 * util/getroot.c: Include sys/wait.h only when we need waitpid.
2583 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2585 Fix dependencies on cygwin.
2587 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
2588 dependencies when used and defined.
2589 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
2591 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2593 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
2594 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
2596 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2598 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
2599 implementation available to cause compile-time rather than runtime
2602 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2604 * util/grub-fstest.c: Don't check for symlinks on windows.
2606 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2608 * INSTALL: Mention unavailability of man pages when cross-compiling.
2610 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2612 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
2614 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
2616 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2618 * INSTALL: Document cross-compilation.
2619 * acinclude.m4: Determine whether nm support -P and --defined-only.
2620 * configure.ac: Add TARGET_ to all variables pertaining to target
2621 that don't have it yet.
2622 * gentpl.py: Likewise.
2623 * grub-core/Makefile.am: Likewise.
2624 * grub-core/genmod.sh.in: Likewise.
2625 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
2628 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2630 * configure.ac: Remove -Wempty-body. It's not essential and needs
2633 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2635 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
2636 * util/getroot.c: Likewise.
2638 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2640 * grub-core/disk/ahci.c: Add needed explicit cast.
2641 * grub-core/lib/backtrace.c: Likewise.
2642 * grub-core/net/ip.c: Likewise.
2643 * grub-core/net/tcp.c: Likewise.
2644 * grub-core/net/udp.c: Likewise.
2646 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2648 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
2650 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2652 * util/import_gcry.py: Add final newline in visibility.h.
2654 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2656 * conf/Makefile.common: Fix typo.
2658 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2660 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
2662 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2664 * Makefile.am (widthspec.h): Fix typo.
2665 * util/grub-gen-widthspec.c: Likewise.
2667 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2669 Move ascii.h and widthspec.h generation to a separate build-time-only
2672 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
2674 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2675 Always fill bootdisk info and improve check for NetBSD disklabel.
2677 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2679 * conf/Makefile.extra-dist: Add util/bin2h.c.
2680 Reported by: floppym.
2682 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2684 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
2686 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2688 * configure.ac: Disable unifont and starfield if no freetype was found.
2690 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2692 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
2693 on NetBSD and OpenBSD.
2695 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
2697 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
2699 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
2701 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
2702 reduced. Inheritant options are processed during the theme loading.
2704 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
2706 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
2708 2013-08-14 Avik Sil <aviksil@in.ibm.com>
2710 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
2712 2013-08-14 Avik Sil <aviksil@in.ibm.com>
2714 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
2717 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2719 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
2720 remove-potcdate.sed.
2722 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2724 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
2725 unused attribute from pull argument.
2727 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2729 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
2732 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2734 * util/getroot.c (pull_lvm_by_command): add --separator option
2735 to vgs call to disable padding of output to 10 characters.
2737 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2739 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
2741 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
2744 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2746 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
2749 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2751 Fix handling of build-time grub-bin2h and grub-mkfont when doing
2752 full Canadian cross. Tested with build=x86_64, host=arm,
2753 target=ppc-ieee1275.
2755 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2757 * configure.ac: Error if no $BUILD_CC could be found.
2760 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2762 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
2765 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2767 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
2768 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
2770 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
2772 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
2773 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
2774 falling back to the partition device, otherwise a later call to this
2775 function may fail spuriously.
2776 Reported by Axel Beckert. Fixes Debian bug #708614.
2778 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2780 * autogen.sh: Replace find -not by the POSIX-compliant find !.
2782 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2784 Prevent shadowing of stdlib's devname(3) on BSD.
2786 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
2787 and devlast to diskname and disklast, respectively.
2789 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
2791 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2793 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2795 * docs/grub.texi: Introduce terminal window position options:
2796 terminal-left: terminal window's left position
2797 terminal-top: terminal window's top position
2798 terminal-width: terminal window's width
2799 terminal-height: terminal window's height
2800 terminal-border: terminal window's border width
2801 * grub-core/gfxmenu/theme-loader.c: Likewise.
2802 * include/grub/gfxmenu_view.h: Likewise.
2803 * po/exlude.pot: Likewise.
2804 * grub-core/gfxmenu/view.c: Likewise.
2805 Also updated minimal window size.
2806 Also terminal_sanity_check function has been introduced.
2807 * grub-core/tests/checksums.h: Update (terminal window height
2808 is adjusted now for low resolution screen)
2810 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2812 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2815 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2817 * po/exclude.pot: Add few recent exceptions.
2819 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2821 * tests/grub_func_test.in: Add unicode.pf2.
2823 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2825 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2826 standard rather than noral color, in line with other terminals.
2828 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2830 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2833 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2835 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2837 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2839 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2840 inappropriate printf.
2842 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2844 * .bzrignore: Remove grub-core/lib/dtc-grub,
2845 grub-core/Makefile.libfdt.def
2846 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2848 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2850 * include/grub/video.h (grub_video_register): Keep double-linked as
2851 well as single-linked invariants.
2852 Reported by: qwertial.
2854 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2856 * grub-core/commands/nativedisk.c (get_uuid): Handle
2857 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2859 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2861 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2862 maximum of NW, N, NE heights instead of N's height and maximum of
2863 NW, W, SW widths instead of W's width. (So the box will be always
2866 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2868 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2869 Fix misuse of variable count.
2871 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
2872 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
2873 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
2875 New ports to arm-uboot and arm-efi.
2876 Mostly by Leif Lindholm with some additions from
2877 Francesco Lavra and cleanup by Vladimir Serbinenko.
2879 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2881 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2883 Reported by: Leon Drugi.
2885 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2887 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2888 Reported by: Paulo Flabiano Smorigo.
2890 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2892 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2894 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2896 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2898 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2900 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2902 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2904 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2906 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2908 * grub-core/net/bootp.c: Export net_* variables.
2909 * grub-core/net/net.c: Likewise.
2911 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2913 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2915 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2917 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2919 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2921 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
2923 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2925 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
2927 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2929 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
2932 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2934 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
2937 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2939 * grub-core/fs/zfs/zfs_lz4.c: New file.
2940 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
2942 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2944 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
2946 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2948 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
2949 (check_pool_label): Likewise.
2950 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
2952 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2954 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
2956 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2958 * docs/grub.texi (Commands): Document postition parameters
2959 for menuentry command.
2961 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2963 * util/grub-mknetdir.in: Remove stray line from help output.
2965 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2967 Remove early sm712 init as there is no reason for it (the "watchdog"
2968 effect was due to wrong GPIO map).
2970 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2972 * grub-core/commands/pcidump.c: Remove static variables.
2974 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2976 * grub-core/commands/sleep.c: Refresh screen before sleeping.
2978 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2980 * configure.ac: Move delimiter after the infos.
2982 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2984 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
2986 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2988 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
2989 not filling whole 8x16 space.
2991 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2993 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
2995 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2997 * configure.ac: Indicate which liblzma is used if any.
2999 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
3000 2013-06-21 Craig Sanders <savannah@taz.net.au>
3002 * util/grub-reboot.in: Document submenu usage.
3004 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
3006 * .bzrignore: Update with a number of new test-related files.
3008 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
3010 * util/grub-script-check.c: Fail on scripts containing no
3011 commands, to guard against corrupted grub-mkconfig setups that
3012 produce no useful output.
3013 * tests/grub_script_no_commands.in: New test.
3014 * Makefile.util.def (grub_script_no_commands): Add.
3015 Reported by Hans Putter. Fixes Debian bug #713886.
3017 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3019 * grub-core/disk/diskfilter.c: Forgot to remove comment
3020 from previous commit.
3022 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3024 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
3025 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
3027 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3029 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
3031 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3033 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
3034 rescan diskfilter devices until nothing new is found.
3036 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3038 Fix casts when compiling coreboot-specific code for 64-bit EFI.
3040 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3042 Don't try to detect cbfs on *-emu.
3044 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3046 * grub-core/term/gfxterm.c: USe right background color when scrolling.
3048 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3050 Add support for processed coreboot payload chainloading.
3052 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3054 Enable coreboot information commands even when not loaded as
3055 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
3057 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3059 Support for cbfs. Also factor out the part which is common
3060 for all archives to a separate module. This splits tar from cpio
3061 as they are very different but keeps cpio, cpio_be, odc and newc
3062 together since they're very similar.
3064 2013-06-15 David Michael <fedora.dm0@gmail.com>
3066 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
3067 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
3069 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3071 * tests/grub_script_eval.in: Really add the eval test.
3073 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3075 Move flavour-specific parts out of common cpio.c file and
3076 rename remaining to cpio_common.c
3078 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3080 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
3081 off new function grub_script_execute_new_scope. Change callers to use
3082 either of them as appropriate.
3083 * grub-core/commands/eval.c: New command eval.
3084 * docs/grub.texi (Commands): Document it.
3086 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3088 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
3089 to fetch values when listing.
3091 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3093 Fix make dist on non-pc.
3095 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
3097 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
3098 without a device name.
3100 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3102 Remove enable_executable_check as it's not needed anymore.
3103 Reported by: dougray.
3105 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3107 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
3108 ambigouos RAID before discovering RAIDs on top of it.
3111 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3113 Fix typo (failback vs fallback).
3115 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
3117 * util/grub.d/30_os-prober.in: Add support for probing EFI
3118 System Partition (as of os-prober 1.58).
3120 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3122 * configure.ac: Add yet another path to unifont. For parabola.
3124 2013-05-30 Josh Triplett <josh@joshtriplett.org>
3126 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
3127 handling to copy the killed characters to the kill buffer as
3128 UCS4 stored as grub_uint32_t rather than as 8-bit characters
3129 stored as char. Eliminates UCS4 truncation and corruption
3130 observed when killing characters with Ctrl-u and yanking them
3133 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3135 Detach optional parts of gfxterm and integrate in with coreboot init.
3137 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3139 Move blit and fill dispatcher to appropriate files to decrease export
3140 and relocation overhead.
3142 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3144 * grub-core/font/font.c, include/grub/font.h: Inline simple font
3147 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3149 * grub-core/Makefile.am: Fix compilation problem with some
3152 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3154 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
3156 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3158 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
3161 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3163 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
3166 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
3168 * grub-core/partmap/dfly.c: New partition map.
3170 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3172 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
3174 Reported by: Francesco Lavra.
3176 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
3178 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
3179 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
3181 * conf/Makefile.common: define dist_grubconf_DATA
3183 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3185 Progressively skip menu elements on small terminals rather
3188 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3190 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
3191 to avoid losing last column.
3193 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3195 * po/exclude.pot: Add missing string "%C".
3197 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3199 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
3202 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3204 * util/grub-install.in: Gettextize "Not found" message.
3206 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3209 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3211 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3213 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
3215 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
3217 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3219 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
3221 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3223 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
3224 attribute since structure is not necessarily aligned.
3226 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
3228 * docs/grub.texi (Device syntax): Clarify description of network
3231 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3233 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
3234 for vasprintf presence.
3236 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3238 * util/grub-install.in: Handle efibootmgr presence check.
3239 Reported by: Leif Lindholm.
3241 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3243 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
3244 new strings to translate.
3246 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3248 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
3249 yet another string (pun intended) to translate.
3251 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3253 * po/POTFILES-shell.in: Autogenerate it.
3255 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3257 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
3259 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3261 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
3264 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
3266 * docs/grub.texi (Network): Add description of net_default_interface,
3267 net_default_ip and net_default_mac. Rewrite variables description
3268 to emphasize that they are per-interface.
3270 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3272 New test: cmdline and cat.
3274 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3276 * grub-core/commands/cat.c: Show UTF-8 characters.
3278 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3280 * conf/Makefile.common: Poison float and double on non-emu.
3282 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3284 * configure.ac: Don't disable extended registers on emu.
3286 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3288 * configure.ac: Don't use extended registers on x86_64.
3289 Reported by: Peter Jones.
3291 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3293 * grub-core/term/efi/console.c: Fix compile error.
3295 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3297 Compressed HFS+ support.
3299 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3301 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
3304 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3308 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3310 * grub-core/tests/setjmp_test.c: New test.
3312 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3314 New variables 'net_default_*' to determine MAC/IP of default interface.
3316 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3318 * tests/gettext_strings_test.in: A test to check for strings not
3319 marked for translation.
3321 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3323 * autogen.sh: Exclude unused libgcrypt files from translation.
3325 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3327 Simplify few strings.
3329 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3331 Mark few forgotten strings for translation.
3333 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
3338 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3340 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
3342 * grub-core/video/readers/tga.c: Likewise.
3344 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3346 * tests/priority_queue_unit_test.cc: New test.
3348 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3350 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
3353 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
3355 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
3356 variable for one time boot menu entry.
3358 2013-05-05 Bean <bean123ch@gmail.com>
3360 * grub-core/commands/testspeed.c: New command testspeed.
3362 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3364 Factor-out human-size printing.
3366 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3368 Agglomerate more mallocs to speed-up gfxterm.
3370 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3372 Speed-up gfxterm by slightly agglomerating mallocs.
3374 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3378 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3380 Speed-up gfxterm by saving intermediate results in index+alpha
3383 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3385 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
3388 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3390 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
3391 line of timeout as it may contain the rest of long line.
3393 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3395 * grub-core/normal/main.c: Fix freed memory dereference.
3397 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3399 Fix several memory leaks.
3401 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3403 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
3405 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3407 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
3409 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3411 Fix test -a and -o precedence.
3412 Reported by: adrian15.
3414 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3416 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
3418 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
3420 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
3421 and add it as source to functional_test module.
3423 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3425 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
3427 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3429 New series of tests for gfxterm and gfxmenu.
3431 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3433 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
3434 the theme path relative to $prefix/themes.
3436 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3438 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
3440 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3442 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3444 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
3447 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3449 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
3450 grub_gfxmenu_timeout_notifications.
3451 (grub_gfxmenu_view_destroy): Likewise.
3453 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3455 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
3457 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3459 Several fixes to ieee1275 and big-endian video.
3461 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3463 Add missing exports on mips.
3465 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3467 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
3468 if no unifont is found.
3469 Restore original keyboard.
3471 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3473 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3474 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
3476 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3478 First automated video test (running videotest and comparing results)
3480 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3482 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
3483 instead of 2 to have full RGB/CMY test pattern.
3485 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3489 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3491 * include/grub/arc/arc.h: Account for missing "other" peripheral on
3492 ARCS. All users updated.
3494 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3496 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
3498 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3500 * grub-core/partmap/amiga.c: Fix size of checksummed block.
3502 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3504 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
3505 Reported by: qwertial.
3507 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3509 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
3510 with syntax "XXX deg"/"XXX °".
3512 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3514 Make PCI init in i386-qemu port more robust.
3516 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3518 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
3519 cached view is reused.
3520 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
3523 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3525 Unify more code in grub-install_header.
3527 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3531 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3533 Enforce disabling of firmware disk drivers when native drivers kick in.
3535 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3537 * grub-core/commands/nativedisk.c: Customize the list of modules on
3538 platform. Don't try to search for disks already using native drivers.
3540 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3542 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
3545 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3547 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
3548 handling of variables containing backslash.
3550 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3552 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
3554 Reported by: qwertial.
3556 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3558 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
3560 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3562 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
3564 Reported by: qwertial.
3566 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3568 * docs/grub.texi: Add a comment about usefullness of nativedisk.
3570 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3572 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
3574 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3576 New command `nativedisk'.
3578 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3580 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
3581 * grub-core/loader/i386/bsd.c: Likewise.
3583 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3585 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
3587 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3589 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
3590 grub_get_unaligned16 rather than shifts.
3592 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3594 * grub-core/kern/file.c: Use const char * rather than casting to
3597 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3599 * grub-core/commands/probe.c: Add missing grub_device_close.
3601 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3603 * INSTALL: Document linguas.sh.
3605 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3607 Remove POTFILES.in and regenerate it in autogen.sh.
3609 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3611 Move --directory/--override-directorry to grub-install_header and unify.
3613 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3615 * grub-core/term/morse.c: Macroify dih and dah.
3617 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3619 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
3621 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/term/ns8250.c: Systematically probe ports by writing
3624 to SR before using them.
3626 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3628 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
3630 (check_sas): Get sas_adress info.
3632 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3634 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
3637 2013-04-27 Leon Drugi <eyak>
3639 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
3642 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3644 Core compression test.
3646 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3648 Implement grub_machine_get_bootlocation for ARC.
3650 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3652 Improve AHCI detection and command issuing.
3654 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3658 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3660 Make 'make check' work on emu.
3662 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3664 Replace libcurses with our own vt100 handling for the ease of testing
3665 and decreasing prerequisites.
3667 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3669 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
3671 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3673 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
3674 compile when not needed.
3676 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3678 * tests/pseries_test.in: New test.
3680 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3682 Add test to check that different boot mediums work.
3684 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3686 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
3687 ofw limited ISO support.
3689 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3691 * configure.ac: Fix loongson conditional.
3693 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3697 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3699 Add serial on ARC platform.
3701 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3703 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
3706 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3708 * tests/partmap_test.in: Add missing double semicolon.
3710 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3712 * util/grub-mkrescue.in: Fix loongson filename.
3714 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3716 * util/grub-mkrescue.in: Move all files that don't have a location
3717 set in stone under /boot/grub. Use ISO hard links rather than copies
3720 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3722 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
3725 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3727 Make check work on mips-arc.
3729 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3731 * util/grub-mkrescue.in: Alias sashARCS as sash.
3733 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3735 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
3738 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3740 * util/grub-install.in: Fix target fo qemu_mips.
3741 Fix extension on EFI.
3743 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3745 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
3746 in front of chosen entry to mark it even if highlighting is lost.
3748 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3750 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
3751 gfxpayload=keep if cbfb is active.
3753 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3755 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
3757 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3759 Add missing video ids to coreboot and ieee1275 video.
3761 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3763 * util/grub-mkrescue.in: Add mips-arc support.
3765 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3767 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
3769 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3771 Move mips-arc link address. Previous link address was chosen
3772 in belief that RAM on SGI platforms grows down while in fact it
3773 grows up from an unusual base.
3775 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3777 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
3778 Fix a type which prevented CD-ROM and floppy boot.
3780 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3782 Support coreboot framebuffer.
3784 * grub-core/video/i386/coreboot/cbfb.c: New file.
3786 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3788 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
3789 detecting too small regions.
3791 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3793 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3795 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3797 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3799 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3801 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3803 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3804 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3805 * grub-core/loader/powerpc/ieee1275/linux.c
3806 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3808 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3810 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3811 Look for /boot-rom as well as /rom/boot-rom.
3813 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3815 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3816 handling when creating text_layer failed.
3817 * grub-core/video/video.c (grub_video_create_render_target):
3818 Set result to 0 on error.
3819 (grub_video_delete_render_target): Do not dereference NULL.
3821 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3823 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3824 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3825 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3826 (grub_linux_load64): Mask out 2 high bits.
3828 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3830 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3833 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3835 Add support for pseries and other bootinfo machines to grub-mkrescue.
3837 Tested by: Paulo Flabiano Smorigo.
3839 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3841 * util/grub-mkrescue.in: Add GPT for EFI boot.
3843 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3845 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3846 It improves performance in qemu.
3848 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3850 * build-aux/snippet: Add missing gnulib files.
3852 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3854 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3856 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3858 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3860 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3861 2013-04-15 Peter Jones <pjones@redhat.com>
3863 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3865 Based on patch by Peter Jones.
3867 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3869 Fix DMRAID partition handling.
3871 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3873 * tests/grub_cmd_date.in: Skip on sparc64.
3875 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3877 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3878 firmware error messages.
3880 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3883 source and destination differ.
3885 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3887 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3890 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3892 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3893 match config-util.h to avoid warnings and increase compatibility.
3895 2013-04-14 Szymon Janc <szymon@janc.net.pl>
3896 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3898 Add option to compress files on install/image creation.
3900 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3902 * docs/grub-dev.texi: Rearrange menu to match the section order.
3903 Reported by: Bryan Hundven.
3905 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3907 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3909 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3911 Move GRUB out of system area when using xorriso 1.2.9 or later.
3913 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3915 * tests/grub_cmd_date.in: Add missing exit 1.
3917 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3919 * tests/partmap_test.in: Skip on sparc64.
3921 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3923 Support grub-shell on sparc64.
3925 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3927 Support mkrescue on sparc64.
3929 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3931 Allow IEEE1275 ports on path even if it wasn't detected automatically.
3932 Needed on OpenBIOS due to incomplete device tree.
3934 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3936 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
3937 would be otherwise excluded.
3939 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3941 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3942 Inline name defines used only once.
3944 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3946 Fix memory leaks in ofnet.
3947 Reported by: Francesco Lavra.
3949 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3951 * docs/man/grub-glue-efi.h2m: Add missing file.
3953 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3955 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
3957 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3959 Better support Apple Intel Macs on CD.
3961 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3963 Replace stpcpy with grub_stpcpy in tools.
3965 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3967 Handle Japanese special keys.
3968 Reported by: Hiroyuki YAMAMORI.
3969 Codes supplied by: Hiroyuki YAMAMORI.
3971 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3973 * util/grub-mkimage.c: Document memdisk implying --prefix.
3975 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3977 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
3978 much we can do about it anyway.
3980 2013-04-12 Aleš Nesrsta <starous@volny.cz>
3982 Fix handling of split transfers.
3984 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3986 * grub-core/net/http.c: Fix bad free.
3988 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3990 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
3993 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3995 Disable partmap check on i386-ieee1275 due to openfirmware issues.
3997 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3999 * tests/util/grub-shell.in: Fix it on powerpc.
4001 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4003 Turn off QEMU ACPI-way since new releases don't have shutdown port
4006 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4008 * docs/grub.texi: Update coreboot status info.
4010 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4012 * tests/grub_cmd_date.in: New test for datetime.
4014 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4016 * tests/partmap_test.in: Fix missing qemudisk setting.
4018 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4020 Support i386-ieee1275 grub-mkrescue and make check on it.
4022 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4024 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
4027 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4029 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
4030 GRUB_CMDLINE_XEN_DEFAULT.
4031 Reported by: Marc Warne (GigaTux) <gigatux>
4033 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4037 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4039 Use ACPI shutdown intests as traditional port was removed.
4041 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
4043 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
4046 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4048 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
4049 Fix few warining messages and leaks while on it.
4051 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
4053 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
4054 links under grub-core/lib/libgcrypt-grub/mpi.
4056 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4058 Fix ia64-efi image generation on big-endian machines. Deduplicate
4059 some code while on it.
4060 Reported by: Leif Lindholm.
4062 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4064 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
4067 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4069 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
4071 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
4073 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
4076 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4078 * grub-core/normal/term.c: Few more fixes for menu entry editor
4080 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4082 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/normal/term.c: Few more fixes for menu entry editor
4086 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4088 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4090 * conf/Makefile.extra-dist (EXTRA_DIST): Add
4091 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
4093 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4095 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
4096 instead of hardcoding grub.mo.
4098 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
4100 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
4102 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4104 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
4105 grub-core/disk/geli.c.
4107 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4109 * util/grub-mkfont.c: Prefer enum to #define.
4111 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4113 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
4115 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4117 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
4119 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4121 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
4123 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4125 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
4127 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4129 * include/grub/bsdlabel.h: Use enums.
4131 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4133 Move GRUB_CHAR_BIT to types.h.
4135 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4137 * docs/grub.texi: Document more user commands.
4139 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4141 * docs/grub.texi: Document menuentry --id option.
4143 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
4145 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
4147 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4149 Unify file copying setup across different install scripts. Add
4150 options for performing partial install.
4152 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4153 2013-04-04 Peter Jones <pjones@redhat.com>
4155 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
4157 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4159 Use TSC as a possible time source on i386-ieee1275.
4161 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4163 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
4166 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4168 * util/grub-setup.c (setup): Handle some corner cases.
4170 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4172 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
4174 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4176 * grub-core/commands/verify.c: Save verified file to avoid it being
4177 tampered with after verification was done.
4179 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4181 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
4182 reported width by one to compensate for curesor algorithm problem.
4184 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4186 Fix screen corruption in menu entry editor and simplify the code
4189 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
4191 * util/grub-mount.c (fuse_init): Return error if fuse_main
4194 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
4196 * include/grub/elf.h: Add missing ARM relocation codes and fix
4199 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4201 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
4203 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4204 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4206 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
4207 into account when calculating radius.
4209 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4211 * grub-core/gfxmenu/view.c: Fix off-by-one error.
4213 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4215 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
4217 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4219 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
4220 missing closing bracket.
4222 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4224 * INSTALL: Mention xorriso requirement.
4226 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
4228 * grub-core/commands/verify.c: Fix hash algorithms values for
4229 the first three hashes - they start with 1, not with 0.
4231 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4233 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
4234 Try terminating EFI services several times due to quirks in some
4237 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
4239 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
4240 skipping Event, Device, Processor, PowerRes, ThermalZone, and
4241 BankField extended opcodes.
4242 (get_sleep_type): Add minimal scope handling (just enough to
4243 handle setting the scope to the root path).
4244 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
4245 * include/grub/acpi.h: Add enumeration values for Event, Device,
4246 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
4248 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
4250 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
4253 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/disk/ahci.c: Give more time for AHCI request.
4257 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4259 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
4262 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4264 Replace the region at 0 from coreboot tables to available in BSD
4267 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4269 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
4272 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4274 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
4277 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4279 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
4280 handling of multi-device filesystems.
4282 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4284 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
4287 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4289 Add new 'proc' filesystem framework and put luks_script into it.
4291 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4293 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
4296 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4298 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
4300 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4302 Add ability to generate newc additions on runtime.
4304 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4306 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
4309 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
4311 * po/POTFILES.in: Regenerate.
4313 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4315 * grub-core/commands/verify.c (hashes): Add several hashes
4318 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4320 Slight improve in USB-related boot-time checkpoints.
4322 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4324 * grub-core/commands/boottime.c: Fix copyright header.
4326 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4328 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
4329 coreboot tables content. Support for cbmemc.
4331 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4333 Fix a conflict between ports structures with 2 controllers of
4336 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4338 * include/grub/boottime.h: Add missing file.
4340 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4342 Initialize USB ports in parallel to speed-up boot.
4344 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4346 Fix USB devices not being detected when requested
4347 due to delayed attach.
4349 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4351 Implement boot time analysis framework.
4353 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4355 Remove get_endpoint_descriptor and change all functions needing
4356 descriptor to just receive it as argument rather than endpoint
4359 2013-03-19 Aleš Nesrsta <starous@volny.cz>
4361 Better estimate the maximum USB transfer size.
4363 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
4365 Resend a packet if we got the wrong buffer in status.
4367 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
4370 multiplication rather than division.
4372 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4374 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
4377 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
4380 operations to have intended shifts and not divisions.
4382 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4384 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
4385 intended shifts rather than division.
4387 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4389 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
4390 computation for some years before epoch. Avode confusing division
4393 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4395 * grub-core/video/i386/pc/vbe.c
4396 (grub_video_vbe_print_adapter_specific_info): Replace division by
4399 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4401 Adjust types in gdb module to have intended unsigned shifts rather than
4404 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4406 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
4407 maximum size is 4G - 1 on hfs
4409 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4411 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
4413 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4415 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
4418 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
4420 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
4421 causing gcc error with gcc 4.7.1.
4423 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4425 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
4426 dereference null pointer. While the code is technically correct, gcc
4427 may eliminate a null check if pointer is already dereferenced.
4429 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4431 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
4433 * grub-core/normal/term.c (read_terminal_list): Likewise.
4435 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4437 Lift up core size limits on some platforms. Fix potential memory
4438 corruption with big core on small memory systems. Document remaining
4441 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4443 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
4446 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4448 Remove all trampoline support. Add -Wtrampolines when
4449 present. Remove symbols used for trampolines to make
4450 link fail if trampolines are present.
4452 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4454 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
4455 append out of its parent.
4457 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4459 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
4462 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4464 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
4465 all vars to a macro. All users updated.
4467 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4469 * grub-core/disk/ieee1275/nand.c: Fix compilation on
4472 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4474 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
4476 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4478 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
4480 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4482 Move to more hookless approach in IEEE1275 devices handling.
4484 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4486 * grub-core/kern/term.c (grub_term_normal_color),
4487 (grub_term_highlight_color): Add back lost defaults.
4489 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4491 Make elfload not use hooks. Opt for flags and iterators instead.
4493 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4495 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
4496 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
4498 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4500 * grub-core/script/execute.c (gettext_append): Remove nested functions.
4502 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4504 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
4505 hook pass-through parameter. All users updated and unnested.
4507 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4509 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
4512 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4514 * grub-core/fs/hfs.c: Remove nested functions.
4516 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4518 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
4519 the context through.
4520 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
4522 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4524 * util/grub-editenv.c (list_variables): Move print_var out of its
4527 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4529 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
4532 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4534 * grub-core/gentrigtables.c: Make tables const.
4536 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4538 Remove nested functions from videoinfo iterators.
4540 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4542 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
4543 for 64-bit platforms.
4545 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4547 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
4548 a FOR_CHILDREN macro.
4550 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4552 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
4553 platform from firmware path.
4555 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4557 Enable linux16 on non-BIOS systems for i.a. memtest.
4559 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
4561 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
4563 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4565 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
4566 Fix end of table condition.
4568 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4570 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
4573 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4575 * grub-core/fs/jfs.c: Remove nested functions.
4577 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4579 * grub-core/fs/minix.c: Remove nested functions.
4581 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4583 * grub-core/fs/iso9660.c: Remove nested functions.
4585 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4587 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
4590 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4592 * util/grub-fstest.c: Remove nested functions.
4594 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4596 * grub-core/loader/machoXX.c: Remove nested functions.
4598 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
4600 Remove nested functions from disk and file read hooks.
4602 * include/grub/disk.h (grub_disk_read_hook_t): New type.
4603 (struct grub_disk): Add read_hook_data member.
4604 * include/grub/file.h (struct grub_file): Likewise.
4605 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
4610 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
4612 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
4613 Fix off by one error in enumerating extended partitions.
4615 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
4617 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
4618 memory leak if device name is not found.
4620 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4622 * grub-core/normal/menu_entry.c (update_screen): remove
4623 unused variable `off' which caused scroll down arrow to be always shown.
4625 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4627 * grub-core/normal/menu_entry.c (insert_string): fix off by one
4628 access to unallocated memory.
4630 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4632 * Makefile.util.def: Add partmap/msdos.c to common library.
4633 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
4634 * grub-core/disk/ldm.c: Check for existence of
4635 GRUB_PC_PARTITION_TYPE_LDM.
4637 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4639 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
4640 sizes and display sector size.
4642 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4644 Implement new command cmosdump.
4646 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4648 Support Openfirmware disks with non-512B sectors.
4650 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
4652 * (grub_ofdisk_get_block_size): New function.
4653 * (grub_ofdisk_prepare): Use the correct block size.
4654 * (grub_ofdisk_read): Likewise.
4655 * (grub_ofdisk_write): Likewise.
4656 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
4659 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4661 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
4663 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
4665 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
4668 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4670 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
4673 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4675 Implement USBDebug (full USB stack variant).
4677 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4679 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
4680 unless they have unexpected values.
4682 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4684 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
4687 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4689 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
4690 zero-out of port structure.
4692 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
4694 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
4695 of extended attributes.
4697 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
4699 * util/grub-install.in: change misleading comment about
4702 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4704 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
4705 when menu highlight color isn't set.
4707 2013-01-27 C. Masloch <pushbx@38.de>
4709 Improve FreeDOS direct loading support compatibility.
4711 * include/grub/i386/relocator.h (grub_relocator16_state):
4713 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
4715 (grub_relocator16_boot): Handle %ebp.
4716 * grub-core/lib/i386/relocator16.S: Likewise.
4717 * grub-core/loader/i386/pc/freedos.c:
4718 Load BPB to pass kernel which partition to load from.
4719 Check that kernel file is not too large.
4720 Set register dl to BIOS unit number as well.
4722 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
4724 * util/grub-reboot.in (usage): Document the need for
4726 * util/grub-set-default.in (usage): Likewise.
4727 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
4729 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4731 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
4732 than defining WORDS_BIGENDIAN manually.
4734 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4736 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
4739 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4741 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
4743 (blit_comb: add_device_width): Likewise.
4745 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4747 Remove nested functions from USB iterators.
4749 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
4750 (grub_usb_controller_iterate_hook_t): Likewise.
4751 (grub_usb_iterate): Add hook_data argument.
4752 (grub_usb_controller_iterate): Likewise.
4753 (struct grub_usb_controller_dev.iterate): Likewise.
4755 Update all implementations and callers.
4757 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4759 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
4760 margin when not needed.
4762 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4764 Make color variables global instead of it being per-terminal.
4766 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4768 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
4771 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4773 Fix powerpc and sparc64 build failures caused by un-nesting memory
4776 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4778 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
4779 parameter declarations.
4781 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4783 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
4785 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4787 Improve spkmomdem reliability by adding a separator between bytes.
4789 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4791 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4792 an Acer registration utility with several sightings in the wild.
4793 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4795 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4797 Remove nested functions from filesystem directory iterators.
4799 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4800 (struct grub_fs.dir): Add hook_data argument.
4802 Update all implementations and callers.
4804 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4806 * docs/grub.texi (Multi-boot manual config): Fix typo for
4809 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4811 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4812 until after its use in generate_image.
4814 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4816 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4817 initrd size to addr_min, since the initrd will be allocated after
4820 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4822 * conf/Makefile.common: Fix autogen rules to pass definition
4823 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4825 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4827 * include/grub/elf.h: Update ARM definitions based on binutils.
4829 2013-01-20 Aleš Nesrsta <starous@volny.cz>
4831 Split long USB transfers into short ones.
4833 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4835 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4836 is interrupted by ESC.
4838 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4840 * util/grub-script-check.c (main): Uniform the error message.
4842 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4844 Remove nested functions from ELF iterators.
4846 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4848 Remove nested functions from device iterators.
4850 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4851 (grub_arc_iterate_devs): Add hook_data argument.
4852 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4853 (struct grub_ata_dev.iterate): Add hook_data argument.
4854 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4855 (grub_device_iterate): Add hook_data argument.
4856 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4857 (struct grub_disk_dev.iterate): Add hook_data argument.
4858 (grub_disk_dev_iterate): Likewise.
4859 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4861 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4863 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4865 (struct grub_partition_map.iterate): Add hook_data argument.
4866 (grub_partition_iterate): Likewise.
4867 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4868 (struct grub_scsi_dev.iterate): Add hook_data argument.
4872 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4874 Fix typos for "developer" and "development".
4876 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4878 Add license header to spkmodem-recv.c.
4880 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4882 Rewrite spkmodem to use PIT for timing. Double the speed.
4884 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4886 Add new command pcidump.
4888 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4890 New terminal outputs using serial: morse and spkmodem.
4892 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4894 Improve bidi handling in entry editor.
4896 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4899 argument to prevent name collision.
4901 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
4903 Remove nested functions from script reading and parsing.
4905 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4906 getline_data argument, passed to getline.
4907 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4908 getline_data argument, passed to grub_parser_split_cmdline.
4909 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4910 lexerstate->getline_data to lexerstate->getline.
4911 (grub_script_lexer_init): Add getline_data argument, saved in
4912 lexerstate->getline_data.
4913 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4914 argument, passed to grub_script_parse.
4915 * grub-core/script/script.c (grub_script_parse): Add getline_data
4916 argument, passed to grub_script_lexer_init.
4917 * include/grub/parser.h (grub_parser_split_cmdline): Update
4918 prototype. Update all callers to pass appropriate getline data.
4919 (struct grub_parser.parse_line): Likewise.
4920 (grub_rescue_parse_line): Likewise.
4921 * include/grub/reader.h (grub_reader_getline_t): Add void *
4923 * include/grub/script_sh.h (struct grub_lexer_param): Add
4924 getline_data member.
4925 (grub_script_parse): Update prototype. Update all callers to pass
4926 appropriate getline data.
4927 (grub_script_lexer_init): Likewise.
4928 (grub_normal_parse_line): Likewise.
4930 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
4932 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
4933 static instead of nested. Rename to ...
4934 (grub_parser_execute_getline): ... this.
4935 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
4937 * grub-core/normal/main.c (read_config_file: getline): Make static
4938 instead of nested. Rename to ...
4939 (read_config_file_getline): ... this.
4940 (grub_normal_read_line): Add unused data argument.
4941 * grub-core/script/execute.c (grub_script_execute_sourcecode:
4942 getline): Make static instead of nested. Rename to ...
4943 (grub_script_execute_sourcecode_getline): ... this.
4944 * util/grub-script-check.c (main: get_config_line): Make static
4947 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
4949 Remove nested functions from memory map iterators.
4951 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
4952 argument, passed to hook.
4953 * grub-core/kern/i386/coreboot/mmap.c
4954 (grub_linuxbios_table_iterate): Likewise.
4955 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
4957 (grub_machine_mmap_iterate): Add hook_data argument.
4958 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
4959 Add hook_data argument, passed to hook.
4960 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
4962 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4964 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
4966 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
4968 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
4970 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
4972 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
4973 (grub_machine_mmap_iterate): Likewise.
4974 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
4975 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
4977 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
4978 Remove NESTED_FUNC_ATTR from here and from all users.
4979 (grub_mmap_iterate): Update prototype.
4980 (grub_efi_mmap_iterate): Update prototype. Update all callers to
4981 pass appropriate hook data.
4982 (grub_machine_mmap_iterate): Likewise.
4984 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
4985 static instead of nested.
4986 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
4988 (lsmmap_hook): ... this.
4989 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
4991 (grub_efiemu_mmap_fill: fill_hook): Likewise.
4992 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
4993 heap_init): Likewise.
4994 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
4996 (mmap_iterate_hook): ... this.
4997 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
4999 * grub-core/lib/ieee1275/relocator.c
5000 (grub_relocator_firmware_get_max_events: count): Likewise.
5001 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
5003 (grub_relocator_firmware_fill_events_iter): ... this.
5004 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
5005 hook): Likewise. Rename to ...
5006 (grub_relocator_alloc_chunk_align_iter): ... this.
5007 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
5009 (generate_e820_mmap_iter): ... this.
5010 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
5012 (count_hook): ... this.
5013 (grub_linux_boot: hook): Likewise. Rename to ...
5014 (grub_linux_boot_mmap_find): ... this.
5015 (grub_linux_boot: hook_fill): Likewise. Rename to ...
5016 (grub_linux_boot_mmap_fill): ... this.
5017 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
5018 hook): Likewise. Rename to ...
5019 (grub_fill_multiboot_mmap_iter): ... this.
5020 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
5021 hook): Likewise. Rename to ...
5022 (count_hook): ... this.
5023 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
5024 hook): Likewise. Rename to ...
5025 (grub_fill_multiboot_mmap_iter): ... this.
5026 * grub-core/loader/powerpc/ieee1275/linux.c
5027 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
5028 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
5029 Likewise. Rename to ...
5030 (alloc_phys_choose): ... this.
5031 (determine_phys_base: get_physbase): Likewise.
5032 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
5033 find_hook): Likewise.
5034 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
5035 (malloc_hook: count_hook): Likewise.
5036 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
5037 Likewise. Rename to ...
5038 (lower_hook): ... this.
5039 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5040 (upper_hook): ... this.
5041 (grub_mmap_get_post64: hook): Likewise. Rename to ...
5042 (post64_hook): ... this.
5043 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
5044 Likewise. Rename to ...
5045 (lower_hook): ... this.
5046 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5047 (upper_hook): ... this.
5048 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
5049 (grub_mmap_iterate: fill_hook): Likewise.
5050 (fill_mask): Pass addr and mask within a single struct.
5051 (grub_cmd_badram: hook): Make static instead of nested. Rename
5053 (badram_iter): ... this.
5054 (grub_cmd_cutmem: hook): Likewise. Rename to ...
5055 (cutmem_iter): ... this.
5057 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5059 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
5060 delimit path in strings using quotes.
5061 * util/getroot.c (grub_guess_root_devices): Likewise.
5062 (grub_make_system_path_relative_to_its_root): Likewise.
5063 * util/grub-probe.c (probe): Likewise.
5064 * util/ieee1275/ofpath.c (find_obppath): Likewise.
5065 (xrealpath): Likewise.
5067 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5069 Fix compilation with older compilers.
5071 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
5072 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
5074 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
5075 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
5076 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
5078 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
5079 * include/grub/crypto.h: Add type defines.
5080 * util/import_gcrypth.sed: Remove duplicate type defines.
5082 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5084 New command list_trusted.
5086 * grub-core/commands/verify.c (grub_cmd_list): New function.
5088 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
5090 * util/grub-mkimage.c (generate_image): Fix "size of public key"
5093 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
5095 Remove nested functions from PCI iterators.
5097 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
5098 passed to hook. Update all callers to pass appropriate hook data.
5099 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
5100 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
5101 Remove NESTED_FUNC_ATTR from here and from all users.
5102 (grub_pci_iterate): Update prototype.
5103 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
5104 instead of nested. Rename to ...
5105 (grub_cs5536_find_iter): ... this.
5106 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
5107 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
5109 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
5111 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
5113 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
5115 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
5116 * grub-core/video/radeon_fuloong2e.c
5117 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
5118 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
5119 find_card): Likewise.
5120 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
5123 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5125 * grub-core/commands/verify.c: Mark messages for translating.
5127 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5129 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
5132 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5134 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
5137 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5139 * autogen.sh: Do not try to delete nonexistant files.
5140 * util/import_gcrypth.sed: Add some missing header removals.
5142 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
5144 Clean up dangling references to grub-setup.
5145 Fixes Ubuntu bug #1082045.
5147 * docs/grub.texi (Images): Refer generally to grub-install rather
5148 than directly to grub-setup.
5149 (Installing GRUB using grub-install): Remove direct reference to
5151 (Device map) Likewise.
5152 (Invoking grub-install): Likewise.
5153 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5154 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5155 * util/grub-install.in (usage): Likewise.
5157 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
5158 Apply to grub-bios-setup and grub-sparc64-setup rather than to
5160 * configure.ac: Remove grub_setup output variable.
5162 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
5164 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
5165 grub-setup to grub-sparc64-setup.
5167 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5169 Import gcrypt public-key cryptography and implement signature checking.
5171 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5173 * grub-core/fs/ntfs.c: Ue more appropriate types.
5174 * grub-core/fs/ntfscomp.c: Likewise.
5175 * include/grub/ntfs.h: Likewise.
5177 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5179 Support Apple FAT binaries on non-Apple platforms.
5181 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
5182 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
5184 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
5187 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5189 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
5192 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
5194 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
5195 explicitly zeroing elements.
5196 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
5197 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
5198 of elements in a structure already allocated using grub_zalloc.
5199 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
5201 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
5203 * docs/grub.texi (grub_cpu): New subsection.
5204 (grub_platform): Likewise.
5206 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5208 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
5210 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5212 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
5215 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5217 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
5218 * grub-core/fs/ntfscomp.c: Likewise.
5219 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
5220 (grub_ntfs_comp): Likewise.
5222 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5224 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
5226 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
5227 of groups_per_block. All users updated.
5229 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5231 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
5232 grub_error properly.
5233 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
5234 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
5236 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5238 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
5239 always in /boot/zfs.
5240 Reported by: Yuta Satoh.
5242 2013-01-03 Yuta Satoh <nigoro>
5244 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
5247 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5249 * configure.ac: Extend -Wno-trampolines to host.
5251 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5253 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
5256 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
5258 * docs/grub.texi (Invoking grub-mkrelpath): New section.
5259 (Invoking grub-script-check): Likewise.
5261 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
5263 * docs/grub.texi (Invoking grub-mount): New section.
5264 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
5266 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
5268 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
5269 test failures, so that a failing unit test correctly causes 'make
5272 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
5274 Fix failing printf test.
5276 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
5277 '$' in the correct order when collecting type information.
5279 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
5281 * docs/grub.texi (configfile): Explain environment variable
5283 (source): New section.
5284 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
5286 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
5288 Remove several trivially-unnecessary uses of nested functions.
5290 * grub-core/commands/i386/pc/sendkey.c
5291 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
5293 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
5295 (legacy_file_getline): ... this.
5296 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
5298 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
5299 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
5301 (probe_dummy_iter): ... this.
5302 * grub-core/kern/i386/coreboot/mmap.c
5303 (grub_linuxbios_table_iterate: check_signature): Likewise.
5304 * grub-core/kern/parser.c (grub_parser_split_cmdline:
5305 check_varstate): Likewise. Mark inline.
5306 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
5307 an additional parameter.
5308 (find_long: fnd_long): Likewise. Pass two additional parameters.
5309 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
5310 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
5311 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
5312 Likewise. Rename to ...
5313 (grub_cmos_find_port_iter): ... this.
5314 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
5316 (find_rtc_iter): ... this.
5318 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
5319 function directly into the function body, since it is only called
5322 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
5324 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
5325 __attribute__ ((unused)).
5326 * grub-core/video/bochs.c (find_card): Likewise.
5327 * grub-core/video/cirrus.c (find_card): Likewise.
5328 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
5329 * grub-core/video/sis315pro.c (find_card): Likewise.
5330 * grub-core/video/sm712.c (find_card): Likewise.
5332 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
5334 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
5335 Fixes Savannah bug #37821.
5337 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
5339 Apply program name transformations at build-time rather than at
5340 run-time. Fixes Debian bug #696465.
5342 * acinclude.m4 (grub_TRANSFORM): New macro.
5343 * configure.ac: Create output variables with transformed names for
5345 * util/bash-completion.d/grub-completion.bash.in: Use
5346 pre-transformed variables for program names.
5347 * util/grub-install.in: Likewise.
5348 * util/grub-kbdcomp.in: Likewise.
5349 * util/grub-mkconfig.in: Likewise.
5350 * util/grub-mkconfig_lib.in: Likewise.
5351 * util/grub-mknetdir.in: Likewise.
5352 * util/grub-mkrescue.in: Likewise.
5353 * util/grub-mkstandalone.in: Likewise.
5354 * util/grub-reboot.in: Likewise.
5355 * util/grub-set-default.in: Likewise.
5356 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5357 * tests/util/grub-shell-tester.in: Remove unused assignment.
5358 * tests/util/grub-shell.in: Likewise.
5359 * util/grub.d/00_header.in: Likewise.
5361 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
5363 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
5365 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
5367 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
5369 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5371 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
5372 Reported by: Eriks Latosheks <foresterlv>.
5374 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5376 * docs/grub.texi (Network): Update instructions on generating netboot
5379 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5381 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
5382 around device name if necessarry.
5384 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5386 * util/grub-install.in: Follow the symbolic link parameter added
5387 to the file command.
5389 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
5391 * util/grub-install.in: Remove stale TODO.
5393 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5395 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
5396 dynamic allocation for the bootpath buffer.
5398 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
5400 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
5403 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5405 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
5406 argument rather than font name. All users updated.
5407 (grub_gfxterm_set_window): Likewise.
5409 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
5411 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
5414 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5416 * util/getroot.c (convert_system_partition_to_system_disk): Support
5419 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5421 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
5422 infinite loop on corrupted FS.
5424 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5426 Fix big-endian mtime.
5428 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
5429 together sec and usec.
5430 (grub_ufs_dir): Use correct byteswapping for UFS time.
5432 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5434 Support big-endian UFS1.
5436 * Makefile.util.def (libgrubmods): Add ufs_be.c
5437 * grub-core/Makefile.core.def (ufs1_be): New module.
5438 * grub-core/fs/ufs_be.c: New file.
5439 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
5442 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
5444 * include/grub/types.h: Fix functionality unaffecting typo in
5445 GRUB_TARGET_WORDSIZE conditional macro.
5447 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5449 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
5451 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5453 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
5454 that /netbsd appears first (when it exists).
5456 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
5458 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
5459 Fixes Savannah bug #37558.
5461 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
5463 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
5464 description of extract_entries_configfile.
5466 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
5468 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
5470 (grub_cmd_linux): Likewise.
5471 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
5472 preferred_lifetime. Update all users.
5474 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
5476 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
5477 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
5479 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
5481 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
5482 errors from grub-probe to /dev/null, not stdout.
5484 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
5486 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
5489 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
5491 * util/grub-install.in: Make the error message if $source_dir
5492 doesn't exist more useful.
5494 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
5496 Fix grub-emu build on FreeBSD.
5498 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
5499 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
5501 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
5502 implementation is currently Linux-specific.
5503 * util/getroot.c (exec_pipe): Define only on Linux or when either
5504 libzfs or libnvpair is unavailable.
5505 (find_root_devices_from_poolname): Remove unused path variable.
5507 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
5509 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
5510 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
5511 should fit before end == 63.
5513 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
5515 * util/grub-setup.c (write_rootdev): Remove unused core_img
5516 parameter. Update all callers.
5517 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
5518 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
5521 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5523 * util/grub-mkconfig_lib.in (grub_tab): New variable.
5524 (grub_add_tab): New function.
5525 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
5526 * util/grub.d/10_illumos.in: Likewise.
5527 * util/grub.d/10_kfreebsd.in: Likewise.
5528 * util/grub.d/10_linux.in: Likewise.
5529 * util/grub.d/10_netbsd.in: Likewise.
5530 * util/grub.d/10_windows.in: Likewise.
5531 * util/grub.d/10_xnu.in: Likewise.
5532 * util/grub.d/20_linux_xen.in: Likewise.
5533 * util/grub.d/30_os-prober.in: Likewise.
5535 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5537 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5538 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
5539 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
5540 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
5541 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
5543 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5544 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
5546 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5548 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
5550 Reported by: BURETTE, Bernard.
5552 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
5554 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
5557 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
5559 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
5560 IEEE1275 machines. Fixes powerpc-emu compilation.
5561 * include/grub/terminfo.h: Likewise.
5563 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5565 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
5567 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
5569 (efiemu_set_variable): Make vendor_guid a const pointer.
5571 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5573 Don't require grub-mkconfig_lib to generate manpages for programs.
5575 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
5576 dependencies, don't add grub-mkconfig_lib.
5577 (program): Pass empty adddeps.
5578 (script): Pass grub-mkconfig_lib as adddeps.
5580 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5582 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
5583 * util/getroot.c (grub_find_device): Likewise.
5584 (get_mdadm_uuid): Likewise.
5585 (grub_util_is_imsm): Likewise.
5586 (grub_util_pull_device): Likewise.
5587 * util/grub-probe.c (probe): Likewise.
5589 2012-09-10 Benoit Gschwind <gschwind>
5591 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
5592 (devs): Add devpath_8.
5594 2012-09-08 Peter Jones <pjones@redhat.com>
5596 * grub-core/Makefile.core.def (efifwsetup): New module.
5597 * grub-core/commands/efi/efifwsetup.c: New file.
5598 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
5599 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
5601 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
5603 2012-09-05 Jiri Slaby <jslaby@suse.cz>
5605 * configure.ac: Add SuSe path.
5607 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
5611 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
5613 * util/import_gcry.py: Sort cipher_files, to make build system
5614 generation more deterministic.
5616 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5618 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
5619 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
5620 (grub_set_datetime): Likewise.
5622 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5624 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
5627 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5629 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
5631 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5633 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
5635 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5637 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
5638 required for checkouts from bzr, but it may be useful for users or
5639 distributors wishing to update translations against a tarball
5640 distribution, and it can be helpful for the tarball to be a superset
5643 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5645 * Makefile.am (EXTRA_DIST): Add
5646 grub-core/tests/boot/linux.init-mips.S,
5647 grub-core/tests/boot/linux.init-ppc.S, and
5648 grub-core/tests/boot/linux-ppc.cfg.
5650 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5652 * grub-core/mmap/mips/loongson: Remove empty directory.
5654 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5656 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
5659 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5661 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
5664 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5666 * configure.ac: Strengthen the test for working -nostdinc -isystem.
5668 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5670 * po/POTFILES.in: Regenerated.
5672 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5674 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
5675 (NetBSD): New subsection.
5677 2012-07-22 Ales Nesrsta <starous@volny.cz>
5679 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
5680 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
5682 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5684 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
5685 * util/grub.d/10_hurd.in: Add missing quoting.
5686 * util/grub.d/10_illumos.in: Likewise.
5687 * util/grub.d/10_kfreebsd.in: Likewise.
5688 * util/grub.d/10_linux.in: Likewise.
5689 * util/grub.d/20_linux_xen.in: Likewise.
5691 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5693 New command `lsefi'.
5695 * grub-core/Makefile.core.def (lsefi): New module.
5696 * grub-core/commands/efi/lsefi.c: New file.
5697 * include/grub/efi/api.h: Add more GUIDs.
5699 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5701 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
5702 (grub_bsd_elf32_hook): Likewise.
5703 (grub_bsd_elf64_size_hook): Likewise.
5704 (grub_bsd_elf64_hook): Likewise.
5705 (grub_bsd_load_elf): Likewise.
5707 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5709 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
5710 if hash function is unavailable.
5711 (dec_stream_header): Likewise.
5713 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5715 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
5718 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5720 Fix coreboot compilation.
5722 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
5723 (grub_vga_text_init_real): ... this.
5724 (grub_vga_text_fini): Rename to ...
5725 (grub_vga_text_fini_real): ... this.
5727 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5729 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
5731 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5733 * grub-core/lib/legacy_parse.c: Support clear and testload.
5735 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5737 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
5739 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5741 * grub-core/fs/ext2.c: Experimental support for 64-bit.
5743 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5745 * grub-core/net/tftp.c (ack): Fix endianness problem.
5746 (tftp_receive): Likewise.
5747 Reported by: Michael Davidsaver.
5749 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5751 * gentpl.py: Make mans depend on grub-mkconfig_lib.
5753 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5755 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
5756 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
5757 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
5759 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5761 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
5763 Reported by: Stuart Hayes.
5765 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5767 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
5769 * grub-core/Makefile.core.def (mda_text): New module.
5770 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
5771 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
5772 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
5773 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
5775 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
5776 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
5777 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
5779 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
5781 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
5783 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
5785 * grub-core/term/i386/vga_common.c: Removed.
5786 * include/grub/i386/vga_common.h: Likewise.
5787 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
5788 (grub_vga_cr_bw_read): Likewise.
5789 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5790 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5791 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5792 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5793 grub_vga_cr_read/grub_vga_cr_write.
5794 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5796 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5798 * configure.ac: Bump version to 2.00.
5799 * grub-core/normal/main.c (features): Add feature_200_final.
5801 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5802 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5804 * NEWS: Fix unclarity and language mistakes.
5806 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5808 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5809 additional size to 3 pages.
5810 Reported by: Stuart Hayes.
5812 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5814 * NEWS: Add 2.00 entry.
5816 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5818 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5819 put explicit "/" for empty path.
5820 (wildcard_expand): Improve dprintf.
5822 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5824 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5825 it's equal to currnode. This can happen with "" symlink.
5827 2012-06-27 Yves Blusseau <blusseau@zetam.org>
5829 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5830 echo shell command by printf command.
5832 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5834 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5835 the value returned by firmware is the maximal position, not diumension.
5836 (grub_terminfo_output_state): Use a more sane fallback.
5838 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5840 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5842 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5844 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5845 frequency to 150 MHz.
5847 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5851 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5853 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5855 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5857 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5859 Handle slash in HFS label.
5861 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5862 (grub_hfs_dir): Tanslate slash.
5863 (grub_hfs_label): Don't translate slash.
5865 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5867 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5868 network protocol listing since it introduces problematic dependency on
5871 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5873 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5875 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5877 Init video early on yeeloong to avoid being rebooted by watchdog.
5879 * grub-core/Makefile.am (gensm712): New target.
5880 (sm712_start.S): Likewise.
5881 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5882 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5883 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5885 * include/grub/vga.h: Move registry definitions to...
5886 * include/grub/vgaregs.h: ... here.
5888 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5890 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5893 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5895 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5896 platforms with firmware disk drivers in the core.
5898 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5900 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5901 informative verbose message.
5902 (read_lv): Handle 64-bit segment size.
5904 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5906 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5908 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5910 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5911 character but still remove trainling spaces.
5912 (grub_fat_label): Ignore archive flag.
5914 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5916 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5917 cast between linux_kernel_header and linux_kernel_params.
5919 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5921 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
5923 (grub_raid6_recover_func_t): Likewise.
5924 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
5925 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5927 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5929 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
5931 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5935 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
5936 [__NetBSD__]: Add explicit cast before bitshift.
5938 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5940 * configure.ac: Bump to 2.00~rc1.
5942 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5944 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
5947 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5948 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
5950 * docs/grub.texi: Fix search syntax.
5951 (Multi-boot manual config): Put msdos rather than GPT example.
5952 Grammar corrections.
5954 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5956 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
5958 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5960 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
5962 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5964 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
5965 message on double free. Put the value of magic in case of mismatch.
5967 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5969 Speed-up video on yeeloong.
5971 * grub-core/video/sm712.c (framebuffer): Remove render_target and
5973 (grub_video_sm712_video_fini): Unmap cached_ptr.
5974 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
5975 (grub_video_sm712_set_active_render_target): Removed.
5976 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5977 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
5980 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5982 Avoid flushing the same line multiple times on loongson.
5984 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
5985 Step in 32 bytes and not 1 byte.
5986 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
5989 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5991 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
5994 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5996 Implement flow control for http.
5998 * grub-core/net/http.c (parse_line): Handle response 206.
5999 (http_receive): Stall if too many packets are in the queue.
6000 (http_establish): Fix range header.
6001 (http_seek): Fix double free.
6002 (http_close): Likewise.
6003 (http_packets_pulled): New function.
6004 (grub_http_protocol): Set http_seek
6005 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
6006 (ack_real): Set window depending on i_stall.
6007 (grub_net_send_tcp_packet): Likewise.
6008 (grub_net_tcp_stall): New function.
6009 (grub_net_tcp_unstall): Likewise.
6010 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
6011 (grub_net_tcp_unstall): Likewise.
6013 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6015 * grub-core/net/tftp.c: Decrease stall to 50 packets.
6017 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6019 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
6021 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6023 * tests/util/grub-shell.in: Fix a typo.
6025 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6027 Implement flow control for tftp.
6029 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
6030 packets but stop only if stop condition is satisfied.
6031 (grub_net_fs_read_real): Call packets_pulled after real read. Use
6032 `stall' instead of `eof' as stop condition.
6033 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
6034 (http_err): Likewise.
6035 * grub-core/net/tftp.c (ack): Replace the first argument with data
6037 (tftp_receive): Stall if too many packets are in wait queue.
6038 (tftp_packets_pulled): New function.
6039 (grub_tftp_protocol): Set packets_pulled.
6040 * include/grub/net.h (grub_net_packets): New field count.
6041 (grub_net_put_packet): Increment count.
6042 (grub_net_remove_packet): Likewise.
6043 (grub_net_app_protocol): New field `packets_pulled'.
6044 (grub_net): New field `stall'.
6046 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6048 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
6049 sync part to handle them.
6051 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6053 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
6054 * grub-core/net/drivers/ieee1275/ofnet.c
6055 (grub_ieee1275_net_config_real): Likewise.
6057 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6059 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
6060 the direct route for server/gateway.
6062 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6064 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
6065 IP address to server name since we may not hame the DNS.
6067 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6069 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
6070 freeing random buffer on failure.
6071 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
6073 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6075 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
6077 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6079 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
6081 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
6082 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
6083 Handle malloc error correctly.
6085 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6087 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
6090 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6092 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
6095 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6097 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
6098 none is explicitly specified.
6100 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6102 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
6105 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6107 Respect netmask from bootp/dhcp.
6109 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
6110 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
6111 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
6113 (grub_net_add_ipv4_local): ... this.
6114 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
6115 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
6116 (grub_net_add_ipv4_local): New proto.
6118 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6120 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
6121 determining EFI memory map size.
6123 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6125 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
6127 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6129 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
6130 when looking for partition separator.
6132 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6134 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6137 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6139 Restructure FAT driver to avoid hook in label reading as it hits a
6142 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
6143 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
6144 (grub_fat_iterate_dir): Split into ...
6145 (grub_fat_iterate_init): ... this, ...
6146 (grub_fat_iterate_fini): ... this, ...
6147 (grub_fat_iterate_dir_next): ... and this. All users updated.
6149 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6151 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6152 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
6153 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6154 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
6155 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
6156 New fields last_key and last_key_time.
6157 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
6158 extended key-esc into extended key-extended key.
6160 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6162 Avoid unnecessary memcpy of whole video buffer.
6164 * grub-core/video/fb/video_fb.c (dirty): New struct.
6165 (framebuffer): Add members current_dirty and previous_dirty.
6166 (dirty): New function.
6167 (grub_video_fb_fill_rect): Update dirty.
6168 (common_blitter): Likewise.
6169 (grub_video_fb_scroll): Likewise.
6170 (doublebuf_blit_update_screen): Copy only dirty part.
6171 (doublebuf_pageflipping_update_screen): Likewise.
6172 (grub_video_fb_doublebuf_blit_init): Init dirty.
6173 (doublebuf_pageflipping_init): Likewise.
6174 (grub_video_fb_setup): Likewise.
6176 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6178 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
6181 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6183 Fix wildcard regexp dot and other special characters handling.
6184 Reported by: Robert Mabee.
6186 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
6187 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
6188 (split_path): Trigger expansion on '?'.
6189 (unescape): New function.
6190 (wildcard_expand): Unescape parts copied without globbing.
6191 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
6192 (grub_script_arglist_to_argv): Don't unescape expansions.
6194 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6196 * include/grub/net.h (grub_net_card): New member txbufsize.
6197 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
6198 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6199 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
6200 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
6202 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
6203 compatible property to check for macs. Set
6204 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6205 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
6206 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
6207 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
6208 (send_card_buffer): Use txbuf.
6209 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
6210 nested function out of the parent while on it.
6212 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6214 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
6216 (grub_ieee1275_net_config_real): Fix config pointer.
6218 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6220 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
6221 filename parsing to non-block devices.
6223 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6225 * grub-core/kern/device.c (grub_device_open): Remove dead code.
6227 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6229 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
6232 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6234 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
6235 UUID search command even if hints probing failed.
6237 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6239 * po/POTFILES.in: Regenerated.
6241 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
6243 Speed-up video on fuloong.
6245 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
6247 (grub_pci_device_unmap_range): Handle non-cached address.
6248 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
6250 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
6251 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
6252 (grub_video_sis315pro_set_active_render_target): Removed.
6253 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
6254 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
6255 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
6257 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
6260 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6262 * docs/grub.texi (Multi-boot manual config): New section.
6264 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6266 Avoid slow read-back from VRAM.
6268 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
6270 * grub-core/video/fb/video_fb.c
6271 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
6272 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
6273 (front_target): Remove front_target. Add pages.
6274 (grub_video_fb_init): Skip setting front_pages.
6275 (grub_video_fb_fini): Likewise.
6276 (doublebuf_blit_update_screen): Use pages.
6277 (grub_video_fb_doublebuf_blit_init): Likewise.
6278 (doublebuf_pageflipping_init): Allocate offscreen buffer.
6279 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
6280 (grub_video_fb_setup): Prefer doublebuffing.
6282 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6284 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
6287 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6291 * tests/util/grub-shell.in: Handle loongson.
6292 * tests/partmap_test.in: Add loongson to the list of platform using ATA
6294 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
6295 Reboot instead of shutdown if REBOOT is defined.
6297 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6299 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
6300 sized ports since unlike on real hardware qemu supports only 32-bit
6303 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6305 * Makefile.util.def (grub-mkrescue): Enable on loongson.
6306 * util/grub-mkrescue.in: Handle loongson.
6308 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6310 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
6311 Set is_part appropriately.
6312 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
6313 names. Canonicalize partition without full disk.
6315 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6317 Revert usb-quiesce since it's wrong.
6319 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
6320 (grub_ofdisk_init): Don't do quiesce.
6322 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6324 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
6325 PowerMac workaround to Xserves as well.
6326 Information supplied by: Benjamin Herrenschmidt.
6328 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6330 Don't assume that beginning address is also the entry point on ppc.
6332 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
6333 (grub_linux_boot): Use linux_entry.
6334 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
6335 (grub_linux_load64): Likewise.
6337 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6339 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
6341 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6343 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
6344 needlessly lose the console.
6346 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6348 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
6351 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6353 Remove non-functional EFI grub_get_rtc. Put a better fatal message
6354 than current grub_get_rtc() not implemented when booted with
6355 coreboot without TSC.
6357 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
6358 Add machine/time.h to kernel headers on loongson.
6359 * grub-core/Makefile.core.def (kernel): Remove
6360 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
6361 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
6362 (grub_get_rtc): Likewise.
6363 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
6364 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
6365 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
6366 * grub-core/kern/i386/tsc.c (grub_tsc_init)
6367 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
6368 rather than installing known non-working time source.
6369 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
6370 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
6371 * include/grub/time.h: Don't include machine/time.h.
6372 * include/grub/efi/time.h: Removed.
6373 * include/grub/i386/efi/time.h: Likewise.
6374 * include/grub/i386/ieee1275/time.h: Likewise.
6375 * include/grub/powerpc/ieee1275/time.h: Likewise.
6376 * include/grub/sparc64/ieee1275/time.h: Likewise.
6377 * include/grub/x86_64/efi/time.h: Likewise.
6379 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6381 Remove dot on i and j when combining with above diacritics.
6383 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
6385 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
6386 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
6387 with dotless variants when any combining above is present.
6389 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6391 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
6392 text and not binary.
6394 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6396 Stop polling as soon as we have the packet we were waiting for.
6398 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
6400 * grub-core/net/arp.c (have_pending): New var.
6401 (pending_req): Likewise.
6402 (grub_net_arp_send_request): Fill pending_req and use have_pending as
6404 (grub_net_arp_receive): Set have_pending.
6405 * grub-core/net/dns.c (recv_data): New field stop.
6406 (recv_hook): Set stop.
6407 (grub_net_dns_lookup): Init stop and use as stop condition.
6408 * grub-core/net/http.c (http_establish): Use headers_recv as stop
6410 * grub-core/net/net.c (grub_net_poll_cards): New argument
6411 stop_condition. Stop when it goes true.
6412 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
6414 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
6416 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6418 Keep TX and RX buffers on EFI rather than always allocate new ones.
6420 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
6421 card. All users updated.
6422 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
6423 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
6424 (get_card_packet): Likewise.
6425 (grub_efinet_findcards): Init new fields.
6427 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6429 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
6430 compilation error on sparc64.
6432 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6434 Use ITC on IA64 rather than broken routine based on daytime.
6436 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
6438 (grub_get_rtc) [__ia64__]: Likewise.
6439 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
6440 (get_itc): New function.
6441 (grub_rtc_get_time_ms): Likewise.
6442 (grub_machine_init): Calibrate ITC.
6443 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
6444 Keep only on non-ia64. Don't export since it's broken and used only
6445 if TSC is unavailable.
6447 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6449 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
6451 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
6452 Skip if parent is unused.
6454 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6456 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
6458 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6460 Fix wildcard escaping.
6462 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
6463 * grub-core/script/execute.c (wildcard_escape): .. to here.
6465 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
6466 * grub-core/script/execute.c (wildcard_unescape): .. to here.
6468 * grub-core/script/execute.c (gettext_append): Always escape.
6469 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
6470 * grub-core/script/yylex.l: Don't cut away the escaping.
6471 * tests/grub_script_echo1.in: Add tests with wildcard.
6473 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6475 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
6476 (ftdi_hw_configure): Likewise.
6477 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
6479 (real_config): Handle 1.5 stop bits.
6480 (pl2303_hw_configure): Likewise.
6482 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6484 * Makefile.am: Add ppc linux bootcheck.
6485 * grub-core/tests/boot/linux-ppc.cfg: New file.
6486 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
6488 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6490 * tests/grub_script_expansion.in: Skip network protocols.
6492 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6494 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
6496 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6498 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
6502 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6504 ESCC serial driver for conducting sautomated tests in qemu.
6505 Not tested on real hardware.
6507 * include/grub/serial.h (grub_serial_port): New field escc_desc.
6508 * grub-core/term/ieee1275/escc.c: New file.
6509 * grub-core/Makefile.core.def (escc): New module.
6511 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6513 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
6515 (serial_hw_fetch): Don't read invalid handle.
6516 (serial_hw_put): Don't write into invalid handle.
6518 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6520 Add a 1.5 stop bits value.
6522 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
6523 * include/grub/serial.h (grub_serial_stop_bits_t): Add
6524 GRUB_SERIAL_STOP_BITS_1_5.
6526 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6528 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
6529 value rather than let it uninited.
6531 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6533 * grub-core/commands/wildcard.c (+check_file): New function.
6534 (wildcard_expand): Don't expand to non-existing files, expand with
6535 suffix and not attempt to expand if not needed.
6537 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6539 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
6540 out of partitions containing other partitions.
6542 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6544 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
6545 on some qemu versions with GRUB.
6547 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
6549 (grub_openbsd_bootarg_pcibios): New struct.
6550 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
6553 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6555 * tests/util/grub-shell.in: Trim firmware output on EFI.
6557 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6559 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
6560 and coreboot since it's already in kernel.
6562 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6564 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
6565 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6566 to here. New return value start. All users updated.
6567 Recursively scan linear mappings.
6568 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
6570 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6571 Use grub_util_get_dm_node_linear_info.
6572 * util/getroot.c (convert_system_partition_to_system_disk): Use
6573 grub_util_info rather than grub_dprintf.
6574 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
6576 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6578 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
6580 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
6581 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
6583 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6585 * include/grub/types.h (grub_set_unaligned64): New function.
6586 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
6589 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6591 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
6592 (grub_ofdisk_fini): Quiesce USB devices.
6594 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6596 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
6599 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6601 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
6603 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6605 * grub-core/disk/pata.c (grub_pata_pio_read)
6606 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
6607 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6609 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6611 Extend automated tests to qemu-mips.
6613 * Makefile.am: reorganise tests and enable qemu-mips.
6614 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
6615 * grub-core/tests/boot/linux.init-mips.S: New file.
6616 * tests/partmap_test.in: Handle ata0 disks.
6617 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
6620 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6622 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
6624 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
6627 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6629 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
6630 (grub_halt): Likewise.
6631 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
6633 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6635 * grub-core/term/serial.c (grub_serial_register)
6636 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
6637 the behaviour in line with x86 platforms.
6639 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6641 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
6642 (grub_ata_strncpy): Likewise.
6643 (grub_ata_identify): Add missing byteswaps.
6645 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6647 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
6649 (screen_read_char): Likewise.
6650 (grub_vga_text_cls): Likewise.
6652 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6654 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
6656 (make_file_path): Likewise.
6658 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6660 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
6662 Tested by: Paulo Flabiano Smorigo.
6663 Crucial information about API supplied by: Coleen <Last name unknown>.
6664 Reviewed by: Coleen <Last name unknown>.
6666 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6668 * util/grub-mkimage.c: Disable -Wcast-align.
6670 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6672 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
6675 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6677 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
6679 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6681 * util/grub-probe.c (escape_of_path): Fix double free.
6683 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6685 * grub-core/commands/videoinfo.c (hook): Show pitch.
6687 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6689 * util/grub.d/20_linux_xen.in: Skip xen-syms.
6691 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6693 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
6694 (probe): Add ieee1275 to OFW devices.
6696 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6698 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
6700 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6702 Handle IBM OFW path.
6704 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
6706 (of_path_of_scsi): Handle vdevice.
6708 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6710 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
6711 Allocate in multiples of 16 to avoid adding a few bytes free region the
6714 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6716 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
6717 Allocate in multiples of 16 to avoid adding a few bytes free region the
6719 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
6721 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6723 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
6725 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
6726 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
6728 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
6730 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
6732 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6734 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
6735 resulted in \\ at the end of the line.
6737 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6739 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
6740 (grub_parser_cmdline_state): Likewise.
6741 (grub_parser_split_cmdline): Likewise.
6743 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6745 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
6746 /dev/root and /dev/dm-*.
6748 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6750 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
6751 fix partially stale display.
6753 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6755 * grub-core/normal/menu_entry.c (backward_char): Use right line for
6758 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6760 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
6761 Fix MBR remapping workaround.
6762 (grub_util_biosdisk_read) [__linux__]: Likewise.
6764 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
6766 * util/grub-install.in: Check for ieee1275 and not ieee1276.
6768 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6770 * configure.ac: Bump to beta6.
6772 2012-05-31 Christer Weinigel <christer@weinigel.se>
6774 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
6776 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6778 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
6779 (grub_cmd_linux): Likewise.
6781 2012-05-31 Christer Weinigel <christer@weinigel.se>
6785 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
6786 (GRUB_EHCI_MULT_TWO): Likewise.
6787 (GRUB_EHCI_MULT_THREE): Likewise.
6788 (GRUB_EHCI_CMASK_MASK): New enum value.
6789 (GRUB_EHCI_SMASK_MASK): Likewise.
6790 (GRUB_EHCI_CMASK_OFF): Likewise.
6791 (GRUB_EHCI_SMASK_OFF): Likewise.
6792 (grub_ehci_pci_iter): Enable periodic schedule.
6793 (grub_ehci_parse_notrun): Likewise.
6794 (grub_ehci_restore_hw): Likewise.
6795 (grub_ehci_setup_qh): Set flags for low speed transfers.
6796 (grub_ehci_find_qh): Use periodic list for low speed.
6797 (grub_ehci_setup_transfer): Check periodic queue as well.
6798 (grub_ehci_check_transfer): Likewise.
6799 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6801 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6803 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6806 2012-05-31 Peter Jones <pjones@redhat.com>
6808 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6809 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6810 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6812 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6814 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6815 uninited variable. Allocate at least setup_sects.
6817 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6819 Fix handling of EFI with big memory maps.
6821 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6822 (real_mode_mem): Likewise.
6823 (real_mode_target): Likewise.
6824 (real_mode_pages): Likewise.
6825 (prot_mode_pages): Likewise.
6826 (linux_params): New var.
6827 (linux_cmdline): Likewise.
6828 (free_pages): Don't set real mode variables.
6829 (allocate_pages): Don't allocate real mode memory.
6830 (grub_e820_add_region): Remove the limit.
6831 (grub_linux_boot): Allocate and copy real mode memory.
6832 (grub_linux_unload): Free linux_cmdline.
6833 (grub_cmd_linux): Use temporary storage for parameters.
6834 (grub_cmd_initrd): Likewise.
6835 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6836 (linux_kernel_params): Make it 1K big.
6838 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6840 * Makefile.util.def: Remove -Wno-format.
6841 * grub-core/Makefile.core.def: Likewise.
6843 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6845 * tests/cmp_unit_test.c: Add missing failure message.
6846 * tests/example_unit_test.c: Likewise.
6847 * tests/printf_unit_test.c: Likewise.
6849 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6851 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6852 relaxation of protective MBR requirements.
6854 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6856 * configure.ac: Add condition for COND_HOST_XNU.
6857 * Makefile.util.def (10_xnu): New script.
6858 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6860 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6862 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6865 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6867 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6868 Binary on other platforms stays identical.
6870 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6872 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6875 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6877 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6879 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6881 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6882 rather than defining size_t ourselves to avoid conflict.
6884 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6886 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6887 initialisation to avoid __bzero reference.
6889 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6891 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6893 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6894 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6895 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6896 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6897 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6899 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6901 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6902 * grub-core/kern/misc.c: Likewise.
6903 * grub-core/loader/i386/xnu.c: Likewise.
6904 * include/grub/i386/tsc.h: Likewise.
6905 * include/grub/symbol.h: Likewise.
6907 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6909 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6910 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6913 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6915 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6916 Implement Apple flavour.
6917 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6919 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6921 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
6922 (memmove) [__APPLE__]: Likewise.
6923 (memcpy) [__APPLE__]: Likewise.
6924 (memset) [__APPLE__]: Likewise.
6925 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
6926 (memmove) [__APPLE__]: Likewise.
6927 (memcpy) [__APPLE__]: Likewise.
6928 (memset) [__APPLE__]: Likewise.
6930 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6932 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
6935 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6937 * grub-core/normal/main.c (read_config_file): Provide config_file and
6939 * util/grub.d/41_custom.in: Use config_directoy when available.
6941 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6943 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
6944 (grub_bfs_dir): Likewise.
6946 2012-05-27 Peter Jones <pjones@redhat.com>
6948 The old code gives arguments to a printf function which can't work
6949 correctly, and the compiler complains.
6951 * grub-core/tests/example_functional_test.c (example_test): Add
6953 * grub-core/tests/lib/test.c (add_failure): Rewrite.
6954 * include/grub/test.h (grub_test_assert_helper): New declaration.
6955 (grub_test_assert): Use grub_test_assert_helper.
6957 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6959 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
6960 (exfctest): ... this to avoid overlong filenames.
6963 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6965 Handle "." and ".." on squashfs.
6967 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
6968 Make inode numbers into stack.
6969 (grub_squash_read_symlink): Use stack.
6970 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
6971 (make_root_node): Fill stack.
6972 (grub_squash_open): Use stack.
6974 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6976 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
6979 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6981 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
6982 stderr on test calls.
6984 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6986 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
6988 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6990 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
6992 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6994 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
6997 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6999 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
7000 (grub_hfsplus_iterate_dir): Add "." and "..".
7002 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7004 * grub-core/fs/cpio.c (canonicalize): Handle "..".
7005 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
7007 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7009 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
7010 (find_path): Handle "." and "..".
7012 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7014 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
7015 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
7016 (grub_affs_iterate_dir): Handle hardlinks.
7018 2012-05-26 Matthew Garrett <mjg@redhat.com>
7020 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
7021 (grub_efi_console_fini): Likewise.
7022 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
7023 (grub_video_gop_fill_mode_info): Rename to ...
7024 (grub_video_gop_fill_real_mode_info): ... this.
7025 (grub_video_gop_fill_mode_info): New function.
7026 (grub_video_gop_setup): Setup double framebuffer.
7027 (grub_video_gop_get_info_and_fini): Use original framebuffer.
7029 (grub_video_gop_swap_buffers): Copy framebuffer.
7030 (grub_video_gop_fini): Free offscreen buffer.
7031 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
7033 (grub_efi_gop_blt_pixel): New struct.
7035 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7037 * gentpl.py: Remove error disabling for objconv.
7039 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7041 * configure.ac: Remove -Wunitialized as it's not available on older
7044 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7046 Fix extent overflow comparator.
7048 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
7049 (grub_hfsplus_read_block): Set type.
7050 (grub_hfsplus_cmp_extkey): Compare type.
7052 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
7054 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
7056 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7058 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
7061 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7063 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
7064 (dejavu_bold_14.pf2): New target.
7066 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7068 * configure.ac: Fix djvu font detection.
7070 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7072 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
7073 ext* instead of ext2.
7075 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7077 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
7080 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
7082 * docs/grub-dev.texi: Remove dot from .png.
7084 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7086 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
7087 protective entry in any slot.
7088 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
7089 if protective entry is found in any slot.
7091 Protective entry in non-first slot make no sense but is a widespread
7094 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7096 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
7098 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7100 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
7102 (grub_reiserfs_open): Don't free root.
7104 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7106 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
7107 after freeing for safety.
7109 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7111 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
7112 Reported by: Jordan Uggla.
7114 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
7116 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
7117 actual implementation. Specifically, clarify that the grub menu will
7118 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
7121 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
7123 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
7126 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7128 Remove unjustified hard dependency of normal.mod on gfxterm.
7130 * include/grub/term.h (grub_term_output): New member fullscreen.
7131 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
7132 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
7133 (grub_gfxterm): Set .fullscreen.
7134 * grub-core/normal/menu.c (menu_init): Use fullscreen.
7135 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
7137 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7139 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
7140 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7141 Mention case-insensitive AFFS, SFS and JFS.
7143 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7145 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
7147 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7149 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7152 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7154 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
7155 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
7157 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7159 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
7160 (grub_jfs_mount): Fill caseins.
7161 (grub_jfs_find_file): Respect caseins.
7163 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7165 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
7168 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7170 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
7171 New argument origpath. All users updated.
7173 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7175 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
7176 (read_attr): Ensure that we read start of possibly compressed block.
7178 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7180 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
7181 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
7184 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7186 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
7187 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
7188 (dejavu.pf2): Replace with ...
7189 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
7192 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7194 * util/grub.d/20_linux_xen.in: Add missing line.
7196 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7198 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
7199 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
7200 (grub_utf16_to_utf8): Likewise.
7202 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7204 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
7205 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
7206 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7207 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
7208 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7209 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
7211 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7213 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7216 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7218 * grub-core/fs/udf.c (read_string): Bail out on size=0.
7219 (grub_udf_read_symlink): Handle read_string failure.
7221 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7223 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
7226 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7228 Fix handling of UDF symlinks.
7230 * grub-core/fs/udf.c (read_string): New argument outbuf.
7232 (grub_ufs_read_symlink): Rename to ...
7233 (grub_udf_read_symlink): ... this. All users updated.
7234 Handle symlinks with more than one component.
7236 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7238 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
7239 symlinks. Replace leading colon with a slash.
7241 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7243 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
7246 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7248 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
7249 match in inner node.
7251 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7253 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
7254 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
7255 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
7256 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
7257 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
7258 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
7259 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
7260 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
7261 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
7263 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
7265 Use grub-probe and not cmp to check that disk is empty.
7267 * util/grub-install.in: Use grub-probe for zero-check.
7268 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
7269 (probe): Handle PRINT_ZERO_CHECK.
7270 (argp_parser): Handle -t zero_check.
7272 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
7274 Flush block cache on adding disk to device map.
7276 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
7277 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
7279 (read_device_map): Likewise.
7280 (open_device): Flush on opening.
7282 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7284 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
7285 (handle_symlink): Fix off-by-one error.
7286 Canonicalize the target.
7287 (grub_cpio_dir): Canonicalize the name.
7290 (grub_cpio_open): Canonicalize the name.
7292 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7294 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
7297 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7299 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
7300 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
7302 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7304 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
7305 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
7308 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7310 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
7313 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7315 Fix UFS1 big file support.
7317 * grub-core/fs/ufs.c (INODE): Removed.
7318 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
7320 (INODE_MODE): Simplify.
7321 (grub_ufs_inode): Use uint64_t for size and not int64_t.
7322 (grub_ufs_lookup_symlink): Don't use INODE.
7324 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7326 Fix minixfs with non-power-of-two blocks since it's supported by minix.
7328 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
7329 (grub_minix_data): Replace log_block_size with block_size.
7330 (grub_minix_read_file): Use block_size but avoid 64-bit division.
7331 (grub_minix_mount): Fill block_size.
7333 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7335 * configure.ac: Bump to beta5.
7337 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7339 Fix wrapped HFS+ handling.
7341 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
7342 blocks_start. All users updated.
7343 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
7345 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
7347 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7349 Fix long symlinks on reiserfs.
7351 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
7352 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
7353 (grub_reiserfs_iterate_dir): Save size for non-directories.
7354 (grub_reiserfs_open): Don't reread stat block as we already know the
7356 (grub_reiserfs_read): Split into...
7357 (grub_reiserfs_read_real): ... and ...
7358 (grub_reiserfs_read): ...this.
7360 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7362 Fix non-indexed JFS.
7364 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
7365 (grub_jfs_data): New field namecomponentlen.
7366 (grub_jfs_mount): Fill namecomponentlen.
7367 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
7369 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
7372 * tests/grub_script_echo1.in: Add tests.
7374 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7376 * util/grub-install.in: Ignore empty devicetree directory.
7378 2012-05-08 Bean <bean123ch@gmail.com>
7380 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
7382 (free_rsm): Free header as well.
7383 (free_old_fragments): Fix memory leak.
7384 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
7385 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
7386 (destroy_pq): Likewise.
7387 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
7389 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7391 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
7392 resulting hash as a precaution.
7394 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7396 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
7397 '_' in variable names.
7398 * grub-core/net/net.c (grub_net_network_level_interface_register):
7401 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7403 Fix AFFS with non-512B blocks.
7405 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
7406 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
7407 (grub_affs_data): Replace blocksize with log_blocksize.
7408 (grub_affs_read_block): Fix non-512B blocks.
7409 (grub_affs_read_symlink): Likewise.
7410 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
7411 (grub_affs_read): Fix non-512B blocks.
7412 (grub_affs_label): Likewise.
7413 (grub_affs_mtime): Likewise.
7414 (grub_affs_mount): Fix block detection routine.
7416 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7418 Add filesystem mtime to AFFS.
7420 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
7421 (aftime2ctime): New function.
7422 (grub_affs_dir): Use aftime2ctime.
7423 (grub_affs_label): Fix return value.
7424 (grub_affs_mtime): New function.
7425 (grub_affs_fs): Add mtime.
7427 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7429 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
7432 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7434 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
7437 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7439 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
7441 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7443 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
7445 (FLAGS_CASE_SENSITIVE): New enum value.
7446 (cache_entry): New struct.
7447 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
7448 cache_size and cache.
7449 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
7450 Add log_blocksize and fshelp_flags.
7451 (grub_sfs_read_extent): Handle non-512 blocks.
7452 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
7453 (grub_sfs_read_file): Handle non-512 blocks.
7454 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
7456 (grub_sfs_read_symlink): Handle non-512 blocks.
7457 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
7458 (grub_sfs_dir): Free cache.
7459 (grub_sfs_close): Likewise.
7461 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7463 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
7466 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7468 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
7470 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7472 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
7474 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7476 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
7477 (grub_sfs_read_extent): Likewise.
7478 (grub_sfs_read_block): Likewise.
7479 (grub_sfs_mount): Likewise.
7480 (grub_sfs_iterate_dir): Likewise.
7481 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
7482 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
7484 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7486 Fix errors on compressed NTFS with 512B clusters.
7488 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
7490 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
7492 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
7493 Relax check for inline extents.
7494 (ntfscomp): Return correct -1 on error and not 0.
7496 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7498 * util/grub-install.in: Fix handling of prefix containing spaces.
7500 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
7503 (grub_squash_read_data): Fix offset byte-swapping.
7505 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7507 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
7508 per common usage and preffered in several parts of code.
7509 (grub_memcmp): Likewise.
7510 (grub_strncmp): Likewise.
7511 * include/grub/misc.h (grub_strcasecmp): Likewise.
7512 (grub_strncasecmp): Likewise.
7513 * Makefile.util.def (cmp_test): New test.
7514 (grub_script_strcmp): Likewise.
7515 * tests/cmp_unit_test.c: New file.
7516 * tests/grub_script_strcmp.in: Likewise.
7517 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
7519 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7521 * include/grub/pci.h: Move enums into no-asm part.
7523 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7525 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
7527 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
7529 * util/getroot.c (find_hurd_root_device): Try to make error message
7530 and comments to translators clearer.
7532 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7534 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
7536 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7538 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
7541 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7543 * docs/grub.cfg: Update.
7545 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7547 * docs/grub.texi (PXE): Remove not present variables.
7549 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/net/net.c (defserver_set_env): New function.
7552 (defserver_get_env): Likewise.
7553 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
7555 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7557 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
7560 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7562 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
7563 * grub-core/kern/emu/hostdisk.c: Likewise.
7565 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7567 Handle hurd userspace partitions.
7569 * util/getroot.c (find_hurd_root_device): New function.
7570 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
7572 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7574 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
7576 Reported by: Bastian Blank.
7578 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7580 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
7581 crossing page boundary.
7583 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7585 Fix B-tree search in BFS, especially in presence of non-ASCII
7588 * grub-core/fs/bfs.c (bfs_strcmp): New function.
7589 (find_in_b_tree): Use standard bsearch + btree algorithm.
7591 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7593 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
7596 2012-05-03 Matthew Garrett <mjg@redhat.com>
7597 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7599 Suspend broadcom cards in order to stop their DMA.
7601 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
7602 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
7603 (pci): Don't build on x86 EFI.
7604 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
7605 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
7607 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
7608 stop_broadcom if running on EFI.
7609 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
7610 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
7611 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
7612 (grub_pci_find_capability): New proto.
7614 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7616 * docs/grub.texi: Remove dot from the extension as it apparently
7617 doesn't work with some makeinfo versions.
7619 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7621 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
7622 with GRUB expectance.
7624 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7626 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
7628 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7630 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
7631 zero after directory block since last entry may be not 0-terminated if
7632 it ends on block boundary. Use continue instead of if spanning whole
7635 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7637 Support 4K sectors UDF inline files.
7639 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
7640 (grub_udf_extended_file_entry): Likewise.
7641 (grub_fshelp_node): Name the anonymous union. Put block at the end.
7643 (get_fshelp_size): New function.
7644 (grub_udf_read_icb): Read whole block.
7645 (grub_udf_iterate_dir): Likewise.
7646 (grub_udf_dir): Likewise.
7647 (grub_udf_open): Likewise.
7649 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7651 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
7653 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7655 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
7656 inline symlinks in addition to workaround.
7658 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7660 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
7662 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7664 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
7666 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7668 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
7670 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7672 Fix reiserfs big seek times.
7674 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
7675 exact. All users updated.
7676 (grub_reiserfs_read): Use nearest btree search for seeking.
7677 Fix return value on error.
7679 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7681 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
7683 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
7684 * docs/grub.texi: Update menuentry description.
7686 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7688 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
7689 crash when embedding onto filesystem.
7691 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7693 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
7696 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7698 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
7700 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7702 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
7705 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7706 2012-05-01 Bean <bean123ch@gmail.com>
7708 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
7710 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7712 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
7713 Special behaviour for len = 0 to read whole file isn't used anywhere and
7714 can cause buffer ovewrflows in several places.
7716 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7718 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
7720 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7722 Handle RAIDZ on non-512B sectors.
7724 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
7725 max_children_ashift.
7726 (fill_vdev_info_real): Fill max_children_ashift.
7727 (read_device): Use max_children_ashift.
7729 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7731 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
7733 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7735 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
7737 * docs/grub.texi: Update device.map parts.
7739 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7741 Don't scan into non-diskfilter devices having diskfilter names.
7743 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
7744 (scan_disk): New argument accept_diskfilter. Fix recursion depth
7746 (scan_disk_hook): New function.
7748 2012-04-29 Bean <bean123ch@gmail.com>
7750 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
7753 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
7755 * configure.ac: Detect starfield theme font path
7756 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
7758 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7760 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
7761 geometry on serial consoles.
7763 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7765 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
7766 because of network consoles.
7768 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7770 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
7773 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7775 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
7778 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7780 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
7781 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
7783 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7785 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
7786 Allocate at lest 8192 for temporary buffer as required for lzo.
7788 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7790 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7791 to cluster_bits, since it's already added in.
7792 (grub_fat_read_data): Likewise.
7794 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7796 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7797 as long as cluster size is multiple of 512 bytes.
7799 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7801 * util/grub-mkrescue.in: Fix locale directory.
7803 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7805 * grub-core/kern/emu/hostdisk.c (map): Make static.
7807 2012-04-23 Bean <bean123ch@gmail.com>
7809 * util/grub-fstest.c (fstest): Add missing break.
7811 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7815 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7816 not define nr variable.
7817 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7818 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7819 grub_find_device): Do not define.
7821 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7823 Fix kfreebsd compile and behaviour.
7825 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7827 * util/getroot.c: Fix wait.h include.
7828 (grub_guess_root_devices): Error if grub_find_device fails.
7829 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7830 (grub_util_get_dev_abstraction): Likewise.
7831 (grub_util_pull_device): Likewise.
7832 (grub_util_get_grub_dev): Likewise.
7833 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7835 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7837 Fix and unify wholedisk detection.
7839 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7840 is_part. All users updated.
7841 (device_is_wholedisk): Removed.
7842 (grub_util_biosdisk_get_grub_dev): Use is_part.
7844 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7846 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7849 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7851 * configure.ac: Bump to beta4.
7853 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7855 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7856 --fs-uuid --set UUID syntax.
7858 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7860 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7863 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7865 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7867 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
7869 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7871 2012-04-18 Mike Gilbert <floppym@gentoo.org>
7873 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7875 2012-04-18 Bean <bean123ch@gmail.com>
7877 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7880 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7882 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7884 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7885 corresponding to GRUB partitions.
7886 (grub_util_biosdisk_write): Likewise.
7888 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7890 Scan mdraid before LVM.
7892 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7893 (grub_diskfilter_register_front): ... this.
7894 (grub_diskfilter_register_back): New function.
7895 All users of grub_diskfilter_register updated.
7897 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7899 * util/grub-install.in: Fix an automatic target detection bug.
7901 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7903 * util/grub-install.in: New option --efi-directory.
7905 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7907 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7908 boot services if we have no other choice.
7910 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7912 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7914 * tests/util/grub-shell.in: Update to --directory.
7916 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7918 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
7920 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7922 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
7923 (grub_minix_read_file): Likewise.
7924 (grub_minix_read_inode): Likewise.
7925 (grub_minix_find_file): Likewise.
7926 (grub_minix_dir): Likewise.
7928 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7930 * util/grub-setup.c (setup): Fix partition handling and blocklist
7933 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7935 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
7936 redundant buggy overlap check.
7938 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7940 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
7943 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7945 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
7946 kh.loadflags on pre-2.00 kernels.
7948 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7950 Terminate UNDI and PXE before launching the payload to avoid problems
7953 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
7954 (grub_loader_flags): ... this. All users updated.
7955 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
7956 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
7957 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
7958 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
7960 (grub_pxe_restore): Likewise.
7961 (fini_hnd): New var.
7962 (GRUB_MOD_INIT): Register shutdown hook.
7963 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
7964 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
7965 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
7966 (grub_loader_set): Rename second argument to flags.
7968 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7970 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
7972 (grub_get_num_of_utf8_bytes): New function.
7973 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
7974 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
7976 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
7977 (grub_ucs4_to_utf8): Change return type.
7979 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7981 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
7983 * grub-core/fs/bfs.c (hop_level): Likewise.
7984 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
7986 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7988 * grub-core/lib/adler32.c: Recode due to license unclearness.
7990 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7992 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
7993 (test_header): Likewise.
7995 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7997 Fix --help formatting.
7999 * util/grub-mkconfig_lib.in (print_option_help): New function.
8000 (grub_fmt): Likewise.
8001 * util/grub-install.in: Use print_option_help and grub_fmt.
8002 * util/grub-kbdcomp.in: Likewise.
8003 * util/grub-mkconfig.in: Likewise.
8004 * util/grub-mknetdir.in: Likewise.
8005 * util/grub-mkrescue.in: Likewise.
8006 * util/grub-mkstandalone.in: Likewise.
8007 * util/grub-reboot.in: Likewise.
8008 * util/grub-set-default.in: Likewise.
8009 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8011 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8013 * linguas.sh: Remove autogenerated *.po.
8015 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8017 * po/README: Move language fetcing to ...
8018 * linguas.sh: ... here.
8019 * po/README: Point to linguas.sh.
8021 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8023 * po/README: Exclude ko.po due to disclaimer problems.
8025 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8027 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
8029 (grub_gettext_translate_real): Handle 0th string.
8030 (grub_gettext_translate): Ensure that "" isn't translated.
8032 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8034 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
8035 TRANSLATORS comment.
8036 (grub_diskfilter_print_partmap): Propagate changing of error into
8039 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8041 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
8042 to uint64_t to prevent overflow.
8043 (grub_diskfilter_lv): Increase start_extent and extent_count
8044 to uint64_t to prevent overflow.
8046 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8048 * configure.ac: Increase version.
8050 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8052 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
8054 * po/Rules-translit: New file.
8055 * po/arabic.sed: Likewise.
8056 * po/cyrillic.sed: Likewise.
8057 * po/greek.sed: Likewise.
8058 * po/hebrew.sed: Likewise.
8059 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
8060 * po/Makefile.in.in: Add extra_dist4.
8062 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8064 Handle big-endian minixfs (fixes minixfs tests on bigendian).
8066 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
8067 modify names. Introduce MODE_BIGENDIAN.
8068 * grub-core/fs/minix_be.c: New file.
8069 * grub-core/fs/minix2_be.c: Likewise
8070 * grub-core/fs/minix3_be.c: Likewise.
8071 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
8073 * grub-core/Makefile.core.def (minix_be): New module.
8074 (minix2_be): Likewise.
8075 (minix3_be): Likewise.
8077 2012-04-01 Felix <email@hamburg.de>
8079 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
8080 (devs): Add MBP 2011.
8082 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8084 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
8086 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8088 * grub-core/normal/cmdline.c (print_completion): New field
8090 (grub_cmdline_get): Handle width properly.
8092 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8094 * grub-core/commands/lsacpi.c (options): Add missing terminator.
8096 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8098 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
8099 after 29th of February.
8101 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8103 Fix exfat endianness handling.
8105 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
8106 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
8107 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
8108 Byte-swap utf16 when necessary.
8109 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
8111 2012-03-31 Anton Blanchard <anton@samba.org>
8112 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8114 Fix btrfs endianness handling.
8116 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
8117 (lower_bound): Make root uint64_t. Use root in le.
8118 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
8119 (find_path): Fix template key init.
8120 (grub_btrfs_dir): Fix mtime byteswap.
8121 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
8123 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8125 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
8126 recursion_depth. Break infinite resursions. All users updated.
8128 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8130 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
8132 Reported by: Peter Jones.
8134 2012-03-31 Anton Blanchard <anton@samba.org>
8136 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
8139 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8141 * util/grub-install.in: Fix nvram call for PreP.
8143 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8145 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
8146 the error when some elements are missing into a warning.
8148 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8150 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
8152 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
8154 * docs/grub.texi (Invoking grub-probe): New section.
8155 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
8157 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8159 Fix tab and wide character handling in editor and menu.
8161 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
8162 agglomerate control characters with combining marks.
8163 (bidi_line_wrap): Allow break on tab.
8164 (grub_unicode_get_comb_start): New function.
8165 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
8167 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
8169 * grub-core/normal/term.c (print_ucs4_terminal): New argument
8170 fixed_tab_size. All users updated.
8171 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
8172 (grub_term_getcharwidth): Handle \t.
8173 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
8176 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8178 Handle big-endian mdraid.
8180 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
8181 * grub-core/Makefile.core.def (mdraid09_be): New module.
8182 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
8183 rather than grub_le_to_cpu* and grub_cpu_to_le*.
8184 * grub-core/disk/mdraid_linux_be.c: New file.
8186 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8188 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
8190 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8192 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8193 missing quotes which caused confusion among translators.
8195 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8197 * util/grub-mkconfig_lib.in: Fix typo.
8199 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8201 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
8203 * tests/grub_script_leading_whitespace.in: New file.
8204 * Makefile.util.def (grub_script_leading_whitespace): New test.
8206 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8208 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
8211 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8213 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
8214 starts with control character.
8216 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8218 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
8220 (grub_gdb_outbuf): Likewise.
8222 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8224 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
8225 zero terminator. Fixes a crash.
8227 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8229 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
8231 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
8232 images independently of preffered adderss field.
8234 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8236 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
8237 * grub-core/commands/regexp.c: Likewise.
8238 * grub-core/loader/i386/linux.c: Likewise.
8239 * grub-core/partmap/msdos.c: Likewise.
8240 * grub-core/script/execute.c: Likewise.
8241 * grub-core/term/gfxterm.c: Likewise.
8243 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8245 Add variable parsing in $"..." and fix several mismatches with bash.
8247 * Makefile.util.def (grub_script_gettext): New test.
8248 * grub-core/script/execute.c (parse_string): New function.
8249 (gettext_append): Likewise.
8250 (grub_script_arglist_to_argv): Use gettext_append.
8251 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
8252 * tests/grub_script_gettext.in: New file.
8254 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8256 Fix handling of leading spaces in scripts.
8258 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
8260 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
8261 other than skipping \r. All users updated.
8262 * tests/grub_script_echo1.in: Add space-related tests.
8263 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
8265 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8267 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
8269 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8271 * configure.ac: Bump up the version to beta2.
8273 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8275 Fix gettext reload bugs (e.g. inability to disable gettext
8278 * grub-core/gettext/gettext.c: Encapsulate all static variables in
8279 main_context and secondary_context. All functions updated.
8280 (grub_gettext_translate): Rename to ...
8281 (grub_gettext_translate_real): ... this. Return NULL on failed
8283 (grub_gettext_translate): Handle secondary context.
8284 (grub_gettext_delete_list): Close file and zero-out the context.
8285 (grub_mofile_open): Don't call grub_gettext_delete_list.
8287 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
8288 if locale="" to avoid pointless error message.
8289 (grub_gettext_env_write_lang): Update lang even if load fails.
8290 Handle secondary context.
8291 (grub_gettext_reread_prefix): New function.
8292 (read_main): Likewise.
8293 (read_secondary): Likewise.
8294 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
8295 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
8296 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
8297 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
8299 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8301 * configure.ac: Decrease warning level to avoid spurious warnings and
8302 to be able to compile with GCC 4.2.
8303 * Makefile.util.def: Remove -Wno-error=logical-op.
8305 2012-03-10 William Bittner <william.bittner@gmail.com>
8307 * util/import_unicode.py: Add missing brackets around string for
8310 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8312 Fix efi chainloader on network root.
8314 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
8316 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
8319 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8321 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
8322 unused show_text member.
8323 * docs/grub.texi: Document "text" property.
8325 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8327 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
8330 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8332 Fix IMSM handling on Fedora.
8334 * util/getroot.c (grub_util_is_imsm): New function.
8335 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
8337 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8339 * Makefile.am: Strip gold section.
8340 * conf/Makefile.common: Likewise.
8341 * gentpl.py: Likewise.
8342 * grub-core/Makefile.core.def: Likewise.
8343 * grub-core/genmod.sh.in: Likewise.
8345 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8347 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
8348 * util/grub.d/20_linux_xen.in: Likewise.
8349 Based on Debian patch.
8351 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8353 * util/grub.d/10_linux.in: Fix syntax error resulting in
8354 Richard Laager's patch.
8355 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
8357 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8359 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
8362 2012-03-10 Richard Laager <rlaager@wiktel.com>
8364 * util/grub.d/10_linux.in: Fix ZFS root passing.
8366 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8368 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8369 * grub-core/commands/xnu_uuid.c: Likewise.
8370 * grub-core/loader/efi/appleloader.c: Likewise.
8371 * grub-core/script/execute.c: Likewise.
8372 * grub-core/script/main.c: Likewise.
8373 * util/grub-mkfont.c: Likewise.
8375 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8377 * util/grub-mkfont.c (options): Use more appropriate "select" that
8378 "set" for face index.
8380 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8382 * util/grub-editenv.c (options): Gettextize command summaries.
8384 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8386 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
8387 "out of memory" error messagge.
8389 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8391 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
8392 of diskfilter for diskfilter on diskfilter support.
8394 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8396 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
8398 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8400 * util/grub-install.in: Check for themes/starfield/theme.txt and not
8403 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8405 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
8407 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8409 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
8411 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8413 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
8416 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8418 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
8420 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8422 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
8424 * util/grub-install.in: Fix and gettextize error message.
8426 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8428 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
8430 * util/grub-mount.c (options): Likewise.
8432 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8434 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
8436 * grub-core/commands/search_wrap.c (options): Likewise.
8438 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8440 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
8442 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8444 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
8446 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
8449 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8451 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
8452 "temporary" since it's used in identifier and is limited in space.
8454 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8456 * po/POTFILES.in: Regenerate. Include *.h since they contain
8457 translatable strings as well.
8459 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8461 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
8462 byte-swap on big-endian.
8463 Reported by: Lennart Sorensen
8465 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8467 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
8468 (allocate_pages): Improve dprintf.
8469 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
8470 code32_start. Fill code32_start and kernel_alignment in params.
8471 (grub_cmd_initrd): Use prot_init_space.
8473 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8475 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
8477 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8479 * util/grub-install.in: Add missing dot at the end of sentence.
8481 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8483 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8484 * grub-core/commands/videotest.c: Likewise.
8485 * grub-core/loader/i386/linux.c: Likewise.
8487 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8489 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
8491 Reported by: Milo Casagrande.
8493 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8495 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
8496 * grub-core/commands/gptsync.c: Likewise.
8497 * grub-core/commands/hashsum.c: Likewise.
8498 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8499 * grub-core/commands/legacycfg.c: Likewise.
8500 * grub-core/io/gzio.c: Likewise.
8501 * grub-core/net/net.c: Likewise.
8502 * grub-core/term/gfxterm.c: Likewise.
8503 * grub-core/term/terminfo.c: Likewise.
8504 * grub-core/tests/test_blockarg.c: Likewise.
8505 * grub-core/video/video.c: Likewise.
8506 * util/grub-install.in: Likewise.
8507 * util/grub-mkfont.c: Likewise.
8509 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8511 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
8513 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8515 * grub-core/commands/search_wrap.c (options): Fix a typo.
8516 Reported by: David Prévot.
8518 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8520 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
8523 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8525 * util/grub-script-check.c (main): Fix a syntax error message which was
8528 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8530 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
8532 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8534 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
8537 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8539 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
8541 * util/grub-mount.c (options): Likewise.
8543 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8545 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
8547 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8549 * grub-core/net/http.c: Add TRANSLATORS comments.
8550 * grub-core/normal/cmdline.c: Likewise.
8551 * grub-core/normal/misc.c: Likewise.
8552 * grub-core/partmap/msdos.c: Likewise.
8553 * grub-core/parttool/msdospart.c: Likewise.
8554 * grub-core/script/execute.c: Likewise.
8555 * grub-core/script/main.c: Likewise.
8556 * grub-core/term/terminfo.c: Likewise.
8557 * grub-core/video/bitmap.c: Likewise.
8558 * util/grub-install.in: Likewise.
8559 * util/grub-mkimage.c: Likewise.
8560 * util/grub-mklayout.c: Likewise.
8561 * util/grub-setup.c: Likewise.
8563 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8565 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
8566 with similar messages in grub-fstest.
8568 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8570 * util/grub-install.in: Unify "option requires an argument" message
8571 with similar messages in other files.
8572 * util/grub-mkconfig.in: Likewise.
8574 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8576 * util/grub-set-default.in: Replace printf with gettext_printf (the
8577 string in in question is already translated from grub-reboot)
8579 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8581 * configure.ac: Bump up the version to beta1.
8583 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8585 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
8586 case when min_align = 0.
8588 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8590 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
8591 and fix a case when line_start overflows.
8593 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8595 * util/grub-reboot.in (usage): Mention id posibility.
8596 * util/grub-set-default.in (usage): Likewise.
8598 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8600 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
8601 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
8602 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8603 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8604 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8605 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8606 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8608 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8610 * grub-core/commands/menuentry.c (options): Remove
8611 GRUB_ARG_OPTION_REPEATABLE.
8612 Reported by: Andreas Vogel
8614 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
8616 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
8618 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
8620 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
8623 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8625 Use sort -V by the idea of Georgi Georgiev.
8627 * util/grub-mkconfig_lib.in (version_sort): New function.
8628 (version_test_numeric): Use version_sort.
8630 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8632 Use submenus in grub-mkconfig.
8634 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
8635 * util/grub-mkconfig_lib.in (grub_quote): New function.
8636 (gettext_printf): Use gettext and not gettext_quoted to fix several
8638 * util/grub.d/10_hurd.in: Use submenus.
8639 * util/grub.d/10_kfreebsd.in: Likewise.
8640 * util/grub.d/10_linux.in: Likewise.
8641 * util/grub.d/10_netbsd.in: Likewise.
8642 * util/grub.d/20_linux_xen.in: Likewise.
8643 * util/grub.d/30_os-prober.in: Likewise.
8644 * util/grub.d/10_illumos.in: Add missing quoting.
8645 * util/grub.d/10_windows.in: Likewise.
8647 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8649 Fix menu title instability bug.
8651 * grub-core/commands/menuentry.c (options): New option --id.
8652 (grub_normal_add_menu_entry): New argument id. All users updated.
8653 (grub_cmd_menuentry): Handle --id.
8654 (grub_menu_init): Accept unknown arguments.
8655 * grub-core/normal/main.c (features): Add feature_menuentry_id and
8656 feature_menuentry_options.
8657 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
8659 (get_entry_number): Match with id as well.
8660 * include/grub/menu.h (grub_menu_entry): New member id.
8661 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
8662 * util/grub.d/00_header.in: Define menuentry_id_option.
8663 * util/grub.d/10_hurd.in: Define id.
8664 * util/grub.d/10_illumos.in: Likewise.
8665 * util/grub.d/10_kfreebsd.in: Likewise.
8666 * util/grub.d/10_linux.in: Likewise.
8667 * util/grub.d/10_netbsd.in: Likewise.
8668 * util/grub.d/10_windows.in: Likewise.
8669 * util/grub.d/20_linux_xen.in: Likewise.
8670 * util/grub.d/30_os-prober.in: Likewise.
8672 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8674 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
8675 "scope" with "body".
8677 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8679 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
8680 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
8681 prot_size and prot_file_size.
8683 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8685 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
8686 All users updated. If easily=1 require raid-5/-6 to be full.
8687 (is_node_readable): Likewise.
8688 (scan_devices): Scan incomplete but readable LVs at the end.
8689 (grub_diskfilter_memberlist): Pull missing devices.
8690 (insert_array): Skip scanning until device is complete or scan is
8692 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
8694 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
8695 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
8697 2012-03-03 Matthew Garrett <mjg@redhat.com>
8698 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8700 Avoid EFI boot services when loading Linux.
8702 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
8703 avoid_efi_bootservices. All users updated.
8704 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
8705 argument avoid_efi_bootservices. All users updated.
8706 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
8707 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
8708 align, min_align, relocatable, prefered_address. All users updated.
8709 Allocate avoiding boot services if kernel is relocatable.
8710 (grub_cmd_linux): Check if kernel is relocatable.
8711 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
8712 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
8713 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
8714 avoid_efi_boot_services.
8715 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
8716 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
8717 (linux_kernel_params): Likewise.
8719 2012-03-03 Matthew Garrett <mjg@redhat.com>
8720 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8724 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
8726 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
8727 modes. Set gop_handle.
8728 (grub_video_gop_get_edid): New function.
8729 (grub_gop_get_preferred_mode): Likewise.
8730 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
8731 (grub_video_efi_gop_adapter): Set .get_edid.
8732 * include/grub/efi/edid.h: New file.
8733 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
8735 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8737 * util/grub-install.in: Load efivars unconditionally.
8739 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8741 * po/Rules-piglatin: Change suffix from .po-update-en to
8742 .po-update-en-piglatin.
8744 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8748 * po/piglatin.sed: New file.
8749 * po/en@piglatin.header: Likewise.
8750 * po/Rules-piglatin: Likewise.
8751 * po/README: Add en@piglatin to autogenerated languages.
8753 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8755 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
8757 * grub-core/commands/hdparm.c (options): Use "Display" rather than
8758 "Check" since we don't check anything.
8759 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
8761 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
8762 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
8763 (grub_md_sha512_real): Likewise.
8765 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8767 * grub-core/commands/gptsync.c: Fix typographic quoting.
8768 * grub-core/commands/ieee1275/suspend.c: Likewise.
8769 * grub-core/commands/parttool.c: Likewise.
8770 * grub-core/commands/search_wrap.c: Likewise.
8771 * grub-core/commands/videoinfo.c: Likewise.
8772 * grub-core/gfxmenu/gui_label.c: Likewise.
8773 * grub-core/hello/hello.c: Likewise.
8774 * grub-core/kern/emu/main.c: Likewise.
8775 * grub-core/net/net.c: Likewise.
8776 * grub-core/normal/menu.c: Likewise.
8777 * grub-core/normal/menu_text.c: Likewise.
8778 * grub-core/normal/misc.c: Likewise.
8779 * util/grub-editenv.c: Likewise.
8780 * util/grub-install.in: Likewise.
8781 * util/grub-kbdcomp.in: Likewise.
8782 * util/grub-mkconfig.in: Likewise.
8783 * util/grub-mknetdir.in: Likewise.
8784 * util/grub-mkrescue.in: Likewise.
8785 * util/grub-mkstandalone.in: Likewise.
8786 * util/grub-reboot.in: Likewise.
8787 * util/grub-set-default.in: Likewise.
8788 * util/grub-setup.c: Likewise.
8789 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8791 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8793 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8794 * grub-core/commands/keystatus.c: Likewise.
8795 * grub-core/commands/loadenv.c: Likewise.
8796 * grub-core/commands/probe.c: Likewise.
8797 * grub-core/commands/regexp.c: Likewise.
8798 * grub-core/commands/true.c: Likewise.
8799 * grub-core/commands/videoinfo.c: Likewise.
8800 * grub-core/disk/cryptodisk.c: Likewise.
8801 * grub-core/disk/ldm.c: Likewise.
8802 * grub-core/disk/loopback.c: Likewise.
8803 * grub-core/disk/luks.c: Likewise.
8804 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8805 * grub-core/kern/disk.c: Likewise.
8806 * grub-core/kern/emu/hostdisk.c: Likewise.
8808 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8810 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8811 * util/grub-install.in: Add missing quote in the comment.
8813 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8815 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8816 * grub-core/commands/lsmmap.c: Likewise.
8817 * grub-core/commands/minicmd.c: Likewise.
8818 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8819 * grub-core/commands/regexp.c: Likewise.
8820 * grub-core/gdb/gdb.c: Likewise.
8821 * grub-core/term/gfxterm.c: Likewise.
8822 * util/grub-mkconfig.in: Likewise.
8823 * util/grub-mkfont.c: Likewise.
8824 * util/grub-mklayout.c: Likewise.
8825 * util/grub-mknetdir.in: Likewise.
8826 * util/grub-mkrescue.in: Likewise.
8827 * util/grub.d/30_os-prober.in: Likewise.
8829 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8831 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8832 with "Direct color" and "Packed" with "Packed pixel".
8833 (grub_cmd_videoinfo): Simplify legend.
8835 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8837 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8838 absolutely unclear error message.
8840 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8842 * util/grub-mkstandalone.in: Remove confusing leftover print.
8844 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8846 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8848 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8849 (GRUB_MOD_INIT): Likewise.
8850 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8852 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8854 * util/grub-install.in (usage): Likewise.
8855 Spell ID in whole letters.
8856 Add missing ending dot.
8858 * util/grub-reboot.in: Fix capitalisation.
8859 * util/grub-set-default.in: Likewise.
8861 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8863 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8864 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8865 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8866 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8867 Disable -Werror for -Wdeprecated-declarations.
8868 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8869 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8870 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8871 (grub_util_get_grub_dev): Make luks handling dependent on
8872 HAVE_DEVICE_MAPPER and not __linux__.
8873 (get_win32_path): Fix format security.
8874 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8875 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8876 Don't try grub_find_zpool_from_dir.
8877 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8878 #ifdef-out paresdir.
8880 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8882 * util/grub-pe2elf.c (usage): Add missing noreturn.
8883 (write_section_data): Rename name to shname to avoid shadowing.
8884 (write_symbol_table): Rename name to symname to avoid shadowing.
8885 Fix write_reloc_section call.
8887 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8889 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8890 to ensure that it's after the last byte of .text.
8892 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8894 * util/ieee1275/ofpath.c (my_isdigit): New function.
8895 (trailing_digits): Use my_isdigit.
8896 (strip_trailing_digits): Likewise.
8898 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8900 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8901 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8903 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/kern/i386/pc/startup.S: Define __start.
8907 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8909 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8910 strip already transforms he format.
8912 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8914 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8916 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8918 * util/grub-install.in: Add missing gettext init.
8919 * util/grub-kbdcomp.in: Likewise.
8920 * util/grub-mkconfig.in: Likewise.
8921 * util/grub-mknetdir.in: Likewise.
8922 * util/grub-mkrescue.in: Likewise.
8923 * util/grub-mkstandalone.in: Likewise.
8924 * util/grub-reboot.in: Likewise.
8925 * util/grub-set-default.in: Likewise.
8926 * util/grub.d/00_header.in: Likewise.
8927 * util/grub.d/10_hurd.in: Likewise.
8928 * util/grub.d/10_windows.in: Likewise.
8929 * util/grub.d/30_os-prober.in: Likewise.
8930 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8932 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8934 * po/Rules-swiss: Fix header comment.
8936 2012-02-29 Andreas Vogel <anvoit>
8938 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
8939 resulted in leak of arguments.
8941 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8943 * grub-core/boot/i386/pc/startup_raw.S: Use separate
8944 reed_solomon_size const definition instead of computing it since
8945 Apple assembler doesn't support the later.
8947 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8949 * gentpl.py (kernel): Rewrite Apple part.
8951 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8953 * include/grub/kernel.h (FOR_MODULES): Check module magic.
8955 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8957 * util/grub-mkimagexx.c (locate_sections): Support non-standard
8959 (load_image): Likewise.
8961 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8963 * configure.ac: Fix a typo in previous commit.
8965 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8967 Don't add -Wl,-N on Apple platform.
8969 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
8970 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
8972 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8974 * grub-core/Makefile.core.def (lzma_decompress): Use
8975 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
8977 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8979 * grub-core/genmod.sh.in: Rewrite the Apple part.
8981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8983 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
8986 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8988 * acinclude.m4 (grub_CHECK_PIC): New test.
8989 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
8991 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8993 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
8994 to avoid the warning.
8996 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8998 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
8999 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
9000 after. All users updated.
9002 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9004 Use the common size routine in hostfs so we can read disks as well.
9006 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
9007 (grub_util_get_fd_size): ... this. Return size in bytes.
9009 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
9010 grub_util_get_fd_size.
9012 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9014 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
9015 Add blocksize retrieval.
9017 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9019 * configure.ac: Restore CFLAGS after efiemu check.
9021 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9023 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
9026 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9028 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
9030 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9032 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
9033 (grub_cmd_halt): Likewise.
9035 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9037 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
9038 for local arithmetics.
9039 Break %sp init into 2 instructions.
9040 Add 0 byte at the end.
9042 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9044 * grub-core/disk/diskfilter.c (read_segment): Initialise err
9047 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9049 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
9052 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9054 * grub-core/disk/ldm.c (make_vg): Init part.name.
9055 (grub_ldm_detect): Silence spurious warning.
9056 (grub_util_is_ldm): Likewise.
9058 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9060 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
9061 sane value to avoid a spurious warning.
9063 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9065 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
9066 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
9068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9070 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
9071 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
9073 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9075 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
9076 hardcoding the relevant info.
9078 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9080 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
9081 missing const qualifiers.
9082 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
9084 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9086 * util/getroot.c [__APPLE__]: Add missing includes.
9087 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
9089 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9091 * util/grub-mkimage.c (generate_image): Silence spurious warning.
9093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9095 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
9098 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9100 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
9102 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9104 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
9105 and grub_file_close call.
9107 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9109 Add LZSS Mach-O support (needed for new xnu kernelcache).
9111 * grub-core/Makefile.core.def (xnu): Add file lzss.c
9112 * grub-core/loader/lzss.c: New file.
9113 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
9114 on Mach-O open failure.
9115 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
9116 Don't free cmdsXX in uncompressedXX is set.
9117 (grub_macho_file): Init new fields.
9118 New argument is_64bit. All users updated.
9119 Handle compressed. Error out if no suitable architecture is found.
9121 (grub_macho_open): New argument is_64bit. All users updated.
9122 * grub-core/loader/macho32.c: Add defines for new fields.
9123 * grub-core/loader/macho64.c: Likewise.
9124 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
9125 (grub_macho_parse): Handle compressed.
9126 Defer actual processing if compressed.
9127 (grub_macho_cmds_iterate): Decompress if compressed. New argument
9128 "filename". All users updated.
9129 (grub_macho_size): New argument "filename". All users updated.
9130 (grub_macho_get_entry_point): Likewise.
9131 (grub_macho_load): Handle compressed.
9132 * include/grub/macho.h (grub_macho_lzss_header): New struct.
9133 (GRUB_MACHO_LZSS_OFFSET): New define.
9134 (grub_decompress_lzss): New proto.
9135 * include/grub/machoload.h (grub_macho_file): New fields to handle
9137 (grub_macho_contains_macho64): Remove proto.
9138 (grub_macho_contains_macho32): Likewise.
9139 * util/grub.d/30_os-prober.in: Use kernel cache if available.
9141 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9143 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
9145 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9149 * Makefile.am (starfield_theme_files): New var.
9150 (starfield_DATA): Use starfield_theme_files.
9151 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
9152 Add bootcheck-related files.
9153 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
9154 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
9155 and font_char_metrics.txt.
9156 * grub-core/Makefile.core.def (kernel): Update extra_dist.
9157 (setjmp): Add lib/ia64/longjmp.S.
9158 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
9159 * po/POTFILES.in: Regenerate.
9160 * po/Rules-swiss: use DISTFILES.common.extra2 and not
9161 DISTFILES.common.extra1.
9162 * util/devicemap.c: Removed.
9163 * grub-core/lib/i386/relocator_backward.S: Likewise.
9164 * util/import_gcry.py: Remove unused files. Add extra_dist for
9167 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9169 * grub-core/gettext/gettext.c (grub_mofile_open): Call
9170 grub_gettext_delete_list before changing grub_gettext_max to avoid
9171 running out of array bounds.
9173 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9175 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
9176 grub_vga_text_init/grub_vga_text_fini.
9178 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9180 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
9182 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9184 * configure.ac: Bump to 2.00~beta0.
9186 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9188 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
9189 missing initialisation.
9191 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9193 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
9195 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9197 Support v2 xnu boot arguments.
9199 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
9200 New argument fsbfreq_out.
9201 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
9202 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
9204 * grub-core/loader/machoXX.c (grub_macho_load): New argument
9206 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
9207 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
9208 (grub_xnu_boot_params): Rename to ...
9209 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
9210 (grub_xnu_boot_params_v2): New struct.
9212 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9214 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
9215 zeroing of CRC field before computing CRC.
9217 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9219 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
9220 Change order of allocations to decrease fragmentation.
9222 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9224 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
9226 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
9228 Use write-combining MTRR to speed up video with buggy BIOSes.
9230 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
9231 (cpuid): New define.
9234 (mtrr_base): Likewise.
9235 (mtrr_mask): Likewise.
9236 (grub_vbe_enable_mtrr_entry): New function.
9237 (grub_vbe_enable_mtrr): Likewise.
9238 (grub_vbe_disable_mtrr): Likewise.
9239 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
9240 control off to BIOS.
9241 (grub_video_vbe_init): Fill mtrr.
9242 (grub_video_vbe_fini): Disable mtrr.
9243 (grub_video_vbe_get_info_and_fini): Likewise.
9244 (grub_video_vbe_setup): Enable mtrr.
9246 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
9248 * include/grub/partition.h (grub_partition_map): Change prototype of
9249 embed to take a maximum value for nsectors.
9250 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
9251 * include/grub/fs.h (grub_fs): Likewise.
9252 * grub-core/partmap/msdos.c (embed_signatures): New array.
9253 (pc_partition_map_embed): Check for and avoid sectors matching any
9254 of the signatures in embed_signatures, up to max_nsectors.
9255 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
9256 returned sector map to max_nsectors.
9257 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
9258 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
9259 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
9260 * util/grub-setup.c (setup): Allow for the embedding area being
9261 split into multiple blocklists. Tell dest_partmap->embed the
9262 maximum number of sectors we care about.
9264 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9266 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
9267 Specify blocklist_install and reserver_first_sector for all fs.
9268 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
9271 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9273 * util/grub-install.in: Clarify strings.
9274 Fix source dir check.
9276 2012-02-27 Richard Laager <rlaager@wiktel.com>
9278 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
9279 "zfs" and "fuse.zfs" as synonyms.
9281 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9283 * configure.ac: Put platform and target_cpu substitutions back since
9284 they are used for directories.
9286 2012-02-27 Richard Laager <rlaager@wiktel.com>
9287 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9289 * util/grub.d/10_linux.in: Add ZFS-related arguments.
9290 * util/grub.d/20_linux_xen.in: Likewise.
9292 2012-02-27 Richard Laager <rlaager@wiktel.com>
9294 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
9297 2012-02-27 Richard Laager <rlaager@wiktel.com>
9299 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
9302 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9304 Don't use insecure popen in getroot.
9306 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
9307 (exec_pipe): ... here.
9308 (find_root_devices_from_poolname): Use exec_pipe.
9310 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9312 Remove platform and target_cpu replacement.
9314 * configure.ac: Remove platform and target_cpu substitutions.
9315 * tests/util/grub-shell.in: Use modinfo.
9316 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
9319 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9321 Autodetect platform in grub-install but allow override.
9323 * util/grub-install.in: Autodetect platform. Support --target and
9324 --directory. Read platform from modinfo.sh.
9326 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9328 Support btrfs multi-volume probe.
9330 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
9331 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
9332 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
9333 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
9334 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
9335 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
9336 grub_find_root_devices_from_btrfs if on btrfs.
9338 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9340 Remove any awareness of *.c util files about target.
9342 * Makefile.util.def (grub-setup): Split to ...
9343 (grub-bios-setup): ... and this.
9344 (grub-sparc64-setup): ... and this.
9345 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
9346 * docs/man/grub-setup.h2m: Split into ...
9347 * docs/man/grub-sparc64-setup.h2m: ... this.
9348 * docs/man/grub-bios-setup.h2m: ... and this.
9349 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
9350 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
9351 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
9352 (grub_target_addr_t): Remove.
9353 (grub_target_size_t): Remove.
9354 (grub_target_ssize_t): Remove.
9355 * util/grub-install.in: Use new grub-*-setup.
9356 * util/grub-mkimagexx.c (Elf_Word): New define.
9357 (Elf_Half): Likewise.
9358 (Elf_Section): Likewise.
9359 (ELF_ST_TYPE): Likewise.
9360 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
9361 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
9363 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9365 Replace grub_target_addr with more appropriate types.
9367 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
9368 grub_target_addr with grub_addr.
9369 * grub-core/commands/iorw.c (grub_cmd_read): Replace
9370 grub_target_addr with grub_port.
9371 (grub_cmd_write): Likewise.
9372 * grub-core/commands/memrw.c (grub_cmd_read): Replace
9373 grub_target_addr with grub_addr.
9374 (grub_cmd_write): Likewise.
9375 * grub-core/video/efi_uga.c (find_line_len): Likewise.
9377 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9379 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
9380 const qualifier for vendor_guid.
9382 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9384 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
9386 (efiemu_memequal): Likewise.
9387 (find_variable): Likewise.
9389 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9391 Fix missing console prototype on qemu-mips.
9393 * include/grub/mips/qemu_mips/console.h: New file.
9395 2012-02-27 Matthew Garrett <mjg@redhat.com>
9396 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9398 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
9399 * include/grub/efi/efi.h: Likewise.
9400 * include/grub/efi/api.h: Add guid for EFI-specified variables.
9401 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
9402 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
9403 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
9404 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
9405 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
9407 2012-02-27 Matthew Garrett <mjg@redhat.com>
9409 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
9411 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9413 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
9416 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9418 * configure.ac: Remove inappropriate use of program_transform_name
9419 on grubdir and bootdir but allow explicit specification of those
9422 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9424 * util/grub-mknetdir.in (grub_prefix): Removed.
9425 (subdir): Use @bootdirname@ and @grubdirname@.
9427 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9429 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
9431 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9433 * po/POTFILES.in: Regenerated.
9435 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9437 Remove improper use of program_transform_name on pkglibrootdir.
9439 * configure.ac (pkglibrootdir): Removed.
9440 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
9441 * util/grub-mkimage.c: Likewise.
9443 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9445 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
9448 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9450 * util/grub-install.in: Use file identifier if no UUID is available
9451 or user explicitly prompted for it.
9453 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
9455 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
9456 (freebsd_get_zfs): New function.
9457 (grub_freebsd_boot): Pass zfs UUID.
9458 (grub_cmd_freebsd): Set zfs UUID.
9460 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9462 * conf/Makefile.common (platformdir): Base on pkglibdir and not
9465 2012-02-27 Mike Gilbert <floppym@gentoo.org>
9467 Add configure flag to control libzfs integration.
9469 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
9471 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9473 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
9475 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
9478 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9480 Remove grub_{modname}_init and grub_{modname}_fini. They should never
9481 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
9482 be used on non-modules.
9484 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
9485 Rename to grub_boot_init.
9486 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
9487 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
9488 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
9489 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
9490 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
9491 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
9492 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
9493 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
9495 (grub_machine_init): Remove empty inits.
9496 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
9498 (grub_machine_init): Remove empty inits.
9499 * grub-core/term/arc/console.c: Remove explicit proto.
9500 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
9501 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
9502 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9503 grub_at_keyboard_fini.
9504 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
9505 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
9506 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9508 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
9509 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
9510 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9512 * grub-core/term/ieee1275/console.c: Remove explicit proto.
9513 * grub-core/term/serial.c (GRUB_MOD_INIT)
9514 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
9515 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9517 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
9518 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
9519 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9521 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
9522 (GRUB_MOD_FINI): Likewise.
9523 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
9524 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
9525 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9526 grub_video_radeon_fuloong2e_fini.
9527 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
9528 [LOONGSON]: Rename to grub_video_sis315pro_init.
9529 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9530 grub_video_sis315pro_fini.
9531 * grub-core/video/sm712.c (GRUB_MOD_INIT)
9532 [LOONGSON]: Rename to grub_video_sm712_init.
9533 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9534 grub_video_sm712_fini.
9535 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
9536 (grub_at_keyboard_fini): Likewise.
9537 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
9538 Don't declare grub_{modname}_init.
9539 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
9540 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
9542 (grub_keylayouts_fini) [!EMU]: Likewise.
9543 * include/grub/serial.h (grub_serial_init) [!EMU]:
9545 (grub_serial_fini) [!EMU]: Likewise.
9546 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
9548 (grub_terminfo_fini) [!EMU]: Likewise.
9549 * include/grub/video.h (grub_font_init) [!EMU]:
9551 (grub_font_fini) [!EMU]: Likewise.
9552 (grub_gfxterm_init) [!EMU]: Likewise.
9553 (grub_gfxterm_fini) [!EMU]: Likewise.
9554 (grub_video_sm712_init) [!EMU]: Likewise.
9555 (grub_video_sm712_fini) [!EMU]: Likewise.
9556 (grub_video_sis315pro_init) [!EMU]: Likewise.
9557 (grub_video_sis315pro_fini) [!EMU]: Likewise.
9558 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
9559 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
9561 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9563 Make nand a prefix for nand devices.
9565 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
9567 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9569 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
9570 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
9572 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9574 * include/grub/env.h (grub_env_find): Remove prototype.
9575 * grub-core/kern/env.c (grub_env_find): Make static.
9576 (grub_env_set): Remove useless set.
9578 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9580 * grub-core/kern/i386/realmode.S: Remove useless align.
9582 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9584 * include/grub/dl.h (grub_dl_load_file): Don't export.
9586 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9588 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
9591 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9593 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
9595 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
9596 not reloading whole superblock but only the part which is really needed.
9597 Remove useless grub_errors.
9598 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
9601 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9603 Don't export grub_get_rtc.
9605 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
9606 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
9608 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9610 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
9612 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9614 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
9615 argument since it can be deduced from diskfilter. All users updated.
9617 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9621 * include/grub/list.h (grub_prio_list): Removed.
9622 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
9623 GRUB_COMMAND_PRIO_MASK.
9624 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
9625 GRUB_COMMAND_FLAG_ACTIVE.
9626 (grub_prio_list_insert): Removed.
9627 (grub_prio_list_remove): Likewise.
9628 (GRUB_AS_PRIO_LIST): Likewise.
9629 (GRUB_AS_PRIO_LIST_P): Likewise.
9630 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
9631 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
9632 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
9633 * grub-core/kern/command.c (grub_register_command_prio): Inline
9635 (grub_unregister_command): Likewise.
9637 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9639 Fix interrupt mixup from previous commit.
9641 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
9642 (grub_realidt): New var.
9643 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
9645 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
9647 (grub_relocator16_boot): Set grub_relocator16_idt.
9648 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
9649 (LOCAL(realidt)): ... this.
9650 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
9651 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
9652 (grub_realidt): New variable.
9654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9656 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
9657 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
9658 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
9659 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
9661 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
9662 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
9663 * po/POTFILES.in: Regenerate.
9665 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9667 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
9670 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9672 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
9674 (add_length): Likewise.
9676 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9677 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
9679 GDB serial and backtrace support.
9681 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
9682 (prot_to_real): Likewise.
9683 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
9684 * grub-core/Makefile.core.def (backtrace): New module.
9686 * grub-core/gdb/cstub.c: New file.
9687 * grub-core/gdb/gdb.c: Likewise.
9688 * grub-core/gdb/i386/idt.c: Likewise.
9689 * grub-core/gdb/i386/machdep.S: Likewise.
9690 * grub-core/gdb/i386/signal.c: Likewise.
9691 * grub-core/lib/i386/backtrace.c: Likewise.
9692 * grub-core/lib/backtrace.c: Likewise.
9693 * include/grub/backtrace.h: Likewise.
9694 * include/grub/gdb.h: Likewise.
9695 * include/grub/i386/gdb.h: Likewise.
9697 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9699 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
9701 (add_length): Likewise.
9702 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
9703 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
9705 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
9706 __argp_get_display_len.
9708 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9710 $"..." support in scripts.
9712 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
9713 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
9714 * grub-core/script/yylex.l: Likewise.
9715 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
9718 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9720 * gentpl.py: Remove obsolete pkglib_DATA handling.
9722 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9724 Don't transform PACKAGE_TARNAME following a discussion on autoconf
9727 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
9728 * util/grub-kbdcomp.in: Likewise.
9729 * util/grub-mkconfig.in: Likewise.
9730 * util/grub-mkconfig_lib.in: Likewise.
9731 * util/grub-mknetdir.in: Likewise.
9732 * util/grub-mkrescue.in: Likewise.
9733 * util/grub-mkstandalone.in: Likewise.
9734 * util/grub-reboot.in: Likewise.
9735 * util/grub-set-default.in: Likewise.
9736 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9738 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9742 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
9743 * util/grub.d/00_header.in: Compute prefix in the only place it's still
9744 used for backward compatibility.
9746 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9748 Add new all_video module.
9750 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
9751 * grub-core/Makefile.core.def (all_video): New module.
9752 * grub-core/genmoddep.awk: Generate dependency of all_video from
9754 * grub-core/lib/fake_module.c: New file.
9755 * grub-core/normal/main.c (features): Add feature_all_video_module.
9756 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
9757 don't do explicit search again.
9758 insmod all_video in load_video if available.
9760 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9762 Another round of string clarification and adding TRANSLATORS comments.
9764 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9766 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
9768 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9770 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
9772 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
9773 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
9775 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9777 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
9778 trailing newline implicitly. All users updated.
9780 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9782 Implement serial on IEEE1275 and EFI.
9784 * docs/grub.texi (Platform-specific limitations): Fix the columen video
9785 on emu. Mention arc and emu as the only platforms without serial
9787 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
9789 * grub-core/term/efi/serial.c: New file.
9790 * grub-core/term/ieee1275/serial.c: Likewise.
9791 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9792 specification if no ns8250 driver is available.
9793 (grub_cmd_serial): Likewise.
9794 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9795 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9796 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9797 (grub_efi_parity_type_t): New type.
9798 (grub_efi_stop_bits_t): Likewise.
9799 (grub_efi_serial_io_interface): New struct.
9800 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9801 available for all interfaces.
9802 Add EFI and IEEE1275 fields.
9803 (grub_ofserial_init): New proto.
9804 (grub_efiserial_init): Likeiwse.
9805 * util/grub.d/00_header.in: Don't check for the presence of serial
9808 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9810 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9811 name as if it was an alias.
9813 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9815 * grub-core/commands/lsacpi.c (options): Fix typo.
9817 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9819 Convert grub-emu to argp.
9821 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9823 * util/argp_common.c: Rename to ...
9824 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9825 Add missing includes.
9826 * grub-core/kern/emu/main.c: Convert to argp.
9827 * po/POTFILES.in: Regenerate.
9828 * util/grub-install.in (usage): Make first letter lowcase in messages
9830 * util/grub-setup.c (options): Likewise.
9832 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9834 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9835 Put back accidently commented-out code.
9837 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9839 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9840 loop check using Brent algorithm.
9841 (grub_hfsplus_btree_search): Likewise.
9843 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9845 * util/grub-install.in: Fix usage of wrong device for PreP install.
9847 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9849 * conf/Makefile.common (CFLAGS_GNULIB): Add
9850 -Wno-unsafe-loop-optimizations.
9851 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9853 * grub-core/commands/legacycfg.c: Add pragma to skip
9854 -Wunsafe-loop-optimizations.
9855 (check_password_md5_real): Fix loop counter type.
9856 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9858 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9859 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9861 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9862 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9863 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9865 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9866 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9867 avoid possible infinite loops.
9868 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9869 and -Wunsafe-loop-optimizations.
9870 * grub-core/script/yylex.l: Likewise.
9871 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9872 (print_glyphs): Avoid infinite loops.
9873 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9875 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9877 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9878 to avoid infinite loop.
9879 (disp_acpi_rsdt_table): Likewise.
9881 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9883 * grub-core/font/font.c (grub_font_load): Add support for default
9884 path for fonts ($prefix/fonts).
9885 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9886 for checking if string is a path.
9887 * grub-core/normal/main.c (features): Add feature_default_font_path.
9888 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9889 * util/grub.d/00_header.in: Use default directory if possible.
9890 * util/grub-install.in: Install unicode.pf2.
9892 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9894 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9895 * po/Rules-swiss: New file.
9896 * po/swiss.sed: Likewise.
9898 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9900 * grub-core/fs/btrfs.c (find_device): Fix typos.
9901 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9902 * util/grub-mkrelpath.c (argp_parser): Likewise.
9903 Reported by: Yuri Chornoivan.
9905 2012-02-23 Dalet Omega <daletomega@gmail.com>
9907 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9908 for usual informative messages.
9910 2012-02-23 Dalet Omega <daletomega@gmail.com>
9914 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9915 * conf/Makefile.common: Define starfielddir.
9916 * configure.ac: Configure starfield.
9917 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9918 * themes/starfield/README: Likewise.
9919 * themes/starfield/blob_w.png: Likewise.
9920 * themes/starfield/boot_menu_c.png: Likewise.
9921 * themes/starfield/boot_menu_e.png: Likewise.
9922 * themes/starfield/boot_menu_n.png: Likewise.
9923 * themes/starfield/boot_menu_ne.png: Likewise.
9924 * themes/starfield/boot_menu_nw.png: Likewise.
9925 * themes/starfield/boot_menu_s.png: Likewise.
9926 * themes/starfield/boot_menu_se.png: Likewise.
9927 * themes/starfield/boot_menu_sw.png: Likewise.
9928 * themes/starfield/boot_menu_w.png: Likewise.
9929 * themes/starfield/slider_c.png: Likewise.
9930 * themes/starfield/slider_n.png: Likewise.
9931 * themes/starfield/slider_s.png: Likewise.
9932 * themes/starfield/src/blob_nw.xcf: Likewise.
9933 * themes/starfield/src/bootmenu/: Likewise.
9934 * themes/starfield/src/bootmenu/center.xcf: Likewise.
9935 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
9936 * themes/starfield/src/bootmenu/side.xcf: Likewise.
9937 * themes/starfield/src/slider_c.xcf: Likewise.
9938 * themes/starfield/src/slider_n.xcf: Likewise.
9939 * themes/starfield/src/slider_s.xcf: Likewise.
9940 * themes/starfield/src/terminalbox/: Likewise.
9941 * themes/starfield/src/terminalbox/center.xcf: Likewise.
9942 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
9943 * themes/starfield/src/terminalbox/side.xcf: Likewise.
9944 * themes/starfield/starfield.png: Likewise.
9945 * themes/starfield/terminal_box_c.png: Likewise.
9946 * themes/starfield/terminal_box_e.png: Likewise.
9947 * themes/starfield/terminal_box_n.png: Likewise.
9948 * themes/starfield/terminal_box_ne.png: Likewise.
9949 * themes/starfield/terminal_box_nw.png: Likewise.
9950 * themes/starfield/terminal_box_s.png: Likewise.
9951 * themes/starfield/terminal_box_se.png: Likewise.
9952 * themes/starfield/terminal_box_sw.png: Likewise.
9953 * themes/starfield/terminal_box_w.png: Likewise.
9954 * themes/starfield/theme.txt: Likewise.
9956 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9958 * util/grub.d/00_header.in: Add missing export theme.
9960 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9962 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
9964 Reported by: Eren D.
9966 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9968 * conf/Makefile.common (grubdatadir): Removed.
9969 (Makefile.am): Move eveything grubdata to pkgdata.
9971 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9973 * grub-core/commands/acpihalt.c (get_sleep_type):
9974 Remove unused variable.
9976 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9978 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
9979 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
9980 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
9981 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
9982 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
9983 i18n with gettext no-op.
9984 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
9985 GRUB_ACPI_OPCODE_STRING_CONST.
9986 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
9987 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
9989 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9991 * po/POTFILES.in: Regenerate.
9993 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9995 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
9996 -Wno-error=missing-noreturn.
9998 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10000 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
10001 condition to avoid possibly infinite loops.
10002 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
10003 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
10005 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10007 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
10008 condition to avoid possibly infinite loops.
10010 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10012 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
10015 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10017 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
10019 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10021 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
10023 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10025 * util/bin2h.c (usage): Add missing attribute noreturn.
10027 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10029 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
10030 if the size isn't divisible by 512.
10032 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10034 Make list_push and list_remove functions rather than inline functions
10035 to decrease size and avoid aliasing violations.
10037 * include/grub/list.h (grub_list_push): Move to ...
10038 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
10039 * include/grub/list.h (grub_list_remove): Move to ...
10040 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
10042 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10044 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
10045 and -Wunused-result.
10047 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10049 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
10050 Reported by: Seth Goldberg
10052 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10054 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
10056 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10058 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
10059 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
10061 * docs/grub.texi (Simple configuration): Document
10062 GRUB_CMDLINE_GNUMACH.
10064 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
10066 * conf/Makefile.common (platform_SCRIPTS): New variable.
10067 (platform_PROGRAMS): Likewise.
10068 * gentpl.py: Mark *,module and *.image for install.
10069 * grub-core/gdb_grub.in: Add a notice of expected environment.
10070 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
10071 (gmodule.pl): Likewise.
10073 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
10075 Replace grub_checkkey with grub_getkey_noblock.
10077 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
10078 (grub_getkey_noblock): ... this. All users updated.
10080 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
10082 * grub-core/kern/emu/console.c: Move to ...
10083 * grub-core/term/emu/console.c: ...here.
10084 (grub_ncurses_getkey): Fix return value if no key is detected.
10086 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10088 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
10089 (grub_unit_test_fini): Likewise.
10090 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
10092 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10094 * include/grub/test.h (GRUB_UNIT_TEST)
10096 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10098 * grub-core/script/execute.c (grub_script_break): Clarify logic.
10099 Better error handling.
10100 (grub_script_return): Likewise.
10101 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
10103 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10105 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
10106 rimplicit redifinition.
10108 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10110 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
10113 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10115 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
10116 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
10119 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10121 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
10122 as GRUB_ERR_BUG. Don't malloc if no device is available.
10124 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10126 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
10127 Mark calling with invalid term as GRUB_ERR_BUG.
10129 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10131 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
10132 packets rather than raising an error.
10134 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10136 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
10139 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10141 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
10142 diagnostic to dprintf.
10143 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10145 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10147 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
10150 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10152 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
10153 (grub_ntfs_iterate_dir): Likewise.
10155 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10157 Efiemu stylistic fixes and gettext.
10159 * grub-core/efiemu/i386/loadcore32.c
10160 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
10161 * grub-core/efiemu/i386/loadcore64.c
10162 (grub_arch_efiemu_relocate_symbols64): Likewise.
10163 * grub-core/efiemu/i386/pc/cfgtables.c
10164 (grub_machine_efiemu_init_tables): Likewise.
10165 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
10166 (grub_efiemu_loadcore_initXX): Add a filename argument.
10168 Improved error message.
10169 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
10170 Add a filename argument.
10172 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
10173 Reclassify double relocation as GRUB_ERR_BUG.
10175 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10177 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
10180 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10182 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
10185 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10187 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
10189 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10191 Improve string. Gettextize.
10193 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10195 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
10197 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
10199 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10201 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
10202 [GRUB_UTIL]: New function.
10203 (insert_array) [GRUB_UTIL]: Store partmaps.
10204 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
10206 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
10207 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
10208 (probe_abstraction): Print diskfilter and not raid.
10209 Reported by: Lennart Sorensen
10211 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10213 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
10214 * util/grub-mkimagexx.c (MASK3): New define.
10215 (add_value_to_slot_20b): Use MASK3.
10216 (add_value_to_slot_21): Likewise.
10217 (relocate_addresses): Fix format specification.
10218 (load_image): Explicitly init symtab_section.
10220 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10222 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
10223 (grub_util_biosdisk_get_grub_dev): Fix format specification.
10225 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10227 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
10229 Reported by: Lennart Sorensen
10231 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10233 * gentpl.py: Add missing license header.
10234 * docs/grub.texi: Update copyright year.
10236 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10238 Source grub-mkconfig_lib from the build directory at build time.
10239 Suggested by: Vladimir Serbinenko.
10241 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
10242 * util/grub-install.in: Define pkgdatadir if not already set, and source
10243 grub-mkconfig_lib from there.
10244 * util/grub-kbdcomp.in: Likewise.
10245 * util/grub-mkconfig.in: Likewise.
10246 * util/grub-mknetdir.in: Likewise.
10247 * util/grub-mkrescue.in: Likewise.
10248 * util/grub-mkstandalone.in: Likewise.
10249 * util/grub-reboot.in: Likewise.
10250 * util/grub-set-default.in: Likewise.
10251 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10253 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10255 Increase warning level.
10257 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
10258 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
10259 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
10260 (TARGET_CFLAGS): Likewise.
10261 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
10262 * grub-core/Makefile.core.def (decompressor_xz): Add
10263 -Wno-unreachable-code.
10264 (normal): Add -Wno-redundant-decls.
10265 (xzio): Add -Wno-unreachable-code.
10266 (lzopio): Add -Wno-redundant-decls -Wno-error.
10267 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
10268 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
10269 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
10270 * grub-core/kern/dl.c: Add exception to -Wcast-align.
10271 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
10272 * grub-core/kern/i386/coreboot/init.c: Add exception to
10273 -Wsuggest-attribute=noreturn.
10274 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
10275 * grub-core/kern/ia64/dl_helper.c: Likewise.
10276 * grub-core/kern/mips/dl.c: Likewise.
10277 * grub-core/kern/sparc64/dl.c: Likewise.
10278 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
10279 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
10280 (memcmp): Likewise.
10281 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
10282 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
10283 * grub-core/loader/mips/linux.c: Likewise.
10284 * grub-core/loader/multiboot_elfxx.c: Likewise.
10285 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
10286 * grub-core/video/sm712.c: Add exception to -Wcast-align.
10287 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
10288 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
10290 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10291 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
10294 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10296 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
10299 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10301 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10302 Avoid improper use of strings.
10303 (grub_cmd_legacy_initrdnounzip): Likewise.
10305 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10307 * include/grub/emu/misc.h (grub_util_warn): Add missing format
10309 (grub_util_info): Likewise.
10310 (grub_util_error): Likewise.
10312 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10314 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
10315 * util/grub-fstest.c (fstest): Likewise.
10317 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10319 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
10320 (grub_md_sha512_real): Likewise.
10321 (grub_util_get_geli_uuid): Likewise.
10322 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
10323 (grub_util_biosdisk_open): Fix format specification.
10324 Respect format security.
10325 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
10326 (xrealloc): Likewise.
10327 (xasprintf): Likewise.
10329 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10331 * util/import_gcry.py: Include grub/crypto.h in init.c.
10333 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10335 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
10336 (generate_image): Make prefix a const char *.
10337 Fix format specifications. Respect format security.
10338 Avoid void * arithmetics.
10340 (argp_parser): Remove unused variable. Respect format security.
10341 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
10342 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
10343 (count_funcs): Remove unused variable.
10344 (relocate_addresses): Fix format specification.
10345 Disable x86-64 with elf32. Remove unused variables.
10346 (add_fixup_entry): Avoid shadowing.
10347 (make_reloc_section): Fix format specification.
10349 (locate_sections): Fix format specifications.
10350 (load_image): Avoid shadowing.
10352 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10354 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
10355 Fix format specifications. Respect format security.
10356 Don't translate already translated grub_errmsg.
10357 (argp_parser): Remove unused variable
10359 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10361 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
10363 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10365 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
10366 (main): Likewise. Use xmalloc. Respect format security.
10368 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10370 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
10372 (argp_parser): Remove unused variable.
10374 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10376 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
10377 (add_pixel): Make static.
10378 (add_font): Likewise.
10379 (write_string_section): Make name and str a const char *.
10380 (write_be16_section): Make name a const char *.
10381 (print_glyphs): Make static.
10382 (write_font_ascii_bitmap): Likewise.
10383 (write_font_width_spec): Likewise.
10384 (write_font_pf2): Likewise.
10385 (argp_parser): Remove unused variable.
10386 Respect format security.
10387 (main): Avoid shadowing. Respect format security.
10389 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10391 * util/grub-editenv.c (argp_parser): Make static.
10392 (create_envblk_file): Use xmalloc.
10393 (open_envblk_file): Likewise.
10394 Resepect format security.
10395 (set_variables): Respect format security.
10397 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10399 * util/getroot.c (grub_find_device): Respect format security.
10400 (get_mdadm_uuid): Remove unused variable.
10401 (grub_util_pull_device): Dont call gettext on already translated
10403 (find_system_device): Remove unused variable.
10404 (grub_util_get_grub_dev): Likewise.
10405 (grub_make_system_path_relative_to_its_root): Respect format security.
10407 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10409 * util/grub-fstest.c (execute_command): Make first argument
10411 (read_file): Avoid shadowing.
10412 Reuse underlying error message if device open fails.
10413 (cmd_cmp): Respect format security.
10414 (root): Make const char *.
10415 (fstest): Remove args argument and use global copy.
10416 Respect format security.
10417 (argp_parser): Make static.
10418 (main): Make default_root const char *.
10420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10422 * util/grub-mount.c (root): Make const char *.
10423 (execute_command): Make first argument a const char *.
10424 (fuse_init): Respect format security.
10425 (argp_parser): Make static. Remove unused variable.
10426 (main): Make default_root a const char *.
10427 Respect format security.
10429 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10431 * util/grub-probe.c (probe): Don't call gettext on already translated
10433 Remove unused variables.
10434 (argp_parser): Remove unused variable.
10436 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10438 * util/grub-script-check.c (argp_parser): Remove unused variable.
10439 (main): Rename read to curread to avoid shadowing.
10441 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10443 * util/misc.c (grub_util_write_image_at): Fix format specification.
10444 (grub_util_write_image): Likewise.
10445 (grub_script_execute_argument_to_string): Removed (unused).
10446 (grub_script_execute_menuentry): Likewise.
10447 (grub_putchar): Likewise.
10449 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10451 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
10452 (FUNCTION) [GRUB_UTIL]: Likewise.
10453 (VARIABLE) [GRUB_UTIL]: Likewise.
10455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10457 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
10458 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
10460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10462 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
10465 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10467 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
10468 (LzmaEnc_SaveState): Removed (unused).
10469 (LzmaEnc_RestoreState): Likewise.
10470 (LzmaEnc_InitPriceTables): Made static.
10471 (LzmaEnc_Construct): Likewise.
10472 (LzmaEnc_FreeLits): Likewise.
10473 (LzmaEnc_Destruct): Likewise.
10474 (LzmaEnc_Init): Likewise.
10475 (LzmaEnc_InitPrices): Likewise.
10476 (LzmaEnc_Finish): Likewise.
10477 (LzmaEnc_PrepareForLzma2): Removed (unused).
10478 (LzmaEnc_MemPrepare): Likewise.
10479 (LzmaEnc_GetNumAvailableBytes): Likewise.
10480 (LzmaEnc_GetCurBuf): Likewise.
10481 (LzmaEnc_CodeOneMemBlock): Likewise.
10483 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10485 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
10486 (grub_util_ldm_embed): Likewise.
10488 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10490 * util/grub-editenv.c (print_var): Rename name to varname to
10492 (main): Rename index to curindex to avoid shadowing.
10493 Make filename a const char *.
10495 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10497 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
10498 to arg_getline to avoid shadowing.
10500 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10502 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
10503 disk_ to avoid shadowing.
10505 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10507 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
10508 curindex to avoid shadowing.
10510 (MatchFinder_GetNumAvailableBytes): Make static.
10512 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10514 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
10517 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10519 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
10520 argument from encrypt to do_encrypt to avoid shadowing.
10522 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10524 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
10525 incorrect nesting of #if's.
10527 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10529 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
10530 checks which are always false on some platforms.
10531 (grub_cmd_lsacpi): Likewise.
10532 * grub-core/kern/misc.c (grub_strtoul): Likewise.
10533 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
10536 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10538 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
10539 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
10541 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10543 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
10544 re_dfa_t to avoid breaking alignment invariants.
10545 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
10546 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
10548 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10550 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
10551 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
10553 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10555 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
10558 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10560 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
10561 conserve alignment invariants.
10562 (grub_ehci_ehcc_read16): Likewise.
10563 (grub_ehci_oper_read32): Likewise.
10564 (grub_ehci_oper_write32): Likewise.
10565 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10566 Conserve alignment invariants.
10568 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10570 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
10571 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
10574 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10576 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
10577 Remove unused variable.
10579 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10581 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
10584 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10586 * include/grub/net.h: Remove double declarations.
10588 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10590 Remove "payload" command in ia64 Linux loader since I couldn't
10591 find any evidence of it being used for anything.
10592 Replace "relocate" command with an environment variable
10594 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
10596 (ia64_boot_payload): Removed.
10597 (last_payload): Likewise.
10598 (RELOCATE_OFF): Likewise.
10599 (RELOCATE_ON): Likewise.
10600 (RELOCATE_FORCE): Likewise.
10601 (relocate): Likewise.
10602 (free_pages): Don't free payloads.
10603 (grub_load_elf64): Use common error messages.
10604 Use "linux_relocate" variable.
10605 Increase the space after boot_params.
10606 (grub_cmd_payload): Removed.
10607 (grub_cmd_relocate): Likewise.
10608 (grub_cmd_fpswa): Improve messages.
10609 (cmd_payload): Removed.
10610 (cmd_relocate): Likewise.
10611 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
10612 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
10614 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10616 Convert UHCI to DMA framework.
10618 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
10619 (grub_uhci_pci_iter): Fill new members
10620 (grub_alloc_td): Use P2V and V2P functions.
10621 (grub_free_queue): Likewise.
10622 (grub_alloc_qh): Likewise.
10623 (grub_uhci_setup_transfer): Likewise.
10624 (grub_uhci_check_transfer): Likewise.
10626 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10628 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
10629 Remove assignment in if while on it.
10631 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10633 * util/grub-mkstandalone.in: Fix modules directory.
10635 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10637 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
10639 (argp_parser): Accept "auto" as compression specification.
10641 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10643 Fix `help' with unloaded modules.
10645 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
10646 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
10647 (grub_dyncmd_dispatcher): Small stylistic fix.
10648 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
10649 explicit help is requested.
10651 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10653 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
10654 Explicitly init restart while on it.
10656 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10658 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
10661 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10663 * util/grub-mknetdir.in: Use . rather than source for POSIX
10666 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10668 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
10670 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10672 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
10675 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10677 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
10680 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10682 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
10684 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10686 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
10687 iteration of partitions.
10689 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10691 Improve gettext support. Stylistic fixes and error handling fixes while
10694 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
10696 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
10697 part. Instead setup the correct stack in RM.
10698 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
10700 * include/grub/i386/relocator_private.h: New file.
10702 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10704 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
10706 * util/grub-fstest.c (options): Add missing DEVICE part.
10708 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10710 Clarify and unify messages.
10712 * grub-core/commands/hashsum.c (options): Unify messages.
10713 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
10714 literal-only message as translatable.
10715 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
10716 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
10717 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
10719 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
10720 key, not the key used to unlock. Clarify what it's used for.
10721 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
10722 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
10723 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
10724 * util/grub-editenv.c (options): Unify "verbose" message.
10725 * util/grub-fstest.c (read_file): Unify error message.
10726 (fstest): Add quotes around commands.
10727 (options): Unify "verbose" message.
10728 * util/grub-install.in: Add quotes around variable name.
10729 * util/grub-kbdcomp.in: Unify error message.
10730 * util/grub-mkfont.c (main): Likewise.
10731 * util/grub-mkrescue.in: Likewise.
10732 * util/grub-mklayout.c (options): Unify "verbose" message.
10733 * util/grub-mkstandalone.in: Unify help and verbose messages.
10734 * util/grub-mount.c (options): Unify "verbose" message.
10735 * util/grub-probe.c (options): Likewise.
10736 * util/grub-script-check.c (options): Likewise.
10737 * util/grub-setup.c (setup): Unify no-terminator message.
10738 (options): Use DEVICE and not DEV.
10739 Unify "verbose" message.
10740 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
10742 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10744 Improve and unify messages.
10746 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
10747 name. All users updated.
10748 Print filename in error.
10749 (read_device_map): Print filename in error.
10750 * util/getroot.c (grub_guess_root_devices): Print filename in error.
10751 (grub_util_get_os_disk): Likewise.
10752 (grub_util_biosdisk_get_grub_dev): Likewise.
10753 (grub_util_check_block_device): Likewise.
10754 (grub_util_check_char_device): Likewise.
10755 (grub_make_system_path_relative_to_its_root): Likewise.
10756 * util/grub-editenv.c (create_envblk_file): Likewise.
10757 (open_envblk_file): Likewise.
10758 (write_envblk): Likewise.
10759 * util/grub-fstest.c (cmd_cp): Likewise.
10760 (cmd_cat): Likewise.
10761 (cmd_cmp): Likewise.
10762 * util/grub-menulst2cfg.c (main): Likewise.
10763 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
10764 (write_font_width_spec): Likewise.
10765 (write_font_pf2): Likewise.
10766 * util/grub-mkimage.c (generate_image): New argument outname.
10768 Remove unreacheable message.
10769 (options): Unify messages.
10770 (help_filter): Likewise.
10771 * util/grub-mklayout.c (usage): Removed (unused).
10772 (main): Print filename in error.
10773 * util/grub-mkrescue.in: Fix wrong quoting.
10774 * util/grub-setup.c (setup): Print filename in error.
10775 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
10776 (check_sas): Likewise.
10777 * util/misc.c (grub_util_get_fp_size): Removed.
10778 (grub_util_get_image_size): Print filename in error.
10779 (grub_util_read_at): Removed.
10780 (grub_util_read_image): Print filename in error.
10781 (grub_util_load_image): Likewise.
10782 (grub_util_write_image_at): New argument filename. All users updated.
10783 Print filename in error.
10784 (grub_util_write_image): New argument filename. All users updated.
10785 Print filename in error.
10786 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
10787 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
10789 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10791 * grub-core/Makefile.core.def (pxechain): New module.
10792 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10793 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10795 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10796 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10798 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10800 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10801 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10802 * include/grub/err.h (grub_error_saved): New struct.
10803 (grub_errmsg): Make array size explicit.
10804 * include/grub/misc.h (grub_error_save): New function.
10805 (grub_error_load): Likewise.
10806 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10807 (grub_error_push): Update `errno' member name.
10808 (grub_error_pop): Likewise
10809 * grub-core/net/tftp.c (tftp_data): New member save_err.
10810 (tftp_receive): Save error.
10811 (tftp_open): Restore error.
10813 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10815 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10816 to real mode down to execute A20-related code in protected mode as
10819 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10821 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10822 NULL when the argument `level' has an unexpected value.
10824 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10826 Move platform-dependent files from $prefix to $prefix/$platform.
10828 * config.h.in (GRUB_TARGET_CPU): New definition.
10829 (GRUB_PLATFORM): Likewise.
10830 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10831 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10832 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10833 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10834 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10835 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10836 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10837 * grub-core/normal/term.c (read_terminal_list): Likewise.
10838 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10840 (grub_gettext_init_ext): Likewise.
10841 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10843 * util/grub-install.in: Update directories.
10844 * util/grub-mknetdir.in: Likewise.
10845 * util/grub-mkrescue.in: Likewise.
10847 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10849 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10850 grub_error framework. All users updated.
10852 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10854 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10855 lists (by always binsearching), improve caching (cache strings
10856 used for binsearch, not only results), improve
10857 maintainability (by using more structured binary search) and correct
10860 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10862 * grub-core/script/execute.c (grub_script_return): Fix warning.
10864 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10866 * grub-core/script/execute.c (grub_script_return): Fix potential
10868 Reported by: Jim Meyering.
10870 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10872 * po/POTFILES.in: Regenerate.
10873 * util/grub-install.in: Gettextize the strings missed in first pass.
10875 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10877 * Makefile.util.def (grub-mkdevicemap): Removed.
10878 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10879 * include/grub/util/deviceiter.h: Removed.
10880 * util/deviceiter.c: Likewise.
10881 * util/getroot.c (grub_util_get_os_disk): New function.
10882 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10883 replacement for EFI.
10884 * util/grub-mkdevicemap.c: Removed.
10885 * util/grub-probe.c (probe): Handle PRINT_DISK.
10886 (argp_parser): Handle -t disk.
10888 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10890 * util/grub-mkfont.c: Migrate to argp.
10891 * util/grub-mklayout.c: Likewise.
10892 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10893 * util/grub-mkrelpath.c: Likewise.
10894 * util/grub-probe.c: Likewise.
10895 * util/grub-script-check.c: Likewise.
10897 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10899 * util/grub-reboot.in: Add missing datarootdir.
10900 Add missing newline.
10901 * util/grub-set-default.in: Add missing datarootdir.
10902 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10903 * util/grub-mkrescue.in: Likewise.
10905 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10907 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10909 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10911 * util/grub-kbdcomp.in: Add decent help and gettextize.
10912 * docs/man/grub-kbdcomp.h2m: New file.
10914 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10916 Migrate grub-mkimage.c to argp.
10918 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
10919 (grub-setup): Likewise.
10920 * util/grub-setup.c (print_version): Move to ...
10921 * util/argp_common.c (print_version): ... here.
10922 * util/grub-setup.c (argp_program_version_hook): Move to ...
10923 * util/argp_common.c (argp_program_version_hook): ... here.
10924 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
10926 * util/grub-mkimage.c (main): Migrate to argp.
10928 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10930 * util/grub-mkrescue.in: Use same message as
10931 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
10932 for better translations.
10934 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10936 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
10937 options with generic grub-mkrescue.in with the goal of future
10940 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10942 * grub-core/kern/mm.c: Add missing include of i18n.h
10943 * grub-core/lib/relocator.c: Likewise.
10945 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10947 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
10949 (allocate_pages): Check return value.
10950 Replace fatal with error.
10951 (grub_linux_boot): Replace printf with dprintf.
10952 Check find_mmap_size return value.
10953 Replace fatal with error.
10954 Don't call grub_machine_fini.
10955 (grub_load_elf64): Replace printf with dprintf.
10956 (grub_cmd_linux): Likewise.
10957 (grub_cmd_initrd): Likewise.
10958 (grub_cmd_payload): Likewise.
10960 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10962 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
10964 * grub-core/video/radeon_fuloong2e.c
10965 (grub_video_radeon_fuloong2e_setup): Likewise.
10966 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
10967 * grub-core/video/video.c (grub_video_set_mode): Don't override
10968 standard out of memory message.
10970 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10972 NetBSD disk wedge support.
10974 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
10975 [__NetBSD__]: Handle NetBSD disk wedges.
10976 * util/getroot.c (convert_system_partition_to_system_disk)
10977 [__NetBSD__]: Likewise.
10979 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
10981 * util/grub-mkconfig.in: Use umask rather than chmod to create
10982 grub.cfg.new to avoid insecure grub.cfg.
10984 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10986 * grub-core/commands/ls.c: Gettextize.
10987 * grub-core/commands/setpci.c: Likewise.
10988 * grub-core/commands/videotest.c: Likewise.
10989 * grub-core/disk/geli.c: Likewise.
10990 * grub-core/kern/mm.c: Likewise.
10991 * grub-core/lib/relocator.c: Likewise.
10992 * grub-core/loader/efi/appleloader.c: Likewise.
10993 * grub-core/loader/i386/xnu.c: Likewise.
10994 * grub-core/loader/ia64/efi/linux.c: Likewise.
10995 * grub-core/loader/xnu.c: Likewise.
10996 * grub-core/net/dns.c: Likewise.
10997 * grub-core/net/net.c: Likewise.
10998 * grub-core/script/lexer.c: Likewise.
10999 * grub-core/script/parser.y: Likewise.
11000 * grub-core/script/yylex.l: Likewise.
11001 * util/getroot.c: Likewise.
11002 * util/grub-setup.c: Likewise.
11004 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11006 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
11009 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11011 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
11013 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11015 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
11017 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
11018 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
11020 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11022 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
11023 * util/grub-install.in: Gettextize.
11024 * util/grub-mkconfig.in: Likewise.
11025 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
11027 (grub_warn): Gettextize.
11028 * util/grub-mknetdir.in: Gettextize.
11029 * util/grub-mkrescue.in: Likewise.
11030 * util/grub-mkstandalone.in: Likewise.
11031 * util/grub-reboot.in: Likewise.
11032 * util/grub-set-default.in: Likewise.
11033 * util/grub.d/00_header.in: Likewise.
11034 * util/grub.d/10_hurd.in: Likewise.
11035 * util/grub.d/10_kfreebsd.in: Likewise.
11036 * util/grub.d/10_linux.in: Likewise.
11037 * util/grub.d/10_netbsd.in: Likewise.
11038 * util/grub.d/10_windows.in: Likewise.
11039 * util/grub.d/20_linux_xen.in: Likewise.
11040 * util/grub.d/30_os-prober.in: Likewise.
11041 * po/POTFILES-shell.in: Regenerate.
11043 2012-02-03 Richard Laager <rlaager@wiktel.com>
11045 * util/grub-mkimage.c (main): Fix format-security warning.
11046 * util/grub-mkrelpath.c (main): Likewise.
11047 * util/grub-probe.c (main): Likewise.
11049 2012-02-03 Richard Laager <rlaager@wiktel.com>
11051 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
11053 Put back lost PRINT_DRIVE.
11055 2012-02-03 Richard Laager <rlaager@wiktel.com>
11057 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
11058 (grub_guess_root_devices): Replace strlen with sizeof.
11060 (find_root_devices_from_poolname): Remove unused variable.
11063 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11065 Support install on multi-device filesystems.
11067 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
11068 (grub_guess_root_devices): ...this. Return char **. All users updated.
11069 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
11071 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
11072 (find_root_devices_from_poolname): ... here.
11073 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
11075 (grub_guess_root_device): Rename to ...
11076 (grub_guess_root_devices): ... this. Return char **. All users updated.
11077 * util/grub-install.in: Handle multi-device filesystems.
11078 * util/grub-probe.c (probe). Make device_names a char **. Add delim
11079 argument. All users updated.
11080 Handle multi-device filesystems.
11081 Use 'delim' as separator.
11082 Remove device check to allow filesystems on file.
11083 (main): Support -0 argument. Handle multi-device.
11084 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
11085 Fix a cross-device check while on it.
11086 (arguments): Remove root_dev.
11087 (argp_parser): Remove -r.
11088 (main): Remove root_dev.
11090 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11092 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
11094 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11096 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
11098 Reported by: NODA, Kai <nodakai>.
11100 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11104 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
11106 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
11107 (grub_ehci_setup_qh): Likewise.
11108 (grub_ehci_find_qh): Likewise.
11109 (grub_ehci_transaction): Likewise.
11110 (grub_ehci_setup_transfer): Likewise.
11111 (grub_ehci_check_transfer): Likewise.
11112 (grub_ehci_portstatus): Likewise.
11113 (grub_ehci_detect_dev): Likewise.
11114 (grub_ehci_transfer_controller_data): New field td_last_phys.
11115 (grub_ehci_setup_transfer): Fill td_last_phys.
11116 (grub_ehci_check_transfer): Use td_last_phys.
11118 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
11120 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
11121 if no submenu is present.
11123 2012-02-01 Aleš Nesrsta <starous@volny.cz>
11127 * include/grub/usb.h (grub_usbms_protocol_t): New values
11128 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
11129 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
11130 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
11131 (grub_usbms_dev): Add subclass, protocol and intrpt.
11132 Remove in_maxsz and out_maxsz.
11133 (grub_usbms_reset): Rename to ...
11134 (grub_usbms_bo_reset): .. this.
11135 (grub_usbms_cbi_cmd): New function.
11136 (grub_usbms_cbi_reset): Likewise.
11137 (grub_usbms_reset): Likewise.
11138 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
11139 (grub_usbms_transfer): Rename to ...
11140 (grub_usbms_transfer_bo): ... this.
11141 (grub_usbms_transfer_cbi): Likewise.
11142 (grub_usbms_transfer): Likewise.
11144 2012-02-01 Aleš Nesrsta <starous@volny.cz>
11145 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11147 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
11148 the support for the CS5536 modification thereos and few bugfixes.
11150 * grub-core/Makefile.core.def (ehci): New module.
11151 * grub-core/bus/usb/ehci.c: New file.
11152 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
11153 port and hubaddr. All users updated.
11154 Save port and hubaddr into dev structure.
11155 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
11157 * include/grub/pci.h (grub_dma_phys2virt): New function.
11158 (grub_dma_virt2phys): Likewise.
11159 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
11161 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11163 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
11164 check as some mkfs implementations omit it.
11166 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11168 * docs/grub.texi (Unicode): Mention identifier and space limitations.
11170 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11172 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
11173 Add new member volname2.
11174 (grub_jfs_label): Use volname2 if available.
11176 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11178 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
11179 over last_mounted as seen in image generated by mkfs.nilfs2.
11180 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
11182 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11184 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
11185 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
11186 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
11188 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11190 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
11193 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11195 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
11196 subvolume name (by removing a bogus and useless check).
11198 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11200 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
11201 sizeof while on it.
11203 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11205 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
11206 (grub_scsi_read_capacity10): ... this.
11207 (grub_scsi_read_capacity16): New function.
11208 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
11210 Fix off-by-one error.
11211 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
11213 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
11214 (grub_scsi_read_capacity10): ... this.
11215 (grub_scsi_read_capacity_data): Rename to ...
11216 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
11217 (grub_scsi_read_capacity16): New struct.
11218 (grub_scsi_read_capacity16_data): Likewise.
11219 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
11220 grub_scsi_cmd_read_capacity10.
11221 New command grub_scsi_cmd_read_capacity16.
11223 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11225 SCSI >2TiB support.
11227 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
11228 (grub_scsi_write16): Likewise.
11229 (grub_scsi_read): Use read16 when necessary.
11230 (grub_scsi_write): Likewise.
11231 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
11232 (grub_scsi_write16): Likewise.
11233 (grub_scsi_cmd_t): Add READ16 and WRITE16.
11235 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11237 SCSI write support (for usbms mainly).
11239 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
11241 (grub_scsi_write): Implement.
11242 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
11244 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11246 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
11249 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11251 * grub-core/lib/posix_wrap/string.h (memchr): New function.
11253 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11255 * po/POTFILES.in: Regenerate.
11257 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11259 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
11260 with grub_printf to avoid unnecessary fatal failure.
11262 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11264 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
11265 (INT_MAX): Likewise.
11266 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
11267 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
11268 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
11269 (strcpy): Likewise.
11270 (strstr): Likewise.
11271 (strchr): Likewise.
11272 (strncpy): Likewise.
11273 (strcat): Likewise.
11274 (strncat): Likewise.
11275 (strcoll): Likewise.
11276 * include/grub/types.h (GRUB_SHRT_MAX): New define.
11277 (GRUB_INT_MAX): Likewise.
11279 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11281 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
11283 (optimize_utf8): Likewise.
11284 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
11286 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11288 * grub-core/boot/i386/pc/lnxboot.S: Use
11289 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
11290 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
11292 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
11294 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
11296 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11298 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
11299 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
11300 now to avoid double free.
11301 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
11303 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
11304 * util/grub-probe.c (escape_of_path): Always return a new copy.
11305 (print_full_name): Escape path.
11306 (probe): Don't call grub_util_devname_to_ofpath on NULL.
11307 Fix hints on abstractions.
11309 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11311 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
11312 Don't add "root" line if no compatibility hont is available.
11313 Suggested by: Seth Goldberg.
11315 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11317 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
11318 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
11319 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
11320 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
11322 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11324 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
11326 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11328 * util/grub-pe2elf.c (ehdr): Make static.
11330 (num_sections): Likewise.
11331 (offset): Likewise.
11333 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11335 Eliminate ofpath limits and possible overflows.
11337 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
11338 (OF_PATH_MAX): Removed.
11339 (MAX_DISK_CAT): New const.
11340 (find_obppath): Use allocated rather than preallocated buffer.
11341 Return result. Argument of_path removed. All users updated.
11342 Add missing fdstat.
11343 (xrealpath): New function.
11344 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
11345 Allocate rather than use preallocated buffer. All users updated.
11346 (__of_path_common): Use allocated rather than preallocatecd buffer.
11347 Return result. Argument of_path removed. All users updated.
11348 (vendor_is_ATA): Read only needed part form the file.
11349 (check_sas): Allocate depending on contents rather than fixed.
11350 (main) [STANDALONE]: Handle NULL result.
11352 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11354 * grub-core/normal/completion.c (iterate_dev): Close the disk.
11356 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11358 Cryptodisk write support.
11360 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
11361 (grub_cryptodisk_decrypt): Moved logic to ...
11362 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
11363 (grub_cryptodisk_write): Implement.
11364 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
11365 (grub_util_fd_write): ... this. Make global.
11366 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
11368 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11370 * include/grub/list.h (grub_list_remove): Don't crash if element is
11373 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11375 Rename ofconsole to console.
11377 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
11378 as sysnonym to console.
11379 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
11380 * grub-core/term/ieee1275/console.c: ... this. All users updated.
11381 Rename grub_ofconsole_ to grub_console_. All users updated
11382 (grub_console_term_output): Rename "ofconsole" to "console".
11383 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
11386 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11388 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
11390 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
11391 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
11392 GRUB_DISK_DEVICE_FILE_ID.
11394 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11396 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
11397 and improve performance.
11399 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11401 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
11402 missing ieee1275/ prefix on whole disk.
11404 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11406 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
11407 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11409 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11411 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
11413 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11415 Merge common RAID and LVM logic to an abstract diskfilter.
11416 Add LDM support using the same framework.
11418 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
11419 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
11420 (libgrubmods): Remove grub-core/disk/raid.c and
11421 grub-core/partmap/gpt.c.
11422 * grub-core/Makefile.core.def (ldm): New module.
11423 (raid): Renamed to diskfilter. All users updated.
11424 * grub-core/disk/raid.c: Moved to ...
11425 * grub-core/disk/diskfilter.c: ... here.
11426 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
11428 (find_array): Renamed to ...
11429 (find_lv): ... this. Support multi-LV. Skip nameless LVs
11430 (grub_is_array_readable): Renamed to ...
11431 (grub_is_lv_readable): ... this. Support multinode hierarchy.
11432 (insert_array): New argument id.
11433 (is_node_readable): New function.
11434 (scan_device): Rename to ...
11435 (scan_disk): .. this. Restrict to one disk.
11436 (scan_devices): New function.
11437 (grub_diskfilter_iterate): Support multi-LV.
11438 Skip invisible and nameless LVs.
11439 (grub_diskfilter_memberlist): Support multi-LV.
11440 (grub_diskfilter_read_node): New function.
11441 (grub_raid_read): Most of logic moved to ...
11442 (read_segment): ... here
11443 (read_lv): New function.
11444 (grub_diskfilter_get_vg_by_uuid): New function.
11445 (grub_diskfilter_make_raid): Likewise.
11446 * grub-core/disk/ldm.c: New file.
11447 * grub-core/disk/lvm.c (vg_list): Removed.
11448 (lv_count): Likewise.
11449 (scan_depth): Likewise.
11450 (is_lv_readable): Likewise.
11451 (grub_lvm_getvalue): Advance pointer past the number.
11452 (find_lv): Removed.
11453 (do_lvm_scan): Refactored into ...
11454 (grub_lvm_detect): ... this. Support raid.
11455 (grub_lvm_iterate): Removed.
11456 (grub_lvm_memberlist): Likewise.
11457 (grub_lvm_open): Likewise.
11458 (grub_lvm_close): Likewise.
11459 (read_lv): Likewise.
11460 (read_node): Likewise.
11461 (is_node_readable): Likewise.
11462 (is_lv_readable): Likewise.
11463 (grub_lvm_read): Likewise.
11464 (grub_lvm_write): Likewise.
11465 (grub_lvm_dev): Use diskfilter
11466 (GRUB_MOD_INIT): Likewise.
11467 (GRUB_MOD_FINI): Likewise.
11468 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
11470 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
11471 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
11472 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
11473 grub_diskfilter_read_node.
11474 Fix a bug with xor.
11475 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
11476 grub_diskfilter_read_node.
11477 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
11478 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
11479 (grub_disk_dev_iterate): Move from here...
11480 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
11481 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
11483 (grub_hostdisk_find_partition_start): Likewise.
11484 (grub_hostdisk_os_dev_to_grub_drive): New function.
11485 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
11486 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
11487 * util/getroot.c (make_device_name): ... here.
11488 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
11490 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
11491 * grub-core/kern/emu/hostdisk.c
11492 (convert_system_partition_to_system_disk): Move to ...
11493 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
11494 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
11495 * util/getroot.c (device_is_wholedisk): ... here.
11496 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
11497 * util/getroot.c (find_system_device): ... here.
11498 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
11500 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
11501 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11503 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
11505 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11507 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
11508 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
11509 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
11511 * include/grub/raid.h: Renamed to ...
11512 * include/grub/diskfilter.h: ... this.
11513 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
11514 (GRUB_RAID_LAYOUT_*): Make into array.
11515 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
11516 (grub_diskfilter_vg): New struct.
11517 (grub_diskfilter_pv_id): Likewise.
11518 (grub_raid_member): Removed.
11519 (grub_raid_array): Likewise.
11520 (grub_diskfilter_pv): New struct.
11521 (grub_diskfilter_lv): Likewise.
11522 (grub_diskfilter_segment): Likewise.
11523 (grub_diskfilter_node): Likewise.
11524 (grub_diskfilter_get_vg_by_uuid): New proto.
11525 (grub_raid_register): Inline.
11526 (grub_diskfilter_unregister): Likewise.
11527 (grub_diskfilter_make_raid): New proto.
11528 (grub_diskfilter_vg_register): Likewise.
11529 (grub_diskfilter_read_node): Likewise.
11530 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
11531 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
11532 (grub_util_is_ldm): Likewise.
11533 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
11534 (grub_hostdisk_find_partition_start): Likewise.
11535 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
11536 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
11538 (grub_gpt_partition_map_iterate): New proto.
11539 * include/grub/lvm.h (grub_lvm_vg): Removed.
11540 (grub_lvm_pv): Likewise.
11541 (grub_lvm_lv): Likewise.
11542 (grub_lvm_segment): Likewise.
11543 (grub_lvm_node): Likewise.
11544 * util/getroot.c [...]
11545 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
11546 (probe_abstraction): Likewise.
11547 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
11548 (main): Remove dead logic.
11550 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
11552 Simplify root device discover and don't fail when trying to open
11555 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
11557 (get_diskname_from_path): Likewise.
11558 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
11561 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11563 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
11565 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11567 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
11570 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11572 * util/grub-install.in: Add missing \.
11573 Reported by: gentoofan
11575 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11577 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
11578 (direct_read): Use correct compressed size.
11579 (grub_squash_read_data): Likewise.
11581 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11583 * docs/grub.texi (Platform limitations): New section.
11584 (Platform-specific operations): Likewise.
11585 * docs/grub-dev.texi (Porting): Likewise.
11587 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11589 IEEE1275 disk write support.
11591 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
11593 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
11594 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
11595 and seek loginc to ...
11596 (grub_ofdisk_prepare): ... here.
11597 (grub_ofdisk_write): Implement.
11599 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11601 ARC disk write support.
11603 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
11604 (reopen): New argument writable. All users updated.
11605 Handle required access mode.
11606 (grub_arcdisk_write): Implement.
11607 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
11608 (grub_arc_firmware_vector): Make buffer to write a const buffer.
11610 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11612 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
11613 (read_sblock): Don't attempt to read superblocks outside the disk size.
11615 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11617 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
11618 first superblock to find the second one when possible.
11620 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11622 * util/grub-install.in: Fix an ARC bug.
11623 Print a warning if no platform-specific setup is available.
11625 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11627 Use static allocation rather than scratch pointer in reed_solomon.
11628 It decreases its size significantly and avoids a variable in .text.
11630 * grub-core/lib/reed_solomon.c (scratch): Removed.
11631 (chosenstat): New const or static array.
11633 (errpot): Likewise.
11634 (errpos): Likewise.
11637 (errvals): Likewise.
11638 (eqstat): Likewise.
11639 (pol_evaluate): Replace x with log_x argument. All users updated.
11640 (syndroms): Removed.
11641 (gauss_solve): Use statically allocated arrays.
11642 (rs_recover): Likewise.
11643 Calculate syndroms directly.
11644 (decode_block): Use statically allocated arrays.
11645 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
11646 (main) [TEST]: Allow -DTEST -DSTANDALONE.
11648 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11650 Eliminate fixed limit on reed solomon decoder length.
11652 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
11653 rather than hardcoding the address.
11654 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
11655 no_reed_solomon_length.
11656 Move gate_a20 to no-reed-solomon part.
11657 Don't force a particular size of no reed-solomon part.
11658 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11660 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
11661 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
11663 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11665 * grub-core/commands/wildcard.c (match_files): Handle filenames
11666 without explicit device.
11667 (wildcard_expand): Don't add explicit device if not already present.
11668 * tests/grub_script_echo1.in: Add a new expansion test.
11670 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11672 Replace single-linked with double-linked lists. It results in more
11673 compact and more efficient code.
11675 * grub-core/kern/list.c (grub_list_push): Moved from here ...
11676 * include/grub/list.h (grub_list_push): ... to here. Set prev.
11677 (grub_list_remove): Moved from here ...
11678 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
11679 (grub_prio_list_insert): Set prev.
11680 * include/grub/list.h (grub_list): Add prev. All users updated.
11682 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11684 Handle newer autotools. Add some missing quotes while on it.
11686 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
11687 (pkglib_DATA): Move grub-mkconfig_lib from here ...
11688 (pkgdata_DATA): ... here.
11689 * Makefile.util.def (update-grub_lib): Removed.
11690 * conf/Makefile.common (pkglib_DATA): Removed.
11691 (pkglib_SCRIPTS): Likewise.
11692 (pkgdata_DATA): New variable.
11693 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
11695 Add missing quotes.
11696 Remove unused variable while on it.
11697 * tests/util/grub-shell.in: Likewise.
11698 * util/grub-install.in: Likewise.
11699 * util/grub-mkconfig.in: Likewise.
11700 * util/grub-mknetdir.in: Likewise.
11701 * util/grub-mkrescue.in: Likewise.
11702 * util/grub-mkstandalone.in: Likewise.
11703 * util/grub.d/00_header.in: Likewise.
11704 * util/grub.d/10_hurd.in: Likewise.
11705 * util/grub.d/10_illumos.in: Likewise.
11706 * util/grub.d/10_kfreebsd.in: Likewise.
11707 * util/grub.d/10_linux.in: Likewise.
11708 * util/grub.d/10_netbsd.in: Likewise.
11709 * util/grub.d/10_windows.in: Likewise.
11710 * util/grub.d/20_linux_xen.in: Likewise.
11711 * util/grub.d/30_os-prober.in: Likewise.
11712 * util/update-grub_lib.in: Removed.
11714 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
11716 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
11717 a workaround for intel problem.
11719 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
11720 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11721 2012-01-23 pfsmorigo
11723 * util/grub-install.in: Support dd'in into PreP partition.
11724 * util/grub-probe.c (probe): Support discovering partition type.
11725 (main): Support -t msdos_parttype.
11727 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11729 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
11730 infinite recursion using counter.
11731 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
11732 init to skip it if the magic check fails.
11733 (dec_stream_header): Init s->crc32.
11735 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11736 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
11737 2012-01-22 Richard Laager <rlaager@wiktel.com>
11739 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
11741 (find_bestub): Determine correct size.
11742 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
11743 (scan_disk): Align the size down.
11744 Call check pool before find_bestub to have ashift.
11746 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11748 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
11749 dprintf in no-malloc zone.
11751 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
11753 * configure.ac: Add back in test for limits.h.
11755 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11757 Support 4K-sector NTFS.
11759 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
11760 (grub_ntfs_data): Remove blocksize.
11761 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
11762 Remove data argument. All users updated.
11764 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11766 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
11767 being in .text to avoid dprel references.
11768 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
11769 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
11770 (grub_arch_highmemsize): Likewise.
11771 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
11772 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
11773 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
11775 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11777 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
11779 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
11780 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
11782 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11784 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
11786 (grub_set_datetime_cmos): Likewise.
11788 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11790 Make XZ compression parameters dependent on target and not host CPU.
11792 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11793 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11795 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11797 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11798 set but not used variable.
11800 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11802 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11803 created when no uuid support is compiled into mkfs.reiser.
11805 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11807 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11808 (utf8_to_macroman): Do the opposite.
11809 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11811 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11813 * configure.ac: Refise build qemu_mips w/o unifont.
11815 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11817 Eliminate grub_min/grub_max prone to overflow usage.
11819 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11820 (poll_nonroot_hub): Likewise.
11821 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11822 (grub_affs_label): Likewise.
11823 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11824 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11825 (grub_hfs_label): Likewise.
11826 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11827 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11828 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11829 (zap_leaf_array_get): Likewise.
11830 (dnode_get_path): Likewise.
11831 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11832 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11833 * grub-core/script/execute.c (grub_script_break): Likewise.
11834 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11836 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11837 * include/grub/misc.h (grub_min): Removed.
11838 (grub_max): Likewise.
11840 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11842 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11845 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11847 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11849 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11851 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11853 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11855 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11856 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11858 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11860 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11861 rather than a hack for grub_strncasemap.
11863 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11865 Support multiple initrds
11866 Note: part of this was accidently committed in r3739.
11868 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11870 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11871 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11872 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11873 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11874 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11876 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11878 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11879 disks with unknown size.
11880 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11882 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11884 Remove defines pertaining to arbitrary limits not affecting GRUB
11887 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11888 (EXT2_MAX_SYMLINKCNT): Likewise.
11889 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11890 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11891 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11892 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11893 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11894 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11895 (DN_MAX_OBJECT_SHIFT): Likewise.
11896 (DN_MAX_OFFSET_SHIFT): Likewise.
11897 (DN_MAX_OBJECT): Likewise.
11898 (DNODES_PER_LEVEL_SHIFT): Likewise.
11899 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11900 (SPA_MAXBLOCKSIZE): Likewise.
11901 (SPA_BLOCKSIZES): Likewise.
11902 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11903 (MZAP_MAX_BLKSZ): Likewise.
11905 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11907 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11908 handle NULL appropriately.
11911 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11915 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11917 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11918 * configure.ac: Fix efiemu check.
11920 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11922 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
11924 Reported by: adamwill
11926 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
11928 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
11930 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11932 Fix handling of wide characters in gfxterm.
11934 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
11935 (clear_char): Likewise.
11936 (paint_char): Skip code == NULL chars.
11937 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
11939 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11941 * grub-core/normal/charset.c: Move comment to right place.
11943 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11945 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
11946 (GRUB_AFFS_FLAG_FFS): Put back where it was.
11947 (grub_affs_mount): Revert the correct version checking.
11949 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11951 * docs/grub.texi (Unicode): Mention several other unsupported features.
11953 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11955 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
11956 case statements as compile-time one.
11957 (direct_read): Prevent spurious warnings.
11958 (grub_squash_read_data): Likewise.
11960 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11962 Various squash4 fixes and LZO and XZ support.
11964 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
11965 Add xzembed source files.
11966 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
11967 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
11968 (grub_squash_inode): New subtype long_dir.
11969 (SQUASH_TYPE_LONG_DIR): New inode type.
11970 (COMPRESSION): New enum.
11971 (XZBUFSIZ): New const.
11972 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
11973 (read_chunk): Use data->decompress.
11974 (zlib_decompress): New function.
11975 (lzo_decompress): Likewise.
11976 (xz_decompress): Likewise.
11977 (squash_mount): Set new data fields.
11978 (grub_squash_iterate_dir): Handle long dir.
11979 (squash_unmount): Free xzdec and xzbuf.
11980 (grub_squash_open): Check ino type.
11981 (direct_read): Stylistic fixes. Use data->decompress.
11982 (grub_squash_read_data): Likewise.
11983 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
11984 (get_byte): Likewise.
11985 (grub_zlib_disk_read): Removed.
11986 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
11987 (GRUB_POSIX_BOOL_DEFINED): New define.
11988 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
11989 * grub-core/lib/xzembed/xz.h: Addmissing includes.
11990 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
11991 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
11993 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11995 Don't override more informative errors.
11997 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
11998 * grub-core/font/font.c (open_section): Likewise.
11999 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
12000 filename. Don't override errors.
12001 (grub_cmd_openbsd_ramdisk): Don't override errors.
12002 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
12003 (grub_cmd_initrd): Likewise.
12004 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12005 (grub_cmd_initrd): Likewise.
12006 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
12007 (grub_cmd_linux): Likewise.
12008 (grub_cmd_initrd): Likewise.
12009 (grub_cmd_payload): Likewise.
12010 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
12011 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
12012 (grub_cmd_module): Likewise.
12013 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12014 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12015 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
12016 (grub_cmd_xnu_mkext): Likewise.
12017 (grub_cmd_xnu_ramdisk): Likewise.
12018 (grub_xnu_check_os_bundle_required): Likewise.
12019 (grub_xnu_load_kext_from_dir): Likewise.
12020 (grub_cmd_xnu_kextdir): Likewise.
12021 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
12023 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12025 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
12026 as 1024 in block size field. Found on one of my test images.
12027 Small optimisation while on it.
12029 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12031 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
12032 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
12033 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
12034 performance fixes while on it.
12035 (grub_sfs_close): Fix memory leak while on it.
12036 (grub_sfs_label): Convert Latin1 to UTF-8.
12038 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12040 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
12041 space to avoid overflows.
12042 (grub_hfs_label): Convert from macroman to UTF-8.
12044 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12046 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
12048 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12050 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
12052 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12054 * unicode: Import Unicode 6.0 data.
12056 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12058 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
12061 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12063 Avoid cutting in the middle of UTF-8 character.
12065 * include/grub/charset.h (grub_getend): New function.
12066 * grub-core/script/function.c (grub_script_function_find): Use
12068 * grub-core/normal/completion.c (add_completion): Likewise.
12070 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12072 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
12073 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
12074 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
12075 (GRUB_UNICODE_TAG_END): Likewise.
12076 (GRUB_UNICODE_LAST_VALID): Likewise.
12078 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12080 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
12081 len and make it smaller. All users updated.
12082 * util/import_unicode.py: Put length and not end character.
12085 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12087 Make better Unicode-compliant and unify some UTF-8 code pathes.
12089 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
12091 (grub_is_valid_utf8): Use grub_utf8_process.
12092 Check resulting code range.
12093 (grub_utf8_to_ucs4): Use grub_utf8_process.
12094 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
12097 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12099 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
12101 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12103 * docs/grub.texi (Filesystems): Mention AFS.
12105 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12107 * docs/grub.texi (Filesystems): Clarify restrictions.
12108 (Regexp): Mention non-Unicode regexp behaviour.
12109 (Other): Mention non-Unicode matching behaviour.
12111 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12113 Make HFS implementation use MacRoman.
12115 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
12116 (macroman): New const array.
12117 (macroman_to_utf8): New function.
12118 (utf8_to_macroman): Likewise.
12119 (grub_hfs_find_dir): Use utf8_to_macroman.
12120 (grub_hfs_dir): Use macroman_to_utf8.
12121 Set case_insensitive.
12123 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12125 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
12127 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12129 Integrate hints into autogeneration scripts.
12131 * docs/grub.texi (Filesystems): Add a hostdisk example.
12132 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
12133 (grub-probe): Add ofpath.
12134 * gentpl.py: Remove group nosparc64.
12135 * grub-core/commands/search.c (cache_entry): New struct.
12137 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
12138 * grub-core/commands/search_wrap.c (options): Add platform-specific
12140 (grub_cmd_search): Handle platform-specific hints.
12141 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
12142 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
12143 (grub_util_biosdisk_data): Likewise.
12144 (grub_util_biosdisk_open): Set device_map.
12145 (read_device_map): Handle "" as indication of no map.
12147 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
12148 (grub_util_biosdisk_get_compatibility_hint): New function.
12149 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
12150 * include/grub/emu/hostdisk.h
12151 (grub_util_biosdisk_get_compatibility_hint): New proto.
12152 * util/grub-install.in: Don't call grub-mkdevicemap.
12153 Add platform-specific hint to load.cfg.
12154 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
12155 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
12156 hints. Set root preliminary to compatibility hint, not to OS name.
12157 * util/grub-probe.c (PRINT_*): Add hints.
12158 (print): Make static.
12159 (escape_of_path): New function.
12160 (guess_bios_drive): Likewise.
12161 (guess_efi_drive): Likewise.
12162 (guess_baremetal_drive): Likewise.
12163 (print_full_name): Likewise.
12164 (probe): Handle hints.
12166 * util/ieee1275/devicemap.c: Removed.
12167 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
12169 (grub_util_devname_to_ofpath): Return NULL on failure.
12171 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
12173 * util/getroot.c (grub_util_pull_device): Fix memory leak.
12175 * po/POTFILES.in: Regenerated.
12177 Allow purely long options
12179 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
12180 (SHORT_ARG_USAGE): Likewise.
12181 (grub_arg_show_help): Compare opt with help_options.
12182 (parse_option): Receive opt as argument. If makes big simplificatons.
12185 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12187 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
12188 Restructure to avoid warning.
12190 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12192 * util/grub-install.in: Account for possible escaped comma in device
12195 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12197 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
12200 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12202 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
12203 allocation and zero-setting.
12204 (grub_ieee1275_get_devname): Check that alias is complete.
12206 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12208 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
12209 unaligned segments.
12211 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12213 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
12215 (grub_ofdisk_open): Check and discard ieee1275 prefix.
12216 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12217 Add ieee1275 prefix.
12219 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12221 * docs/grub.texi (Filesystems): Update.
12223 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12225 Support odc, newc and bigendian cpio formats.
12227 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
12228 * grub-core/Makefile.core.def (newc): New module.
12230 (cpio_be): Likewise.
12231 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
12233 (MAGIC2): Likewise.
12234 (head) [MODE_ODC]: Adapt for the format.
12235 (head) [MODE_NEWC]: Likewise.
12236 (head) [!MODE_*]: Write fields of interest as arrays.
12237 (MAGIC_USTAR): Removed.
12238 (read_number) [MODE_NEWC]: Change to hex.
12239 (read_number) [!MODE_*]: Parse binary arrays.
12240 (grub_cpio_find_file): Factor out the code for better structure and
12241 always use read_number.
12242 (grub_cpio_mount): Use MAGIC and MAGIC2.
12243 (grub_cpio_dir): Exit on first hook non-0 return.
12244 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
12245 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
12246 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
12247 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
12248 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
12249 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
12250 * grub-core/fs/newc.c: New file.
12251 * grub-core/fs/odc.c: Likewise.
12252 * grub-core/fs/cpio_be.c: Likewise.
12254 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12256 Fix handling of tar numbers occupying the whole field.
12258 * grub-core/fs/cpio.c (read_number): New function.
12259 (grub_cpio_find_file): Use read_number instead of strtoull.
12261 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12263 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
12264 occupying the whole field size.
12266 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
12268 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
12270 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12272 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
12274 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
12276 * grub-core/Makefile.core.def (lzma_decompress): Add missing
12277 TARGET_IMG_LDFLAGS.
12279 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12281 * util/getroot.c (ESCAPED_PATH_MAX): New define.
12282 (mountinfo_entry): Increase the field size to take escaping into
12284 (find_root_device_from_libzfs): Add one byte to size of strings for
12287 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12289 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
12291 * util/grub-setup.c (setup): Likewise.
12293 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12295 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
12298 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12300 * docs/grub.texi (Internationalisation): New section.
12302 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12304 * docs/grub.texi (Loopback booting): New section.
12306 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
12308 * util/grub-mkstandalone.in: Fix minor typo errors.
12310 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12312 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
12314 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
12315 net/icmp.c and net/icmp6.c.
12316 (http): New module.
12317 (priority_queue): Likewise.
12318 * grub-core/io/bufio.c: Rewritten.
12319 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
12320 TYPE_WITH_CONFIGFILE_OPTION.
12321 (legacy_commands): Add bootp and dhcp.
12322 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
12323 (grub_legacy_parse): Likewise.
12324 * grub-core/lib/priority_queue.c: New file.
12325 * grub-core/net/arp.c: Add missing license header.
12326 (arp_find_entry): Removed.
12327 (arp_find_entry): Likewise.
12328 (grub_net_arp_resolve): Rename to ...
12329 (grub_net_arp_send_request): ...this.
12330 (grub_net_arp_receive): New card argument.
12331 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
12332 Set router and DNS server.
12333 (grub_net_configure_by_dhcp_ack): Handle routing information.
12334 (grub_cmd_bootp): Set checksum.
12335 (grub_bootp_init): Remove net_dhcp.
12336 * grub-core/net/dns.c: New file.
12337 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
12339 (get_card_packet): Handle allocation.
12340 (grub_efinet_findcards): Set mtu.
12341 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
12342 (get_card_packet): Handle allocation.
12343 (emucard): Set mtu.
12344 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
12345 (GRUB_MOD_INIT): Set mtu.
12346 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
12348 (get_card_packet): Handle allocation.
12349 (grub_ofnet_findcards): Set mtu.
12350 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
12352 (grub_net_recv_ethernet_packet): Handle IPv6.
12353 * grub-core/net/http.c: New file.
12354 * grub-core/net/icmp.c: Likewise.
12355 * grub-core/net/icmp6.c: Likewise.
12356 * grub-core/net/ip.c (ip6addr): New type.
12357 (ip6hdr): Likewise.
12358 (reassemble): Likewise.
12359 (cmp): New function.
12360 (reassembles): New variable.
12361 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
12362 (id): New variable.
12363 (send_fragmented): New function.
12364 (grub_net_send_ip_packet): Rename to ...
12365 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
12367 (grub_net_recv_ip_packets): Rename to ...
12368 (handle_dgram): ... this. Check checksum. Handle non-UDP.
12369 (free_rsm): New function.
12370 (free_old_fragments): Likewise.
12371 (grub_net_recv_ip4_packets): New function.
12372 (grub_net_send_ip6_packet): Likewise.
12373 (grub_net_send_ip_packet): Likewise.
12374 (grub_net_recv_ip6_packets): Likewise.
12375 (grub_net_recv_ip_packets): Likewise.
12376 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
12377 (LINK_LAYER_CACHE_SIZE): New const.
12378 (link_layer_find_entry): New function.
12379 (grub_net_link_layer_add_address): Likewise.
12380 (grub_net_link_layer_resolve_check): Likewise.
12381 (grub_net_link_layer_resolve): Likewise.
12382 (grub_net_ipv6_get_slaac): Likewise.
12383 (grub_net_ipv6_get_link_local): Likewise.
12384 (grub_cmd_ipv6_autoconf): Likewise.
12385 (parse_ip): Handle one number representation.
12386 (parse_ip6): New functoion.
12387 (match_net): Handle IPv6.
12388 (grub_net_resolve_address): Handle IPv6 and DNS.
12389 (grub_net_resolve_net_address): Handle IPv6.
12390 (route_cmp): New function.
12391 (grub_net_route_address): Find best route.
12392 (grub_net_addr_to_str): Handle IPv6.
12393 (grub_net_addr_cmp): New function.
12394 (grub_net_add_addr): Register local route.
12395 (print_net_address): Handle net address.
12396 (grub_net_poll_cards): Retransmit TCP.
12397 (grub_net_poll_cards_idle_real): Likewise.
12398 (have_ahead): New function.
12399 (grub_net_seek_real): Use underlying seek.
12400 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
12401 * grub-core/net/tcp.c: New file.
12402 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
12403 (cmp): New function.
12405 (tftp_receive): Handle unordered input.
12406 (destroy_pq): New function.
12407 (tftp_close): Close pq.
12408 * grub-core/net/udp.c: Put missing license header.
12409 (grub_net_udp_socket): New function.
12410 (udp_socket_register): Likewise.
12411 (grub_net_udp_close): Likewise.
12412 (grub_net_recv_udp_packet): Check checksum.
12413 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
12414 * include/grub/misc.h (grub_memchr): New function.
12415 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
12416 (grub_net_card_driver): Return buf in recv.
12417 (grub_net_slaac_mac_list): New struct.
12418 (grub_network_level_protocol_id): Add ipv6.
12419 (grub_net_network_level_addr): Likewise.
12420 (grub_net_network_level_net_addr): Likewise.
12421 (grub_net_app_protocol): Add seek.
12422 (grub_net_socket): Removed.
12423 (grub_net_sockets): Likewise.
12424 (grub_net_socket_register): Likewise.
12425 (grub_net_socket_unregister): Likewise.
12426 (FOR_NET_SOCKETS): Likewise.
12427 (grub_net_add_addr): Add const.
12428 (GRUB_NET_BOOTP_*): New enum.
12429 (grub_net_addr_cmp): New proto.
12430 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
12431 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
12432 (grub_net_hwaddr_to_str): NEw proto.
12433 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
12434 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
12435 (grub_dns_init): New proto.
12436 (grub_dns_fini): Likewise.
12437 (grub_net_tcp_retransmit): Likewise.
12438 (grub_net_link_layer_add_address): Likewise.
12439 (grub_net_link_layer_resolve_check): Likewise.
12440 (grub_net_link_layer_resolve): Likewise.
12441 (grub_net_dns_lookup): Likewise.
12442 (grub_net_add_dns_server): Likewise.
12443 (grub_net_remove_dns_server): Likewise.
12444 (GRUB_NET_TRIES): New const.
12445 (GRUB_NET_INTERVAL): Likewise.
12446 * include/grub/net/arp.h: Mostly rewritten.
12447 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
12448 * include/grub/net/ip.h: Mostly rewritten.
12449 * include/grub/net/netbuff.h: Indent.
12450 * include/grub/net/tcp.h: New file.
12451 * include/grub/net/udp.h: Mostly rewritten.
12452 * include/grub/priority_queue.h: New file.
12453 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
12454 (grub_swap_bytes64_compile_time): Likewise.
12455 (grub_cpu_to_be16_compile_time): Likewise.
12456 (grub_cpu_to_be32_compile_time): Likewise.
12457 (grub_cpu_to_be64_compile_time): Likewise.
12458 (grub_be_to_cpu64_compile_time): Likewise.
12460 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
12462 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
12463 UINT_TO_PTR with cast.
12465 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12467 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
12470 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12472 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
12475 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12477 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
12480 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12482 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
12483 Add missing const attribute.
12484 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
12486 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
12489 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12491 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
12493 (serpent_setkey): Likewise.
12494 (serpent_encrypt_internal): Likewise.
12495 (serpent_decrypt_internal): Likewise.
12496 (serpent_encrypt): Don't put an alignment-increasing cast.
12497 (serpent_decrypt): Likewise.
12498 (serpent_test): Likewise.
12500 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12502 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
12504 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12506 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
12508 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
12510 (PTR_TO_UINT64): Likewise.
12511 (PTR_TO_UINT32): Likewise.
12513 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12515 * util/grub-mkimage.c (generate_image): Decrease the higher limit
12517 * util/grub-setup.c (setup): Don't add redundancy past the higher load
12520 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12522 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
12523 text_width > available width a bit more gracefully.
12525 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12527 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
12528 current address calculation.
12530 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12532 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
12534 (encode_block): Likewise.
12536 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12538 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
12541 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12543 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
12544 non-RS part to avoid RS messing with GDT.
12545 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
12546 Increase to suit in realmode routines.
12548 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12550 * grub-core/kern/i386/realmode.S: Increase alignment.
12551 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
12553 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12555 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
12557 (syndroms): Compute 0 syndrom.
12558 (rs_recover): Use 0 syndrom.
12560 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12562 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
12564 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12566 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
12569 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12571 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
12573 (get_top_pad): Likewise.
12574 (get_right_pad): Likewise.
12575 (get_bottom_pad): Likewise.
12577 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12579 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
12581 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12583 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
12584 attribute as the structure isn't guaranteed to be properly aligned.
12585 (grub_efi_pci_device_path): Likewise.
12586 (grub_efi_pccard_device_path): Likewise.
12587 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
12588 specify the size of `memory_type'.
12589 (grub_efi_vendor_device_path): Likewise.
12590 (grub_efi_controller_device_path): Likewise.
12591 (grub_efi_acpi_device_path): Likewise.
12592 (grub_efi_expanded_acpi_device_path): Likewise.
12593 (grub_efi_atapi_device_path): Likewise.
12594 (grub_efi_scsi_device_path): Likewise.
12595 (grub_efi_fibre_channel_device_path): Likewise.
12596 (grub_efi_1394_device_path): Likewise.
12597 (grub_efi_usb_device_path): Likewise.
12598 (grub_efi_usb_class_device_path): Likewise.
12599 (grub_efi_i2o_device_path): Likewise.
12600 (grub_efi_mac_address_device_path): Likewise.
12601 (grub_efi_ipv4_device_path): Likewise.
12602 (grub_efi_ipv6_device_path): Likewise.
12603 (grub_efi_infiniband_device_path): Likewise.
12604 (grub_efi_uart_device_path): Likewise.
12605 (grub_efi_vendor_messaging_device_path): Likewise.
12606 (grub_efi_hard_drive_device_path): Likewise.
12607 (grub_efi_cdrom_device_path): Likewise.
12608 (grub_efi_vendor_media_device_path): Likewise.
12609 (grub_efi_file_path_device_path): Likewise.
12610 (grub_efi_protocol_device_path): Likewise.
12611 (grub_efi_piwg_device_path): Likewise.
12612 (grub_efi_bios_device_path): Likewise.
12614 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12616 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
12617 (grub_ucs4_to_utf8_alloc): Likewise.
12618 (grub_ucs4_to_utf8): Likewise.
12619 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
12620 (grub_ucs4_to_utf8_alloc): Likewise.
12622 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12624 AFFS never uses unicode.
12626 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
12627 (grub_latin1_to_utf8): New inline function.
12628 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
12630 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12632 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
12635 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12637 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
12638 (grub_squash_dirent_header): Likewise.
12639 (read_chunk): Don't double swap.
12640 (grub_squash_iterate_dir): Fix swap sizes.
12642 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12644 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
12646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12648 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
12649 (grub_hfs_iterate_dir): Likewise.
12651 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12653 Fix video on platforms where unaligned access is forbidden.
12654 Make several optimisations while on it.
12656 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
12657 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12658 (grub_video_fbblit_replace_32bit_1bit): Likewise.
12659 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12661 (grub_video_fbblit_replace_16bit_1bit):
12662 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12663 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12664 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
12665 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
12666 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12667 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12668 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
12669 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
12670 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
12671 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
12672 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
12673 (grub_video_fbblit_replace_index_RGB888): Likewise.
12674 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
12675 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
12676 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
12677 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
12678 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
12679 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12680 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12682 (grub_video_fbblit_blend_XXX565_1bit):
12683 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12684 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
12685 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
12687 * grub-core/video/fb/video_fb.c (common_blitter)
12688 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
12689 (grub_video_fb_create_render_target_from_pointer)
12690 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12691 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
12692 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
12694 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
12696 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12698 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
12699 HH22 and HM10 relocations.
12701 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12703 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
12705 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12707 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
12708 allocation succeeded.
12710 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12712 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
12713 argument a u8 pointer. All users updated.
12714 Handle unaligned buffers.
12716 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12718 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
12719 add_part to workaround compiler bug.
12721 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12723 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
12725 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12727 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
12728 Reserve alignment invariants.
12729 (grub_multiboot_load): Likewise.
12730 (retrieve_video_parameters): Likewise.
12731 (grub_multiboot_make_mbi): Likewise.
12733 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12735 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
12738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12740 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
12741 (grub_pata_pio_write): Likewise.
12743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12745 Add noreturn attributes and remove unreachable code.
12747 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
12749 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
12750 code. Mark as noreturn.
12751 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
12752 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
12753 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
12755 * grub-core/kern/main.c (grub_main): Mark as noreturn.
12756 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
12757 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
12758 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
12759 * include/grub/kernel.h (grub_main): Mark as noreturn.
12760 * include/grub/reader.h (grub_rescue_run): Likewise.
12762 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12764 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
12765 redundant declaration.
12767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12769 * include/grub/net.h (grub_net_network_level_interfaces): Remove
12770 redundant declaration.
12771 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
12773 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12775 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
12776 to ensure alignment.
12777 (grub_hdparm_print_identify): Make argument uint16 * to ensure
12778 alignment. Ensure tmp alignment.
12779 (grub_cmd_hdparm): Ensure buf alignment.
12780 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
12781 to ensure alignment.
12782 (grub_ata_dumpinfo): Ensure text alignment.
12783 (grub_atapi_identify): Preserve alignment invariant.
12784 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
12786 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12788 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
12789 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12790 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12791 * include/grub/misc.h (grub_reboot)
12792 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12793 (grub_halt) [__mips__]: Likewise.
12795 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12797 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12798 Remove redundant declaration.
12799 (grub_mmap_get_post64): Likewise.
12800 (grub_mmap_get_upper): Likewise.
12801 (grub_mmap_get_lower): Likewise.
12803 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12805 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12806 uint32_t * to ensure alignment.
12807 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12809 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12811 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12812 uint16_t * to ensure alignment.
12813 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12816 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12818 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
12819 to ensure alignment.
12820 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12824 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12825 Handle unaligned pointers.
12828 (fixup): Use byte access instead of v16at.
12829 (find_attr): Fix imporper usage of v32at.
12830 (read_data): Likewise.
12831 (list_file): Handle byte-swapping and unaligned strings.
12832 (grub_ntfs_label): Likewise.
12834 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12836 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12837 as it's not necessarily aligned.
12839 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12841 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12842 redundant declaration.
12843 (grub_serial_init): Likewise.
12844 (grub_terminfo_init): Likewise.
12846 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12848 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12850 (ZAP_HASH_IDX): Likewise.
12851 (ZAP_LEAF_HASH_SHIFT): Likewise.
12852 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12853 (LEAF_HASH): Likewise.
12854 (ZAP_LEAF_NUMCHUNKS): Likewise.
12855 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12856 alignment invariants. Return pointer. All users updated.
12857 (ZAP_LEAF_ENTRY): Make into inline function.
12860 (xor_out): Use grub_crypto_xor.
12861 (dnode_get_path): Use grub_get_unaligned.
12862 (nvlist_find_value): Likewise.
12863 (grub_zfs_nvlist_lookup_uint64): Likewise.
12864 (grub_zfs_nvlist_lookup_string): Likewise.
12865 (get_nvlist_size): Likewise.
12866 (grub_zfs_open): Likewise.
12867 (fill_fs_info): Likewise.
12868 (grub_zfs_dir): Likewise.
12869 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12870 alignment invariants.
12871 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12872 necessarily aligned.
12874 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12876 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12878 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12880 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12881 arithmetic to conserve alignment invariants.
12883 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12885 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12886 redundant declaration.
12887 (grub_efiemu_mm_obtain_request): Likewise.
12888 (grub_efiemu_prepare): Likewise.
12890 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12892 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12895 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12897 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12898 case of aunaligned recptr.
12899 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12901 (grub_hfsplus_btree_search): Handle unaligned index.
12903 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12905 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12906 to get freetag and skip.
12908 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12910 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12912 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12913 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12915 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12917 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12918 name for checksum and fix allocation algorithm.
12920 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12922 * include/grub/types.h (grub_properly_aligned_t): New type.
12923 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
12924 (grub_get_unaligned16): Add explicit casts.
12925 (grub_get_unaligned32): Likewise.
12926 (grub_get_unaligned64): Likewise.
12927 (grub_set_unaligned16): New function.
12928 (grub_set_unaligned32): Likewise.
12930 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12932 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12934 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12936 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
12937 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
12938 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
12940 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12942 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
12945 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12947 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
12948 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
12950 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12952 Unify and improve RAID and crypto xor.
12954 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
12955 changed to grub_crypto_xor
12956 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
12957 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
12958 Use bigger types when possible.
12960 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12962 * grub-core/disk/raid.c (scan_devices): Fix condition.
12964 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12966 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
12967 Make name a const ptr.
12969 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12971 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
12972 first argument a const pointer.
12973 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12974 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
12976 (grub_children_iterate): Likewise.
12977 (grub_machine_mmap_iterate): Remove redundant declaration.
12979 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12981 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
12982 (grub_cmd_acpi) [!x86]: Disable EBDA.
12984 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12986 Enable UTF8 in gnulib regexp.
12988 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
12989 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
12990 (isupper): Use grub_isupper.
12991 (isascii): New inline function.
12992 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
12993 * grub-core/lib/posix_wrap/wctype.h: Likewise.
12994 * grub-core/normal/charset.c (grub_utf8_process): New function.
12995 (grub_utf8_to_utf16): Use grub_utf8_process.
12996 (grub_encode_utf8_character): New function.
12997 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
12998 * include/grub/charset.h (grub_utf8_process): New declaration.
12999 (grub_encode_utf8_character): Likewise.
13000 * include/grub/misc.h (grub_islower): New inline function.
13001 (grub_isupper): Likewise.
13002 (grub_strchrsub): Moved down to fix the definitions.
13004 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13006 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
13009 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13011 * include/grub/loader.h (grub_loader_register_preboot_hook):
13012 Use struct preboot * and not void * for handle. All users updated.
13013 (grub_loader_unregister_preboot_hook): Likewise.
13015 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
13017 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
13018 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
13019 UTF-16-BE. All users updated.
13020 (grub_hfsplus_cmp_catkey): Fix unicode handling.
13021 (grub_hfsplus_iterate_dir): Likewise.
13022 (grub_hfsplus_label): Likewise.
13024 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
13026 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
13028 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
13030 Add missing const qualifiers.
13032 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
13033 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
13034 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
13035 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
13036 (grub_lvm_check_flag): Likewise.
13037 * grub-core/efiemu/i386/coredetect.c
13038 (grub_efiemu_get_default_core_name): Likewise
13039 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13040 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
13041 * grub-core/fs/ntfs.c (fixup): Likewise.
13042 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
13043 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
13044 (fzap_lookup): Likewise.
13045 (zap_lookup): Likewise.
13046 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
13047 * grub-core/lib/legacy_parse.c (check_option): Likewise.
13048 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
13049 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
13050 (grub_freebsd_add_meta_module): Likewise.
13051 (grub_cmd_freebsd_module): Likewise.
13052 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
13053 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
13054 (grub_xnu_writetree_get_size): Likewise.
13055 (grub_xnu_writetree_toheap_real): Likewise.
13056 (grub_xnu_find_key): Likewise.
13057 (grub_xnu_create_key): Likewise.
13058 (grub_xnu_create_value): Likewise.
13059 (grub_xnu_register_memory): Likewise.
13060 (grub_xnu_check_os_bundle_required): Likewise.
13061 (grub_xnu_scan_dir_for_kexts): Likewise.
13062 (grub_xnu_load_kext_from_dir): Likewise.
13063 * grub-core/normal/color.c (color_list): Likewise.
13064 * grub-core/normal/completion.c (current_word): Likewise.
13065 * grub-core/normal/menu_entry.c (insert_string): Likewise.
13066 * grub-core/term/serial.c (grub_serial_find): Likewise.
13067 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
13068 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
13070 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
13071 (grub_freebsd_add_meta_module): Likewise.
13072 * include/grub/lib/arg.h (grub_arg_option): Likewise.
13073 * include/grub/net.h (grub_net_card_driver): Likewise.
13074 (grub_net_card): Likewise.
13075 (grub_net_app_protocol): Likewise.
13076 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
13077 * include/grub/serial.h (grub_serial_find): Likewise.
13078 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
13079 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
13080 (grub_xnu_create_value): Likewise.
13081 (grub_xnu_find_key): Likewise.
13082 (grub_xnu_scan_dir_for_kexts): Likewise.
13083 (grub_xnu_load_kext_from_dir): Likewise.
13085 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
13086 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
13087 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
13088 Moved from here ...
13089 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
13091 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
13093 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
13095 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
13097 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
13098 (read_device): Fix size calculation.
13100 2011-11-25 Robert Millan <rmh@gnu.org>
13102 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
13103 (find_root_device_from_libzfs): Add zpool output parser to be used
13104 as fallback when libzfs isn't available.
13106 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
13108 * po/Makefile.in.in: Add missing escape-continuation.
13110 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
13112 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
13114 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13116 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
13118 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13120 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
13122 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13124 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
13126 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13128 * grub-core/lib/adler32.c: Add missing license specification.
13129 * grub-core/lib/crc64.c: Likewise.
13130 * grub-core/loader/i386/pc/plan9.c: Likewise.
13131 * grub-core/partmap/plan.c: Likewise.
13133 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
13135 Add facility to debug GRUB with gdb under qemu.
13137 * grub-core/gdb_grub.in: New file.
13138 * grub-core/gmodule.pl.in: Likewise.
13139 * grub-core/Makefile.core.def (gmodule.pl): New script.
13140 (gdb_grub): Likewise.
13142 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13144 * util/grub-mount.c (argp_parser): Accept relative pathes.
13145 * util/grub-fstest.c (argp_parser): Likewise.
13147 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13151 * Makefile.util.def (libgrubmods): Add
13152 grub-core/partmap/plan.c.
13153 * docs/grub.texi: Notice Plan9 support.
13154 * grub-core/Makefile.core.def (plan9): New module.
13155 (part_plan): Likewise.
13156 * grub-core/loader/i386/pc/plan9.c: New file.
13157 * grub-core/partmap/plan.c: Likewise.
13158 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
13160 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
13161 * include/grub/mm.h (grub_extend_alloc): New inline function.
13163 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13165 Make Reed-Solomon faster by using power of generator representation of
13168 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
13169 (gf_double_t): Likewise.
13170 (gf_invert): Removed.
13171 (gf_powx): New array.
13172 (gf_powx_inv): Likewise.
13173 (scratch): Move higher.
13174 (gf_reduce): Removed.
13175 (gf_mul): Use powx.
13176 (gf_invert): Likewise.
13177 (init_inverts): Replaced with ...
13178 (init_powx): ...this. All users updated.
13179 (pol_evaluate): Replace multiplications with additions.
13180 (rs_encode): Likewise.
13181 (gauss_eliminate): Call gf_invert.
13182 (grub_reed_solomon_add_redundancy): Call init_powx.
13183 (grub_reed_solomon_recover): Call init_powx unconditionally.
13185 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13187 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
13189 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13191 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
13192 disk->partiton for safety.
13194 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13196 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13198 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
13200 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13202 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
13204 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13206 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
13208 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13210 Fix spaces handling in proc/self/mountinfo.
13212 * util/getroot.c (unescape): New function.
13213 (grub_find_root_device_from_mountinfo): Use unescape.
13215 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13217 Support ZFS embedding.
13219 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
13220 (grub_zfs_fs): Register grub_zfs_embed.
13222 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13224 Fix MIPS compilation.
13226 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
13227 * include/grub/offsets.h: Rename decompressor fields from
13228 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
13229 * util/grub-mkimage.c (image_targets): Use new names.
13231 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13233 Defer multiboot device parsing until we're in compressed part.
13235 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
13236 bsd_part. setdevice has fallen into disuse.
13237 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
13238 (bsd_part): Likewise.
13239 (boot_dev): New variable.
13240 (multiboot_trampoline): Don't parse multiboot device.
13241 Pass multiboot device in %edx.
13242 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
13244 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
13246 * grub-core/kern/i386/pc/startup.S: Save edx.
13247 (grub_boot_drive): Removed.
13248 (grub_install_dos_part): Likewise.
13249 (grub_install_bsd_part): Likewise.
13250 (grub_boot_device): New variable.
13251 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
13252 (grub_install_bsd_part): Likewise.
13253 (grub_boot_drive): Likewise.
13254 (grub_boot_device): New variable.
13255 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
13257 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
13258 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
13259 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
13260 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
13261 * util/grub-install.in: Remove redundant condition.
13263 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13265 Fix bug introduced by previous commit.
13267 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
13269 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13271 Use decompressors framework on i386-pc. It increases core size
13272 by 46 bytes but improves compatibility and maintainability.
13274 * grub-core/Makefile.core.def (lzma_decompress): New image.
13275 (kernel): Add i386_pc_ldflags.
13276 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
13277 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
13278 to real_to_prot, prot_to_real and device info.
13279 * include/grub/offsets.h: Renamed decompressor offsets.
13280 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
13281 (image_target_desc): Remove raw_size and rename decompressor fields.
13282 (compress_kernel): Handle lzma.
13283 (generate_image): Handle decompressors on i386-pc.
13285 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13287 * configure.ac: Add -fno-asynchronous-unwind-tables.
13289 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13291 Move assembly code to C by using intwrap. It increases core size
13292 by 88 bytes but improves compatibility and maintainability.
13294 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
13295 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
13296 ... here. Translated to C.
13297 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
13298 * grub-core/term/i386/pc/console.c (grub_console_getkey):
13299 ... here. Translated to C.
13300 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
13301 * grub-core/term/i386/pc/console.c (grub_console_getxy):
13302 ... here. Translated to C.
13303 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
13304 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
13305 ... here. Translated to C.
13306 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
13307 * grub-core/term/i386/pc/console.c (grub_console_cls):
13308 ... here. Translated to C.
13309 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
13310 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
13311 ... here. Translated to C.
13312 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
13313 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
13315 * grub-core/term/i386/pc/console.c (int10_9): New function.
13316 (grub_console_putchar): Likewise.
13317 * include/grub/i386/pc/console.h: Removed the not anymore shared
13320 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13322 Move grub_chainloader_real_boot out of the kernel.
13324 * grub-core/Makefile.am: Remove machine/loader.h.
13325 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
13327 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
13329 (grub_relocator16_keep_a20_enabled): Likewise.
13330 (grub_relocator16_boot): Fill new variables.
13331 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
13332 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
13334 (grub_chainloader_unload): Likewise.
13335 (grub_chainloader_cmd): Likewise.
13336 * include/grub/i386/pc/loader.h: Removed.
13337 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
13338 and esi. All initialisers updated.
13340 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13341 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
13343 * Makefile.util.def (grub-mount): New util.
13344 * .bzrignore: Add grub-mount.
13345 * configure.ac: Check for fuse and enable grub-mount if available.
13346 * docs/man/grub-mount.h2m: New file.
13347 * util/grub-mount.c: Likewise.
13349 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13351 * grub-core/commands/efi/fixvideo.c: Gettextize.
13352 * grub-core/commands/hashsum.c: Likewise.
13353 * grub-core/commands/i386/cmostest.c: Likewise.
13354 * grub-core/commands/i386/pc/drivemap.c: Likewise.
13355 * grub-core/commands/i386/pc/lsapm.c: Likewise.
13356 * grub-core/commands/i386/pc/sendkey.c: Likewise.
13357 * grub-core/commands/lsmmap.c: Likewise.
13358 * grub-core/commands/menuentry.c: Likewise.
13359 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
13360 * grub-core/commands/setpci.c: Likewise.
13361 * grub-core/loader/i386/bsd.c: Likewise.
13362 * grub-core/loader/i386/linux.c: Likewise.
13363 * util/getroot.c: Likewise.
13364 * util/grub-editenv.c: Likewise.
13365 * util/grub-fstest.c: Likewise.
13366 * util/grub-mkfont.c: Likewise.
13367 * util/grub-mkimage.c: Likewise.
13368 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13369 * util/grub-pe2elf.c: Likewise.
13370 * util/grub-probe.c: Likewise.
13371 * util/grub-setup.c: Likewise.
13372 * util/ieee1275/ofpath.c: Likewise.
13373 * util/misc.c: Likewise.
13374 * util/raid.c: Likewise.
13376 2011-11-11 Robert Millan <rmh@gnu.org>
13378 * util/getroot.c (grub_util_get_geom_abstraction): Remove
13379 __attribute__((unused)) from `os_dev', which *is* being used.
13381 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13383 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
13385 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
13386 GRUB_IA64_DL_GOT_ALIGN.
13387 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
13388 GRUB_IA64_DL_TRAMP_ALIGN.
13390 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13392 Replace grub_fatal with normal errors in i386 linux loader.
13394 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
13395 (allocate_pages): Check find_efi_mmap_size return value.
13396 (grub_e820_add_region): Return error.
13397 (grub_linux_boot): Check mmap return value.
13399 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13401 * grub-core/commands/acpihalt.c: Gettextized.
13402 * grub-core/commands/cacheinfo.c: Likewise.
13403 * grub-core/commands/cmp.c: Likewise.
13404 * grub-core/commands/efi/loadbios.c: Likewise.
13405 * grub-core/commands/gptsync.c: Likewise.
13406 * grub-core/commands/ieee1275/suspend.c: Likewise.
13407 * grub-core/commands/legacycfg.c: Likewise.
13408 * grub-core/commands/memrw.c: Likewise.
13409 * grub-core/commands/minicmd.c: Likewise.
13410 * grub-core/commands/parttool.c: Likewise.
13411 * grub-core/commands/time.c: Likewise.
13412 * grub-core/commands/videoinfo.c: Likewise.
13413 * grub-core/disk/geli.c: Likewise.
13414 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
13415 * grub-core/disk/luks.c: Likewise.
13416 * grub-core/disk/lvm.c: Likewise.
13417 * grub-core/font/font_cmd.c: Likewise.
13418 * grub-core/fs/zfs/zfscrypt.c: Likewise.
13419 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13420 * grub-core/gfxmenu/view.c: Likewise.
13421 * grub-core/kern/emu/hostdisk.c: Likewise.
13422 * grub-core/kern/emu/main.c: Likewise.
13423 * grub-core/kern/emu/misc.c: Likewise.
13424 * grub-core/kern/emu/mm.c: Likewise.
13425 * grub-core/kern/mips/arc/init.c: Likewise.
13426 * grub-core/kern/mips/loongson/init.c: Likewise.
13427 * grub-core/kern/partition.c: Likewise.
13428 * grub-core/lib/i386/halt.c: Likewise.
13429 * grub-core/lib/mips/arc/reboot.c: Likewise.
13430 * grub-core/lib/mips/loongson/reboot.c: Likewise.
13431 * grub-core/loader/i386/pc/chainloader.c: Likewise.
13432 * grub-core/loader/i386/xnu.c: Likewise.
13433 * grub-core/loader/multiboot.c: Likewise.
13434 * grub-core/net/bootp.c: Likewise.
13435 * grub-core/net/net.c: Likewise.
13436 * grub-core/normal/term.c: Likewise.
13437 * grub-core/partmap/bsdlabel.c: Likewise.
13438 * grub-core/parttool/msdospart.c: Likewise.
13439 * grub-core/term/gfxterm.c: Likewise.
13440 * grub-core/term/terminfo.c: Likewise.
13441 * grub-core/video/i386/pc/vbe.c: Likewise.
13442 * util/grub-menulst2cfg.c: Likewise.
13443 * util/grub-mkdevicemap.c: Likewise.
13444 * util/grub-mklayout.c: Likewise.
13445 * util/grub-mkrelpath.c: Likewise.
13446 * util/grub-script-check.c: Likewise.
13447 * util/ieee1275/grub-ofpathname.c: Likewise.
13448 * util/resolve.c: Likewise.
13450 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13452 Support %1$d syntax.
13454 * tests/printf_unit_test.c: New file.
13455 * Makefile.util.def (printf_test): New test.
13456 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
13458 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13460 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
13463 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13465 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
13467 * grub-core/font/font.c (grub_font_load): Likewise.
13469 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13471 * util/grub-macho2img.c: Add comment concerning gettext.
13472 * grub-core/lib/legacy_parse.c: Likewise.
13474 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13476 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
13477 (grub_xvasprintf): Likewise.
13479 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13481 Add const keyword to grub_env_get and gettextize week days.
13483 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
13484 (grub_read_hook_datetime): Return const char *.
13485 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
13487 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13489 (grub_get_weekday_name): Return const char *. Call gettext.
13490 * grub-core/script/argv.c (grub_script_argv_append): Receive const
13491 char * and len as the argument. All users updated.
13492 (grub_script_argv_split_append): Receive const char *.
13493 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
13494 * include/grub/env.h (grub_env_get): Likewise.
13495 (grub_env_read_hook_t): Return const char *.
13496 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
13497 (grub_script_argv_split_append): Likewise.
13499 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13501 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
13503 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13505 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
13506 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
13508 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13510 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
13513 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13515 Fix mips compilation.
13517 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
13519 (hashes): Use in embed decoder as well (for sizes).
13520 (dec_stream_header): Fix embed decompressor logic.
13521 (dec_stream_footer): Likewise.
13523 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13525 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
13526 an error and not a fatal on unrecognised relocation types.
13528 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13530 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13531 Issue error rather than printf on unknown arguments.
13533 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13535 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
13538 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13540 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
13543 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13545 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
13546 leftover debug printf.
13548 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13550 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
13552 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13554 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
13557 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13559 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
13561 2011-11-10 Shea Levy <slevy@tieronedesign.com>
13563 Allow all modules to perform serial IO
13565 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
13566 * include/grub/serial.h (grub_serial_port_configure): New inline
13568 (grub_serial_port_fetch): Likewise.
13569 (grub_serial_port_put): Likewise.
13570 (grub_serial_port_fini): Likewise.
13571 (grub_serial_find): New proto.
13573 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13575 Put symlink at the end of the node and fix a potential
13578 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
13579 Make symlink into an array.
13580 (set_rockridge): Set have_symlink and alloc_dirents.
13581 (grub_iso9660_read_symlink): Use new layout.
13582 (grub_iso9660_iterate_dir): Fix memory corruption.
13584 (grub_iso9660_dir): Set have_symlink.
13585 (grub_iso9660_open): Likewise.
13587 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13589 Remove local keyword.
13591 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
13592 (version_test_gt): Likewise.
13593 (version_find_latest): Likewise.
13594 (gettext_printf): Likewise.
13595 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
13597 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13599 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
13601 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13603 Fix ZFS memory and resource leaks.
13605 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
13608 (fill_vdev_info): New parameter inserted. All users updated.
13609 (check_pool_label): Likewise.
13610 (scan_disk): Likewise.
13611 (scan_devices): Close non-inserted disks.
13612 (fzap_iterate): Free l.
13613 (unmount_device): Free children descripto memory.
13615 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13617 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
13618 argument (access out of bounds).
13620 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13622 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
13625 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13627 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
13630 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13632 Fix several memory leaks.
13634 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
13635 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
13636 (grub_cpio_dir): Likewise.
13637 * grub-core/fs/fat.c (grub_fat_label): Likewise.
13638 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
13639 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
13640 (grub_romfs_label): Likewise.
13641 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
13642 (squash_unmount): New function.
13643 (grub_squash_dir): Fix memory leak.
13644 (grub_squash_open): Likewise.
13645 (grub_squash_read): Likewise.
13646 (grub_squash_mtime): Likewise.
13647 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
13648 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
13649 * util/grub-fstest.c (fstest): Likewise.
13651 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13653 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
13654 avoid accessing beyond the array.
13656 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13658 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
13660 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13662 Several AFFS fixes.
13664 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
13665 (GRUB_AFFS_FLAG_FFS): Removed.
13666 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
13667 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
13668 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
13669 (grub_fshelp_node): Make block 32-bit.
13670 Add block_cache and last_block_cache.
13671 (grub_affs_read_block): Fill and use block cache.
13672 (grub_affs_read_file): Removed.
13673 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
13675 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
13677 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
13679 (grub_affs_close): Free block cache.
13680 (grub_affs_read): Use grub_fshelp_read_file directly.
13682 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13684 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
13687 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13689 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
13691 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13694 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13696 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
13698 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
13699 byteswap when needed.
13701 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13703 Fix FreeBSD compilation.
13705 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
13706 to avoid circular dependency.
13707 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
13708 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
13709 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
13711 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13713 Fix ZFS crypto error types.
13715 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
13716 (grub_gcm_decrypt): Likewise.
13717 (grub_zfs_load_key_real): Fix error code type. Handle possible error
13720 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13724 * Makefile.util.def (10_illumos): New script.
13725 * configure.ac: Set COND_HOST_ILLUMOS.
13726 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
13727 Support Illumos calls.
13728 (find_partition_start) [__sun__]: Likewise.
13729 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
13730 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
13731 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
13732 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
13734 * util/grub-probe.c (probe) [__sun__]: Do character check.
13735 * util/grub.d/10_illumos.in: New file.
13737 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13739 Support escaped commas in hostdisk.
13741 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
13742 (find_grub_drive): Use unescape_cmp.
13743 (make_device_name): Escape commas.
13745 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13747 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
13749 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13751 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
13754 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13756 Support trampoline jumps on powerpc.
13758 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
13760 (grub_dl_load_segments): Set mod->sz.
13761 (grub_dl_flush_cache): Flush whole space occupied by module, not just
13763 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
13765 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
13767 (trampoline): New struct.
13768 (trampoline_template): New const.
13769 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
13770 * include/grub/dl.h (grub_dl): Add sz element.
13771 [__powerpc__]: Follow __ia64__.
13772 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
13773 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
13774 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
13775 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
13777 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13779 ZFS crypto support.
13781 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
13782 * grub-core/Makefile.core.def (zfscrypt): New module.
13783 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
13784 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
13785 it. All users updated.
13786 (grub_zfs_decrypt): New var.
13787 (grub_zfs_load_key): Likewise.
13788 (zio_checksum_functions): Add SHA256+MAC.
13789 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13790 (zio_read): Handle encrypted blocks.
13791 (zap_verify): Remove incorrect check.
13792 (fzap_iterate): Handle non-standard fzap.
13793 (zap_iterate): Likewise.
13794 (zap_iterate_u64): New function.
13795 (dnode_get_fullpath): Load keys.
13796 * grub-core/fs/zfs/zfscrypt.c: New file.
13797 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13798 (grub_crypto_ecb_encrypt): Make input const.
13799 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13800 (grub_crypto_ecb_encrypt): Make input const.
13801 (GRUB_CIPHER_AES): New macro.
13802 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13803 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13804 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13805 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13806 prefix. All users updated.
13807 (grub_zfs_add_key): New proto.
13808 (grub_zfs_decrypt): Likewise.
13809 (grub_zfs_load_key): Likewise.
13810 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13811 * util/grub-fstest.c (options): Add -K option.
13812 (argp_parser): Likewise.
13814 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13816 Support zle compression on ZFS.
13818 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13819 (decomp_table): Add zle.
13820 * include/grub/zfs/zio.h (zio_compress): Add zle.
13822 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13824 Support BtrFS embedding.
13826 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13827 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13828 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13829 * util/grub-setup.c (setup): Use fs embedding if available.
13830 Add additional sanity check.
13832 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13834 * util/grub-install.in: Fix condition for config_opt.
13836 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13838 Support third redundancy strip on raidz3.
13840 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13841 Return error on singularity. All users updated.
13842 (read_device): Don't stop on 3rd failure on raidz3.
13844 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13846 Support case-insensitive ZFS subvolumes.
13848 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13850 (zap_hash): Likewise.
13851 (name_cmp): New function.
13852 (zap_leaf_array_equal): New parameter case_insensitive.
13854 (zap_leaf_lookup): Likewise.
13855 (fzap_lookup): Likewise.
13856 (zap_lookup): Likewise.
13857 (dnode_get_path): New parameter case_insensitive. Retrieve case
13858 sensitiviness of a volume. All users updated.
13859 (dnode_get_fullpath): New parameter case_insensitive.
13861 (grub_zfs_dir): Set info.case_insensitiveness.
13863 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13865 Support second redundancy strip on raidz(2,3).
13867 * grub-core/fs/zfs/zfs.c (powx): New array.
13868 (powx_inv): Likewise.
13870 (xor_out): New function.
13871 (gf_mul): Likewise.
13872 (recovery): Likewise.
13873 (read_device): Use second redundancy strip.
13875 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13877 Use a power of generator representation of GF(256) multiplication group
13878 to save space time and complexity.
13880 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13881 (raid6_table2): Likewise.
13883 (powx_inv): Likewise.
13885 (grub_raid_block_mul): Replace with ...
13886 (grub_raid_block_mulx): ...this.
13887 (grub_raid6_init_table): Rewritten.
13888 (grub_raid6_recover): Use power of generator representation.
13890 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13892 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13893 for the right device.
13895 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13897 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13898 expected by grub-mkimage and it's more clear since there is no implicit
13901 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13903 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13905 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13907 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13909 * util/grub-mkrescue.in: Fix handling xorriso option.
13911 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13913 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13916 2011-11-03 crocket <crockabiscuit@gmail.com>
13918 * util/grub.d/10_linux.in: Add Slackware initrd naming.
13920 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13922 XZ CRC64 and SHA256 support.
13924 * Makefile.util.def (libgrubmods): Add crc64.c.
13925 * grub-core/Makefile.core.def (crc64): New module.
13926 * grub-core/lib/crc64.c: New file.
13927 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
13928 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
13930 (MAX_HASH_SIZE): New define.
13931 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
13932 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
13933 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13934 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13935 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
13936 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
13937 Handle non-crc32 hashes.
13938 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
13939 (dec_stream_header): Handle non-crc32 hashes.
13940 (dec_stream_footer): Likewise.
13941 (dec_block_header): Likewise.
13942 (dec_main): Likewise.
13943 (xz_dec_init): Likewise.
13944 (xz_dec_reset): Likewise.
13945 (xz_dec_end): Likewise.
13946 * util/import_gcry.py: Add CRC64 line.
13948 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13950 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
13953 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13955 Make reiserfs label retrieval similar to other *_label functions.
13957 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
13958 (REISERFS_MAX_LABEL_LENGTH): Removed.
13959 (REISERFS_LABEL_OFFSET): Likewise.
13960 (grub_reiserfs_label): Rewritten.
13962 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13964 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
13967 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13969 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
13971 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13973 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
13974 drive failure on both raidz and raidz2.
13976 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13978 Fix RAIDZ(2) for >= 5 devices.
13980 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
13981 asize argument. All users updated.
13983 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13987 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
13988 (fill_vdev_info_real): Set ashift.
13989 (read_device): Rewrite RAIDZ part based on reverse engineering.
13991 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13993 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
13994 don't report potentially unavialiable fields in debug output.
13995 (find_path): Fix double-free and memory leak.
13997 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13999 Read label on UFS1.
14001 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
14002 (grub_ufs_fs): Always set .label.
14004 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14008 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
14009 (grub_ufs_data): New field log2_blksz.
14010 (grub_ufs_read_file): Use shifts.
14011 (grub_ufs_mount): Check block size and logarithm it.
14013 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14015 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
14018 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14020 Handle symlinks and long names on tar and cpio.
14022 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
14023 (ATTR_FILE): Likewise.
14024 (ATTR_DIR): Likewise.
14025 (ATTR_LNK): Likewise.
14026 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
14027 (grub_cpio_find_file): Fill mode, handle linkname field as well as
14029 (grub_cpio_mount): Zero-fill data.
14030 (handle_symlink): New function.
14031 (grub_cpio_dir): Handle symlinks.
14032 (grub_cpio_open): Likewise.
14033 (grub_cpio_close) [MODE_USTAR]: Free linkname.
14035 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14037 Fix iso9660 filename limitations and fix memory leaks.
14039 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
14040 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
14042 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14044 Fix JFS file name length limitations.
14046 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
14047 (grub_jfs_diropen): Fix maximum filename length.
14048 (grub_jfs_getent): Fix filename length.
14049 (grub_jfs_lookup_symlink): Fix size checks.
14051 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14053 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
14056 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14058 Leverage BFS implementation to read AFS.
14060 * Makefile.util.def (libgrubmods): Add afs.c.
14061 * grub-core/Makefile.core.def (afs): New module
14062 * grub-core/fs/afs.c: New file.
14063 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
14065 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14067 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
14069 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14071 * grub-core/fs/bfs.c: Run indent.
14073 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14075 BFS implementation based on the specification.
14077 * grub-core/fs/bfs.c: New file.
14078 * Makefile.util.def (libgrubmods): Add bfs.c.
14079 * grub-core/Makefile.core.def (bfs): New module.
14081 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14083 * util/grub-fstest.c (cmd_cp): Clarify error message.
14084 (cmd_cmp): Likewise.
14086 2011-10-30 Yves Blusseau <blusseau@zetam.org>
14088 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
14091 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
14093 Remove afs and befs because of copyright problem.
14095 * grub-core/fs/afs.c: Removed.
14096 * grub-core/fs/afs_be.c: Removed.
14097 * grub-core/fs/befs.c: Removed.
14098 * grub-core/fs/befs_be.c: Removed.
14099 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
14100 * grub-core/Makefile.core.def (afs): Removed.
14101 (afs_be): Likewise.
14103 (befs_be): Likewise.
14105 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14107 Prefer rockridge over Joliet.
14109 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
14111 (set_rockridge): ... here.
14112 (grub_iso9660_mount): Check rockridge on the primary label when
14113 discovering. Ignore Joliet if Rockridge is present.
14115 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14117 Use shifts in nilfs2.
14119 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
14120 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
14121 (grub_nilfs2_palloc_entries_per_group): Replace with ...
14122 (grub_nilfs2_log_palloc_entries_per_group): ... this.
14123 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
14124 (grub_nilfs2_entries_per_block): Replaced with ...
14125 (grub_nilfs2_log_entries_per_block_log): ... this.
14126 (grub_nilfs2_blocks_per_group): Replaced with ...
14127 (grub_nilfs2_blocks_per_group_log): ... this.
14128 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
14129 (grub_nilfs2_blocks_per_desc_block_log): ... this.
14130 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
14131 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
14132 (grub_nilfs2_palloc_entry_offset): Replaced ...
14133 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
14134 (grub_nilfs2_dat_translate): Use shifts.
14135 (grub_nilfs2_read_inode): Likewise.
14136 (GRUB_MOD_INIT): Ensure that logs are correct.
14138 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14140 Use shifts in minix filesystem.
14142 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
14143 (GRUB_MINIX_ZONE2SECT): Likewise.
14144 (grub_minix_data): Replace block_size with log_block_size.
14145 (grub_minix_read_file): Use shifts.
14146 (grub_minix_mount): Check block size and take a logarithm.
14148 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14150 Use shifts in squash4.
14152 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
14153 (squash_mount): Check block size and take logarithm.
14154 (direct_read): Use shifts.
14156 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14158 Correct befs block counting logic.
14160 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
14161 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
14162 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
14163 (grub_afs_read_inode): Use block_shift.
14164 (RANGE_SHIFT): New definition.
14165 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
14166 unexpected conditions, use shifts and appropriate types.
14167 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
14169 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14171 * grub-core/disk/raid.c (scan_devices): Check partition.
14172 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
14174 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14176 Support BFS (befs) UUID.
14178 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
14179 (grub_afs_small_data_element_header): New struct.
14180 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
14181 (grub_afs_read_attribute) [MODE_BFS]: New function.
14182 (grub_afs_iterate_dir): Allocate for complete inode.
14183 (grub_afs_mount): Likewise.
14184 (grub_afs_uuid) [MODE_BFS]: New function.
14185 (grub_afs_fs) [MODE_BFS]: Add .uuid.
14187 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14189 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
14190 (zfs_unmount): Fix memory leak.
14192 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14194 Support NTFS reparse points.
14196 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
14197 (symlink_descriptor): New struct.
14198 (grub_ntfs_read_symlink): New function.
14199 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
14200 (grub_ntfs_open): Likewise.
14202 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14204 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
14206 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14208 fstest xnu_uuid subcommand.
14210 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
14211 grub-core/commands/xnu_uuid.c.
14212 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
14213 (fstest): Handle xnu_uuid.
14214 (options): Document xnu_uuid.
14215 (argp_parser): Parse xnu_uuid.
14217 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14219 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
14220 -l argument. Add newline at the end if printing.
14221 (GRUB_MOD_INIT): Document -l.
14223 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14225 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
14227 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14229 ZFS multi-device and version 33 support.
14231 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
14232 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
14233 (grub_zfs_data): Add multidev-ice-related fields.
14234 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
14235 (dva_get_offset): Make dva const.
14236 (zfs_fetch_nvlist): New function.
14237 (fill_vdev_info_real): Likewise.
14238 (fill_vdev_info): Likewise.
14239 (check_pool_label): Likewise.
14240 (scan_disk): Likewise.
14241 (scan_devices): Likewise.
14242 (read_device): Likewise.
14243 (read_dva): Likewise.
14244 (zio_read_gang): Use read_dva.
14245 (zio_read_data): Likewise.
14246 (zap_leaf_lookup): Add missing endian conversion.
14247 (zap_verify): Add missing endian conversion. All users updated.
14248 (fzap_lookup): Likewise.
14249 (fzap_iterate): Likewise.
14250 (dnode_get_path): Handle SA bonus.
14251 (nvlist_find_value): Make input const. All users updated.
14252 (unmount_device): New function.
14253 (zfs_unmount): Use unmount_device.
14254 (zfs_mount): Use scan_disk.
14255 (zfs_mtime): New function.
14256 (grub_zfs_open): Handle system attributes.
14257 (fill_fs_info): Likewise.
14258 (grub_zfs_dir): Likewise.
14259 (grub_zfs_fs): Add mtime.
14260 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
14261 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
14262 (SA_MTIME_OFFSET): Likewise.
14263 (SA_SYMLINK_OFFSET): Likewise.
14264 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
14265 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
14266 (fstest): Support zfsinfo.
14267 (argp_parser): Likewise.
14269 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14271 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
14274 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14278 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
14279 sharing the same block. Iterate over correct number of indices.
14280 (dnode_get_path): Handle symlinks correctly.
14282 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14284 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
14286 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14288 Read label on HFS+.
14290 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
14291 (grub_hfsplus_btree_search): Fix types.
14292 (grub_hfsplus_label): Implement.
14294 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14296 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
14298 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14300 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
14302 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14304 Fix symlink handling on iso9660.
14306 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
14308 (grub_iso9660_susp_iterate): Accept zero-size iterate.
14309 (grub_iso9660_read_symlink): Moved most of code ...
14310 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
14312 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14314 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14315 Use union to avoid breaking strict-aliasing rules.
14317 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14319 Support multi-extent iso files.
14321 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
14323 (grub_fshelp_node): Revamp. All users updated.
14324 (FLAG_*): New enum.
14325 (read_node): New function.
14326 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
14328 (grub_iso9660_mount): Don't attempt to read sua when there is none.
14329 (get_node_size): New function.
14330 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
14332 Fix memory leak on . and ..
14333 (grub_iso9660_read): Use read_node.
14334 (grub_iso9660_close): Free node.
14336 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14338 Fix tar 4G limit and handle paths containing dot.
14340 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
14341 (canonicalize): New function.
14342 (grub_cpio_find_file): Use canonicalize. Store offs in
14344 (grub_cpio_dir): Use grub_disk_addr_t.
14345 (grub_cpio_open): Likewise.
14347 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14349 Fix handling of uncompressed blocks on squashfs and break 4G limit.
14351 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
14353 (grub_squash_inode): Add long_file and block_size.
14354 (grub_squash_cache_inode): New struct.
14355 (grub_squash_dirent): Make types into enum.
14356 (SQUASH_TYPE_LONG_REGULAR): New type.
14357 (grub_squash_frag_desc): Add field size.
14358 (SQUASH_BLOCK_FLAGS): New enum.
14359 (grub_squash_data): Use grub_squash_cache_inode.
14360 (grub_fshelp_node): Make ino_chunk 64-bit.
14361 (read_chunk): Minor argument change. All users updated.
14362 (squash_mount): Use correct le_to_cpu.
14363 (grub_squash_open): Handle LONG_REGULAR.
14364 (direct_read): New function.
14365 (grub_squash_read_data): Handle blocks correctly.
14367 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14369 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
14371 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14373 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
14375 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14377 Fix 2G limit on ZFS.
14379 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
14381 (uberblock_verify): Likewise.
14382 (dmu_read): Likewise.
14383 (grub_zfs_read): Likewise. Remove invalid cast.
14385 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14387 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
14388 (grub_jfs_blkno): Fix incorrect shift.
14389 (grub_jfs_read_file): Use more appropriate types.
14391 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14393 Support triple indirect on minix2 and minix3.
14395 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
14396 Declare triple_indir_zone.
14397 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
14400 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14404 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
14405 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
14406 Rename ctime to mtime. All users updated.
14407 (grub_minix_get_file_block): Fix types and double indirect computations.
14409 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14411 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
14412 if no label is found.
14413 (grub_fat_iterate_dir): Fix file size type.
14414 (grub_fat_iterate_dir): Likewise.
14416 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14418 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
14420 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
14421 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14423 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14425 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
14427 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14429 * util/import_gcry.py: Accept space between # and include.
14431 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14433 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
14435 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14437 Fine grainely disable warnings on lexer. Remove Wno-error on it.
14439 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
14440 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
14442 * grub-core/script/yylex.l: Add fine-grained #pragma.
14444 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14446 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
14447 New inline function.
14448 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
14450 (memset) [GRUB_UTIL]: Likewise.
14451 (memcmp) [GRUB_UTIL]: Likewise.
14453 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14455 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
14456 inline function rather than a define.
14458 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14460 * util/grub-setup.c: Add missing include.
14462 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14464 * util/ieee1275/grub-ofpathname.c: Add missing include.
14466 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14468 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
14469 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
14472 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14474 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
14477 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14479 * util/grub-install.in: Add datarootdir as per automake manual
14481 * util/grub-mknetdir.in: Likewise.
14483 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14485 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
14487 * util/grub.d/10_kfreebsd.in: Likewise.
14488 * util/grub.d/10_linux.in: Likewise.
14489 * util/grub.d/10_netbsd.in: Likewise.
14490 * util/grub.d/10_windows.in: Likewise.
14491 * util/grub.d/20_linux_xen.in: Likewise.
14493 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
14495 Remove redundant grub_kernel_image_size.
14497 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
14499 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
14500 the small code. It moves it only by few bytes but simplifies the code.
14501 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
14503 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
14504 (grub_kernel_image_size): Removed.
14505 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
14506 (grub_kernel_image_size): Removed.
14507 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
14508 compiled with Apple toolchain.
14509 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
14510 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
14511 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
14512 (grub_total_module_size): Likewise.
14513 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
14515 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
14516 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
14517 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14518 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
14519 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
14520 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
14521 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
14522 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
14524 (grub_total_module_size): Removed.
14525 * util/grub-mkimage.c (image_target_desc): Remove image_size.
14526 (image_targets): Likewise.
14527 Set .compressed_size to no field on sparc.
14528 (generate_image): Remove kernel_image_size handling.
14530 2011-10-19 Szymon Janc <szymon@janc.net.pl>
14532 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
14533 NULL pointer dereference.
14535 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14537 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
14538 done with a dedicated section.
14540 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
14541 Ensure the correct position of boot_path.
14542 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
14543 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
14545 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
14546 * include/grub/boot.h: Removed. All references removed.
14547 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14549 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
14551 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14553 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
14556 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14558 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
14560 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14562 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14563 Don't add the bogus brackets.
14565 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14569 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
14570 * grub-core/Makefile.core.def (exfat): New module.
14571 * grub-core/fs/exfat.c: New file.
14572 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
14573 (GRUB_FAT_ATTR_*): Make into an enum.
14574 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
14575 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
14576 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
14577 (GRUB_FAT_MAXFILE): Removed.
14578 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
14579 (grub_current_fat_bpb_t): New type.
14580 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
14581 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
14582 (grub_fat_dir_node_t): New type.
14583 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
14584 (fat_log2) [MODE_EXFAT]: Removed.
14585 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
14586 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
14587 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
14588 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
14589 (grub_fat_label) [MODE_EXFAT]: New function.
14590 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
14591 reserved_first_sector to 0.
14593 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14595 Move grub_reboot out of the kernel.
14597 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
14598 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
14599 * grub-core/lib/efi/reboot.c: ... here.
14600 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
14601 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
14602 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
14603 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
14604 * grub-core/lib/i386/reboot_trampoline.S: ... here.
14605 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
14606 * grub-core/lib/ieee1275/reboot.c: ... here.
14607 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
14608 * grub-core/lib/mips/arc/reboot.c: ... here.
14609 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
14610 * grub-core/lib/mips/loongson/reboot.c: ...here.
14611 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
14612 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
14613 * include/grub/emu/misc.h (grub_reboot): New function declaration.
14614 * include/grub/i386/reboot.h: New file.
14615 * include/grub/mips/loongson/ec.h: Fix includes.
14616 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
14617 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
14618 * grub-core/lib/i386/reboot.c: New file.
14620 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
14622 Make grub_prefix into module to fix the arbitrary limit and save
14625 * grub-core/kern/emu/main.c (grub_prefix): Removed.
14626 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
14627 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
14628 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
14629 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
14630 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
14631 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
14632 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
14633 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14634 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
14635 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
14636 * include/grub/ia64/efi/kernel.h: Removed.
14637 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
14638 (grub_prefix): Removed.
14639 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
14640 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
14641 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
14642 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
14643 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
14644 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
14645 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
14646 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
14647 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
14648 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
14649 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14650 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14651 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14652 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14653 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
14654 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
14655 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
14656 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14657 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
14658 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
14659 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
14660 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
14661 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
14662 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
14663 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
14664 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
14665 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
14666 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
14667 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
14669 * util/grub-mkimage.c (image_target_desc): Removed prefix and
14671 (image_targets): Likewise.
14672 (generate_image): Put prefix as a module.
14674 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14676 Replace grub_module_iterate with FOR_MODULES.
14678 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
14679 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
14680 (grub_efi_modules_addr): ...this.
14681 * grub-core/kern/efi/init.c (grub_modbase): New variable.
14682 (grub_efi_init): Set grub_modbase.
14683 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
14684 (grub_modbase): New variable.
14685 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
14686 (grub_modbase): New variable.
14687 (grub_machine_init): Set grub_modbase.
14688 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
14689 (grub_modbase): New variable.
14690 (grub_machine_init): Set grub_modbase.
14691 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
14692 (grub_modbase): New variable.
14693 (grub_machine_init): Set grub_modbase.
14694 * grub-core/kern/main.c (grub_module_iterate): Remove.
14695 (grub_modules_get_end): Use grub_modbase.
14696 (grub_load_modules): Use FOR_MODULES.
14697 (grub_load_config): Likewise.
14698 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
14699 (grub_modbase): New variable.
14700 (grub_machine_init): Set grub_modbase.
14701 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
14702 (grub_modbase): New variable.
14703 (grub_machine_init): Set grub_modbase.
14704 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
14706 (grub_modbase): New variable.
14707 (grub_machine_init): Set grub_modbase.
14708 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
14709 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
14710 (grub_module_iterate): Likewise.
14711 (grub_modbase): New variable declaration.
14712 (FOR_MODULES): New macro.
14714 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14716 * configure.ac: Check for __ctzdi2 and __ctzsi2.
14717 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
14719 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14721 Fix few obvious type discrepancies.
14723 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
14724 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
14725 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
14727 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
14728 and connected types.
14729 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
14731 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
14732 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
14733 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
14734 and connected types.
14736 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14738 Fix python 3.x incompatibilities.
14740 * gentpl.py: Put brackets around print strings.
14741 * util/import_gcry.py: Open explicitly as utf-8.
14742 Use in instead of has_key.
14744 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14746 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
14747 (GRUB_XFS_INO_AGBITS): Make into inline function.
14748 (GRUB_XFS_INO_INOINAG): Likewise.
14749 (GRUB_XFS_INO_AG): Likewise.
14750 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14751 (GRUB_XFS_EXTENT_OFFSET): Likewise.
14752 (GRUB_XFS_EXTENT_BLOCK): Likewise.
14753 (GRUB_XFS_EXTENT_SIZE): Likewise.
14754 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
14755 (GRUB_XFS_NEXT_DIRENT): Likewise.
14756 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
14757 (grub_xfs_read_file): Fix offset type.
14759 2011-10-15 Robert Millan <rmh@gnu.org>
14761 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
14763 2011-10-15 Robert Millan <rmh@gnu.org>
14765 Fix build problem on FreeBSD and GNU/kFreeBSD.
14767 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
14769 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14771 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
14773 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
14775 (grub_hfsplus_btree_recoffset): Likewise.
14776 (grub_hfsplus_btree_recptr): Likewise.
14777 (grub_hfsplus_find_block): Likewise.
14778 (grub_hfsplus_btree_search): Likewise.
14779 (grub_hfsplus_read_block): Likewise.
14780 (grub_hfsplus_read_file): Likewise.
14781 (grub_hfsplus_mount): Likewise.
14782 (grub_hfsplus_btree_iterate_node): Likewise.
14783 (grub_hfsplus_btree_search): Likewise.
14784 (grub_hfsplus_iterate_dir): Likewise.
14785 (grub_hfsplus_read): A small code simplification.
14787 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14789 * grub-core/kern/emu/hostdisk.c
14790 (convert_system_partition_to_system_disk): Don't assume that children
14791 of mapper nodes are mapper nodes.
14793 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14795 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14796 * include/grub/misc.h (grub_isxdigit): New function.
14797 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14798 switched to grub_isxdigit.
14799 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14800 number starting with a letter.
14802 2011-10-09 Robert Millan <rmh@gnu.org>
14804 LVM support for FreeBSD and GNU/kFreeBSD.
14806 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14808 (LVM_DEV_MAPPER_STRING): Move from here ...
14809 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14810 * util/getroot.c: Include `<grub/util/lvm.h>'.
14811 (grub_util_get_dev_abstraction): Enable
14812 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14813 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14814 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14815 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14817 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14819 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14820 when LVM abstraction is required for ${GRUB_DEVICE}.
14822 2011-10-06 Szymon Janc <szymon@janc.net.pl>
14824 Add support for LZO compression in GRUB:
14825 - import of minilzo library,
14826 - LZO decompression for btrfs,
14827 - lzop files decompression.
14829 * grub-core/io/lzopio.c: New file.
14830 * grub-core/lib/adler32.c: Likewise.
14831 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14832 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14833 * grub-core/lib/minilzo/minilzo.c: Likewise.
14834 * grub-core/lib/minilzo/minilzo.h: Likewise.
14835 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14836 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14837 grub-core/lib/minilzo/minilzo.c to common.
14838 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14839 cflags in cppflags.
14840 * grub-core/Makefile.core.def (btrfs): Likewise.
14841 * grub-core/Makefile.core.def (lzopio): New module.
14842 (adler32): Likewise.
14843 * grub-core/fs/btrfs.c: Include minilzo.h.
14844 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14845 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14846 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14847 (grub_btrfs_lzo_decompress): New function.
14848 (grub_btrfs_extent_read): Add support for LZO compression type.
14849 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14850 (GRUB_USHRT_MAX): Likewise.
14851 (GRUB_UINT_MAX): Likewise.
14852 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14853 (UINT_MAX): Likewise.
14854 (CHAR_BIT): Likewise.
14855 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14856 grub-core/lib/posix_wrap/limits.h
14857 (UCHAR_MAX): Likewise.
14858 * include/grub/file.h (grub_file_filter_id): New compression filter
14859 GRUB_FILE_FILTER_LZOPIO.
14860 * include/grub/file.h (grub_file_filter_id): Set
14861 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14862 * include/grub/types.h (grub_get_unaligned16): New function.
14863 (grub_get_unaligned32): Likewise.
14864 (grub_get_unaligned64): Likewise.
14865 * util/import_gcry.py (cryptolist): Add adler32.
14867 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14869 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14870 in perspective decreases the complexity of build system and fixes
14871 compilation right now.
14873 2011-10-01 Ales Nesrsta <starous@volny.cz>
14875 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14876 (fixed problem related to using UHCI with coreboot).
14878 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14880 * gentpl.py: Use Autogen macros so that the output template file
14881 (Makefile.tpl) size is reduced.
14883 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
14885 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14888 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14890 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14891 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14893 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14895 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14898 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14900 Remove extra declaration of sleep for mingw32.
14902 * util/misc.c (sleep) [__MINGW32__]: Removed.
14903 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14905 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14907 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14909 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14911 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14912 (grub_netbsd_btinfo_bootwedge): New struct.
14913 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14915 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14917 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14919 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
14922 2011-09-28 Andreas Born <futur.andy@googlemail.com>
14924 Fix incorrect identifiers in bash-completion.
14926 * util/bash-completion.d/grub-completion.bash.in
14927 (_grub_mkpasswd-pbkdf2): Rename to ...
14928 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
14929 (_grub_script-check): Rename to ...
14930 (_grub_script_check): ... this. All users updated.
14932 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
14934 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14935 Return 0 if disk isn't biosdisk.
14937 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14939 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
14941 * Makefile.util.def (grub-fstest): Likewise.
14943 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14945 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
14946 Get sector size from disk label.
14948 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
14950 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
14951 */README* as well as README*.
14952 Reported by: Axel Beckert.
14954 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14956 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
14957 case of less than 256 MiB of RAM.
14959 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14961 * grub-core/commands/wildcard.c (make_regex): Handle @.
14963 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14965 * util/grub-install.in: Move cryptodisk logic to appropriate place.
14967 2011-08-21 Szymon Janc <szymon@janc.net.pl>
14969 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
14970 AC_LANG_CONFTEST macros.
14972 2011-08-20 Szymon Janc <szymon@janc.net.pl>
14974 Add grub-fstest option to uncompress data for commands.
14976 * util/grub-fstest.c (uncompress): New var.
14977 (options): New option -u.
14979 2011-08-20 Szymon Janc <szymon@janc.net.pl>
14981 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
14982 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
14984 2011-08-20 Szymon Janc <szymon@janc.net.pl>
14986 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
14987 file type was not recognized correctly (not gzip or corrupted).
14989 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14991 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
14992 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
14994 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14996 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
14998 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14999 video_radeon_fuloong2e.
15000 * grub-core/video/radeon_fuloong2e.c: New file.
15001 * include/grub/video.h (grub_video_id_t): Add new ID
15002 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
15004 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15006 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
15008 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
15009 that PRID matches the detected subplatform and reset the subplatform
15012 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15014 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
15016 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15018 Fix PCI iterating on functions >= 4.
15020 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
15021 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
15023 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
15024 (grub_pci_read): Fix bitmask.
15025 (grub_pci_read_word): Likewise.
15026 (grub_pci_read_byte): Likewise.
15027 (grub_pci_write): Likewise.
15028 (grub_pci_write_word): Likewise.
15029 (grub_pci_write_byte): Likewise.
15031 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15033 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
15034 can still be specified in TARGET_CFLAGS)
15036 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15038 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
15040 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
15041 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
15042 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
15043 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
15044 (FULOONG): Rename to ...
15045 (FULOONG2F): ... this. All users updated.
15046 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
15047 (machtype_fuloong2f_str): ... this.
15048 (machtype_fuloong2e_str): New string.
15049 Check for machtype_fuloong2e_str.
15050 * grub-core/loader/mips/linux.c (loongson_machtypes)
15051 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
15052 * grub-core/term/serial.c (loongson_defserial)
15053 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
15054 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
15055 loongson_defserial.
15056 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
15058 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
15059 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
15060 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
15061 to IMAGE_FULOONG2F_FLASH. All users updated.
15062 (image_targets): Rename images.
15063 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
15065 2011-08-19 Szymon Janc <szymon@janc.net.pl>
15067 Make enable of disk cache statistics code configurable.
15069 * configure.ac: --enable-cache-stats added.
15070 * config.h.in (DISK_CACHE_STATS): New define.
15071 * grub-core/Makefile.core.def (cacheinfo): New command.
15072 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
15073 * grub-core/commands/cacheinfo.c: New file.
15074 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
15075 moved to cacheinfo.c.
15076 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
15078 * include/grub/disk.h: Likewise.
15080 2011-08-19 Szymon Janc <szymon@janc.net.pl>
15082 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
15083 * grub-core/Makefile.am: Likewise.
15085 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15087 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
15090 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15092 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
15094 (grub_jfs_lookup_symlink): Use correct starting inode.
15096 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15098 * util/grub-setup.c (main): Add missing gcry initialisation.
15100 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15102 Don't accept text modes on EFI when booting Linux.
15104 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
15105 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
15107 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
15108 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
15110 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
15111 use of "/path/.." as in grub-install for EFI as well as handling
15112 symlinks correctly.
15113 Fixes Debian bug #637768.
15115 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
15117 * util/grub-probe.c: Remove duplicate #include.
15119 2011-08-10 Robert Millan <rmh@gnu.org>
15121 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
15123 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
15125 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
15126 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
15128 2011-08-03 Robert Millan <rmh@gnu.org>
15130 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
15131 la_array as packed.
15132 Reported by: Zachary Bedell
15134 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
15136 * configure.ac: The Loongson port requires grub-mkfont due to its
15137 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
15140 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
15142 * util/grub-install.in: Don't source grub-mkconfig_lib until after
15143 processing arguments (otherwise help2man fails when GRUB has not yet
15146 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15148 New script grub-mkstandalone.
15150 * Makefile.util.def (grub-mkstandalone): New script.
15151 * docs/man/grub-mkstandalone.h2m: New file.
15152 * util/grub-mkstandalone.in: Likewise.
15154 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15156 Support ATA disks with 4K sectors.
15158 * include/grub/ata.h (grub_ata): New member log_sector_size.
15159 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
15160 (grub_ata_identify): Read sector size.
15161 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
15163 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15165 * util/grub-install.in: Don't use uhci outside of x86.
15167 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15169 * util/grub-mkrescue.in: Add missing quotes.
15171 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15173 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
15176 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15178 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
15180 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15182 * include/grub/video.h: add missing EXPORT_FUND on
15183 grub_video_edid_checksum and grub_video_edid_preferred_mode.
15185 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15187 * include/grub/mips/kernel.h: Fix define conflict.
15189 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15191 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
15194 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
15196 Preferred resolution detection for VBE.
15198 * grub-core/video/video.c (grub_video_edid_checksum): New function.
15199 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
15200 the Flat Panel extension, in line with the X.org VESA driver.
15201 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
15203 (grub_vbe_bios_get_ddc_capabilities): Likewise.
15204 (grub_vbe_bios_read_edid): Likewise.
15205 (grub_vbe_get_preferred_mode): Likewise.
15206 (grub_video_vbe_setup): When the mode is "auto", try to get the
15207 preferred mode from VBE, and use the largest mode that is no larger
15208 than the preferred mode (some BIOSes expose a preferred mode that is
15209 not in their mode list!). If this fails, fall back to 640x480 as a
15210 safe conservative choice.
15211 (grub_video_vbe_get_edid): New function.
15212 (grub_video_vbe_adapter): Add get_edid.
15213 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
15214 (struct grub_video_adapter): Add get_edid.
15215 (grub_video_edid_checksum): Add prototype.
15216 (grub_video_edid_preferred_mode): Likewise.
15217 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
15220 * grub-core/commands/videoinfo.c (print_edid): New function.
15221 (grub_cmd_videoinfo): Print EDID if available.
15223 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
15224 is more appropriate on a wider range of platforms than 640x480.
15225 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
15228 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15230 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
15232 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15234 * po/POTFILES.in: Regenerate.
15236 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15238 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
15239 incorrect memory usage.
15241 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15243 * util/grub-install.in: Source grub-mkconfig_lib.
15245 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15247 Remove getroot.c from core on emu platform.
15249 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
15251 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
15253 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
15254 * util/getroot.c (get_win32_path): ... here.
15255 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
15256 * util/getroot.c (fini_libzfs): ... here.
15257 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
15258 * util/getroot.c (grub_get_libzfs_handle): ... here.
15259 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
15261 * util/getroot.c (grub_find_zpool_from_dir): ... here.
15262 * grub-core/kern/emu/misc.c
15263 (grub_make_system_path_relative_to_its_root): Moved from here...
15264 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
15265 * grub-core/kern/emu/getroot.c: Moved from here ...
15266 * util/getroot.c: ... here. All users updated.
15267 * grub-core/kern/emu/raid.c: Moved from here ...
15268 * util/raid.c: ... here. All users updated.
15270 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15272 * po/POTFILES.in: Regenerate.
15274 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15276 Fix compilation on GNU/Linux.
15278 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
15280 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
15281 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
15282 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
15284 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15285 2011-07-07 Michael Gorven <michael@gorven.za.net>
15286 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
15288 LUKS and GELI support.
15290 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
15291 grub-core/disk/luks.c, grub-core/disk/geli.c,
15292 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
15293 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
15294 grub-core/lib/arg.c.
15295 (libgrubmods.a): Remove gcrypts cflags and cppflags.
15296 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
15297 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
15298 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
15299 (grub-bin2h): Add libgcry.a.
15300 (grub-mkimage): Likewise.
15301 (grub-mkrelpath): Likewise.
15302 (grub-script-check): Likewise.
15303 (grub-editenv): Likewise.
15304 (grub-mkpasswd-pbkdf2): Likewise.
15305 (grub-pe2elf): Likewise.
15306 (grub-fstest): Likewise.
15307 (grub-mkfont): Likewise.
15308 (grub-mkdevicemap): Likewise.
15309 (grub-probe): Likewise.
15310 (grub-ofpath): Likewise.
15311 (grub-mklayout): Likewise.
15312 (example_unit_test): Likewise.
15313 (grub-menulst2cfg): Likewise.
15314 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
15315 * grub-core/Makefile.core.def (cryptodisk): New module.
15318 * grub-core/disk/AFSplitter.c: New file.
15319 * grub-core/disk/cryptodisk.c: Likewise.
15320 * grub-core/disk/geli.c: Likewise.
15321 * grub-core/disk/luks.c: Likewise.
15322 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
15324 (grub_util_get_dm_abstraction): New function.
15325 (grub_util_follow_gpart_up): Likewise.
15326 (grub_util_get_geom_abstraction): Likewise.
15327 (grub_util_get_dev_abstraction): Use new functions.
15328 (grub_util_pull_device): Pull GELI and LUKS.
15329 (grub_util_get_grub_dev): Handle LUKS and GELI.
15330 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
15331 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
15332 (follow_geom_up): Removed.
15333 (grub_util_fd_seek): New function.
15334 (open_device): Use grub_util_fd_seek.
15335 (nread): Rename to ..
15336 (grub_util_fd_read): ... this. All users updated.
15337 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
15338 (grub_crypto_cbc_decrypt): Likewise.
15339 (grub_crypto_hmac_write): Likewise.
15340 (grub_crypto_hmac_buffer): Likewise.
15341 (grub_password_get): Extend to util.
15342 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
15343 New member modname.
15344 (gcry_md_spec) [GRUB_UTIL]: Likewise.
15345 * include/grub/cryptodisk.h: New file.
15346 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
15347 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
15349 (grub_util_follow_gpart_up): New proto.
15350 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
15351 (grub_util_fd_read): Likewise.
15352 (grub_cryptodisk_cheat_mount): Likewise.
15353 (grub_util_cryptodisk_print_uuid): Likewise.
15354 (grub_util_get_fd_sectors): Likewise.
15355 * util/grub-fstest.c (mount_crypt): New var.
15356 (fstest): Mount crypto if requested.
15357 (options): New option -C.
15358 (argp_parser): Parse -C.
15359 (main): Init and fini gcry.
15360 * util/grub-install.in: Support cryptodisk install.
15361 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
15362 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
15364 (prepare_grub_to_access_device): Likewise.
15365 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
15366 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
15367 (probe_cryptodisk_uuid): New function.
15368 (probe_abstraction): Likewise.
15369 (probe): Use new functions.
15370 * util/import_gcry.py: Create Makefile.utilgcry.def.
15371 Add modname member.
15373 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15375 Lazy device scanning.
15377 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
15378 (grub-setup): Remove util/raid.c.
15379 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
15380 * grub-core/disk/lvm.c (scan_depth): New variable.
15381 (grub_lvm_iterate): Rescan if necessary.
15382 (find_lv): New function based on grub_lvm_open.
15383 (grub_lvm_open): Use find_lv. Rescan on error.
15384 (is_node_readable): New function.
15385 (is_lv_readable): Likewise.
15386 (grub_lvm_scan_device): Skip already found disks.
15387 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
15388 Stop if searched device is found and readable.
15389 * grub-core/disk/raid.c (inscnt): New variable.
15390 (scan_depth): Likewise.
15391 (scan_devices): New function based on grub_raid_register. Abort if
15392 looked for device is found.
15393 (grub_raid_iterate): Rescan if needed.
15394 (find_array): NEw function based on -grub_raid_open.
15395 (grub_raid_open): Use find_array and rescan.
15396 (insert_array): Set became_readable_at.
15397 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
15398 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
15400 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
15401 (grub_util_pull_device): New function.
15402 (grub_util_get_grub_dev): Call grub_util_pull_device.
15403 * util/raid.c: Moved to ..
15404 * grub-core/kern/emu/raid.c: ... here.
15405 (grub_util_raid_getmembers): New parameter "bootable".
15406 All users updated. Support 1.x.
15407 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
15409 * include/grub/disk.h (grub_disk_pull_t): New enum.
15410 (grub_disk_dev): Change iterate prototype.
15412 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
15414 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
15415 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
15416 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
15417 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
15419 * include/grub/util/raid.h: Removed.
15421 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15423 * po/POTFILES.in: Regenerate.
15425 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15427 Unify sparc init with other ieee1275.
15429 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
15430 instead of kern/sparc64/ieee1275/init.c.
15431 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
15432 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
15433 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
15434 grub/machine/kernel.h.
15435 (grub_ieee1275_original_stack) [__sparc__]: New variable.
15436 (grub_claim_heap) [__sparc__]: Use sparc version.
15437 (grub_machine_init): Moved args parsing to
15438 (grub_parse_cmdline): ...this.
15439 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
15440 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
15442 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
15444 Move BOOTP to separate file.
15446 * grub-core/Makefile.core.def (net): Add net/bootp.c.
15447 * grub-core/net/net.c: Move all BOOTP functions to
15448 * grub-core/net/bootp.c: ... here.
15450 Use frame interface on PXE.
15452 * grub-core/Makefile.core.def (pxecmd): Removed.
15453 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
15454 * grub-core/commands/i386/pc/pxecmd.c: Removed.
15455 * grub-core/i386/pc/pxe.c: Moved from here ...
15456 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
15457 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
15458 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
15460 EFI network support.
15462 * grub-core/Makefile.core.def (efinet): New module.
15463 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
15465 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
15467 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
15468 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
15469 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
15470 * grub-core/net/drivers/efi/efinet.c: New file.
15471 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
15472 (grub_efi_net_config): New extern var.
15474 Various cleanups and bugfixes.
15476 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
15478 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
15479 disk declared as partition.
15480 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
15482 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
15483 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
15484 (grub_debug_zalloc): Likewise.
15485 (grub_debug_realloc): Likewise.
15486 (grub_debug_memalign): Likewise.
15487 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
15488 Check that target is IPv4.
15489 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
15490 local-mac-address as fallback.
15491 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
15493 * grub-core/net/ip.c (ipchksum): Rename to ...
15494 (grub_net_ip_chksum): ... this. All users updated.
15495 (grub_net_recv_ip_packets): Special handling for DHCP.
15496 * util/grub-mkimage.c (generate_image): Zero-out aout header.
15498 Unify prefix handling
15500 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
15501 (grub_machine_get_bootlocation): ... this.
15502 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
15503 (grub_machine_get_bootlocation): ... this.
15504 (grub_prefix): New variable.
15506 (root_dev): New variable.
15508 (main): Use new variables.
15509 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
15511 (grub_machine_get_bootlocation): ... this.
15512 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
15513 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
15514 (grub_machine_get_bootlocation): ... this.
15515 (grub_machine_set_prefix): Removed.
15516 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
15517 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
15519 (grub_machine_get_bootlocation): ... this.
15520 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
15521 (grub_set_prefix_and_root): ... this. All users updated.
15522 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
15524 (grub_machine_get_bootlocation): ... this.
15525 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
15526 (grub_machine_get_bootlocation): New proto.
15527 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
15529 Less intrusive and more reliable seek on network implementation.
15531 * grub-core/kern/file.c (grub_file_net_seek): Removed.
15532 (grub_file_seek): Don't call grub_file_net_seek.
15533 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
15534 (grub_net_fs_read_real): .. this.
15535 (grub_net_seek_real): Use net->offset.
15536 (grub_net_fs_read): Seek if necessary.
15538 Unify IEEE1275 netwotk config with the other platforms.
15540 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
15542 (grub_machine_get_bootlocation): Support network.
15543 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15544 Support type and device parsing.
15545 (grub_ieee1275_get_device_type): New function.
15546 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
15548 (grub_ieee1275_net_config_real): ... this.
15549 (grub_ofnet_probecards): Removed.
15550 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
15551 * include/grub/ieee1275/ofnet.h: Removed.
15552 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
15554 (grub_ieee1275_get_device_type): New function.
15556 Unify network device closing across platforms and make more robust.
15558 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
15560 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
15562 * grub-core/net/net.c (grub_net_network_level_interface_register):
15564 (grub_net_card_unregister): Close all interfaces.
15565 (receive_packets): Don't poll if no iterfaces are registered.
15567 (grub_net_fini_hw): New function.
15568 (grub_net_restore_hw): Likewise.
15569 (fini_hnd): New variable.
15570 (GRUB_MOD_INIT): Register preboot hook.
15571 (GRUB_MOD_FINI): Run and unregister preboot hook.
15573 Poll network cards when idle.
15575 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
15576 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
15577 * grub-core/net/net.c (receive_packets): Save last poll time.
15578 (grub_net_poll_cards_idle_real): New function.
15579 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
15580 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
15581 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
15583 Rename ofnet interfaces.
15585 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
15586 (grub_ofnet_findcards): Use ofnet_%s names.
15588 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
15590 Cleanup socket opening.
15592 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
15593 (grub_net_fs_close): Likewise.
15594 (grub_net_fs_read_real): Use eof member.
15595 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
15596 (+grub_net_udp_close): New inline function.
15598 * include/grub/net/tftp.h: Moved to the top of ...
15599 * grub-core/net/tftp.c: ... here.
15600 * include/grub/net/ip.h: Moved mostly to the top of ...
15601 * grub-core/net/ip.c: ... here.
15602 * include/grub/net/ethernet.h: Moved mostly to the top of ...
15603 * grub-core/net/ethernet.c: ... here.
15605 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
15607 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
15610 * include/grub/net/ip.h (ipv4_ini): Removed.
15611 (ipv4_fini): Likewise.
15613 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
15614 (grub_net_send_ip_packets): Likewise.
15616 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15618 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
15619 grub_read_cmos prototype.
15621 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15623 VGA text support in qemu-mips
15625 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
15626 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
15627 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
15629 * grub-core/kern/i386/qemu/init.c: Renamed to ...
15630 * grub-core/kern/vga_init.c: ... this.
15631 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
15632 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
15633 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
15635 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
15636 GRUB_MACHINE_PCI_IO_BASE.
15638 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15640 MIPS qemu flash support.
15642 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
15644 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
15645 (grub_machine_init): Probe memory if its size isn't known.
15646 * util/grub-mkimage.c (image_targets): Add flash targets.
15647 (generate_image): Handle flash targets.
15649 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15651 MIPS qemu at_keyboard support.
15653 * gentpl.py (videoinkernel): Add qemu-mips.
15654 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
15655 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
15656 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
15658 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
15659 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
15660 * grub-core/term/serial.c (grub_serial_register)
15661 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
15663 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15665 CMOS support on sparc.
15667 * gentpl.py (cmos): Add powerpc and sparc.
15668 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
15670 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
15671 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
15672 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
15673 grub_set_datetime_cmos.
15674 * grub-core/lib/ieee1275/cmos.c: New file.
15675 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
15676 (find_rtc): Set no_ieee1275_rtc on error.
15677 (grub_get_datetime): Call grub_get_datetime_cmos on error.
15678 (grub_set_datetime): Call grub_set_datetime_cmos on error.
15679 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
15680 fail. Move value to argument. All users updated
15681 (grub_cmos_write): Likewise.
15682 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
15683 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
15684 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
15685 grub_get_datetime_cmos and grub_set_datetime_cmos.
15687 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15689 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
15690 sourcing grub-mkconfig_lib.
15691 * util/update-grub_lib.in: Likewise.
15692 * util/grub.d/00_header.in: Likewise.
15693 * util/grub.d/10_hurd.in: Likewise.
15694 * util/grub.d/10_kfreebsd.in: Likewise.
15695 * util/grub.d/10_linux.in: Likewise.
15696 * util/grub.d/10_netbsd.in: Likewise.
15697 * util/grub.d/10_windows.in: Likewise.
15698 * util/grub.d/20_linux_xen.in: Likewise.
15699 * util/grub.d/30_os-prober.in: Likewise.
15701 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
15703 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
15704 default_bg_color rather than black.
15705 (grub_gfxterm_fullscreen): Likewise.
15706 (grub_gfxterm_background_color_cmd): Save new background color in
15709 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15711 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
15713 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15715 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
15718 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15720 Chainloading on coreboot support.
15722 * grub-core/Makefile.core.def (chain): Add coreboot.
15723 * grub-core/loader/i386/coreboot/chainloader.c: New file.
15725 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15727 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
15730 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15732 Implement time command.
15734 * grub-core/Makefile.core.def (time): New module.
15735 * grub-core/commands/time.c: New file.
15736 * grub-core/script/parser.y: Remove "time" keyword.
15737 * grub-core/script/yylex.l: Likewise.
15739 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15741 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
15743 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15745 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
15746 when handling leftovers.
15748 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15750 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
15751 so that help2man doesn't fail.
15753 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15755 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
15756 type in pointers on sparc64.
15757 (get_card_packet): Likewise.
15759 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
15761 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
15763 (grub_cmd_videoinfo): Fetch current video mode.
15765 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15767 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
15768 because of underlying system restrictions.
15770 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15772 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
15775 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15777 Coreboot video support.
15779 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
15781 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
15782 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
15784 * grub-core/kern/i386/int.S: ... here.
15785 * grub-core/video/i386/pc/vbe.c: Updated includes.
15786 * grub-core/video/i386/pc/vga.c: Likewise.
15787 * include/grub/i386/coreboot/memory.h
15788 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
15789 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15790 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15791 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15792 Disable interrupts.
15793 * include/grub/i386/pc/vga.h: Removed. All users updated.
15795 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15797 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15798 definitions for dprintf.
15799 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15801 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15803 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15805 (get_card_packet): Likewise.
15807 2011-06-26 Yves Blusseau <blusseau@zetam.org>
15809 Display the path of the file when file is not found
15811 * grub-core/fs/fat.c: Display the filename when file is not found.
15812 * grub-core/fs/fshelp.c: Likewise.
15813 * grub-core/fs/hfs.c: Likewise.
15814 * grub-core/fs/jfs.c: Likewise.
15815 * grub-core/fs/minix.c: Likewise.
15816 * grub-core/fs/ufs.c: Likewise.
15817 * grub-core/fs/btrfs.c: Likewise.
15818 * grub-core/commands/i386/pc/play.c: Likewise.
15820 2011-06-26 Szymon Janc <szymon@janc.net.pl>
15822 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15823 pointer checks before calling grub_free().
15824 * grub-core/commands/wildcard.c (match_devices): Likewise.
15825 * grub-core/commands/wildcard.c (match_files): Likewise.
15826 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15827 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15828 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15829 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15830 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15831 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15832 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15833 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15834 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15836 2011-06-25 Patrick <p55@mailinator.com>
15838 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15840 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15842 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15843 (grub_pxe_send): Likewise.
15844 (GRUB_MOD_INIT): Fix types.
15846 2011-06-24 Szymon Janc <szymon@janc.net.pl>
15848 * grub-core/io/xzio.c: Fix code style issues
15850 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15851 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
15853 Network infrastructure.
15854 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15856 * include/grub/net/arp.h: New file.
15857 * include/grub/net/device.h: Likewise.
15858 * include/grub/net/ethernet.h: Likewise.
15859 * include/grub/net/ip.h: Likewise.
15860 * include/grub/net/netbuff.h: Likewise.
15861 * include/grub/net/tftp.h: Likewise.
15862 * include/grub/net/udp.h: Likewise.
15863 * include/grub/ieee1275/ofnet.h: Likewise.
15864 * include/grub/emu/export.h: Likewise.
15865 * include/grub/net.h: Likewise.
15866 * grub-core/net/arp.c: Likewise.
15867 * grub-core/net/ethernet.c: Likewise.
15868 * grub-core/net/ip.c: Likewise.
15869 * grub-core/net/udp.c: Likewise.
15870 * grub-core/net/tftp.c: Likewise.
15871 * grub-core/net/netbuff.c: Likewise.
15872 * grub-core/net/net.c: Likewise.
15873 * grub-core/net/drivers/emu/emunet.c: Likewise.
15874 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15875 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15877 * grub-core/Makefile.core.def (net): New module.
15880 (emunet): Likewise.
15881 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15883 * grub-core/kern/device.c (grub_net_open) : New variable.
15884 (grub_device_open): Handle network device.
15885 (grub_device_close): Likewise.
15886 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15887 (grub_grubnet_fini): Likewise.
15888 (grub_file_seek): Seek in network device.
15889 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15890 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15892 (grub_machine_fini): Call grub_grubnet_fini.
15893 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15895 (grub_ieee1275_get_aliasdevname): New function.
15896 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15897 Add unofficial Solaris network info.
15898 (grub_multiboot_make_mbi): Likewise.
15899 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15900 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15901 * include/grub/device.h (grub_fs): Removed.
15902 * include/grub/err.h (grub_err_t): Add network-related values.
15903 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15904 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15905 (grub_ieee1275_get_aliasdevname): New proto.
15906 * include/grub/net.h: Rewritten.
15908 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15910 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15913 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15915 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15916 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15917 it truncates the output.
15918 Reported by: Ximin Luo.
15920 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15922 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
15924 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15926 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15927 partmap before abstraction.
15929 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
15931 * util/grub-mkconfig_lib.in: Add missing quotes.
15933 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15935 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
15936 old method if mountinfo would return /dev/root and /dev/root doesn't
15939 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15943 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
15944 (decomp_table): Add zlib entries.
15945 (zio_read): USe 8 bits for compression function rather than 3.
15946 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15948 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15950 * grub-core/disk/ahci.c: Add missing license statements.
15951 * grub-core/fs/romfs.c: Likewise.
15952 * grub-core/lib/ia64/setjmp.S: Likewise.
15953 * grub-core/loader/i386/pc/freedos.c: Likewise.
15954 * grub-core/loader/ia64/efi/linux.c: Likewise.
15955 * grub-core/video/colors.c: Likewise.
15956 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
15958 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15962 * grub-core/Makefile.core.def (ata_pthru): Removed.
15963 (ahci): New module.
15965 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
15967 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
15969 (grub_hdparm_do_check_powermode_cmd): Likewise.
15970 (grub_hdparm_do_smart_cmd): Likewise.
15971 (grub_hdparm_set_val_cmd): Likewise.
15972 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
15973 * grub-core/disk/ahci.c: New file.
15974 * grub-core/disk/ata.c: Factor out the low-level part into ...
15975 * grub-core/disk/pata.c: ... here.
15976 * grub-core/disk/ata_pthru.c: Contents moved to ...
15977 * grub-core/disk/pata.c: ... here.
15978 * grub-core/disk/scsi.c (grub_scsi_names): New array.
15979 (grub_scsi_iterate): Use grub_scsi_names.
15980 (grub_scsi_open): Likewise.
15981 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
15982 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
15983 (grub_ata_regs_t): New struct.
15984 (grub_disk_ata_pass_through_parms): Likewise.
15985 (grub_ata_device): Renamed to ...
15986 (grub_ata): ... this.
15987 (grub_ata_dev): New struct.
15988 Removed all low-level inline functions.
15989 * include/grub/scsi.h: Add PATA and AHCI subsystems.
15990 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
15991 iterate hooks and open. All users updated.
15992 * util/grub-install.in: Handle AHCI disk module.
15994 2011-06-23 Szymon Janc <szymon@janc.net.pl>
15996 Add support for DRI and RSTn markers in JPEG files.
15998 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
15999 (JPEG_MARKER_RST0): Likewise.
16000 (JPEG_MARKER_RST1): Likewise.
16001 (JPEG_MARKER_RST2): Likewise.
16002 (JPEG_MARKER_RST3): Likewise.
16003 (JPEG_MARKER_RST4): Likewise.
16004 (JPEG_MARKER_RST5): Likewise.
16005 (JPEG_MARKER_RST6): Likewise.
16006 (JPEG_MARKER_RST7): Likewise.
16007 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
16008 (grub_jpeg_decode_dri): New function.
16009 (grub_jpeg_decode_sos): Move image data related part into
16010 grub_jpeg_decode_data function.
16011 (grub_jpeg_decode_data): New function.
16012 (grub_jpeg_reset): New function.
16013 (grub_jpeg_decode_jpeg): Handle new markers.
16015 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16017 * util/ieee1275/ofpath.c (check_sas): Close fd.
16018 (main): Free of_path.
16019 Reported by: David Volgyes <dvolgyes>.
16021 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16023 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
16024 Reported by: David Volgyes <dvolgyes>.
16026 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16028 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
16030 Reported by: David Volgyes <dvolgyes>.
16032 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16034 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
16036 Reported by: David Volgyes <dvolgyes>.
16038 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16040 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
16041 Prevent memory leak.
16043 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16045 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
16046 (main): Close file.
16047 Reported by: David Volgyes <dvolgyes>.
16049 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16051 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
16052 to continue if allocation is failed.
16054 Reported by: David Volgyes <dvolgyes>.
16056 2011-06-23 David Volgyes <dvolgyes>
16058 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
16061 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16063 Fix spurious warning.
16065 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
16066 (acorn_partition_map_find): Use .bin member.
16068 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16070 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
16071 /dev/root as a valid device.
16073 2011-06-23 Jim Meyering <meyering@redhat.com>
16075 Avoid NULL deref in grub_device_open.
16077 * grub-core/kern/device.c (grub_device_open): Don't dereference
16078 a NULL pointer upon failed grub_env_get.
16080 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16082 Support non-512B sectors and agglomerate reads.
16084 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
16085 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
16086 (disk_io_guid): Removed.
16087 (make_devices): Locate solely by BlockIO.
16088 (grub_efidisk_open): Fill log_sector_size and total_sectors.
16089 (grub_efidisk_read): Use read_blocks.
16090 (grub_efidisk_write): Use write_blocks.
16091 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
16093 (get_safe_sectors): Handle non-512B sectors.
16094 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
16096 (grub_biosdisk_write): Handle non-512B sectors.
16097 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
16098 (grub_scsi_read): Remove special non-512B block handling (now handled
16100 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
16101 and do sanity checks.
16102 (grub_disk_adjust_range): Handle non-512B sectors.
16103 (transform_sector): New function.
16104 (grub_disk_read_small): Likewise.
16105 (grub_disk_read): Rewritten.
16106 (grub_disk_write): Handle non-512B sectors.
16107 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
16109 (open_device): Use log_sector_size.
16110 (grub_util_biosdisk_read): Likewise.
16111 (grub_util_biosdisk_write): Likewise.
16112 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
16114 (pc_partition_map_embed): Likewise.
16115 * include/grub/disk.h (grub_disk): New field log_sector_size.
16116 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
16117 (GRUB_DISK_CACHE_BITS): Increased to 6.
16118 * util/grub-fstest.c (fstest): New command testload.
16119 (argp_parser): Likewise.
16121 2011-06-16 Robert Millan <rmh@gnu.org>
16123 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
16124 `ata' driver on kernel of FreeBSD 9.
16126 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
16127 (get_ataraid_disk_name): New functions.
16128 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
16129 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
16130 get_ataraid_disk_name() and get_ada_disk_name().
16132 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
16134 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
16137 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
16139 * docs/grub.texi (Obtaining and Building GRUB): Substitute
16140 `ftp.gnu.org' for `alpha.gnu.org'.
16142 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
16144 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
16145 partitions under /dev/disk/by-id/.
16147 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
16149 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
16150 after ten consecutive open failures. Scanning all the way up to
16151 10000 is excessive and can cause serious performance problems in
16152 some configurations.
16153 Fixes Ubuntu bug #787461.
16155 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16157 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
16160 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
16161 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16163 Don't stat devices unless we have to.
16165 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
16166 dir == /dev/mapper.
16167 (grub_guess_root_device): Use already known os_dev if possible.
16168 * grub-core/kern/emu/hostdisk.c
16169 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
16170 if device is known to be a dm one.
16172 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
16174 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
16175 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
16176 Reported by: Pawel Tecza.
16178 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16180 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
16181 (lsefisystab): Likewise.
16183 (lsefimmap): Likewise.
16184 (hdparm): Enable on qemu-mips.
16185 (setjmp): Add ia64 nodist.
16186 (serial): Simplify tags.
16188 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
16190 * Makefile.util.def (grub-ofpathname): Install manual page.
16192 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
16194 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
16196 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
16198 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
16200 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16202 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
16205 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16207 Use full 64-bit division.
16209 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
16210 (grub_divmod64): ... this.
16211 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
16214 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
16216 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
16219 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
16221 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
16222 to avoid accidents when debugging with 'sh -x'.
16223 * grub-core/gensyminfo.sh.in: Likewise.
16224 * tests/example_scripted_test.in: Likewise.
16225 * tests/grub_cmd_regexp.in: Likewise.
16226 * tests/grub_script_blanklines.in: Likewise.
16227 * tests/grub_script_dollar.in: Likewise.
16228 * tests/grub_script_expansion.in: Likewise.
16229 * tests/grub_script_final_semicolon.in: Likewise.
16230 * tests/partmap_test.in: Likewise.
16231 * tests/util/grub-shell-tester.in: Likewise.
16232 * tests/util/grub-shell.in: Likewise.
16234 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
16236 Move gfxmenu color handling to video, so that gfxterm can use it
16239 * grub-core/gfxmenu/named_colors.c: Move to ...
16240 * grub-core/video/colors.c: ... here. Rename
16241 grub_gui_get_named_color to grub_video_get_named_color.
16242 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
16243 * grub-core/video/colors.c (my_isxdigit): ... here.
16244 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
16246 * grub-core/video/colors.c (parse_hex_color_component): ... here.
16247 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
16249 * grub-core/video/colors.c (grub_video_parse_color): ... here.
16251 * include/grub/gui.h (grub_gui_color_t): Move to ...
16252 * include/grub/video.h (grub_video_rgba_color_t): ... here.
16253 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
16254 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
16255 * include/grub/gui.h (grub_gui_map_color): Move to ...
16256 * include/grub/video.h (grub_video_map_rgba_color): ... here.
16257 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
16259 * include/grub/video.h (grub_video_get_named_color): ... here.
16260 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
16261 * include/grub/video.h (grub_video_parse_color): ... here.
16263 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
16265 (gfxmenu): Remove gfxmenu/named_colors.c.
16266 (video) [videomodules]: Add video/colors.c.
16268 Add a background_color command.
16270 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
16272 (GRUB_MOD_INIT): Register background_color command.
16273 (GRUB_MOD_FINI): Unregister background_color command.
16274 (redraw_screen_rect): Allow blend/replace of text layer to be
16275 controlled independently from whether there is a background bitmap.
16276 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
16279 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16281 Patch BPB in ntldr and chainloader --bpb.
16283 * grub-core/fs/fat.c: Include grub/fat.h.
16284 (grub_fat_bpb): Moved to ...
16285 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
16286 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
16288 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
16290 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
16292 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
16294 (grub_chainloader_cmd): Patch BPB if --bpb is given.
16295 (GRUB_MOD_INIT): Show --bpb.
16296 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
16297 * grub-core/normal/main.c (features): New variable.
16298 (GRUB_MOD_INIT): Set feature_* variables.
16299 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
16301 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
16303 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16305 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
16308 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16310 FreeDOS direct loading support.
16312 * docs/grub.texi (Supported OS): Add FreeDOS.
16313 * grub-core/Makefile.core.def (freedos): New module.
16314 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
16316 (grub_relocator16_boot): Handle %ebx.
16317 * grub-core/lib/i386/relocator16.S: Likewise.
16318 * grub-core/loader/i386/pc/freedos.c: New file.
16320 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16322 Long Linux command line support.
16324 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16325 (maximal_cmdline_size): New variable.
16326 (allocate_pages): Use maximal_cmdline_size.
16327 (grub_cmd_linux): Set and use maximal_cmdline_size.
16328 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16329 (allocate_pages): Use maximal_cmdline_size.
16330 (grub_cmd_linux): Set and use maximal_cmdline_size.
16331 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
16332 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
16335 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16336 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
16338 Improve devmapper support
16340 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
16341 (grub_util_is_lvm): New function.
16342 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
16343 than lvm if not dmraid.
16344 Handle mapped md nodes.
16345 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
16346 (grub_util_device_is_mapped): ... this. Make always available. All users
16348 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
16349 (convert_system_partition_to_system_disk): Handle lvm, mpath and
16351 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
16353 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16355 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
16357 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
16358 * grub-core/modinfo.sh.in: New file.
16359 * grub-core/Makefile.core.def (modinfo.sh): New script.
16360 * util/grub-mknetdir.in: Use modinfo.sh.
16361 * util/grub-mkrescue.in: Likewise.
16363 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16365 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16366 Fix potential usage of Elf32 instead of Elf64 when compiling on
16367 32-bit architecture. Add endianness macros while on it.
16369 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16371 Use mipsel- rather than mips- in directories involving mipsel ports to
16372 allow both endiannesses coexist.
16374 * configure.ac: proparate target_cpu=mipsel rather than resetting to
16375 mips. All conditions adjusted.
16376 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
16378 * util/grub-install.in: Adjust conditions to take renaming into account.
16379 * util/grub-mkimage.c (image_targets): Likewise. New target
16380 mips-qemu_mips-elf for bigendian mips.
16382 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16384 Avoid unnecessary copying on MIPS.
16386 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
16387 early if src == dest.
16388 * util/grub-mkimage.c (generate_image): Arange for src == dest if
16389 compression is none.
16391 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16393 Reduce memory footprint on SGI by putting modules before the kernel
16394 as opposed to after.
16396 * grub-core/Makefile.core.def (kernel): Increase linking address.
16397 (none_decompress): Likewise.
16398 (xz_decompress): Likewise.
16399 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
16401 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
16403 (grub_arch_modules_addr): New function.
16404 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
16405 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
16406 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
16408 * grub-core/kern/mips/startup.S (total_size): Rename to ...
16409 (grub_total_modules_size): ... this. Make global.
16410 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
16411 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
16413 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
16414 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
16415 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
16416 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
16417 * util/grub-mkimage.c (image_target_desc): New flag
16418 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
16419 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
16420 (generate_image): Handle images with modules before kernel.
16422 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16424 Prevent potential loss of memory map by overwrite on qemu-mips.
16426 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16427 Save ram size in $s4.
16428 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
16429 All users changed to grub_arch_memsize.
16430 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
16432 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
16433 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
16434 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
16437 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16439 * .bzrignore: Remove grub-dumpbios.
16441 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16443 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
16444 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
16445 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
16446 existing options which append).
16447 * docs/grub.texi (Simple configuration): Document new options.
16448 Reported by: Ian Jackson. Fixes Debian bug #617538.
16450 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16452 * util/grub-fstest.c (cmd_cat): New function.
16453 (fstest): Handle CMD_CAT.
16454 (options): Add cat.
16455 (argp_parser): Handle cat.
16457 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16459 * Makefile.util.def (grub-bin2h): Don't install.
16460 * docs/man/grub-bin2h.h2m: Remove.
16462 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16464 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
16467 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16469 Reenable qemu-mips port.
16471 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
16472 Fix small arc bug while on it.
16473 * gentpl.py: Handle qemu_mips.
16474 * grub-core/Makefile.am: Likewise.
16475 * grub-core/Makefile.core.def: Likewise.
16476 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
16477 inappropriate includes.
16478 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
16479 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
16480 * grub-core/kern/main.c (grub_modules_get_end)
16481 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
16482 * grub-core/kern/mips/qemu-mips: Moved to ..
16483 * grub-core/kern/mips/qemu_mips: ... this.
16484 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
16485 (grub_machine_init): Call terminfo_init and serial_init.
16486 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
16487 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16489 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
16491 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
16492 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
16493 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
16494 * include/grub/mips/qemu_mips/cmos.h: New file.
16495 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
16496 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
16498 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
16499 Use correct mips-style address.
16500 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
16501 (GRUB_TICKS_PER_SECOND): Removed.
16502 (grub_get_rtc): Likewise.
16503 (grub_cpu_idle): Likewise.
16504 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
16506 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
16507 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
16508 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
16509 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
16510 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16511 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16512 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
16513 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
16515 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16519 * Makefile.util.def (libgrubmods.a): Add dvh.c.
16520 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
16522 * configure.ac: New target mips-arc.
16523 * gentpl.py: Likewise.
16524 * grub-core/Makefile.am: Likewise.
16525 * grub-core/Makefile.core.def: Likewise.
16526 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
16527 (none_decompress): Likewise.
16528 (lsdev): New module.
16529 (datetime): Use lib/arc/datetime.c on ARC.
16530 (part_dvh): New module.
16531 * grub-core/commands/arc/lsdev.c: New file.
16532 * grub-core/disk/arc/arcdisk.c: Likewise.
16533 * grub-core/kern/mips/arc/init.c: Likewise.
16534 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
16536 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
16538 (grub_arch_dl_relocate_symbols): Likewise.
16539 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
16540 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
16541 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
16543 * grub-core/lib/arc/datetime.c: New file.
16544 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
16545 pci.h on non-loongson.
16546 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
16547 (grub_linux_boot): Set unused registers to 0.
16548 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
16549 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
16550 * grub-core/mmap/mips/uppermem.c: ...here.
16551 * grub-core/partmap/dvh.c: New file.
16552 * grub-core/term/arc/console.c: Likewise.
16553 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
16554 (grub_terminfo_set_current): Add terminal "arc".
16555 (grub_terminfo_readkey): Support ARC sequences.
16556 * include/grub/arc/arc.h: New file.
16557 * include/grub/arc/console.h: Likewise.
16558 * include/grub/disk.h (grub_disk_dev_id): Add
16559 GRUB_DISK_DEVICE_ARCDISK_ID.
16560 * include/grub/mips/arc/kernel.h: New file.
16561 * include/grub/mips/arc/memory.h: Likewise.
16562 * include/grub/mips/arc/time.h: Likewise.
16563 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
16564 * include/grub/mips/kernel.h (grub_halt): ... here.
16565 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
16567 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
16568 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
16569 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
16570 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
16572 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
16574 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
16575 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
16576 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
16577 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
16578 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
16579 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
16580 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
16581 (grub_phys_addr_t): Moved from here ...
16582 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
16583 (grub_vtop): Moved from here ...
16584 * include/grub/mips/memory.h (grub_vtop): ... here.
16585 (grub_map_memory): Moved from here ...
16586 * include/grub/mips/memory.h (grub_map_memory): ... here.
16587 (grub_unmap_memory): Moved from here ...
16588 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
16589 (grub_machine_mmap_iterate): Moved from here ...
16590 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
16591 (grub_mmap_get_lower): Moved from here ...
16592 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
16593 (grub_mmap_get_upper): Moved from here ...
16594 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
16595 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16597 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16598 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
16600 * include/grub/mips/time.h (grub_get_rtc): ... here.
16601 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16603 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16604 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
16606 * include/grub/mips/time.h (grub_cpu_idle): ... here.
16607 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
16609 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
16610 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
16611 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
16612 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
16613 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16614 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16615 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
16616 (GRUB_MACHINE_LINK_ADDR): Likewise.
16617 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
16619 * util/grub-install.in: Run dvhtool on ARC.
16620 * util/grub-mkimage.c (image_targets): Add mips-arc.
16621 (generate_image): Handle ECOFF output for mips-arc.
16623 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16625 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
16628 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16630 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
16631 after enabling port.
16633 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16635 Skip incorrect USB devices.
16637 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
16639 * include/grub/usb.h (grub_usb_err_t): New enum value
16640 GRUB_USB_ERR_BADDEVICE.
16642 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16644 Fuloong video init support.
16646 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
16648 (grub_vga_read_arx): New function.
16649 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
16651 (framebuffer): New members io, mmioptr and mmiobase.
16652 (read_sis_cmd): New function.
16653 (write_sis_cmd): Likewise.
16654 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
16655 rather than 640x400.
16656 * grub-core/video/sis315_init.c: New file.
16658 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16660 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
16662 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
16663 to grub_dl_register_symbol.
16665 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16667 Fix compilation errors.
16669 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
16670 potentially unused.
16671 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
16672 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
16673 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
16674 to loongson machines.
16676 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16678 Several FS mtime support.
16680 * grub-core/fs/affs.c (grub_affs_time): New struct.
16681 (grub_affs_file): New field mtime.
16682 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
16683 type. Removed 'size'. New field 'di'. All users updated.
16684 (grub_affs_mount): Simplify checsum checking.
16685 (grub_affs_iterate_dir): New helper grub_affs_create_node.
16686 (grub_affs_dir): Handle mtime.
16687 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
16688 (grub_cpio_dir): Likewise.
16689 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
16690 (grub_hfs_filerec): New field mtime.
16691 (grub_hfs_dir): Handle mtime.
16692 (grub_hfs_mtime): New function.
16693 (grub_hfs_fs): Register grub_hfs_mtime.
16694 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
16695 (grub_iso9660_dir): New field mtime.
16696 (grub_fshelp_node): New field dirent.
16697 (iso9660_to_unixtime): New function.
16698 (iso9660_to_unixtime2): Likewise.
16699 (grub_iso9660_read_symlink): Use node->dirent.
16700 (grub_iso9660_iterate_dir): Likewise.
16701 (grub_iso9660_dir): Set mtime.
16702 (grub_iso9660_mtime): New function.
16703 (grub_iso9660_fs): Register grub_iso9660_mtime.
16704 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
16705 (grub_jfs_inode): New fields atime, ctime and mtime.
16706 (grub_jfs_dir): Set mtime.
16707 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16708 * grub-core/fs/ntfs.c (list_file): Set mtime.
16709 (grub_ntfs_dir): Likewise.
16710 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
16711 (grub_reiserfs_iterate_dir): Set mtime.
16712 (grub_reiserfs_dir): Likewise.
16713 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
16714 (grub_fshelp_node): Likewise.
16715 (grub_sfs_iterate_dir): Set mtime.
16716 (grub_sfs_dir): Likewise.
16717 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
16718 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
16719 (grub_xfs_inode): New fields atime, mtime, ctime.
16720 (grub_xfs_dir): Set mtime.
16721 * include/grub/datetime.h (grub_datetime2unixtime): New function.
16722 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
16723 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
16725 Support UDF symlinks.
16727 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
16728 (grub_ufs_read_symlink): New function. All users updated.
16730 Check amiga partmap checksum.
16732 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
16733 (grub_amiga_partition): Likewise.
16734 (amiga_partition_map_checksum): New function.
16735 (amiga_partition_map_iterate): Check checksum.
16737 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16741 * Makefile.util.def (libgrubmods.a): Add romfs.
16742 * grub-core/Makefile.core.def (romfs): New module.
16743 * grub-core/fs/romfs.c: New file.
16745 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16747 Squashfs v4 support.
16749 * Makefile.util.def (libgrubmods.a): Add squash4.
16750 * grub-core/Makefile.core.def (squash4): New module.
16751 * grub-core/fs/squash4.c: New file.
16752 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
16753 disk_input_start, disk_input.
16754 (get_byte): Handle disk_input.
16755 (grub_zlib_disk_read): New function.
16756 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
16758 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16759 2011-05-15 Feiran Zheng <famcool@gmail.com>
16761 * Makefile.util.def (libgrubmods.a): Add minix3.
16762 * grub-core/Makefile.core.def (minix3): New module.
16763 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
16764 (GRUB_MINIX_BSIZE): Removed.
16765 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
16766 (grub_minix_ino_t): New type.
16767 (grub_minix_le_to_cpu_ino): New macro.
16768 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
16769 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
16770 (grub_minix_data): New field block_size.
16771 (grub_minix_read_file): Handle 64-bit correctly.
16772 * grub-core/fs/minix3.c: New file.
16774 2011-05-15 Tristan Gingold <gingold@free.fr>
16775 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
16776 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16780 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
16781 * configure.ac: Add ia64-efi target.
16782 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
16783 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
16784 * gentpl.py: Add ia64_efi platform.
16785 Rename x86_efi to efi and Add ia64-efi. All users updated.
16786 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
16787 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
16788 Remove kern/generic/rtc_get_time_ms.c on EFI.
16789 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16790 kern/ia64/dl_helper.c on ia64-efi.
16791 Add kern/emu/cache.c on emu.
16792 (linux): Use on loader/ia64/efi/linux.c on ia64.
16793 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16794 whether symbol is a function.
16795 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16796 (grub_symbol): New field 'isfunc'.
16797 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16798 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16799 (grub_dl_load_segments): Place all sections into the same region.
16800 [__ia64__]: Create trampolines and got.
16801 [GRUB_MACHINE_EMU]: Call mprotect.
16802 (grub_dl_resolve_symbols): Resolve symbol type as well.
16803 [__ia64__]: Create function descriptors.
16804 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16805 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16806 (grub_get_rtc): New function.
16807 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16808 * grub-core/kern/emu/cache.S: Renamed to ...
16809 * grub-core/kern/emu/cache_s.S: ... this.
16810 [__ia64__]: Add a nop.
16811 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16812 [__ia64__]: New function.
16813 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16814 * grub-core/kern/ia64/dl.c: New file.
16815 * grub-core/kern/ia64/dl_helper.c: Likewise.
16816 * grub-core/kern/ia64/efi/init.c: New file.
16817 * grub-core/kern/ia64/efi/startup.S: Likewise.
16818 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16819 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16820 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16821 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16822 * grub-core/loader/ia64/efi/linux.c: New file.
16823 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16824 (GRUB_MOD_DEP): Likewise.
16825 (grub_dl) [__ia64__]: New fields got and tramp.
16826 (grub_dl): New field 'base'.
16827 (grub_dl_register_symbol): New argument isfunc. All users updated.
16828 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16829 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16830 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16831 (grub_ia64_dl_get_tramp_got_size): New proto.
16832 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16833 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16834 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16835 * include/grub/efi/api.h: Skip call wrappers on ia64.
16836 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16837 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16838 * include/grub/elf.h (ELF_ST_INFO): New definition.
16839 * include/grub/ia64/efi/kernel.h: New file.
16840 * include/grub/ia64/efi/memory.h: Likewise.
16841 * include/grub/ia64/efi/time.h: Likewise.
16842 * include/grub/ia64/kernel.h: Likewise.
16843 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16844 * include/grub/ia64/time.h: New file.
16845 * include/grub/ia64/types.h: Likewise.
16846 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16847 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16849 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16850 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16851 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16852 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16854 (EFI64_HEADER_SIZE): New definition. All users updated.
16855 (image_targets): Add ia64-efi.
16856 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16857 jumpers_addr. All users updated.
16858 Create function descriptors.
16859 (count_funcs): New function.
16860 (unaligned_uint32): New struct.
16861 (MASK20): New definition.
16862 (MASK19): Likewise.
16863 (MASKF21): Likewise.
16864 (add_value_to_slot_20b): New function.
16865 (add_value_to_slot_21_real): Likewise.
16866 (add_value_to_slot_21): Likewise.
16867 (ia64_kernel_trampoline): New struct.
16868 (nopm): New variable.
16870 (make_trampoline): New function.
16871 (relocate_addresses): Handle ia64.
16872 (make_reloc_section): Likewise.
16873 (load_image): Likewise.
16875 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16877 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16878 warning. Move variables before code while on it.
16880 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16884 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16885 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16886 * grub-core/boot/mips/loongson/fuloong.S: New file.
16887 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16888 Explicitly init CS5536.
16889 [FULOONG]: Don't use serial until CS5536 is available.
16890 Set GPIO based on dumps.
16891 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16892 [FULOONG]: Handle GPIO and memory controller differences.
16893 Parse machine type in $a2.
16894 * grub-core/boot/mips/startup_raw.S: Determine and save the
16896 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16897 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16898 init on architecture type.
16899 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16900 SIS315E. Don't init at_keyboard on fuloong.
16901 (grub_halt): Support Fuloong.
16902 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16903 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16904 (loongson_machtypes): New array.
16905 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16907 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16908 config. All users updated. Handle CS5536 serial.
16909 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16910 default port on machine type. Register serial as inactive.
16911 * grub-core/video/sis315pro.c: New file.
16912 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16914 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16915 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16916 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16917 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16918 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
16919 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
16921 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
16922 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
16924 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
16925 (grub_arch_machine): New extern var.
16926 * include/grub/mips/loongson/serial.h
16927 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
16928 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
16929 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
16930 (GRUB_MACHINE_SERIAL_PORT0): ... this.
16931 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
16932 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
16933 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
16934 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
16935 * include/grub/term.h (grub_term_register_input_inactive): New inline
16937 (grub_term_register_output_inactive): Likewise.
16938 * include/grub/video.h (grub_video_driver_id): New value
16939 GRUB_VIDEO_DRIVER_SIS315PRO.
16940 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
16941 New field "names". All users updated.
16942 New field value IMAGE_FULOONG_FLASH.
16943 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
16945 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
16947 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
16948 and add some clarification.
16950 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16952 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
16953 platforms if kernel is compressed.
16955 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16957 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
16958 unused modules since currently referrence counter isn't reliable and
16959 there isn't much memory to recover there anyway.
16961 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16963 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
16964 rather than resetting it to allow modules to reference themselves
16967 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16969 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
16970 counter on dependencies since grub_dl_unref already handles this.
16972 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16974 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
16975 on error if not already done.
16977 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16979 Fix few potential memory misusage.
16981 * grub-core/font/font.c (load_font_index): Don't free char_index to
16983 (grub_font_load): Zero-fill font at alloc for safety.
16984 Close file on error.
16985 (free_font): Free bmp_idx.
16987 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16989 * docs/grub.texi (Installation): Fix several outdated claims.
16991 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16993 Handle module_license on windows.
16995 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
16997 (insert_string): Make argument const char * instead of char *.
16998 (write_section_data): Handle long section names.
16999 Handle module_license.
17001 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17003 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
17004 handle class-free menuentries.
17005 (grub_normal_add_menu_entry): Add a check to be sure.
17007 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17009 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
17012 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17014 * configure.ac: Bump version to 1.99.
17016 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17018 Give ATA device a bit more time on first try in order to allow disks
17021 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
17022 if dev->present is 1. Reset dev->present on failure.
17023 (grub_ata_device_initialize): Set dev->present to 1.
17024 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
17025 (grub_ata_device): New member 'present'.
17027 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17029 * util/grub-mkimage.c (generate_image): Update hash.
17031 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17033 Flush caches on DMA memory.
17035 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
17036 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
17037 (grub_dma_free): Likewise.
17038 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
17040 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17042 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
17043 to avoid asm treating ld and sd as macros.
17045 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17047 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
17050 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17052 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
17053 grub_decompress_core since later would fail if grub_decompress_core
17056 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17058 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
17059 R_MIPS_JALR since it's used by newer compiler.
17061 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
17063 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
17065 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17067 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
17068 file_path to 0 for surety.
17069 (grub_chainloader_boot): Set exit_data to NULL.
17070 Unset the loader once done.
17071 (grub_cmd_chainloader): Fix confusing error message if file is empty.
17073 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17075 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
17076 unknown key into a dprintf.
17078 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17080 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
17081 on first non-existant partition.
17083 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17085 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
17087 Reported by: Mark Korenberg.
17089 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17091 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
17094 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17096 * util/grub-mkimage.c (main): Explicitely flush and sync the output
17097 before closing to ensure that it will be readable by grub-setup.
17099 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17101 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
17102 (devpath_1): Use MAKE_PIWG_PATH.
17103 (devpath_2): Likewise.
17104 (devpath_3): Likewise.
17105 (devpath_4): Likewise.
17106 (devpath_5): Likewise.
17107 (devpath_6): Likewise.
17109 The appleldr.mod was checked that to be binary identical to previous
17112 2011-05-05 Zach <mikezackles>
17114 Support 2010 Macbooks.
17116 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
17117 (devs): Add devpath_6.
17119 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17121 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
17122 /dev/random. /dev/urandom is good enough for our purposes (salting).
17124 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17126 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
17128 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17130 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
17133 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17135 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
17136 and not 0 on failure.
17138 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
17140 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
17141 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
17142 disk; otherwise grub_fs_probe will not fall back to the next
17144 (grub_pxefs_open): Likewise, for consistency.
17145 Reported and tested by: Ezekiel Grave.
17147 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
17149 * tests/partmap_test.in: Don't hardcode path to parted.
17150 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
17152 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
17154 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
17155 of `ls' to find out which devices are available.
17157 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17159 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
17160 than source address for efi mmap buffer.
17162 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17164 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
17165 wrong action on non-detecting the magic.
17167 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17169 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
17170 already supplied by another part of the module (fixes compilation on
17173 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17175 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
17176 match the one used by mdadm.
17178 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
17180 * po/README: Add instructions for creating po/LINGUAS.
17182 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
17184 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
17187 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
17188 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
17189 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
17190 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
17191 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
17192 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
17193 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
17194 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
17195 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
17196 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
17197 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
17198 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
17199 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
17200 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
17201 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
17202 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
17203 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
17204 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
17205 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
17206 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
17207 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
17208 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
17210 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
17212 * grub-core/kern/emu/getroot.c
17213 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
17214 test that was incorrectly reintroduced in r3214.
17215 Reported by: Ian Dall. Fixes Savannah bug #33133.
17217 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
17219 Fix stack pointer handling in 16-bit relocator.
17221 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
17222 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
17223 Fixes Ubuntu bug #683904.
17225 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17227 * configure.ac: Bump version to 1.99~rc2.
17229 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17231 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
17232 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
17233 * grub-core/lib/x86_64/setjmp.S: Likewise.
17234 * grub-core/lib/mips/setjmp.S: Likewise.
17235 * grub-core/lib/powerpc/setjmp.S: Likewise.
17236 * grub-core/lib/sparc64/setjmp.S: Likewise.
17238 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17240 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
17241 * grub-core/lib/efi/datetime.c: Likewise.
17243 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17245 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
17247 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
17248 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
17249 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
17251 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17253 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
17255 (grub_gfxterm_term_init): Likewise.
17257 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17259 Take into account the decorations the computing menu entry width.
17261 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
17262 (grub_gfxmenu_create_box): Register get_border_width.
17263 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
17265 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
17268 2011-04-18 Endres Puschner <code@e7p.de>
17270 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
17271 Don't skip first class.
17273 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17275 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
17277 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
17279 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17281 Complete 64-bit division support.
17283 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
17284 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
17285 * include/grub/misc.h (grub_divmod64): Rename to ...
17286 (grub_divmod64_full): ... this.
17287 (grub_divmod64): New inline function.
17289 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17291 * util/grub-mkimage.c (generate_image): Add forgotten comma.
17293 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17295 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
17296 performing the necessary test.
17298 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17300 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
17301 (kfreebsd.elf): Likewise.
17302 (pc-chainloader.elf): Likewise.
17303 (ntldr.elf): Likewise.
17305 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17307 Identify RAID by its UUID rather than (guessed) name.
17309 * grub-core/disk/raid.c (ascii2hex): New function.
17310 (grub_raid_open): Accept mduuid/%s specification.
17311 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
17312 (get_mdadm_uuid): ... this.
17313 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
17315 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
17317 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
17320 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
17322 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
17324 * util/grub.d/20_linux_xen.in: Likewise.
17326 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
17328 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
17329 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
17331 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
17332 Build a list of relevant visible mounts using the mnt_id and
17333 parent_mnt_id fields, and then scan that list at the end.
17335 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
17337 * docs/grub.texi (normal): New section.
17338 (normal_exit): New section.
17339 (Embedded configuration): Add reference to normal.
17340 (GRUB only offers a rescue shell): Likewise.
17341 * docs/grub-dev.texi (Error Handling): Fix typo.
17343 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
17345 * NEWS: Drop obsolete entry about probe-only btrfs support.
17347 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
17349 * util/import_gcry.py: Fix typo.
17351 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17353 * NEWS: Add btrfs support.
17355 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17356 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
17358 BtrFS support. Written by me (Vladimir) with important bugfixes and
17359 even more important testing by Colin.
17361 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
17362 * grub-core/Makefile.core.def (btrfs): Add crc.c.
17363 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
17364 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
17365 mem_input_off and mem_input. All users updated to accept in-RAM input.
17366 (gzio_seek): New function.
17367 (test_zlib_header): Likewise.
17368 (grub_gzio_read): Likewise.
17369 (grub_zlib_decompress): Likewise.
17370 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
17371 Accept partial and non-virtual mounts.
17372 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
17373 avoid receiving /dev/dm-X as device.
17374 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
17375 Handle bind and partial mounts.
17376 * grub-core/lib/crc.c: New file.
17377 * include/grub/deflate.h: Likewise.
17378 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
17380 * include/grub/lib/crc.h: New file.
17382 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17384 Implement automatic module license checking according to new GNU
17387 * grub-core/kern/dl.c (grub_dl_check_license): New function.
17388 (grub_dl_load_core): Use grub_dl_check_license.
17389 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
17390 (GRUB_MOD_LICENSE): Likewise.
17391 (GRUB_MOD_DUAL_LICENSE): Likewise.
17392 All modules updated.
17394 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
17396 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
17397 reserved_first_sector to 1. btrfs reserves plenty of space for boot
17399 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
17401 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17403 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
17405 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17407 * util/grub-fstest.c (read_file): Report GRUB error if file opening
17410 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17412 * grub-core/kern/file.c (grub_file_open): Don't take into account the
17413 parenthesis in the middle of the filename.
17415 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17417 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
17418 rather than trying to put initrd way too high.
17419 Reported by: Ryan Lortie <desrt@desrt.ca>
17421 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17423 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
17424 improperly removed string.
17426 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17428 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
17430 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
17431 (open_device) Likewise.
17432 (grub_util_biosdisk_close): Likewise.
17433 Reported by: Mark Korenberg.
17435 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
17437 * util/grub-mkconfig_lib.in: Add missing quotes.
17439 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
17441 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
17444 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17446 Dynamically count the number of lines for the lower banner.
17448 * grub-core/normal/menu_entry.c (per_term_screen): New member
17450 (print_down): Use num_entries.
17451 (update_screen): Likewise.
17452 (grub_menu_entry_run): Set num_entries.
17453 * grub-core/normal/menu_text.c (menu_viewer_data): New member
17455 (grub_print_message_indented): Move real part to ...
17456 (grub_print_message_indented_real): ... here. Additional argument
17458 (draw_border): Additional argument num_entries.
17459 (print_message): Additional argument dry_run.
17460 (print_entries): Receive menu viewer data.
17461 (grub_menu_init_page): New argment num_entries.
17462 (menu_text_set_chosen_entry): Use num_entries.
17463 (grub_menu_try_text): Likewise.
17464 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
17466 (grub_ucs4_count_lines): New function.
17467 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
17468 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
17469 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
17470 (grub_term_border_height): Likewise.
17471 (grub_term_num_entries): Likewise.
17473 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17475 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
17476 Remove now unused string.
17478 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
17480 * docs/grub-dev.texi (Finding your way around): Update for 1.99
17482 (Getting started): GRUB is developed in Bazaar now, not Subversion.
17484 (Comment): Fix typo.
17485 (Getting started): General copy-editing.
17486 (Typical Development Experience): Likewise.
17487 (Error Handling): Likewise.
17488 (Video API): Likewise.
17490 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
17492 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
17495 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17497 * util/grub-mkimage.c (main): Handle special naming of yeeloong
17500 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
17502 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
17503 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
17506 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17508 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
17509 grub_strcpy since the lines aren't necessarily 0-terminated.
17511 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17513 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
17516 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17518 * grub-core/commands/probe.c (options): Argument to set isn't optional.
17519 (GRUB_MOD_INIT): DEVICE isn't optional.
17521 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17523 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
17524 word on new line if it's too long anyway. Fixes a hang.
17526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17528 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
17530 * util/grub-setup.c (main): Reuse md device name if available.
17531 * util/raid.c (grub_util_raid_getmembers): Receive device name and
17532 not GRUB name as argument.
17533 Based on patch by: Florian Wagner <fwagner>.
17535 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17537 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17538 Place mbi on low memory for better compatibility.
17540 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17542 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
17544 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17545 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
17547 * autogen.sh: Ensure that collate and ctype locale is C.
17548 * conf/Makefile.common: Likewise.
17550 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17552 * grub-core/normal/menu.c: Add missing include.
17554 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17556 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
17558 2011-04-08 Martin Zuther <mzuther@mzuther.de>
17560 * util/grub-mkconfig.in: Ignore emacsen backup.
17562 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17564 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
17566 (grub_util_biosdisk_close): Likewise.
17568 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17570 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
17571 const attribute and use grub_isdigit.
17573 2011-04-06 Andrey <dev_null@ukr.net>
17575 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
17578 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17580 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
17581 useful grub_dprintf's.
17583 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17585 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
17587 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17589 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
17591 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17593 Output errors if theme loading failed.
17595 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
17596 grub_gfxterm_fullscreen on error paths to ...
17597 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
17598 theme loading error.
17600 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17602 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
17603 space for older compilers.
17604 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17606 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17608 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
17609 and report them as not RAID members since they are useless for GRUB.
17610 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17612 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17614 Increase LVM implementation robustness in order not to crash on
17615 configurations like pvmove. Previously code assumed that in some places
17616 only lvs or only pvs are used whereas it seems that they are used
17619 * grub-core/disk/lvm.c (read_node): New function.
17620 (read_lv): Use read_node.
17621 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
17622 Match volumes only at the end when all lvs are found. Take both
17623 pvs (first) and lvs (second) into account.
17624 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
17625 mirror_* into node_*. All users updated.
17626 (grub_lvm_stripe): Merge this ...
17627 (grub_lvm_mirror): ... and this ...
17628 (grub_lvm_node): ... into this. All users updated.
17630 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17632 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
17633 of function to allow further scanning for LVMs.
17635 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17637 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
17638 on failed seek as it breaks open fd reusage.
17640 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17642 * util/grub-install.in: Add a recommendation to use --recheck before
17645 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17647 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
17650 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17652 GRUB developper manual based on existing Internals section and
17653 contributions by the various authors with active copyright assignment.
17655 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
17656 * docs/font_char_metrics.png: New file.
17657 * docs/font_char_metrics.txt: Likewise.
17658 * docs/grub-dev.texi: Likewise.
17659 * docs/grub.texi (Internals): Move from here ...
17660 * docs/grub-dev.texi: ... here.
17662 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
17664 Store the loopback device as data on loopback grub_disk structures,
17665 rather than the file it points to. This fixes use of freed memory
17666 if an existing loopback device is replaced.
17668 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
17669 disk->data, not dev->file.
17670 (grub_loopback_read): Adjust file assignment to match.
17671 Fixes Ubuntu bug #742967.
17673 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
17675 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
17676 when replacing an existing device.
17678 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
17680 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
17681 memory corruptions.
17683 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
17685 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
17686 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
17687 (grub_jfs_read_inode): Likewise.
17688 (grub_jfs_opendir): Likewise. Remove now useless casts.
17689 (grub_jfs_getent): Likewise.
17690 Make ino a grub_uint32_t rather than int.
17691 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
17692 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
17693 division and module with bit operations.
17694 (grub_jfs_find_file): Make ino a grub_uint32_t.
17695 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
17697 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
17699 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
17700 warning. (This was in fact always initialised before use, but GCC
17701 wasn't smart enough to prove that.)
17702 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
17704 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17706 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
17708 (efi_wrap_1): Likewise.
17709 (efi_wrap_2): Likewise.
17710 (efi_wrap_3): Likewise.
17711 (efi_wrap_4): Likewise.
17712 (efi_wrap_5): Likewise.
17713 (efi_wrap_6): Likewise.
17714 (efi_wrap_10): Likewise.
17715 Based on information by: Red Hat/Peter Jones.
17717 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
17719 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
17720 set-but-not-used variable.
17722 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
17724 * docs/grub.texi (Simple configuration): Be more explicit about
17725 GRUB_DEFAULT, and add an example.
17726 Reported by: Leslie Rhorer.
17728 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17730 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
17733 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17735 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
17736 * util/grub.d/20_linux_xen.in: Likewise.
17738 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17740 * util/grub.d/10_linux.in: Try alternative config filenames where
17741 we parse config file.
17742 * util/grub.d/20_linux_xen.in: Likewise.
17744 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17746 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
17747 * util/grub.d/20_linux_xen.in: Likewise.
17749 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17751 * grub-core/disk/raid.c (insert_array): Add few potentially
17752 useful grub_util_info.
17753 (grub_raid_register): Likewise.
17755 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17757 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
17758 Preserve partition number in mdadm code path.
17760 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17762 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
17763 few potentially useful grub_util_info.
17765 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17767 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
17769 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17771 * docs/grub.texi (default): Use @example rather than nested
17772 itemized lists to avoid breaking gendocs.
17774 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17776 * docs/grub.texi (Future): Update.
17778 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17780 * docs/grub.texi (Environment): New chapter.
17781 (Changes from GRUB Legacy): Link to "Environment block" section for
17782 details of limitations.
17783 (Simple configuration): Likewise. Link to documentation of gfxmode
17784 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
17786 (Shell-like scripting): Note that normal variables are stored in the
17788 (gettext): Link to documentation of lang and locale_dir.
17789 (list_env): New section.
17790 (load_env): New section.
17791 (save_env): New section.
17793 (Reporting bugs): Fix typo.
17795 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17797 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17800 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17802 * grub-core/term/at_keyboard.c (set_scancodes)
17803 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17805 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17807 * docs/grub.texi (Menu-specific commands): Remove some semantics
17808 that were true in GRUB Legacy but not in GRUB 2.
17809 (submenu): New section.
17810 (false): New section.
17811 (read): New section.
17812 (true): New section.
17814 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17816 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17818 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17820 * docs/grub.texi (Simple configuration): Explain some of the
17821 current limitations of grub-mkconfig.
17822 Reported by: Leslie Rhorer.
17824 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17826 Old macs search for boot.efi rather than for bootia32.efi.
17828 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17829 * util/grub-mkrescue.in: Likewise.
17830 Suggested by: Peter Jones.
17832 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17834 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17836 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17838 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17839 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17840 (grub_lvm_mirror): New struct.
17841 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17842 (grub_lvm_iterate): Iterate only visible volumes.
17843 (grub_lvm_read): Factor out to ..
17844 (read_lv): ... this. Support mirrors.
17845 (grub_lvm_read): New wrapper function.
17846 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17847 stripped or mirrored.
17849 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17851 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17853 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17855 * docs/grub.texi (loopback): New section.
17857 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17859 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17862 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17864 * docs/grub.texi (BIOS installation): New section, partly based on
17865 previous text in other sections.
17866 (Installing GRUB using grub-install): Replace BIOS discussion with a
17868 (Images): Likewise.
17870 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17872 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17873 [HAVE_DIOCGDINFO]: Add safety checks.
17875 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17877 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17878 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17880 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17882 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17883 real_sb->size is zero (e.g. RAID-0), get the disk size from
17884 real_sb->data_size instead.
17885 Fixes Ubuntu bug #743136.
17887 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17889 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17890 printf clauses for printing size and start.
17892 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17894 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17895 Reported and tested by: Timothy Nikkel.
17897 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17899 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17900 (dirty_region_add_real): ... this.
17901 (dirty_region_add): Don't discard margin refresh when performing
17904 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17906 * grub-core/lib/relocator.c (allocate_regstart)
17907 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17908 terminals are capabple of malloc-free operation.
17909 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17910 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17912 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17914 * util/grub-setup.c: Copy the partition table zone if floppy support
17915 is disabled, even if no partition table is found.
17917 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17918 during POST if an invalid partition table is contained in the PBR
17919 of the active partition when GRUB is installed to a partition.
17921 2011-03-28 Colin Watson <cjwatson@debian.org>
17923 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
17926 2011-03-28 Colin Watson <cjwatson@debian.org>
17928 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
17929 to be specific about what kind of RAID device we're scanning for.
17931 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
17933 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
17934 return freed string.
17936 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17938 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
17940 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17942 Use libgeom on FreeBSD to detect partitions.
17944 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
17945 (grub-mkrelpath): Likewise.
17946 (grub-script-check): Likewise.
17947 (grub-editenv): Likewise.
17948 (grub-mkpasswd-pbkdf2): Likewise.
17949 (grub-fstest): Likewise.
17950 (grub-mkfont): Likewise.
17951 (grub-mkdevicemap): Likewise.
17952 (grub-probe): Likewise.
17953 (grub-setup): Likewise.
17954 (grub-ofpathname): Likewise.
17955 (grub-mklayout): Likewise.
17956 (example_unit_test): Likewise.
17957 (grub-menulst2cfg): Likewise.
17958 * grub-core/Makefile.core.def (grub-emu): Likewise.
17959 (grub-emu-lite): Likewise.
17960 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
17961 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
17962 define HAVE_DIOCGDINFO.
17963 (follow_geom_up) [FreeBSD]: New function.
17964 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
17965 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
17966 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
17967 unconditionally of HAVE_DIOCGDINFO.
17969 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17971 Fix FreeBSD compilation problem.
17973 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
17974 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
17976 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
17978 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
17979 Switch back to page zero before loading a kernel, since some kernel
17980 drivers expect that.
17981 Thanks to: Felix Kuehling.
17983 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17985 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
17986 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
17987 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
17989 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17991 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
17992 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
17994 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17996 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
17997 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
17998 malloc is disabled.
18000 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18002 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
18003 for modules headers when counting the needed allocation size.
18005 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18007 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
18008 if no ASCII character is found to prevent crash.
18010 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
18012 * grub-core/video/bitmap.c (match_extension): Ignore case.
18014 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18016 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
18018 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18020 * grub-core/script/parser.y: Declare "time" as valid argument.
18022 2011-03-23 Peter Jones <pjones@redhat.com>
18024 Fix incorrect assert failure reporting.
18026 * grub-core/tests/example_functional_test.c (example_test): Add
18028 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
18029 (failure_start): ...this. Check that malloc succeeded.
18030 Don't call xvasprintf. Return failure struct.
18031 (failure_append_vtext): New function.
18032 (failure_append_text): Likewise.
18033 (add_failure): Likewise.
18034 (grub_test_assert_helper): Likewise.
18035 * include/grub/test.h (grub_test_assert_helper): New declaration.
18036 (grub_test_assert): Macro rewritten.
18038 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18040 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
18042 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18044 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
18046 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18048 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
18049 into GRUB-style one.
18051 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18053 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
18054 error and not grub_errno.
18055 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
18057 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18059 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
18060 GRUB_USB_SPEED_NONE in case of failure and not the error code.
18062 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18064 * grub-core/efiemu/i386/pc/cfgtables.c
18065 (grub_machine_efiemu_init_tables): Make declaration a prototype.
18066 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
18067 (grub_xnu_unlock): Likewise.
18068 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
18070 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18072 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
18073 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
18074 * grub-core/commands/hashsum.c (aliases): Likewise.
18075 * grub-core/commands/setpci.c (pci_registers): Likewise.
18076 * grub-core/disk/usbms.c (attach_hook): Likewise.
18077 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
18078 (zio_checksum_table): Likewise.
18079 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
18080 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
18081 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
18082 * grub-core/lib/relocator.c (leftovers): Likewise.
18083 (extra_blocks): Likewise.
18084 * grub-core/loader/i386/bsd.c (relocator): Likewise.
18085 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
18086 (modules_last): Likewise.
18087 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
18088 (devices): Likewise.
18089 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
18090 (modules_last): Likewise.
18091 * grub-core/normal/auth.c (users): Likewise.
18092 * grub-core/normal/context.c (initial_menu): Likewise.
18093 (current_menu): Likewise.
18094 * grub-core/normal/crypto.c (crypto_specs): Likewise.
18095 * grub-core/term/serial.c (grub_serial_ports): Likewise.
18096 (grub_serial_terminfo_input_template): Likewise.
18097 (grub_serial_terminfo_output_template): Likewise.
18098 (grub_serial_terminfo_input): Likewise.
18099 (grub_serial_terminfo_output): Likewise.
18100 (registered): Likewise.
18101 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
18103 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18105 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
18106 grub_video_mode_type_t.
18107 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
18108 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
18109 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
18111 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18113 * util/grub-install.in: Correct the x86-64 name as x86_64.
18115 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
18117 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
18118 initial chunk read from the kernel always includes GRUB's multiboot
18119 header, which is now outside the first sector.
18121 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
18123 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
18124 cached mmap_size, so that this works correctly when called multiple
18126 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
18128 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
18130 * docs/grub.texi (Simple configuration): Tidy up formatting.
18132 2011-03-07 Szymon Janc <szymon@janc.net.pl>
18134 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
18135 Set-but-not-used variable removed.
18137 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18139 Workaround yet another IEEE1275 bug.
18141 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
18142 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
18143 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
18144 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
18146 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18147 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
18149 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18151 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
18154 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
18156 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
18157 empty, since in that case we can only generate either nothing or a
18158 syntactically invalid configuration file.
18159 Reported by: Michal Suchanek. Fixes Debian bug #612898.
18161 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
18163 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
18164 (Making a GRUB bootable CD-ROM): Likewise.
18165 (Invoking grub-mkrescue): New section.
18166 Reported by: Yann Dirson. Fixes Debian bug #612585.
18168 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
18170 * util/grub-install.in: Remove unnecessary brackets from tr
18172 * util/grub.d/10_hurd.in: Likewise.
18173 * util/grub.d/10_kfreebsd.in: Likewise.
18174 * util/grub.d/10_linux.in: Likewise.
18175 * util/grub.d/20_linux_xen.in: Likewise.
18176 Reported by: Jamie Heilman. Fixes Debian bug #612564.
18178 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
18180 * include/grub/file.h (not_easly_seekable): Rename to ...
18181 (not_easily_seekable): ... this. Update all users.
18183 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
18185 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
18188 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
18190 * util/grub-mkimage.c (generate_image): Refuse to create the images
18191 bigger than the actual flash (512K) in Loongson machines. 512K is also
18192 the biggest chip supported by them.
18194 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18196 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
18198 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
18200 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
18201 super_offset field.
18203 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18205 * util/grub-install.in: Ignore install device on platforms
18206 where it doesn't make sense. Always use UUIDs except on pc, efi and
18208 Reported by: Daniel Kahn Gillmor.
18210 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18212 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
18214 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18216 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
18217 (iterate_real): Don't rely on partition being non-NULL.
18219 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18221 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
18222 supported platforms. Put a compile time assert for this rather than
18223 generate a warning with 32-bit shift.
18225 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18227 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
18228 logical expression more readable.
18230 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18232 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
18233 even if some elements have a name.
18234 Reported by: Alexander GQ Gerasiov.
18236 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
18238 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
18239 path unreadable if `grub-probe -t abstraction' fails, for example if
18240 memberlist fails on an LVM volume group.
18241 Reported by: Darius Jahandarie.
18243 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
18245 * docs/grub.texi (Simple configuration): Document
18246 GRUB_PRELOAD_MODULES.
18248 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
18250 * .bzrignore: Remove nonexistent grub-pbkdf2.
18252 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
18254 * configure.ac: Bump version to 1.99~rc1.
18256 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
18258 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
18261 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
18263 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
18266 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
18268 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
18270 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18272 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
18275 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18277 Fix compilation on cygwin.
18279 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
18280 -R .drectve on cygwin.
18281 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
18282 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
18283 (COND_CYGWIN): New condition.
18284 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
18285 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
18286 not @TARGET_OBJ2ELF@.
18287 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
18288 type to determine whether aux is to be used.
18290 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18292 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
18293 realpath'ed device string.
18294 Handle floppy (somewhat).
18295 Issue error in unknown case rather than garbage.
18296 Reported by: Axel Beckert.
18298 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18300 * util/grub.d/00_header.in (load_video): Handle the case when no video
18302 Thanks to: Axel Beckert.
18304 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18306 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
18307 variable. Fixes problem on big endian platforms.
18309 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18311 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
18312 It doesn't work well there.
18314 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18316 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
18318 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
18319 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
18322 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18324 Use alias->path rather than buggy "canon".
18326 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
18327 (ofdisk_hash_add): New argument curcan. All users updated.
18329 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
18331 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
18333 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18335 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
18336 loadmask before doing any calculations. Use correct type for offset.
18337 (grub_linux_load64): Likewise.
18339 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
18341 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
18343 (console_grub_equivalences_unshift): Likewise.
18344 Reported by: Daniel Dehennin.
18346 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18348 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
18349 (set_env_limn_ro): Likewise.
18350 (GRUB_MOD_INIT): Likewise.
18351 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
18352 ARRAY_SIZE while on it.
18353 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
18354 * grub-core/normal/context.c (grub_env_export): Move from here ...
18355 * grub-core/kern/env.c (grub_env_export): ... here.
18356 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
18358 * grub-core/kern/main.c (grub_main): Export root and prefix.
18359 * include/grub/env.h (grub_env_export): Export.
18360 Reported by: Seth Goldberg.
18362 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18364 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18365 Take into account space used by ELF sections and multiboot palette.
18366 Reported by: Grégoire Sutre.
18368 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18372 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18374 Pass more appropriate video id to Linux.
18376 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
18377 grub_video_get_driver_id and variable gfxpayloadforcelfb to
18379 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
18380 shift params->lfb_size.
18381 * include/grub/i386/linux.h: Make an enume out of have_vga values.
18383 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18385 * util/grub-menulst2cfg.c: Add missing include of misc.h.
18387 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18389 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
18390 separator and pass bootpath/devid even if only one of them is available.
18391 Reported by: Seth Goldberg.
18393 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18395 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
18396 implementations bug on them.
18398 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
18400 (filter_memory_map): Likewise.
18402 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18404 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
18405 Reported by: nebuchadnezzar.
18407 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18409 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
18410 Reported by: nebuchadnezzar.
18412 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18414 Submenu default support.
18416 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
18417 auto_boot. All users updated.
18419 Handle chosen and default with submenus.
18420 (grub_menu_execute_with_fallback): Declared static.
18421 Don't notify failure if autobooted. Upper level does it.
18422 (menuentry_eq): New function.
18423 (get_entry_number): Use menuentry_eq.
18424 (show_menu): New parameter "autobooted". All users updated.
18425 (grub_show_menu): Likewise.
18426 * include/grub/normal.h (grub_show_menu): Likewise.
18427 * include/grub/menu.h (grub_menu_execute_entry): Removed.
18428 (grub_menu_execute_with_fallback): Likewise.
18430 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18432 * util/grub-mklayout.c (usage): Update help text.
18434 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18436 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
18438 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18440 * util/grub-menulst2cfg.c (main): Trim the line.
18442 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18444 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
18445 (grub_machine_init): Don't check amount of low memory as reportedly
18446 INT 12h can be broken and if low memory is too low we wouldn't have
18447 gotten into grub_machine_init anyway.
18449 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18451 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
18452 (grub_machine_mmap_iterate): Take low memory into account
18454 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18456 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
18458 Reported by: TiCPU.
18460 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18462 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
18465 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18467 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
18468 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
18470 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18472 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
18473 openbsd and netbsd types being in part_bsd module.
18475 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18477 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
18478 (_FILE_OFFSET_BITS): Likewise.
18479 Reported by: Seth Goldberg.
18481 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
18483 * configure.ac: Check for libdevmapper header.
18485 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18487 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
18489 (fzap_lookup): Likewise.
18490 (dnode_get): Likewise.
18491 (make_mdn): Likewise.
18492 (zfs_mount): Likewise.
18493 (fzap_iterate): Use temporary pointer to avoid aliasing.
18494 (grub_zfs_read): Likewise.
18495 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
18496 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
18497 pointers to avoid aliasing.
18498 (grub_cmd_xnu_kernel64): Likewise.
18499 (grub_xnu_load_driver): Likewise.
18501 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18503 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
18505 (grub_cmd_terminal_output): Likewise.
18506 Reported and tested by: Grégoire Sutre.
18508 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18510 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
18512 Reported and tested by: Grégoire Sutre.
18514 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18516 * configure.ac: Do CPU substitution even if it's specified explicitly.
18517 Reported and tested by: Alain Greppin.
18519 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18521 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
18522 Reported and tested by: Alain Greppin.
18524 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18526 Satisfy some bison versions need for inttypes.h.
18528 * grub-core/lib/posix_wrap/inttypes.h: New file.
18529 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
18530 (int16_t): Likewise.
18531 (int32_t): Likewise.
18532 (int64_t): Likewise.
18533 Reported and tested by: Alain Greppin.
18535 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18537 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
18538 Silence spurious warning.
18539 Reported and tested by: Alain Greppin.
18541 2011-01-07 Szymon Janc <szymon@janc.net.pl>
18543 * docs/grub.texi (Support automatic decompression): Update with xz
18544 decompression support.
18546 2011-01-07 Szymon Janc <szymon@janc.net.pl>
18548 Improve loaders' kernel command line handling.
18550 * grub-core/lib/cmdline.c: New file.
18551 * include/grub/lib/cmdline.h: Likewise.
18552 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
18553 grub_create_loader_cmdline to create kernel command line.
18554 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18555 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
18556 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
18557 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18558 (linux): Add lib/cmdline.c on common.
18560 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18562 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
18563 inopos might be unaligned.
18565 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18567 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
18568 endian transformations.
18569 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18570 Based on report by: Doug Nazar.
18572 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
18574 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
18575 array->members[i].start_sector.
18576 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
18578 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18580 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
18581 Reported and tested by: Grégoire Sutre.
18583 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
18585 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
18586 avoid causing test failures by clearing the screen.
18588 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
18590 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18591 Fix prefix check to handle the case where dir ends with a slash
18592 (most significantly, "/" itself).
18593 Reported by: Michael Vogt.
18595 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18597 Run terminfo_cls on initing terminfo output to clear the screen and
18598 move the cursor to (0,0).
18600 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
18601 Call grub_terminfo_output_init.
18602 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
18603 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
18604 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
18606 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18608 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
18611 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18613 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
18616 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18618 The E820 type 5 is BADRAM, not EXEC_CODE.
18620 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18621 (GRUB_E820_BADRAM): New define.
18622 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
18623 into reserved. Propagate BADRAM.
18624 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18625 (GRUB_E820_BADRAM): New define.
18627 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18629 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
18630 Ignore the memory post-4G.
18631 (grub_relocator_firmware_alloc_region): Additional debug statement.
18633 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18635 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
18637 Reported by: David Pravec.
18639 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18641 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
18644 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18646 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
18648 (grub_reed_solomon_recover): Likewise.
18650 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18652 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
18654 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18656 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
18659 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
18661 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
18662 descriptions of extract_legacy_entries_source and
18663 extract_legacy_entries_configfile.
18664 Reported by: Seung Soo, Ha.
18666 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
18668 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
18669 on devices that do not implement function 0.
18671 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
18673 * grub-core/fs/hfsplus.c: Make parent unsigned.
18674 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
18676 (grub_hfsplus_cmp_extkey): Likewise
18678 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18680 * util/grub-install.in: Correctly use bootloader_id and not
18681 GRUB_DISTRIBUTOR on efibootmgr line.
18683 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18685 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
18687 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
18689 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
18690 Xen and reorder menu item wording to make it clearer that this entry
18691 will launch Xen. Print separate messages when loading Xen and
18694 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18696 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
18697 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
18698 loop in case of incorrect amiga partmap.
18700 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18702 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
18703 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
18706 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18708 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
18710 Reported by: crocket
18712 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18714 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
18716 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
18718 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18720 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
18722 (grub_cmd_xnu_kextdir): Likewise.
18723 (grub_cmd_xnu_splash): Likewise.
18725 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18727 Avoid using Reed-Solomon with 0 redundancy.
18729 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
18730 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
18732 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
18733 (grub_reed_solomon_recover): Likewise.
18735 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18737 Don't use disk subsystem in freebsd_boot.
18739 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
18740 (freebsd_biosdev): Likewise.
18741 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
18742 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
18744 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
18746 Handling of files of unknown size is currently limited. They can't be
18747 used e.g. for initrd or modules. Moreover gzip handling of not
18748 easily seekable files is buggy. Disable unknown file size for now. May
18749 be inefficient but works.
18751 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
18752 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
18754 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
18756 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
18759 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
18761 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
18763 2010-12-25 Shea Levy <shlevy>
18765 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
18767 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18769 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
18770 Windows Server 2008.
18771 Reported by: Devin Giddings.
18773 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18775 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
18776 writing an error message because of async power management.
18777 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
18778 (grub_reboot): Likewise.
18780 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
18782 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
18783 keep unit tests from failing when they shouldn't.
18785 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18787 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
18788 previous patch increased the size of the RS code by 20 bytes (at
18789 least with gcc-4.4), so increase this by 20 bytes to match.
18790 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18792 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18794 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18795 scratch area. Make sure to initialise chosen in standalone mode as
18796 well as non-standalone.
18797 Reported by: Robert Hooker and Andy Whitcroft.
18798 Tested by: Andy Whitcroft.
18800 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18802 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18803 constructing a new unescaped string and passing it to grub_xputs in
18804 one go, rather than passing characters to grub_printf one at a time.
18806 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18808 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18809 initialising utf16.
18811 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18813 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18814 comment. Add an extra layer of quotation, requiring the output of
18815 this function to be used in a printf format string.
18816 (gettext_printf): New function.
18817 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18818 Extract translatable strings from here-documents and use a temporary
18819 variable instead, so that xgettext can find them.
18820 * util/grub.d/10_kfreebsd.in: Likewise.
18821 * util/grub.d/10_linux.in: Likewise.
18822 * util/grub.d/20_linux_xen.in: Likewise.
18824 * po/grub.d.sed: New file.
18825 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18826 arguments. Set c-format flags on all strings extracted from
18827 util/grub.d/ (xgettext refuses to include these itself for strings
18828 it extracted from a shell file, but these really are c-format).
18830 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18832 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18833 Avoid next pointing to nowhere.
18835 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18837 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18838 rather than assuming than rootblock is exactly in the middle.
18839 (grub_affs_label): Likewise.
18841 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18843 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18844 reserved_first_sector to 0.
18845 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18846 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18847 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18849 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18851 Fix handling of UTF-16 UDF labels.
18853 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18854 (read_string): .. here.
18855 (grub_udf_label): Use read_string.
18857 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18859 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18860 editor under argument scope.
18861 Reported by: Jordan Uggla
18863 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18865 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18867 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
18869 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18870 line, and other keys scroll an entire page (previous handling was
18871 for \r and \n to scroll a page and other keys to scroll two lines).
18873 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18875 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18876 Set ptrdest to correct get_physical_target_address rather than
18877 incorrect get_virtual_current_address.
18879 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18881 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18882 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18884 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
18886 * .bzrignore: Ignore grub-core/rs_decoder.S.
18888 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
18890 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18891 .mo/.mo.gz opening sequence to ...
18892 (grub_mofile_open_lang): ... here.
18893 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18894 * util/grub.d/00_header.in (grub_lang): Include country part of
18896 Reported by: Mario Limonciello.
18898 2010-12-09 Robert Millan <rmh@gnu.org>
18900 * NEWS: Document addition of ZFS support.
18902 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
18904 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18905 rather than `/ 2', as the latter requires -Wa,--divide which would
18906 require bumping our minimum binutils version.
18908 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18910 * util/grub-script-check.c (main): Print script line number on
18913 2010-12-01 Robert Millan <rmh@gnu.org>
18915 * grub-core/fs/zfs/zfs.c: New file.
18916 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18917 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18918 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
18919 * grub-core/fs/zfs/zfsinfo.c: Likewise.
18921 * include/grub/zfs/dmu.h: Likewise.
18922 * include/grub/zfs/dmu_objset.h: Likewise.
18923 * include/grub/zfs/dnode.h: Likewise.
18924 * include/grub/zfs/dsl_dataset.h: Likewise.
18925 * include/grub/zfs/dsl_dir.h: Likewise.
18926 * include/grub/zfs/sa_impl.h: Likewise.
18927 * include/grub/zfs/spa.h: Likewise.
18928 * include/grub/zfs/uberblock_impl.h: Likewise.
18929 * include/grub/zfs/vdev_impl.h: Likewise.
18930 * include/grub/zfs/zap_impl.h: Likewise.
18931 * include/grub/zfs/zap_leaf.h: Likewise.
18932 * include/grub/zfs/zfs.h: Likewise.
18933 * include/grub/zfs/zfs_acl.h: Likewise.
18934 * include/grub/zfs/zfs_znode.h: Likewise.
18935 * include/grub/zfs/zil.h: Likewise.
18936 * include/grub/zfs/zio.h: Likewise.
18937 * include/grub/zfs/zio_checksum.h: Likewise.
18939 * Makefile.util.def: Build ZFS into libgrubmods.
18940 * grub-core/Makefile.core.def: Build zfs.mod.
18942 2010-11-30 Szymon Janc <szymon@janc.net.pl>
18944 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
18946 * grub-core/commands/wildcard.c (match_files): Likewise.
18948 2010-11-30 Robert Millan <rmh@gnu.org>
18950 * grub-core/loader/i386/bsd.c
18951 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
18952 whether kernel is loaded using grub_loader_is_loaded(), rather
18953 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
18954 certain error conditions.
18956 2010-11-30 Robert Millan <rmh@gnu.org>
18958 * grub-core/commands/echo.c: Include `<grub/term.h>'.
18959 (grub_cmd_echo): Call grub_refresh() after printing a message.
18961 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18963 Avoid using tricks for initialising endian variables.
18965 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
18967 (GRUB_MOD_INIT): Don't byte-swap.
18968 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18969 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
18970 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
18971 (grub_swap_bytes32_compile_time): Likewise.
18972 (grub_cpu_to_le32_compile_time): Likewise.
18973 (grub_cpu_to_le16_compile_time): Likewise.
18975 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18977 * util/grub-setup.c (setup): Stop recommending --force. People who
18978 understand the dangers of blocklists are able to find this option
18979 anyway and the ones who don't shouldn't use it anyway.
18981 2010-11-26 Robert Millan <rmh@gnu.org>
18983 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
18986 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
18988 Fix LVM-on-RAID probing.
18990 * util/grub-probe.c (probe): Remember which disk was detected as
18991 RAID (perhaps an LVM physical volume). Use that disk's raidname
18992 rather than that of the top-level disk.
18994 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
18996 Fix cmdline argument quotes for setparams command of menuentry
18999 * grub-core/commands/menuentry.c (setparams_prefix): Use single
19000 quotes for arguments.
19001 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
19002 grub_strchrsub function instead.
19004 * include/grub/misc.h (grub_strchrsub): New function.
19006 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
19008 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
19009 effort by skipping "." and ".." entries up-front.
19010 Suggested by: Michael Lazarev.
19012 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
19014 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
19015 ldflags to ldadd, to fix link line ordering.
19016 (none_decompress): Likewise.
19018 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
19020 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
19022 (grub-emu-lite): Remove kern/emu/cache.S.
19024 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
19026 * util/deviceiter.c (compare_devices): If the by-id link for a
19027 device couldn't be resolved, fall back to sorting by the by-id link
19028 rather than segfaulting.
19029 Reported and tested by: Daniel Mierswa.
19031 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
19033 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
19034 ldflags, to fix link line ordering.
19036 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
19038 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
19039 linkers are picky about this.
19041 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
19043 * grub-core/Makefile.am (command.lst): Adjust sed expression
19044 ordering so that extended and priority commands aren't treated as
19047 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
19049 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
19050 Remove byte-swapping function calls, which are not valid in
19051 structure initialisers.
19052 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
19054 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
19055 grub_gpt_partition_type_bios_boot.
19057 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
19059 Fix test program build on GNU/kFreeBSD.
19061 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
19062 $(LIBNVPAIR)' library dependencies.
19064 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
19066 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
19068 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
19070 * util/grub-install.in: Remove excessive quoting that broke
19071 installations to RAID devices.
19073 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19075 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
19076 bootloader version instead of 0.
19078 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19080 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
19083 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19085 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
19086 retrieve the metadat sector if size isn't known.
19087 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19089 2010-11-18 Robert Millan <rmh@gnu.org>
19091 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
19092 with grub_memcmp().
19094 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
19096 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
19098 Reported by: Jordan Uggla.
19100 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19102 Make better UTF compliant.
19104 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
19105 sequences as incorrect.
19106 (grub_is_valid_utf8): Likewise.
19107 (grub_utf8_to_ucs4): Likewise.
19108 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
19109 (grub_ucs4_to_utf8_alloc): Likewise.
19110 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
19112 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19114 Make legacy_source behave like source.
19116 * grub-core/commands/legacycfg.c (legacy_file): Don't call
19118 (grub_cmd_legacy_source): Call grub_show_menu if needed.
19120 2010-11-16 Colin Watson <cjwatson@debian.org>
19122 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
19123 (-Wunused implies -Wunused-parameter, but not vice versa).
19125 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
19127 * configure.ac: Make error messages less confusing by testing for
19128 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
19129 accepted, but produces a diagnostic if something else is wrong).
19131 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19133 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
19134 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
19136 (grub_keyboard_controller_init)
19137 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
19138 read the initial state since controller isn't inited yet.
19140 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19142 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
19143 allocate_regbeg may need to create new chunk header.
19145 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19147 Fix quoting in legacy parser.
19149 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
19151 (grub_legacy_parse): Likewise.
19152 Reported by: Jordan Uggla.
19153 Tested by: Jordan Uggla.
19155 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19157 Don't add -lgcc on i386 and x86_64.
19159 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
19160 * conf/Makefile.common (LDADD_KERNEL): Likewise.
19161 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
19163 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19165 * configure.ac: Add -Wno-trampolines when supported.
19167 2010-11-14 Modestas Vainius <modax@debian.org>
19169 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
19172 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19174 Add generic logical block size support for UDF.
19176 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
19177 (GRUB_UDF_BLKSZ): Removed.
19178 (struct grub_udf_data): New field "lbshift" to hold the logical block
19179 size of the file system in log2 format. All users updated.
19180 (sblocklist): Change type to unsigned.
19181 (grub_udf_mount): Change type of "sblklist" to unsigned.
19182 Move AVDP search before VRS recognition, because the latter requires
19183 knowledge of the logical block size, which is detected during the
19185 Detect and validate logical block size during AVDP search, adding
19186 support for block sizes 512, 1024 and 4096.
19187 Make VRS recognition independent of block size.
19189 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19191 Properly handle deleted files on UDF.
19193 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
19194 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
19197 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19199 Support reading files larger than 2 GiB.
19201 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
19202 "offset" to grub_off_t.
19203 (grub_udf_read_file): Likewise for parameter "pos".
19205 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19207 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
19209 (Simple configuration): Refer to Changes from GRUB Legacy about
19210 save_env availability.
19212 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19214 * util/grub-install.in: Ignore empty partition table detection
19215 instead of trying to include part_ module.
19217 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19219 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
19220 LVM on RAID support.
19222 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19224 Properly define WORDS_BIGENDIAN in wrapped environments.
19226 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
19228 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
19230 Reported by: Manoel Rebelo Abranches.
19231 Tested by: Manoel Rebelo Abranches.
19233 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19235 * util/grub-mkconfig.in: Fix quoting.
19237 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19239 Support big ext2 files.
19241 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
19242 (grub_ext2_read_block): Support triple indirect blocks.
19243 (grub_ext2_read_file): Use 64-bit types and read size_high.
19244 (grub_ext2_open): Read size_high.
19245 Reported by: Ximin Luo.
19246 Tested by: Manoel Rebelo Abranches.
19248 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19250 * util/grub-install.in: Handle filenames containing spaces.
19251 Reported by: Jordan Uggla.
19252 Tested by: Jordan Uggla.
19254 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19256 * util/grub-mkconfig.in (grub_script_check): New variable.
19257 Use grub_script_check instead of grub-script-check.
19258 Reported by: Barry Jackson.
19260 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19262 * docs/grub.texi (menu): Correct the order.
19263 Reported by: D. Hugh Redelmeier.
19265 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
19267 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
19270 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
19272 * include/grub/elfload.h (grub_elf32_size): New parameter.
19274 Return maximum segments alignment.
19275 (grub_elf64_size): Likewise.
19276 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
19277 Return maximum segments alignment.
19278 (grub_elf64_size): Likewise.
19279 * grub-core/loader/powerpc/ieee1275/linux.c:
19280 (grub_linux_claimmap_iterate): New function. Uses the
19281 "available" property in the "memory" node for memory allocation
19282 for kernel in the PowerPC loader.
19283 (grub_linux_load32): Correctly find linux entry point offset.
19284 (grub_linux_load64): Likewise.
19286 2010-11-07 Robert Millan <rmh@gnu.org>
19288 On mips-yeeloong, build with -march=loongson2f when this flag is
19289 available (GCC >= 4.4).
19290 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
19292 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
19293 or otherwise add -march=mips3.
19295 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
19297 Suppress shell expansion on echo '*' and echo "*" like cases.
19298 Reported by: Jordan Uggla.
19300 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
19301 string arguments before shell expansion.
19302 * tests/grub_cmd_echo.in: New testcases.
19304 2010-11-07 Robert Millan <rmh@gnu.org>
19306 * conf/mips-qemu-mips.rmk: Remove stale file from previous
19309 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
19311 * grub-core/kern/emu/hostdisk.c
19312 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
19314 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19316 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
19317 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
19318 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
19320 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19322 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
19324 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19326 * util/grub-install.in: Replace useless recomendation to pass
19327 --modules with a recomendation to report a bug.
19329 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19331 Properly register serial terminfo.
19332 Reported by: Jordan Uggla
19334 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
19336 (grub_serial_terminfo_output_template): Likewise.
19337 (grub_cmd_serial): Register "serial" with terminfo.
19338 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
19339 grub_serial_terminfo_output.
19341 2010-11-05 Robert Millan <rmh@gnu.org>
19343 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
19346 2010-11-05 Robert Millan <rmh@gnu.org>
19348 On Yeeloong, pass machine type information to Linux.
19350 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
19351 (LOONGSON_MACHTYPE): New macro, set to
19352 "machtype=lemote-yeeloong-2f-8.9inches".
19353 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
19354 additional argument to Linux.
19356 2010-11-04 Robert Millan <rmh@gnu.org>
19358 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
19359 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
19360 (its SATA disks are detected as slaveless IDE master drives on
19362 Reported by Carsten Aulbert.
19364 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
19366 * util/bin2h.c (main): Fix spelling error in generated output.
19368 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
19370 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
19372 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19374 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
19375 vga= option is supplied.
19377 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19379 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
19380 * util/grub.d/10_kfreebsd.in: Likewise.
19381 * util/grub.d/10_linux.in: Likewise.
19382 * util/grub.d/20_linux_xen.in: Likewise.
19384 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19386 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
19387 argument as an argument to no-argument option.
19389 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19391 * util/grub.d/10_linux.in: Add missing load_video with explicit
19392 GRUB_GFXPAYLOAD_LINUX.
19394 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19396 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
19398 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19400 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
19401 elements with invlid index.
19402 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19403 * grub-core/disk/raid.c (insert_array): Automatically reallocate
19405 * include/grub/raid.h (grub_raid_member): New struct.
19406 (grub_raid_array): Transform devices and start_sector into usage of
19407 grub_raid_member. All users updated
19408 (allocated_devs): New member.
19410 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19412 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
19415 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
19417 NetBSD build fix for getline function conflict from gnulib.
19419 * Makefile.util.def (libgrubkern.a): New library for grub kernel
19420 components that depend on gnulib headers.
19421 (libgrubmods.a): Renamed from earlier libgrub.a.
19422 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
19424 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19426 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
19427 install rather than creating a broken install.
19429 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19431 * util/grub-setup.c (argp): Remove misleading example of installing to
19434 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19436 * util/grub-setup.c (setup): Clarify the error message.
19438 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19440 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
19442 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
19444 * grub-core/kern/emu/misc.c
19445 (grub_make_system_path_relative_to_its_root)
19446 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
19448 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
19450 * grub-core/kern/emu/misc.c
19451 (grub_make_system_path_relative_to_its_root): Revert r2882.
19453 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
19455 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
19456 useless field head. All users updated.
19457 (free_subchunk): Correct handling of IN_REGION subchunk.
19459 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
19461 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
19462 (Supported kernels): Likewise.
19464 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
19466 Make mktemp invocations portable.
19468 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
19469 exit if mktemp fails.
19470 * tests/grub_script_blockarg.in: Likewise.
19471 * tests/partmap_test.in: Likewise.
19472 * tests/util/grub-shell-tester.in: Likewise.
19473 * tests/util/grub-shell.in: Likewise.
19474 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19475 * Makefile.am: Likewise, and chain shell commands with `&&'
19477 * util/grub-mkrescue.in: Use the same explicit template as above, and
19478 exit if mktemp fails.
19480 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
19482 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
19483 Linux kernel, reported by Dennis Schridde.
19485 2010-10-17 Szymon Janc <szymon@janc.net.pl>
19487 * grub-core/normal/auth.c (grub_auth_check_authentication):
19488 Set-but-not-used variable removed.
19490 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19492 * docs/grub.texi (GNU/Linux): Document APM unavailability with
19493 32-bit linux protocol.
19495 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19497 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
19498 cursor shape for sanity.
19500 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19502 * docs/grub.texi (Installation): Document buggy BIOS install.
19504 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19506 * docs/grub.texi (Installation): Indent.
19508 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19510 * util/grub-setup.c (setup): New parameter allow_floppy.
19511 (arguments): New member allow_floppy.
19512 (argp_parser): Handle --allow-floppy.
19513 (main): Pass allow_floppy.
19514 * util/grub-install.in: New option --allow-floppy passed though to
19517 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19519 * util/grub-install.in: Handle partitionless disks.
19521 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19523 * util/grub-setup.c (setup): Don't clean blocklists before readability
19526 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19528 * docs/grub.texi (Installation): Document embedding zone. Remove
19529 obsolete grub-install example.
19531 2010-10-16 Szymon Janc <szymon@janc.net.pl>
19533 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
19534 Set-but-not-used variable ifdef'ed.
19535 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
19536 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
19538 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
19539 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
19540 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19541 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
19542 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
19543 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
19544 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
19545 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
19546 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
19547 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
19548 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
19551 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19553 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
19554 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
19557 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19559 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
19560 synonym to _S5_. Needed for some DSDTs.
19562 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19564 Userspace ACPI parser debugging.
19566 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
19567 headers and add relevant defines. Don't include standard headers.
19568 (main) [GRUB_DSDT_TEST]: New function.
19569 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
19570 Don't declare functions.
19572 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19574 Remove dead grub_efi_mm_fini.
19576 * grub-core/kern/efi/mm.c (allocated_page): Removed.
19577 (ALLOCATED_PAGES_SIZE): Likewise.
19578 (MAX_ALLOCATED_PAGES): Likewise.
19579 (allocated_pages): Likewise.
19580 (grub_efi_allocate_pages): Don't record allocated pages.
19581 (grub_efi_free_pages): Likewise.
19582 (grub_efi_mm_init): Likewise.
19583 (grub_efi_mm_fini): Removed.
19585 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19587 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
19588 (grub_efi_mm_init): Take into account the memory map size increase.
19590 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19592 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
19593 (serial_hw_put): Wait based on real time rather than port reads. Don't
19595 * include/grub/serial.h (grub_serial_port): New field broken.
19597 2010-10-16 Robert Millan <rmh@gnu.org>
19599 * grub-core/kern/emu/misc.c
19600 (grub_make_system_path_relative_to_its_root): Fix premature return
19601 when processing non-root ZFS filesystems.
19602 Reported by Sergio Talens-Oliag.
19604 2010-10-15 Robert Millan <rmh@gnu.org>
19606 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
19607 guarantee compressed ones are processed first.
19609 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19611 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
19612 grub_efiemu_autocore.
19614 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19616 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
19618 (grub_console_getkey): Use correct jae opcode rather than ja.
19620 2010-10-12 Robert Millan <rmh@gnu.org>
19622 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
19623 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
19624 variable. All references updated.
19626 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
19628 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
19630 Correctly distinguish mdraid flavours.
19632 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
19633 (insert_array): New argument raid.
19634 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
19635 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
19636 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
19638 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
19640 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
19641 handling of special keys.
19643 2010-10-02 Aleš Nesrsta <starous@volny.cz>
19645 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
19646 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
19648 2010-10-02 Aleš Nesrsta <starous@volny.cz>
19650 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
19651 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
19653 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
19654 Use right endpoint when querying descriptor.
19656 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19658 Clear out 0x80 color bit on EFI.
19660 Reported by: decoder and meta tech.
19662 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
19663 (grub_console_setcolorstate): Clear out 0x80 bit.
19664 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
19665 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
19666 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
19668 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19670 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
19673 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19675 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
19676 mo_file after freeing.
19678 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19680 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
19682 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19684 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
19687 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19689 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
19692 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19694 Put terminfo into core on ieee1275 and yeeloong (needed for console).
19696 * gentpl.py: New groups terminfoinkernel and terminfomodule.
19697 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
19698 and terminfo.h when needed.
19699 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
19700 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
19701 (terminfo): Enable only on terminfokernel.
19702 (extcmd): Likewise.
19703 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
19704 * include/grub/lib/arg.h: Likewise.
19705 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
19706 incorrect usage of ->.
19708 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19710 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
19711 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
19713 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19715 Fix coreboot compilation.
19717 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19718 Take VBE info into account even if only text is supported.
19719 (fill_vbe_info): Take into account the case when only VGA text
19721 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
19722 on coreboot, multiboot and qemu.
19724 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19726 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
19728 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
19730 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19732 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
19735 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19737 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
19738 if they were BSD-style.
19740 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19742 * grub-core/boot/i386/pc/lnxboot.S: Replace
19743 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
19744 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
19746 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19748 Write embedding zone using Reed-Solomon.
19750 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
19751 * grub-core/Makefile.am (rs_decoder.S): New target.
19752 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
19753 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
19754 (multiboot): Move to RS part.
19755 (post_reed_solomon): New label.
19756 (grub_boot_drive): Move to non-RS part since it's modified in memory
19758 Include rs_decoder.S.
19759 * grub-core/lib/reed_solomon.c: New file.
19760 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
19762 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
19763 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
19764 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
19765 * include/grub/partition.h (grub_partition_map): Change prototype of
19766 embed to allow returning additional sectors.
19767 * include/grub/reed_solomon.h: New file.
19768 * util/grub-setup.c (setup): Handle Reed-Solomon.
19770 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
19772 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19773 i386 and x86-64 definedness tests.
19775 2010-09-27 Yves Blusseau <blusseau@zetam.org>
19777 Fix generation of kernel_syms.lst
19779 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
19782 2010-09-26 Robert Millan <rmh@gnu.org>
19784 Support degraded ZFS arrays in "grub-probe -t device" resolution.
19786 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
19787 the pool is an array of devices, iterate through it and return the
19788 first device that passes a stat() test (instead of blindly returning
19791 2010-09-26 Robert Millan <rmh@gnu.org>
19793 Build fixes for GNU/kFreeBSD.
19795 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19796 to programs that require ZFS conversion.
19797 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19798 kernels that don't have FLOPPY_MAJOR.
19800 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19802 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19804 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19806 Fix grub-emu build.
19808 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19809 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19810 mdraid09 and mdraid1x.
19812 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
19814 Re-enable grub-extras.
19816 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19817 avoid confusing Automake. Run autogen only twice, once for the top
19818 level and once for grub-core. Add Makefile.util.def and
19819 Makefile.core.def from extra modules to the appropriate autogen
19820 invocations. If Makefile.common exists in an extra module, include
19821 it in both Makefile.util.am and grub-core/Makefile.core.am;
19822 similarly, include any Makefile.util.common file in Makefile.util.am
19823 and any Makefile.core.common file in grub-core/Makefile.core.am.
19824 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19825 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19826 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19827 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19829 * gentpl.py (gvar_add): Turn GVARS into a set.
19830 (global_variable_initializers): Sort global variables on output.
19831 (vars_init): New function.
19832 (first_time): Likewise.
19833 (library): Ensure that non-global variable initialisations are
19834 emitted before the first time we emit code for a library block.
19835 Append to variables rather than setting them. Only emit
19836 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19837 each conditional path.
19838 (program): installdir() emits an Autogen macro, so must be passed to
19839 var_add rather than gvar_add.
19841 (script): Likewise.
19842 (rules): New function, centralising handling for different target
19843 types. Set up Guile association lists for first_time and vars_init,
19844 and send most output to a diversion so that variable initialisations
19845 can be emitted first.
19846 (module_rules): Use new rules function.
19847 (kernel_rules): Likewise.
19848 (image_rules): Likewise.
19849 (library_rules): Likewise.
19850 (program_rules): Likewise.
19851 (script_rules): Likewise.
19852 (data_rules): Likewise.
19854 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19856 * .bzrignore: Add contrib and grub-core/contrib. Remove
19857 grub-core/Makefile.gcry.am.
19859 2010-09-24 Yves Blusseau <blusseau@zetam.org>
19861 * grub-core/lib/LzFind.c: Add missing include.
19862 * grub-core/lib/LzmaEnc.c: Likewise.
19863 * grub-core/script/lexer.c: Likewise.
19864 * grub-core/script/yylex.l: Likewise.
19865 * util/grub-macho2img.c: Likewise.
19866 * util/grub-menulst2cfg.c: Likewise.
19867 * util/grub-mklayout.c: Likewise.
19868 * util/grub-mkpasswd-pbkdf2.c
19869 * util/grub-mkrelpath.c: Likewise.
19870 * util/resolve.c: Likewise.
19872 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19874 * Makefile.util.def (example_unit_test): Add
19875 grub-core/gnulib/libgnu.a.
19877 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19879 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19881 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19883 Support xz compression on yeeloong.
19885 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19886 * configure.ac: Check for LZMA.
19887 * grub-core/Makefile.core.def (xz_decompress): New target.
19888 (none_decompress): Likewise.
19889 * grub-core/boot/decompressor/minilib.c: New file.
19890 * grub-core/boot/decompressor/none.c: Likewise.
19891 * grub-core/boot/decompressor/xz.c: Likewise.
19892 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19893 * grub-core/kern/mips/cache_flush.S: Likewise.
19894 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19895 * grub-core/kern/mips/startup.S: Move first stage to ...
19896 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19898 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19899 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19900 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19901 Allocate statically.
19902 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19903 Allocate statically or use scratch. Don't check CRC32.
19904 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19905 Allocate statically. Don't check CRC32.
19906 * include/grub/decompressor.h: New file.
19907 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19909 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19910 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19911 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19912 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19913 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19914 * util/grub-mkimage.c (grub_compression_t): New type.
19915 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19916 (image_target_desc): New field default_compression.
19917 (image_targets): Adjust yeeloong targets.
19918 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
19919 (compress_kernel): New parameter comp.
19920 (generate_image): Likewise. Handle new compression case.
19921 (options): New option --compression
19923 (main): Handle new option.
19925 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
19927 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
19929 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
19931 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19932 typo in __i386__ conditional.
19934 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19936 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
19939 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19941 Implement EFI and ACPI multiboot2 extensions.
19943 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
19944 new tags as supported.
19945 (acpiv2_size): New function.
19946 (grub_multiboot_get_mbi_size): Take new tags into account.
19947 (grub_multiboot_make_mbi): Add new tags.
19948 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
19950 2010-09-21 Aleš Nesrsta <starous@volny.cz>
19952 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
19953 Added missing configuration of USB device.
19955 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19957 * grub-core/normal/menu_entry.c (run): Make sure we always return
19960 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19962 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
19963 NumberOfPages is UINT64 according to the UEFI specification, not
19964 UINTN. Fix printf format.
19966 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19968 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
19969 `err' to grub_usb_err_t.
19970 Reported and tested by: KESHAV P.R.
19972 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19974 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
19975 tpart non-const, so that we can assign to it. (Since this is a
19976 typedef, the constness refers to the pointer rather than what it
19979 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19981 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
19982 $(top_srcdir)/grub-core/gnulib as well as
19983 $(top_builddir)/grub-core/gnulib.
19984 Reported by: KESHAV P.R.
19986 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19988 * util/grub-install.in: Fix the bootloader ID option to be
19989 consistently --bootloader-id, not --bootloader_id.
19990 Reported by: KESHAV P.R.
19992 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19994 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
19995 check hash checksum." consistently translatable.
19997 2010-09-21 Yves Blusseau <blusseau@zetam.org>
19999 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
20002 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
20004 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
20005 (GRUB_MOD_INIT): Register sha1sum command.
20006 (GRUB_MOD_FINI): Unregister sha1sum command.
20008 2010-09-21 Yves Blusseau <blusseau@zetam.org>
20010 Keep boot and grub directory names in sync with utils scripts
20012 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
20013 * config.h.in: Add previous macros.
20014 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
20015 * util/grub-install.in: Use $bootdir and $grubdir variables.
20017 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
20019 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
20020 convert partition names to disk names if the new `convert' parameter
20022 (grub_util_biosdisk_get_grub_dev): If opening the disk device
20023 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
20024 disk in its own right. This can happen with Xen disk images.
20026 2010-09-21 Yves Blusseau <blusseau@zetam.org>
20028 * util/grub-editenv.c: Update strings to avoid warnings when generating
20030 * util/grub-setup.c: Likewise.
20032 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
20034 * configure.ac: Change version to 1.99~beta0.
20036 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
20038 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
20040 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
20042 * include/multiboot.h: Resynced with specification.
20043 * include/multiboot2.h: Likewise.
20045 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
20047 Fix po directory handling.
20049 * configure.ac: Create po/Makefile.in rather than po/Makefile.
20050 * grub-core/gnulib/Makefile.am: Import gettext module.
20051 * m4/gnulib-cache.m4: Likewise.
20052 * m4/gnulib-comp.m4: Likewise.
20053 * m4/gettext.m4: New file, from gnulib.
20054 * m4/glibc2.m4: Likewise.
20055 * m4/iconv.m4: Likewise.
20056 * m4/intdiv0.m4: Likewise.
20057 * m4/intl.m4: Likewise.
20058 * m4/intldir.m4: Likewise.
20059 * m4/intlmacosx.m4: Likewise.
20060 * m4/intmax.m4: Likewise.
20061 * m4/inttypes-pri.m4: Likewise.
20062 * m4/lcmessage.m4: Likewise.
20063 * m4/lib-ld.m4: Likewise.
20064 * m4/lib-link.m4: Likewise.
20065 * m4/lib-prefix.m4: Likewise.
20066 * m4/lock.m4: Likewise.
20067 * m4/nls.m4: Likewise.
20068 * m4/po.m4: Likewise.
20069 * m4/printf-posix.m4: Likewise.
20070 * m4/progtest.m4: Likewise.
20071 * m4/threadlib.m4: Likewise.
20072 * m4/uintmax_t.m4: Likewise.
20073 * m4/visibility.m4: Likewise.
20074 * po/Makefile.am: Remove.
20075 * po/Makefile.in.in: New file, from gettext.
20076 ($(DOMAIN).pot-update): Support POTFILES-shell.
20077 * po/Makevars: New file.
20078 * po/POTFILES-shell: Rename to ...
20079 * po/POTFILES-shell.in: ... this. Update.
20080 * po/POTFILES: Rename to ...
20081 * po/POTFILES.in: ... this. Update.
20082 * po/Rules-quot: New file, from gettext.
20083 * po/boldquot.sed: Likewise.
20084 * po/en@boldquot.header: Likewise.
20085 * po/en@quot.header: Likewise.
20086 * po/insert-header.sin: Likewise.
20087 * po/quot.sed: Likewise.
20088 * po/remove-potcdate.sin: Likewise.
20090 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20092 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
20094 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20096 * util/grub.d/20_linux_xen.in: Use submenus.
20098 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20102 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
20103 parameter submenu. All users updated.
20104 * grub-core/normal/main.c (free_menu): Rename to ...
20105 (grub_normal_free_menu): ... this. Made global.
20106 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
20108 * grub-core/normal/menu_entry.c (screen): New field submenu.
20109 (make_screen): Set submenu.
20110 (run): Open new context if requested.
20111 * include/grub/menu.h (grub_menu_entry): New field submenu.
20112 * include/grub/normal.h (grub_normal_free_menu): New proto.
20114 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20116 Menu entries extractor.
20118 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
20120 (GRUB_MOD_INIT): Register new variants.
20121 (GRUB_MOD_FINI): Unregister new variants.
20122 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
20123 into grub_cmd_legacy_source.
20124 (grub_cmd_legacy_source): Implement extractor variants.
20125 (GRUB_MOD_INIT): Register new variants.
20126 (GRUB_MOD_FINI): Unregister new variants.
20127 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
20129 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
20130 search as an extractor.
20131 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
20132 test as an extractor.
20133 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
20135 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
20136 (grub_env_new_context): New function.
20137 (grub_env_context_open): Likewise.
20138 (grub_env_extractor_open): Likewise.
20139 (grub_env_extractor_close): Likewise.
20140 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20141 grub_extractor_level.
20142 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
20143 * include/grub/env.h (grub_env_extractor_open): New proto.
20144 (grub_env_extractor_close): Likewise.
20145 * include/grub/normal.h (grub_extractor_level): New external variable.
20147 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20149 Make cutmem accept a region specification.
20150 Suggested by: Samuel Thibault
20152 * grub-core/mmap/mmap.c (parsemem): New function.
20153 (grub_cmd_cutmem): Handle new arguments.
20155 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20157 New command cutmem.
20159 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
20160 (GRUB_MOD_INIT): Register new command.
20161 (GRUB_MOD_FINI): Unregister new command.
20163 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20165 Support some annoying BSD and Minix subpartitions.
20167 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
20168 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
20169 Properly handle concatenation.
20170 * grub-core/kern/device.c (grub_device_iterate): Likewise.
20171 * grub-core/normal/completion.c (iterate_partition): Likewise.
20172 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
20173 contain partition. All users updated.
20174 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
20176 (grub_openbsdlabel_partition_map): Likewise.
20177 (bsdlabel_partition_map_iterate): Rename to ..
20178 (iterate_real): ... this. New arguments sector, freebsd and pmap.
20179 (bsdlabel_partition_map_iterate): New function.
20180 (netopenbsdlabel_partition_map_iterate): Likewise.
20181 (netbsdlabel_partition_map_iterate): Likewise.
20182 (openbsdlabel_partition_map_iterate): Likewise.
20183 (GRUB_MOD_INIT): Register new partmaps.
20184 (GRUB_MOD_FINI): Unregister new partmaps.
20185 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
20186 (grub_partition_msdos_iterate): ... this. All users updated.
20187 Don't support embedding other than in a minix partition.
20188 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
20190 * include/grub/partition.h (grub_partition): New field msdostype.
20191 * util/grub-install.in: Handle openbsd and netbsd types being in
20194 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20196 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
20198 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
20199 * grub-core/Makefile.core.def (mdraid): Renamed to ...
20200 (mdraid09): ... this.
20201 (mdraid1x): New module.
20202 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
20203 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
20205 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20207 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
20210 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
20212 * grub-core/commands/efi/lsefimmap.c: Correct header.
20215 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
20217 * util/grub-editenv.c (argp_parser): Don't pass translated strings
20218 as printf format strings; the translations might contain '%' which
20219 could cause a crash.
20221 * util/grub-fstest.c (argp_parser): Likewise.
20222 * util/grub-setup.c (argp_parser): Likewise.
20225 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20227 Use argp in grub-fstest.
20229 * util/grub-fstest.c: Don't include getopt.h.
20231 (root): New variable.
20232 (args_count): Likewise.
20234 (num_disks): Likewise.
20235 (images): Likewise.
20237 (debug_str): Likewise.
20239 (options): Transformed to argp.
20241 (main): Split argument parsing into ...
20242 (argp_parser): ... this. Changed to argp format.
20243 (argp): New variable.
20244 (main): Use argp_parse.
20246 2010-09-20 Tristan Gingold <gingold@free.fr>
20247 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
20248 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20250 * grub-core/commands/efi/lsefimmap.c: New file.
20251 * grub-core/Makefile.core.def (lsefimmap): New module.
20252 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
20254 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20256 Pause the execution (10s max) if any errors are displayed so the user
20257 has a chance to see them.
20259 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
20260 (grub_print_error): Increment grub_err_printed_errors.
20261 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
20262 execution if any errors were displayed.
20263 (show_menu): Remove old code for pause.
20264 * grub-core/normal/menu_entry.c (run): Likewise.
20265 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
20267 (grub_normal_get_char_counter): Likewise.
20268 * include/grub/err.h (grub_err_printed_errors): New external variable.
20269 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
20271 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20273 Support multiboot VBE info.
20275 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
20276 Take VBE info into account.
20277 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
20278 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20279 Call fill_vbe_info when appropriate.
20280 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
20281 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
20283 (grub_multiboot_get_mbi_size): Take new tags into account.
20284 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
20285 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20286 Call fill_vbe_tag when appropriate.
20287 (grub_multiboot_make_mbi): Properly align tags.
20288 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
20290 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
20292 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
20294 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20296 Suport manual terminal geometry specification.
20298 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
20299 Save state in grub_ofconsole_terminfo_output.
20300 (grub_ofconsole_term): Use grub_terminfo_getwh.
20301 (grub_ofconsole_getwh): Removed.
20302 * grub-core/term/serial.c (grub_serial_getwh): Removed.
20303 (grub_serial_term): Use grub_terminfo_getwh.
20304 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
20305 (options): New struct.
20306 (OPTION_*): New enum.
20307 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
20308 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
20310 (grub_terminfo_getwh): New proto.
20311 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
20313 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20315 Handle legacy "terminal" command.
20317 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
20319 (legacy_commands): Add terminal and title.
20320 (grub_legacy_parse): Handle terminal. Simplify title handling.
20322 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20324 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
20325 parameters overflow.
20327 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
20329 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
20332 * docs/grub.texi (Shell-like scripting): Document `!'.
20333 (Network): Simplify using new i386-pc-pxe format. Mention
20338 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
20340 * Makefile.am (SUBDIRS): Restore "."; it's important to force
20341 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
20344 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
20346 * grub-core/commands/efi/lsefisystab.c: Correct header.
20347 * grub-core/commands/efi/lssal.c: Likewise.
20348 * grub-core/commands/testload.c: Likewise.
20350 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
20352 * util/grub-mkrescue.in: Add explicit root argument to --set to
20353 prevent the UUID being interpreted as an argument to --set (matches
20354 previous change to prepare_grub_to_access_device).
20356 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
20358 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
20359 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
20360 the verbosity of later #ifs.
20361 (find_partition_start): Define this function on FreeBSD too.
20362 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
20364 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
20367 2010-09-20 Yves Blusseau <blusseau@zetam.org>
20369 * util/grub-editenv.c: Use argp instead of getopt.
20371 2010-09-20 Yves Blusseau <blusseau@zetam.org>
20373 * util/grub-setup.c: Use argp instead of getopt.
20375 2010-09-20 Yves Blusseau <blusseau@zetam.org>
20377 Use gnulib-tool to create gnulib source files.
20379 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
20380 grub-core/gnulib directories
20381 * .bzignore: Add **/.deps and autogenerated gnulib files
20382 * configure.ac: Assign auxiliary directory to build-aux, add invocation
20383 of gnulib macros, add grub-core/gnulib/Makefile
20384 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
20385 include m4 directory to aclocal.
20386 * Makefile.util.def: Remove direct compilation of gnulib source files
20387 and use the new grub-core/gnulib/libgnu.a.
20388 * build-aux/config.rpath: move config.rpath from top directory to
20390 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
20392 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
20393 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
20394 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
20396 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
20399 2010-09-20 Yves Blusseau <blusseau@zetam.org>
20401 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
20402 grub-core/genmod.sh and grub-core/gensyminfo.sh
20404 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
20406 Add a test for echo command options.
20408 * tests/grub_cmd_echo.in: New test.
20409 * Makefile.util.def: Rules for new test.
20411 2010-09-20 Szymon Janc <szymon@janc.net.pl>
20413 Remove crc.mod and move crc command to hashsum.mod.
20414 Remove lib/crc.c - users updated to use gcrypt implementation.
20416 * grub-core/commands/crc.c: Removed.
20417 * grub-core/Makefile.core.def (crc): Module removed.
20418 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
20419 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
20420 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
20421 * grub-core/lib/crc.c: Removed.
20422 * include/grub/lib/crc.h: Removed.
20423 * Makefile.util.def (crc): Remove lib/crc.c
20424 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
20425 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
20426 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
20427 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
20428 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
20429 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
20431 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20433 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
20435 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20437 Split config.h for util and core.
20439 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
20440 (ADDR32): Likewise.
20441 (DATA32): Likewise.
20442 (BSS_START_SYMBOL): Likewise.
20443 (END_SYMBOL): Likewise.
20444 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
20445 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
20446 * config.h.in: New file.
20447 * configure.ac: Use config-util.h as config define file.
20448 Rename MACHINE into GRUB_MACHINE. All users updated.
20449 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
20451 (NESTED_FUNC_ATTR): Likewise.
20452 Substitue new variables.
20453 (COND_HAVE_ASM_USCORE): New conditional.
20454 * grub-core/Makefile.am (ASM_PREFIX): New variable.
20455 (kernel_syms.lst): Use ASM_PREFIX.
20456 * grub-core/kern/emu/console.c: Include config-util.h.
20457 * grub-core/kern/emu/misc.c: Likewise.
20458 * grub-core/kern/emu/mm.c: Likewise.
20459 * include/grub/emu/misc.h: Likewise.
20460 * include/grub/libgcc.h: Likewise.
20462 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20464 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
20466 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
20467 Fix GRUB_TERM_KEY_* constants usage.
20468 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
20470 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20472 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
20474 * grub-core/bus/usb/uhci.c: Remove empty define.
20475 (grub_uhci_check_transfer): Add missing cast.
20476 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
20478 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
20480 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
20482 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20484 * grub-core/Makefile.core.def (legacycfg): Add
20485 lib/i386/pc/vesa_modes_table.c on emu.
20487 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20489 Reduce number of temporary files generated by build system.
20491 * grub-core/gencmdlist.sh: Removed.
20492 * grub-core/genfslist.sh: Removed.
20493 * grub-core/genhandlerlist.sh: Removed.
20494 * grub-core/genmodsrc.sh: Removed.
20495 * grub-core/genpartmaplist.sh: Removed.
20496 * grub-core/genparttoollist.sh: Removed.
20497 * grub-core/gentermiinallist.sh: Removed.
20498 * grub-core/genvideolist.sh: Removed.
20500 * grub-core/genmod.sh.in: New file.
20501 * grub-core/gensyminfo.sh.in: New file.
20503 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
20504 * conf/Makefile.extra-dist: Update with new files.
20505 * gentpl.py: Remove rules related to unnecessary temporary files.
20506 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
20508 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
20510 * grub-core/bus/usb/uhci.c: Remove empty #define.
20511 * grub-core/genmoddep.awk: Updated with new syminfo format.
20512 * util/bash-completion.d/Makefile.am: Add config.log to
20515 2010-09-19 Yves Blusseau <blusseau@zetam.org>
20517 * Makefile.util.def: Add forgotten $(LIBINTL) library.
20519 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20521 * util/grub-mkconfig.in: Check the config script for syntax errors
20524 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
20525 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20527 * Makefile.util.def (grub-install): Use util/grub-install.in on all
20529 * util/grub-install.in: Add EFI and IEEE1275 support.
20530 * util/i386/efi/grub-install.in: Removed.
20531 * util/ieee1275/grub-install.in: Likewise.
20533 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20535 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
20536 (grub_cmd_cmosclean): Likewise.
20537 (GRUB_MOD_INIT): Register command cmosclean.
20538 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
20539 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
20541 2010-09-18 Carles Pina i Estany <carles@pina.cat>
20542 2010-09-18 Aleš Nesrsta <starous@volny.cz>
20543 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20545 Add keyboard layouts support.
20547 * Makefile.util.def (grub-mklayout): New file.
20548 (grub-kbdcomp): New script.
20549 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
20550 Add keyboard_layouts.h.
20551 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
20552 commands/boot.c on yeeloong.
20553 (keylayouts): New module.
20554 * grub-core/bus/usb/ohci.c
20555 * grub-core/bus/usb/uhci.c
20556 * grub-core/bus/usb/usbhub.c (rescan): New variable.
20557 (grub_usb_add_hub): Poll interrupt pipe for device handling.
20558 (attach_root_port): Likewise.
20559 (poll_nonroot_hub): Likewise.
20560 (grub_usb_poll_devices): Likewise.
20561 (detach_device): Close transfer.
20562 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
20564 (grub_usb_bulk_setup_readwrite): Likewise.
20565 (grub_usb_bulk_finish_readwrite): Likewise.
20566 * grub-core/commands/keylayouts.c: New file.
20567 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
20568 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
20570 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
20571 support scancode 2.
20572 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
20573 * include/grub/keyboard_layouts.h: New file.
20574 * util/grub-mklayout.c: New file.
20575 * util/grub-kbdcomp.in: Likewise.
20577 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20579 Unify memory types.
20581 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
20582 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
20584 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
20585 (grub_upper_mem): Likewise.
20586 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
20587 * include/grub/memory.h (grub_memory_type_t): New enum.
20590 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20592 * grub-core/Makefile.core.def (lsapm): New module.
20593 * grub-core/commands/i386/pc/lsapm.c: New file.
20594 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
20595 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
20597 * include/grub/i386/pc/apm.h: New file.
20598 * include/multiboot.h (multiboot_apm_info): New struct.
20600 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20602 GRUB-legacy configuration file support.
20604 * Makefile.util.def (grub-menulst2cfg): New util.
20605 * docs/man/grub-menulst2cfg.h2m: New file.
20606 * grub-core/Makefile.core.def (legacycfg): New module.
20607 * grub-core/commands/legacycfg.c: New file.
20608 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
20609 (grub_normal_add_menu_entry): ... this.
20610 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
20611 (grub_normal_set_password): ...this.
20612 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
20613 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
20614 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
20615 * grub-core/lib/legacy_parse.c: New file.
20616 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
20617 * include/grub/i386/pc/vesa_modes_table.h: New file.
20618 * include/grub/legacy_parse.h: Likewise.
20619 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
20620 * util/grub-menulst2cfg.c: New file.
20622 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
20624 * grub-core/kern/emu/hostdisk.c
20625 (convert_system_partition_to_system_disk): Initialise node.
20627 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
20629 * grub-core/kern/emu/hostdisk.c
20630 (convert_system_partition_to_system_disk): Fix devmapper memory pool
20632 Reported and based on patch by: Modestas Vainius.
20634 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
20636 Fix DM-RAID probing with recent versions of device-mapper udev
20639 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
20640 canonicalise device paths under /dev/mapper/.
20641 (convert_system_partition_to_system_disk): Compare the
20642 uncanonicalised path to /dev/mapper/ rather than the canonicalised
20643 path, since device nodes under /dev/mapper/ are often symlinks.
20645 2010-09-17 Yves Blusseau <blusseau@zetam.org>
20647 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
20649 2010-09-16 Yves Blusseau <blusseau@zetam.org>
20651 * configure.ac: Avoid some annoying error messages if freetype-config
20652 program is not found.
20654 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
20656 Support RAID on virtio devices, and others.
20658 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
20660 [__MINGW32__] (grub_find_device): ... this.
20661 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
20662 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
20663 reasonable default if dir is NULL.
20664 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
20666 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
20667 (grub_guess_root_device): Update callers.
20668 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
20670 * util/raid.c (grub_util_getdiskname): Remove.
20671 (grub_util_raid_getmembers): Use grub_find_device rather than
20672 grub_util_getdiskname.
20674 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
20676 * docs/grub.texi (serial): Remove obsolete comment about GRUB
20677 needing to be compiled with serial support.
20678 (ls): Indicate that multiple files are accepted.
20679 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
20680 indicate that multiple files are accepted.
20682 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
20684 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
20685 libgrub_a_init.c, and util/bash-completion.d/grub.
20687 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20689 * util/grub-setup.c (setup): Fix incorrect container semantics.
20691 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20693 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
20695 Reported by: J. Nick Terry
20697 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20699 Move embedding routines to partmap sources files.
20701 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
20702 [GRUB_UTIL]: New variable.
20703 (gpt_partition_map_iterate): Set part.parent.
20704 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
20705 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
20706 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
20708 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
20709 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
20710 (grub_partition_map) [GRUB_UTIL]: New field embed.
20711 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
20712 (setup): Use ->embed.
20714 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20716 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
20718 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
20719 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
20721 2010-09-15 Yves Blusseau <blusseau@zetam.org>
20723 Add function to get completions from usage.
20725 * util/bash-completion.d/grub-completion.bash.in: Add function to get
20726 completions from usage. Use LC_ALL=C to get options properly.
20728 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20730 * grub-core/gnulib/basename-lgpl.c: Imported.
20731 * grub-core/gnulib/basename.c: Likewise.
20732 * grub-core/gnulib/dirname-lgpl.c: Likewise.
20733 * grub-core/gnulib/dirname.c: Likewise.
20734 * grub-core/gnulib/dirname.h: Likewise.
20735 * grub-core/gnulib/stripslash.c: Likewise.
20737 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20739 * grub-core/gnulib/error.c: Resynced.
20740 * grub-core/gnulib/getopt.c: Likewise.
20741 * grub-core/gnulib/getopt_int.h: Likewise.
20742 * grub-core/gnulib/regex.h: Likewise.
20743 * grub-core/gnulib/regex_internal.c: Likewise.
20744 * grub-core/gnulib/regex_internal.h: Likewise.
20746 2010-09-15 Szymon Janc <szymon@janc.net.pl>
20748 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
20749 CRC calculations and validity checks.
20750 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
20753 2010-09-15 Szymon Janc <szymon@janc.net.pl>
20755 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
20757 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20759 Fix incorrect echo options handling.
20760 Reported by: Yves Blusseau.
20762 * include/grub/command.h (grub_command_flags_t): New flags
20763 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
20764 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
20765 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
20767 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20769 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
20771 (GRUB_COMMAND_FLAG_MENU): Likewise.
20772 (GRUB_COMMAND_FLAG_BOTH): Likewise.
20773 (GRUB_COMMAND_FLAG_TITLE): Removed.
20774 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
20775 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
20776 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
20777 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
20778 (grub_command_flags_t): New enum. All users updated.
20780 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
20782 Fix solaris compilation.
20784 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
20785 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
20786 (grub-emu-list): Likewise.
20788 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20790 Remove deprecated root command.
20792 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20795 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20797 * util/i386/pc/grub-setup.c: Merge this ...
20798 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20799 * util/grub-setup.c: ... into this.
20800 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20803 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20805 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20808 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20810 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20813 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20815 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20816 explicit root argument to set to prevent UUID to be interpreted as
20819 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20821 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20823 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20825 Don't export grub_gate_a20.
20827 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20828 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20830 (grub_gate_a20): ... this. All users updated.
20831 * include/grub/i386/pc/init.h: Removed. All users updated.
20833 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20835 Create euro.pf2 which supports most European languages.
20837 * Makefile.am (grubdata_DATA): Add euro.pf2.
20838 (euro.pf2): New target.
20839 (CLEANFILES): Add euro.pf2.
20841 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20843 * configure.ac: Disable emu-usb by default to prevent inadvertent
20846 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20848 Disable usbserial on grub-emu since our libusb code isn't good enough
20851 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20852 (usbserial_pl2303): Likewise.
20853 (usbserial_ftdi): Likewise.
20855 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20857 * include/grub/disk.h (grub_disk): Remove has_partitions.
20859 * disk/loopback.c (grub_loopback): Remove has_partitions.
20861 (options): Remove partitions. All users updated.
20862 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20863 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20864 actual partition table is found.
20866 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20868 Remove readability checks (too many false negatives).
20870 * util/grub-install.in: Remove readability checks.
20871 * util/grub-mkconfig.in: Likewise.
20872 * util/grub.d/10_hurd.in: Likewise.
20873 * util/grub.d/10_kfreebsd.in: Likewise.
20874 * util/grub.d/10_linux.in: Likewise.
20875 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20878 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20880 Enable acpi shutdown on all ACPI platforms.
20882 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20883 on coreboo, multiboot and EFI.
20884 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20885 (grub_acpi_halt): Likewise.
20886 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20887 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20888 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20889 * grub-core/lib/i386/halt.c (grub_halt)
20890 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20892 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20894 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20897 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20899 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20900 * grub-core/video/efi_uga.c: Likewise.
20902 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20904 Filter devaliases and never open same device twice.
20906 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20907 (last_ihandle): Likewise.
20908 (ofdisk_hash_ent): New member shortest.
20909 (ofdisk_hash_add): Add canonical path too.
20910 (scan): New function.
20911 (grub_ofdisk_iterate): Iterate over hashed entries.
20912 (compute_dev_path): Don't add :0.
20913 (grub_ofdisk_open): Don't really open the disk.
20914 (grub_ofdisk_close): Avoid closing unrelated disk.
20915 (grub_ofdisk_read): Implement reopen logic.
20916 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20918 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
20921 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20925 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
20926 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
20927 right address. Add sparc64_ieee1275_ldflags.
20928 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
20929 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
20930 to grub_host_to_target_addr
20931 (load_image): Likewise.
20933 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20935 * grub-core/normal/completion.c (complete_file): Handle device
20937 Fix based on patch by Doug Nazar.
20939 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20941 grub-mknetdir script.
20943 * Makefile.util.def (grub-mknetdir): New module.
20944 * tests/util/grub-shell.in: Support boot=net
20945 * util/grub-mknetdir.in: New file.
20947 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20949 videoinfo on non-vbe.
20951 * grub-core/Makefile.core.def (vbeinfo): Removed.
20952 (vbetest): Removed.
20953 (videoinfo): New module.
20954 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
20955 * grub-core/commands/i386/pc/vbetest.c: Removed.
20956 * grub-core/commands/videoinfo.c: New file.
20957 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
20959 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
20961 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
20962 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
20963 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
20964 mode_number. New parameter mode. All users updated.
20965 (grub_video_gop_iterate): New function.
20966 (grub_video_efi_gop): New member iterate.
20967 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
20968 (grub_vbe_set_video_mode): Remove setting useless fields.
20969 (vbe2videoinfo): New function.
20970 (grub_video_vbe_iterate): Likewise.
20971 (grub_video_vbe_setup): Use vbe2videoinfo.
20972 (grub_video_vbe_print_adapter_specific_info): New function.
20973 (grub_video_vbe_adapter): New fields iterate and
20974 print_adapter_specific_info.
20975 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
20977 (grub_video_mode_info): New field mode_number.
20978 (grub_video_adapter): New fields iterate and
20979 print_adapter_specific_info.
20981 2010-09-13 Tristan Gingold <gingold@free.fr>
20982 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
20983 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20985 * grub-core/commands/efi/lsefisystab.c: New file.
20986 * grub-core/commands/efi/lssal.c: Likewise.
20987 * grub-core/Makefile.core.def (lsacpi): New module.
20988 (lsefisystab): Likewise.
20989 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
20990 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
20991 (grub_efi_sal_system_table): New struct.
20992 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
20993 (grub_efi_sal_system_table_memory_descriptor): Likewise.
20994 (grub_efi_sal_system_table_platform_features): Likewise.
20995 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
20996 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
20997 (grub_efi_sal_system_table_ap_wakeup): Likewise.
20998 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
21000 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21002 Support explicit user claim that a device is BIOS-visible.
21004 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
21005 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
21006 * grub-core/kern/emu/hostdisk.c
21007 (convert_system_partition_to_system_disk): Support mdX.
21008 (find_system_device): New parameter add. All users updated.
21009 (grub_util_biosdisk_is_present): New function.
21010 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
21013 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21015 Search hints support.
21017 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
21020 2010-09-13 Yves Blusseau <blusseau@zetam.org>
21022 Bash completion script for util commands
21024 * Makefile.am: Add util/bash-completion.d directory
21025 * configure.ac: Likewise.
21026 * util/bash-completion.d/Makefile.am: New file.
21027 * util/bash-completion.d/grub-completion.bash.in: Likewise.
21029 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21031 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
21032 (print_backlog): set backlog_ucs4 and backlog_glyphs.
21033 Reported by: Yves Blusseau.
21035 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21037 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
21038 partition size and offset.
21040 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21042 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
21044 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21046 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
21048 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21050 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
21051 (grub_xvasprintf): Likewise.
21053 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21055 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
21057 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21059 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
21060 args ending with NULL.
21062 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21064 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
21067 2010-09-11 Szymon Janc <szymon@janc.net.pl>
21069 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
21071 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21073 Shutdown using ACPI.
21075 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
21076 * grub-core/commands/acpihalt.c: New file.
21077 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
21078 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
21079 (grub_acpi_halt): New proto.
21080 (GRUB_ACPI_SLP_EN): New const.
21081 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
21082 (GRUB_ACPI_OPCODE_*): New enum.
21083 (GRUB_ACPI_EXTOPCODE_*): Likewise.
21085 2010-09-11 Tristan Gingold <gingold@free.fr>
21086 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
21087 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21089 * commands/lsacpi.c: New file.
21090 * grub-core/Makefile.core.def (lsacpi): New module.
21091 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
21092 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
21093 (grub_acpi_madt_entry_header): New struct.
21094 (grub_acpi_madt): Likewise.
21095 (grub_acpi_madt_entry_interrupt_override): Likewise.
21096 (grub_acpi_madt_entry_sapic): Likewise.
21097 (grub_acpi_madt_entry_lsapic): Likewise.
21098 (grub_acpi_madt_entry_platform_int_source): Likewise.
21099 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
21100 (PRIuGRUB_UINT32_T): Likewise.
21101 (PRIxGRUB_UINT64_T): Likewise.
21103 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21105 Implement loading palette on ieee1275_fb.
21107 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
21108 (have_setcolors): Likewise.
21109 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
21110 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
21111 (grub_video_ieee1275_set_palette): Implement.
21113 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21114 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
21116 * util/grub-install.in (grub_partition): New variable.
21117 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
21118 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
21119 Fixes a bug reported by Yves Blusseau.
21121 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21125 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
21126 =grub_cpu_flush_cache on all mips and not only yeeloong.
21127 * configure.ac (COND_mips): New conditional.
21128 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
21130 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
21131 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
21132 [GRUB_LINKER_HAVE_INIT]: New function.
21133 (grub_emu_post_init): Likewise.
21134 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
21135 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
21136 * include/grub/cache.h (_mips): Include mips/cache.h.
21137 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
21138 LVM and RAID prototypes.
21139 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
21140 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
21143 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
21145 * util/grub-install.in: Don't try to verify core.img until after
21146 running grub-mkimage to create it.
21148 2010-09-10 Robert Millan <rmh@gnu.org>
21150 * util/grub.d/10_hurd.in: Add misc readability checks.
21151 * util/grub.d/10_kfreebsd.in: Likewise.
21152 * util/grub.d/10_linux.in: Likewise.
21154 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
21156 * util/grub-install.in: ${imgext} won't be defined here until the
21157 install branch is merged. For the meantime, only verify core.img on
21158 i386-pc and sparc64-ieee1275 platforms.
21160 2010-09-10 Robert Millan <rmh@gnu.org>
21162 Solaris support in grub_find_zpool_from_dir(). Thanks
21163 Seth Goldberg for referring to getextmntent() facility.
21165 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
21167 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
21169 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
21170 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
21171 method for finding zpool name.
21173 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
21175 grub-fstest needs the host and hostfs modules while other utilities
21176 actively require those modules to be absent, so grub-fstest needs
21177 its own initialisation and finalisation code.
21179 * Makefile.am (grub_fstest.pp): New target.
21180 (grub_fstest_init.lst): Likewise.
21181 (grub_fstest_init.c): Likewise.
21182 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
21184 2010-09-10 Robert Millan <rmh@gnu.org>
21186 * configure.ac: Check for `struct statfs.f_fstypename' and
21187 `struct statfs.f_mntfromname'.
21189 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
21190 kFreeBSD-specific code.
21192 2010-09-10 Robert Millan <rmh@gnu.org>
21194 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
21195 on ZFS. Now non-main filesystems are supported as / too.
21197 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
21199 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
21200 and grub-core/disk/host.c to ...
21201 (grub-fstest): ... here. Having the host disk implementation
21202 present confuses grub-probe and other utility programs.
21204 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
21205 when writing to a file, not when writing to stdout.
21207 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
21209 * tests/partmap_test.in: New test for partitions.
21210 * Makefile.util.def: Rules for new test.
21212 2010-09-09 Robert Millan <rmh@gnu.org>
21214 * util/grub-probe.c (probe): Fix a pair of unhandled error
21217 2010-09-09 Robert Millan <rmh@gnu.org>
21219 Basic Btrfs support (detection and UUID).
21221 * grub-core/fs/btrfs.c: New file.
21222 * Makefile.util.def (library): Register btrfs.c.
21223 * grub-core/Makefile.core.def: Likewise.
21225 2010-09-08 Robert Millan <rmh@gnu.org>
21227 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
21228 with (optional) parameters to specify device and relative path.
21229 * util/grub-install.in: Use is_path_readable_by_grub() to
21230 verify readability of a few critical files.
21231 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
21232 verify readability of grub.cfg.new.
21234 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21236 Split minix.mod into minix.mod and minix2.mod.
21238 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
21239 * grub-core/Makefile.core.def (minix2): New module.
21240 * grub-core/fs/minix.c: Use definitions instead of runtime version
21242 * grub-core/fs/minix2.c: New file.
21244 2010-09-08 Yves Blusseau <blusseau@zetam.org>
21246 Add new --boot-directory option to replace --root-directory
21248 * util/grub-install.in: Add new --boot-directory option
21249 * util/grub-reboot.in: Likewise.
21250 * util/grub-set-default.in: Likewise.
21252 2010-09-08 Yves Blusseau <blusseau@zetam.org>
21254 * util/grub-mkconfig.in: Use new variable.
21256 2010-09-08 Yves Blusseau <blusseau@zetam.org>
21258 * configure.ac: Define some useful variables.
21260 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21262 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21263 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
21264 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
21265 Use terminfo and don't use cursor-on/cursor-off unless it's known
21267 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
21268 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
21270 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
21272 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
21273 starts with "(,", fill the drive containing the loaded image in
21274 between those two characters, but expect that a full partition
21275 specification including partition map names will follow.
21277 2010-09-08 Robert Millan <rmh@gnu.org>
21279 * configure.ac: Remove `--enable-grub-fstest' option.
21280 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
21282 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
21283 `grub-fstest' instead of `grub-probe' for readability verification.
21284 * util/grub-probe.c (probe): Remove readability verification kludge.
21286 2010-09-08 Robert Millan <rmh@gnu.org>
21288 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
21289 initializing `GRUB_FS'.
21291 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
21293 Not command (!) support to GRUB script.
21295 * tests/grub_script_not.in: New test.
21296 * Makefile.util.def: Rules for new test.
21298 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21299 ! command as a special case.
21300 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
21302 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21304 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
21307 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21309 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
21311 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21313 * docs/grub.texi (Shell-like scripting): Documentation for break,
21314 continue, shift and return commands.
21316 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
21318 Rename CD-ROM to cd on BIOS.
21320 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
21322 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
21324 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21326 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
21327 * util/grub-probe.c (main): Likewise.
21328 * util/i386/pc/grub-setup.c (main): Likewise.
21329 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21330 Reported and debugged by: alexxy
21332 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21334 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
21337 2010-09-05 Jo Shields <directhex@apebox.org>
21339 * util/grub.d/30_os-prober.in: Add missing classes.
21341 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21343 * docs/grub.texi (Theme file format): Document new position format.
21345 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21347 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
21348 a table. Use @code instead of @verbatim.
21350 2010-09-05 Colin D Bennett <colin@gibibit.com>
21352 Gfxmenu documentation.
21354 * docs/grub.texi (Theme file format): New chapter.
21356 2010-09-05 Szymon Janc <szymon@janc.net.pl>
21358 * grub-core/Makefile.core.def (xzio): New module.
21359 * grub-core/io/xzio.c: New file.
21360 * grub-core/lib/xzembed/xz.h: New file (from xembed).
21361 * grub-core/lib/xzembed/xz_config.h: Likewise.
21362 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
21363 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
21364 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
21365 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
21366 * grub-core/lib/xzembed/xz_private.h: Likewise.
21367 * grub-core/lib/xzembed/xz_stream.h: Likewise.
21368 * include/grub/file.h (grub_file_filter_id): New compression filter
21369 GRUB_FILE_FILTER_XZIO.
21371 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21373 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
21374 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
21377 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21379 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
21380 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
21382 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21384 Uncompressed checksum support.
21386 * grub-core/commands/hashsum.c (options): Add option --uncompress.
21387 (check_list): New parameter uncompress.
21388 (grub_cmd_hashsum): Handle --uncompress.
21390 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21392 Reintroduce testload.
21394 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
21396 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
21397 (GRUB_MOD_INIT): New function.
21398 (GRUB_MOD_FINI): Likewise.
21399 * grub-core/Makefile.core.def (testload): New module.
21401 2010-09-05 Szymon Janc <szymon@janc.net.pl>
21403 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
21404 (uint8_t): New type.
21405 (uint16_t): Likewise.
21406 (uint32_t): Likewise.
21407 (uint64_t): Likewise.
21409 2010-09-05 Szymon Janc <szymon@janc.net.pl>
21411 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
21413 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21415 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
21417 (grub_gzfile_open): Removed. All users updated.
21418 (GRUB_MOD_INIT): New function.
21419 (GRUB_MOD_FINI): Likewise.
21420 * grub-core/kern/file.c (grub_file_filters_all): New variable.
21421 (grub_file_filters_enabled): Likewise.
21422 (grub_file_open): Handle filters.
21423 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
21424 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
21425 * include/grub/file.h (grub_file_filter_id_t): New type.
21426 (grub_file_filter_t): Likewise.
21427 (grub_file_filters_all): New extern variable.
21428 (grub_file_filters_enabled): Likewise.
21429 (grub_file_filter_register): New inline function.
21430 (grub_file_filter_unregister): Likewise.
21431 (grub_file_filter_disable): Likewise.
21432 (grub_file_filter_disable_compression): Likewise.
21433 * include/grub/gzio.h: Removed.
21435 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21437 Filename expansion support for wildcards in GRUB script.
21439 * tests/grub_script_expansion.in: New test.
21440 * Makefile.util.def: Rule for new test.
21442 * grub-core/commands/wildcard.c: New file, implements filename
21443 expansion support for GRUB script.
21444 * grub-core/Makefile.core.def: Rule update for regexp.mod.
21445 * grub-core/script/argv.c: Cosmetic changes.
21446 * grub-core/script/execute.c (grub_script_arglist_to_argv):
21447 Refactored to perform wildcard expansion on arguments.
21448 * include/grub/script_sh.h (grub_script_wildcard_translator): New
21451 * tests/util/grub-shell.in: Fix quoting for read input.
21453 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21455 Support for updating environment variables with matched substrings
21458 * tests/grub_cmd_regexp.in: New test.
21459 * Makefile.util.def: Rule for new test.
21461 * grub-core/commands/regexp.c: New option -s to update environment
21462 variables with regexp matches.
21464 2010-09-04 Szymon Janc <szymon@janc.net.pl>
21466 * include/grub/file.h (grub_file): New member not_easly_seekable.
21467 (grub_file_seekable): New inline function.
21468 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
21470 (grub_gzio_open): Set not_easly_seekable.
21471 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
21472 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
21474 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21476 Support for options to appear multiple times on cmdline.
21478 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
21479 * grub-core/commands/extcmd.c: Support for repeatable option.
21480 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
21481 repeatable option support.
21483 Refactor menuentry into a regular command.
21485 * grub-core/commands/menuentry.c: New file, menuentry command
21487 * grub-core/Makefile.core.def: Rule update for normal.mod.
21488 * grub-core/normal/main.c: Moved menuentry creation to
21489 grub-core/commands/menuentry.c.
21490 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
21491 (grub_menu_execute_entry_real): Removed.
21492 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
21494 (grub_script_execute_menuentry): Removed.
21495 * grub-core/script/parser.y (menuentry): Removed.
21496 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
21497 * grub-core/script/yylex.l (menuentry): Removed.
21498 * include/grub/menu.h (grub_menu_init): New prototype.
21499 (grub_menu_fini): New prototype.
21500 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
21501 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
21502 (grub_script_execute_sourcecode): New prototype.
21504 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21506 "return" command for GRUB script functions.
21508 * tests/grub_script_return.in: New test.
21509 * Makefile.util.def: Rules for new test.
21511 * grub-core/script/execute.c (grub_script_return): New function.
21512 * grub-core/script/main.c: Register/unregister return commaond.
21513 * include/grub/script_sh.h (grub_script_return): New prototype.
21515 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21517 "setparams" command to update positional parameters.
21519 * tests/grub_script_setparams.in: New test.
21520 * Makefile.util.def: Rules for new test.
21522 * grub-core/script/argv.c (grub_script_argv_make): New function.
21523 * grub-core/script/execute.c (replace_scope): New function.
21524 (grub_script_setparams): New function.
21525 * grub-core/script/lexer.c: Remove unused variables.
21526 * grub-core/script/main.c: Register/unregister setparams command.
21527 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
21528 (grub_script_setparams): New prototype.
21530 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21532 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
21535 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21537 Support for passing block of commands as an argument to extcmds.
21539 * Makefile.util.def: Rules for new test.
21540 * tests/grub_script_blockarg.in: New test.
21541 * grub-core/tests/test_blockarg.c: New file, block argument
21542 command used in the test.
21544 * include/grub/extcmd.h (grub_extcmd_context): New struct.
21545 (grub_register_extcmd_prio): New function prototype.
21546 (grub_extcmd_dispatcher): New function prototype.
21547 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
21549 * include/grub/script_sh.h (struct grub_script): New members
21550 `children', `next_siblings' and `refcnt' for block arguments and
21551 reference counting.
21552 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
21553 (grub_script_arg): New member `script' for block argument.
21554 (grub_script_argv): New member `script' for block argument.
21555 (grub_parser_param): New member `scripts' for block argument.
21556 (grub_script_mem_free): New extern function prototype.
21557 (grub_script_ref): New function prototype.
21558 (grub_script_unref): New function prototype.
21560 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
21561 extcmd form to support block arguments.
21562 * grub-core/script/argv.c: Block arguments support.
21563 * grub-core/script/execute.c: Likewise.
21564 * grub-core/script/lexer.c: Likewise.
21565 * grub-core/script/main.c: Likewise.
21566 * grub-core/script/script.c: Likewise.
21567 * grub-core/script/parser.y: Likewise. New `block' and `block0'
21570 * grub-core/commands/acpi.c: Update extcmd implementations with
21571 grub_extcmd_context_t.
21572 * grub-core/commands/cat.c: Likewise.
21573 * grub-core/commands/echo.c: Likewise.
21574 * grub-core/commands/extcmd.c: Likewise.
21575 * grub-core/commands/hashsum.c: Likewise.
21576 * grub-core/commands/hdparm.c: Likewise.
21577 * grub-core/commands/help.c: Likewise.
21578 * grub-core/commands/hexdump.c: Likewise.
21579 * grub-core/commands/i386/cpuid.c: Likewise.
21580 * grub-core/commands/i386/pc/drivemap.c: Likewise.
21581 * grub-core/commands/i386/pc/halt.c: Likewise.
21582 * grub-core/commands/i386/pc/sendkey.c: Likewise.
21583 * grub-core/commands/iorw.c: Likewise.
21584 * grub-core/commands/keystatus.c: Likewise.
21585 * grub-core/commands/loadenv.c: Likewise.
21586 * grub-core/commands/ls.c: Likewise.
21587 * grub-core/commands/lspci.c: Likewise.
21588 * grub-core/commands/memrw.c: Likewise.
21589 * grub-core/commands/probe.c: Likewise.
21590 * grub-core/commands/search_wrap.c: Likewise.
21591 * grub-core/commands/setpci.c: Likewise.
21592 * grub-core/commands/sleep.c: Likewise.
21593 * grub-core/disk/loopback.c: Likewise.
21594 * grub-core/hello/hello.c: Likewise.
21595 * grub-core/loader/i386/bsd.c: Likewise.
21596 * grub-core/loader/xnu.c: Likewise.
21597 * grub-core/term/gfxterm.c: Likewise.
21598 * grub-core/term/serial.c: Likewise.
21599 * grub-core/tests/lib/functional_test.c: Likewise.
21601 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21603 Multi-line quoted strings support.
21605 * grub-core/script/lexer.c (append_newline): Removed.
21606 (grub_script_lexer_yywrap): Refactored.
21607 (grub_script_lexer_init): Refactored.
21608 * grub-core/script/yylex.l (yywrap): New function.
21609 (grub_lexer_resplit): New function.
21610 (grub_lexer_unput): New function.
21611 * include/grub/script_sh.h (grub_lexer_param): New members, unput
21613 * tests/grub_script_echo1.in: Added few more testcases.
21615 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21617 * grub-core/kern/misc.c: Don't add abort alias in utils.
21618 Reported by: echoline.
21620 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
21622 Add missing files into "make dist" tarball for other platforms.
21624 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
21625 * conf/Makefile.common (dist_noinst_DATA): New variable.
21626 * conf/Makefile.extra-dist: Added missing make dist files.
21627 * grub-core/Makefile.core.def: Likewise.
21629 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21631 Compress grub_prefix.
21633 * grub-core/boot/i386/pc/lnxboot.S: Use
21634 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
21635 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
21636 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
21637 GRUB_MACHINE_PREFIX_END. All users updated.
21638 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
21639 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
21641 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
21642 * util/grub-mkimage.c (image_target_desc): Change data_end to
21643 prefix_end. All users updated.
21645 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21647 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
21649 (grub_openbsd_boot): Likewise.
21650 (grub_netbsd_boot): Likewise.
21651 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
21652 (grub_xnu_boot): Likewise.
21654 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21656 * configure.ac: Clean LIBS variable after tests.
21658 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
21660 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
21662 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21664 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
21665 echo if libdevmapper will be used.
21667 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
21669 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
21670 constant for the same file.
21672 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21674 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
21676 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
21678 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
21681 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
21683 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
21684 required by the boot protocol.
21686 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
21687 ebp and edi members.
21688 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
21689 state.ebp and state.edi.
21690 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
21691 %ebp and %edi according to grub_relocator32_ebp and
21692 grub_relocator32_edi respectively.
21693 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
21696 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21698 Add i386-pc-pxe image target.
21700 * util/grub-mkimage.c (image_target_desc): New enum value
21702 (image_targets): New target i386-pc-pxe.
21703 (generate_image): Handle i386-pc-pxe image.
21705 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21709 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
21710 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
21712 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
21713 (grub_pxe_pxenv): Correct type.
21715 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
21717 * NEWS: Document most of the important changes since 1.98.
21719 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
21721 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
21722 generated manual page) a little.
21724 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
21726 * docs/grub.texi: Add myself as an author.
21728 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21730 * Makefile.util.def (libgrub.a): Add missing sunpc.
21731 Reported by: Seth Goldberg.
21733 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21735 Interrupt wrapping and code simplifications.
21737 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
21738 x86_noieee1275 which are functionaly equivalent in this case.
21739 (grub-install): Make source on each platform explicit. Enable on
21741 * gentpl.py (x86_efi_pc): Removed group.
21742 (x86_noefi): Likewise.
21743 (i386_noefi): Likewise.
21744 (x86_noieee1275): Likewise.
21745 (i386_noieee1275): Likewise.
21746 (i386_noefi_noieee1275): Likewise.
21747 (i386_pc_qemu_coreboot): Likewise.
21748 (i386_coreboot_multiboot): Likewise.
21749 (i386_pc_coreboot_multiboot_qemu): Likewise.
21750 (x86_noefi_mips): Likewise.
21751 (noieee1275): Likewise.
21752 (ieee1275_mips): Likewise.
21753 (noemu_noieee1275): Likewise.
21756 (videoinkernel): Likewise.
21757 (videomodules): Likewise.
21758 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
21759 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
21760 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
21761 include/grub/loader.h, include/grub/msdos_partition.h,
21762 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
21763 include/grub/machine/console.h, include/grub/machine/vga.h,
21764 include/grub/machine/vbe.h, include/grub/machine/init.h,
21765 include/grub/machine/kernel.h, include/grub/cpu/time.h,
21766 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
21767 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
21768 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
21769 * grub-core/Makefile.core.def (kernel): Explicit the source for
21770 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
21771 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
21772 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
21773 Use videoinkernel tag.
21774 (usb): Enable on all usb.
21775 (usbserial_common): Likewise.
21776 (usbserial_pl2303): Likewise.
21777 (usbserial_ftdi): Likewise.
21778 (uhci): Enable on all x86.
21779 (ohci): Enable on all pci.
21780 (cmostest): Enable on all CMOS.
21781 (acpi): Include commands/acpi.c on all platforms.
21782 (halt): Add relevant lib/*/halt.c.
21783 (hdparm): Enable on all pci.
21785 (usbtest): Enable on all usb.
21786 (ata): Enable on all pci.
21787 (ata_pthru): Likewise.
21788 (usbms): Enable on all usb.
21789 (usb_keyboard): Likewise.
21790 (font): Use tag videomodules.
21792 (datetime): Use tag cmos. Enable on all noemu.
21793 (mmap): Use tags common and x86.
21794 (gfxterm): Use tag videomodules.
21795 (bitmap): Likewise.
21796 (bitmap_scale): Likewise.
21797 (video_fb): Likewise.
21799 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21800 adjust padding accordingly. All users updated.
21801 (grub_ohci_transaction): Fix bad format specification.
21802 (GRUB_MOD_INIT): Add asserts for struct size.
21803 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21804 (grub_alloc_td): Likewise.
21805 (grub_free_queue): Likewise.
21806 (grub_uhci_transfer): Likewise.
21807 (grub_uhci_transaction): Fix bad format specification.
21808 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21809 (grub_usb_bulk_readwrite): Likewise.
21810 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21811 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21813 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21815 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21816 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21817 Transformed into C.
21818 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21819 Moved from here ...
21820 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21821 ... here. Transformed into C. Made static.
21822 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21823 Moved from here ...
21824 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21825 ... here. Transformed into C. Made static.
21826 * grub-core/kern/i386/pc/startup.S
21827 (grub_biosdisk_check_int13_extensions): Moved from here ...
21828 * grub-core/disk/i386/pc/biosdisk.c
21829 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21831 * grub-core/kern/i386/pc/startup.S
21832 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21833 * grub-core/disk/i386/pc/biosdisk.c
21834 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21835 Transformed into C. Made static.
21836 * grub-core/kern/i386/pc/startup.S
21837 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21838 * grub-core/disk/i386/pc/biosdisk.c
21839 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21840 Transformed into C. Made static.
21841 * grub-core/kern/i386/pc/startup.S
21842 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21843 * grub-core/disk/i386/pc/biosdisk.c
21844 (grub_biosdisk_get_diskinfo_standard): ... here.
21845 Transformed into C. Made static.
21846 * grub-core/kern/i386/pc/startup.S
21847 (grub_biosdisk_get_num_floppies): Moved from here ...
21848 * grub-core/disk/i386/pc/biosdisk.c
21849 (grub_biosdisk_get_num_floppies): ... here.
21850 Transformed into C. Made static.
21851 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21853 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21854 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21855 Transformed into C. Made static.
21856 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21857 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21858 Transformed into C. Made static.
21859 * grub-core/kern/i386/ieee1275/init.c: Removed.
21860 * grub-core/kern/i386/misc.S: Likewise.
21861 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21862 Splitted from here ...
21863 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21864 Transformed into C. Made static. All users updated.
21865 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21866 Transformed into C. Made static. All users updated.
21867 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21869 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21870 Transformed into C. Made static. All users updated.
21871 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21873 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21874 Transformed into C. Made static. All users updated.
21875 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21876 Removed (replaced by C version).
21877 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21879 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21880 Transformed into C. Made static.
21881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21884 ... here. Transformed into C.
21885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21888 ... here. Transformed into C.
21889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21892 ... here. Transformed into C. Made static.
21893 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21895 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21896 ... here. Transformed into C.
21897 * grub-core/kern/i386/pc/startup.S
21898 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21899 * grub-core/video/i386/pc/vbe.c
21900 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
21901 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21903 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21904 ... here. Transformed into C.
21905 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21907 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21908 ... here. Transformed into C.
21909 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21911 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21912 ... here. Transformed into C.
21913 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21915 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21916 ... here. Transformed into C.
21917 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21919 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
21920 ... here. Transformed into C. Made static.
21921 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
21923 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
21924 ... here. Transformed into C. Made static.
21925 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
21927 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
21928 ... here. Transformed into C. Made static.
21929 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
21930 pxe_rm_entry as third argument.
21931 (grub_bios_interrupt): New function.
21932 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
21933 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
21934 of calling grub_stop.
21935 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
21936 * grub-core/lib/efi/halt.c (grub_halt): ...here.
21937 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
21938 * grub-core/lib/emu/halt.c (grub_halt): ... here.
21939 * grub-core/lib/i386/halt.c: Moved from here ...
21940 * grub-core/lib/i386/halt.c: ... here.
21941 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
21942 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
21943 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
21945 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
21946 * include/grub/i386/coreboot/init.h: Removed.
21947 * include/grub/i386/multiboot/init.h: Likewise.
21948 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
21949 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
21950 * include/grub/i386/pc/int.h: New file.
21951 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
21952 (grub_pxe_scan): Removed.
21953 (grub_pxe_call): Update prototype.
21954 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
21956 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
21957 * include/grub/i386/qemu/init.h: Removed.
21958 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
21960 (grub_halt): Likewise.
21961 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
21962 (grub_reboot): Likewise.
21963 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
21964 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21965 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
21967 2010-08-30 Robert Millan <rmh@gnu.org>
21969 * NEWS: Document addition of ZFS support in `grub-install' and
21972 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
21974 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
21977 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21979 Remove leftover embedding of font objects.
21981 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21982 * util/grub-install.in (font): Removed.
21983 * util/grub-mkimage.c (generate_image): Remove font support. All users
21986 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21988 Remove leftover embedding of font objects.
21990 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21991 * util/grub-install.in (font): Removed.
21992 * util/grub-mkimage.c (generate_image): Remove font support. All users
21995 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21997 * docs/grub.texi (Network): Fix reference to pxe_blksize.
21998 Reported by: Ian Turner
22000 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22002 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
22003 timeout to avoid indefinite boot stalling.
22005 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22007 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
22008 (grub_env_write_color_highlight): Likewise.
22010 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22012 * grub-core/normal/term.c (print_more): Return to normal and not
22013 to standard state after printing "---MORE---".
22015 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22017 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
22018 Mask out the bit 0x80 since it has other meaning that specifiing color.
22020 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22022 New relocator. Allows for more kernel support and more straightforward
22025 * Makefile.am (BOOTTARGET): New variable.
22026 (QEMU32): Likewise.
22027 (linux.init.x86_64): New target.
22028 (linux.init.i386): Likewise.
22029 (multiboot.elf): Likewise.
22030 (kfreebsd.elf): Likewise.
22031 (kfreebsd.aout): Likewise.
22032 (pc-chainloader.elf): Likewise.
22033 (pc-chainloader.bin): Likewise.
22034 (ntldr.elf): Likewise.
22035 (ntldr.bin): Likewise.
22036 (multiboot2.elf): Likewise.
22037 (kfreebsd.init.x86_64): Likewise.
22038 (kfreebsd.init.i386): Likewise.
22039 (knetbsd.init.i386): Likewise.
22040 (kopenbsd.init.i386): Likewise.
22041 (knetbsd.init.x86_64): Likewise.
22042 (kopenbsd.init.x86_64): Likewise.
22043 (linux-initramfs.i386): Likewise.
22044 (linux-initramfs.x86_64): Likewise.
22045 (kfreebsd-mfsroot.i386.img): Likewise.
22046 (knetbsd.image.i386): Likewise.
22047 (kopenbsd.image.i386): Likewise.
22048 (kopenbsd.image.x86_64): Likewise.
22049 (knetbsd.miniroot-image.i386.img): Likewise.
22050 (kfreebsd-mfsroot.x86_64.img): Likewise.
22051 (knetbsd.image.x86_64): Likewise.
22052 (knetbsd.miniroot-image.x86_64.img): Likewise.
22053 (kfreebsd-mfsroot.i386.gz): Likewise.
22054 (bootcheck-kfreebsd-i386): Likewise.
22055 (kfreebsd-mfsroot.x86_64.gz): Likewise.
22056 (bootcheck-kfreebsd-x86_64): Likewise.
22057 (knetbsd.miniroot-image.i386.gz): Likewise.
22058 (bootcheck-knetbsd-i386): Likewise.
22059 (bootcheck-kopenbsd-i386): Likewise.
22060 (bootcheck-kopenbsd-x86_64): Likewise.
22061 (knetbsd.miniroot-image.x86_64.gz): Likewise.
22062 (bootcheck-knetbsd-x86_64): Likewise.
22063 (bootcheck-linux-i386): Likewise.
22064 (bootcheck-linux-x86_64): Likewise.
22065 (bootcheck-linux16-i386): Likewise.
22066 (bootcheck-linux16-x86_64): Likewise.
22067 (bootcheck-multiboot): Likewise.
22068 (bootcheck-multiboot2): Likewise.
22069 (bootcheck-kfreebsd-aout): Likewise.
22070 (bootcheck-pc-chainloader): Likewise.
22071 (bootcheck-ntldr): Likewise.
22072 (CLEANFILES): Add new targets.
22073 (BOOTCHECKS): New variable.
22074 (.PHONY): Add bootchecks.
22075 (SUCCESSFUL_BOOT_STRING): New variable.
22076 (BOOTCHECK_TIMEOUT): Likewise.
22077 (bootcheck): New target
22078 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
22079 * configure.ac: Correct efiemu excuse.
22080 * docs/grub.texi (Supported kernels): New chapter.
22081 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
22082 include/grub/mm_private.h. Simplify inclusion of
22083 include/grub/boot.h, include/grub/loader.h
22084 and include/grub/msdos_partition.h
22085 (KERNEL_HEADER_FILES) [i386_coreboot]:
22086 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
22087 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
22088 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
22089 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
22090 include/grub/machine/loader.h.
22091 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
22092 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
22094 (pci.mod): Enable on i386-multiboot.
22095 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
22096 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
22098 (relocator.mod): Rewritten.
22099 (aout.mod): Enable on all x86.
22100 (bsd.mod): Likewise.
22101 (ntldr.mod): New module.
22102 (linux.mod): Use loader/i386/linux.c on all x86.
22103 (xnu.mod): Enable on all x86.
22104 (vga_text.mod): disable on EFI and QEMU.
22105 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
22106 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
22107 * grub-core/efiemu/loadcore.c: Likewise.
22108 * grub-core/efiemu/main.c: Likewise.
22109 (grub_efiemu_exit_boot_services): Removed.
22110 (grub_efiemu_finish_boot_services): Likewise.
22111 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
22113 * grub-core/efiemu/i386/nocfgtables.c: New file.
22114 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
22115 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
22116 (grub_efi_finish_boot_services): Moved from here ...
22117 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
22118 Fille finish memory map and related data.
22119 (finish_mmap_buf): New variable.
22120 (grub_efi_uintn_t finish_mmap_size): Likewise.
22121 (grub_efi_uintn_t finish_key): Likewise.
22122 (grub_efi_uintn_t finish_desc_size): Likewise.
22123 (grub_efi_uint32_t finish_desc_version): Likewise.
22124 (grub_efi_is_finished): Likewise.
22125 (grub_efi_get_memory_map): Use saved memory map if EFI is already
22127 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
22128 (grub_elf64_phdr_iterate): Likewise.
22129 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
22130 (grub_os_area_size): Likewise.
22131 (grub_machine_init): Don't reserve os area.
22132 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
22133 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
22134 * grub-core/kern/i386/loader.S: Removed.
22135 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
22136 (grub_os_area_size): Likewise.
22137 (grub_machine_init): Don't reserve os area.
22138 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
22139 Don't call grub_dl_unload_all.
22140 Don't include loader.S.
22141 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
22142 Declare the memory after _end as available.
22143 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
22144 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
22145 (GRUB_MM_ALLOC_MAGIC): Moved from here...
22146 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
22147 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
22148 * include/grub/mm_private.h (grub_mm_header): ... here.
22149 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
22150 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
22151 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
22152 (grub_mm_region): ..here. Removed addr. Added pre_size.
22154 * grub-core/kern/mm.c (base): Renamed to ...
22155 (grub_mm_base): ... this. Made global.
22156 (grub_real_malloc): Alloc from end of region.
22157 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
22158 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
22159 * grub-core/kern/powerpc/cache_flush.S: ... here.
22160 * grub-core/lib/efi/relocator.c: New file.
22161 * grub-core/lib/i386/relocator.c: Rewritten.
22162 * grub-core/lib/i386/relocator16.S: New file.
22163 * grub-core/lib/i386/relocator32.S: Likewise.
22164 * grub-core/lib/i386/relocator64.S: Likewise.
22165 * grub-core/lib/i386/relocator_asm.S: Rewritten.
22166 * grub-core/lib/i386/relocator_common.S: New file.
22167 * grub-core/lib/ieee1275/relocator.c: Likewise.
22168 * grub-core/lib/mips/relocator.c: Rewritten.
22169 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
22170 stylistic adjustments.
22171 * grub-core/lib/powerpc/relocator.c: New file.
22172 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
22173 * grub-core/lib/relocator.c: Rewritten.
22174 * grub-core/lib/x86_64/relocator_asm.S: New file.
22175 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
22176 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
22177 (bsd_tag): New struct.
22178 (tags): New variable.
22179 (tags_last): Likewise.
22180 (netbsd_module): New struct.
22181 (netbsd_mods): New variable.
22182 (netbsd_mods_last): Likewise.
22183 (openbsd_opts): New parameter "serial".
22184 (OPENBSD_SERIAL_ARG): New definition.
22185 (netbsd_opts): New parameter "serial".
22186 (NETBSD_SERIAL_ARG): New definition.
22187 (grub_freebsd_add_meta): Reorganised into ...
22188 (grub_bsd_add_meta): ...this. All users updated.
22189 (grub_freebsd_add_mmap): Reorganised into ...
22190 (generate_e820_mmap): ...this...
22191 (grub_bsd_add_mmap): ...and this. All users updated.
22192 (grub_freebsd_list_modules): Use tags.
22193 (grub_netbsd_add_meta_module): New function.
22194 (grub_netbsd_list_modules): Likewise.
22195 (grub_freebsd_boot): Use relocator and finish EFI.
22196 (grub_openbsd_boot): Likewise.
22197 (grub_netbsd_setup_video): New function.
22198 (grub_netbsd_add_modules): Likewise.
22199 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
22201 (grub_bsd_unload): Unload tags.
22202 (grub_bsd_load_aout): Use relocator.
22203 (grub_bsd_elf32_size_hook): New function.
22204 (grub_bsd_elf32_hook): Use relocator.
22205 (grub_bsd_elf64_size_hook): New function.
22206 (grub_bsd_elf64_hook): Use relocator.
22207 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
22208 (grub_bsd_load): Zero-out openbsd_ramdisk.
22209 (grub_bsd_load): Use relocator.
22210 (grub_cmd_openbsd): Support serial.
22211 (grub_cmd_netbsd): Support modules.
22212 (grub_cmd_freebsd_module): Use relocator.
22213 (grub_netbsd_module_load): New function.
22214 (grub_cmd_netbsd_module): Likewise.
22215 (grub_cmd_openbsd_ramdisk): Likewise.
22216 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
22218 (GRUB_MOD_FINI): Unregister new commands.
22219 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
22220 (grub_freebsd_load_elfmodule_obj): Use relocator.
22221 (grub_freebsd_load_elfmodule): Likewise.
22222 (grub_freebsd_load_elf_meta): Likewise.
22223 (grub_netbsd_load_elf_meta): New function.
22224 (grub_openbsd_find_ramdisk): Likewise.
22225 * grub-core/loader/i386/bsd_helper.S: Removed.
22226 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
22227 * grub-core/loader/i386/bsd_trampoline.S: Removed.
22228 * grub-core/loader/i386/efi/linux.c: Likewise.
22229 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
22230 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
22231 (DEFAULT_VIDEO_MODE): Likewise.
22232 (real_mode_target): New variable.
22233 (prot_mode_target): Likewise.
22234 (initrd_mem_target): Likewise.
22235 (relocator): Likewise.
22236 (efi_mmap_buf): Likewise.
22237 (efi_mmap_size): Likewise.
22238 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
22239 (free_pages): Use relocator.
22240 (allocate_pages): Account for efi_mmap and use relocator. Return error.
22241 (grub_linux_setup_video): Return error.
22242 (grub_linux_trampoline_start): Removed.
22243 (grub_linux_trampoline_end): Likewise.
22244 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
22245 andd video parameters depending on firmware.
22246 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
22247 [GRUB_MACHINE_EFI]: Pass EFI parameters.
22248 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
22249 (grub_cmd_initrd): Use relocator.
22250 * grub-core/loader/i386/linux_trampoline.S: Removed.
22251 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
22252 (elf_sec_entsize): Likewise.
22253 (elf_sec_shstrndx): Likewise.
22254 (elf_sections): Likewise.
22255 (grub_multiboot_load): Use relocator.
22256 (grub_multiboot_get_mbi_size): Account for sections.
22257 (grub_multiboot_make_mbi): Use relocator and support sections.
22258 (grub_multiboot_add_elfsyms): New function.
22259 (grub_multiboot_free_mbi): Free sections.
22260 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
22261 (grub_linux_real_target): Likewise.
22262 (grub_linux_real_chunk): Likewise.
22263 (grub_linux16_prot_size): Likewise.
22264 (grub_linux16_boot): Use relocator.
22265 (grub_linux_unload): Unload relocator.
22266 (grub_cmd_linux): Use relocator.
22267 (grub_cmd_initrd): Likewise.
22268 * grub-core/loader/i386/pc/ntldr.c: New file.
22269 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
22270 Don't try to guess CPU frequency.
22271 (grub_xnu_set_video): Stretch bitmap.
22272 (grub_xnu_boot): Use relocator.
22273 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
22274 (grub_linux_unload): Free relocator.
22275 (grub_linux_load32): Use relocator.
22276 (grub_linux_load64): Likewise.
22277 (grub_cmd_initrd): Likewise.
22278 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
22279 (grub_multiboot_unload): Unload relocator.
22280 (grub_cmd_multiboot): Use relocator.
22281 (grub_cmd_module): Likewise.
22282 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
22283 Use relocator and support sections.
22284 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
22285 (elf_sec_entsize): Likewise.
22286 (elf_sec_shstrndx): Likewise.
22287 (elf_sections): Likewise.
22288 (grub_multiboot_load): Use relocator.
22289 (grub_multiboot_get_mbi_size): Account for sections.
22290 (grub_multiboot_make_mbi): Use relocator and support sections.
22291 (grub_multiboot_add_elfsyms): New function.
22292 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
22293 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
22294 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
22295 Prototype changed. All users updated.
22296 (grub_xnu_align_heap): Simplified.
22297 (grub_xnu_writetree_toheap): Likewise.
22298 (grub_xnu_unload): Unload relocator.
22299 (grub_cmd_xnu_kernel): Use relocator.
22300 (grub_cmd_xnu_kernel64): Likewise.
22301 (grub_xnu_register_memory): Simplified.
22302 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
22303 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
22305 (grub_console_checkkey): Likewise.
22306 (grub_console_getkey): Likewise.
22307 (grub_console_getwh): Likewise.
22308 (grub_console_getxy): Likewise.
22309 (grub_console_gotoxy): Likewise.
22310 (grub_console_cls): Likewise.
22311 (grub_console_setcolorstate): Likewise.
22312 (grub_console_setcursor): Likewise.
22313 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
22314 * grub-core/tests/boot/kbsd.init-i386.S: New file.
22315 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
22316 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
22317 * grub-core/tests/boot/kernel-8086.S: Likewise.
22318 * grub-core/tests/boot/kernel-i386.S: Likewise.
22319 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
22320 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
22321 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
22322 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
22323 * grub-core/tests/boot/knetbsd.cfg: Likewise.
22324 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
22325 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
22326 * grub-core/tests/boot/linux.cfg: Likewise.
22327 * grub-core/tests/boot/linux.init-i386.S: Likewise.
22328 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
22329 * grub-core/tests/boot/linux16.cfg: Likewise.
22330 * grub-core/tests/boot/multiboot.cfg: Likewise.
22331 * grub-core/tests/boot/multiboot2.cfg: Likewise.
22332 * grub-core/tests/boot/ntldr.cfg: Likewise.
22333 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
22334 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
22335 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
22337 * include/grub/dl.h (grub_dl_unload_all): Removed.
22338 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
22339 (grub_efi_finish_boot_services): Change prototype.
22340 (grub_efi_is_finished): New variable.
22341 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
22343 (grub_efiemu_finish_boot_services): Removed.
22344 (grub_machine_efiemu_init_tables): New prototype.
22345 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
22346 (grub_elf64_phdr_iterate): Likewise.
22347 * include/grub/i386/bsd.h: Include relocator.h.
22348 (freebsd_tag_header): New struct.
22349 (grub_openbsd_bios_mmap): Removed.
22350 (grub_unix_real_boot): Removed.
22351 (grub_freebsd_load_elfmodule32): Changed prototype.
22352 (grub_freebsd_load_elfmodule_obj64): Likewise.
22353 (grub_freebsd_load_elf_meta32): Likewise.
22354 (grub_freebsd_load_elf_meta64): Likewise.
22355 (grub_freebsd_add_meta): Removed.
22356 (grub_netbsd_load_elf_meta32): New prototype.
22357 (grub_netbsd_load_elf_meta64): Likewise.
22358 (grub_bsd_add_meta): Likewise.
22359 (grub_openbsd_ramdisk_descriptor): New struct.
22360 (grub_openbsd_find_ramdisk32): New prototype.
22361 (grub_openbsd_find_ramdisk64): Likewise.
22362 * include/grub/i386/coreboot/loader.h: Removed.
22363 * include/grub/i386/efi/loader.h: Likewise.
22364 * include/grub/i386/ieee1275/loader.h: Likewise.
22365 * include/grub/i386/linux.h (linux_kernel_header): Change void *
22367 * include/grub/i386/loader.h: Removed.
22368 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
22370 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
22371 (grub_phys_addr_t): New type.
22372 (grub_vtop): New inline function.
22373 (grub_map_memory): Likewise.
22374 (grub_unmap_memory): Likewise.
22375 * include/grub/i386/multiboot/loader.h: Removed.
22376 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
22377 (NETBSD_BTINFO_CONSOLE): New definition.
22378 (NETBSD_BTINFO_SYMTAB): Likewise.
22379 (NETBSD_BTINFO_MODULES): Likewise.
22380 (NETBSD_BTINFO_FRAMEBUF): Likewise.
22381 (grub_netbsd_bootinfo): New struct.
22382 (grub_netbsd_btinfo_common): Use explicit bitsize.
22383 (grub_netbsd_btinfo_mmap_entry): Removed.
22384 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
22385 (grub_netbsd_btinfo_bootdisk): New struct.
22386 (grub_netbsd_btinfo_symtab): Likewise.
22387 (grub_netbsd_btinfo_serial): Likewise.
22388 (grub_netbsd_btinfo_modules): Likewise.
22389 (grub_netbsd_btinfo_framebuf): Likewise.
22390 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
22391 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
22393 (grub_openbsd_bootargs): Use explicit bitsize.
22394 (grub_openbsd_bootarg_console): New struct.
22395 (GRUB_OPENBSD_COM_MAJOR): New definition.
22396 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
22397 * include/grub/i386/pc/efiemu.h: Removed.
22398 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
22399 * include/grub/i386/qemu/loader.h: Removed.
22400 * include/grub/i386/relocator.h: Rewritten.
22401 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
22402 * include/grub/mips/memory.h: New file.
22403 * include/grub/mips/multiboot.h: Rewritten.
22404 * include/grub/mips/relocator.h: Rewritten.
22405 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
22406 (grub_vtop): New function.
22407 (grub_map_memory): Likewise.
22408 (grub_unmap_memory): Likewise.
22409 * include/grub/misc.h (ALIGN_DOWN): New definition.
22410 * include/grub/mm.h (grub_mm_check_real): New proto.
22411 (GRUB_MM_CHECK): New definition.
22412 * include/grub/mm_private.h: New file.
22413 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
22414 (grub_multiboot_get_mbi_size): Removed.
22415 (grub_multiboot_make_mbi): Change prottype.
22416 (grub_multiboot_set_accepts_video): New proto.
22417 (grub_multiboot_add_elfsyms): Likewise.
22418 (grub_multiboot_payload_eip): New variable.
22419 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
22421 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
22423 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
22424 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
22425 * include/grub/powerpc/ieee1275/loader.h: Removed.
22426 * include/grub/powerpc/memory.h: New file.
22427 * include/grub/powerpc/relocator.h: Likewise.
22428 * include/grub/relocator.h: Likewise.
22429 * include/grub/relocator_private.h: Likewise.
22430 * include/grub/sparc64/ieee1275/loader.h: Removed.
22431 * include/grub/x86_64/memory.h: New file.
22432 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
22433 (grub_xnu_heap_malloc): Likewise.
22434 (grub_xnu_heap_real_start): Removed.
22435 (grub_xnu_heap_start): Likewise.
22436 (grub_xnu_relocator): New variable.
22437 (grub_xnu_heap_target_start): Likewise.
22438 * tests/util/grub-shell.in: Support non-pc.
22439 * util/grub-mkimage.c (image_targets): Fix multiboot target.
22441 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22443 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
22445 (grub_bidi_logical_to_visual): Check that malloc succeded.
22446 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
22448 (grub_xputs_normal): Likewise.
22450 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22452 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
22455 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22457 * grub-core/efiemu/runtime/efiemu.sh: Removed.
22459 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22461 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
22463 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22465 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
22468 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
22470 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
22472 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22474 * grub-core/normal/term.c (print_more): Fix a memory leak.
22475 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
22476 (grub_xputs_normal): Likewise.
22478 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22480 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
22481 the begining of the string
22483 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22485 * grub-core/script/script.c (grub_script_parse): Free parsed on
22488 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22490 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
22493 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22495 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
22498 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22500 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
22501 (scroll_up): Fix a memory leak.
22503 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22505 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
22508 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
22510 Handle USB pendrives exposed as floppies.
22512 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
22514 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22515 Check for partitions on all devices.
22517 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22519 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
22520 (readkey): Likewise.
22522 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
22524 Multiple variable names support to "export" command.
22526 * normal/context.c (grub_cmd_export): "export" command supports
22527 multiple variable names.
22529 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
22531 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
22532 --target=drive output to Mach device name.
22534 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22536 New Automake based build system for GRUB.
22538 * ABOUT-NLS: New file.
22539 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
22540 in Makefile.util.def file.
22541 * Makefile.util.def: New file. Autogen build definitions file for
22543 * conf/Makefile.common: New file. Common variables for GRUB host
22544 utils and target modules.
22545 * conf/Makefile.extra-dist: New file. Extra files for make dist.
22546 * docs/Makefile.am: New file. Automake file for docs.
22547 * gentpl.py: New file. Python script to generate Autogen
22549 * grub-core/Makefile.am: New file. GRUB target modules' rules
22550 that doesn't fit in Makefile.core.def file.
22551 * grub-core/Makefile.core.def: New file. Autogen build
22552 definitions file for GRUB target modules.
22553 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
22554 specific setjmp.S file.
22555 * po/Makefile.am: New file.
22557 * .bzrignore: New ignores.
22558 * INSTALL: New requirements, without Ruby.
22559 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
22560 * autogen.sh: Updated to invoke autogen as necessary.
22561 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
22562 and defines for Automake conditionals.
22563 * geninit.sh: Refactoring.
22565 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
22567 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
22570 * include/grub/test.h: Fix functional test modules' naming.
22571 * grub-core/tests/example_functional_test.c: Fix test module name.
22573 * util/misc.c: Hosted versions' of grub functions for libgrub.a
22574 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
22575 * util/grub-editenv.c: Likewise.
22576 * util/grub-fstest.c: Likewise.
22577 * util/grub-mkdevicemap.c: Likewise.
22578 * util/grub-mkfont.c: Likewise.
22579 * util/grub-mkimage.c: Likewise.
22580 * util/grub-mkpasswd-pbkdf2.c: Likewise.
22581 * util/grub-probe.c: Likewise.
22582 * util/grub-script-check.c: Likewise.
22583 * util/i386/pc/grub-setup.c: Likewise.
22584 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22586 * tests/util/grub-shell.in: Fix override directory path.
22587 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
22588 * util/import_gcry.py: Create Makefile.gcry.def file instead.
22590 * util/lvm.c: Update #includes.
22591 * util/raid.c: Likewise.
22592 * util/resolve.c: Likewise.
22593 * grub-core/bus/emu/pci.c: Likewise.
22594 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
22595 * grub-core/lib/posix_wrap/string.h: Likewise.
22596 * grub-core/kern/emu/main.c: Likewise.
22598 * grub-core/gensymlist.sh: New file. Script for generating kernel
22600 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
22602 * grub-core/gentrigtables.c: Fix unused variable warnings.
22604 * Makefile.in: Removed.
22605 * conf/any-emu.rmk: Removed.
22606 * conf/common.rmk: Removed.
22607 * conf/i386-coreboot.rmk: Removed.
22608 * conf/i386-efi.rmk: Removed.
22609 * conf/i386-ieee1275.rmk: Removed.
22610 * conf/i386-multiboot.rmk: Removed.
22611 * conf/i386-pc.rmk: Removed.
22612 * conf/i386-qemu.rmk: Removed.
22613 * conf/i386.rmk: Removed.
22614 * conf/mips-yeeloong.rmk: Removed.
22615 * conf/mips.rmk: Removed.
22616 * conf/powerpc-ieee1275.rmk: Removed.
22617 * conf/sparc64-ieee1275.rmk: Removed.
22618 * conf/tests.rmk: Removed.
22619 * conf/x86-efi.rmk: Removed.
22620 * conf/x86_64-efi.rmk: Removed.
22621 * gendistlist.sh: Removed.
22622 * geninitheader.sh: Removed.
22623 * genkernsyms.sh.in: Removed.
22624 * genmk.rb: Removed.
22625 * gensymlist.sh.in: Removed.
22626 * mkinstalldirs: Removed.
22628 * grub-core/boot: ... to here.
22630 * grub-core/bus: ... to here.
22631 * commands: Moved ...
22632 * grub-core/commands: ... to here.
22634 * grub-core/disk: ... to here.
22635 * efiemu: Moved ...
22636 * grub-core/efiemu: ... to here.
22638 * grub-core/font: ... to here.
22640 * grub-core/fs: ... to here.
22641 * gencmdlist.sh: Moved ...
22642 * grub-core/gencmdlist.sh: ... to here.
22643 * genemuinit.sh: Moved ...
22644 * grub-core/genemuinit.sh: ... to here.
22645 * genemuinitheader.sh: Moved ...
22646 * grub-core/genemuinitheader.sh: ... to here.
22647 * genfslist.sh: Moved ...
22648 * grub-core/genfslist.sh: ... to here.
22649 * genhandlerlist.sh: Moved ...
22650 * grub-core/genhandlerlist.sh: ... to here.
22651 * genmoddep.awk: Moved ...
22652 * grub-core/genmoddep.awk: ... to here.
22653 * genmodsrc.sh: Moved ...
22654 * grub-core/genmodsrc.sh: ... to here.
22655 * genpartmaplist.sh: Moved ...
22656 * grub-core/genpartmaplist.sh: ... to here.
22657 * genparttoollist.sh: Moved ...
22658 * grub-core/genparttoollist.sh: ... to here.
22659 * genterminallist.sh: Moved ...
22660 * grub-core/genterminallist.sh: ... to here.
22661 * gentrigtables.c: Moved ...
22662 * grub-core/gentrigtables.c: ... to here.
22663 * genvideolist.sh: Moved ...
22664 * grub-core/genvideolist.sh: ... to here.
22665 * gettext: Moved ...
22666 * grub-core/gettext: ... to here.
22667 * gfxmenu: Moved ...
22668 * grub-core/gfxmenu: ... to here.
22669 * gnulib: Moved ...
22670 * grub-core/gnulib: ... to here.
22672 * grub-core/hello: ... to here.
22674 * grub-core/hook: ... to here.
22676 * grub-core/io: ... to here.
22678 * grub-core/kern: ... to here.
22680 * grub-core/lib: ... to here.
22681 * loader: Moved ...
22682 * grub-core/loader: ... to here.
22684 * grub-core/mmap: ... to here.
22685 * normal: Moved ...
22686 * grub-core/normal: ... to here.
22687 * partmap: Moved ...
22688 * grub-core/partmap: ... to here.
22689 * parttool: Moved ...
22690 * grub-core/parttool: ... to here.
22691 * script: Moved ...
22692 * grub-core/script: ... to here.
22694 * grub-core/term: ... to here
22695 * tests/example_functional_test.c: Moved ...
22696 * grub-core/tests/example_functional_test.c: ... to here.
22697 * tests/lib/functional_test.c: Moved ...
22698 * grub-core/tests/lib/functional_test.c: ... to here.
22699 * tests/lib/test.c: Moved ...
22700 * grub-core/tests/lib/test.c: ... to here.
22702 * grub-core/video: ... to here.
22704 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22706 Replace --enable-grub-emu-modules with grub-emu-lite.
22708 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
22711 * include/grub/emu/misc.h (grub_emu_init): New prototype.
22712 * kern/emu/full.c: New file. For grub-emu specific initialization.
22713 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
22714 * kern/emu/main.c: Call initialization function grub_emu_init.
22716 * Makefile.in: Include grub-emu-lite in install.
22717 * commands/parttool.c: Use grub_no_autoload to differentiate
22718 between grub-emu and grub-emu-lite.
22719 * include/grub/misc.h: New variable grub_no_autoload.
22721 * conf/any-emu.rmk: New rules for grub-emu-lite.
22722 * configure.ac: Remove --enable-grub-emu-modules.
22723 * genmk.rb: Cleanup unnecessary rules.
22724 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
22726 * normal/main.c: Don't load list files on grub-emu-lite.
22727 * util/misc.c (grub_arch_sync_caches): Removed.
22729 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
22731 * kern/mips/startup.S (grub_prefix): Update comment to refer to
22732 grub-mkimage rather than grub-mkelfimage.
22733 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
22735 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
22737 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
22738 a key after CapsLock or NumLock. It's just a qemu bug.
22740 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22742 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
22743 needed by libusb wrapper.
22745 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22747 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
22749 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22751 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
22752 --nounzip is passed.
22754 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
22756 USB hotunplugging and USB serial support.
22758 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
22759 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
22760 (grub_uhci_transfer): Respect timeout and set *actual.
22761 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
22762 non-standard length.
22763 (grub_usb_device_attach): Autoload modules.
22764 (GRUB_MOD_INIT): Set grub_term_poll_usb.
22765 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
22766 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
22768 (grub_usb_add_hub): Fill nports and children.
22769 (attach_root_port): Receive hub instead of controller.
22770 All users updated. Fill hub->devices.
22771 (grub_usb_root_hub): Allocate hub->devices.
22772 (detach_device): New function.
22773 (poll_nonroot_hub): Fill children and detach devices.
22774 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22775 actual arguments. All users updated.
22776 (grub_usb_bulk_read_extended): New function.
22777 * bus/usb/serial/common.c: New file.
22778 * bus/usb/serial/ftdi.c: Likewise.
22779 * bus/usb/serial/pl2303.c: Likewise.
22780 * commands/terminal.c (handle_command): Support wildcard.
22781 * commands/usbtest.c: Output "Unknown" instead of empty string.
22782 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
22783 (usbserial_common_mod_SOURCES): New variable.
22784 (usbserial_common_mod_CFLAGS): Likewise.
22785 (usbserial_common_mod_LDFLAGS): Likewise.
22786 (pkglib_MODULES): Add usbserial_pl2303.mod.
22787 (usbserial_pl2303_mod_SOURCES): New variable.
22788 (usbserial_pl2303_mod_CFLAGS): Likewise.
22789 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22790 (pkglib_MODULES): Add usbserial_ftdi.mod.
22791 (usbserial_ftdi_mod_SOURCES): New variable.
22792 (usbserial_ftdi_mod_CFLAGS): Likewise.
22793 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22794 (pkglib_MODULES): Add serial.mod.
22795 (serial_mod_SOURCES): New variable.
22796 (serial_mod_CFLAGS): Likewise.
22797 (serial_mod_LDFLAGS): Likewise.
22798 * conf/i386-pc.rmk: Likewise.
22799 * conf/mips-yeeloong.rmk: Likewise.
22800 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22801 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22802 * disk/usbms.c (first_available_slot): New variable.
22803 (grub_usbms_attach): Don't reuse free slots due to potential cache
22805 * include/grub/serial.h: Moved to ..
22806 * include/grub/ns8250.h: ...this.
22807 * include/grub/serial.h: New file.
22808 * include/grub/term.h (grub_term_poll_usb): New variable.
22809 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22810 readkey. All users updated.
22811 (grub_terminfo_output_state): Pass term to put.
22812 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22813 (grub_usb_controller_dev): Add timeout and actual arguments to
22814 transfer. All users updated.
22815 (grub_usb_interface): New field detach_data.
22816 (grub_usb_device): New fields children and nports.
22817 (grub_usb_ep_type_t): New type.
22818 (grub_usb_get_ep_type): New function.
22819 (grub_usb_bulk_read_extended): Likewise.
22820 * include/grub/usbdesc.h (grub_usb_desc): New type.
22821 * include/grub/usbserial.h: New file.
22822 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22823 * kern/term.c (grub_term_poll_usb): New variable.
22824 (grub_getkey): Call grub_term_poll_usb if set.
22825 (grub_checkkey): Likewise.
22826 (grub_getkeystatus): Likewise.
22827 * term/serial.c: Moved controller-specific parts to ...
22828 * term/ns8250.c: ... here.
22829 * term/serial.c: Mostly rewritten.
22830 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22833 2010-08-20 Robert Millan <rmh@gnu.org>
22835 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22836 a separate module and maybe other interesting combinations.
22838 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22839 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22840 (kfreebsd_entry): Add generic filesystem module load routine.
22841 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22843 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
22845 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22846 "numcenter" (I misunderstood the purpose of this entry).
22847 * docs/grub.texi (sendkey): Likewise.
22849 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
22851 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22852 status flag options; simply omitting the option is equivalent and
22853 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22854 (keysym_table): Rename "num5numlock" to "numlock".
22855 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22856 can uniformly say that only the last of multiple `sendkey'
22857 invocations has any effect.
22858 * docs/grub.texi (sendkey): New section.
22860 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
22862 * commands/i386/pc/sendkey.c (options): Fix three typos.
22864 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22866 Implement sendkey support.
22868 * commands/i386/pc/sendkey.c: New file.
22869 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22870 (sendkey_mod_SOURCES): New variable.
22871 (sendkey_mod_CFLAGS): Likewise.
22872 (sendkey_mod_LDFLAGS): Likewise.
22874 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
22876 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22877 fix warnings from Autoconf.
22879 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
22881 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22882 to avoid false positives with some assemblers that output things
22883 like "someprefix_func" as part of their output.
22885 2010-08-15 Robert Millan <rmh@gnu.org>
22887 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22889 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22890 grub_get_libzfs_handle() errors.
22892 2010-08-14 Robert Millan <rmh@gnu.org>
22894 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22895 filesystem is not ZFS.
22897 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22899 Fix for misspelled color names defaulting to black/black (bug
22900 reported by Doug Nazar)
22902 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22903 status to prototype.
22904 * normal/color.c (grub_parse_color_name_pair): Return failure
22906 (grub_env_write_color_normal): Ignore bad color names.
22907 (grub_env_write_color_highlight): Likewise.
22908 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22910 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22912 "shift" command support to GRUB script.
22914 * include/grub/script_sh.h (grub_script_shift): New prototype.
22915 * script/execute.c (grub_script_shift): New function.
22916 * script/main.c (grub_script_init): Register shift command.
22917 (grub_script_fini): Unregister shift command.
22918 * util/grub-script-check.c (grub_script_cmd_shift): New function.
22920 * tests/grub_script_shift.in: New testcase.
22921 * conf/tests.rmk: Rules for new testcase.
22923 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22925 "continue" command support to GRUB script.
22927 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
22928 (grub_script_break): Continue support.
22929 * script/main.c (grub_script_init): Register continue command.
22930 (grub_script_fini): Unregister continue command.
22932 * tests/grub_script_continue.in: New testcase.
22933 * conf/tests.rmk: Rules for new testcase.
22935 2010-08-12 BVK Chaitanya <bvk@dbook>
22937 "break" command support to GRUB script.
22939 * conf/common.rmk: Rule updates to grub-script-check.
22940 * include/grub/misc.h (grub_min): New function.
22941 * include/grub/script_sh.h (grub_script_init): New prototype.
22942 (grub_script_fini): New prototype.
22943 (grub_script_break): New prototype.
22944 * script/main.c (grub_script_init): New function.
22945 (grub_script_fini): New function.
22946 * script/execute.c (grub_script_break): New function.
22947 * normal/main.c: Calls to grub_script_{init,fini}.
22948 * util/grub-script-check.c (grub_script_break): New function.
22950 * tests/grub_script_break.in: New testcase.
22951 * conf/tests.rmk: Rules for new test case.
22953 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22955 Function parameters support to GRUB script.
22957 * script/yylex.l (VARIABLE): Regular expression update.
22958 * script/function.c (grub_script_function_call): Moved ...
22959 * script/execute.c (grub_script_function_call): ... to here.
22960 (grub_script_execute_arglist_to_argv): Removed.
22961 (grub_script_arglist_to_argv): New function.
22962 * script/argv.c: New file.
22963 (grub_script_argv_free): New function.
22964 (grub_script_argv_next): Likewise.
22965 (grub_script_argv_append): Likewise.
22966 (grub_script_argv_split_append): Likewise.
22967 * include/grub/script_sh.h (grub_script_argv): New struct.
22968 (grub_script_argv_free): New function.
22969 (grub_script_argv_next): Likewise.
22970 (grub_script_argv_append): Likewise.
22971 (grub_script_argv_split_append): Likewise.
22973 * conf/common.rmk (normal.mod): New source script/argv.c.
22975 * tests/grub_script_echo1.in: More tests.
22976 * tests/grub_script_vars1.in: Likewise.
22977 * tests/grub_script_functions.in: New test case.
22978 * conf/tests.rmk: Rules for new testcase.
22980 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22982 Remove grub_script_cmdblock struct.
22984 * include/grub/script_sh.h: Remove grub_script_cmdblock.
22985 * script/parser.y: Likewise.
22986 * script/execute.c: Rename cmdblock suffix to cmdlist.
22987 * script/script.c: Likewise.
22988 * util/grub-script-check.c: Likewise.
22990 2010-08-11 Yves Blusseau <blusseau@zetam.org>
22992 * .bzrignore: add grub-macho2img
22994 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22996 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
22998 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
23000 Remove the dump of sm712 initialisation sequence.
23002 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
23003 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
23004 (GRUB_VGA_IO_MISC_WRITE): Likewise.
23005 (GRUB_VGA_CR_*): Added many registers.
23006 (GRUB_VGA_SR_*): Likewise.
23007 (GRUB_VGA_GR_*): Likewise.
23008 (grub_vga_write_arx): New function.
23009 (grub_video_hw_config): New struct.
23010 (grub_vga_set_geometry): New function.
23011 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
23012 GRUB_PCI_CLASS_SUBCLASS_VGA.
23013 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
23014 * video/sm712.c (grub_sm712_write_reg): New function
23015 (grub_sm712_read_reg): Likewise.
23016 (grub_sm712_sr_write): Likewise.
23017 (grub_sm712_gr_write): Likewise.
23018 (grub_sm712_cr_write): Likewise.
23019 (grub_sm712_write_arx): Likewise.
23020 (grub_sm712_cr_shadow_write): Likewise.
23021 (grub_sm712_write_dda_lookup): Likewise.
23022 (grub_video_sm712_setup): Initialise the video rather then
23023 blindly replay the dump.
23024 (main) [TEST]: Add a routine to be able to compile as standalone for
23026 * video/sm712_init.c (sm712_init): Removed.
23027 (sm712_sr_seq1): New array.
23028 (sm712_sr_seq2): Likewise.
23030 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
23032 * include/grub/vga.h: Add missing grub/pci.h include.
23034 2010-08-10 Yves Blusseau <blusseau@zetam.org>
23036 * util/grub-macho2img.c (main): fix typo
23038 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
23040 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
23041 (grub_vga_gr_read): Likewise.
23042 (grub_vga_cr_write): Likewise.
23043 (grub_vga_cr_read): Likewise.
23044 (grub_vga_sr_write): Likewise.
23045 (grub_vga_sr_read): Likewise.
23046 (grub_vga_palette_read): Likewise.
23047 (grub_vga_palette_write): Likewise.
23048 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
23049 (grub_sm712_sr_read): New function.
23050 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
23051 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
23053 2010-08-09 Robert Millan <rmh@gnu.org>
23055 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
23056 out unused variables on non-ZFS build.
23058 2010-08-08 Robert Millan <rmh@gnu.org>
23060 Fix path generation for sub-filesystems in ZFS.
23062 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
23065 2010-08-08 Robert Millan <rmh@gnu.org>
23067 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
23069 2010-08-08 Robert Millan <rmh@gnu.org>
23071 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
23072 exist, issue a proper error message (rely on `ls' for translated
23075 2010-08-08 Robert Millan <rmh@gnu.org>
23077 Fix grub-probe invocation.
23079 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
23081 2010-08-04 Robert Millan <rmh@gnu.org>
23083 * configure.ac: Remove checks for getfsstat() and getmntany().
23084 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
23085 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
23086 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
23087 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
23088 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
23090 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
23091 via find_mount_point_from_dir() and getfsstat() / getmntany().
23093 2010-08-04 Robert Millan <rmh@gnu.org>
23095 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23096 (grub_find_zpool_from_mount_point): Merge into ...
23097 (grub_find_zpool_from_dir): ... this.
23098 * kern/emu/misc.c: Likewise.
23101 (grub_make_system_path_relative_to_its_root): Replace
23102 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
23103 with grub_find_zpool_from_dir().
23104 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
23106 2010-08-04 Robert Millan <rmh@gnu.org>
23108 Support OpenSolaris in ZFS device resolution.
23110 * configure.ac: Check for getmntany().
23111 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
23112 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
23115 2010-08-03 Robert Millan <rmh@gnu.org>
23117 Fix grub-emu build.
23119 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
23120 * include/grub/emu/misc.h: ... here.
23122 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
23123 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
23125 * util/misc.c: Remove `<grub/util/libzfs.h>'.
23126 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
23127 (grub_get_libzfs_handle): Move to ...
23128 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
23129 (grub_get_libzfs_handle): ... here.
23131 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
23133 * script/execute.c (grub_script_execute_cmdline): Check for NULL
23134 as command name case.
23136 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
23138 * disk/raid.c (insert_array): Select unique numbers for named arrays
23139 as well, for use as keys in the disk cache.
23141 2010-08-01 Robert Millan <rmh@gnu.org>
23143 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
23144 kFreeBSD device name, except on ZFS where the filesystem label is
23146 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
23147 `/boot/zfs/zpool.cache'.
23148 Set mountfrom kernel variable using ${kfreebsd_device}.
23150 2010-08-01 Robert Millan <rmh@gnu.org>
23152 Make it even harder to use uninitialized `libzfs_handle' (and
23153 make the interface a bit simpler).
23155 * include/grub/util/misc.h (grub_util_init_libzfs)
23156 (libzfs_handle): Remove.
23157 (grub_get_libzfs_handle): New prototype.
23159 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
23161 (grub_util_init_libzfs): Remove.
23162 (grub_get_libzfs_handle): New function.
23164 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
23165 grub_get_libzfs_handle() to obtain a libzfs handle instead of
23166 accessing `libzfs_handle' directly.
23168 2010-08-01 Robert Millan <rmh@gnu.org>
23170 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23171 (grub_find_zpool_from_mount_point): New function prototypes.
23173 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23174 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23176 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23177 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23178 `static' attribute.
23180 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23181 finding zpool from mount point into ...
23182 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23184 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23185 requested path is part of a ZFS pool, use
23186 grub_find_zpool_from_mount_point() to detect its filesystem name,
23187 and generate a path with `/fsname@path' syntax.
23189 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
23191 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
23192 (void) rather than () so that this is a proper prototype.
23194 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23196 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
23198 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23200 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
23201 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
23203 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
23205 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
23207 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
23209 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
23211 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
23213 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
23214 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
23215 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
23216 disable gfxpayload.
23217 (Shell-like scripting): Add real content.
23218 (Serial terminal): Suggest `terminal_input serial; terminal_output
23219 serial' rather than putting the two commands on separate lines,
23220 since console input will be inoperative after the first command.
23221 (menuentry): Document --class, --users, and --hotkey options.
23222 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
23223 Vladimir Serbinenko).
23225 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23226 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
23228 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
23230 2010-08-01 Robert Millan <rmh@gnu.org>
23232 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23233 (grub_find_zpool_from_mount_point): New function prototypes.
23235 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23236 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23238 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23239 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23240 `static' attribute.
23242 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23243 finding zpool from mount point into ...
23244 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23246 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23247 requested path is part of a ZFS pool, use
23248 grub_find_zpool_from_mount_point() to detect its filesystem name,
23249 and generate a path with `/fsname@path' syntax.
23251 2010-08-01 Robert Millan <rmh@gnu.org>
23253 Prevent accidental use of uninitialized libzfs_handle.
23255 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
23256 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
23257 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
23259 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
23261 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
23262 util/grub.d/10_linux.in). Fixes Debian bug #591093.
23264 2010-08-01 Robert Millan <rmh@gnu.org>
23266 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
23268 2010-07-31 Robert Millan <rmh@gnu.org>
23270 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
23272 2010-07-31 Robert Millan <rmh@gnu.org>
23274 * kern/emu/misc.c: Add missing license header.
23276 2010-07-31 Robert Millan <rmh@gnu.org>
23278 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
23280 * include/grub/util/libnvpair.h: Include `<config.h>'.
23281 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
23282 declaring libnvpair prototypes ourselves.
23283 * include/grub/util/libzfs.h: Include `<config.h>'.
23284 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
23285 declaring libzfs prototypes ourselves.
23287 (libzfs_handle): Moved to ...
23288 * include/grub/util/misc.h (libzfs_handle): ... here.
23289 Include `<grub/util/libzfs.h>'.
23291 2010-07-30 Robert Millan <rmh@gnu.org>
23293 * include/grub/emu/misc.h: Add missing license header.
23295 2010-07-30 Robert Millan <rmh@gnu.org>
23297 Enable `grub-probe -t device' resolution on ZFS.
23299 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
23300 * include/grub/util/libnvpair.h: New file.
23301 * include/grub/util/libzfs.h: New file.
23303 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
23304 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
23305 `<grub/util/libnvpair.h>'.
23306 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
23308 (find_mount_point_from_dir): New static function.
23309 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
23311 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
23312 find_root_device_from_libzfs() before ressorting to find_root_device().
23314 * include/grub/util/misc.h (grub_util_init_libzfs): New function
23316 * util/misc.c: Include `<grub/util/libzfs.h>'.
23317 (grub_util_init_libzfs): New function.
23318 [HAVE_LIBZFS] (libzfs_handle): New global variable.
23319 [HAVE_LIBZFS] (fini_libzfs): New static function.
23320 (grub_util_init_libzfs): New function.
23321 * util/grub-probe.c (main): Call grub_util_init_libzfs().
23323 2010-07-30 Robert Millan <rmh@gnu.org>
23325 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
23326 (xmalloc, xrealloc, xstrdup, xasprintf): Add
23327 `warn_unused_result' attribute.
23328 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
23329 (grub_xasprintf, grub_xvasprintf): Likewise.
23330 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
23332 2010-07-29 Robert Millan <rmh@gnu.org>
23334 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
23335 (probe): Handle `PRINT_FS_LABEL'.
23336 (main): Handle `-t fs_label'.
23338 2010-07-29 Robert Millan <rmh@gnu.org>
23340 * configure.ac: Remove grub-mkisofs checks.
23342 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
23344 * util/ieee1275/grub-install.in: Don't use empty grub_device.
23345 Reported by: Lennart Sorensen.
23347 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23349 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
23350 prior to terminal_input/terminal_output separation. It's been over 1.5
23351 years and those versions weren't widely deployed.
23353 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
23355 * disk/raid.c (insert_array): Don't count named arrays when looking
23356 for unused array numbers.
23357 Reported and tested by: Michael Guntsche.
23359 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23361 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
23362 implementation of this so that grub-emu links again, with a note
23363 that this should support hotplugging in the future.
23365 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23367 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
23369 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23371 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
23373 (grub_loopback_close): Remove empty function.
23374 (grub_loopback_dev): Remove close method.
23376 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23378 Disable EFI cursor when the EFI console becomes inactive.
23380 * term/efi/console.c (grub_efi_console_init): New function.
23381 (grub_efi_console_fini): New function.
23382 (grub_console_term_output): Register init and fini methods.
23384 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23386 * tests/util/grub-shell-tester.in: Remove bashism and declare as
23389 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23391 * disk/loopback.c (grub_loopback): Replace filename with file.
23392 (delete_loopback): Handle new semantics.
23393 (grub_cmd_loopback): Likewise.
23394 (grub_loopback_iterate): Likewise.
23395 (grub_loopback_close): Likewise.
23397 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23399 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
23401 Reported by: Tito Keitel.
23403 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23405 * docs/grub.texi (Naming convention): Document new naming convention.
23407 2010-07-20 Vadim Solomin <vadic052@gmail.com>
23408 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23410 Generate device.map in something closer to the old ordering.
23412 * util/deviceiter.c (struct device): New declaration.
23413 (compare_file_names): Rename to ...
23414 (compare_devices): ... this. Sort by kernel name in preference to
23415 the stable by-id name, but keep the latter as a fallback comparison.
23416 Update header comment.
23417 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
23418 of `struct device' rather than of plain file names.
23420 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
23422 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
23425 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23427 * commands/acpi.c (setup_common_tables): Use sizeof instead of
23429 (setv1table): Likewise.
23431 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23433 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
23434 removing the homehost if present.
23435 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
23436 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
23437 removing the homehost if present.
23438 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
23440 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
23442 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
23443 parameter. Set its pointer target to 0.
23444 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
23445 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
23446 `data_offset' value from the superblock for 1.x metadata.
23447 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
23448 data on the device.
23449 (insert_array): Record the start sector of data on the device.
23450 (grub_raid_register): Pass start_sector parameters to
23451 grub_raid_list->detect and insert_array.
23452 * include/grub/raid.h (struct grub_raid_array): Add start_sector
23454 (struct grub_raid): Add start_sector parameter to `detect'.
23456 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
23457 __attribute__ ((packed)), leaving a comment.
23458 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
23459 (grub_mdraid_detect_09): ... here and ...
23460 (grub_mdraid_detect_1x): ... here.
23462 2010-07-20 Peter Henn <peter.henn@web.de>
23464 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
23465 chunk size and disk size, which are already given as sector counts
23466 as distinct from the 0.90 units. Fetch the correct device number
23467 from the role table instead of using the table index.
23469 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
23471 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
23472 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
23473 (WriteMostly1): New macro.
23474 Set array->name to NULL for metadata format 0.90. Add support for
23475 metadata 1.x. Fix some comments.
23476 * disk/raid.c (): Add support for name based RAID arrays. Fix a
23478 * util/getroot.c (grub_util_get_grub_dev): Add support for
23479 /dev/md/name style devices.
23481 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23483 * .bzrignore: Ignore 20_linux_xen.
23485 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
23487 * util/import_unicode.py: Remove unnecessary imports.
23489 2010-07-17 Aleš Nesrsta <starous@volny.cz>
23491 Hotplugging and USB hub support.
23493 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
23494 (grub_ohci): Likewise.
23495 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
23496 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
23497 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
23498 (GRUB_OHCI_CTRL_EDS): Likewise.
23499 (GRUB_OHCI_BULK_EDS): Likewise.
23500 (GRUB_OHCI_TDS): Likewise.
23501 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
23502 (grub_ohci_ed_phys2virt): New function.
23503 (grub_ohci_virt_to_phys): Likewise.
23504 (grub_ohci_td_phys2virt): Likewise.
23505 (grub_ohci_td_virt2phys): Likewise.
23506 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
23508 (grub_ohci_find_ed): New function.
23509 (grub_ohci_alloc_td): Likewise.
23510 (grub_ohci_free_td): Likewise.
23511 (grub_ohci_free_tds): Likewise.
23512 (grub_ohci_transfer): Use previously allocated memory.
23513 (grub_ohci_portstatus): Reset status changed bit.
23514 (grub_ohci_detect_dev): Supply status changed.
23515 (grub_ohci_fini_hw): Free memory.
23516 (grub_ohci_restore_hw): Reallocate memory.
23517 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
23518 Reset status change.
23519 (grub_uhci_detect_dev): Supply status_change.
23520 * bus/usb/usb.c (attach_hooks): New var.
23521 (grub_usb_device_attach): New function.
23522 (grub_usb_register_attach_hook_class): Likewise.
23523 (grub_usb_unregister_attach_hook_class): Likewise.
23524 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
23525 (grub_usb_add_hub): Reset connection changed bit.
23526 (attach_root_port): New function.
23527 (grub_usb_root_hub): Likewise.
23528 (poll_nonroot_hub): Likewise.
23529 (grub_usb_poll_devices): Likewise.
23530 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
23531 * disk/usbms.c (grub_usbms_open): Use device hooks.
23532 (grub_usbms_iterate) :Poll devices.
23533 (grub_usbms_finddevs): Split into ...
23534 (grub_usbms_attach): ... this ...
23535 (grub_usbms_attach): ... and this.
23536 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
23538 (grub_usb_interface): New fields attached and detach_hook.
23539 (grub_usb_attach_hook_class): New type.
23540 (grub_usb_attach_desc): New struct.
23541 (grub_usb_register_attach_hook_class): New function.
23542 (grub_usb_unregister_attach_hook_class): Likewise.
23543 (grub_usb_poll_devices): Likewise.
23544 (grub_usb_device_attach): Likewise.
23545 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
23546 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
23548 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23550 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
23551 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
23552 delta determination style. Works with most NetBSD partitions too.
23554 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23556 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
23557 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
23559 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23561 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
23563 2010-07-14 Anton Blanchard <anton@samba.org>
23565 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
23568 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23570 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
23572 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23574 * kern/partition.c (grub_partition_check_containment): New function to
23575 check that a partition is physically contained in a parent. Since
23576 offsets are relative (and non-negative), this reduces to checking that
23577 the partition ends before its parent.
23578 (grub_partition_map_probe): Discard out-of-range sub-partitions.
23579 (grub_partition_iterate): Likewise.
23580 * include/grub/partition.h (grub_partition_map): Slightly more detailed
23582 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
23583 partitions that start before their parent, and add debug printfs.
23585 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
23587 * Makefile.in (.SUFFIX): Spell correctly, as ...
23588 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
23589 bare module name without `.mod', e.g. `test') tried to invoke a
23592 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
23594 * README: Point to the Info manual.
23596 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
23598 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
23599 2nd superblock position from partition size.
23601 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
23603 * Makefile.in (MAINTAINER_CLEANFILES): Remove
23604 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
23605 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
23608 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23610 Restructure SCSI .id handling.
23611 Reported and tested by: Aleš Nesrsta.
23613 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23614 (grub_atapi_dev): Changed .name to "ata". New field .id.
23615 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
23616 (grub_usbms_dev): New field .id.
23617 * disk/scsi.c (grub_scsi_iterate): Generate name.
23618 (grub_scsi_open): Parse name.
23619 * include/grub/scsi.h (grub_make_scsi_id): New function.
23620 (grub_scsi_dev): Change iterate and open to number instead of naming
23621 busses. All users updated.
23622 (grub_scsi): Remove name. Add .bus.
23624 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23626 * commands/help.c (grub_cmd_help): Fix a typo.
23628 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23630 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
23631 Reported and tested by: Colin Watson.
23633 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23635 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
23638 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
23640 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
23642 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
23644 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
23647 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23649 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
23650 and disk/raid6_recover.c.
23651 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23652 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23654 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23656 * term/gfxterm.c (repaint_schedulded): Rename to ...
23657 (repaint_scheduled): ... this. Update all callers.
23658 (repaint_was_schedulded): Rename to ...
23659 (repaint_was_scheduled): ... this. Update all callers.
23661 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23663 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
23664 which we expect to be handled by upper layers.
23666 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
23668 * bus/usb/usbhub.c: #include time.h header.
23670 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23672 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
23673 entry_name also for entries without stat blocks (e.g. ".."); fixes
23674 corruption of the first entry in a directory.
23676 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23678 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
23679 after setting gfxterm as the active terminal. GRUB_BACKGROUND
23680 doesn't work otherwise.
23682 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23684 * docs/grub.texi (Features): Update list of supported file systems.
23685 (GNU/Linux): Update for GRUB 2.
23686 (Serial terminal): Remove mention of --disable-serial, which was a
23687 GRUB Legacy configure option. Update instructions to use
23688 `terminal_input' and `terminal_output' rather than `terminal'.
23689 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
23690 configuration' and `Installing GRUB using grub-install'.
23691 (Menu entry editor): Update for GRUB 2.
23692 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
23693 Document new -a, -u, and -v options.
23694 (initrd): New section.
23695 (initrd16): New section.
23696 (linux): New section.
23697 (linux16): New section.
23698 (search): The `var' argument to `--set' is optional.
23699 (GRUB only offers a rescue shell): Go into a little more detail on
23702 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23704 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
23706 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23708 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
23709 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
23711 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23713 * util/i386/pc/grub-setup.c (setup): Rename prefix to
23714 install_prefix, in line with install_dos_part and install_bsd_part.
23715 Add new prefix variable, which is copied to install_prefix after
23716 comparing core.img in memory with the one read from disk in the
23717 no-embedding case, and use that rather than overwriting
23718 install_prefix immediately when installing to a partition.
23719 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
23722 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23724 * configure.ac: Avoid == in test command, it's not portable.
23725 * util/grub.d/30_os-prober.in: Likewise.
23727 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
23729 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
23731 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23733 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
23734 multiple (top-level) partmaps.
23736 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23738 * util/i386/efi/grub-install.in: Don't use empty grub_device.
23739 Reported by: Tino Keitel.
23741 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23743 Bidi and diacritics support.
23745 * Makefile.in (widthspec.bin): New target.
23746 (widthspec.h): Likewise.
23747 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
23748 * autogen.sh: Generate unidata.c.
23749 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
23750 * commands/ls.c (grub_ls_list_devices): Likewise.
23751 (grub_ls_list_files): Likewise.
23752 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
23753 (grub_mini_cmd_lsmod): Likewise.
23754 * commands/read.c: Likewise.
23755 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
23756 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
23757 * lib/arg.c (grub_arg_show_help): Likewise.
23758 * lib/crypto.c (grub_password_get): Likewise.
23759 * normal/auth.c (grub_username_get): Likewise.
23760 * normal/misc.c (grub_normal_print_device_info): Likewise.
23761 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
23762 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
23763 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
23764 (normal/charset.c_DEPENDENCIES): New variable.
23765 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
23766 (pkglib_MODULES): Remove charset.mod.
23767 (charset_mod_SOURCES): Removed.
23768 (charset_mod_CFLAGS): Likewise.
23769 (charset_mod_LDFLAGS): Likewise.
23770 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
23771 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
23773 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23774 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23775 (kernel_img_HEADERS): Add terminfo.h.
23776 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
23777 Fill ->font. Reverse ascii bitmaps.
23778 (grub_font_get_xheight): New function.
23779 * font/font.c (grub_font_get_string_width): Moved from here ...
23780 * gfxmenu/font.c (grub_font_get_string_width): ... here.
23781 * font/font.c (grub_font_draw_string): Moved from here ...
23782 * gfxmenu/font.c (grub_font_draw_string): ... here.
23783 * font/font.c (grub_font_dup_glyph): New function.
23784 (grub_font_blit_glyph): Likewise.
23785 (grub_font_blit_glyph_mirror): Likewise.
23786 (blit_comb): Likewise.
23787 (grub_font_construct_dry_run): Likewise.
23788 (grub_font_get_constructed_device_width): Likewise.
23789 (grub_font_construct_glyph): Likewise.
23790 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23791 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23792 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23793 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23794 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23795 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23796 (grub_font_get_xheight): New proto.
23797 (grub_font_get_constructed_device_width): Likewise.
23798 (grub_font_construct_glyph): Likewise.
23799 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23800 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23801 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23802 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23803 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23804 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23805 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23806 (grub_console_getcharwidth): Likewise.
23807 * include/grub/misc.h (grub_xputs): New proto.
23808 (grub_puts): Inlined.
23809 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23810 (grub_normal_get_line_counter): Removed.
23811 (grub_install_newline_hook): Likewise.
23812 (grub_normal_get_char_counter): New proto.
23813 (grub_normal_reset_more): Likewise.
23814 (grub_xputs_normal): Likewise.
23815 * include/grub/powerpc/ieee1275/console.h: Removed.
23816 * include/grub/sparc64/ieee1275/console.h: Likewise.
23817 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23818 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23819 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23820 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23821 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23822 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23823 (grub_term_input): Pass reference to self. All users updated.
23824 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23825 Pass reference to self. New fields normal_color, highlight_color and
23826 data. All users updated.
23827 (grub_putchar): Removed.
23828 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23829 (grub_unicode_estimate_width): New function.
23830 (grub_term_getcharwidth): Add defaults.
23831 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23832 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23833 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23834 (grub_cls): Remove EXPORT_FUNC.
23835 (grub_setcolorstate): Inline.
23836 (grub_newline_hook): Removed.
23837 * include/grub/terminfo.h: Rewritten. All users updated.
23838 * include/grub/unicode.h: New file.
23839 * include/grub/video.h (grub_video_signed_rect): New type.
23840 * kern/emu/console.c (grub_console_highlight_color): Removed.
23841 (grub_console_normal_color): Likewise.
23842 (grub_console_standard_color): Made static.
23843 (grub_ncurses_putchar): Remove mapping.
23844 (grub_ncurses_getcharwidth): Removed.
23845 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23846 (grub_ncurses_setcolor): Removed.
23847 (grub_ncurses_getcolor): Likewise.
23848 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23849 (grub_console_putchar): ... this.
23850 (grub_console_putchar): Handle argument difference.
23851 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23852 console_init_early and console_init_lately.
23853 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23854 * kern/misc.c (grub_puts): Removed.
23855 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23856 (grub_vsnprintf_real): Remove str = NULL support.
23857 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23858 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23859 * kern/term.c (grub_putcode): Renamed to ...
23860 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23861 (grub_putchar): Removed.
23862 (grub_xputs_dumb): New function.
23863 (grub_xputs): New variable.
23864 * lib/charset.c: Move from here ...
23865 * normal/charset.c: ... to here.
23866 (grub_ucs4_to_utf8): New function.
23867 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23868 (join_types): New variable.
23869 (unpack_join): New function.
23870 (bidi_types): New variable.
23871 (unpack_bidi): New function.
23872 (get_bidi_type): Likewise.
23873 (get_join_type): Likewise.
23874 (is_mirrored): Likewise.
23875 (grub_unicode_get_comb_type): Likewise.
23876 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23877 (is_type_after): Likewise.
23878 (grub_unicode_aglomerate_comb): Likewise.
23879 (bidi_line_wrap): Likewise.
23880 (grub_bidi_line_logical_to_visual): Likewise.
23881 (grub_bidi_logical_to_visual): Likewise.
23882 (grub_unicode_mirror_code): Likewise.
23883 (grub_unicode_shape_code): Likewise.
23884 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23885 Don't use grub_putchar.
23886 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23887 (grub_normal_reader_init): Likewise.
23888 (grub_xputs_saved): New variable.
23889 (GRUB_MOD_INIT): Set grub_xputs.
23890 (GRUB_MOD_FINI): Restore grub_xputs.
23891 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23892 (menu_init): Avoid printing gfxmenu error.
23893 (show_menu): Use grub_normal_get_char_counter.
23894 * normal/menu_entry.c (update_screen): Fix out-of-array.
23895 (complete): Avoid NULL dereferencing.
23896 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23897 * normal/menu_text.c (print_spaces): Removed.
23898 (grub_print_ucs4): Likewise.
23899 (grub_print_message_indented): Use grub_print_ucs4.
23900 (print_message): Use grub_putcode.
23901 (print_entry): Hanlde diacritics.
23902 * normal/term.c (term_state): New type.
23903 (grub_more_lines): Removed.
23904 (term_states): New variable.
23905 (grub_normal_line_counter): Renamed to ..
23906 (grub_normal_char_counter): ...this. All users updated.
23907 (grub_normal_get_line_counter): Renamed to ...
23908 (grub_normal_get_char_counter): ... this.
23909 (grub_normal_reset_more): New function.
23910 (process_newline): Removed.
23911 (print_more): New function.
23912 (grub_install_newline_hook): Removed.
23913 (map_code): New function.
23914 (grub_puts_terminal): Use grub_print_ucs4.
23915 (putglyph): New function.
23916 (putcode_real): Likewise.
23917 (grub_putcode): Use putcode_real.
23918 (get_maxwidth): New function.
23919 (get_startwidth): Likewise.
23920 (print_ucs4_terminal): Likewise.
23921 (find_term_state): Likewise.
23922 (put_glyphs_terminal): Likewise.
23923 (print_backlog): Likewise.
23924 (print_ucs4_real): Likewise.
23925 (grub_print_ucs4): Likewise.
23926 (grub_xputs_normal): Likewise.
23927 * term/efi/console.c (grub_console_putchar): Output diacritics.
23928 (grub_console_getcharwidth): Removed.
23929 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23930 * term/gfxterm.c (clear_char): Free chars.
23931 (scroll_up): Avoid leaking memory.
23932 (grub_gfxterm_putchar): Support diacritics.
23933 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23934 * term/i386/pc/console.c (grub_console_term_output): Declare as
23935 GRUB_TERM_CODE_TYPE_VGA.
23936 * term/i386/pc/vga.c (grub_vga_term): Declare as
23937 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
23938 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
23939 GRUB_TERM_CODE_TYPE_VGA.
23940 * term/i386/vga_common.c (map_char): Removed.
23941 (grub_console_putchar): Likewise.
23942 (grub_console_getcharwidth): Likewise.
23943 * term/ieee1275/ofconsole.c: Simplify using terminfo.
23944 (colors): Reordered to match terminfo.
23945 (grub_ofconsole_normal_color): Removed.
23946 (grub_ofconsole_writeesc): Likewise.
23947 (grub_ofconsole_highlight_color): Likewise.
23948 (grub_ofconsole_getcharwidth): Likewise.
23949 (grub_ofconsole_setcolorstate): Likewise.
23950 (grub_ofconsole_setcolor): Likewise.
23951 (grub_ofconsole_getcolor): Likewise.
23952 (grub_ofconsole_readkey): Renamed to ...
23953 (readkey): ... this. Remove escape sequence handling. Return -1 on no
23955 (grub_ofconsole_checkkey): Removed.
23956 (grub_ofconsole_getkey): Likewise.
23957 (grub_ofconsole_getxy): Likewise.
23958 (grub_ofconsole_gotoxy): Likewise.
23959 (grub_ofconsole_cls): Likewise.
23960 (grub_ofconsole_refresh): Likewise.
23961 (grub_ofconsole_terminfo_input): New struct.
23962 (grub_ofconsole_terminfo_output): Likewise.
23963 (grub_ofconsole_term_input): Use terminfo.
23964 (grub_ofconsole_term_output): Likewise.
23965 (grub_console_init): Split into ...
23966 (grub_console_init_early): ...this and ...
23967 (grub_console_init_lately): ...this. Use terminfo.
23968 (grub_ofconsole_putchar): Renamed to ...
23969 (put): ... this. Remove mapping.
23970 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23971 * term/serial.c: Simplify using terminfo.
23974 (keep_track): Likewise.
23975 (registered): Likewise.
23976 (input_buf): Likewise.
23977 (npending): Likewise.
23978 (serial_translate_key_sequence): Likewise.
23979 (fill_input_buf): Likewise.
23980 (grub_serial_checkkey): Likewise.
23981 (grub_serial_getkey): Likewise.
23982 (grub_serial_getxy): Likewise.
23983 (grub_serial_gotoxy): Likewise.
23984 (grub_serial_putchar): Likewise.
23985 (grub_serial_cls): Likewise.
23986 (grub_serial_setcolorstate): Likewise.
23987 (grub_serial_setcursor): Likewise.
23988 (serial_hw_init): Use serial_hw_fetch.
23989 (grub_serial_terminfo_input): New variable.
23990 (grub_serial_terminfo_output): Likewise.
23991 (grub_serial_term_input): Use terminfo.
23992 (grub_serial_term_output): Likewise.
23993 * term/terminfo.c (putstr): Use put.
23994 (grub_terminfo_all_free): New function
23995 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
23996 (grub_terminfo_output_register): New function.
23997 (grub_terminfo_output_unregister): Likewise.
23998 (grub_terminfo_getxy): Likewise.
23999 (grub_terminfo_readkey): Likewise.
24000 (grub_terminfo_checkkey): Likewise.
24001 (grub_terminfo_getkey): Likewise.
24002 (grub_terminfo_input_init): Likewise.
24003 (print_terminfo): Likewise.
24004 (grub_cmd_terminfo): Handle encoding.
24005 (grub_terminfo_gotoxy): Track position.
24006 (grub_terminfo_cls): Likewise.
24007 (grub_terminfo_putchar): Likewise.
24008 (grub_terminfo_setcolorstate): Handle colors
24009 (grub_terminfo_cursor_on): This ...
24010 (grub_terminfo_cursor_off): ... and this merged into ...
24011 (grub_terminfo_setcursor): ... this.
24012 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
24013 * unicode/ArabicShaping.txt: New file (imported from Unicode).
24014 * unicode/BidiMirroring.txt: Likewise.
24015 * unicode/UnicodeData.txt: Likewise.
24016 * unicode/COPYING: Likewise.
24017 * util/grub-editenv.c (grub_putchar): Removed.
24018 (grub_xputs_real): New function.
24019 (grub_xputs): New variable.
24020 * util/grub-fstest.c (grub_putchar): Removed.
24021 (grub_xputs_real): New function.
24022 (grub_xputs): New variable.
24023 * util/grub-mkdevicemap.c (grub_putchar): Removed.
24024 (grub_xputs_real): New function.
24025 (grub_xputs): New variable.
24026 * util/grub-probe.c (grub_putchar): Removed.
24027 (grub_xputs_real): New function.
24028 (grub_xputs): New variable.
24029 * util/grub-script-check.c (grub_putchar): Removed.
24030 (grub_xputs_real): New function.
24031 (grub_xputs): New variable.
24032 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
24033 (grub_xputs_real): New function.
24034 (grub_xputs): New variable.
24035 * util/import_unicode.py: New file.
24036 * util/grub-mkfont.c (ft_errmsgs): New array.
24037 (grub_glyph_info): Make bitmap a pointer.
24038 (file_formats): New type WIDTH_SPEC.
24039 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
24040 (options): Add width-spec.
24042 (add_char): Renamed to ...
24043 (add_glyph): ... this.
24044 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
24045 (glyph_replace): New type.
24046 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
24047 (add_char): New function.
24048 (add_subst): Likewise.
24049 (process_cursive): Likewise.
24050 (add_font): Handle GSUB.
24051 (write_font_width_spec): New function.
24052 (main): Sort glyphs.
24053 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
24054 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
24055 * kern/term.c (grub_cls): Moved from here...
24056 * normal/term.c (grub_cls): ... here.
24058 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
24060 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
24061 suitable for using within the format argument of printf when
24062 converting grub_size_t.
24063 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
24064 "x" to convert grub_size_t arguments.
24066 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24068 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
24070 (list_get_minimal_size): Take selection box into account.
24072 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24074 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
24077 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
24079 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
24080 devices when iterating over /dev/disk/by-id; they will be handled
24081 later if appropriate, which they aren't always (e.g. LVM).
24083 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
24085 * include/grub/misc.h (grub_reboot): Declare as noreturn.
24086 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
24088 (grub_halt): Likewise.
24089 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
24091 (grub_halt): Don't return, even if all of shut-down, power-off, and
24094 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
24096 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
24097 arguments, not three.
24099 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
24101 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
24102 * util/grub.d/10_linux.in: Use it to check for LVM, so that
24103 LVM-on-RAID is handled correctly.
24105 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
24107 * docs/grub.texi (Changes from GRUB Legacy): New section.
24108 (Future): Fix typo.
24110 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
24112 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
24113 grub.d/README accidentally ends up executable for one reason or
24114 another. Ignore it.
24116 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24118 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
24119 (gpt_partition_map_iterate): Support non-512B sectors.
24121 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24123 * kern/efi/init.c (grub_efi_init): Disable watchdog.
24124 Tested by: Seth Goldberg.
24126 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24128 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
24129 Properly align mbi.
24130 Reported by: Seth Goldberg.
24132 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24134 * util/grub-mkrescue.in: Avoid module duplication.
24136 2010-07-01 Sean Finney <seanius@seanius.net>
24138 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
24140 2010-07-01 Sean Finney <seanius@seanius.net>
24142 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
24144 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24146 * disk/lvm.c (grub_lvm_checkvalue): New function.
24147 (grub_lvm_check_flag): Likewise.
24149 2010-07-01 Robert Millan <rmh@gnu.org>
24151 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
24152 Support 'p' as partition separator on kernel of FreeBSD (used
24154 (grub_util_biosdisk_get_grub_dev): Likewise.
24156 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24158 Yeeloong firmware port.
24160 * boot/mips/yeeloong/fwstart.S: New file.
24161 * bus/cs5536.c (gpiodump): New const.
24162 (set_io_space): New function.
24163 (set_iod): Likewise.
24164 (set_p2d): Likewise.
24165 (grub_cs5536_init_geode): Likewise.
24166 * commands/mips/yeeloong/lsspd.c: New file.
24167 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
24168 (serial_mod_SOURCES): New variable.
24169 (serial_mod_CFLAGS): Likewise.
24170 (serial_mod_LDFLAGS): Likewise.
24171 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
24172 term/terminfo.c and term/tparm.c.
24173 (pkglib_IMAGES): Add fwstart.img.
24174 (fwstart_img_SOURCES): New variable.
24175 (fwstart_img_CFLAGS): Likewise.
24176 (fwstart_img_ASFLAGS): Likewise.
24177 (fwstart_img_LDFLAGS): Likewise.
24178 (fwstart_img_FORMAT): Likewise.
24179 (pkglib_MODULES): Add lsspd.mod.
24180 (lsspd_mod_SOURCES): New variable.
24181 (lsspd_mod_CFLAGS): Likewise.
24182 (lsspd_mod_LDFLAGS): Likewise.
24183 (pkglib_MODULES): Add halt.mod.
24184 (halt_mod_SOURCES): New variable.
24185 (halt_mod_CFLAGS): Likewise.
24186 (halt_mod_LDFLAGS): Likewise.
24187 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
24188 (serial_mod_SOURCES): Removed.
24189 (serial_mod_CFLAGS): Likewise.
24190 (serial_mod_LDFLAGS): Likewise.
24191 * disk/ata.c (check_device): New function.
24192 (grub_ata_device_initialize): Use check_device.
24193 (grub_ata_iterate): Recheck devices.
24194 (grub_ata_open): Likewise.
24195 (grub_atapi_iterate): Likewise.
24196 (grub_atapi_open): Likewise.
24197 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
24198 (GRUB_ATA_CH1_PORT1): Likewise.
24199 (GRUB_ATA_CH0_PORT2): Likewise.
24200 (GRUB_ATA_CH1_PORT2): Likewise.
24201 * include/grub/mips/loongson.h: New file.
24202 * include/grub/mips/yeeloong/ec.h: Likewise.
24203 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
24204 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
24205 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
24206 * include/grub/misc.h (grub_halt): Declare as noreturn.
24207 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
24208 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
24209 (UART_ENABLE_FIFO_TRIGGER1): New definition.
24210 (UART_ENABLE_DTRRTS): Likewise.
24211 (UART_ENABLE_MODEM): Removed.
24212 (UART_ENABLE_OUT2): New const.
24213 * include/grub/term.h (grub_term_register_input_active): New function.
24214 (grub_term_register_output_active): Likewise.
24215 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
24217 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
24218 (init_pci): New function.
24219 (grub_machine_init): Execute platform init when firmware. Init serial.
24220 (grub_halt): Implement.
24221 (grub_exit): Likewise.
24222 (grub_reboot): Likewise.
24223 * term/serial.c (serial_hw_init): Update macros.
24224 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
24225 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
24226 (image_targets): New target mipsel-yeeloong-flash.
24227 (generate_image): Support IMAGE_YEELOONG_FLASH.
24228 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
24229 (grub_video_sm712_setup): Init card.
24230 (grub_video_sm712_set_palette): Removed.
24231 * video/sm712_init.c: New file.
24233 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
24235 * Makefile.in (install-local): Temporarily prepend $(builddir) to
24236 PATH when running help2man and then run it on the unadorned
24237 executable names, rather than passing $(builddir)/* paths to
24238 help2man. This avoids the build directory ending up in generated
24241 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
24243 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
24244 to avoid accidents when debugging with 'sh -x'.
24245 * util/grub-mkrescue.in: Likewise.
24246 * util/grub.d/00_header.in: Likewise.
24247 * util/grub.d/10_hurd.in: Likewise.
24248 * util/grub.d/10_kfreebsd.in: Likewise.
24249 * util/grub.d/10_linux.in: Likewise.
24250 * util/grub.d/10_netbsd.in: Likewise.
24251 * util/grub.d/10_windows.in: Likewise.
24252 * util/grub.d/20_linux_xen.in: Likewise.
24253 * util/grub.d/30_os-prober.in: Likewise.
24254 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24256 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
24258 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
24259 last character in the buffer.
24260 Reported by: Vladimir Serbinenko.
24262 2010-06-29 Robert Millan <rmh@gnu.org>
24264 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
24265 (Command-line and menu entry commands): Document `badram' command.
24267 2010-06-28 Robert Millan <rmh@gnu.org>
24269 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
24270 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
24271 command using ${GRUB_BADRAM} as parameter.
24273 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
24275 * docs/grub.texi (Device map): New section.
24276 (Themes): New section (stub).
24277 * Makefile.in (docs/grub.info): The info documentation now builds
24278 without errors. Make sure it stays that way.
24280 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24282 Use normal parser for menu entries.
24283 Reported by: Thomas Frauendorfer
24285 * include/grub/parser.h (grub_parser_execute): Don't export.
24286 * normal/menu.c (grub_menu_execute_entry_real): New function.
24287 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
24289 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
24291 * docs/grub.texi (Embedded configuration): New section (replacing
24292 old "Preset Menu" stub).
24293 (Images): New section.
24294 (configfile): Note that any menu entries defined in `file' are shown
24297 2010-06-28 Josh Triplett <josh@joshtriplett.org>
24299 * mmap/i386/pc/mmap_helper.S: Set CF on return.
24301 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
24303 * util/grub-install.in: Add --debug-image= option.
24305 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
24307 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
24310 * util/deviceiter.c (check_device): Rename to ...
24311 (check_device_readable_unique): ... this. Update all callers.
24312 Maintain and check a list of which devices (by canonicalized name)
24313 have already been seen.
24314 (clear_seen_devices): New function.
24315 (compare_file_names) [__linux__]: New function.
24316 (grub_util_iterate_devices): Clear the list of seen devices on exit
24317 and (just in case) on entry.
24318 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
24319 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
24320 seen-devices list, superseded by general code in check_device.
24322 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
24324 * commands/cat.c (options): New variable.
24325 (grub_cmd_cat): Parse options. If the --dos option is given, print
24326 DOS-style "\r\n" line endings as simple newlines (Debian bug
24328 (GRUB_MOD_INIT): Use extcmd.
24329 (GRUB_MOD_FINI): Likewise.
24330 * docs/grub.texi (cat): Document --dos.
24332 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24334 XEN with Linux grub-mkconfig support.
24336 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
24337 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
24338 GRUB_CMDLINE_XEN_DEFAULT.
24339 * util/grub.d/20_linux_xen.in: New file.
24341 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24343 Initialise VGA video on qemu ourselves.
24345 * boot/i386/qemu/boot.S: Don't call 0xc000.
24346 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
24347 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
24348 (kernel_img_HEADERS): Add pci.h.
24349 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
24350 * configure.ac: Force unifont on qemu and yeeloong.
24351 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
24352 (grub_vga_palette_write): Use correct register.
24353 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
24354 Call grub_qemu_init_cirrus.
24355 * kern/i386/qemu/init.c: New file.
24356 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
24358 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
24360 2010-06-26 Pavel Roskin <proski@gnu.org>
24362 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
24365 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
24367 * docs/grub.texi (Simple configuration): Explain that
24368 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
24369 set to `true' to disable their respective recovery entries, not
24372 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
24374 Make the `source' command slightly faster.
24376 * normal/main.c (grub_normal_execute): Don't re-read list files when
24379 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
24381 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
24382 field position and mask size to red fields from mode_info, not
24384 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
24385 Remove redundant tag->common.framebuffer_type assignment.
24386 Reported by: Seth Goldberg.
24388 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
24390 Sync up other versions of the Linux loader with Robert Millan's
24391 change of 2010-01-09, "Make loader output a bit more user-friendly".
24393 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
24395 (grub_cmd_linux): Likewise.
24396 (grub_cmd_initrd): Likewise.
24397 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
24398 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24400 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
24402 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
24403 larger than MEMORY_MAP_SIZE.
24405 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
24407 Fix parallel build.
24409 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
24411 * script/parser.y: #include grub_script.tab.h header.
24413 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24415 Support >3GiB and <16MiB RAM in i386-qemu.
24417 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
24418 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
24419 (grub_lower_mem): Removed.
24420 (grub_upper_mem): Likewise.
24421 (mem_size): Made static.
24422 (above_4g): New variable.
24423 (grub_machine_mmap_init): Detect small mem_size and above_4g.
24424 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
24427 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24429 Cirrus 5446 and Bochs video cards support.
24431 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
24433 (video_cirrus_mod_SOURCES): New variable.
24434 (video_cirrus_mod_CFLAGS): Likewise.
24435 (video_cirrus_mod_LDFLAGS): Likewise.
24436 (video_bochs_mod_SOURCES): Likewise.
24437 (video_bochs_mod_CFLAGS): Likewise.
24438 (video_bochs_mod_LDFLAGS): Likewise.
24439 * include/grub/vga.h: New file.
24440 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
24441 (grub_video_fb_set_page_t): New type.
24442 (grub_video_fb_setup): New prototype.
24443 (grub_video_fb_swap_buffers): Likewise.
24444 (grub_video_fb_get_info_and_fini): Likewise.
24445 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
24446 (CRTC_DATA_PORT): Likewise.
24447 (CRTC_CURSOR): Likewise.
24448 (CRTC_CURSOR_ADDR_HIGH): Likewise.
24449 (CRTC_CURSOR_ADDR_LOW): Likewise.
24450 (CRTC_CURSOR_DISABLE): Likewise.
24451 (update_cursor): Use grub_vga_cr_write.
24452 (grub_vga_text_setcursor): Likewise.
24453 * video/bochs.c: New file.
24454 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
24455 (palette): Likewise.
24456 (palette_size): Likewise.
24457 (framebuffer): New variable.
24458 (grub_video_fb_init): Use 'framebuffer'.
24459 (grub_video_fb_fini): Likewise.
24460 (grub_video_fb_get_info): Likewise.
24461 (grub_video_fb_get_palette): Likewise.
24462 (grub_video_fb_set_palette): Likewise.
24463 (grub_video_fb_set_viewport): Likewise.
24464 (grub_video_fb_get_viewport): Likewise.
24465 (grub_video_fb_map_color): Likewise.
24466 (grub_video_fb_map_rgb): Likewise.
24467 (grub_video_fb_map_rgba): Likewise.
24468 (grub_video_fb_unmap_color): Likewise.
24469 (grub_video_fb_unmap_color_int): Likewise.
24470 (grub_video_fb_fill_rect): Likewise.
24471 (grub_video_fb_blit_bitmap): Likewise.
24472 (grub_video_fb_blit_render_target): Likewise.
24473 (grub_video_fb_scroll): Likewise.
24474 (grub_video_fb_create_render_target): Likewise.
24475 (grub_video_fb_doublebuf_blit_init): Likewise.
24476 (grub_video_fb_set_active_render_target): Handle doublebuffering.
24477 (doublebuf_pageflipping_update_screen): New function.
24478 (doublebuf_pageflipping_init): Likewise.
24479 (grub_video_fb_setup): Likewise.
24480 (grub_video_fb_swap_buffers): Likewise.
24481 (grub_video_fb_get_info_and_fini): Likewise.
24482 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
24484 (doublebuf_pageflipping_commit): Restructured into ...
24485 (doublebuf_pageflipping_set_page): ... this.
24486 (doublebuf_pageflipping_update_screen): Removed.
24487 (doublebuf_pageflipping_init): Likewise.
24488 (double_buffering_init): Likewise.
24489 (grub_video_vbe_setup): Use grub_video_fb_setup.
24490 (grub_video_vbe_swap_buffers): Removed.
24491 (grub_video_vbe_set_active_render_target): Likewise.
24492 (grub_video_vbe_get_active_render_target): Likewise.
24493 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
24494 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
24495 grub_video_fb_set_active_render_target and
24496 grub_video_fb_get_active_render_target.
24497 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
24498 (SEQUENCER_DATA_PORT): Likewise.
24499 (MAP_MASK_REGISTER): Likewise.
24500 (CRTC_ADDR_PORT): Likewise.
24501 (CRTC_DATA_PORT): Likewise.
24502 (START_ADDR_HIGH_REGISTER): Likewise.
24503 (START_ADDR_LOW_REGISTER): Likewise.
24504 (GRAPHICS_ADDR_PORT): Likewise.
24505 (GRAPHICS_DATA_PORT): Likewise.
24506 (READ_MAP_REGISTER): Likewise.
24507 (INPUT_STATUS1_REGISTER): Likewise.
24508 (INPUT_STATUS1_VERTR_BIT): Likewise.
24509 (get_map_mask): Use grub_vga_sr_read.
24510 (set_map_mask): Use grub_vga_sr_write.
24511 (set_read_map): Use grub_vga_gr_write.
24512 (set_start_address): Use grub_vga_cr_write.
24513 * video/sm712.c (framebuffer): Remove leftover fields.
24515 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
24517 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
24518 setting GRUB_VIDEO_BACKEND. Make it available as a user override
24519 instead. Replace the gfxterm backend check with a check that
24520 ${GRUB_PREFIX}/video.lst is non-empty.
24521 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
24523 (load_video): New generated function. Call it before loading
24524 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
24525 * util/grub.d/10_linux.in (linux_entry): Call load_video.
24526 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
24527 * docs/grub.texi (Simple configuration): Document
24528 GRUB_VIDEO_BACKEND.
24530 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24532 Use video functions in linux and xnu loaders.
24534 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
24535 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
24536 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
24537 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
24538 loader/i386/pc/linux.c.
24539 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
24540 (find_line_len): Removed.
24541 (find_framebuf): Likewise.
24542 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
24543 * loader/i386/efi/xnu.c: Removed.
24544 * loader/i386/pc/xnu.c: Moved from here...
24545 * loader/i386/xnu.c: ...here.
24547 Enable priorities in video drivers.
24549 * include/grub/video.h (grub_video_adapter_prio_t): New type.
24550 (grub_video_adapter): New field prio.
24551 (grub_video_register): Respect prio when inserting.
24552 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
24553 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
24554 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
24555 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
24556 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
24557 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
24558 * video/sm712.c (grub_video_sm712_adapter): Likewise.
24562 * include/grub/video.h (grub_video_driver_id_t): New value
24563 GRUB_VIDEO_DRIVER_SDL.
24564 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
24566 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24568 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
24569 argument to printf.
24570 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24572 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24574 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
24575 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24577 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24579 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
24580 directly, and recommend grub-install instead.
24581 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24583 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24585 Fix i386-pc prefix handling with nested partitions (Debian bug
24586 #585068). Note that the case where the core image is booted using
24587 multiboot and relocated from its original location still requires
24590 * kern/i386/pc/init.c (make_install_device): If the prefix starts
24591 with "(,", fill the boot drive in between those two characters, but
24592 expect that a full partition specification including partition map
24594 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
24595 specified, write a prefix without the drive name but including a
24596 full partition specification.
24598 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
24600 * util/grub-mkconfig.in: Ignore non-option arguments, for
24601 compatibility with older versions (before 2010-06-12) which did the
24602 same. In particular, this makes it easier to ship an update-grub
24603 wrapper which is compatible with that used with GRUB Legacy (Debian
24606 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24608 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
24609 for manual page generation.
24611 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24613 * po/POTFILES: Remove leftover commands/handler.c.
24615 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
24617 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
24618 left this script non-functional.
24620 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
24622 * docs/man/grub-emu.h2m: New file.
24624 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
24626 * docs/grub.texi (Commands): Document reduced command set in rescue
24628 (cpuid): New section.
24630 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
24632 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
24633 new partition naming style.
24634 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
24636 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
24638 Add "-o grub.iso" like cmdline options support.
24640 * util/grub-install.in: Improve cmdline option parsing.
24641 * util/grub-mkconfig.in: Likewise.
24642 * util/grub-mkrescue.in: Likewise.
24643 * util/grub-reboot.in: Likewise.
24644 * util/grub-set-default.in: Likewise.
24645 * util/i386/efi/grub-install.in: Likewise.
24646 * util/ieee1275/grub-install.in: Likewise.
24647 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24649 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
24651 * .bzrignore: Ignore 41_custom.
24653 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24655 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
24657 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
24659 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
24660 prototype declarations.
24662 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
24663 generating fs, partmap, and video lists.
24664 * include/grub/fs.h (grub_fs_register): Omit prototype if
24665 GRUB_LST_GENERATOR is defined.
24666 * include/grub/partition.h (grub_partition_map_register): Likewise.
24667 * include/grub/video.h (grub_video_register): Likewise.
24669 2010-06-12 Javier Martín <lordhabbit@gmail.com>
24671 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
24673 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24675 * util/grub-mkrescue.in: Support --xorriso argument.
24677 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24679 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
24680 Suggested by: Thomas Schmitt.
24682 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24684 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
24685 Suggested by: Thomas Schmitt.
24687 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24689 custom.cfg support.
24691 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
24692 * util/grub.d/41_custom.in: New file.
24694 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
24696 * util/grub-mkrescue.in (make_image): Remove sh module, which has
24697 been merged back into normal.
24699 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
24701 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
24702 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
24704 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
24706 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
24707 when generating manual pages.
24708 * docs/man/grub-bin2h.h2m: New file.
24709 * docs/man/grub-editenv.h2m: New file.
24710 * docs/man/grub-fstest.h2m: New file.
24711 * docs/man/grub-install.h2m: New file.
24712 * docs/man/grub-macho2img.h2m: New file.
24713 * docs/man/grub-mkconfig.h2m: New file.
24714 * docs/man/grub-mkdevicemap.h2m: New file.
24715 * docs/man/grub-mkfont.h2m: New file.
24716 * docs/man/grub-mkimage.h2m: New file.
24717 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
24718 * docs/man/grub-mkrelpath.h2m: New file.
24719 * docs/man/grub-mkrescue.h2m: New file.
24720 * docs/man/grub-ofpathname.h2m: New file.
24721 * docs/man/grub-pe2elf.h2m: New file.
24722 * docs/man/grub-probe.h2m: New file.
24723 * docs/man/grub-reboot.h2m: New file.
24724 * docs/man/grub-script-check.h2m: New file.
24725 * docs/man/grub-set-default.h2m: New file.
24726 * docs/man/grub-setup.h2m: New file.
24728 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
24730 Use FOR_* macros instead of *_iterate whenever possible.
24732 * commands/handler.c: Removed.
24733 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
24734 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
24735 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24736 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
24737 (grub_probe_SOURCES): Remove kern/parser.c.
24738 (util/grub-script-check.c_DEPENDENCIES): Removed.
24739 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
24740 and grub_script_check_init.c.
24741 (grub_script_check_init.lst): Removed.
24742 (grub_script_check_init.h): Likewise.
24743 (grub_script_check_init.c): Likewise.
24744 (pkglib_MODULES): Remove handler.mod and sh.mod.
24745 (handler_mod_SOURCES): Removed.
24746 (handler_mod_CFLAGS): Likewise.
24747 (handler_mod_LDFLAGS): Likewise.
24748 (normal_mod_SOURCES): Remove normal/handler.c.
24749 Add script/main.c, script/script.c, script/execute.c,
24750 script/function.c, script/lexer.c, grub_script.tab.c
24751 and grub_script.yy.c.
24752 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24753 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24754 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
24755 (grub_setup_SOURCES): Remove kern/parser.c.
24756 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24757 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
24758 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24759 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24760 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24761 (grub_setup_SOURCES): Remove kern/parser.c.
24762 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24763 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
24764 * include/grub/command.h (grub_command_iterate): Removed.
24765 (FOR_COMMANDS): New macro.
24766 * include/grub/dl.h (grub_dl): New member next.
24767 (grub_dl_iterate): Removed.
24768 (grub_dl_head): New variable declaration.
24769 (FOR_DL_MODULES): New macro.
24770 * include/grub/fs.h: Include list.h.
24771 (grub_fs): Make next first element.
24772 (grub_fs_list): New variable declaration.
24773 (grub_fs_register): Make inline.
24774 (grub_fs_unregister): Likewise.
24775 (grub_fs_iterate): Removed.
24776 (FOR_FILESYSTEMS): New macro.
24777 * include/grub/handler.h: Removed.
24778 * include/grub/list.h (grub_list_hook_t): Removed.
24779 (grub_list_test_t): Likewise.
24780 (grub_list_pop): Likewise.
24781 (grub_list_iterate): Likewise.
24782 (grub_list_insert): Likewise.
24783 (FOR_LIST_ELEMENTS): New macro.
24784 * include/grub/parser.h (grub_parser_class): Removed.
24785 (grub_parser_register): Likewise.
24786 (grub_parser_unregister): Likewise.
24787 (grub_parser_get_current): Likewise.
24788 (grub_parser_set_current): Likewise.
24789 (grub_register_rescue_parser): Likewise.
24790 (grub_rescue_parse_line): New function.
24791 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24792 * include/grub/script_sh.h (grub_script_function_list): New variable
24794 (FOR_SCRIPT_FUNCTIONS): New macro.
24795 (grub_script_function_iterate): Removed.
24796 (grub_normal_parse_line): New prototype.
24797 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24798 (FOR_DISABLED_TERM_INPUTS): Likewise.
24799 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24800 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24801 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24803 (grub_video_register): Inline.
24804 (grub_video_unregister): Likewise.
24805 (grub_video_adapter_list): New variable declaration.
24806 (grub_video_iterate): Removed.
24807 (FOR_VIDEO_ADAPTERS): New macro.
24808 * kern/dl.c (grub_dl_list): Removed. All users updated.
24809 (grub_dl_iterate): Removed.
24810 * kern/fs.c (grub_fs_list): Make global.
24811 (grub_fs_register): Removed.
24812 (grub_fs_unregister): Likewise.
24813 (grub_fs_iterate): Likewise.
24814 * kern/handler.c: Removed.
24815 * kern/list.c (grub_list_pop): Removed.
24816 (grub_list_iterate): Likewise.
24817 (grub_list_insert): Likewise.
24818 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24819 (grub_prio_list_insert): Don't use grub_list_insert.
24820 * kern/main.c (grub_register_rescue_parser): Don't call
24821 grub_register_rescue_parser.
24822 * kern/parser.c (grub_parser_class): Removed.
24823 (grub_parser_execute): Use grub_rescue_parse_line.
24824 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24825 (grub_rescue_parser): Removed.
24826 (grub_register_rescue_parser): Likewise.
24827 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24828 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24829 (grub_auth_check_authentication): Likewise.
24830 * normal/completion.c (iterate_command): Removed.
24831 (grub_normal_do_completion): Use FOR_COMMANDS.
24832 * normal/handler.c: Removed.
24833 * normal/main.c (read_config_file): Remove parser changing.
24834 (grub_normal_execute): Don't call read_handler_list.
24835 (grub_normal_read_line_real): Statically allocate prompt.
24836 (grub_cmdline_run): Use grub_normal_parse_line.
24837 (GRUB_MOD_FINI): Don't call free_handler_list.
24838 * normal/menu_entry.c (run): Likewise.
24839 * script/function.c (grub_script_function_list): Make global.
24840 (grub_script_function_iterate): Removed.
24841 * script/main.c (grub_normal_parse_line): Make global.
24842 (grub_sh_parser): Removed.
24843 (GRUB_MOD_INIT): Likewise.
24844 (GRUB_MOD_FINI): Likewise.
24845 * tests/lib/functional_test.c (grub_functional_test): Use
24847 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24848 (grub_test_run): Use FOR_LIST_ELEMENTS.
24849 * tests/lib/unit_test.c (main): Likewise.
24850 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24852 * util/grub-fstest.c (grub_term_input_class): Removed.
24853 (grub_term_output_class): Likewise.
24854 * util/grub-probe.c: Likewise.
24855 * util/i386/pc/grub-setup.c: Likewise.
24856 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24857 * util/grub-script-check.c (main): Don't call grub_init_all and
24859 * video/video.c (grub_video_adapter_list): Make global.
24860 (grub_video_register): Removed.
24861 (grub_video_unregister): Likewise.
24862 (grub_video_iterate): Likewise.
24864 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24866 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24867 reported by Henrique Ferreiro.
24869 2010-06-09 Robert Millan <rmh@gnu.org>
24871 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24872 ones, when both are available.
24874 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24876 Make --version uniform and avoid hard-coded program name.
24878 * util/grub-mkimage.c (main): Use `program_name' instead of
24880 * util/i386/pc/grub-setup.c (main): Likewise.
24881 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24882 * util/grub-install.in: Save the basename of $0 in $self, and use the
24883 latter in informational messages. Use the same format for --version
24884 as the binary programs.
24885 * util/grub-mkconfig.in: Likewise.
24886 * util/grub-mkrescue.in: Likewise.
24887 * util/grub-reboot.in: Likewise.
24888 * util/grub-set-default.in: Likewise.
24889 * util/i386/efi/grub-install.in: Likewise.
24890 * util/ieee1275/grub-install.in: Likewise.
24891 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24893 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24895 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24896 embedding area. Use <= instead of == when checking for non-emptiness.
24898 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24900 * configure.ac: Add `.' to the directories searched for unifont.
24902 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
24904 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24907 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
24909 * docs/grub.texi (History): Expand to cover GRUB 2.
24910 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24911 commands, not `terminal'.
24912 (serial): Likewise.
24913 (terminal_input): New section.
24914 (terminal_output): New section.
24915 (uppermem): New section (stub).
24916 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24918 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
24920 * docs/grub.texi (Security): Menu entries are unrestricted by
24921 default, not restricted to superusers as I had previously thought.
24922 Reword to account for this.
24924 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24926 * kern/emu/misc.c (device_mapper_null_log): New function.
24927 (grub_device_mapper_supported): New function.
24928 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
24930 * kern/emu/hostdisk.c (find_partition_start): Check whether
24931 device-mapper is supported before trying to use it.
24932 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
24934 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24936 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
24937 (File name syntax): Likewise.
24938 (help): --all is no longer supported in GRUB 2. Be more precise
24939 about pattern matching.
24941 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24943 * normal/completion.c (grub_normal_do_completion): When completing
24944 arguments to "set" and the current word contains an equals sign,
24945 skip to after the equals sign before starting completion.
24947 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24949 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
24951 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24953 * docs/grub.texi (Network): New section.
24954 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
24955 `(nd)' as in GRUB Legacy.
24956 (pxe_unload): New section.
24958 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24960 * docs/grub.texi (Troubleshooting): `echo' is not usually available
24961 in the rescue shell, so recommend using `set' instead. Thanks,
24964 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24966 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
24967 (password): New section.
24968 (password_pbkdf2): New section.
24969 (search): New section.
24970 (Security): New section.
24971 (Troubleshooting): New section, currently very incomplete.
24972 (Invoking grub-mkpasswd-pbkdf2): New section.
24973 (Internals): New section, currently very incomplete.
24975 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24977 * util/grub.d/00_header.in: Add some more quoting (of
24978 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
24980 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
24982 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24984 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
24985 to `count', fixing variable shadowing that broke the -c option.
24987 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
24989 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
24990 in case they contain spaces.
24992 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
24994 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
24995 "part_" to partmap module names, in line with grub-install.
24996 Reported by: Jindřich Makovička (Debian bug #584426).
24998 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
25000 * util/grub-mkimage.c: Make target-related error messages slightly
25001 more helpful; -O talks about "format". Explicitly point to the use
25002 of -O if no target is specified.
25003 Reported by: Didier Raboud (Debian bug #584415).
25005 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
25007 * INSTALL: Document several build requirements for optional features
25008 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
25010 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
25012 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
25013 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
25014 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
25016 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25018 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
25019 Thanks to Jordan Uggla for spotting this.
25021 2010-06-02 Aleš Nesrsta <starous@volny.cz>
25023 Finally make USB usable.
25025 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
25026 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
25027 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
25028 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
25029 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
25030 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
25031 (GRUB_OHCI_FSMPS): Likewise.
25032 (GRUB_OHCI_PERIODIC_START): Likewise.
25033 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
25034 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
25035 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
25036 (GRUB_OHCI_SET_PORT_RESET): Likewise.
25037 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
25038 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
25039 (grub_ohci_transaction): Likewise.
25040 (grub_ohci_transfer): Improve condition detection algorithms.
25041 Handle toggle property. Program the transactions correctly.
25042 Improve error handling. Various important fixups.
25043 (grub_ohci_portstatus): Put register writes in right order.
25044 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
25045 (grub_uhci_transfer): Don't show "failed" message on success.
25046 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
25048 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
25049 determine its size.
25050 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
25051 before initialization is completed. Use IN direction for empty
25052 transfers. Use last_trans and compute toggle.
25053 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
25054 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
25055 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
25056 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
25057 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
25058 (grub_usb_device): Increase toggle to 256.
25059 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
25060 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
25061 GRUB_USBMS_SUBCLASS_SFF8070.
25062 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
25063 (grub_scsi_inquiry): New member page and alloc_length.
25064 (grub_scsi_request_sense): New structure.
25065 (grub_scsi_request_sense_data): Likewise.
25066 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
25068 * disk/scsi.c (grub_scsi_request_sense): New function.
25069 (grub_scsi_test_unit_ready): Likewise.
25070 (grub_scsi_inquiry): Fill new fields.
25071 (grub_scsi_read_capacity): Likewise.
25072 (grub_scsi_read10): Add request sense at the end.
25073 (grub_scsi_read12): Likewise.
25074 (grub_scsi_write10): Likewise.
25075 (grub_scsi_write12): Likewise.
25076 (grub_scsi_open): Add Test Unit Ready.
25077 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
25078 Support additional subclasses. Con't clear halt yet. Activate the
25079 proper config. Calculate LUNs correctly.
25080 (grub_usbms_transfer): Various important fixups.
25082 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25084 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
25085 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
25086 (grub_ohci_fini_hw): New function.
25087 (grub_ohci_restore_hw): Likewise.
25088 (GRUB_MOD_INIT(ohci)): Register preboot hook.
25089 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
25090 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
25092 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25094 Dedicated DMA allocations.
25096 * bus/pci.c (grub_memalign_dma32): New function
25097 (grub_dma_free): Likewise.
25098 (grub_dma_get_virt): Likewise.
25099 (grub_dma_get_phys): Likewise.
25100 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
25101 (grub_ohci_pci_iter): Use dma32_alloc.
25102 (grub_ohci_transfer): Likewise.
25103 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
25104 (grub_usb_bulk_readwrite): Likewise.
25105 * include/grub/pci.h: Add declarations.
25107 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25111 * bus/cs5536.c: New file.
25112 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
25113 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
25114 (cs5536_mod_SOURCES): New variable.
25115 (cs5536_mod_CFLAGS): Likewise.
25116 (cs5536_mod_LDFLAGS): Likewise.
25117 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
25119 (kernel_img_SOURCES): Add bus/cs5536.c.
25120 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
25122 (usb_mod_SOURCES): New variable.
25123 (usb_mod_CFLAGS): New variable.
25124 (usb_mod_LDFLAGS): New variable.
25125 (usbtest_mod_SOURCES): New variable.
25126 (usbtest_mod_CFLAGS): New variable.
25127 (usbtest_mod_LDFLAGS): New variable.
25128 (ohci_mod_SOURCES): New variable.
25129 (ohci_mod_CFLAGS): New variable.
25130 (ohci_mod_LDFLAGS): New variable.
25131 (usbms_mod_SOURCES): New variable.
25132 (usbms_mod_CFLAGS): New variable.
25133 (usbms_mod_LDFLAGS): New variable.
25134 (usb_keyboard_mod_SOURCES): New variable.
25135 (usb_keyboard_mod_CFLAGS): New variable.
25136 (usb_keyboard_mod_LDFLAGS): New variable.
25137 * include/grub/smbus.h: New file.
25138 * include/grub/cs5536.h: New file.
25140 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25142 * util/grub.d/00_header.in: Add safety check to make sure that
25143 ${locale_dir} exists before trying to probe it.
25145 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25147 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
25148 per the GNU Coding Standards; this is now too obscure to be worth
25151 (chainloader): Remove cross-reference to `SCO UnixWare'.
25153 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25155 * docs/grub.texi (Chain-loading): New section.
25156 (DOS/Windows): New section, borrowed from GRUB Legacy with details
25157 adjusted for GRUB 2.
25158 (SCO UnixWare): Likewise.
25160 (chainloader): Add reference to `Block list syntax'.
25161 (drivemap): New section.
25162 (parttool): New section.
25164 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25166 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
25168 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
25169 (Installing GRUB using grub-install): Remove reference to the grub
25170 shell; mention `grub-mkimage' and `grub-setup' instead.
25171 (Invoking grub-install): Likewise.
25172 (Interface): Add reference to `Menu entry editor'.
25173 (serial): Remove `--device' option.
25175 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25177 * docs/grub.texi (Configuration): New section, documenting
25178 configuration file generation using grub-mkconfig. I've left a slot
25179 for documenting the full shell scripting format but have not yet
25180 started on writing that up.
25181 (Invoking grub-mkconfig): New section.
25183 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25185 * docs/grub.texi (direntry): Remove grub-terminfo reference.
25186 (GNU GRUB manual): Likewise.
25187 (General commands): Update description of `terminfo' for GRUB 2.
25189 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25191 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
25192 (GRUB_MOD_INIT): Fix capitalisation.
25193 * docs/grub.texi (Command-line and menu entry commands): Document
25194 gettext and gptsync commands.
25196 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
25198 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
25199 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
25201 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
25203 Add btrfs probing support, currently only in the single-device case.
25205 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
25207 (grub_guess_root_device): Call find_root_device_from_mountinfo
25208 before looking in /dev.
25210 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25212 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
25213 GRUB_DISK_SIZE_UNKNOWN.
25214 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
25216 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
25218 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
25219 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
25220 corrupted or not synced properly.
25222 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25224 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
25225 Reported by: Seth Goldberg.
25227 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25229 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
25231 Reported by: Seth Goldberg.
25233 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25235 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
25236 Reported by: Seth Goldberg.
25238 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25240 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
25241 64-bit address as signed on MIPS.
25243 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
25245 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
25246 to the empty string.
25248 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
25250 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
25252 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
25253 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
25254 * kern/misc.c (__enable_execute_stack): Disable on
25257 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
25259 Make grub-probe work with symbolic links under /dev/mapper as well
25260 as with real block devices. The Linux world seems to be (at best)
25261 in transition here, and GRUB shouldn't get caught in the middle.
25263 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
25266 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
25268 * util/grub-script-check.c (main): Ensure defined behaviour on empty
25269 input files (in which case exit zero).
25271 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
25273 * kern/emu/misc.c (canonicalize_file_name): realpath can still
25274 return NULL for various reasons even if it has a maximum-length
25275 buffer: for example, there might be a symlink loop, or the path
25276 might exceed PATH_MAX. If this happens, return NULL.
25278 2010-05-27 Robert Millan <rmh@gnu.org>
25280 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
25281 partmap module to handle cross-partmap setups.
25282 Reported by Orestes Mas. Gràcies!
25284 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
25286 * util/grub-mkrescue.in: Initialise override_dir rather than
25287 assuming that it's unset or empty in the environment.
25289 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
25291 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
25292 variable index into p_index to suppress a warning with -Wshadow.
25294 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
25296 * INSTALL: Added flex >= 2.5.35 requirement.
25298 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25300 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
25302 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25306 * commands/i386/cmostest.c: New file.
25307 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
25308 (cmostest_mod_SOURCES): New variable.
25309 (cmostest_mod_CFLAGS): Likewise.
25310 (cmostest_mod_LDFLAGS): Likewise.
25311 * conf/i386-pc.rmk: Likewise.
25312 * docs/grub.texi (Vendor power-on keys): New section.
25313 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
25314 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
25315 and GRUB_BUTTON_CMOS_ADDRESS.
25316 * util/grub.d/00_header.in: Handle powering-on by separate button.
25318 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25320 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
25321 Removed drawing_scrollbar argument. All users updated
25323 Reported by Jo Shields
25325 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25327 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
25328 buffer since gfxterm handles double repaint.
25330 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25332 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
25333 * term/gfxterm.c (real_scroll): Likewise.
25335 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25337 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
25338 before calling BIOS.
25340 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25342 * include/grub/i18n.h: Always enable grub_gettext.
25344 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25346 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
25347 partition naming style.
25349 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
25351 * util/grub-mkconfig.in: Fix handling of -o so that it works when
25352 not the first option.
25354 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
25356 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
25358 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
25360 * util/misc.c: Move inclusion of <limits.h> to ...
25361 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
25363 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
25365 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
25366 Fix merge error in NetBSD code.
25367 (find_partition_start) [__NetBSD__]: Likewise.
25369 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
25371 Fix grub-mkrescue usage unit testing.
25373 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
25375 2010-05-18 Christian Franke <franke@computer.org>
25377 * util/grub.d/10_windows.in: Use path names instead of
25378 drive letters to prevent warning from Cygwin 1.7.
25379 Add drivemap command to menuentry if needed.
25381 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
25383 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
25384 gnumach and gnumach.gz.
25386 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25388 * include/grub/i18n.h (gettext): Inline instead of using #define.
25389 (grub_gettext): Likewise.
25392 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25394 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
25395 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
25396 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
25397 (main): Add a slash after pkglibdirroot.
25399 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25401 * util/grub-install.in: Add missing "in" keyword.
25403 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25405 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
25406 Reported by: Seth Goldberg.
25408 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25410 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
25412 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
25414 * configure.ac: Check for Linux device-mapper support.
25416 * util/hostdisk.c (device_is_mapped): New function.
25417 (find_partition_start): New function, partly broken out from
25418 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
25419 device-mapper support added.
25420 (linux_find_partition): Use find_partition_start.
25421 (convert_system_partition_to_system_disk): Add `st' argument.
25422 Support Linux /dev/mapper/* devices if device-mapper support is
25423 available; only DM-RAID devices are understood at present.
25424 (find_system_device): Add `st' argument. Pass it to
25425 convert_system_partition_to_system_disk.
25426 (grub_util_biosdisk_get_grub_dev): Pass stat result to
25427 find_system_device and convert_system_partition_to_system_disk. Use
25428 find_partition_start.
25430 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
25431 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
25432 * util/deviceiter.c [__linux__]: Define MINOR.
25433 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
25434 * util/mkdevicemap.c (grub_putchar): New function.
25435 (grub_getkey): New function.
25436 (grub_refresh): New function.
25437 (main): Set debug=all if -v -v is used.
25439 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
25441 Fix build with non-GNU libcs.
25443 * util/misc.c (canonicalize_file_name): Move to ...
25444 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
25445 grub_make_system_path_relative_to_its_root.
25447 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
25449 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
25450 we handle finding grub-mkimage. Default to finding grub-mkimage in
25451 ${bindir} with program_transform_name applied, and provide a
25452 --grub-mkimage option to override this.
25454 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25456 Remove grub-mkisofs.
25458 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
25459 (grub_mkisofs_SOURCES): Removed.
25460 (grub_mkisofs_CFLAGS): Removed.
25461 * util/mkisofs/defaults.h: Removed.
25462 * util/mkisofs/eltorito.c: Likewise.
25463 * util/mkisofs/exclude.h: Likewise.
25464 * util/mkisofs/hash.c: Likewise.
25465 * util/mkisofs/include/: Likewise.
25466 * util/mkisofs/include/fctldefs.h: Likewise.
25467 * util/mkisofs/include/mconfig.h: Likewise.
25468 * util/mkisofs/include/prototyp.h: Likewise.
25469 * util/mkisofs/include/statdefs.h: Likewise.
25470 * util/mkisofs/iso9660.h: Likewise.
25471 * util/mkisofs/joliet.c: Likewise.
25472 * util/mkisofs/match.c: Likewise.
25473 * util/mkisofs/match.h: Likewise.
25474 * util/mkisofs/mkisofs.c: Likewise.
25475 * util/mkisofs/mkisofs.h: Likewise.
25476 * util/mkisofs/msdos_partition.h: Likewise.
25477 * util/mkisofs/multi.c: Likewise.
25478 * util/mkisofs/name.c: Likewise.
25479 * util/mkisofs/rock.c: Likewise.
25480 * util/mkisofs/tree.c: Likewise.
25481 * util/mkisofs/write.c: Likewise.
25483 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25485 Unify grub-mkimage accross platforms.
25487 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
25488 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
25489 (grub_mkelfimage_SOURCES): Removed.
25490 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
25491 (util/grub-mkimage.c_DEPENDENCIES): .. this.
25492 (bin_UTILITIES): Add grub-mkimage.
25493 (grub_mkimage_SOURCES): New variable.
25494 (kernel_img_HEADERS): Remove machine/kernel.h.
25495 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
25496 (pkglib_PROGRAMS): Add kernel.img.
25497 (kernel_img_HEADERS): Add machine/kernel.h.
25498 (kernel_img_FORMAT): Removed.
25499 (bin_UTILITIES): Remove grub-mkimage.
25500 (grub_mkimage_SOURCES): Removed.
25501 (grub_mkimage_CFLAGS): Likewise.
25502 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25503 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
25504 (pkglib_PROGRAMS): Add kernel.img.
25505 (bin_UTILITIES): Remove grub-mkimage.
25506 (grub_mkimage_SOURCES): Removed.
25507 (grub_mkimage_CFLAGS): Likewise.
25508 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25509 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
25510 (pkglib_PROGRAMS): Add kernel.img.
25511 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
25512 (pkglib_PROGRAMS): Add kernel.img.
25513 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
25514 (grub_mkimage_SOURCES): Removed.
25515 (grub_mkimage_CFLAGS): Likewise.
25516 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25517 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
25518 (pkglib_PROGRAMS): Add kernel.img.
25519 (bin_UTILITIES): Remove grub-mkimage.
25520 (grub_mkimage_SOURCES): Removed.
25521 (grub_mkimage_CFLAGS): Likewise.
25522 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25523 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
25524 (grub_mkimage_SOURCES): Removed.
25525 (grub_mkimage_CFLAGS): Likewise.
25526 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25527 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
25528 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
25529 (grub_pe32_optional_header): ... this.
25530 (grub_pe64_optional_header): ... and this. All users updated.
25531 (GRUB_PE32_PE32_MAGIC): Split into ..
25532 (GRUB_PE32_PE32_MAGIC): .. this.
25533 (GRUB_PE32_PE64_MAGIC): .. and this.
25534 (GRUB_PE32_SIGNATURE_SIZE): New definition.
25535 * include/grub/elf.h (PT_GNU_STACK): New definition.
25536 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
25537 * include/grub/i386/efi/kernel.h: Likewise.
25538 * include/grub/i386/kernel.h: Likewise.
25539 * include/grub/i386/pc/kernel.h: Likewise.
25540 * include/grub/i386/qemu/boot.h: Likewise.
25541 * include/grub/mips/kernel.h: Likewise.
25542 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25543 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25544 * include/grub/powerpc/kernel.h: Likewise.
25545 * include/grub/sparc64/ieee1275/boot.h: Likewise.
25546 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25547 * include/grub/sparc64/kernel.h: Likewise.
25548 * include/grub/x86_64/efi/kernel.h: Likewise.
25549 * include/grub/x86_64/kernel.h: Likewise.
25550 * include/grub/offsets.h: New file.
25551 * include/grub/kernel.h (grub_module_info): Split into ...
25552 (grub_module_info32): ... this.
25553 (grub_module_info64): ... and this.
25554 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
25555 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
25556 (grub_boot_blocklist): Moved from here ...
25557 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
25558 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
25559 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
25560 * include/grub/types.h (grub_target_to_host16): Removed.
25561 (grub_target_to_host32): Likewise.
25562 (grub_target_to_host64): Likewise.
25563 (grub_host_to_target16): Likewise.
25564 (grub_host_to_target32): Likewise.
25565 (grub_host_to_target64): Likewise.
25566 (grub_host_to_target_addr): Likewise.
25568 Support grub-mkrescue for efi, coreboot and qemu.
25570 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
25571 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
25572 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
25573 * util/grub-mkrawimage.c: Moved from here ...
25574 * util/grub-mkimage.c: ... here. All users updated.
25575 (ALIGN_ADDR): Use image_target.
25576 (TARGET_NO_FIELD): New const.
25577 (image_target_desc): New type.
25578 (image_targets): New array.
25579 (grub_target_to_host64): Use image_target.
25580 (grub_target_to_host32): Likewise.
25581 (grub_target_to_host16): Likewise.
25582 (grub_host_to_target64): Likewise.
25583 (grub_host_to_target32): Likewise.
25584 (grub_host_to_target16): Likewise.
25585 (grub_host_to_target_addr): Likewise.
25586 (generate_image): Handle multiimage.
25587 (main): Require -O parameter. All users updated.
25588 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
25589 util/efi/grub-mkimage.c
25590 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
25591 New option --rom-directory.
25593 * util/i386/efi/grub-mkimage.c: Removed.
25594 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
25595 (grub_target_to_host32): Likewise.
25596 (grub_target_to_host64): Likewise.
25597 (grub_host_to_target16): Likewise.
25598 (grub_host_to_target32): Likewise.
25599 (grub_host_to_target64): Likewise.
25600 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
25601 (grub_target_to_host32): Likewise.
25602 (grub_target_to_host64): Likewise.
25603 (grub_host_to_target16): Likewise.
25604 (grub_host_to_target32): Likewise.
25605 (grub_host_to_target64): Likewise.
25607 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
25609 Source tree is reorganized for emu build.
25611 * include/grub/util/console.h: Move from here...
25612 * include/grub/emu/console.h: ...to here.
25613 * include/grub/util/getroot.h: Move from here...
25614 * include/grub/emu/getroot.h: ...to here.
25615 * include/grub/util/hostdisk.h: Move from here...
25616 * include/grub/emu/hostdisk.h: ...to here.
25617 * util/console.c: Move from here...
25618 * kern/emu/console.c: ...to here.
25619 * util/getroot.c: Move from here...
25620 * kern/emu/getroot.c: ...to here.
25621 * util/grub-emu.c: Move from here...
25622 * kern/emu/main.c: ...to here.
25623 * util/hostdisk.c: Move from here...
25624 * kern/emu/hostdisk.c: ...to here.
25625 * util/hostfs.c: Move from here...
25626 * kern/emu/hostfs.c: ...to here.
25627 * util/mm.c: Move from here...
25628 * kern/emu/mm.c: ...to here.
25629 * util/pci.c: Move from here...
25630 * bus/emu/pci.c: ...to here.
25631 * util/sdl.c: Move from here...
25632 * video/emu/sdl.c: ...to here.
25633 * util/time.c: Move from here...
25634 * kern/emu/time.c: ...to here.
25635 * util/usb.c: Move from here...
25636 * bus/usb/emu/usb.c: ...to here.
25638 * include/grub/emu/misc.h: New header for grub-emu functions.
25639 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
25641 * conf/any-emu.rmk: Rule updates for above renames.
25642 * conf/common.rmk: Likewise.
25643 * conf/i386-pc.rmk: Likewise.
25644 * conf/i386-qemu.rmk: Likewise.
25645 * conf/mips.rmk: Likewise.
25646 * conf/sparc64-ieee1275.rmk: Likewise.
25647 * conf/x86-efi.rmk: Likewise.
25649 * disk/lvm.h: #include updates for above renames.
25650 * util/grub-mkrelpath.c: Likewise.
25651 * util/grub-probe.c: Likewise.
25652 * util/i386/pc/grub-setup.c: Likewise.
25653 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25654 * kern/emu/console.c: Likewise.
25655 * kern/emu/getroot.c: Likewise.
25656 * kern/emu/hostdisk.c: Likewise.
25657 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
25659 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
25660 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
25661 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
25662 * util/misc.c: Remove grub-emu functions.
25664 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
25667 Reported by: Thorsten Grützmacher.
25669 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
25671 (circprog_set_property): Register and unregister timeout hook.
25672 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
25673 (label_destroy): Free template. and unregister hook.
25674 (label_set_state): New function.
25675 (label_set_property): Handle templates and hooks.
25676 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
25678 (progress_bar_set_property): Register and unregister timeout hook.
25679 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
25680 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
25681 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
25682 (update_timeout_visit): Removed.
25683 (update_timeouts): New function.
25684 (redraw_timeouts): Likewise.
25685 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
25686 (grub_gfxmenu_clear_timeout): Likewise.
25687 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
25688 (grub_gfxmenu_timeout_notify): Likewise.
25689 (grub_gfxmenu_timeout_notifications): New external variable.
25690 (grub_gfxmenu_timeout_register): New function.
25691 (grub_gfxmenu_timeout_unregister): Likewise.
25693 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25695 Transform (broken) vga terminal into (working) vga video driver.
25697 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
25698 video/i386/pc/vga.c.
25699 * include/grub/video.h (grub_video_driver_id):
25700 Add GRUB_VIDEO_DRIVER_VGA.
25701 * term/i386/pc/vga.c: Renamed to ...
25702 * video/i386/pc/vga.c: ...this
25703 (DEBUG_VGA): Removed.
25704 (CHAR_WIDTH): Likewise.
25705 (CHAR_HEIGHT): Likewise.
25706 (TEXT_WIDTH): Likewise.
25707 (TEXT_HEIGHT): Likewise.
25708 (DEFAULT_FG_COLOR): Likewise.
25709 (DEFAULT_BG_COLOR): Likewise.
25710 (colored_char): Likewise.
25713 (cursor_state): Likewise.
25714 (fg_color): Likewise.
25715 (bg_color): Likewise.
25716 (text_buf): Likewise.
25719 (framebuffer): New variable.
25720 (set_read_map): Disabled.
25721 (setup): New variable.
25722 (is_target): Likewise.
25723 (grub_vga_mod_init): Likewise.
25724 (grub_vga_mod_fini): Likewise.
25725 (check_vga_mem): Likewise.
25726 (write_char): Likewise.
25727 (write_cursor): Likewise.
25728 (scroll_up): Likewise.
25729 (grub_vga_putchar): Likewise.
25730 (grub_vga_getcharwidth): Likewise.
25731 (grub_vga_getwh): Likewise.
25732 (grub_vga_getxy): Likewise.
25733 (grub_vga_gotoxy): Likewise.
25734 (grub_vga_cls): Likewise.
25735 (grub_vga_setcolorstate): Likewise.
25736 (grub_vga_setcursor): Likewise.
25737 (grub_video_vga_init): New function.
25738 (grub_video_vga_setup): Likewise.
25739 (grub_video_vga_fini): Likewise.
25740 (update_target): Likewise.
25741 (grub_video_vga_blit_bitmap): Likewise.
25742 (grub_video_vga_blit_render_target): Likewise.
25743 (grub_video_vga_set_active_render_target): Likewise.
25744 (grub_video_vga_get_active_render_target): Likewise.
25745 (grub_video_vga_swap_buffers): Likewise.
25746 (grub_video_vga_set_palette): Likewise.
25747 (grub_video_vga_get_info_and_fini): Likewise.
25748 (grub_vga_term): Removed.
25749 (grub_video_vga_adapter): New variable.
25750 (GRUB_MOD_INIT): Register a video driver instead of terminal.
25751 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
25753 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25755 * video/readers/jpeg.c: Indented.
25757 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25759 Various jpeg cleanups.
25761 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
25762 (grub_jpeg_decode_quan_table): Use sizeof.
25763 (grub_jpeg_decode_du): Use ARRAY_SIZE.
25765 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
25767 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
25768 tables. Ignore non-last ac bit.
25769 (grub_jpeg_decode_quan_table): Likewise.
25771 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25773 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
25774 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
25775 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25776 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
25777 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
25778 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
25780 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25782 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
25785 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25787 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
25789 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25791 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25794 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25796 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25799 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25801 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25804 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25806 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25808 2010-05-01 Christian Franke <franke@computer.org>
25810 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25811 Remove broken Cygwin path conversion.
25812 * util/misc.c: [__CYGWIN__] Add include and define.
25813 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25815 (make_system_path_relative_to_its_root): Simplify loop, replace early
25817 [__CYGWIN__] Add conversion to win32 path.
25818 Include "/" case in trailing slash removal.
25820 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25822 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25823 Reported by: Seth Goldberg
25825 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25827 * commands/help.c (grub_cmd_help): Fix a typo.
25828 Reported by: Seth Goldberg
25830 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25832 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25834 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25835 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25836 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25837 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25838 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25839 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25840 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25841 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25842 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25843 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25844 * normal/context.c (GRUB_MOD_INIT): Likewise.
25845 * normal/main.c (GRUB_MOD_INIT): Likewise.
25846 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25847 * term/serial.c (GRUB_MOD_INIT): Likewise.
25848 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25850 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25852 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25855 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25857 * commands/iorw.c: New file.
25858 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25859 (iorw_mod_SOURCES): New variable.
25860 (iorw_mod_CFLAGS): Likewise.
25861 (iorw_mod_LDFLAGS): Likewise.
25863 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25867 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25868 * normal/main.c (hotkey_aliases): New variable.
25869 (grub_normal_add_menu_entry): Parse "--hotkey".
25870 * normal/menu_text.c (run_menu): Handle hotkeys.
25872 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25874 * kern/i386/coreboot/init.c (grub_machine_init): Call
25875 grub_machine_mmap_init on qemu.
25877 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25879 * boot/i386/qemu/boot.S: Add a missing .code16.
25881 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25883 Use LBIO on coreboot.
25885 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25886 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25887 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25889 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25890 grub_machine_mmap_init on coreboot.
25891 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25892 GRUB_LINUXBIOS_MEMBER_LINK.
25893 (grub_machine_mmap_iterate): Fix declaration.
25894 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25896 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25898 Split coreboot and multiboot ports.
25900 * conf/i386-multiboot.rmk: New file.
25901 * configure.ac: Add multiboot port.
25902 * include/grub/i386/multiboot/boot.h: New file.
25903 * include/grub/i386/multiboot/console.h: Likewise.
25904 * include/grub/i386/multiboot/init.h: Likewise.
25905 * include/grub/i386/multiboot/kernel.h: Likewise.
25906 * include/grub/i386/multiboot/loader.h: Likewise.
25907 * include/grub/i386/multiboot/memory.h: Likewise.
25908 * include/grub/i386/multiboot/serial.h: Likewise.
25909 * include/grub/i386/multiboot/time.h: Likewise.
25910 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25911 * loader/multiboot.c: Likewise.
25912 * loader/multiboot_mbi2.c: Likewise.
25913 * util/grub-mkrescue.in: Generate multiboot rescue.
25915 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25917 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25919 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25921 Merge handling of input and output terminals. Fix a hang.
25923 * commands/terminal.c (abstract_terminal): New struct.
25924 (handle_command): New function. Based on grub_cmd_terminal_input.
25925 (grub_cmd_terminal_input): Use handle_command.
25926 (grub_cmd_terminal_output): Use handle_command.
25928 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
25930 Fix comment handling.
25932 * tests/grub_script_comments.in: New testcase.
25933 * conf/tests.rmk: Rules for new testcase.
25934 * script/yylex.l: Updated flex rules.
25936 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
25938 * docs/grub.texi (play): Document that zero pitches produce rests.
25939 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
25942 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25944 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
25947 2010-04-26 Christian Franke <franke@computer.org>
25949 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
25950 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
25951 (grub_get_prefix): Remove function.
25952 * util/grub-emu.c (main): Replace grub_get_prefix () call by
25953 make_system_path_relative_to_its_root ().
25954 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
25956 2010-04-24 Christian Franke <franke@computer.org>
25958 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
25959 (kernel_img_LDFLAGS): Remove -static-libgcc.
25961 2010-04-24 Christian Franke <franke@computer.org>
25963 * configure.ac: Do not CHECK_BSS_START_SYMBOL
25964 and CHECK_END_SYMBOL if grub-emu is built.
25965 Unset TARGET_OBJ2ELF if grub-emu is built
25966 without module support.
25968 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
25972 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
25973 (grub_fstest_SOURCES): Likewise.
25974 (pkglib_MODULES): Add nilfs2.mod.
25975 (nilfs2_mod_SOURCES): New variable.
25976 (nilfs2_mod_CFLAGS): Likewise.
25977 (nilfs2_mod_LDFLAGS): Likewise.
25978 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25979 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25980 * fs/nilfs2.c: New file.
25982 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
25984 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
25987 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
25989 Add grub-mkconfig support for NetBSD.
25991 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
25992 * util/grub-mkconfig.in: export new NetBSD specific variables.
25993 * po/POTFILES-shell: added 10_netbsd.in.
25994 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
25996 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
25998 Fix emu build with grub-emu-pci and grub-emu-modules.
26000 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
26002 * include/grub/libpciaccess.h: New file.
26003 * conf/any-emu.rmk: Update kernel headers for emu build.
26005 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26007 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
26009 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26011 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
26013 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26015 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
26016 Retrieve chosen/bootpath if bootpath isn't hardcoded.
26017 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
26018 util/ieee1275/ofpath.c.
26019 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
26020 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
26021 * include/grub/sparc64/ieee1275/boot.h
26022 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
26023 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
26024 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
26025 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
26027 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
26028 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
26029 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
26032 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
26034 * util/grub-mkconfig.in: Corrected two == equality tests.
26035 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
26036 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
26037 expect a number appended to it.
26038 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
26039 expects a number appended to it.
26041 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26043 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
26045 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26047 * util/hostdisk.c (make_device_name): Change to new partition naming.
26049 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
26051 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
26053 2010-04-17 Christian Franke <franke@computer.org>
26055 * Makefile.in: Add missing localedir setting.
26057 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
26059 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
26060 mistake in r2156. Noticed by Anthony Fok.
26062 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
26064 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26066 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
26068 Fix a spurious, uninitialized variable warning.
26070 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
26071 Initialize variable, shdr.
26072 (grub_freebsd_load_elfmodule): Likewise.
26073 (grub_freebsd_load_elf_meta): Likewise.
26075 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
26077 Fix for escaped dollar in double quoted strings.
26079 * script/yylex.l: Updated flex rules.
26080 * conf/tests.rmk: Rule for new testcase.
26081 * tests/grub_script_dollar.in: New testcase.
26083 2010-04-13 Carles Pina i Estany <carles@pina.cat>
26084 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
26086 Enclose all translated strings in grub.cfg in single quotes, and
26087 escape them appropriately (Ubuntu bug #552921).
26089 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
26090 * util/grub.d/10_hurd.in: Use it.
26091 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26092 * util/grub.d/10_linux.in (linux_entry): Likewise.
26094 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26096 Fix cygwin compilation.
26098 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
26099 * include/grub/misc.h (__register_frame_info)
26100 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
26101 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26102 * kern/misc.c (__register_frame_info)
26103 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
26104 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26106 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26108 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
26110 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26112 Unify libgcc processing.
26114 * Makefile.in (kernel_img_LDFLAGS): New variable.
26115 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
26116 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
26118 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
26119 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
26120 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
26121 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
26122 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
26123 overwriting. Remove -lgcc and -static-libgcc
26124 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
26125 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26126 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26127 (kernel_img_LDFLAGS): Append instead of overwriting.
26128 Remove -lgcc and -static-libgcc
26129 * conf/sparc64-ieee1275.rmk: Likewise.
26130 * include/grub/powerpc/libgcc.h: Move to ...
26131 * include/grub/libgcc.h: .. this.
26132 * include/grub/libgcc.h: Don't export most of the function on x86.
26133 (__bswapsi2): New export.
26134 (__bswapdi2): Likewise.
26135 * include/grub/mips/libgcc.h: Removed.
26136 * include/grub/sparc64/libgcc.h: Likewise.
26138 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26140 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
26141 disk_info_msg (conflicts with gettexting into languages with cases).
26143 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
26145 Add grub-probe support for NetBSD.
26147 * util/getroot.c (find_root_device): Convert block device to
26148 character device on NetBSD.
26149 * util/probe.c (probe): Require character device on NetBSD.
26150 * util/hostdisk.c: NetBSD specific headers.
26151 (configure_device_driver): new function to tune device driver
26152 parameters (currently only for NetBSD floppy driver).
26153 (grub_util_biosdisk_open): NetBSD specific code (get disk size
26154 via disklabel ioctl).
26155 (open_device): call configure_device_driver on NetBSD.
26156 (convert_system_partition_to_system_disk): NetBSD specific code.
26157 (device_is_wholedisk): Likewise.
26158 (grub_util_biosdisk_get_grub_dev): Likewise.
26159 (make_device_name): Fixed a typo in bsd_part_str.
26160 * configure.ac: check for opendisk() and getrawpartition() on
26161 NetBSD and set LIBUTIL.
26162 * Makefile.in: add LIBUTIL to LIBS.
26164 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26168 * util/grub-script-check.c: Better help message.
26170 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26174 * configure.ac: Flex version check.
26175 * conf/common.rmk: Add -Wno-error to sh.mod.
26176 * script/yylex.l: Remove all #pragma.
26178 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26180 * include/grub/util/misc.h (canonicalise_file_name): Add missing
26182 Reported by: Seth Goldberg.
26184 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26186 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
26187 Rename "module" to "module2".
26188 Reported by: Seth Goldberg.
26190 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26192 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
26194 Reported by: Seth Goldberg.
26196 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26198 * lib/posix_wrap/locale.h: Add missing file.
26199 Reported by: Seth Goldberg.
26201 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26203 grub-emu module load support.
26205 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
26206 NO_DYNAMIC_MODULES switched to this.
26207 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
26208 (CFLAGS): Likewise.
26209 * conf/any-emu.rmk: Generate symlist.
26210 (kernel_img_HEADERS): Add util/datetime.h.
26211 (kernel_img_HEADERS) [sdl]: Add sdl.h.
26212 (kernel_img_HEADERS) [libusb]: Add libusb.h.
26213 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
26214 kern/$(target_cpu)/cache.S.
26215 * configure.ac (grub-emu-modules): New option.
26216 * genmk.rb: Handle multiple source lists.
26217 * include/grub/sdl.h: New file.
26218 * include/grub/libusb.h: Likewise.
26219 * util/grub-emu.c (main): Hanle (host) root.
26220 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
26221 GRUB_ERR_UNKNOWN_DEVICE.
26222 * util/misc.c: Move mm functions to ...
26223 * util/mm.c: ... here. All users updated.
26225 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26227 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
26228 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
26230 (maintainer-clean): Remove libgcrypt-grub.
26232 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26234 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
26236 2010-04-09 EFI Coder <eficoder@hotmail.com>
26238 * normal/menu_text.c (print_message): Clean up the message and show
26239 the Fn information when on EFI
26240 * term/efi/console.c (grub_console_checkkey): Add F4 support.
26242 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26244 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
26246 * normal/crypto.c (read_crypto_list): Likewise.
26247 * normal/dyncmd.c (read_command_list): Likewise.
26248 * normal/term.c (read_terminal_list): Likewise.
26249 * normal/main.c (read_lists): Use explicit prefix.
26250 (read_lists_hook): Use read_lists.
26251 (grub_normal_execute): Likewise.
26253 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26255 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
26256 Reported by: Thomas Schmitt.
26257 Add -no-emul-boot to grub-mkisofs parameters.
26259 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26261 * font/font.c: Indented.
26263 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26265 Elif support to GRUB script (by Deepak Vankadaru).
26267 * tests/grub_script_if.in: New testcase.
26268 * conf/tests.rmk: Rule for new testcase.
26269 * script/parser.y: Grammar rules for elif.
26271 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26273 While and until loops support to GRUB script.
26275 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
26276 (grub_script_create_cmdwhile): New function prototype.
26277 (grub_script_execute_cmdwhile): New function prototype.
26278 * script/execute.c (grub_script_execute_cmdwhile): New function.
26279 * script/parser.y (command): New commands.
26280 (whilecmd): New grammar rule.
26281 (untilcmd): New grammar rule.
26282 * script/script.c (grub_script_create_cmdwhile): New function.
26283 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
26286 * tests/grub_script_while1.in: New testcase.
26287 * conf/tests.rmk: Rule for new testcase.
26289 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26291 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
26294 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
26296 GRUB_BACKGROUND support.
26298 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
26299 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
26301 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26303 Load fonts and modules for gfxmenu in grub-mkconfig.
26304 Idea by: Mario Vazquez
26306 * util/grub.d/00_header.in: Load pf2 and image modules.
26308 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26310 grub-mkconfig multiple terminal support.
26312 * util/grub-mkconfig.in: Handle multiple terminals correctly.
26313 * util/grub.d/00_header.in: Likewise.
26315 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26317 * Makefile.in: Specify files explicitly instead of using $< and $@ since
26318 we use cd $(srcdir).
26320 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
26322 * util/grub.d/10_linux.in: Only use the first word of
26323 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
26324 spaces in GRUB_DISTRIBUTOR.
26325 * util/grub.d/10_kfreebsd.in: Likewise.
26326 * util/grub.d/10_hurd.in: Likewise.
26328 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
26330 Fix unit testing framework for Qemu 0.12.
26332 * tests/util/grub-shell.in: Remove -serial stdio option.
26334 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
26336 POSIX header file wrappers.
26338 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
26340 * lib/posix_wrap/ctype.h: Likewise.
26341 * lib/posix_wrap/errno.h: Likewise.
26342 * lib/posix_wrap/langinfo.h: Likewise.
26343 * lib/posix_wrap/limits.h: Likewise.
26344 * lib/posix_wrap/localcharset.h: Likewise.
26345 * lib/posix_wrap/stdint.h: Likewise.
26346 * lib/posix_wrap/stdio.h: Likewise.
26347 * lib/posix_wrap/stdlib.h: Likewise.
26348 * lib/posix_wrap/string.h: Likewise.
26349 * lib/posix_wrap/sys/types.h: Likewise.
26350 * lib/posix_wrap/unistd.h: Likewise.
26351 * lib/posix_wrap/wchar.h: Likewise.
26352 * lib/posix_wrap/wctype.h: Likewise.
26353 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
26354 (grub_script.yy.h): Likewise.
26355 * script/yylex.l: Remove POSIX emulation #defines.
26356 * Makefile.in (POSIX_CFLAGS): New variable.
26357 (GNULIB_UTIL_CFLAGS): Likewise.
26361 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
26362 (regexp_mod_SOURCES): New variable.
26363 (regexp_mod_CFLAGS): Likewise.
26364 (regexp_mod_LDFLAGS): Likewise.
26365 * commands/regexp.c: New file.
26366 * gnulib/regcomp.c: New file. Imported from gnulib.
26367 * gnulib/regex.c: Likewise.
26368 * gnulib/regex_internal.c: Likewise.
26369 * gnulib/regex_internal.h: Likewise.
26370 * gnulib/regexec.c: Likewise.
26371 * gnulib/regex.h: Likewise.
26373 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26375 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
26376 unsupported video mode types.
26378 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26380 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
26382 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26384 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
26385 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
26387 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
26389 Remove unused grub_vga_get_font.
26391 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
26392 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
26394 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26396 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
26397 * include/grub/misc.h: Likewise.
26399 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26401 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
26402 for which failure is fatal.
26404 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26406 * util/grub-install.in: Use mkdir -p to create grub directory.
26407 * util/i386/efi/grub-install.in: Likewise.
26408 * util/ieee1275/grub-install.in: Likewise.
26410 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26412 * Makefile.in (LEX): new variable.
26414 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26416 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
26417 `=' and added double quotes on operands of this equality test.
26419 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26421 * Makefile.in (uninstall): Remove a leftover debug echo.
26422 Reported by: Grégoire Sutre
26424 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26426 MIPS multiboot2 support.
26428 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
26429 (multiboot2_mod_SOURCES): New variable.
26430 (multiboot2_mod_CFLAGS): Likewise.
26431 (multiboot2_mod_LDFLAGS): Likewise.
26432 (multiboot2_mod_ASFLAGS): Likewise.
26433 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
26435 (MULTIBOOT_ENTRY_REGISTER): Likewise.
26436 (MULTIBOOT_MBI_REGISTER): Likewise.
26437 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
26438 (MULTIBOOT_ELF32_MACHINE): Likewise.
26439 (MULTIBOOT_ELF64_MACHINE): Likewise.
26440 * include/grub/mips/multiboot.h: New file.
26441 * include/grub/video.h (grub_video_driver_id): New type
26442 GRUB_VIDEO_DRIVER_SM712.
26443 (grub_video_get_info_and_fini): Export.
26444 (grub_video_get_palette): Likewise.
26445 (grub_video_get_driver_id): Likewise.
26446 * include/multiboot2.h: Resynced with spec.
26447 * loader/i386/multiboot.c: Moved from here ...
26448 * loader/multiboot.c: ... here. All users updated.
26449 (grub_multiboot_boot): Use platform-specific macros.
26450 * loader/i386/multiboot_elfxx.c: Moved from here ...
26451 * loader/multiboot_elfxx.c: ... here. All users updated.
26452 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
26453 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
26454 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
26456 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
26458 Import gnulib argp module.
26460 * gnulib/argp-ba.c: New file.
26461 * gnulib/argp-eexst.c: Likewise.
26462 * gnulib/argp-fmtstream.c: Likewise.
26463 * gnulib/argp-fmtstream.h: Likewise.
26464 * gnulib/argp-fs-xinl.c: Likewise.
26465 * gnulib/argp-help.c: Likewise.
26466 * gnulib/argp-namefrob.h: Likewise.
26467 * gnulib/argp-parse.c: Likewise.
26468 * gnulib/argp-pin.c: Likewise.
26469 * gnulib/argp-pv.c: Likewise.
26470 * gnulib/argp-pvh.c: Likewise.
26471 * gnulib/argp-version-etc.c: Likewise.
26472 * gnulib/argp-version-etc.h: Likewise.
26473 * gnulib/argp-xinl.c: Likewise.
26474 * gnulib/argp.h: Likewise.
26476 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26478 * kern/device.c (grub_device_iterate): Clear errors after failed
26481 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26483 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
26484 returned by firmware.
26486 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
26488 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
26489 compilation on coreboot and qemu
26491 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26493 * include/multiboot2.h: Resync with spec.
26495 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26497 Multiboot2 tag support
26499 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
26500 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
26501 Remove loader/multiboot_loader.c.
26502 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
26503 (grub_multiboot2_real_boot): Likewise.
26504 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
26505 (grub_get_multiboot_mmap_count): New proto.
26506 (grub_fill_multiboot_mmap): Likewise.
26507 (grub_multiboot_set_video_mode): Likewise.
26508 (grub_multiboot_set_console): Likewise.
26509 (grub_multiboot_load): Likewise.
26510 (grub_multiboot_load_elf): Likewise.
26511 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
26512 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
26513 * include/multiboot.h: Resynced with specification.
26514 * include/multiboot2.h: Resynced with specification.
26515 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
26516 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
26517 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
26518 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
26520 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
26521 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
26522 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
26524 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
26526 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
26527 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
26529 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
26530 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
26531 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
26533 * loader/i386/multiboot_mbi2.c: New file.
26535 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26537 Resync with gnulib.
26539 * Makefile.in (GNULIB_CFLAGS): New variable.
26540 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
26541 (grub_script_check_CFLAGS): New variable.
26542 * gnulib/alloca.h: Resync with gnulib.
26543 * gnulib/error.c: Likewise.
26544 * gnulib/error.h: Likewise.
26545 * gnulib/fnmatch.c: Likewise.
26546 * gnulib/fnmatch_loop.c: Likewise.
26547 * gnulib/getdelim.c: Likewise.
26548 * gnulib/getline.c: Likewise.
26549 * gnulib/getopt.c: Likewise.
26550 * gnulib/getopt1.c: Likewise.
26551 * gnulib/getopt_int.h: Likewise.
26552 * gnulib/gettext.h: Likewise.
26553 * gnulib/progname.c: Likewise.
26554 * gnulib/progname.h: Likewise.
26556 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
26558 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
26559 which is the case with --disabled-nls.
26561 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
26562 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
26563 * util/misc.c: Likewise.
26564 * util/mkisofs/mkisofs.c: Likewise.
26565 * util/mkisofs/mkisofs.h: Likewise.
26567 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26569 Simplify Apple CC support.
26571 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
26572 Add 0 byte at the end not to have a symbol with empty target.
26573 * mmap/i386/pc/mmap_helper.S: Likewise.
26574 * genmk.rb: Ignore errors 2030 and 2050.
26575 * kern/i386/pc/startup.S: Use LOCAL when possible.
26577 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
26579 Testcase and the fix for final semicolon on cmdline.
26581 * tests/grub_script_final_semicolon.in: New testcase.
26582 * conf/tests.rmk: Rules for the new testcase.
26583 * script/parser.y: Grammar fix.
26585 2010-03-26 BVK Chaitanya <bvk@localhost>
26587 Blank lines testcase for GRUB script.
26589 * tests/grub_script_blanklines.in: New testcase.
26590 * conf/tests.rmk: Rules for the new testcase.
26592 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26594 Don't use __FILE__.
26596 * genmk.rb: Add -DGRUB_FILE to all C targets.
26597 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
26598 * include/grub/list.h: Likewise.
26599 * include/grub/misc.h: Likewise.
26600 * include/grub/mm.h: Likewise.
26601 * include/grub/test.h: Likewise.
26602 * kern/mm.c: Likewise.
26603 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26605 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26607 Sunpc partitions support.
26609 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
26610 (grub_fstest_SOURCES): Likewise.
26611 (pkglib_MODULES): Add part_sunpc.mod.
26612 (part_sunpc_mod_SOURCES): New variable.
26613 (part_sunpc_mod_CFLAGS): Likewise.
26614 (part_sunpc_mod_LDFLAGS): Likewise.
26615 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
26616 * partmap/sunpc.c: New file.
26618 2010-03-26 BVK Chaitanya <bvk@localhost>
26620 For loop support to GRUB script.
26622 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
26623 (grub_script_create_cmdfor): New function prototype.
26624 (grub_script_execute_cmdfor): New function prototype.
26625 * script/execute.c (grub_script_execute_cmdfor): New function.
26626 * script/parser.y (command): New for command.
26627 (forcmd): New grammar rule.
26628 * script/script.c (grub_script_create_cmdfor): New function.
26629 * util/grub-script-check.c (grub_script_execute_cmdfor): New
26631 * tests/grub_script_for1.in: New testcase.
26632 * conf/tests.rmk: Rules for new testcase.
26634 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26638 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
26639 'partition' is NULL, grub_partition_get_start already does that.
26640 * commands/loadenv.c (check_blocklists): Likewise.
26641 (write_blocklists): Likewise.
26642 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
26643 (grub_fstest_SOURCES): Likewise.
26644 (pkglib_MODULES): Add part_bsd.mod.
26645 (part_bsd_mod_SOURCES): New variable.
26646 (part_bsd_mod_CFLAGS): Likewise.
26647 (part_bsd_mod_LDFLAGS): Likewise.
26648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
26649 (grub_emu_SOURCES): Likewise.
26650 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26651 * include/grub/bsdlabel.h: New file.
26652 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
26654 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
26655 (grub_partition_map_list): New variable.
26656 (grub_partition_map_register): Inline.
26657 (grub_partition_map_unregister): Likewise.
26658 (FOR_PARTITION_MAPS): New macro.
26659 (grub_partition_map_iterate): Removed.
26660 (grub_partition_get_start): Handle nested partitions.
26661 * include/grub/msdos_partition.h: Remove bsd-related entries.
26662 (grub_pc_partition): Remove.
26663 * kern/disk.c (grub_disk_close): Free partition data.
26664 (grub_disk_adjust_range): Handle nested partitions.
26665 * kern/partition.c (grub_partition_map_probe): New function.
26666 (grub_partition_probe): Parse name to number, handle subpartitions.
26667 (get_partmap): New function.
26668 (grub_partition_iterate): Handle subpartitions.
26669 (grub_partition_get_name): Likewise.
26670 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
26671 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
26672 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
26673 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
26675 (acorn_partition_map_probe): Remove.
26676 (acorn_partition_map_get_name): Likewise.
26677 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
26679 Set 'index' to 0 since there can be only one partition entry per sector.
26680 (amiga_partition_map_probe): Remove.
26681 (amiga_partition_map_get_name): Likewise.
26682 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
26684 Set 'offset' and 'index' to real positions of partitions.
26685 (apple_partition_map_probe): Remove.
26686 (apple_partition_map_get_name): Likewise.
26687 * partmap/bsdlabel.c: New file.
26688 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
26690 Allocate 'data' so it can be correctly freed.
26691 Set 'index' to offset inside sector.
26692 (gpt_partition_map_probe): Remove.
26693 (gpt_partition_map_get_name): Likewise.
26694 * partmap/msdos.c (grub_partition_parse): Remove.
26695 (pc_partition_map_iterate): Don't force raw access.
26697 Make 'ext_offset' a local variable.
26698 (pc_partition_map_probe): Remove.
26699 (pc_partition_map_get_name): Remove.
26700 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
26702 (sun_partition_map_probe): Remove.
26703 (sun_partition_map_get_name): Likewise.
26704 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
26705 (grub_pcpart_type): Likewise.
26706 * util/hostdisk.c (open_device): Handle new numbering scheme.
26707 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
26708 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
26709 * util/grub-probe.c (probe_partmap): Handle nested paritions.
26710 * util/grub-install.in: Insert all subpartition modules.
26711 * util/ieee1275/grub-install.in: Likewise.
26713 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
26715 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
26718 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
26720 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
26722 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
26724 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
26725 match where 'make install' puts them.
26726 * util/i386/efi/grub-install.in: Likewise.
26728 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
26730 * .bzrignore: Add gentrigtables, grub-script-check,
26731 grub_script_check_init.c, grub_script_check_init.h, and
26734 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
26736 * kern/parser.c: Indented.
26738 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26740 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
26742 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26744 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
26745 alpha_mask_size == 0 case.
26747 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
26749 GRUB shell lexer and parser improvements.
26751 * conf/any-emu.rmk: Build rule updates.
26752 * conf/common.rmk: Likewise.
26753 * conf/i386-coreboot.rmk: Likewise.
26754 * conf/i386-efi.rmk: Likewise.
26755 * conf/i386-ieee1275.rmk: Likewise.
26756 * conf/i386-pc.rmk: Likewise.
26757 * conf/powerpc-ieee1275.rmk: Likewise.
26758 * conf/x86_64-efi.rmk: Likewise.
26760 * configure.ac: Configure check for flex.
26762 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
26764 (grub_lexer_param): Struct member updates.
26765 (grub_parser_param): Likewise.
26766 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
26767 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
26768 (grub_script_lexer_init): Prototype update.
26769 (grub_script_lexer_record_start): Likewise.
26770 (grub_script_lexer_record_stop): Likewise.
26771 (grub_script_lexer_yywrap): New function prototype.
26772 (grub_script_lexer_fini): Likewise.
26773 (grub_script_execute_argument_to_string): Removed by...
26774 (grub_script_execute_argument_to_argv): ...better version.
26776 * script/execute.c (ROUND_UPTO): New macro.
26777 (grub_script_execute_cmdline): Out of memory fixes.
26778 (grub_script_execute_menuentry): Likewise.
26779 (grub_script_execute_argument_to_string): Removed. Update all
26781 (grub_script_execute_argument_to_argv): ...better version.
26782 * script/function.c (grub_script_function_create): Use
26783 grub_script_execute_argument_to_argv instead of
26784 grub_script_execute_argument_to_string.
26786 * script/lexer.c (check_varstate): Removed.
26787 (check_textstate): Removed.
26788 (grub_script_lexer_record_start): Likewise.
26789 (grub_script_lexer_record_stop): Likewise.
26790 (recordchar): Replaced with...
26791 (grub_script_lexer_record): ...new function.
26792 (nextchar): Removed.
26793 (grub_script_lexer_init): Rewritten.
26794 (grub_script_yylex): Rewritten.
26795 (append_newline): New function.
26796 (grub_script_lexer_yywrap): New function.
26797 (grub_script_lexer_fini): New function.
26798 (grub_script_yyerror): Sets error flag.
26800 * script/yylex.l: New file.
26801 (grub_lexer_yyfree): Wrapper for flex yyffre.
26802 (grub_lexer_yyalloc): Likewise.
26803 (grub_lexer_yyrealloc): Likewise.
26804 * script/parser.y: Refactored.
26806 * script/script.c (grub_script_arg_add): Out of memory fixes.
26807 (grub_script_add_arglist): Likewise.
26808 (grub_script_create_cmdline): Likewise.
26809 (grub_script_create_cmdmenu): Likewise.
26810 (grub_script_add_cmd): Likewise.
26811 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26812 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26815 * tests/grub_script_echo1.in: New testcase.
26816 * tests/grub_script_vars1.in: New testcase.
26817 * tests/grub_script_echo_keywords.in: New testcase.
26819 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26821 Remove some redundancy in build system.
26823 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26824 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26825 (TARGET_LDFLAGS): Add -nostdlib.
26826 (TARGET_IMG_LDFLAGS): Likewise.
26827 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26828 anything since mmap isn't available.
26829 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26831 (pkglib_MODULES): Remove reboot.mod.
26832 (reboot_mod_SOURCES): Removed.
26833 (reboot_mod_CFLAGS): Likewise.
26834 (reboot_mod_LDFLAGS): Likewise.
26835 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26836 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26837 (DEFSYMFILES): Add kernel_syms.lst.
26838 (kernel_img_HEADERS): Add common headers.
26839 (symlist.c): New target.
26840 (kernel_syms.lst): Likewise.
26841 (pkglib_MODULES): Add memdisk.mod.
26842 (memdisk_mod_SOURCES): New variable.
26843 (memdisk_mod_CFLAGS): Likewise.
26844 (memdisk_mod_LDFLAGS): Likewise.
26845 (pkglib_MODULES): Add reboot.mod.
26846 (reboot_mod_SOURCES): New variable.
26847 (reboot_mod_CFLAGS): Likewise.
26848 (reboot_mod_LDFLAGS): Likewise.
26849 (pkglib_MODULES): Add date.mod.
26850 (date_mod_SOURCES): New variable.
26851 (date_mod_CFLAGS): Likewise.
26852 (date_mod_LDFLAGS): Likewise.
26853 (pkglib_MODULES): Add datehook.mod.
26854 (datehook_mod_SOURCES): New variable.
26855 (datehook_mod_CFLAGS): Likewise.
26856 (datehook_mod_LDFLAGS): Likewise.
26857 (pkglib_MODULES): Add lsmmap.mod.
26858 (lsmmap_mod_SOURCES): New variable.
26859 (lsmmap_mod_CFLAGS): Likewise.
26860 (lsmmap_mod_LDFLAGS): Likewise.
26861 (pkglib_MODULES): Add boot.mod.
26862 (boot_mod_SOURCES): New variable.
26863 (boot_mod_CFLAGS): Likewise.
26864 (boot_mod_LDFLAGS): Likewise.
26865 * conf/i386-coreboot.rmk: Removed redundant parts.
26866 * conf/i386-ieee1275.rmk: Likewise.
26867 * conf/i386-pc.rmk: Likewise.
26868 * conf/mips-yeeloong.rmk: Likewise.
26869 * conf/mips.rmk: Likewise.
26870 * conf/powerpc-ieee1275.rmk: Likewise.
26871 * conf/sparc64-ieee1275.rmk: Likewise.
26872 * conf/x86_64-efi.rmk: Likewise.
26873 * conf/i386-coreboot.rmk: Moved qemu parts ..
26874 * conf/i386-qemu.rmk: ... here
26875 * conf/i386-efi.rmk: Moved common parts to...
26876 * conf/x86-efi.rmk: ... here.
26877 * conf/i386.rmk: Added modules common to all x86 variants.
26878 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26879 * disk/memdisk.c: Remove grub/machine/kernel.h.
26880 * gensymlist.sh.in: Include symbol.h.
26881 * hook/datehook.c: Correct module name.
26882 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26883 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26884 * include/grub/i386/efi/serial.h: New file.
26885 * include/grub/x86_64/efi/serial.h: Likewise.
26886 * util/time.c: Likewise.
26887 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26889 2010-03-14 Colin King <colin.king@ubuntu.com>
26890 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
26892 Shrink the pre-partition-table part of boot.img by eight bytes.
26894 * boot/i386/pc/boot.S (ERR): New macro.
26895 (chs_mode): Use ERR.
26896 (geometry_error): Likewise.
26897 (hd_probe_error): Remove. This is only used once, so we wrwite
26899 (read_error): Instead of printing read_error_string, just set up
26900 %si and fall through to ...
26901 (error_message): ... this new function, also used by ERR.
26903 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
26905 Speed up consecutive hostdisk operations on the same device.
26907 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26908 (grub_util_biosdisk_open): Initialise disk->data.
26909 (struct linux_partition_cache): New structure.
26910 (linux_find_partition): Cache partition start positions; these are
26911 expensive to compute on every read and write.
26912 (open_device): Cache open file descriptor in disk->data, so that we
26913 don't have to reopen it and flush the buffer cache for consecutive
26914 operations on the same device.
26915 (grub_util_biosdisk_close): New function.
26916 (grub_util_biosdisk_dev): Set `close' member.
26918 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
26919 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
26920 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26921 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26922 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
26924 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26926 Compile parts of grub-emu as modules.
26928 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
26929 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
26930 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
26931 (all-local): Add $(GRUB_EMU).
26932 (install-local): Install $(GRUB_EMU).
26933 (uninstall): Uninstall $(GRUB_EMU).
26934 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
26935 * kern/dl.c: Likewise.
26936 * commands/sleep.c: Not include machine/time.h.
26937 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
26938 (COMMON_CFLAGS): Likewise.
26939 (sbin_UTILITIES): Remove grub-emu.
26940 (grub_emu_SOURCES): Removed.
26941 (kernel_img_RELOCATABLE): New variable.
26942 (pkglib_PROGRAMS): Add kernel.img.
26943 (kernel_img_SOURCES): New variable
26944 (kernel_img_CFLAGS): Likewise.
26945 (kernel_img_LDFLAGS): Likewise.
26946 (TARGET_NO_STRIP): Likewise.
26947 (TARGET_NO_DYNAMIC_MODULES): Likewise.
26948 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
26949 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
26950 (grub-emu): New target.
26951 (GRUB_EMU): New variable.
26952 * configure.ac: Whitelist -emu as possible x86_64 architecture.
26953 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
26954 * loader/xnu.c: Likewise.
26955 * include/grub/pci.h: Likewise.
26956 * genemuinit.sh: New file.
26957 * genemuinitheader.sh: Likewise.
26958 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
26959 Support TARGET_NO_DYNAMIC_MODULES.
26960 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
26961 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
26962 * disk/loopback.c: Likewise.
26963 * font/font_cmd.c: Likewise.
26964 * partmap/acorn.c: Likewise.
26965 * partmap/amiga.c: Likewise.
26966 * partmap/apple.c: Likewise.
26967 * partmap/gpt.c: Likewise.
26968 * partmap/msdos.c: Likewise.
26969 * partmap/sun.c: Likewise.
26970 * parttool/msdospart.c: Likewise.
26971 * term/gfxterm.c: Likewise.
26972 * video/bitmap.c: Likewise.
26973 * video/readers/jpeg.c: Likewise.
26974 * video/readers/png.c: Likewise.
26975 * video/readers/tga.c: Likewise.
26976 * video/video.c: Likewise.
26977 * util/grub-emu.c (read_command_list): Removed.
26978 (main): Don't call util_init_nls.
26979 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
26980 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
26982 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26984 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
26985 date.mod, datehook.mod.
26986 (datetime_mod_SOURCES): New variable.
26987 (datetime_mod_CFLAGS): Likewise.
26988 (datetime_mod_LDFLAGS): Likewise.
26989 (date_mod_SOURCES): Likewise.
26990 (date_mod_CFLAGS): Likewise.
26991 (date_mod_LDFLAGS): Likewise.
26992 (datehook_mod_SOURCES): Likewise.
26993 (datehook_mod_CFLAGS): Likewise.
26994 (datehook_mod_LDFLAGS): Likewise.
26995 * conf/sparc64-ieee1275.rmk: Likewise.
26996 * lib/ieee1275/datetime.c: New file.
26998 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27000 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
27001 (ieee1275_fb_mod_SOURCES): New variable.
27002 (ieee1275_fb_mod_CFLAGS): Likewise.
27003 (ieee1275_fb_mod_LDFLAGS): Likewise.
27004 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
27006 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
27007 (HEAP_MAX_ADDR): Likewise.
27008 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
27010 Correct stop condition.
27011 (grub_ieee1275_devices_iterate): New function.
27012 * video/ieee1275.c: New file.
27014 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27016 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
27018 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
27020 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
27021 SCRATCH_PAD_DISKBOOT as scratch.
27022 (bootit): Pass Openfirmware pointer in %o4.
27023 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
27025 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
27026 with util/grub-mkrawimage.c.
27027 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
27028 * include/grub/aout.h (AOUT_MID_SUN): New definition.
27029 (grub_aout_get_type) [GRUB_UTIL]: Removed.
27030 (grub_aout_load) [GRUB_UTIL]: Likewise.
27031 * include/grub/kernel.h (grub_modules_get_end): New proto.
27032 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
27033 (SCRATCH_PAD_BOOT): New definition.
27034 (SCRATCH_PAD_DISKBOOT): Likewise.
27035 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
27036 * include/grub/sparc64/ieee1275/ieee1275.h
27037 (grub_ieee1275_original_stack): New variable
27038 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27040 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
27041 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
27042 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
27043 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
27044 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
27045 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
27046 (grub_platform_image_format_t): New type.
27047 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
27048 * kern/main.c (grub_modules_get_end)
27049 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
27050 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
27051 (codestart): Switch stacks.
27052 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
27054 (grub_heap_init): Use grub_modules_get_end.
27055 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
27057 * util/grub-mkrawimage.c (generate_image): Support sparc64.
27059 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
27061 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
27063 * util/grub-mkrescue.in: Base ISO UUID on UTC.
27065 2010-03-08 Matt Kraai <kraai@ftbfs.org>
27067 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
27070 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
27072 * genmoddep.awk: Output all missing symbols and not only first.
27074 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27076 * NEWS: Put the date of 1.98 release.
27078 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27080 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
27083 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27085 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
27086 completition in the middle of string.
27088 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27090 * util/grub-mkrescue.in: Use mktemp with explicit template.
27092 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27094 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
27096 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27098 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
27101 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27103 Fix FreeBSD compilation.
27105 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
27106 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
27108 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27110 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
27112 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27114 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
27116 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27118 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
27120 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
27122 Support relative image path in theme file.
27124 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
27125 (image_set_property): Handle theme_dir and relative path.
27127 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27129 * configure.ac: Alias amd64 to x86_64.
27131 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27133 * NEWS: mention multiboot on EFI.
27135 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27137 * kern/main.c (grub_load_modules): Handle errors from init functions of
27140 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27142 * normal/autofs.c (autoload_fs_module): Handle errors.
27144 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27146 Disable linux.mod on qemu-mips since it's not functional and leads
27147 to compilation failure.
27149 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
27150 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
27151 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
27152 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
27153 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
27154 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
27155 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
27156 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
27157 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
27158 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
27159 Reported by: BVK Chaitanya
27161 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
27163 * INSTALL: Add gettext as a dependency and add qemu to a new section
27164 "Prerequisites for make-check".
27166 2010-03-04 Christian Franke <franke@computer.org>
27168 * util/grub-pe2elf.c: Add missing include "progname.h".
27170 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27172 * normal/crypto.c (read_crypto_list): Fix a typo.
27173 Reported by: Seth Goldberg.
27175 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27177 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
27178 Reported by: Seth Goldberg.
27180 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27182 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
27185 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27187 * genmk.rb: Remove terminal*.lst in make clean.
27188 Reported by: Seth Goldberg.
27190 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27192 * util/i386/efi/grub-install.in: Copy gettext files.
27194 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27196 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
27198 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27200 Wait for user entry basing on presence of output rather than on errors.
27202 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
27203 (grub_install_newline_hook): Likewise.
27204 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
27205 * normal/menu.c (show_menu): Check line_counter to determine presence
27207 * normal/term.c (grub_normal_line_counter): New variable.
27208 (grub_normal_get_line_counter): New function.
27209 (grub_install_newline_hook): Likewise.
27211 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27213 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
27215 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27217 * configure.ac: Update version to 1.98.
27219 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
27221 * util/grub.d/10_linux.in (linux_entry): Don't default to
27222 gfxpayload=keep if Linux doesn't support video handover.
27224 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
27226 Don't compile video modules on yeeloong since video subsystem is part
27229 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
27230 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
27231 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
27232 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
27233 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
27234 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
27235 * include/grub/bitmap_scale.h: Likewise.
27236 * include/grub/bufio.h: Likewise.
27237 * include/grub/font.h: Likewise.
27238 * include/grub/gfxterm.h: Likewise.
27239 * include/grub/video.h: Likewise.
27240 * include/grub/vbe.h: Don't include video_fb.h.
27241 * video/i386/pc/vbe.c: Include video_fb.h.
27242 * commands/i386/pc/vbetest.c: Include video.h.
27244 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
27246 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
27247 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
27248 default entry if GRUB_SAVEDEFAULT=true. This allows using
27249 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
27250 saving a new default on every boot.
27252 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27254 * normal/crypto.c (read_crypto_list): Fix a memory leak.
27255 * normal/term.c (read_terminal_list): Likewise.
27256 * normal/main.c (grub_normal_init_page): Likewise.
27257 (grub_normal_read_line_real): Likewise.
27259 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27261 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
27263 Reported by: Seth Goldberg.
27265 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
27267 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
27268 duplicate declaration of `start'.
27270 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27272 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
27274 Reported by: Georgy Buranov
27276 2010-02-20 Carles Pina i Estany <carles@pina.cat>
27278 * util/grub-mkrawimage.c (usage): Change string formatting to
27281 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
27283 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
27286 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27288 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
27289 Reported by: Michael Suchanek.
27291 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
27293 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
27294 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
27296 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
27298 Remove any reference to non-free fonts.
27300 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
27301 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
27302 uses non-free components.
27303 * font/font.c (grub_font_get_name): Remove example name.
27304 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
27305 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
27306 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
27307 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
27309 2010-02-16 Georgy Buranov <gburanov@gmail.com>
27311 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
27313 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27315 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
27317 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
27319 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
27321 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27323 * gensymlist.sh.in: Use TARGET_CC instead of CC.
27325 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27327 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
27328 * docs/grub.texi (Command-line and menu entry commands): Document play
27331 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27333 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
27334 parse arguments as inline tempo and notes. Move code for playing notes
27336 (play): ... new function.
27338 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27340 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
27341 grub_uint16_t instead of short.
27342 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
27343 disk from little endian to cpu endianness.
27345 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27347 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
27348 GRUB_TICKS_PER_SECOND instead of 120.
27350 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27352 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
27353 escape sequence after \e.
27355 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27357 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
27358 non-ASCII characters.
27360 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27362 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
27363 set root in single quotes to prevent \, from being unescaped.
27365 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27367 Prevent unknown commands from stopping menuentry execution.
27369 * script/execute.c (grub_script_execute_cmdline): Print error after
27372 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27374 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
27375 Reported by: Pavel Pisa.
27377 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27379 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
27381 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27383 Merge grub_ieee1275_map_physical into grub_map and rename to
27386 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
27387 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
27389 * kern/ieee1275/openfw.c (grub_map): Rename to ...
27390 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
27392 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
27394 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27396 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
27397 opening and not after.
27399 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27401 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
27404 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27406 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
27407 (alloc_phys): Use ALIGN_UP instead of align_addr.
27409 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27411 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
27413 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27415 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
27417 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27419 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
27422 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27424 Fix over-4GiB seek on sparc64.
27426 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
27427 Replace pos_i and pos_lo with pos. All users updated.
27428 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27430 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27432 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
27435 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27437 * util/grub-mkrawimage.c (main): Call set_program_name.
27439 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27441 Properly align 64-bit targets.
27443 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
27444 (generate_image): Use ALIGN_ADDR.
27446 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27448 Properly create cross-endian images.
27450 * include/grub/types.h (grub_host_to_target_addr): New macro
27451 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
27453 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27455 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
27457 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27459 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
27461 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
27462 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
27463 (grub_linux_boot): Divide by 64K when on VESA.
27465 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27467 Support GRUB_GFXPAYLOAD_LINUX.
27469 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
27470 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
27472 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27474 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
27475 to show messages instead of discarding them.
27476 Process errors after executing command and not before. Keep old method
27479 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
27481 * configure.ac: Check for ft2build.h.
27483 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27485 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
27487 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27489 * genkernsyms.sh.in: Use TARGET_CC.
27491 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
27495 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27497 * include/grub/multiboot2.h: Remove leftover file.
27498 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
27499 * include/grub/partition.h [GRUB_UTIL]: Likewise.
27501 2010-02-07 Yves Blusseau <blusseau@zetam.org>
27503 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
27505 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27507 Fix warnings in grub-emu when compiling with maximum warning options.
27509 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
27510 (grub_arch_modules_addr): Return 0 and not NULL.
27511 * util/misc.c (ENABLE_RELOCATABLE): New definition.
27512 (xstrdup): Use newstr instead of dup.
27513 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
27514 of disk to dsk to avoid shadowing.
27515 (find_free_slot): Fix prototype.
27516 * util/getroot.c (grub_util_is_dmraid): Make static.
27517 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
27518 Add missing prototype.
27519 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
27521 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27523 * loader/i386/linux.c (grub_linux_setup_video): Handle error
27526 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27528 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
27531 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27533 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
27534 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
27535 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
27536 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
27537 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
27538 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
27540 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27542 * include/grub/err.h (grub_err_printf): Don't export.
27544 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27546 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
27548 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27550 * include/grub/i18n.h (grub_gettext_dummy): Removed.
27551 * kern/misc.c (grub_gettext_dummy): Make static.
27553 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27555 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
27557 * kern/term.c (grub_putchar): Likewise.
27559 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27561 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
27562 buggy hook call and memory leak.
27564 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27566 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
27568 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27570 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
27572 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27574 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
27576 Return grub_errno on allocation error.
27578 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27580 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
27582 2010-02-06 Yves Blusseau <blusseau@zetam.org>
27584 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
27585 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
27587 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27589 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
27591 (grub_pxefs_open): Likewise.
27593 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27595 * util/grub.d/10_hurd.in: Add --class information to menuentries.
27596 * util/grub.d/10_kfreebsd.in: Likewise.
27597 * util/grub.d/10_linux.in: Likewise.
27599 2010-02-06 Colin D Bennett <colin@gibibit.com>
27601 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
27602 (gfxmenu_mod_SOURCES): New variable.
27603 (gfxmenu_mod_CFLAGS): Likewise.
27604 (gfxmenu_mod_LDFLAGS): Likewise.
27605 * include/grub/term.h (grub_term_set_current_output): Declare
27607 * docs/gfxmenu-theme-example.txt: New file.
27608 * gfxmenu/gfxmenu.c: Likewise.
27609 * gfxmenu/gui_box.c: Likewise.
27610 * gfxmenu/gui_canvas.c: Likewise.
27611 * gfxmenu/gui_circular_progress.c: Likewise.
27612 * gfxmenu/gui_image.c: Likewise.
27613 * gfxmenu/gui_label.c: Likewise.
27614 * gfxmenu/gui_list.c: Likewise.
27615 * gfxmenu/gui_progress_bar.c: Likewise.
27616 * gfxmenu/gui_string_util.c: Likewise.
27617 * gfxmenu/gui_util.c: Likewise.
27618 * gfxmenu/icon_manager.c: Likewise.
27619 * gfxmenu/model.c: Likewise.
27620 * gfxmenu/named_colors.c: Likewise.
27621 * gfxmenu/theme_loader.c: Likewise.
27622 * gfxmenu/view.c: Likewise.
27623 * gfxmenu/widget-box.c: Likewise.
27624 * include/grub/gfxmenu_model.h: Likewise.
27625 * include/grub/gfxmenu_view.h: Likewise.
27626 * include/grub/gfxwidgets.h: Likewise.
27627 * include/grub/gui.h: Likewise.
27628 * include/grub/gui_string_util.h: Likewise.
27629 * include/grub/icon_manager.h: Likewise.
27631 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27633 Agglomerate scrolling in gfxterm.
27635 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
27636 (grub_virtual_screen_setup): Initialise 'total_screen'.
27637 (write_char): Split to ...
27638 (paint_char): ... this ...
27639 (write_char): ... and this.
27640 (paint_char): Handle delayed scrolling.
27641 (draw_cursor): Likewise.
27642 (scroll_up): Split to ...
27643 (real_scroll): ... this ...
27644 (scroll_up): ... and this.
27645 (real_scroll): Handle multi-line scroll and draw below-the-bottom
27647 (grub_gfxterm_refresh): Call real_scroll.
27649 2010-02-06 Colin D Bennett <colin@gibibit.com>
27651 * include/grub/misc.h (grub_iscntrl): New inline function.
27652 (grub_isalnum): Likewise.
27653 (grub_strtol): Likewise.
27655 2010-02-06 Colin D Bennett <colin@gibibit.com>
27657 * normal/menu_text.c (get_entry_number): Move from here ...
27658 * normal/menu.c (get_entry_number): ... moved here.
27659 * include/grub/menu.h (grub_menu_get_default_entry_index):
27661 * normal/menu.c (grub_menu_get_default_entry_index): New function.
27662 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
27663 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
27664 (grub_menu_viewer_should_return): Likewise.
27665 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
27666 * normal/menu_text.c (run_menu): Enable menu switching.
27667 * normal/menu_viewer.c (should_return): New variable.
27668 (menu_viewer_changed): Likewise.
27669 (grub_menu_viewer_show_menu): Handle menu viewer changes.
27670 (grub_menu_viewer_should_return): New function.
27671 (menuviewer_write_hook): Likewise.
27672 (grub_menu_viewer_init): Likewise.
27674 2010-02-06 Colin D Bennet <colin@gibibit.com>
27675 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27677 Support for gfxterm in a window.
27679 * include/grub/gfxterm.h: New file.
27680 * include/grub/video.h (struct grub_video_rect): New declaration.
27681 (grub_video_rect_t): Likewise.
27682 * term/gfxterm.c (struct grub_gfxterm_window): New type.
27683 (refcount): New variable.
27684 (render_target): Likewise.
27685 (window): Likewise.
27686 (repaint_callback): Likewise.
27687 (grub_virtual_screen_setup): Use 'render_target'.
27688 (init_window): New function.
27689 (grub_gfxterm_init_window): Likewise.
27690 (grub_gfxterm_init): Check reference counter.
27692 (destroy_window): New function.
27693 (grub_gfxterm_destroy_window): Likewise.
27694 (grub_gfxterm_fini): Check reference counter.
27695 Use destroy_window.
27696 (redraw_screen_rect): Restore viewport.
27697 Use 'render_target' and 'window'.
27698 Call 'repaint_callback'.
27699 (write_char): Use 'render_target'.
27700 (draw_cursor): Likewise.
27701 (scroll_up): Restore viewport.
27702 Use 'render_target' and 'window'.
27703 Call 'repaint_callback'.
27704 (grub_gfxterm_cls): Likewise.
27705 (grub_gfxterm_refresh): Use 'window'.
27706 (grub_gfxterm_set_repaint_callback): New function.
27707 (grub_gfxterm_background_image_cmd): Use 'window'.
27708 (grub_gfxterm_get_term): New function.
27709 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
27711 2010-02-06 Colin D Bennett <colin@gibibit.com>
27713 Bitmap scaling support.
27715 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
27716 (bitmap_scale_mod_SOURCES): New variable.
27717 (bitmap_scale_mod_CFLAGS): Likewise.
27718 (bitmap_scale_mod_LDFLAGS): Likewise.
27719 * include/grub/bitmap_scale.h: New file.
27720 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
27721 (background_image_cmd_options): New variable.
27722 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
27723 (cmd): Rename and change type to ...
27724 (background_image_cmd_handle): ... this. All users updated.
27725 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
27726 * video/bitmap_scale.c: New file.
27728 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27732 * Makefile.in (LIBSDL): New variable.
27733 (enable_grub_emu_sdl): Likewise.
27734 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
27735 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
27736 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
27737 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
27738 * util/sdl.c: New file.
27740 2010-02-06 Colin D Bennett <colin@gibibit.com>
27741 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27743 Double buffering support.
27745 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
27746 * include/grub/video.h: Update comment.
27747 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
27749 (grub_video_fb_doublebuf_blit_init): New prototype.
27750 * term/gfxterm.c (scroll_up): Support double buffering.
27751 (grub_gfxterm_refresh): Likewise.
27752 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
27753 (grub_video_fb_doublebuf_blit_init): Likewise.
27754 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
27755 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
27756 'displayed_page', 'render_page' and 'update_screen'.
27757 (grub_video_vbe_fini): Free offscreen buffer.
27758 (doublebuf_pageflipping_commit): New function.
27759 (doublebuf_pageflipping_update_screen): Likewise.
27760 (doublebuf_pageflipping_init): Likewise.
27761 (double_buffering_init): Likewise.
27762 (grub_video_vbe_setup): Enable doublebuffering.
27763 (grub_video_vbe_swap_buffers): Implement.
27764 (grub_video_vbe_set_active_render_target): Handle double buffering.
27765 (grub_video_vbe_get_active_render_target): Likewise.
27766 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
27767 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
27768 (grub_video_vbe_enable_double_buffering): Likewise.
27769 (grub_video_vbe_swap_buffers): Use update_screen.
27770 (grub_video_set_mode): Use double buffering.
27772 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27774 * maintainance/gentrigtables.py: Remove.
27775 * lib/trig.c: Likewise.
27777 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
27779 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
27781 (trigtables.c): New rule.
27782 (gentrigtables): Likewise.
27783 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
27785 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27787 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
27790 2010-02-06 Colin D Bennet <colin@gibibit.com>
27792 Trigonometry support.
27794 * include/grub/trig.h: New file.
27795 * lib/trig.c: Likewise.
27796 * maintainance/gentrigtables.py: Likewise.
27797 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27798 (trig_mod_SOURCES): New variable.
27799 (trig_mod_CFLAGS): Likewise.
27800 (trig_mod_LDFLAGS): Likewise.
27802 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27804 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27807 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27809 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27812 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27814 * util/hostdisk.c (open_device): Don't use partition device when reading
27815 before the partition.
27816 (grub_util_biosdisk_read): Don't read from partition and before the
27817 partition in single operation.
27818 (grub_util_biosdisk_write): Don't write to partition and before the
27819 partition in single operation.
27821 2010-02-03 Torsten Landschoff <torsten@debian.org>
27823 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27826 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27828 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27830 (grub_biosdisk_write): Refuse to write to CDROM.
27832 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27834 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27836 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27838 * font/font.c (find_glyph): Check that bmp_idx is available before
27840 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27841 with (font == NULL).
27843 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
27845 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27847 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27849 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27850 * util/grub-script-check.c (getline): Fix empty lines case.
27852 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27854 * Makefile.in (check): Exit with fail status when one of the tests
27856 * tests/example_functional_test.c (example_test): Fix reversed assert.
27857 * tests/example_unit_test.c (example_test): Likewise.
27859 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
27861 * util/grub.d/10_linux.in: This script does not use any of the
27862 contents of gettext.sh, only the external command `gettext', so stop
27863 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27864 the same prefix as GRUB.)
27865 * util/grub.d/10_kfreebsd.in: Likewise.
27867 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27869 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27872 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27874 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27877 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27879 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27880 having a 4KiB and not 32KiB buffer size.
27882 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27884 * util/hostfs.c: Include `<errno.h>'.
27885 (grub_hostfs_read): Handle errors from fseeko() and fread().
27887 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27889 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27890 loop when using read hooks on files whose size isn't sector-aligned.
27892 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27894 Remove unused parameter.
27896 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27897 (grub_iso9660_open): Remove initialization of `data->length'.
27899 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27901 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27902 memleak conditions.
27904 2010-01-27 Carles Pina i Estany <carles@pina.cat>
27906 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27907 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27909 2010-01-26 Carles Pina i Estany <carles@pina.cat>
27911 * util/bin2h.c (usage): Fix warning (space after backslash).
27913 2010-01-26 Carles Pina i Estany <carles@pina.cat>
27915 * font/font.c: Include `grub/fontformat.h.
27916 Remove font file format constants.
27917 (grub_font_load): Use the new macros.
27918 * include/grub/fontformat.h: New file.
27919 * util/grub-mkfont.c: Include `grub/fontformat.c'.
27920 (write_font_pf2): Use the new macros.
27922 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27924 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
27927 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27929 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
27931 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
27932 (_start): Macroify `0x7F'.
27934 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
27935 (make_install_device): Use "(pxe)" as fallback prefix when booting
27938 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
27940 * configure.ac: Reset LIBS after check for libgcc symbols.
27942 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
27944 * util/hostdisk.c (open_device): Add trailing newline to debug
27947 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
27949 * configure.ac: Check for `limits.h'.
27950 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
27952 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
27954 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
27955 capitalize error strings.
27957 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27959 * util/grub.d/10_hurd.in: Add a recovery mode.
27961 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
27963 * configure.ac: Check for libgcc symbols with -nostdlib.
27965 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
27967 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
27969 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27971 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
27972 stack since heap may be unavailable at that point.
27973 (grub_ofconsole_gotoxy): Likewise.
27975 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27977 * configure.ac: Check for _restgpr_14_x.
27978 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
27979 and _savegpr_* prototypes.
27981 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
27983 Use generic grub_reboot() for i386-efi.
27985 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
27986 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
27987 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
27989 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27991 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
27992 presence of "prefix" variable as it breaks when normal.mod is
27995 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27997 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
27998 stack since heap is unavailable at that point.
28000 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28002 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
28003 (grub_freebsd_bootinfo): Rewritten.
28004 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
28006 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28008 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
28010 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
28012 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
28015 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
28017 * util/misc.c (make_system_path_relative_to_its_root): Change the work
28018 around for handling "/" to the correct fix. Fix a memory leak. Use
28019 xstrdup instead of strdup.
28021 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28023 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
28025 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28027 Optimise glyph lookup by Basic Multilingual Plane lookup array.
28029 * font/font.c (struct grub_font): New member 'bmp_idx'.
28030 (font_init): Initialise 'bmp_idx'.
28031 (load_font_index): Fill 'bmp_idx'.
28032 (find_glyph): Make inline. Use bmp_idx for BMP characters.
28034 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28036 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
28039 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28041 Move context handling out of the kernel.
28043 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
28044 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
28045 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
28046 * conf/i386-efi.rmk: Likewise.
28047 * conf/i386-ieee1275.rmk: Likewise.
28048 * conf/i386-pc.rmk: Likewise.
28049 * conf/powerpc-ieee1275.rmk: Likewise.
28050 * conf/sparc64-ieee1275.rmk: Likewise.
28051 * conf/x86_64-efi.rmk: Likewise.
28052 * include/grub/env.h: Include grub/menu.h.
28053 (grub_env_var_type): Removed.
28054 (grub_env_var): Replaced field 'type' with 'global'.
28055 (grub_env_find): New prototype.
28056 (grub_env_context_open): Remove EXPORT_FUNC.
28057 (grub_env_context_close): Likewise.
28058 (grub_env_export): Likewise.
28059 (grub_env_set_data_slot): Removed.
28060 (grub_env_get_data_slot): Likewise.
28061 (grub_env_unset_data_slot): Likewise.
28062 (grub_env_unset_menu): New prototype.
28063 (grub_env_set_menu): Likewise.
28064 (grub_env_get_menu): Likewise.
28065 * include/grub/env_private.h: New file.
28066 * include/grub/normal.h (grub_context_init): New prototype.
28067 (grub_context_fini): Likewise.
28068 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
28069 * normal/context.c (grub_cmd_export): ... to here.
28070 * kern/env.c: Include env_private.h.
28071 (HASHSZ): Moved to include/grub/env_private.h.
28072 (grub_env_context): Likewise.
28073 (grub_env_sorted_var): Likewise.
28074 (current_context): Renamed from this ...
28075 (grub_current_context): ...to this. 'static' removed. All users updated.
28076 (grub_env_find): Removed 'static'.
28077 (grub_env_context_open): Moved to normal/context.c.
28078 (grub_env_context_close): Likewise.
28079 (grub_env_export): Likewise.
28080 (mangle_data_slot_name): Removed.
28081 (grub_env_set_data_slot): Likewise.
28082 (grub_env_get_data_slot): Likewise.
28083 (grub_env_unset_data_slot): Likewise.
28084 * kern/main.c (grub_set_root_dev): Don't export root.
28085 It will be done later.
28086 (grub_main): Don't export prefix.
28087 It will be done later.
28088 * normal/context.c: New file.
28089 * normal/main.c (free_menu): Use grub_env_unset_menu.
28090 (grub_normal_add_menu_entry): Use grub_env_get_menu.
28091 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
28092 (GRUB_MOD_INIT(normal)): Call grub_context_init.
28093 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
28095 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28099 * commands/setpci.c: New file.
28100 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
28101 (setpci_mod_SOURCES): New variable.
28102 (setpci_mod_CFLAGS): Likewise.
28103 (setpci_mod_LDFLAGS): Likewise.
28105 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28107 Byte-addressable PCI configuration space.
28109 * bus/pci.c (grub_pci_make_address): Use byte address instead of
28111 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
28112 GRUB_PCI_REG_CACHELINE.
28113 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
28114 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
28115 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
28116 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
28117 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
28118 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
28119 grub_pci_make_address.
28120 (lock_rom_area): Likewise.
28121 * commands/lspci.c (grub_lspci_iter): Use macroses
28122 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
28123 of grub_pci_make_address.
28124 * disk/ata.c (grub_ata_pciinit): Likewise.
28125 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
28126 (GRUB_PCI_REG_VENDOR): Likewise.
28127 (GRUB_PCI_REG_DEVICE): Likewise.
28128 (GRUB_PCI_REG_COMMAND): Likewise.
28129 (GRUB_PCI_REG_STATUS): Likewise.
28130 (GRUB_PCI_REG_REVISION): Likewise.
28131 (GRUB_PCI_REG_CLASS): Likewise.
28132 (GRUB_PCI_REG_CACHELINE): Likewise.
28133 (GRUB_PCI_REG_LAT_TIMER): Likewise.
28134 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
28135 (GRUB_PCI_REG_BIST): Likewise.
28136 (GRUB_PCI_REG_ADDRESSES): Likewise.
28137 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28138 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28139 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28140 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28141 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28142 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28143 (GRUB_PCI_REG_CIS_POINTER): Likewise.
28144 (GRUB_PCI_REG_SUBVENDOR): Likewise.
28145 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
28146 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
28147 (GRUB_PCI_REG_CAP_POINTER): Likewise.
28148 (GRUB_PCI_REG_IRQ_LINE): Likewise.
28149 (GRUB_PCI_REG_IRQ_PIN): Likewise.
28150 (GRUB_PCI_REG_MIN_GNT): Likewise.
28151 (GRUB_PCI_REG_MAX_LAT): Likewise.
28152 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
28153 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
28154 * video/efi_uga.c (find_framebuf): Likewise.
28155 * video/sm712.c (grub_video_sm712_setup): Likewise.
28156 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
28159 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28161 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
28162 can be reliably determined to be supported.
28164 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28166 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
28167 that VESA is supported.
28168 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
28171 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28173 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
28175 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28177 * util/misc.c (make_system_path_relative_to_its_root): Work around
28178 special-casing of "/", as previous incarnation of this routine did.
28180 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28182 Fix any-emu compilation.
28184 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
28185 * grub_bin2h_SOURCES: New variable.
28187 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28189 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
28191 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28193 * util/grub.d/00_header.in: Fix handling of locale_dir.
28195 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28197 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
28198 as possible unifont location (Gentoo).
28199 Reported by: Alexander Brüning
28201 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28203 Don't try to generate lists for kernel.img.
28205 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
28206 (pkglib_MODULES): Remove kernel.img.
28207 (kernel_img_EXPORTS): Removed.
28208 (kernel_img_RELOCATABLE): New variable.
28209 * conf/x86_64-efi.rmk: Likewise.
28210 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
28212 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28214 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
28215 grub_xasprintf or grub_snprintf.
28216 (grub_vsprintf): Likewise.
28217 (grub_snprintf): New proto.
28218 (grub_vsnprintf): Likewise.
28219 (grub_xasprintf): Likewise.
28220 (grub_xvasprintf): Likewise.
28221 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
28222 (grub_sprintf): Removed.
28223 (grub_vsnprintf): New function.
28224 (grub_snprintf): Likewise.
28225 (grub_xvasprintf): Likewise.
28226 (grub_xasprintf): Likewise.
28227 (grub_vsprintf): Renamed to ...
28228 (grub_vsnprintf_real): ...this. New argument max_len.
28230 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
28232 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
28233 fix grub-script-check warning.
28235 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28237 * include/grub/font.h (grub_font_load): Fix prototype.
28239 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28241 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
28243 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28245 * include/grub/x86_64/at_keyboard.h: New file.
28247 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28249 * loader/mips/linux.c: Include missing grub/i18n.h.
28251 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28253 * normal/menu.c (notify_execution_failure): Clarify error message.
28255 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28257 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
28258 return value (and revert all return statements). Update users.
28260 2010-01-20 Dan Merillat <debian@dan.merillat.org>
28262 * kern/device.c (grub_device_iterate): Allocate new part_ent
28263 structure based on sizeof (*p) rather than sizeof (p->next), to
28264 account for structure padding.
28266 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
28267 disk is NULL, which might happen for LVM physical volumes with no
28270 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28272 * loader/mips/linux.c (grub_cmd_initrd)
28273 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
28275 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28277 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
28278 (grub_video_video_init, grub_video_bitmap_init)
28279 (grub_font_manager_init, grub_term_gfxterm_init)
28280 (grub_at_keyboard_init): New extern declarations.
28281 (grub_machine_init): Initialize gfxterm and at_keyboard.
28283 * kern/main.c (grub_main): Revert grub_printf delay kludge.
28285 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
28286 `gfxterm.mod' into core image.
28288 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28289 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28290 (kernel_img_FORMAT): Copy to ...
28292 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28293 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28294 (kernel_img_FORMAT): ... here, and ...
28296 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28297 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28298 (kernel_img_FORMAT): ... here.
28300 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
28301 and input (at_keyboard) terminals in kernel.
28302 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
28304 (pkglib_MODULES): Remove `pci.mod'.
28305 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
28306 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
28307 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
28308 (at_keyboard_mod_LDFLAGS): Remove variables.
28310 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
28312 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
28314 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
28316 * include/grub/mips/libgcc.h: Only export symbols for functions
28317 that libgcc provides.
28319 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
28323 * bus/bonito.c: New file.
28324 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
28325 GRUB_PCI_NUM_DEVICES.
28326 * term/i386/pc/serial.c: Move to ...
28327 * term/serial.c: ... here. All users updated.
28328 * util/i386/pc/grub-mkimage.c: Move to ...
28329 * util/grub-mkrawimage.c: ... here. All users updated.
28330 * term/i386/pc/at_keyboard.c: Move to ...
28331 * term/at_keyboard.c: ... here. All users updated.
28332 * conf/mips-qemu-mips.rmk: New file.
28333 * conf/mips-yeeloong.rmk: Likewise.
28334 * conf/mips.rmk: Likewise.
28335 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
28337 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
28339 (grub_ata_pciinit): Support CS5536.
28340 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
28341 * font/font_cmd.c (loadfont_command): Open file before passing it to
28343 (pseudo_file_read): New function.
28344 (pseudo_file_close): Likewise.
28345 (pseudo_fs): New structure.
28346 (load_font_module): New function.
28347 (GRUB_MOD_INIT(font_manager)): Load embedded font.
28348 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
28349 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
28350 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
28351 * include/grub/i386/at_keyboard.h: Split into ...
28352 * include/grub/at_keyboard.h: ... this ...
28353 * include/grub/i386/at_keyboard.h: ... and this.
28354 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
28356 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
28358 (grub_elf64_size): Likewise.
28359 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
28361 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
28362 * include/grub/i386/coreboot/serial.h: Rewritten.
28363 * include/grub/i386/ieee1275/serial.h: Include
28364 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
28365 * include/grub/i386/pc/serial.h: Moved from here ...
28366 * include/grub/serial.h: ... to here. All users updated.
28367 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
28368 (GRUB_PCI_NUM_BUS): Likewise.
28369 (GRUB_PCI_NUM_DEVICES): Likewise.
28370 (grub_pci_device_map_range): Add missing volatile keyword.
28371 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
28372 * include/grub/mips/at_keyboard.h: New file.
28373 * include/grub/mips/cache.h: Likewise.
28374 * include/grub/mips/io.h: Likewise.
28375 * include/grub/mips/kernel.h: Likewise.
28376 * include/grub/mips/libgcc.h: Likewise.
28377 * include/grub/mips/pci.h: Likewise.
28378 * include/grub/mips/qemu-mips/boot.h: Likewise.
28379 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28380 * include/grub/mips/qemu-mips/loader.h: Likewise.
28381 * include/grub/mips/qemu-mips/memory.h: Likewise.
28382 * include/grub/mips/qemu-mips/serial.h: Likewise.
28383 * include/grub/mips/qemu-mips/time.h: Likewise.
28384 * include/grub/mips/relocator.h: Likewise.
28385 * include/grub/mips/time.h: Likewise.
28386 * include/grub/mips/types.h: Likewise.
28387 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
28388 * include/grub/mips/yeeloong/boot.h: Likewise.
28389 * include/grub/mips/yeeloong/kernel.h: Likewise.
28390 * include/grub/mips/yeeloong/loader.h: Likewise.
28391 * include/grub/mips/yeeloong/memory.h: Likewise.
28392 * include/grub/mips/yeeloong/pci.h: Likewise.
28393 * include/grub/mips/yeeloong/serial.h: Likewise.
28394 * include/grub/mips/yeeloong/time.h: Likewise.
28395 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
28396 * kern/elf.c (grub_elf32_size): New parameter. All users
28398 (grub_elf64_size): Likewise.
28399 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
28400 Load modules before saying "Welcome to GRUB!".
28401 Call grub_refresh after saying "Welcome to GRUB!".
28402 * kern/mips/cache.S: New file.
28403 * kern/mips/cache_flush.S: Likewise.
28404 * kern/mips/dl.c: Likewise.
28405 * kern/mips/init.c: Likewise.
28406 * kern/mips/qemu-mips/init.c: Likewise.
28407 * kern/mips/startup.S: Likewise.
28408 * kern/mips/yeeloong/init.c: Likewise.
28409 * kern/term.c (grub_putcode): Handle NULL terminal.
28410 (grub_getcharwidth): Likewise.
28411 (grub_getkey): Likewise.
28412 (grub_checkkey): Likewise.
28413 (grub_getkeystatus): Likewise.
28414 (grub_getxy): Likewise.
28415 (grub_getwh): Likewise.
28416 (grub_gotoxy): Likewise.
28417 (grub_cls): Likewise.
28418 (grub_setcolorstate): Likewise.
28419 (grub_setcolor): Likewise.
28420 (grub_getcolor): Likewise.
28421 (grub_refresh): Likewise.
28422 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
28423 (write_jump): Add hatch nop.
28424 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
28425 * lib/mips/setjmp.S: New file.
28426 * loader/mips/linux.c: Likewise.
28427 * term/i386/pc/at_keyboard.c: Move from here ...
28428 * term/at_keyboard.c: ... to here.
28429 * term/i386/pc/serial.c: Moved from here ...
28430 * term/serial.c: ... to here. All users updated.
28431 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
28432 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
28433 (serial_translate_key_sequence): Avoid deadlock.
28434 (grub_serial_getkey): Handle backspace.
28435 (grub_serial_putchar): Fix newline handling.
28436 * util/i386/pc/grub-mkimage.c: Move from here ...
28437 * util/grub-mkrawimage.c: ... to here. All users updated.
28438 (generate_image): New parameters 'font_path' and 'format'.
28439 Support embedding font.
28440 Use grub_host_to_target* instead of grub_cpu_to_le*.
28441 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
28442 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
28443 (options): New option "--font".
28445 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
28446 (main): Handle "--font".
28447 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
28448 (grub_virtual_screen_setup): Set bg_color_display.
28449 (redraw_screen_rect): Use bg_color_display instead of incorrect
28451 (grub_gfxterm_cls): Likewise.
28452 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
28453 Support embedding config file.
28454 (add_segments): Likewise.
28455 (options): New option "--config".
28456 (main): Handle "--config".
28457 * video/sm712.c: New file.
28459 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28461 Fix parallel builds.
28463 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
28464 font.c depend on ascii.h).
28466 2010-01-12 Carles Pina i Estany <carles@pina.cat>
28468 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
28470 2010-01-11 Carles Pina i Estany <carles@pina.cat>
28472 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
28473 By default: disabled.
28474 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
28477 2010-01-10 Carles Pina i Estany <carles@pina.cat>
28479 * font/font.c: Update copyright years.
28480 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
28482 2010-01-10 Carles Pina i Estany <carles@pina.cat>
28484 * font/font.c: Include `ascii.h'.
28485 (ASCII_BITMAP_SIZE): New macro.
28486 (ascii_font_glyph): Define.
28487 (ascii_glyph_lookup): New function.
28488 (grub_font_get_string_width): Change comment. If glyph not found, use
28489 ascii_glyph_lookup.
28490 (grub_font_get_glyph_with_fallback): If glyph not available returns
28491 ascii_glyph_lookup.
28492 * util/grub-mkfont.c (file_formats): New enum.
28493 (options): Add `ascii-bitmaps' new option.
28494 (usage): Add `asii-bitmaps' new option.
28495 (write_font_ascii_bitmap): New function.
28496 (write_font): Rename to ...
28497 (write_font_p2): ... this. Remove print_glyphs call.
28498 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
28499 used. Call print_glyphs.
28500 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
28502 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28504 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
28505 (grub_bin2h_SOURCES): New variable.
28506 * util/bin2h.c: New file.
28508 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28510 * include/multiboot.h: Resynced with spec.
28511 * include/multiboot2.h: Likewise.
28512 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
28513 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
28515 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28517 * include/grub/term.h (grub_term_register_input,
28518 grub_term_register_output): Check return of terminal init()
28519 routines, and abort if errors are raised.
28521 * commands/terminal.c: Update copyright year.
28523 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28525 * commands/terminal.c (grub_cmd_terminal_input)
28526 (grub_cmd_terminal_output): Check return of terminal init()
28527 routines, and abort if errors are raised.
28529 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28531 * include/grub/i386/bsd.h: Fix include pathes.
28533 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28535 Add missing *BSD copyright headers.
28537 * include/grub/aout.h: Add BSD licence.
28538 * include/grub/i386/bsd.h: Parts under different licences moved to ...
28539 * include/grub/i386/freebsd_linker.h: ... here,
28540 * include/grub/i386/freebsd_reboot.h: ... here,
28541 * include/grub/i386/netbsd_bootinfo.h: ... here,
28542 * include/grub/i386/netbsd_reboot.h: ... here,
28543 * include/grub/i386/openbsd_bootarg.h: ... here,
28544 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
28545 licence to each file.
28547 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28549 * acinclude.m4: Remove `nop' assembly instruction; it's not
28550 implemented by all architectures.
28552 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28554 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
28555 ELILO. This is no longer necessary.
28557 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
28559 Added new tool, grub-scrit-check to verify grub.cfg syntax.
28561 * util/grub-script-check.c: grub-script-check tool.
28562 * conf/common.rmk: Make rules for grub-script-check.
28564 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28566 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
28567 spotting it back in 2008. Shame on me for forgetting he did.
28569 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
28571 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28573 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
28574 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
28575 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
28576 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
28577 (GRUB_VIDEO_TYPE_EFI): Rename to ...
28578 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
28580 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
28582 * include/grub/test.h: Add license header.
28583 * tests/example_functional_test.c: Likewise.
28584 * tests/example_unit_test.c: Likewise.
28585 * tests/lib/functional_test.c: Likewise.
28586 * tests/lib/test.c: Likewise.
28587 * tests/lib/unit_test.c: Likewise.
28589 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
28591 Use flag-based instead of hook-based video mode selection and "auto"
28594 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
28595 (grub_video_set_mode): Changed prototype. All users updated.
28596 (grub_video_check_mode_flag): New inline function.
28597 * video/video.c (parse_modespec): New function.
28598 (grub_video_set_mode): Parse flags and keywords.
28600 2010-01-17 Carles Pina i Estany <carles@pina.cat>
28602 * util/misc.c (grub_util_info): Fix the order of the parameters in a
28605 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
28607 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
28609 2010-01-16 Carles Pina i Estany <carles@pina.cat>
28611 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
28613 * util/grub-emu.c (usage): Likewise.
28614 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
28615 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28616 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28617 * util/i386/pc/grub-setup.c (usage): Likewise.
28619 2010-01-16 Carles Pina i Estany <carles@pina.cat>
28621 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
28623 (grub_util_info): Likewise.
28624 (grub_util_error): Likewise.
28625 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
28626 and/or new lines in `grub_util_warna', `grub_util_info',
28627 `grub_util_error' calls.
28628 * util/getroot.c: Likewise.
28629 * util/grub-editenv.c: Likewise.
28630 * util/grub-emu.c: Likewise.
28631 * util/grub-fstest.c: Likewise.
28632 * util/grub-mkdevicemap.c: Likewise.
28633 * util/grub-mkfont.c: Likewise.
28634 * util/grub-mkpasswd-pbkdf2.c: Likewise.
28635 * util/grub-mkrelpath.c: Likewise.
28636 * util/grub-pe2elf.c: Likewise.
28637 * util/grub-probe.c: Likewise.
28638 * util/hostdisk.c: Likewise.
28639 * util/i386/efi/grub-mkimage.c: Likewise.
28640 * util/i386/pc/grub-mkimage.c: Likewise.
28641 * util/i386/pc/grub-setup.c: Likewise.
28642 * util/ieee1275/ofpath.c: Likewise.
28643 * util/mkisofs/eltorito.c: Likewise.
28644 * util/mkisofs/rock.c: Likewise.
28645 * util/mkisofs/write.c: Likewise.
28646 * util/raid.c: Likewise.
28647 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28648 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28650 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28652 Enable multiboot on non-pc.
28654 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
28655 multiboot.mod and multiboot2.mod to ...
28656 * conf/i386.rmk (pkglib_MODULES): ... here.
28657 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
28659 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
28660 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
28662 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
28663 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
28665 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
28666 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
28668 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
28669 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
28671 (ata_mod_SOURCES): Removed.
28672 (ata_mod_CFLAGS): Likewise.
28673 (ata_mod_LDFLAGS): Likewise.
28674 (relocator_mod_SOURCES): Removed.
28675 (relocator_mod_CFLAGS): Likewise.
28676 (relocator_mod_ASFLAGS): Likewise.
28677 (relocator_mod_LDFLAGS): Likewise.
28679 * include/grub/x86_64/multiboot.h: New file.
28680 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
28683 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28685 Video multiboot support.
28687 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
28689 * include/multiboot.h: Resynced with multiboot specification.
28690 * include/multiboot2.h: Likewise.
28691 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
28692 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
28693 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
28694 (HAS_VGA_TEXT): Likewise.
28695 (accepts_video): New variable.
28696 (grub_multiboot_set_accepts_video): New function.
28697 (grub_multiboot_get_mbi_size): Account for video structures.
28698 (set_video_mode): New function.
28699 (retrieve_video_parameters): Likewise.
28700 (grub_multiboot_make_mbi): Fill video fields.
28702 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28706 * include/grub/video.h (grub_video_driver_id): New type.
28707 (grub_video_adapter): New member 'id'. All users updated.
28708 (grub_video_get_driver_id): New proto.
28709 * video/video.c (grub_video_get_driver_id): New function.
28711 2010-01-14 Carles Pina i Estany <carles@pina.cat>
28713 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
28716 2010-01-14 Carles Pina i Estany <carles@pina.cat>
28718 * normal/cmdline.c (print_completion): Gettextizze.
28720 2001-01-14 Carles Pina i Estany <carles@pina.cat>
28722 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
28724 2010-01-14 Carles Pina i Estany <carles@pina.cat>
28726 * gettext/gettext.c (grub_gettext_translate): Push and pop
28728 (grub_gettext_delete_list): Change comment style.
28729 * kern/err.c (grub_error): Gettextizze.
28730 (grub_fatal): Gettextizze.
28732 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28734 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
28735 (grub_linux16_real_boot): ... this.
28736 * kern/i386/loader.S: Likewise.
28737 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
28738 (grub_linux16_boot): New function. Switches to text mode and calls
28739 grub_linux16_real_boot().
28741 * loader/i386/bsd.c: Include `<grub/video.h>'.
28742 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
28743 text mode before calling grub_unix_real_boot().
28745 * loader/i386/multiboot.c: Include `<grub/video.h>'.
28746 (grub_multiboot_boot): Switch to text mode before calling
28747 grub_relocator32_boot().
28749 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
28750 (grub_chainloader_boot): Switch to text mode before calling
28751 grub_chainloader_real_boot().
28753 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
28754 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28756 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
28759 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
28760 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28762 * util/grub.d/00_header.in: Define a "savedefault" function for use
28764 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
28766 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
28767 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28769 * util/grub-mkconfig_lib.in (save_default_entry): Only set
28770 saved_entry if boot_once is unset.
28771 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
28772 previous saved entry (i.e. grub-reboot).
28774 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28776 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
28778 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28780 * util/grub.d/00_header.in: Use `set var=val' rather than plain
28782 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
28784 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28786 * util/grub-reboot.in: Fix --version output.
28787 * util/grub-set-default.in: Likewise.
28789 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28791 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28794 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28796 * util/grub.d/00_header.in: Quote the value assigned to `default',
28797 in case it contains spaces.
28799 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28801 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28802 `save_default_entry' call from the macosx case to the linux case.
28804 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
28805 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
28807 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28808 in `chosen' environment variable.
28809 * normal/menu_text.c (get_entry_number): Check if the variable
28810 matches the title of a menu entry.
28811 (run_menu): Pass menu to get_entry_number.
28813 * util/grub-reboot.in: New file.
28814 * util/grub-set-default.in: New file.
28815 * conf/common.rmk (grub-reboot): New utility.
28816 (grub-set-default): New utility.
28818 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28819 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28820 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28821 move it to `saved_entry' for the next boot. Load environment on
28823 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28824 * util/grub.d/10_hurd.in: Likewise.
28825 * util/grub.d/10_linux.in (linux_entry): Likewise.
28826 * util/grub.d/10_windows.in: Likewise.
28827 * util/grub.d/30_os-prober.in: Likewise.
28829 * util/grub-install.in: Create environment block.
28830 * util/i386/efi/grub-install.in: Likewise.
28831 * util/ieee1275/grub-install.in: Likewise.
28832 * util/sparc64/ieee1275/grub-install.in: Likewise.
28834 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28836 Unit testing framework for GRUB.
28838 * Makefile.in: Test framework build rules for 'make check'.
28839 * conf/tests.rmk: Build rules for individual tests and framework.
28841 * include/grub/test.h: Header file for whitebox tests.
28842 * tests/lib/functional_test.c: Framework support for whitebox
28844 * tests/lib/test.c: Common whitebox testing code for unit and
28846 * tests/lib/unit_test.c: Framework support for whitebox unit
28849 * tests/util/grub-shell-tester.in: Support utility for grub-script
28851 * tests/util/grub-shell.in: Utility to execute grub-script
28852 commands in a Qemu instance.
28854 * tests/example_functional_test.c: Example whitebox functional
28856 * tests/example_grub_script_test.in: Example grub-script test.
28857 * tests/example_scripted_test.in: Example scripted test.
28858 * tests/example_unit_test.c: Example whitebox unit test.
28860 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28862 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28863 Add loader/i386/multiboot_mbi.c.
28864 (multiboot2_mod_SOURCES): Likewise.
28865 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28866 (multiboot2_mod_SOURCES): Likewise.
28867 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28868 (grub_multiboot_make_mbi): Likewise.
28869 (grub_multiboot_free_mbi): Likewise.
28870 (grub_multiboot_init_mbi): Likewise.
28871 (grub_multiboot_add_module): Likewise.
28872 (grub_multiboot_set_bootdev): Likewise.
28873 * loader/i386/multiboot.c (mbi): Removed.
28874 (mbi_dest): Likewise.
28875 (alloc_mbi): New variable.
28876 (grub_multiboot_payload_size): Removed. All users updated.
28877 (grub_multiboot_pure_size): New variable.
28878 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28879 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28880 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28881 (grub_fill_multiboot_mmap): Likewise.
28882 (grub_multiboot_get_bootdev): Likewise.
28883 (grub_multiboot): Use multiboot_mbi functions.
28884 * loader/i386/multiboot_mbi.c: New file.
28886 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28888 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28889 it would result in module crash.
28891 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28893 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28894 (grub_ofconsole_getwh): Split to ...
28895 (grub_ofconsole_getwh): ... this.
28896 (grub_ofconsole_dimensions): ...and this.
28897 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28899 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28901 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28903 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28905 * loader/i386/pc/multiboot2.c: Removed stalled file.
28907 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28909 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28910 Reported by: Grégoire Sutre
28912 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28914 * util/misc.c (canonicalize_file_name): New function.
28915 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28916 instead of realpath().
28918 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
28920 * util/grub-install.in (usage): Clarify meaning of --root-directory,
28921 and make it clearer that it's optional. Based on confusion
28924 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28926 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
28927 in premature implicit newline.
28929 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28931 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
28932 which resulted in garbled command line at the end of screen.
28934 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28936 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
28937 initialization with similar approach as with other Linux loaders.
28939 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28941 Fix i386-ieee1275 build.
28943 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
28944 and grub_term_height() for video_{width,height} initialization.
28946 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28948 Fix grub-emu build.
28950 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
28952 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28953 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28955 Support for multiple terminals.
28957 * Makefile.in (pkglib_DATA): terminal.lst.
28958 (terminal.lst): New target.
28959 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
28960 (GRUB_MOD_INIT(handler)): Likewise.
28961 (GRUB_MOD_FINI(handler)): Likewise.
28962 * commands/help.c (grub_cmd_help): Handle multiple terminals.
28963 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
28964 * commands/sleep.c (do_print): Use grub_term_restore_pos.
28965 (grub_cmd_sleep): Use grub_term_save_pos.
28966 * commands/terminal.c: New file.
28967 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
28968 commands/terminal.c and lib/charset.c.
28969 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
28970 (pkglib_MODULES): Add terminal.mod.
28971 (terminal_mod_SOURCES): New variable.
28972 (terminal_mod_CFLAGS): Likewise.
28973 (terminal_mod_LDFLAGS): Likewise.
28974 * genhandlerlist.sh: Don't handle terminals.
28975 * genmk.rb: Generate terminal-*.lst.
28976 * genterminallist.sh: New file.
28977 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
28978 (grub_is_valid_utf8): Likewise.
28979 (grub_utf8_to_ucs4_alloc): Likewise.
28980 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
28981 (grub_menu_register_viewer): Changed argument.
28982 (grub_menu_try_text): New proto.
28983 (grub_gfxmenu_try_hook): New declaration.
28984 * include/grub/normal.h (grub_normal_exit_level): New declaration.
28985 (grub_menu_init_page): Additional argument term.
28986 (grub_normal_init_page): Likewise.
28987 (grub_cmdline_get): Arguments simplified.
28988 (grub_utf8_to_ucs4_alloc): Removed.
28989 (grub_print_ucs4): Additional argument term.
28990 (grub_getstringwidth): Likewise.
28991 (grub_print_message_indented): Likewise.
28992 (grub_menu_text_register_instances): New proto.
28993 (grub_show_menu): Likewise.
28994 (read_terminal_list): Likewise.
28995 (grub_set_more): Likewise.
28996 * include/grub/parser.h: Include handler.h.
28997 * include/grub/reader.h: Rewritten.
28998 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
28999 (GRUB_TERM_WIDTH): Changed to function.
29000 (GRUB_TERM_HEIGHT): Likewise.
29001 (GRUB_TERM_BORDER_WIDTH): Likewise.
29002 (GRUB_TERM_BORDER_HEIGHT): Likewise.
29003 (GRUB_TERM_NUM_ENTRIES): Likewise.
29004 (GRUB_TERM_ENTRY_WIDTH): Likewise.
29005 (GRUB_TERM_CURSOR_X): Likewise.
29006 (grub_term_input_class): Likewise.
29007 (grub_term_output_class): Likewise.
29008 (grub_term_outputs_disabled): New declaration.
29009 (grub_term_inputs_disabled): Likewise.
29010 (grub_term_outputs): Likewise.
29011 (grub_term_inputs): Likewise.
29012 (grub_term_register_input): Rewritten.
29013 (grub_term_register_output): Likewise.
29014 (grub_term_unregister_input): Likewise.
29015 (grub_term_unregister_output): Likewise.
29016 (FOR_ACTIVE_TERM_INPUTS): New macro.
29017 (FOR_DISABLED_TERM_INPUTS): Likewise.
29018 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
29019 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
29020 * include/grub/terminfo.h: Add oterm argument to all protypes.
29021 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
29022 Use grub_rescue_run.
29023 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
29025 * kern/reader.c: Removed. All users updated.
29026 * kern/rescue_reader.c (grub_rescue_init): Removed.
29027 (grub_rescue_reader): Likewise.
29028 (grub_register_rescue_reader): Likewise.
29029 (grub_rescue_run): New function based on kern/reader.c.
29030 * kern/term.c: Adapted for multiterm.
29031 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
29032 (grub_is_valid_utf8): Likewise.
29033 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
29034 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
29036 * loader/i386/linux.c (grub_linux_boot): Likewise.
29037 * normal/auth.c (grub_username_get): New function.
29038 (grub_auth_check_authentication): Use grub_username_get.
29039 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
29040 * normal/color.c: Adapt for multiterm.
29041 * normal/main.c (read_config_file): Don't use grub_reader_loop.
29042 (grub_normal_init_page): Additional argument term.
29043 (read_lists): Call read_terminal_lists.
29044 (grub_enter_normal_mode): Call grub_cmdline_run.
29045 Handle grub_normal_exit_level.
29046 (grub_cmd_normal): Make reentrant.
29047 (grub_cmd_normal_exit): New function.
29048 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
29049 * normal/menu.c: Adapt for multiterm.
29050 * normal/menu_entry.c: Likewise.
29051 * normal/menu_text.c: Likewise.
29052 * normal/menu_viewer.c: Removed. All users updated.
29053 * normal/term.c: New file.
29054 * util/console.c: Change order of includes to workaround a bug in
29056 * term/terminfo.c: New argument oterm on all exported functions.
29058 * util/grub-editenv.c (grub_term_input_class): Removed.
29059 (grub_term_output_class): Likewise.
29061 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
29063 Make loader output a bit more user-friendly.
29065 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
29066 is being loaded. Likewise for the Hurd.
29068 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
29069 that kernel of FreeBSD ${version} is being loaded.
29071 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
29073 (grub_cmd_initrd): Likewise.
29074 * util/grub.d/10_linux.in (linux_entry): Print message indicating
29075 that Linux ${version} is being loaded. Likewise for initrd.
29077 2010-01-09 Carles Pina i Estany <carles@pina.cat>
29079 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
29081 2010-01-08 Carles Pina i Estany <carles@pina.cat>
29083 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
29084 (GRUB_MOD_INIT): Gettextizze.
29085 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
29086 (GRUB_MOD_INIT): Gettextizze.
29087 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
29088 (grub_cmd_linux): Capitalise Linux.
29089 (GRUB_MOD_INIT): Gettextizze.
29090 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
29091 (grub_cmd_linux): Capitalise Linux.
29092 (GRUB_MOD_INIT): Gettextizze.
29093 * loader/i386/linux.c: Include `<grub/i18n.h>'.
29094 (grub_cmd_linux): Capitalise Linux.
29095 (GRUB_MOD_INIT): Gettextizze.
29096 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
29097 (GRUB_MOD_INIT): Gettextizze.
29098 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
29099 (grub_cmd_linux): Capitalise Linux.
29100 (GRUB_MOD_INIT): Gettextizze.
29101 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
29102 (grub_cpu_xnu_init): Gettextizze.
29103 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
29104 (GRUB_MOD_INIT): Gettextizze.
29105 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
29106 (GRUB_MOD_INIT): Gettextizze.
29107 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
29108 (grub_linux_load64): Capitalise Linux.
29109 (GRUB_MOD_INIT): Gettextizze.
29110 * loader/xnu.c: Include `<grub/i18n.h>'.
29111 (GRUB_MOD_INIT): Gettextizze.
29112 * po/POTFILES: Add `loader/efi/appleloader.c',
29113 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
29114 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
29115 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
29116 `loader/i386/xnu.c', `loader/multiboot_loader.c',
29117 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
29118 and `loader/xnu.c'.
29120 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
29122 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
29124 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
29126 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
29127 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
29128 * util/mkisofs/mkisofs.c (main): Readjust --version output.
29130 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29132 Reset Multiboot 2 support. New loader implements the draft in
29133 /branches/multiboot2 and shares as much code as possible with the
29134 production Multiboot 1 implementation.
29136 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
29137 * loader/multiboot2.c: Likewise.
29138 * loader/i386/multiboot_helper.S: Likewise.
29139 * include/multiboot2.h: Replace with latest version from the draft
29140 in /branches/multiboot2.
29142 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
29143 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
29144 and `loader/multiboot2.c'.
29145 (pkglib_MODULES): Add `multiboot2.mod'.
29146 (multiboot2_mod_SOURCES): New variable.
29147 (multiboot2_mod_LDFLAGS): Likewise.
29148 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
29150 * conf/i386-pc.rmk: Likewise.
29152 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29153 (multiboot_mod_SOURCES): Remove variable.
29154 (multiboot_mod_LDFLAGS): Likewise.
29155 (multiboot_mod_CFLAGS): Likewise.
29157 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
29158 `<multiboot2.h>' instead of `<multiboot.h>'.
29159 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
29160 (MULTIBOOT_HEADER_MAGIC): New macros.
29162 * loader/multiboot_loader.c (module_version_status): Remove variable.
29163 (find_multi_boot2_header): Remove function.
29164 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
29165 logic. Always check for the Multiboot version we're compiling for.
29166 (grub_cmd_module_loader): Likewise.
29167 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
29168 command instead of `multiboot'.
29170 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29172 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
29173 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
29176 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29177 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29179 Fix breakage introduced with previous commit.
29181 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
29183 * normal/handler.c (read_handler_list): Revert part of previous commit
29184 affecting this file.
29185 * normal/main.c (read_lists): Move read_handler_list() call back to ...
29186 (grub_normal_execute): ... here.
29188 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29190 Merge prefix-redefinition-fix branch.
29192 * normal/autofs.c (read_fs_list): Make function capable of being
29193 run multiple times, gracefuly replacing the previous data
29195 * normal/dyncmd.c (read_command_list): Likewise.
29196 * normal/handler.c (read_handler_list): Likewise.
29197 * normal/main.c (read_lists): New function. Calls all the
29198 list reading functions.
29199 (grub_normal_execute): Use read_lists() instead of calling all
29200 list reading functions explicitly. Register read_lists() as a
29201 variable hook attached to ${prefix}.
29203 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29205 Merge crypto branch.
29207 * Makefile.in (pkglib_DATA): Add crypto.lst.
29208 (crypto.lst): New target.
29209 * commands/hashsum.c: New file.
29210 * commands/password.c (check_password): Use grub_crypto_memcmp.
29211 * commands/password_pbkdf2.c: New file.
29212 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
29213 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
29214 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
29215 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
29216 -I$(srcdir)/lib/libgcrypt_wrap.
29217 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
29218 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
29219 password_pbkdf2.mod.
29220 (crypto_mod_SOURCES): New variable.
29221 (crypto_mod_CFLAGS): Likewise.
29222 (crypto_mod_LDFLAGS): Likewise.
29223 (hashsum_mod_SOURCES): New variable.
29224 (hashsum_mod_CFLAGS): Likewise.
29225 (hashsum_mod_LDFLAGS): Likewise.
29226 (pbkdf2_mod_SOURCES): New variable.
29227 (pbkdf2_mod_CFLAGS): Likewise.
29228 (pbkdf2_mod_LDFLAGS): Likewise.
29229 (password_pbkdf2_mod_SOURCES): New variable.
29230 (password_pbkdf2_mod_CFLAGS): Likewise.
29231 (password_pbkdf2_mod_LDFLAGS): Likewise.
29232 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
29233 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
29234 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
29235 Include conf/gcry.rmk.
29236 * include/grub/auth.h: Rewritten.
29237 * include/grub/crypto.h: New file.
29238 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
29239 * include/grub/normal.h (read_crypto_list): New prototype.
29240 * lib/crypto.c: New file.
29241 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29242 * lib/pbkdf2.c: Likewise.
29243 * normal/auth.c (grub_auth_strcmp): Removed.
29244 (grub_iswordseparator): Likewise.
29245 (grub_auth_strword): Likewise.
29246 (is_authenticated): Use grub_strword.
29247 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
29248 and grub_strword. Pass entered password to authentication callback.
29249 * normal/crypto.c: New file.
29250 * normal/main.c: Call read_crypto_list.
29251 * util/grub-mkpasswd-pbkdf2.c: New file.
29252 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
29254 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
29256 Fix descent and ascent calculation.
29258 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
29259 (options): New option "asce".
29261 (add_char): Ignore invalid glyphs for descent calculation.
29262 Calculate ascent from actual content.
29263 (print_glyphs): Use 'asce'.
29264 (write_font): Likewise. Allow ascent override.
29265 (main): Handle "asce" option.
29267 2010-01-06 Carles Pina i Estany <carles@pina.cat>
29269 * kern/err.c: Include `<grub/i18n.h>'.
29270 (grub_print_error): Add full stop. Gettextizze.
29271 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
29272 (grub_bsd_load_elf): Capitalise ELF.
29273 (grub_cmd_freebsd_loadenv): Add `s' in error string.
29274 (grub_cmd_freebsd_module): Likewise.
29275 (grub_cmd_freebsd_module_elf): Likewise.
29276 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
29278 2010-01-06 Carles Pina i Estany <carles@pina.cat>
29280 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
29281 * commands/search_file.c (HELP_MESSAGE): New macro.
29282 * commands/search_label.c (HELP_MESSAGE): Likewise.
29283 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
29284 * po/POTFILES: Add `commands/search_file.c',
29285 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
29286 `commands/search.c'.
29288 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29290 * config.rpath: Update from Gnulib.
29292 2010-01-05 Yves Blusseau <blusseau@zetam.org>
29294 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
29296 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
29298 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
29300 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
29302 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
29303 arguments to fread so that we get a return value in bytes, rather
29304 than something that will normally be rounded down to 0.
29305 Adjust error handling to avoid producing garbage when size_t is not
29306 the same size as long long.
29308 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
29310 * util/mkisofs/write.c (padblock_write): Check return value of
29313 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29315 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
29318 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
29320 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29322 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
29323 instead of manual alignment.
29324 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
29325 verbose). Avoid attempts to read past end of the device
29326 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
29327 but GRUB_DISK_CACHE_SIZE may exceed that).
29329 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29331 * commands/crc.c (grub_cmd_crc): Abort on read errors.
29332 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
29335 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29337 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
29339 (grub_efi_piwg_device_path): New structure
29340 (grub_efi_piwg_device_path_t): New type.
29341 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
29342 (devpath_1): Transform to a structure. All users updated.
29343 (devpath_2): Likewise.
29344 (devpath_3): Likewise.
29345 (devpath_4): Likewise.
29346 (devpath_5): Likewise.
29348 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29350 * loader/efi/appleloader.c: Restored. Update all users.
29352 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29354 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
29356 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
29357 (struct boot_blocklist): Move from here ...
29358 * include/grub/i386/pc/boot.h [ASM_FILE]
29359 (struct grub_boot_blocklist): ... to here. Update all users.
29360 (setup): Only initialize `start' member of `first_block'
29361 structure. Add assert() calls to verify the other members.
29363 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
29364 (generate_image): Fix broken blocklist length initialization.
29365 Add assert() call to verify blocklist `segment' field.
29367 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29369 * loader/efi/appleloader.c: Remove. Update all users.
29371 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29373 * boot/i386/pc/boot.S: Update copyright year.
29374 * boot/i386/pc/cdboot.S: Likewise.
29375 * boot/i386/pc/diskboot.S: Likewise.
29376 * boot/i386/pc/lnxboot.S: Likewise.
29377 * boot/i386/pc/pxeboot.S: Likewise.
29378 * bus/pci.c: Likewise.
29379 * commands/cmp.c: Likewise.
29380 * commands/help.c: Likewise.
29381 * commands/hexdump.c: Likewise.
29382 * commands/i386/pc/halt.c: Likewise.
29383 * commands/i386/pc/play.c: Likewise.
29384 * commands/i386/pc/vbeinfo.c: Likewise.
29385 * commands/ls.c: Likewise.
29386 * commands/test.c: Likewise.
29387 * disk/dmraid_nvidia.c: Likewise.
29388 * disk/i386/pc/biosdisk.c: Likewise.
29389 * disk/ieee1275/nand.c: Likewise.
29390 * disk/ieee1275/ofdisk.c: Likewise.
29391 * disk/lvm.c: Likewise.
29392 * disk/raid.c: Likewise.
29393 * disk/raid6_recover.c: Likewise.
29394 * disk/scsi.c: Likewise.
29395 * fs/affs.c: Likewise.
29396 * fs/cpio.c: Likewise.
29397 * fs/ext2.c: Likewise.
29398 * fs/hfs.c: Likewise.
29399 * fs/iso9660.c: Likewise.
29400 * fs/ntfs.c: Likewise.
29401 * fs/sfs.c: Likewise.
29402 * fs/udf.c: Likewise.
29403 * fs/ufs.c: Likewise.
29404 * fs/xfs.c: Likewise.
29405 * gencmdlist.sh: Likewise.
29406 * genmk.rb: Likewise.
29407 * include/grub/disk.h: Likewise.
29408 * include/grub/efi/api.h: Likewise.
29409 * include/grub/efi/efi.h: Likewise.
29410 * include/grub/efi/pe32.h: Likewise.
29411 * include/grub/elf.h: Likewise.
29412 * include/grub/fs.h: Likewise.
29413 * include/grub/i386/at_keyboard.h: Likewise.
29414 * include/grub/i386/pc/memory.h: Likewise.
29415 * include/grub/i386/pc/vbe.h: Likewise.
29416 * include/grub/i386/pci.h: Likewise.
29417 * include/grub/i386/tsc.h: Likewise.
29418 * include/grub/ieee1275/ieee1275.h: Likewise.
29419 * include/grub/ntfs.h: Likewise.
29420 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29421 * include/grub/sparc64/libgcc.h: Likewise.
29422 * include/grub/symbol.h: Likewise.
29423 * include/grub/types.h: Likewise.
29424 * include/multiboot2.h: Likewise.
29425 * io/gzio.c: Likewise.
29426 * kern/device.c: Likewise.
29427 * kern/disk.c: Likewise.
29428 * kern/efi/efi.c: Likewise.
29429 * kern/efi/mm.c: Likewise.
29430 * kern/elf.c: Likewise.
29431 * kern/file.c: Likewise.
29432 * kern/i386/dl.c: Likewise.
29433 * kern/i386/pc/init.c: Likewise.
29434 * kern/i386/pc/startup.S: Likewise.
29435 * kern/ieee1275/ieee1275.c: Likewise.
29436 * kern/ieee1275/init.c: Likewise.
29437 * kern/main.c: Likewise.
29438 * kern/mm.c: Likewise.
29439 * kern/powerpc/dl.c: Likewise.
29440 * kern/sparc64/dl.c: Likewise.
29441 * kern/x86_64/dl.c: Likewise.
29442 * lib/hexdump.c: Likewise.
29443 * loader/efi/appleloader.c: Likewise.
29444 * loader/i386/ieee1275/linux.c: Likewise.
29445 * loader/i386/pc/chainloader.c: Likewise.
29446 * loader/i386/pc/linux.c: Likewise.
29447 * loader/i386/pc/multiboot2.c: Likewise.
29448 * loader/ieee1275/multiboot2.c: Likewise.
29449 * loader/multiboot2.c: Likewise.
29450 * loader/multiboot_loader.c: Likewise.
29451 * loader/powerpc/ieee1275/linux.c: Likewise.
29452 * normal/completion.c: Likewise.
29453 * normal/menu_entry.c: Likewise.
29454 * partmap/apple.c: Likewise.
29455 * util/grub.d/10_hurd.in: Likewise.
29456 * util/hostfs.c: Likewise.
29457 * video/readers/png.c: Likewise.
29459 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
29461 * include/grub/misc.h (GNUC_PREREQ): New macro.
29462 (ATTRIBUTE_ERROR): New macro.
29463 * include/grub/list.h (grub_bad_type_cast_real): Use
29466 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29468 * normal/menu_text.c (print_message): Change messages.
29470 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29472 * normal/menu_entry.c (store_completion): Gettextizze.
29474 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29476 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
29478 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29480 * po/POTFILES: Sort correctly.
29482 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29484 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
29485 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
29486 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
29488 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
29489 summary. Gettextizze the strings.
29490 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
29491 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
29492 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
29494 (GRUB_MOD_INIT): Remove command name from summary.
29495 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
29497 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
29498 * term/i386/pc/serial.c (options): Add full stops.
29499 (GRUB_MOD_INIT): Remove command name from the summary.
29501 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29503 * commands/acpi.c: Gettextizze help strings and/or options. Include
29504 `grub/i18n.h' if needed.
29505 * commands/blocklist.c: Likewise.
29506 * commands/boot.c: Likewise.
29507 * commands/cat.c: Likewise.
29508 * commands/cmp.c: Likewise.
29509 * commands/configfile.c: Likewise.
29510 * commands/crc.c: Likewise.
29511 * commands/date.c: Likewise.
29512 * commands/echo.c: Likewise.
29513 * commands/efi/fixvideo.c: Likewise.
29514 * commands/efi/loadbios.c: Likewise.
29515 * commands/gptsync.c: Likewise.
29516 * commands/halt.c: Likewise.
29517 * commands/handler.c: Likewise.
29518 * commands/hdparm.c: Likewise.
29519 * commands/hexdump.c: Likewise.
29520 * commands/i386/cpuid.c: Likewise.
29521 * commands/i386/pc/drivemap.c: Likewise.
29522 * commands/i386/pc/halt.c: Likewise.
29523 * commands/i386/pc/pxecmd.c: Likewise.
29524 * commands/i386/pc/vbeinfo.c: Likewise.
29525 * commands/i386/pc/vbetest.c: Likewise.
29526 * commands/ieee1275/suspend.c: Likewise.
29527 * commands/keystatus.c: Likewise.
29528 * commands/loadenv.c: Likewise.
29529 * commands/ls.c: Likewise.
29530 * commands/lsmmap.c: Likewise.
29531 * commands/lspci.c: Likewise.
29532 * commands/memrw.c: Likewise.
29533 * commands/minicmd.c: Likewise.
29534 * commands/parttool.c: Likewise.
29535 * commands/password.c: Likewise.
29536 * commands/probe.c: Likewise.
29537 * commands/read.c: Likewise.
29538 * commands/reboot.c: Likewise.
29539 * commands/search.c: Likewise.
29540 * commands/sleep.c: Likewise.
29541 * commands/test.c: Likewise.
29542 * commands/true.c: Likewise.
29543 * commands/usbtest.c: Likewise.
29544 * commands/videotest.c: Likewise.
29545 * commands/xnu_uuid.c: Likewise.
29546 * disk/loopback.c: Likewise.
29547 * hello/hello.c: Likewise.
29548 * loader/i386/bsd.c: Likewise.
29549 * term/i386/pc/serial.c: Likewise.
29550 * po/POTFILES: Add new files.
29552 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
29554 * term/i386/pc/at_keyboard.c
29555 (keyboard_controller_wait_untill_ready): Rename to ...
29556 (keyboard_controller_wait_until_ready): ... this. Update all users.
29558 2010-01-01 Carles Pina i Estany <carles@pina.cat>
29560 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
29561 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
29562 string using string width.
29563 * normal/menu_text.c (grub_print_message_indented): Use
29564 grub_print_spaces and not print_spaces.
29565 (print_timeout): Likewise.
29566 (print_spaces): Move to...
29567 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
29569 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
29571 Import from Gnulib.
29573 * gnulib/getdelim.c: New file.
29574 * gnulib/getline.c: Likewise.
29576 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
29578 * include/grub/list.h (grub_assert_fail): Removed.
29579 (grub_bad_type_cast_real): New function.
29580 (grub_bad_type_cast): New macro.
29581 (GRUB_AS_LIST): Use grub_bad_type_cast.
29582 (GRUB_AS_LIST_P): Likewise.
29583 (GRUB_AS_NAMED_LIST): Likewise.
29584 (GRUB_AS_NAMED_LIST_P): Likewise.
29585 (GRUB_AS_PRIO_LIST): Likewise.
29586 (GRUB_AS_PRIO_LIST_P): Likewise.
29587 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
29589 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
29591 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
29594 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
29596 * configure.ac: Check for TARGET_CFLAGS initialization before we
29597 initialize it ourselves (sigh).
29598 Move a few modifications to TARGET_CFLAGS to be unconditional
29599 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
29602 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
29603 * term/i386/pc/at_keyboard.c
29604 (keyboard_controller_wait_untill_ready): Likewise.
29605 (keyboard_controller_led): Rename `led_status' paramter to avoid
29608 2009-12-28 Carles Pina i Estany <carles@pina.cat>
29610 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
29613 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29615 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
29617 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29619 * normal/menu_text.c (grub_print_message_indented): Prevent
29620 past-the-end-of-array dereference.
29622 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29624 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
29625 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
29627 2009-12-27 Carles Pina i Estany <carles@pina.cat>
29629 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
29630 * normal/main.c (grub_normal_read_line): Remove a space from the
29633 2009-12-27 Carles Pina i Estany <carles@pina.cat>
29635 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
29636 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29637 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29638 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29639 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29640 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29641 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29643 2009-12-26 Carles Pina i Estany <carles@pina.cat>
29645 * video/readers/jpeg.c (cmd): Declare.
29646 (grub_cmd_jpegtest): Use `grub_command_t' type.
29647 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29649 (GRUB_MOD_FINI): Use `cmd' to unregister.
29650 * video/readers/png.c (cmd): Declare.
29651 (grub_cmd_pngtest): Use `grub_command_t' type.
29652 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29654 (GRUB_MOD_FINI): Use `cmd' to unregister.
29655 * video/readers/tga.c (cmd): Declare.
29656 (grub_cmd_tgatest): Use `grub_command_t' type.
29657 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29659 (GRUB_MOD_FINI): Use `cmd' to unregister.
29661 2009-12-26 Carles Pina i Estany <carles@pina.cat>
29663 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
29665 * kern/corecmd.c (grub_register_core_commands): Likewise.
29666 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
29667 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29668 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
29669 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29670 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29671 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
29672 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29673 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
29674 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29675 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29676 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29677 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29678 * normal/handler.c (insert_handler): Likewise.
29679 * normal/main.c (GRUB_MOD_INIT): Likewise.
29680 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29682 2009-12-26 Carles Pina i Estany <carles@pina.cat>
29684 * commands/help.c (grub_cmd_help): Print the command name before the
29686 (GRUB_MOD_INIT): Remove command name from the summary.
29687 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
29689 * lib/arg.c (find_long): Print the command name before the summary.
29690 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
29692 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
29693 * commands/cat.c (GRUB_MOD_INIT): Likewise.
29694 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
29695 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29696 * commands/crc.c (GRUB_MOD_INIT): Likewise.
29697 * commands/date.c (GRUB_MOD_INIT): Likewise.
29698 * commands/echo.c (GRUB_MOD_INIT): Likewise.
29699 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
29700 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29701 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29702 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
29703 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
29704 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
29705 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
29706 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29707 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
29708 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
29709 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
29710 * commands/ls.c (GRUB_MOD_INIT): Likewise.
29711 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29712 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29713 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29714 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
29715 * commands/password.c (GRUB_MOD_INIT): Likewise.
29716 * commands/probe.c (GRUB_MOD_INIT): Likewise.
29717 * commands/read.c (GRUB_MOD_INIT): Likewise.
29718 * commands/search.c (GRUB_MOD_INIT): Likewise.
29719 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
29720 * commands/test.c (GRUB_MOD_INIT): Likewise.
29721 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
29722 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29723 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29724 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
29725 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29726 * lib/arg.c (GRUB_MOD_INIT): Likewise.
29727 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
29728 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29729 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29730 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29731 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29732 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
29733 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
29734 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
29736 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29738 Use search command for preliminar UUID search.
29740 * commands/search.c: Split into ...
29741 * commands/search_wrap.c: ...this
29742 * commands/search.c: ...and this.
29743 * commands/search_file.c: New file.
29744 * commands/search_label.c: New file.
29745 * commands/search_uuid.c: New file.
29746 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
29747 Add commands/search_wrap.c, commands/search_file.c,
29748 commands/search_label.c and commands/search_uuid.c.
29749 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
29750 (search_mod_SOURCES): Set to commands/search_wrap.c.
29751 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
29753 (search_fs_file_mod_SOURCES): New variable.
29754 (search_fs_file_mod_CFLAGS): Likewise.
29755 (search_fs_file_mod_LDFLAGS): Likewise.
29756 (search_label_mod_SOURCES): Likewise.
29757 (search_label_mod_CFLAGS): Likewise.
29758 (search_label_mod_LDFLAGS): Likewise.
29759 (search_fs_uuid_mod_SOURCES): New variable.
29760 (search_fs_uuid_mod_CFLAGS): Likewise.
29761 (search_fs_uuid_mod_LDFLAGS): Likewise.
29762 (fs_file_mod_SOURCES): Removed.
29763 (fs_file_mod_CFLAGS): Likewise.
29764 (fs_file_mod_LDFLAGS): Likewise.
29765 (fs_uuid_mod_SOURCES): Removed.
29766 (fs_uuid_mod_CFLAGS): Likewise.
29767 (fs_uuid_mod_LDFLAGS): Likewise.
29768 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
29769 Set to util/grub-install.in.
29770 * disk/fs_file.c: Removed.
29771 * disk/fs_uuid.c: Likewise.
29772 * include/grub/search.h: New file.
29773 * util/grub-install.in: Handle sparc64.
29774 Create and use load.cfg.
29775 * util/sparc64/ieee1275/grub-install.in: Removed.
29777 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29779 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
29780 Ignore return status if CF is cleared.
29781 (grub_biosdisk_get_diskinfo_standard): Likewise.
29783 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29785 * term/i386/pc/at_keyboard.c
29786 (keyboard_controller_wait_untill_ready): New function.
29787 (grub_keyboard_controller_write, grub_keyboard_controller_read)
29788 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
29789 for keyboard polling, rather than duplicate the same loop. This
29790 saves a few bytes in code size.
29792 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29794 Support for (pxe[:server[:gateway]]) syntax and
29795 use environment variable for PXE.
29797 * commands/i386/pc/pxecmd.c (options): Removed.
29798 (print_ip): Removed.
29799 (grub_cmd_pxe): Removed
29800 (grub_cmd_pxe_unload): New function.
29801 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29802 (grub_pxe_your_ip): Made static.
29803 (grub_pxe_default_server_ip): Likewise.
29804 (grub_pxe_default_gateway_ip): Likewise.
29805 (grub_pxe_blksize): Likewise.
29806 (parse_ip): New function.
29807 (grub_pxe_open): Support server and gateway specification.
29808 (grub_pxe_close): Free disk->data.
29809 (grub_pxefs_open): Use disk->data.
29810 (grub_pxefs_read): Likewise.
29811 (grub_env_write_readonly): New function.
29812 (set_mac_env): Likewise.
29813 (set_env_limn_ro): Likewise.
29814 (parse_dhcp_vendor): Likewise.
29815 (grub_pxe_detect): Set the environment variables.
29816 (set_ip_env): New function.
29817 (write_ip_env): Likewise.
29818 (grub_env_write_pxe_default_server): Likewise.
29819 (grub_env_write_pxe_default_gateway): Likewise.
29820 (grub_env_write_pxe_blocksize): Likewise.
29821 (GRUB_MOD_INIT(pxe)): Set environment variables.
29822 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29823 (grub_pxe_mac_addr_t): ... this. All users updated.
29824 (grub_pxe_your_ip): Removed.
29825 (grub_pxe_server_ip): Likewise.
29826 (grub_pxe_gateway_ip): Likewise.
29827 (grub_pxe_blksize): Likewise.
29829 2009-12-25 Carles Pina i Estany <carles@pina.cat>
29831 * commands/help.c: Include `<grub/i18n.h>'.
29832 (grub_cmd_help): Gettextizze.
29833 (GRUB_MOD_INIT): Likewise.
29834 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29835 (GRUB_MOD_INIT): Gettextizze.
29836 * commands/search.c: Include `<grub/i18n.h>'.
29837 (options): Gettextizze.
29838 (GRUB_MOD_INIT): Gettextizze.
29839 * lib/arg.c: Include `<grub/i18n.h>'.
29840 (help_options): Gettextizze.
29841 (find_long): Likewise.
29842 (grub_arg_show_help): Likewise.
29843 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29844 (read_command_list): Gettextizze.
29845 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
29846 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
29848 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29850 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29851 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29852 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29853 (led_status): New variable.
29854 (keyboard_controller_led): New function.
29855 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29856 update led status for caps lock, num lock and scroll lock.
29858 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
29860 * util/hostdisk.c (open_device): Fix a comment.
29862 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29864 * util/grub-install.in (host_os): New variable.
29865 * util/i386/efi/grub-install.in (host_os): Likewise.
29867 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29869 * util/mkisofs/write.c (padblock_write): Abort when given an
29870 excedingly large embed image, instead of silently truncating it.
29872 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29874 * include/multiboot.h: Indentation fixes.
29876 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29878 * include/multiboot.h (struct multiboot_aout_symbol_table)
29879 (struct multiboot_elf_section_header_table): New structure
29880 declarations (stolen from GRUB Legacy).
29881 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29884 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29885 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29888 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29890 * include/multiboot.h: Make comments src2texi-friendly.
29892 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29894 For consistency with [multiboot]/docs/boot.S.
29896 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29897 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29898 (MULTIBOOT_MAGIC2): Rename from this ...
29899 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29901 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29903 * include/multiboot.h: Remove `<grub/types.h>'.
29904 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29905 types. Update all users.
29907 2009-12-25 Carles Pina i Estany <carles@pina.cat>
29909 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29910 `couldn't' and `can not' by `cannot'.
29911 * commands/i386/pc/drivemap.c: Likewise.
29912 * disk/ata.c: Likewise.
29913 * disk/ieee1275/nand.c: Likewise.
29914 * fs/affs.c: Likewise.
29915 * fs/fat.c: Likewise.
29916 * fs/hfs.c: Likewise.
29917 * fs/hfsplus.c: Likewise.
29918 * fs/iso9660.c: Likewise.
29919 * fs/jfs.c: Likewise.
29920 * fs/minix.c: Likewise.
29921 * fs/reiserfs.c: Likewise.
29922 * fs/sfs.c: Likewise.
29923 * fs/udf.c: Likewise.
29924 * fs/ufs.c: Likewise.
29925 * fs/xfs.c: Likewise.
29926 * loader/powerpc/ieee1275/linux.c: Likewise.
29927 * loader/sparc64/ieee1275/linux.c: Likewise.
29928 * util/grub-probe.c: Likewise.
29929 * util/misc.c: Likewise.
29931 2009-12-24 Carles Pina i Estany <carles@pina.cat>
29933 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
29935 * commands/acpi.c: Likewise.
29936 * commands/blocklist.c: Likewise.
29937 * commands/efi/loadbios.c: Likewise.
29938 * commands/i386/pc/drivemap.c: Likewise.
29939 * commands/loadenv.c: Likewise.
29940 * commands/memrw.c: Likewise.
29941 * commands/password.c: Likewise.
29942 * commands/videotest.c: Likewise.
29943 * disk/ata.c: Likewise.
29944 * disk/ata_pthru.c: Likewise.
29945 * disk/dmraid_nvidia.c: Likewise.
29946 * disk/ieee1275/nand.c: Likewise.
29947 * disk/ieee1275/ofdisk.c: Likewise.
29948 * disk/loopback.c: Likewise.
29949 * disk/lvm.c: Likewise.
29950 * disk/mdraid_linux.c: Likewise.
29951 * disk/raid.c: Likewise.
29952 * disk/raid6_recover.c: Likewise.
29953 * disk/scsi.c: Likewise.
29954 * efiemu/main.c: Likewise.
29955 * efiemu/mm.c: Likewise.
29956 * efiemu/pnvram.c: Likewise.
29957 * efiemu/symbols.c: Likewise.
29958 * font/font.c: Likewise.
29959 * fs/cpio.c: Likewise.
29960 * fs/hfsplus.c: Likewise.
29961 * fs/iso9660.c: Likewise.
29962 * fs/jfs.c: Likewise.
29963 * fs/minix.c: Likewise.
29964 * fs/ntfs.c: Likewise.
29965 * fs/ntfscomp.c: Likewise.
29966 * fs/reiserfs.c: Likewise.
29967 * fs/ufs.c: Likewise.
29968 * fs/xfs.c: Likewise.
29969 * gettext/gettext.c: Likewise.
29970 * include/grub/auth.h: Likewise.
29971 * kern/elf.c: Likewise.
29972 * kern/file.c: Likewise.
29973 * kern/ieee1275/init.c: Likewise.
29974 * kern/ieee1275/mmap.c: Likewise.
29975 * kern/ieee1275/openfw.c: Likewise.
29976 * kern/powerpc/dl.c: Likewise.
29977 * kern/sparc64/dl.c: Likewise.
29978 * lib/arg.c: Likewise.
29979 * loader/i386/bsd.c: Likewise.
29980 * loader/i386/bsdXX.c: Likewise.
29981 * loader/i386/efi/linux.c: Likewise.
29982 * loader/i386/efi/xnu.c: Likewise.
29983 * loader/i386/ieee1275/linux.c: Likewise.
29984 * loader/i386/linux.c: Likewise.
29985 * loader/i386/multiboot.c: Likewise.
29986 * loader/i386/pc/linux.c: Likewise.
29987 * loader/i386/pc/multiboot2.c: Likewise.
29988 * loader/i386/xnu.c: Likewise.
29989 * loader/ieee1275/multiboot2.c: Likewise.
29990 * loader/macho.c: Likewise.
29991 * loader/machoXX.c: Likewise.
29992 * loader/multiboot2.c: Likewise.
29993 * loader/multiboot_loader.c: Likewise.
29994 * loader/powerpc/ieee1275/linux.c: Likewise.
29995 * loader/sparc64/ieee1275/linux.c: Likewise.
29996 * loader/xnu.c: Likewise.
29997 * loader/xnu_resume.c: Likewise.
29998 * mmap/i386/pc/mmap.c: Likewise.
29999 * normal/menu_viewer.c: Likewise.
30000 * partmap/acorn.c: Likewise.
30001 * partmap/amiga.c: Likewise.
30002 * partmap/apple.c: Likewise.
30003 * script/lexer.c: Likewise.
30004 * term/gfxterm.c: Likewise.
30005 * term/i386/pc/serial.c: Likewise.
30006 * term/i386/pc/vga.c: Likewise.
30007 * term/ieee1275/ofconsole.c: Likewise.
30008 * term/terminfo.c: Likewise.
30009 * video/bitmap.c: Likewise.
30010 * video/efi_gop.c: Likewise.
30011 * video/efi_uga.c: Likewise.
30012 * video/fb/video_fb.c: Likewise.
30013 * video/i386/pc/vbe.c: Likewise.
30014 * video/readers/tga.c: Likewise.
30015 * video/video.c: Likewise.
30017 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
30019 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
30020 * commands/lspci.c: Likewise.
30021 * commands/probe.c: Likewise.
30022 * commands/xnu_uuid.c: Likewise.
30023 * conf/i386-coreboot.rmk: Likewise.
30024 * conf/i386-efi.rmk: Likewise.
30025 * conf/i386-ieee1275.rmk: Likewise.
30026 * conf/i386-pc.rmk: Likewise.
30027 * conf/powerpc-ieee1275.rmk: Likewise.
30028 * conf/sparc64-ieee1275.rmk: Likewise.
30029 * conf/x86_64-efi.rmk: Likewise.
30030 * fs/i386/pc/pxe.c: Likewise.
30031 * gettext/gettext.c: Likewise.
30032 * include/grub/efi/graphics_output.h: Likewise.
30033 * include/grub/i386/pc/memory.h: Likewise.
30034 * kern/env.c: Likewise.
30035 * kern/i386/qemu/startup.S: Likewise.
30036 * lib/i386/pc/biosnum.c: Likewise.
30037 * lib/i386/relocator.c: Likewise.
30038 * lib/i386/relocator_asm.S: Likewise.
30039 * lib/relocator.c: Likewise.
30040 * loader/i386/bsd.c: Likewise.
30041 * loader/i386/multiboot.c: Likewise.
30042 * loader/i386/pc/chainloader.c: Likewise.
30043 * loader/i386/xnu.c: Likewise.
30044 * loader/xnu.c: Likewise.
30045 * normal/main.c: Likewise.
30046 * normal/menu_text.c: Likewise.
30047 * util/getroot.c: Likewise.
30048 * util/grub-mkconfig_lib.in: Likewise.
30049 * util/grub.d/00_header.in: Likewise.
30050 * util/i386/pc/grub-mkimage.c: Likewise.
30051 * util/mkisofs/eltorito.c: Likewise.
30052 * util/mkisofs/exclude.h: Likewise.
30053 * util/mkisofs/hash.c: Likewise.
30054 * util/mkisofs/iso9660.h: Likewise.
30055 * util/mkisofs/joliet.c: Likewise.
30056 * util/mkisofs/mkisofs.c: Likewise.
30057 * util/mkisofs/mkisofs.h: Likewise.
30058 * util/mkisofs/multi.c: Likewise.
30059 * util/mkisofs/name.c: Likewise.
30060 * util/mkisofs/rock.c: Likewise.
30061 * util/mkisofs/tree.c: Likewise.
30062 * util/mkisofs/write.c: Likewise.
30063 * video/efi_gop.c: Likewise.
30065 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
30067 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
30070 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
30072 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
30073 * genmk.rb (class SCRIPT): Modify the target file instead of source.
30075 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30077 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
30078 (GRUB_MOD_INIT(memrw)): Update help line.
30080 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30082 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
30083 Use grub_extcmd_t. All users updated.
30084 (options): New variable.
30085 (grub_cmd_read): Restructure for readability. Support "-v" option.
30086 (grub_cmd_write): Restructure for readability.
30088 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
30090 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
30092 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
30094 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
30095 with the actual contents of the correspondending make variable.
30096 * util/grub-mkrescue.in (pkglib_DATA): New variable.
30097 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
30098 specifying `*.lst' and `efiemu??.o'
30100 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
30102 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
30103 after function name.
30104 Noticed by Rene Engelhard <rene@debian.org>.
30106 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30108 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
30109 (options): New variable.
30110 (iospace): Likewise.
30111 (grub_lspci_iter): List IO spaces if "-i" was given.
30112 (grub_cmd_lspci): Parse options.
30113 (GRUB_MOD_INIT(lspci)): Use extcmd.
30114 (GRUB_MOD_FINI(lspci)): Likewise.
30116 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
30118 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
30119 `function' keyword.
30120 Patch by Tony Mancill <tmancill@debian.org>.
30122 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30124 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
30125 (grub_uhci_portstatus): Likewise.
30126 (grub_uhci_portstatus): Add necessary delay.
30127 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
30129 2009-12-21 Carles Pina i Estany <carles@pina.cat>
30131 * commands/acpi.c (options): Fix capitalizations and/or full stops.
30132 (GRUB_MOD_INIT): Likewise.
30133 * commands/boot.c (GRUB_MOD_INIT): Likewise.
30134 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
30135 * commands/echo.c (options): Fix capitalizations and/or full stops.
30136 * commands/efi/loadbios.c (enable_rom_area): Likewise.
30137 (enable_rom_area): Likewise.
30138 (GRUB_MOD_INIT): Likewise.
30139 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
30140 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
30141 * commands/handler.c (GRUB_MOD_INIT): Likewise.
30142 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
30143 * commands/hexdump.c (options): Likewise.
30144 * commands/i386/cpuid.c (options): Likewise.
30145 (GRUB_MOD_INIT): Likewise.
30146 * commands/i386/pc/drivemap.c (options): Likewise.
30147 (GRUB_MOD_INIT): Likewise.
30148 * commands/i386/pc/halt (options): Likewise.
30149 (GRUB_MOD_INIT): Likewise.
30150 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
30151 * commands/i386/pc/pxecmd.c (options): Likewise.
30152 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
30153 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
30154 * commands/keystatus.c (options): Likewise.
30155 (GRUB_MOD_INIT): Likewise.
30156 * commands/loadenv.c (options): Likewise.
30157 * commands/ls.c (options): Likewise.
30158 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
30159 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
30160 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
30161 * commands/parttool.c (helpmsg): Likewise.
30162 * commands/probe.c (options): Likewise.
30163 * commands/read.c (GRUB_MOD_INIT): Likewise.
30164 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
30165 * commands/search.c (options): Likewise.
30166 * commands/sleep.c (options): Likewise.
30167 * commands/test.c (GRUB_MOD_INIT): Likewise.
30168 * commands/true.c (GRUB_MOD_INIT): Likewise.
30169 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
30170 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
30171 * lib/arg.c (help_options): Likewise.
30172 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
30174 * po/POTFILES: Add `commands/loadenv.c'.
30176 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
30178 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
30179 instead of specifying them explicit.
30181 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30183 * NEWS: Add grub-probe support for GNU/Hurd.
30185 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30187 * NEWS: gettext was added after 1.97.
30189 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30191 * util/mkisofs/msdos_partition.h: New file (based on
30192 include/grub/msdos_partition.h).
30193 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
30194 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
30195 (ld_options, main): Recognize --protective-msdos-label.
30196 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
30197 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
30198 (padblock_write): If `use_protective_msdos_label' is set, patch a
30199 protective DOS-style label in the output image.
30201 * util/grub-mkrescue.in: Use --protective-msdos-label.
30203 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30205 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
30208 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30210 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
30212 (ld_options, main): Recognize `--embedded-boot'.
30213 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
30215 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
30216 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
30217 (padblock_write): Likewise. Rewrite to support embedded boot image.
30219 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
30220 for BIOS-based disk boot instead of only ElTorito.
30222 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30224 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
30225 build (not needed for bootstrap).
30227 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30229 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
30230 from i386-pc build (not needed for bootstrap).
30231 Rewrite a pair of strings.
30233 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30235 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
30237 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
30239 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
30241 2009-12-21 Andreas Born <futur.andy@googlemail.com>
30243 * kern/env.c (grub_env_context_open): Mark exported variable for
30246 2009-12-21 Andreas Born <futur.andy@googlemail.com>
30248 * kern/env.c (grub_env_export): Create nonexistent variables before
30251 2009-12-20 Carles Pina i Estany <carles@pina.cat>
30253 * include/grub/auth.h: Include `<grub/i18n.h>'.
30254 (GRUB_GET_PASSWORD): Gettextizze string.
30255 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
30257 (grub_utf8_to_ucs4_alloc): Fix indentation.
30258 (grub_print_ucs4): Likewise.
30259 (grub_getstringwidth): Likewise.
30260 (print_message_indented): New declaration.
30261 * normal/auth.c: Include `<grub/i18n.h>'.
30262 (grub_auth_check_authentication): Gettexttize string.
30263 * normal/cmdline.c: Include `<grub/i18n.h>'.
30264 (grub_cmdline_get): Gettextizze.
30265 * normal/color.c: Include `<grub/i18n.h>'.
30266 (grub_parse_color_name_pair): Gettexttize strings.
30267 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
30268 string (use `print_message_indented').
30269 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
30270 `include/grub/normal.h'.
30271 (print_message_indented): Renamed to ...
30272 (grub_print_message_indented): ... this. Remove `static' qualifer (now
30273 used in normal/main.c).
30274 (print_message): Use `grub_print_message_indented' instead of
30275 `print_message_indented'.
30276 (print_timeout): Likewise.
30277 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
30278 (grub_normal_print_device_info): Gettexttize strings.
30279 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
30281 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30283 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
30284 of arguments. Return number of tokens and not arguments. All users
30287 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30289 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
30290 non-MSDOS paritions.
30292 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
30294 * include/grub/types.h (UNUSED): Removed since it conflicts with
30295 NetBSD headers. All users changed to direct __attribute__ ((unused)).
30296 Reported by Grégoire Sutre.
30298 2009-12-19 Carles Pina i Estany <carles@pina.cat>
30300 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
30301 (grub_print_ucs4_alloc): Likewise.
30302 (grub_getstringwidth): Likewise.
30303 * normal/main.c (grub_normal_init_page): Gettextize version string.
30304 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
30305 (getstringwidth): Renamed to ...
30306 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
30307 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
30308 (grub_print_ucs4): Remove `static' qualifer (now used in
30310 * po/POTFILES: Add normal/main.c.
30312 2009-12-19 Carles Pina i Estany <carles@pina.cat>
30314 * normal/menu_text.c (STANDARD_MARGIN): New macro.
30315 (print_message_indented): Add `margin_left' and `margin_right'
30317 (print_message): Update `print_message_indented' calls. Adds '\n' to the
30319 (print_timeout): Use `print_message_indented' to print the message.
30320 Deletes `second_stage' parameter.
30321 (run_menu): Update `print_timeout' calls.
30323 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30325 Fix console palette on OpenFirmware.
30327 * term/ieee1275/ofconsole.c (MAX): Removed.
30328 (colors): Redone based on VGA palette.
30329 (grub_ofconsole_setcolor): Discard brightness bit since only 8
30330 colors are supported.
30331 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
30333 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30335 Fix potential EfiEmu double prepare.
30337 * efiemu/main.c (prepared): New variable
30338 (grub_efiemu_unload): Set prepare to '0'.
30339 (grub_efiemu_prepare): Return if already prepared. Set prepared.
30341 set_virtual_address_map support.
30343 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
30345 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
30347 (grub_efiemu_crc32): Likewise.
30348 (grub_efiemu_crc64): Likewise.
30349 (grub_efiemu_set_virtual_address_map): Likewise.
30350 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
30352 (grub_autoefi_set_virtual_address_map): Likewise.
30353 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
30354 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
30355 Restructure flow to accomodate it.
30356 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
30357 (grub_efiemu_crc): Recompute CRC32.
30358 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
30359 (efiemu_ptv_relocated): ... this. Made global. All users updated.
30360 * efiemu/symbols.c (relocated_handle): New variable.
30361 (grub_efiemu_free_syms): Free relocated_handle.
30362 (grub_efiemu_alloc_syms): Allocate relocated_handle.
30363 (grub_efiemu_write_sym_markers): New function.
30364 (grub_efiemu_set_virtual_address_map): Likewise.
30366 Newer XNU parameters.
30368 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
30369 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
30370 (grub_xnu_fill_devicetree): New prototype.
30371 (grub_xnu_heap_real_start): New variable.
30372 * loader/xnu.c (get_name_ptr): New function.
30373 (grub_xnu_load_driver): Fill namelen and name.
30375 64-bit xnu support.
30377 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
30378 and 'loader/macho64.c'.
30379 * conf/i386-pc.rmk: Likewise.
30380 * conf/x86_64-efi.rmk: Likewise.
30381 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
30382 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
30383 * include/grub/macho.h (grub_macho_segment64): New structure.
30384 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
30385 (grub_macho_size32): ... to this.
30386 (grub_macho32_get_entry_point): Renamed from ...
30387 (grub_macho_get_entry_point32): ... to this.
30388 (grub_macho_contains_macho64): New prototype.
30389 (grub_macho_size64): Likewise.
30390 (grub_macho_get_entry_point64): Likewise.
30391 (grub_macho32_load): Renamed from ...
30392 (grub_macho_load32): ... to this.
30393 (grub_macho32_filesize): Renamed from ...
30394 (grub_macho_filesize32): ... to this.
30395 (grub_macho32_readfile): Renamed from ...
30396 (grub_macho_readfile32): ... to this.
30397 (grub_macho_filesize64): New prototype.
30398 (grub_macho_readfile64): Likewise.
30399 (grub_macho_parse32): Likewise.
30400 (grub_macho_parse64): Likewise.
30401 * loader/macho.c: Split into ...
30402 * loader/machoXX.c: ... and this. Replace 32 with XX.
30403 * loader/macho32.c: New file.
30404 * loader/macho64.c: Likewise.
30405 * loader/xnu.c (grub_xnu_is_64bit): New variable.
30406 (grub_cmd_xnu_kernel): Make 32-bit only.
30407 (grub_cmd_xnu_kernel64): New function.
30408 (grub_xnu_load_driver): Support Mach-O 64.
30409 (grub_cmd_xnu_mkext): Likewise.
30410 * util/grub.d/30_os-prober.in (osx_entry): New function.
30411 Generate entries for 64-bit boot too.
30413 Eliminate ad-hoc tree format in XNU and EfiEmu.
30415 * efiemu/main.c (grub_efiemu_prepare): Update comment.
30416 * efiemu/pnvram.c: Rewritten to use environment variables.
30419 Inline utf16_to_utf8.
30421 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
30422 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
30424 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
30426 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
30427 * commands/usbtest.c (grub_usb_get_string): ... move here.
30428 (usb_print_str): Fix error handling.
30429 * include/grub/usb.h (grub_usb_get_string): Remove.
30431 UTF-8 to UTF-16 transformation.
30433 * conf/common.rmk (pkglib_MODULES): Add charset.mod
30434 (charset_mod_SOURCES): New variable.
30435 (charset_mod_CFLAGS): Likewise.
30436 (charset_mod_LDFLAGS): Likewise.
30437 * include/grub/utf.h: New file.
30438 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
30440 Support for device properties.
30442 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
30443 (grub_xnu_devprop_device_header): Likewise.
30444 (grub_xnu_devprop_device_descriptor): Likewise.
30445 (grub_xnu_devprop_add_device): New prototype.
30446 (grub_xnu_devprop_remove_device): Likewise.
30447 (grub_xnu_devprop_remove_property): Likewise.
30448 (grub_xnu_devprop_add_property_utf8): Likewise.
30449 (grub_xnu_devprop_add_property_utf16): Likewise.
30450 (grub_cpu_xnu_init): Likewise.
30451 (grub_cpu_xnu_fini): Likewise.
30452 (grub_cpu_xnu_unload): Likewise.
30453 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
30454 (property_descriptor): Likewise.
30455 (devices): New variable.
30456 (grub_xnu_devprop_remove_property): New function.
30457 (grub_xnu_devprop_add_device): Likewise.
30458 (grub_xnu_devprop_remove_device): Likewise.
30459 (grub_xnu_devprop_add_property): Likewise.
30460 (grub_xnu_devprop_add_property_utf8): Likewise.
30461 (grub_xnu_devprop_add_property_utf16): Likewise.
30462 (hextoval): Likewise.
30463 (grub_cpu_xnu_fill_devprop): Likewise.
30464 (grub_cmd_devprop_load): Likewise.
30465 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
30466 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
30467 (cmd_devprop_load): New variable.
30468 (grub_cpu_xnu_init): New function.
30469 (grub_cpu_xnu_fini): Likewise.
30470 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
30471 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
30472 (grub_cmd_xnu_devtree): Likewise.
30473 (hextoval): New function.
30474 (unescape): Likewise.
30475 (grub_xnu_fill_devicetree): Likewise.
30477 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
30478 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
30480 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30482 Workaround for broken ATI VBE.
30484 * video/i386/pc/vbe.c (last_set_mode): New variable.
30485 (grub_vbe_set_video_mode): Set 'last_set_mode'.
30486 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
30487 (grub_video_vbe_setup): Don't check for reserved flag.
30489 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
30491 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
30492 the `find' command.
30494 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
30496 UUID support for HFS.
30498 * fs/hfs.c (grub_hfs_uuid): New function.
30499 (grub_hfs_fs): New value .uuid.
30500 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
30502 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
30504 Fix a segfault with parsing unknown long options.
30506 * util/grub-mkrelpath.c (options): Zero terminate it.
30508 2009-12-13 Carles Pina i Estany <carles@pina.cat>
30510 * include/grub/misc.h (grub_puts): New declaration.
30511 (grub_puts_): Likewise.
30512 * kern/misc.c (grub_puts): New definition.
30513 (grub_puts_): Likewise.
30515 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30517 * util/grub-probe.c (probe): Improve error message.
30519 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30521 * loader/i386/multiboot_elfxx.c
30522 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
30525 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30527 Relocator framework
30529 * loader/i386/xnu_helper.S: Removed. All users updated.
30530 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
30531 (relocator_mod_SOURCES): New variable.
30532 (relocator_mod_CFLAGS): Likewise.
30533 (relocator_mod_LDFLAGS): Likewise.
30534 (relocator_mod_ASFLAGS): Likewise.
30535 * conf/x86_64.rmk: Likewise.
30536 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
30537 (grub_multiboot_payload_entry_offset): Likewise.
30538 (grub_multiboot_forward_relocator): Likewise.
30539 (grub_multiboot_forward_relocator_end): Likewise.
30540 (grub_multiboot_backward_relocator): Likewise.
30541 (grub_multiboot_backward_relocator_end): Likewise.
30542 (grub_multiboot_payload_eip): New variable.
30543 (grub_multiboot_payload_orig): Likewise.
30544 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
30545 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
30546 * include/grub/i386/memory.h
30547 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
30548 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
30549 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
30550 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
30551 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
30552 * include/grub/i386/relocator.h: New file.
30553 * include/grub/x86_64/relocator.h: Likewise.
30554 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
30555 (XNU_RELOCATOR): New macro.
30556 (grub_xnu_launcher_start): Remove.
30557 (grub_xnu_launcher_end): Likewise.
30558 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
30559 (grub_xnu_heap_real_start): Remove.
30560 (grub_xnu_heap_start): Change to void *. All users updated.
30561 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
30562 * lib/i386/relocator.c: New file.
30563 * lib/i386/relocator_asm.S: Likewise.
30564 * lib/i386/relocator_backward.S: Likewise.
30565 * lib/mips/relocator.c: Likewise.
30566 * lib/mips/relocator_asm.S: Likewise.
30567 * lib/relocator.c: Likewise.
30568 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
30570 (playground): Likewise.
30571 (grub_multiboot_payload_orig): New variable.
30572 (grub_multiboot_payload_dest): Likewise.
30573 (grub_multiboot_payload_size): Likewise.
30574 (grub_multiboot_payload_eip): Likewise.
30575 (grub_multiboot_payload_esp): Likewise.
30576 (grub_multiboot_boot): Use grub_relocator32_boot.
30577 (grub_multiboot_unload): Free relocators.
30578 (grub_multiboot): Setup stack. Use relocators.
30579 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
30580 (grub_multiboot_load_elfXX): Use relocators.
30581 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
30582 (grub_multiboot_payload_size): Likewise.
30583 (grub_multiboot_payload_dest): Likewise.
30584 (grub_multiboot_payload_entry_offset): Likewise.
30585 (grub_multiboot_forward_relocator): Likewise.
30586 (grub_multiboot_backward_relocator): Likewise.
30587 (grub_multiboot_real_boot): Likewise.
30588 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
30589 (grub_xnu_entry_point): Likewise.
30590 (grub_xnu_arg1): Likewise.
30591 (grub_xnu_stack): Likewise.
30592 (grub_xnu_launch): Removed.
30593 (grub_xnu_boot_resume): New function.
30594 (grub_xnu_boot): Use relocators.
30595 * loader/i386/xnu_helper.S: Removed.
30596 * loader/xnu.c (grub_xnu_heap_start): New variable.
30597 (grub_xnu_heap_size): Likewise.
30598 (grub_xnu_heap_malloc): Use relocators.
30599 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
30601 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30603 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
30606 2009-12-13 Carles Pina i Estany <carles@pina.cat>
30608 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
30609 GRUB_ERR_NONE before calling grub_env_set.
30611 2009-12-12 Robert Millan <rmh@aybabtu.com>
30613 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
30614 * genmk.rb (video): New variable.
30615 (CLEANFILES, VIDEOFILES): Add #{video}.
30616 (#{video}): New target rule.
30617 * genvideolist.sh: New file.
30618 * Makefile.in (pkglib_DATA): Add video.lst.
30619 (video.lst): New target rule.
30620 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
30622 * util/grub.d/30_os-prober.in: Replace `vbe' with
30623 ${GRUB_VIDEO_BACKEND}.
30625 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
30627 * THANKS: Add David Miller.
30629 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
30631 libpciaccess support.
30633 * Makefile.in (LIBPCIACCESS): New variable.
30634 (enable_grub_emu_pci): Likewise.
30635 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
30636 util/pci.c and commands/lspci.c.
30637 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
30638 * configure.ac (grub-emu-pci): New option.
30639 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
30640 (grub_pci_device_unmap_range): Likewise.
30641 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
30642 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
30643 (grub_pci_address_t) [!GRUB_UTIL]: New type.
30644 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
30645 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
30646 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
30647 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
30648 * include/grub/pciutils.h: New file.
30649 * util/pci.c: Likewise.
30651 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
30653 * util/misc.c: Don't include <errno.h> twice.
30655 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
30657 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
30658 name in an error message.
30659 (grub_biosdisk_rw): Likewise.
30661 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30663 Eliminate NTFS 4Gib barrier.
30665 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
30666 (read_run_data): Likewise.
30667 (grub_ntfs_read_run_list): Likewise.
30668 (grub_ntfs_read_block): Likewise.
30669 (grub_ntfs_iterate_dir): Likewise.
30670 (read_mft): Likewise.
30671 (read_data): Likewise.
30673 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
30674 to avoid 64-bit division
30675 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
30676 (grub_ntfs_rlst): Use grub_disk_addr_t.
30678 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30680 Eliminate grub-fstest 4Gib barrier.
30682 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
30683 (read_file): Fix error reporting.
30685 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30687 Eliminate hexdump 4Gib barrier.
30689 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
30690 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
30692 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30694 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
30697 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
30699 Remove miscellaneous files in distclean target.
30701 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
30703 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
30705 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
30706 if they're already set. This resolves the conflict between my
30707 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
30708 fixing the --grub-probe option again.
30709 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
30710 change on 2009-10-06, so that we now once again source
30711 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30713 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
30715 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
30716 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
30717 `util/devicemap.c'.
30719 2009-12-08 Carles Pina i Estany <carles@pina.cat>
30721 * include/grub/misc.h (grub_printf_): New declaration.
30722 * kern/misc.c (grub_printf_): New definition.
30723 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
30724 instead of `grub_printf' and `_'.
30725 * normal/menu_entry.c (store_completion): Likewise.
30727 (grub_menu_entry_run): Likewise.
30728 * normal/menu_text.c (grub_wait_after_message): Likewise.
30729 (notify_booting): Likewise.
30730 (notify_fallback): Likewise.
30731 (notify_execution_failure): Likewise.
30733 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
30735 * configure.ac: Check for vasprintf.
30736 * util/misc.c (asprintf): Move allocation from here ...
30737 (vasprintf): ... to here. New function.
30738 (xasprintf): New function.
30739 * include/grub/util/misc.h (vasprintf, xasprintf): Add
30741 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
30742 * util/grub-mkfont.c (write_font): Likewise.
30743 * util/grub-probe.c (probe): Likewise.
30744 * util/hostdisk.c (make_device_name): Likewise.
30746 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
30748 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
30749 anything even prefixed with 'cdrom' as a cdrom.
30751 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
30753 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
30756 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30758 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
30759 grub_gettext_msg_list.
30760 (grub_gettext_gettranslation_from_position): Return const char *
30762 (grub_gettext_translate): Add the translated strings into a list,
30763 returns from the list if existing there.
30764 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
30765 (grub_gettext_delete_list): Delete the list.
30766 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
30767 lang environment variable is changed.
30768 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
30770 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30772 Rename kernel.mod to kernel.img.
30774 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
30775 (kernel_mod_EXPORTS): Rename to ...
30776 (kernel_img_EXPORTS): ... this.
30777 (kernel_mod_SOURCES): Rename to ...
30778 (kernel_img_SOURCES): ... this.
30779 (kernel_mod_HEADERS): Rename to ...
30780 (kernel_img_HEADERS): ... this. All users updated.
30781 (kernel_mod_CFLAGS): Rename to ...
30782 (kernel_img_CFLAGS): ... this.
30783 (kernel_mod_ASFLAGS): Rename to ...
30784 (kernel_img_ASFLAGS): ... this.
30785 (kernel_mod_LDFLAGS): Rename to ...
30786 (kernel_img_LDFLAGS): ... this.
30787 * conf/x86_64-efi.rmk: Likewise.
30788 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
30789 (read_kernel_image): ... this. All users updated.
30790 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30792 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30794 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30795 (print_spaces): New function.
30796 (grub_print_ucs4): New function.
30797 (getstringwidth): New function.
30798 (print_message_indented): New function.
30799 (print_message): Gettexttize strings using print_message_indented.
30800 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30802 (get_entry_number): Gettextize and uses dynamic terminal width.
30803 (notify_booting, notify_fallback, notify_execution_failure):
30805 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30808 (grub_menu_entry_run): Likewise.
30809 * PO/POTFILES: Add normal/menu_entry.c.
30811 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30813 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30815 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30817 * util/grub-install.in: Install gettext .mo files.
30818 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30820 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30822 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30825 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30827 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30828 non-firmware-dependant one in realmode.S takes precedence.
30830 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30832 * commands/halt.c: Replace misc arch-specific headers with
30834 * commands/reboot.c: Likewise.
30835 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30837 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30838 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30839 (kernel_img_SOURCES): ... to here.
30841 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30842 * include/grub/i386/pc/init.h: Likewise.
30843 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30844 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30846 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30848 * include/grub/i386/halt.h: Remove.
30849 * include/grub/i386/reboot.h: Likewise.
30851 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30853 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
30855 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30856 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30857 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30859 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30860 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30861 (usage): Add missing comma in printf.
30863 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30865 Use the same reboot approach on i386 coreboot and qemu as we do on
30868 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30869 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30870 * kern/i386/reboot.c: Remove.
30871 * include/grub/i386/reboot.h (grub_reboot): Export function.
30872 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30873 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30874 0xf000:0xfff0 instead of 0xffff:0x0000.
30875 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30876 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30878 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30880 Fix $srcdir != $objdir build.
30882 * Makefile.in (po/%.po): Rewrite as ...
30883 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30885 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30887 Fix GNU/Hurd grub-install crash.
30888 * util/grub-probe.c (probe): Try to access `path' only when it is not
30891 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30893 Correct module naming.
30895 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30896 (GRUB_MOD_INIT(efi_uga)): ... to this
30897 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30898 (GRUB_MOD_FINI(efi_uga)): ... to this
30899 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30900 (GRUB_MOD_INIT(efi_gop)): ... to this
30901 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30902 (GRUB_MOD_FINI(efi_gop)): ... to this
30904 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30906 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30908 (usage): Translate `arg' strings using gettext().
30909 Thanks to Jordi Mallach for the suggestion.
30911 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30913 GOP support. Based on patch from Bean
30914 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30916 * video/efi_gop.c: New file.
30917 * include/grub/efi/graphics_output.h: Likewise.
30918 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
30919 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30921 * conf/x86_64-efi.rmk: Likewise.
30923 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30925 Rename efi_fb to efi_uga.
30927 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30929 (efi_fb_mod_SOURCES): Rename this ...
30930 (efi_uga_mod_SOURCES): ... to this.
30931 (efi_fb_mod_CFLAGS): Rename this ...
30932 (efi_uga_mod_CFLAGS): ... to this.
30933 (efi_fb_mod_LDFLAGS): Rename this ...
30934 (efi_uga_mod_LDFLAGS): ... to this.
30935 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30937 (efi_fb_mod_SOURCES): Rename this ...
30938 (efi_uga_mod_SOURCES): ... to this.
30939 (efi_fb_mod_CFLAGS): Rename this ...
30940 (efi_uga_mod_CFLAGS): ... to this.
30941 (efi_fb_mod_LDFLAGS): Rename this ...
30942 (efi_uga_mod_LDFLAGS): ... to this.
30943 * video/efi_fb.c: Move this ...
30944 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
30946 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30948 * po/README: New file. Explain our PO file workflow.
30950 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30952 * po/ChangeLog: Remove. Move relevant entries back to ...
30953 * ChangeLog: ... here.
30954 * po/ca.po: Remove (now handled by TLP).
30955 * po/id.po: Likewise.
30956 * po/zh_CN.po: Likewise.
30957 * Makefile.in (LINGUAS): Initialize in a way that supports
30960 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30962 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
30963 reliing on po/LINGUAS.
30964 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
30965 (po/%.po): ... this.
30967 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30969 * util/i386/efi/grub-mkimage.c: Include "progname.h".
30970 (main): Use `program_name' instead of nonexistent `progname'.
30972 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30974 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30975 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
30977 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30979 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
30981 * conf/i386-efi.rmk: Likewise.
30982 * conf/i386-ieee1275.rmk: Likewise.
30983 * conf/powerpc-ieee1275.rmk: Likewise.
30984 * conf/sparc64-ieee1275.rmk: Likewise.
30985 * conf/x86_64-efi.rmk: Likewise.
30987 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30989 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
30991 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30993 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
30995 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30997 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
30998 (grub_mkdevicemap_SOURCES): New variable.
30999 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
31000 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
31001 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
31002 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
31003 (grub_mkdevicemap_SOURCES): Remove.
31004 * conf/i386-efi.rmk: Likewise.
31005 * conf/i386-ieee1275.rmk: Likewise.
31006 * conf/i386-pc.rmk: Likewise.
31007 * conf/powerpc-ieee1275.rmk: Likewise.
31008 * conf/sparc64-ieee1275.rmk: Likewise.
31009 * conf/x86_64-efi.rmk: Likewise.
31010 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
31011 (usage): Fix strings to use `program_name'.
31012 (main): Initialize gettext.
31013 * util/grub-editenv.c: Likewise.
31014 * util/grub-emu.c: Likewise.
31015 * util/grub-fstest.c: Likewise.
31016 * util/grub-mkdevicemap.c: Likewise.
31017 * util/grub-mkfont.c: Likewise.
31018 * util/grub-mkrelpath.c: Likewise.
31019 * util/grub-pe2elf.c: Likewise.
31020 * util/grub-probe.c: Likewise.
31021 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31022 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
31023 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31025 * util/misc.c: Include `"progname.h"'.
31026 (progname): Remove variable.
31027 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
31029 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
31031 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
31032 printf and print a newline after the menuentry header line.
31033 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31035 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
31037 autoconf >= 2.60 support $(localedir).
31039 * INSTALL: Note that autoconf 2.60 is required.
31040 * configure.ac (AC_PREREQ): Bump to 2.60.
31041 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
31042 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
31044 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
31046 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
31049 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31051 * normal/main.c (grub_normal_read_line): Fix off-by-one
31054 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31056 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
31057 "parser.grub" in grub_command_execute() call.
31059 2009-11-24 Carles Pina i Estany <carles@pina.cat>
31061 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
31062 * conf/i386-efi.rmk: Likewise.
31063 * conf/i386-ieee1275.rmk: Likewise.
31064 * conf/i386-pc.rmk: Likewise.
31065 * conf/powerpc-ieee1275.rmk: Likewise.
31066 * conf/sparc64-ieee1275.rmk: Likewise.
31067 * conf/x86_64-efi.rmk: Likewise.
31068 * gettext/gettex.c: Include <grub/i18n.h>.
31069 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
31071 * include/grub/i18n.h: ... to here
31072 * include/grub/i18n.h: ... to here.
31073 * kern/misc.c: Include <grub/i18n.h>
31074 (grub_gettext_dummy): Move above user.
31076 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31078 * util/Makefile.in (install-local): Convert a `for' into a normal
31081 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
31083 * autogen.sh: Add automake call.
31084 * config.guess: Remove.
31085 * config.sub: Likewise.
31086 * install-sh: Likewise.
31088 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31090 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
31092 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31094 * util/Makefile.in (install-local): Convert a make `$(foreach)'
31095 function to a normal shell `for'.
31097 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31099 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31101 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31103 * util/grub-mkrelpath.c: New file.
31104 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
31105 (grub_mkrelpath_SOURCES): New variable.
31106 * include/grub/util/misc.h: New function prototype.
31107 * util/misc.c (make_system_path_relative_to_its_root): New function.
31109 * util/grub-mkconfig_lib.in (bindir): New variable.
31110 (grub_mkrelpath): Likewise.
31111 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
31113 * util/probe.c (probe): Make the file path relative to its root.
31114 Change a info message to use the GRUB path. Enable again the
31115 check if we can read the file with GRUB facilities.
31117 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
31120 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31122 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
31125 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31127 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
31130 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
31132 * util/getroot.c (grub_util_is_dmraid): New function.
31133 (grub_util_get_dev_abstraction): Treat dmraid and multipath
31134 devices as normal ones, not as LVM.
31136 2009-11-23 Carles Pina i Estany <carles@pina.cat>
31138 * conf/common.rmk: Add grub-gettext_lib target and updates
31139 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
31141 * gettext/gettext.c: New file. (Reads mo files).
31142 * include/grub/file.h (grub_file_pread): New prototype.
31143 * include/grub/i18n.h (_): New prototype.
31144 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
31146 * kern/misc.c (grub_gettext_dummy): New function.
31147 * normal/menu_text.c: Include <grub/i18n.h>.
31148 * normal/menu_text.c (print_timeout): Gettexttize string.
31149 * normal/menu_text.c (print_message): Gettexttize string.
31150 * po/POTFILES: Add `normal/menu_text.c'.
31151 * po/ca.po: Add new translations.
31152 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
31153 gettext module and defines locale_dir and lang in grub.cfg.
31154 * NEWS: Add gettext support.
31156 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31158 * util/hostdisk.c: Include `<grub/i18n.h>'.
31159 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
31160 (make_device_name): Rewrite using asprintf.
31161 (convert_system_partition_to_system_disk): Replace 0 with NULL.
31162 (find_system_device): If a device is not found, generate one just
31163 by reusing the OS path name.
31164 (read_device_map): Make it permissible for device.map not to exist.
31166 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31168 * script/sh/execute.c: Move from here ...
31169 * script/execute.c: ... to here. Update all users.
31170 * script/sh/function.c: Move from here ...
31171 * script/function.c: ... to here. Update all users.
31172 * script/sh/lexer.c: Move from here ...
31173 * script/lexer.c: ... to here. Update all users.
31174 * script/sh/main.c: Move from here ...
31175 * script/main.c: ... to here. Update all users.
31176 * script/sh/parser.y: Move from here ...
31177 * script/parser.y: ... to here. Update all users.
31178 * script/sh/script.c: Move from here ...
31179 * script/script.c: ... to here. Update all users.
31181 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31183 * configure.ac: Detect all `emu' platforms. Define
31184 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
31185 --enable-grub-emu logic. Disable include/grub/machine
31186 symlink on `emu' platforms.
31188 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
31189 * gensymlist.sh.in: Likewise.
31191 * include/grub/i386/coreboot/machine.h: Remove file.
31192 * include/grub/i386/efi/machine.h: Likewise.
31193 * include/grub/i386/ieee1275/machine.h: Likewise.
31194 * include/grub/i386/pc/machine.h: Likewise.
31195 * include/grub/i386/qemu/machine.h: Likewise.
31196 * include/grub/powerpc/ieee1275/machine.h: Likewise.
31197 * include/grub/sparc64/ieee1275/machine.h: Likewise.
31198 * include/grub/x86_64/efi/machine.h: Likewise.
31200 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
31201 * commands/halt.c: Likewise.
31202 * commands/reboot.c: Likewise.
31203 * include/grub/autoefi.h: Likewise.
31204 * include/grub/i386/at_keyboard.h: Likewise.
31205 * include/grub/i386/kernel.h: Likewise.
31206 * include/grub/i386/loader.h: Likewise.
31207 * include/grub/i386/pc/memory.h: Likewise.
31208 * kern/dl.c: Likewise.
31209 * kern/i386/coreboot/init.c: Likewise.
31210 * loader/i386/bsd.c: Likewise.
31211 * loader/i386/linux.c: Likewise.
31212 * loader/multiboot_loader.c: Likewise.
31213 * term/i386/pc/serial.c: Likewise.
31214 * term/usb_keyboard.c: Likewise.
31216 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
31217 `<grub/machine/machine.h>'
31218 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
31219 * util/misc.c: Remove `<grub/machine/machine.h>' and
31220 `<grub/machine/time.h>'.
31222 * Makefile.in (enable_grub_emu): Remove variable.
31223 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
31225 * conf/any-emu.rmk: New file.
31226 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
31227 (grub_emu_init.c): Move from here ...
31228 * conf/any-emu.rmk: ... to here.
31230 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
31231 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
31232 * conf/any-emu.rmk: ... to here.
31234 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31236 * include/grub/parser.h (grub_parser_register): Document need
31237 of `name' parameter.
31238 * normal/main.c (grub_normal_read_line): Simplify prompt string.
31239 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
31242 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31244 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
31246 * include/grub/i18n.h (N_): New macro.
31247 * util/mkisofs/mkisofs.h: Likewise.
31248 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
31250 (usage): Use gettext() to translate help strings when printing them.
31252 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31254 Based on patch from Bean
31255 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
31257 * video/efi_fb.c: New file.
31258 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
31259 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
31261 * conf/x86_64-efi.rmk: Likewise.
31263 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
31265 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
31266 * util/i386/pc/grub-setup.c: Likewise.
31268 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
31270 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
31272 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
31273 file_get_storage_info to implement grub_guess_root_device.
31275 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
31277 * Makefile.in (target): Use make's builtin $(shell) function
31278 instead of calling directly $(SHELL) to create the locale directories,
31279 inside the $(foreach) function.
31281 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
31283 * util/grub-mkrescue.in: Print an error and usage if output option
31284 has not been given.
31286 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
31288 Patch from Loïc Minier <loic.minier@ubuntu.com>.
31289 * util/grub.d/30_os-prober.in: Cope with Linux entries where
31290 root and /boot are on different devices.
31292 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31294 Fix build for srcdir != objdir.
31296 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
31297 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
31299 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
31300 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
31301 reference for input.
31303 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31305 * util/grub-mkrescue.in: Use source directory direcly (without copiing
31306 or hardlinking it). Remove -J option, Joliet is not compatible with
31307 multiple source directories.
31309 2009-11-21 Carles Pina i Estany <carles@pina.cat>
31310 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31312 * util/grub-mkrescue.in: Recognize `--override-directory' option.
31313 (process_input_dir): New function. Process an arbitrary input
31315 Misc adjustments to support both "override mode" and system-wide mode.
31317 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
31319 * configure.ac (UNIFONT_BDF): Rename to ...
31320 (FONT_SOURCE): ... this. Update all users.
31322 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
31324 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
31325 to the list of unifont files to look for.
31327 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31329 Patch from Joe Auricchio <jauricchio@gmail.com>
31330 * commands/minicmd.c (grub_mini_cmd_clear): New function.
31331 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
31332 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
31334 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
31336 * Makefile.in (install-local): Add a missing backslash.
31338 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
31340 * include/grub/x86_64/io.h: New file.
31342 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31344 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
31345 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
31346 Include `"progname.h"'.
31347 (main): Initialize gettext.
31348 * util/i386/pc/grub-setup.c: Gettexttize.
31349 * util/i386/pc/grub-mkimage.c: Likewise.
31351 * Makefile.in (po/*.po): Redefine as ...
31352 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
31354 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
31356 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31358 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
31359 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
31360 (program_name): Remove.
31361 (main): Initialize gettext support.
31362 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
31363 Include `<libintl.h>'.
31366 * util/mkisofs/eltorito.c: Gettexttize.
31367 * util/mkisofs/joliet.c: Likewise.
31368 * util/mkisofs/mkisofs.c: Likewise.
31369 * util/mkisofs/multi.c: Likewise.
31370 * util/mkisofs/rock.c: Likewise.
31371 * util/mkisofs/tree.c: Likewise.
31372 * util/mkisofs/write.c: Likewise.
31374 * po/POTFILES: Update with new files.
31376 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31378 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
31379 * util/mkisofs/iso9660.h: Likewise.
31380 * util/mkisofs/joliet.c: Likewise.
31381 * util/mkisofs/mkisofs.c: Likewise.
31382 * util/mkisofs/mkisofs.h: Likewise.
31383 * util/mkisofs/rock.c: Likewise.
31384 * util/mkisofs/tree.c: Likewise.
31385 * util/mkisofs/write.c: Likewise.
31387 * util/mkisofs/eltorito.c (rcsid): Remove.
31388 * util/mkisofs/hash.c: Likewise.
31389 * util/mkisofs/joliet.c: Likewise.
31390 * util/mkisofs/name.c: Likewise.
31391 * util/mkisofs/rock.c: Likewise.
31392 * util/mkisofs/tree.c: Likewise.
31393 * util/mkisofs/write.c: Likewise.
31395 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31397 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
31398 instead of static allocation.
31399 * util/mkisofs/match.h: Likewise.
31401 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31403 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
31404 and `util/grub.d/10_linux.in'.
31405 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
31406 translatable Shell files.
31408 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31410 * Makefile.in ($(srcdir)/aclocal.m4): New target.
31412 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31414 * INSTALL: Document Automake is needed for bootstrap.
31415 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
31416 * util/grub.d/10_kfreebsd.in (bindir): New variable.
31417 Add gettext initialization.
31418 (kfreebsd_entry): Make menuentry output translatable.
31420 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31422 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
31423 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
31424 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
31425 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
31426 (LINGUAS): Auto-generate using `po/LINGUAS'.
31427 * po/LINGUAS: New file.
31429 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31431 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
31433 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
31434 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
31435 bindtextdomain() calls for gettext initialization.
31437 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31439 * gnulib/progname.c: New file (imported from Gnulib).
31440 * gnulib/progname.h: Likewise.
31441 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31442 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
31443 (usage): Replace `progname' with `program_name'.
31444 (main): Use set_program_name() for program name initialization.
31446 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31448 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
31450 * Makefile.in (CPPFLAGS): ... to here.
31452 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31454 * aclocal.m4: Move from here ...
31455 * acinclude.m4: ... to here.
31456 * autogen.sh: Add call to `aclocal'.
31457 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
31459 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31461 * Makefile.in (CLEANFILES): Add `po/*.mo'.
31462 (LINGUAS): New variable.
31463 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
31464 (install-local): Install MO files.
31465 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
31466 * include/grub/i18n.h: New file.
31467 * po/POTFILES: New file.
31468 * po/ca.po: New file.
31469 * util/grub.d/10_linux.in (bindir): New variable.
31470 Add gettext initialization.
31471 (linux_entry): Make menuentry output translatable.
31472 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
31473 (usage): Make --help output translatable.
31474 (main): Initialize gettext.
31476 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31478 * import_gcry.py: New file (written by Vladimir with minor
31480 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
31482 * INSTALL: Document that Python is required for bootstrap.
31484 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31486 Import ciphers from libgcrypt 1.4.4.
31488 * lib/libgcrypt/cipher/ChangeLog
31489 * lib/libgcrypt/cipher/ac.c
31490 * lib/libgcrypt/cipher/arcfour.c
31491 * lib/libgcrypt/cipher/bithelp.h
31492 * lib/libgcrypt/cipher/blowfish.c
31493 * lib/libgcrypt/cipher/camellia-glue.c
31494 * lib/libgcrypt/cipher/camellia.c
31495 * lib/libgcrypt/cipher/camellia.h
31496 * lib/libgcrypt/cipher/cast5.c
31497 * lib/libgcrypt/cipher/cipher.c
31498 * lib/libgcrypt/cipher/crc.c
31499 * lib/libgcrypt/cipher/des.c
31500 * lib/libgcrypt/cipher/dsa.c
31501 * lib/libgcrypt/cipher/ecc.c
31502 * lib/libgcrypt/cipher/elgamal.c
31503 * lib/libgcrypt/cipher/hash-common.c
31504 * lib/libgcrypt/cipher/hash-common.h
31505 * lib/libgcrypt/cipher/hmac-tests.c
31506 * lib/libgcrypt/cipher/md.c
31507 * lib/libgcrypt/cipher/md4.c
31508 * lib/libgcrypt/cipher/md5.c
31509 * lib/libgcrypt/cipher/primegen.c
31510 * lib/libgcrypt/cipher/pubkey.c
31511 * lib/libgcrypt/cipher/rfc2268.c
31512 * lib/libgcrypt/cipher/rijndael-tables.h
31513 * lib/libgcrypt/cipher/rijndael.c
31514 * lib/libgcrypt/cipher/rmd.h
31515 * lib/libgcrypt/cipher/rmd160.c
31516 * lib/libgcrypt/cipher/rsa.c
31517 * lib/libgcrypt/cipher/seed.c
31518 * lib/libgcrypt/cipher/serpent.c
31519 * lib/libgcrypt/cipher/sha1.c
31520 * lib/libgcrypt/cipher/sha256.c
31521 * lib/libgcrypt/cipher/sha512.c
31522 * lib/libgcrypt/cipher/tiger.c
31523 * lib/libgcrypt/cipher/twofish.c
31524 * lib/libgcrypt/cipher/whirlpool.c
31526 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31528 Fix build for systems without error().
31530 * gnulib/error.c: New file (imported from Gnulib).
31531 * gnulib/error.h: Likewise.
31532 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
31533 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
31534 (this variable is now used by error()).
31536 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
31538 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
31539 instead of relying that char is signed.
31541 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
31543 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
31544 blocksize different from specified.
31545 (grub_pxefs_read): Likewise.
31547 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
31549 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
31551 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
31552 (grub_ata_readwrite): Likewise. Update 2 format strings.
31553 (grub_atapi_read): Likewise.
31555 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
31556 * conf/i386.rmk (pkglib_MODULES): ... to here ...
31557 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
31558 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
31559 (ata_mod_LDFLAGS): Move from here ...
31560 * conf/i386.rmk: ... to here ...
31561 * conf/x86_64-efi.rmk: ... and here.
31562 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
31563 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
31565 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31567 Relicense multiboot.h, with RMS' blessing.
31569 * include/multiboot.h: Change to X11 license.
31571 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
31573 Support --version in grub-mkisofs.
31575 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
31576 (OPTION_VERSION): New macro.
31577 (ld_options): Recognize --version.
31578 (usage): Move `program_name' from here ...
31579 (program_name): ... to here. Add `static' qualifier.
31580 (main): Recognize `OPTION_VERSION'.
31582 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
31584 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
31585 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
31587 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31589 Fix help2man generation for mkisofs.
31591 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
31592 (usage): Send output to stdout (rather than stderr).
31594 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31596 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
31597 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31598 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
31599 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31600 (bin_SCRIPTS): Add `grub-mkfloppy'.
31601 (grub_mkfloppy_SOURCES): New variable.
31603 * util/grub-mkrescue.in: New file.
31604 * util/i386/pc/grub-mkfloppy.in: New file.
31606 * util/i386/coreboot/grub-mkrescue.in: Remove.
31607 * util/i386/pc/grub-mkrescue.in: Remove.
31609 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31611 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31613 * include/multiboot.h (struct multiboot_header): ... to here. Update
31615 * include/grub/multiboot.h (struct grub_multiboot_info): Move
31617 * include/multiboot.h (struct multiboot_info): ... to here. Update
31619 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
31621 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
31623 * include/grub/multiboot.h (struct grub_mod_list): Move
31625 * include/multiboot.h (struct multiboot_mod_list): ... to here.
31628 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31630 * include/multiboot2.h (multiboot_word): Rename from this ...
31631 (multiboot2_word): ... to this. Update all users.
31632 (multiboot_header): Rename from this ...
31633 (multiboot2_header): ... to this. Update all users.
31634 (multiboot_tag_header): Rename from this ...
31635 (multiboot2_tag_header): ... to this. Update all users.
31636 (multiboot_tag_start): Rename from this ...
31637 (multiboot2_tag_start): ... to this. Update all users.
31638 (multiboot_tag_name): Rename from this ...
31639 (multiboot2_tag_name): ... to this. Update all users.
31640 (multiboot_tag_module): Rename from this ...
31641 (multiboot2_tag_module): ... to this. Update all users.
31642 (multiboot_tag_memory): Rename from this ...
31643 (multiboot2_tag_memory): ... to this. Update all users.
31644 (multiboot_tag_unused): Rename from this ...
31645 (multiboot2_tag_unused): ... to this. Update all users.
31646 (multiboot_tag_end): Rename from this ...
31647 (multiboot2_tag_end): ... to this. Update all users.
31649 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31651 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
31652 this platform we should support Multiboot1 first.
31654 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31655 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
31656 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
31658 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31660 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
31661 of write calls (converting them to fwrite() if they aren't already).
31662 (get_torito_desc): Likewise.
31663 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
31665 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31667 * util/i386/pc/grub-install.in: Move from here ...
31668 * util/grub-install.in: ... to here. Update all users.
31670 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
31672 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
31674 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31676 Support for El Torito without floppy emulation.
31678 * util/mkisofs/eltorito.c: Include `<errno.h>'.
31679 (init_boot_catalog): Improve error handling.
31680 (get_torito_desc): Don't use floppy emulation unless requested by
31681 user. Patch boot information table when requested via
31682 `-boot-info-table'.
31683 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
31684 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
31685 (use_boot_info_table): New variables.
31686 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
31687 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
31688 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
31689 `--eltorito-emul-floppy'.
31690 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
31691 and `OPTION_ELTORITO_EMUL_FLOPPY'.
31692 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
31693 (use_boot_info_table, get_731): New prototypes.
31694 * util/mkisofs/write.c (get_731): New function.
31696 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
31698 Fix the generation of the man page.
31700 * util/pc/i386/grub-install.in: Source
31701 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31703 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31705 Large file support for grub-mkisofs.
31707 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
31708 * util/mkisofs/mkisofs.c (next_extent, last_extent)
31709 (session_start): Upgrade type to `uint64_t'. Update all users.
31710 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
31711 (struct directory_entry): Upgrade type of `starting_block' and
31712 `size' to `uint64_t'. Update all users.
31713 (struct deferred): Remove unused structure.
31714 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
31716 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
31717 file is larger than `UINT32_MAX'.
31718 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
31719 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
31721 (struct deferred_write): Upgrade type of `extent' and `size' to
31722 `uint64_t'. Update all users.
31723 (last_extent_written): Upgrade type to `uint64_t'. Update all
31725 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
31726 Update all users. Upgrade type of `remain' to `int64_t' and
31727 `use' to `size_t'. Use error() to handle fread() errors.
31728 (write_files): Rely on write_one_file() rather than calling
31729 xfwrite() directly.
31731 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
31733 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
31735 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31737 * util/mkisofs/fnmatch.c: Remove.
31738 * util/mkisofs/getopt1.c: Likewise.
31739 * util/mkisofs/getopt.c: Likewise.
31740 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
31741 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
31742 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
31743 `gnulib/getopt1.c' and `gnulib/getopt.c'.
31744 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
31746 * configure.ac: Detect `mingw32msvc' host_os.
31747 Check for lstat(), getuid() and getgid().
31749 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
31750 instances of `u_char' with `uint8_t'.
31752 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
31753 [!HAVE_GETUID] (getuid): New function (stub).
31754 [!HAVE_GETGID] (getgid): Likewise.
31755 [!HAVE_LSTAT] (lstat): Likewise.
31756 [!S_IROTH] (S_IROTH): New macro (dummy).
31757 [!S_IRGRP] (S_IRGRP): Likewise.
31759 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31761 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
31762 conditional expression).
31764 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31766 Import from Gnulib.
31768 * gnulib/fnmatch.c: New file.
31769 * gnulib/fnmatch.h: Likewise.
31770 * gnulib/fnmatch_loop.c: Likewise.
31771 * gnulib/getopt.c: Likewise.
31772 * gnulib/getopt.h: Likewise.
31773 * gnulib/getopt1.c: Likewise.
31774 * gnulib/getopt_int.h: Likewise.
31775 * gnulib/gettext.h: Likewise.
31777 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31779 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
31780 * normal/handler.c (read_handler_list): Likewise.
31782 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31786 * kern/command.c (grub_register_command_prio): Use
31787 grub_zalloc() instead of explicitly zeroing data.
31788 * kern/list.c: Include `<grub/mm.h>'.
31789 (grub_named_list_find): Replace `0' with `NULL'.
31790 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31791 (fs_module_list): Change type to `grub_named_list_t'. Update all
31793 * normal/dyncmd.c (read_command_list): Add space between function
31794 call and parenthesis.
31795 * normal/handler.c (read_handler_list): Likewise.
31797 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31799 * normal/auth.c (punishment_delay): Moved from here ...
31800 (grub_auth_strcmp): ... to here (inside function).
31802 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31804 * include/grub/list.h (struct grub_named_list): Remove `const'
31805 qualifier from `name'.
31806 (struct grub_prio_list): Likewise.
31808 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31810 * normal/auth.c: Include `<grub/time.h>'.
31811 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31813 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31815 * normal/auth.c (punishment_delay): New variable.
31816 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31817 (grub_auth_check_authentication): Punish failed login attempts with
31818 an incremental (2^N) delay.
31820 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31822 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31823 path with $(srcdir).
31825 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31827 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31829 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31831 * util/i386/coreboot/grub-mkrescue.in: New file.
31832 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31835 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31836 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31837 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31839 * util/mkisofs/defaults.h: New file.
31840 * util/mkisofs/eltorito.c: Likewise.
31841 * util/mkisofs/exclude.h: Likewise.
31842 * util/mkisofs/fnmatch.c: Likewise.
31843 * util/mkisofs/getopt.c: Likewise.
31844 * util/mkisofs/getopt1.c: Likewise.
31845 * util/mkisofs/hash.c: Likewise.
31846 * util/mkisofs/include/fctldefs.h: Likewise.
31847 * util/mkisofs/include/mconfig.h: Likewise.
31848 * util/mkisofs/include/prototyp.h: Likewise.
31849 * util/mkisofs/include/statdefs.h: Likewise.
31850 * util/mkisofs/iso9660.h: Likewise.
31851 * util/mkisofs/joliet.c: Likewise.
31852 * util/mkisofs/match.c: Likewise.
31853 * util/mkisofs/match.h: Likewise.
31854 * util/mkisofs/mkisofs.c: Likewise.
31855 * util/mkisofs/mkisofs.h: Likewise.
31856 * util/mkisofs/multi.c: Likewise.
31857 * util/mkisofs/name.c: Likewise.
31858 * util/mkisofs/rock.c: Likewise.
31859 * util/mkisofs/tree.c: Likewise.
31860 * util/mkisofs/write.c: Likewise.
31862 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31864 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31867 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31869 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31870 `grub-mkimage' (and use $0 when possible).
31872 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31874 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31875 error message for excessively large memory map.
31877 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31879 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31882 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31884 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31885 message for coreboot users.
31887 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31889 Fix build with GNU gold.
31891 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31892 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31893 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31895 * aclocal.m4: Likewise.
31897 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
31899 * configure.ac (AC_PREREQ): Bump to 2.59d.
31900 * INSTALL: Make it more clear when Autoconf and Ruby are
31901 needed and when to run `./autogen.sh'.
31903 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31905 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31908 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31910 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31912 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31914 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31915 giving it to GNU Mach.
31917 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31919 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
31920 GNU partition number to get internal GRUB partition number.
31922 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31924 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
31925 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
31927 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
31929 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
31930 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
31933 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
31935 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
31937 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31941 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31942 `-isystem=$(srcdir)/include'.
31944 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31946 * util/i386/pc/grub-install.in: Remove hint that device.map should be
31947 checked (grub-install doesn't currently rely on it).
31949 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
31953 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
31954 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31955 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
31956 * conf/i386-ieee1275.rmk: Likewise.
31957 * conf/i386-pc.rmk: Likewise.
31958 * conf/powerpc-ieee1275.rmk: Likewise.
31959 * conf/sparc64-ieee1275.rmk: Likewise.
31960 * conf/x86_64-efi.rmk: Likewise.
31962 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31964 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
31966 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31968 * include/grub/misc.h: Stop checking for APPLE_CC.
31970 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31972 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
31973 doesn't cause an infinite call loop.
31975 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
31977 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
31980 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31982 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
31984 * Makefile.in: Likewise.
31986 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31988 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
31990 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31992 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
31994 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31996 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
31998 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32000 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
32002 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
32004 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32006 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
32007 in $(MAKEINFO) invocation. This makes it clear in output that
32008 errors are being ignored.
32010 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32012 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
32014 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
32015 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
32016 * conf/i386-ieee1275.rmk: Likewise.
32017 * conf/i386-pc.rmk: Likewise.
32018 * conf/powerpc-ieee1275.rmk: Likewise.
32019 * conf/sparc64-ieee1275.rmk: Likewise.
32020 * conf/x86_64-efi.rmk: Likewise.
32022 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
32024 * util/grub-editenv.c (main): If only a command is given, use
32025 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
32026 (usage): FILENAME is now optional and has a default.
32028 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
32030 Improve grub-mkconfig performance when there are several menu
32031 entries on a single filesystem.
32033 * util/grub.d/10_linux.in (linux_entry): Cache the output of
32034 prepare_grub_to_access_device.
32035 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32036 * util/grub.d/30_os-prober.in: Likewise.
32038 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32040 * util/grub.d/10_freebsd.in: Remove.
32041 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
32042 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
32044 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32046 * docs/grub.cfg: Fix example usage of *BSD loaders.
32048 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32050 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
32051 grub_util_error() call.
32053 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32055 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
32056 `reserved_first_sector' member.
32057 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
32058 `reserved_first_sector' to 1.
32059 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
32060 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
32061 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
32062 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
32063 filesystems which begin at first sector.
32064 (options): New option --skip-fs-probe.
32065 (main): Handle --skip-fs-probe and pass it to setup().
32067 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32069 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
32070 (memset): Fix function prototype.
32072 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32073 2009-10-25 Vasily Averin <vvs@parallels.com>
32075 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
32076 `dirent.direntlen == 0'.
32078 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32080 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
32082 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
32084 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32086 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
32087 `__trampoline_setup' and `__ucmpdi2'.
32088 * include/grub/powerpc/libgcc.h: Only export symbols for functions
32089 that libgcc provides.
32091 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32093 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
32094 * include/grub/sparc64/libgcc.h (memset): Likewise.
32095 * include/grub/misc.h (memset, memcmp): New function prototypes.
32097 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32099 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
32101 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
32103 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32105 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
32106 * docs/grub.cfg: Compensate for recent change in multiboot
32107 loader (since 2009-08-14 it won't pass filename to payload).
32108 * util/grub.d/10_hurd.in: Likewise.
32110 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
32112 * config.guess: Update to latest version from config git
32114 * config.sub: Likewise.
32116 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
32118 Fix build on sparc64.
32120 * configure.ac: Perform checks for libgcc symbols before
32121 adding `-nostdlib' to LDFLAGS.
32123 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32125 Let user specify OpenBSD root device.
32127 * loader/i386/bsd.c (openbsd_root): New variable.
32128 (openbsd_opts): New option 'root'.
32129 (OPENBSD_ROOT_ARG): New macro.
32130 (grub_openbsd_boot): Use 'openbsd_root'.
32131 (grub_cmd_openbsd): Fill 'openbsd_root'.
32133 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32135 * NEWS: Misc adjustments.
32137 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32139 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
32141 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32143 * configure.ac: Bump version to 1.97.
32145 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
32147 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
32148 -mno-3dnow on x86 architectures. Some toolchains enable these
32149 features by default, but they rely on registers that aren't enabled
32150 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
32152 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
32154 Make entry text a bit more readable.
32156 * util/grub.d/10_linux.in: Add `with' before `Linux'.
32158 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32160 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
32162 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32164 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
32167 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32169 * configure.ac: Add missing dollar.
32171 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32173 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
32175 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
32176 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
32178 * include/grub/sparc64/libgcc.h: Likewise. Use
32179 preprocessor conditionals.
32181 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32183 * conf/common.rmk (grub-dumpbios): Remove rule.
32184 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
32185 * util/grub-dumpbios.in: Remove file.
32187 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32189 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
32190 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
32192 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
32193 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
32196 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
32197 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
32198 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
32199 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
32202 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
32204 * term/tparm.c: Switch to GPLv3.
32206 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32208 * include/grub/i386/cpuid.h: Add header protection.
32210 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32212 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
32214 * include/grub/i386/cpuid.h: New file.
32215 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
32216 (has_longmode): Rename to ...
32217 (grub_cpuid_has_longmode): ... this. Update all users. Remove
32218 `static' attribute.
32219 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
32220 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
32221 on a CPU that doesn't implement AMD64 instruction set.
32223 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
32225 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
32226 that version.texi is rebuilt on version number changes.
32228 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
32230 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
32233 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
32235 * util/i386/pc/grub-install.in: Source
32236 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
32237 that the --grub-probe option will work.
32238 * util/sparc64/ieee1275/grub-install.in: Likewise.
32240 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
32242 * configure.ac: Bump version to 1.97~beta4.
32244 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
32246 Resync grub-mkdevicemap in x86_64-efi.
32248 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
32249 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
32250 `util/devicemap.c'.
32252 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
32254 * util/grub-editenv.c (create_envblk_file): Write new block with a
32255 .new suffix and then rename it into place, to ensure atomic
32258 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
32260 Do not automatically install headers.
32262 * Makefile.in (include_DATA): Remove. Update all users.
32264 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
32266 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
32267 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
32269 * util/osdetect.lua: Remove.
32270 * script/lua/lauxlib.c: Likewise.
32271 * script/lua/ldebug.c: Likewise.
32272 * script/lua/grub_main.c: Likewise.
32273 * script/lua/lauxlib.h: Likewise.
32274 * script/lua/ldebug.h: Likewise.
32275 * script/lua/ltablib.c: Likewise.
32276 * script/lua/liolib.c: Likewise.
32277 * script/lua/lstrlib.c: Likewise.
32278 * script/lua/lualib.h: Likewise.
32279 * script/lua/ldo.c: Likewise.
32280 * script/lua/ldump.c: Likewise.
32281 * script/lua/ldo.h: Likewise.
32282 * script/lua/loslib.c: Likewise.
32283 * script/lua/lundump.c: Likewise.
32284 * script/lua/grub_lib.c: Likewise.
32285 * script/lua/ldblib.c: Likewise.
32286 * script/lua/lundump.h: Likewise.
32287 * script/lua/lmem.c: Likewise.
32288 * script/lua/grub_lib.h: Likewise.
32289 * script/lua/lmathlib.c: Likewise.
32290 * script/lua/lstate.c: Likewise.
32291 * script/lua/ltm.c: Likewise.
32292 * script/lua/lvm.c: Likewise.
32293 * script/lua/lmem.h: Likewise.
32294 * script/lua/lstate.h: Likewise.
32295 * script/lua/ltm.h: Likewise.
32296 * script/lua/ltable.c: Likewise.
32297 * script/lua/lvm.h: Likewise.
32298 * script/lua/llex.c: Likewise.
32299 * script/lua/lgc.c: Likewise.
32300 * script/lua/grub_lua.h: Likewise.
32301 * script/lua/loadlib.c: Likewise.
32302 * script/lua/lfunc.c: Likewise.
32303 * script/lua/lopcodes.c: Likewise.
32304 * script/lua/lparser.c: Likewise.
32305 * script/lua/ltable.h: Likewise.
32306 * script/lua/llex.h: Likewise.
32307 * script/lua/lgc.h: Likewise.
32308 * script/lua/lfunc.h: Likewise.
32309 * script/lua/lbaselib.c: Likewise.
32310 * script/lua/lopcodes.h: Likewise.
32311 * script/lua/lparser.h: Likewise.
32312 * script/lua/lzio.c: Likewise.
32313 * script/lua/linit.c: Likewise.
32314 * script/lua/lobject.c: Likewise.
32315 * script/lua/llimits.h: Likewise.
32316 * script/lua/lstring.c: Likewise.
32317 * script/lua/lzio.h: Likewise.
32318 * script/lua/lapi.c: Likewise.
32319 * script/lua/lcode.c: Likewise.
32320 * script/lua/lua.h: Likewise.
32321 * script/lua/lobject.h: Likewise.
32322 * script/lua/lstring.h: Likewise.
32323 * script/lua/lapi.h: Likewise.
32324 * script/lua/lcode.h: Likewise.
32325 * script/lua/luaconf.h: Likewise.
32327 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
32329 * docs/grub.texi (Command-line and menu entry commands): Document
32330 date and echo commands.
32332 2009-09-24 Pavel Roskin <proski@gnu.org>
32334 * include/grub/kernel.h (struct grub_module_header): Remove
32335 `grub_module_header_types'. Make `type' unsigned. Make `size'
32336 32-bit on all platforms.
32337 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
32338 8-bit field. Use grub_host_to_target32() for `size'.
32339 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
32340 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
32341 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
32343 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32345 Fix "lost keypress" bug in at_keyboard.
32347 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
32348 Checks for readyness of input buffer (without flushing it).
32349 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
32350 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
32352 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32354 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
32355 size check within GRUB_MACHINE_PCBIOS section.
32357 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32359 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
32361 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
32362 KEYBOARD_ISREADY check.
32363 (grub_at_keyboard_checkkey): Rename to ...
32364 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
32365 Remove gratuitous cast.
32367 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
32369 * configure.ac: Call AC_PROG_MKDIR_P.
32370 * Makefile.in (docs/stamp-vti): Create docs directory. Create
32371 version.texi in $(builddir) rather than $(srcdir).
32372 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
32373 to makeinfo's @include search path.
32375 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
32377 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
32379 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
32381 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
32384 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
32386 Build info documentation. Some code borrowed from Automake.
32388 * configure.ac: Check for makeinfo.
32389 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
32390 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
32392 (MOSTLYCLEANFILES): Add vti.tmp.
32393 (docs/version.texi, docs/stamp-vti): Update automatically.
32394 (docs/grub.info): Build info documentation. Use --force and ignore
32396 (all-local): Add $(INFOS).
32397 (install-local): Install info files.
32398 (uninstall): Uninstall info files.
32399 * docs/version.texi: Remove from revision control. This file is
32400 automatically generated on build now.
32401 * gendistlist.sh: Add `*.info'.
32403 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
32405 * kern/term.c: Fix indentation.
32407 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
32409 * util/hostdisk.c: Fix a comment.
32411 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
32413 Fix regression introduced in r2539.
32415 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
32418 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
32420 * util/grub.d/30_os-prober.in: Don't throw away stderr from
32421 os-prober. Under normal operation, it does not print anything to
32422 stderr; if it does, we need to debug it, and throwing away stderr
32423 makes that excessively difficult.
32425 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
32427 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
32429 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32431 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
32432 AC_LANG_PROGRAM from autoconf.
32433 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
32434 prototypes (fixes warning).
32436 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
32437 `--disable-werror' was used.
32439 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32441 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
32442 uninitialized `lastaddr'.
32444 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
32446 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
32448 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
32450 * commands/test.c (get_fileinfo): Return immediately if
32451 grub_fs_probe fails.
32453 2009-09-14 José Martínez <xosemp@gmail.com>
32455 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
32457 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
32459 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
32462 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
32464 * configure.ac: Remove --enable-grub-pe2elf. Only build
32465 grub-pe2elf when needed by the build system itself.
32466 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
32468 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32470 * configure.ac: Bump version to 1.97~beta3.
32471 * docs/version.texi: Likewise.
32473 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32475 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
32476 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
32478 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
32479 (grub_linux_setup_video): ... to here (with some adjustments).
32481 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32483 Fix memory corruption issue (spotted by Colin Watson).
32485 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
32486 causing returned size to be stored in an incorrect memory location.
32487 Fix use of uninitialized value when storing the returned size.
32489 2009-09-12 Yves Blusseau <blusseau@zetam.org>
32491 Change clean rules to properly remove files
32493 * genmk.rb: add new clean rules
32494 * Makefile.in (clean): add the new targets
32495 (mostlyclean): likewise
32497 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
32499 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
32501 * fs/ntfs.c (init_file): Understand 64-bit sizes for
32502 non-resident files.
32504 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
32506 * configure.ac: Don't look for help2man when cross-compiling. Fixes
32507 part of bug #27349.
32509 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
32511 * util/grub-mkconfig.in: Make the created config mode 400 and
32512 print a warning if it fails.
32514 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
32516 * util/grub.d/40_custom.in: Ask user to type custom entries below
32517 comment, rather than below 'exec tail' line.
32519 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
32521 * util/grub.d/40_custom.in: Make sure that the explanatory text is
32522 visible in grub.cfg.
32524 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
32526 * util/grub.d/40_custom.in: Make it a little clearer how to use this
32529 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
32531 * docs/grub.cfg: Add an example menu entry for memtest86+.
32533 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
32535 * config.guess: Update to latest version from config git.
32536 * config.sub: Likewise.
32538 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
32540 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
32541 unknown-command case. Fixes bug #27320.
32543 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
32545 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
32546 `help' if the command exists.
32548 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
32550 * INSTALL: Require GCC 4.1.3 or later.
32552 2009-09-06 Yves Blusseau <blusseau@zetam.org>
32554 * Makefile.in (RMKFILES): add i386-qemu.rmk
32555 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
32556 $(srcdir)/stamp-h.in
32558 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32560 * util/grub-probe.c (probe): Comment out buggy codepath, which
32561 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
32562 should be re-enabled after 1.97.
32564 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
32566 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
32569 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
32571 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
32572 unnecessary calls to grub_error.
32574 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
32576 * NEWS: Mention `keystatus' and Unicode fonts.
32578 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
32580 * configure.ac: Bump version to 1.97~beta2.
32581 * docs/version.texi: Likewise.
32583 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
32585 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
32586 containing unwind information in some cases where it previously did
32587 not. Use -fno-dwarf2-cfi-asm if available to restore the old
32588 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
32591 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
32593 Embedding loadenv module into grub-emu
32595 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
32597 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
32598 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
32599 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
32600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
32601 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
32602 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
32604 2009-09-03 Magnus Granberg <zorry@ume.nu>
32606 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
32607 include -fPIE in the default specs.
32608 * configure.ac: Check if pie_possible is yes and add -fno-PIE
32611 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
32613 * INSTALL: Note that GNU Bison 2.3 or later is required.
32615 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
32617 * kern/i386/pc/startup.S: Fix typo.
32619 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
32621 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
32624 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
32626 * docs/grub.texi (Naming convention): Describe one-based partition
32628 (Device syntax): Likewise.
32629 (File name syntax): Likewise.
32630 (Block list syntax): Likewise.
32631 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
32633 (File name syntax): Likewise.
32634 (Command-line and menu entry commands): Document acpi, blocklist,
32635 crc, export, insmod, keystatus, ls, set, and unset commands.
32637 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
32639 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
32640 to avoid implying that only one of --shift, --ctrl, or --alt may be
32643 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
32645 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
32646 rather than comparing against S_IFREG, which will almost never work.
32648 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
32650 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
32651 (write_blocklists): Likewise.
32653 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
32655 * script/lua/grub_lua.h (fputs): Supply a format string as the first
32656 argument to grub_printf.
32658 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
32660 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
32663 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32665 * kern/file.c (grub_file_read): Spelling fix
32667 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32669 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
32670 loading of headers in some cases.
32672 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
32674 * configure.ac: Bump version to 1.97~beta1.
32675 * docs/version.texi: Likewise.
32677 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
32679 * include/grub/i386/xnu.h: Add license header.
32680 include grub/err.h explicitly.
32682 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32684 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
32685 to `ufs' in the vfs.root.mountfrom kernel parameter.
32687 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32689 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
32691 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
32692 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
32694 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
32695 `ARRAY_SIZE' macro.
32697 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32699 * kern/file.c (grub_file_read): Check offset.
32700 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
32701 * fs/jfs.c (grub_jfs_read_file): Likewise.
32702 * fs/ntfs.c (grub_ntfs_read): Likewise.
32703 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
32704 * fs/minix.c (grub_minix_read_file): Correct offset check.
32705 * fs/ufs.c (grub_ufs_read_file): Likewise.
32707 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
32709 * term/i386/pc/console.c (bios_data_area): Cast
32710 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
32712 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32714 1-bit optimised blitters.
32716 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
32718 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32719 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32720 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32721 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32722 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32723 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32724 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
32726 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32727 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32728 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32729 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32730 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32731 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32732 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
32734 * video/video.c (grub_video_get_blit_format): Return
32735 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
32737 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
32739 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
32740 the first argument to grub_printf.
32742 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
32743 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
32745 Add `getkeystatus' terminal method. Add a new `keystatus' command
32748 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
32749 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
32750 modifier key bitmasks.
32751 (struct grub_term_input): Add `getkeystatus' member.
32752 (grub_getkeystatus): Add prototype.
32753 * kern/term.c (grub_getkeystatus): New function.
32755 * include/grub/i386/pc/memory.h
32756 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
32757 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
32759 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
32760 (grub_console_term_input): Set `getkeystatus' member.
32761 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
32763 (grub_usb_keyboard_getreport): Likewise.
32764 (grub_usb_keyboard_checkkey): Likewise.
32765 (grub_usb_keyboard_getkeystatus): New function.
32766 (grub_usb_keyboard_term): Set `getkeystatus' member.
32768 * commands/keystatus.c: New file.
32769 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
32770 (keystatus_mod_SOURCES): New variable.
32771 (keystatus_mod_CFLAGS): Likewise.
32772 (keystatus_mod_LDFLAGS): Likewise.
32773 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
32774 commands/keystatus.c.
32775 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32776 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32777 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32779 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32780 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32782 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32784 Split befs.mod and afs.mod into *_be.mod and *.mod
32786 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
32787 (grub_fstest_SOURCES): Likewise.
32788 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
32789 (afs_be_mod_SOURCES): New variable.
32790 (afs_be_mod_CFLAGS): Likewise.
32791 (afs_be_mod_LDFLAGS): Likewise.
32792 (befs_be_mod_SOURCES): Likewise.
32793 (befs_be_mod_CFLAGS): Likewise.
32794 (befs_be_mod_LDFLAGS): Likewise.
32795 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
32796 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32797 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32798 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32799 (grub_emu_SOURCES): Likewise.
32800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32801 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32802 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32803 * fs/afs_be.c: New file.
32804 * fs/befs_be.c: New file.
32805 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32806 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32807 (U16): Replaced with ...
32808 (grub_afs_to_cpu16): ...this. All users updated.
32809 (U32): Replaced with ...
32810 (grub_afs_to_cpu32): ...this. All users updated.
32811 (U64): Replaced with ...
32812 (grub_afs_to_cpu64): ...this. All users updated.
32813 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32814 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
32815 (grub_afs_validate_sblock): Check only one endianness.
32816 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32817 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32818 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32819 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32820 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32821 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32822 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32823 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32825 2009-08-26 Bean <bean123ch@gmail.com>
32827 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32829 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32830 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32831 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32833 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32835 NetBSD memory map support.
32837 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32838 (grub_netbsd_btinfo_mmap_header): New structure.
32839 (grub_netbsd_btinfo_mmap_entry): Likewise.
32840 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32842 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32844 Enable bsd.mod on coreboot.
32846 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32847 (bsd_mod_SOURCES): New variable.
32848 (bsd_mod_CFLAGS): Likewise.
32849 (bsd_mod_LDFLAGS): Likewise.
32850 (bsd_mod_ASFLAGS): Likewise.
32851 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32852 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32854 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32856 Cleanup NetBSD root support.
32858 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32859 grub_bsd_get_device.
32862 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
32864 * util/grub.d/00_header.in: Move check for the video backend of
32865 gfxterm from here ...
32866 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32867 a suitable video backend.
32869 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32871 Fix breakage in grub-setup.
32873 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32874 "msdos_partition_map".
32876 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32878 Fix breakage in normal/auth.c.
32880 * normal/auth.c (grub_iswordseparator): New function.
32882 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32884 Authentication support.
32886 * commands/password.c: New file.
32887 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32888 (password_mod_SOURCES): New variable.
32889 (password_mod_CFLAGS): Likewise.
32890 (password_mod_LDFLAGS): Likewise.
32891 (normal_mod_SOURCES): Add normal/auth.c.
32892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32894 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32895 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32896 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32898 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32899 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32900 * include/grub/auth.h: New file.
32901 * include/grub/err.h (grub_err_t): New enum value
32902 GRUB_ERR_ACCESS_DENIED.
32903 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32905 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32906 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32908 * normal/auth.c: New file.
32909 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32910 (grub_cmdline_run): Don't allow to go to command line without
32912 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32913 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32914 menuentry without superuser rights.
32915 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32916 user isn't a superuser.
32918 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32920 Save space by inlining misc.c functions.
32922 * kern/misc.c (grub_iswordseparator): Made static.
32923 * kern/misc.c (grub_strcat): Moved from here ...
32924 * include/grub/misc.h (grub_strcat): ... here. Inlined.
32925 * kern/misc.c (grub_strncat): Moved from here ...
32926 * include/grub/misc.h (grub_strncat): ... here. Inlined.
32927 * kern/misc.c (grub_strcasecmp): Moved from here ...
32928 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
32929 * kern/misc.c (grub_strncasecmp): Moved from here ...
32930 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
32931 * kern/misc.c (grub_isalpha): Moved from here ...
32932 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
32933 * kern/misc.c (grub_isdigit): Moved from here ...
32934 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
32935 * kern/misc.c (grub_isgraph): Moved from here ...
32936 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
32937 * kern/misc.c (grub_tolower): Moved from here ...
32938 * include/grub/misc.h (grub_tolower): ... here. Inlined.
32940 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32942 * script/sh/function.c (grub_script_function_find): Cut error message
32943 not to flood terminal.
32944 * script/sh/lexer.c (grub_script_yylex): Remove command line length
32946 * script/sh/script.c (grub_script_arg_add): Duplicate string.
32948 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
32950 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
32951 `report' grub_uint8_t *.
32952 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
32953 Use a 50-millisecond timeout rather than just repeating
32954 grub_usb_keyboard_getreport 50 times.
32955 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
32957 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32959 Rename *_partition_map to part_*
32961 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
32962 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
32963 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
32964 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
32966 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
32968 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
32969 * util/grub-probe.c (probe_partmap): Don't transform partition name
32970 to get module name.
32972 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32974 Fix OpenBSD and NetBSD support.
32976 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
32977 memory address conflict.
32978 (OPENBSD_MMAP_ACPI): New definition.
32979 (OPENBSD_MMAP_NVS): Likewise.
32980 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
32981 and OPENBSD_MMAP_NVS.
32982 Add memory map terminator
32983 Explicit cast when calling grub_unix_real_boot.
32984 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
32986 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32988 Let user specify NetBSD root device.
32990 * loader/i386/bsd.c (netbsd_root): New variable.
32991 (netbsd_opts): New option 'root'.
32992 (NETBSD_ROOT_ARG): New macro.
32993 (grub_netbsd_boot): Use 'netbsd_root'.
32994 (grub_bsd_unload): Free 'netbsd_root'.
32995 (grub_cmd_netbsd): Fill 'netbsd_root'.
32997 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32999 Support for 64-bit NetBSD.
33001 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
33002 point when booting non-FreeBSD.
33004 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33006 Support --no-smp and --no-acpi for NetBSD.
33008 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
33009 (NETBSD_AB_NOACPI): Likewise.
33010 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
33011 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
33013 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33015 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
33017 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
33018 errors. Call grub_error when needed.
33020 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33022 * commands/search.c (search_fs): Try searching without autoload first.
33023 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
33024 filesystem module explicitly for faster booting.
33026 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
33028 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
33030 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
33032 * util/grub.d/30_os-prober.in: Disable os-prober if
33033 `GRUB_DISABLE_OS_PROBER' was set to true.
33035 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
33037 * partmap/pc.c: Rename to ...
33038 * partmap/msdos.c: ... this. Update all users.
33039 (grub_pc_partition_map): Rename to ...
33040 (grub_msdos_partition_map): ... this. Update all users.
33042 * parttool/pcpart.c: Rename to ...
33043 * parttool/msdospart.c: ... this. Update all users.
33045 * include/grub/pc_partition.h: Rename to ...
33046 * include/grub/msdos_partition.h: ... this. Update all users.
33047 (grub_pc_partition_bsd_entry): Rename to ...
33048 (grub_msdos_partition_bsd_entry): ... this. Update all users.
33049 (grub_pc_partition_disk_label): Rename to ...
33050 (grub_msdos_partition_disk_label): ... this. Update all users.
33051 (grub_pc_partition_entry): Rename to ...
33052 (grub_msdos_partition_entry): ... this. Update all users.
33053 (grub_pc_partition_mbr): Rename to ...
33054 (grub_msdos_partition_mbr): ... this. Update all users.
33055 (grub_pc_partition): Rename to ...
33056 (grub_msdos_partition): ... this. Update all users.
33057 (grub_pc_partition_is_empty): Rename to ...
33058 (grub_msdos_partition_is_empty): ... this. Update all users.
33059 (grub_pc_partition_is_extended): Rename to ...
33060 (grub_msdos_partition_is_extended): ... this. Update all users.
33061 (grub_pc_partition_is_bsd): Rename to ...
33062 (grub_msdos_partition_is_bsd): ... this. Update all users.
33064 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
33065 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
33066 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
33067 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
33068 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
33069 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
33070 (gpt_mod_LDFLAGS): Rename to ...
33071 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
33072 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
33073 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
33074 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
33075 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
33076 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
33077 (part_gpt_mod_LDFLAGS): ... this.
33078 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
33079 `pcpart.mod' to `msdospart.mod'.
33080 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
33082 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
33083 (msdospart_mod_LDFLAGS): ... this.
33085 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33087 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
33088 (openbsd_opts): Likewise.
33089 (netbsd_opts): Likewise.
33090 (freebsd_flags): Added 0 terminator.
33091 (openbsd_flags): Likewise.
33092 (netbsd_flags): Likewise.
33093 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
33094 (grub_cmd_freebsd): Transformed into extended command.
33095 (grub_cmd_openbsd): Likewise.
33096 (grub_cmd_netbsd): Likewise.
33097 (cmd_freebsd): Changed type to grub_extcmd_t.
33098 (cmd_openbsd): Likewise.
33099 (cmd_netbsd): Likewise.
33100 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
33101 grub_cmd_openbsd as extended commands.
33102 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
33103 cmd_netbsd and cmd_openbsd
33105 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
33107 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
33109 2009-08-21 Pavel Roskin <proski@gnu.org>
33111 * Makefile.in (install-local): When checking if a file is in the
33112 build directory, use "test -e" to detect symlinks.
33114 * Makefile.in (install-local): Remove all files in
33115 $(DESTDIR)$(pkglibdir) before installing new files there.
33117 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
33119 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
33122 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
33124 * util/grub-mkconfig.in: Don't use gfxterm by default if not
33125 explicitly specified by the user.
33127 2009-08-18 Pavel Roskin <proski@gnu.org>
33129 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
33130 grub_uint8_t pointer for data.
33131 * include/grub/fbutil.h (struct grub_video_fbblit_info):
33133 * video/fb/fbutil.c: Remove unnecessary casts.
33135 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
33139 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
33140 (grub_vbe_set_video_mode): Save active mode info
33141 only after setting the mode.
33142 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
33145 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
33147 Rename variables for clarity.
33149 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
33150 (active_vbe_mode_info): ... this. All users updated.
33151 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
33153 (initial_mode): Rename to ...
33154 (initial_vbe_mode): ... this. All users updated.
33155 (mode_in_use): Rename to ..
33156 (vbe_mode_in_use): ... this. All users updated.
33157 (mode_list): Rename to ..
33158 (vbe_mode_list): ... this. All users updated.
33159 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
33160 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
33161 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
33162 'mode_list_size' to 'vbe_mode_list_size'.
33163 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
33164 'best_mode_info' to 'best_vbe_mode_info' and
33165 'best_mode' to 'best_vbe_mode'
33167 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
33169 Remove duplicate grub_video_fb_get_video_ptr.
33171 * include/grub/fbutil.h (get_data_ptr): Rename to ...
33172 (grub_video_fb_get_video_ptr): ... this.
33173 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
33174 * video/fb/fbutil.c: Add comment about addressing.
33175 (get_data_ptr): Rename to ...
33176 (grub_video_fb_get_video_ptr): ... this. All users updated.
33177 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
33179 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33181 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
33182 grub_dprintf() that was just added.
33184 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33186 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
33187 (DEFAULT_VIDEO_MODE): Remove macros.
33188 (grub_linux_boot): Remove assumption that Linux has FB support,
33189 and use "text" as default video mode.
33191 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
33193 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
33195 * fs/fat.c (grub_fat_read_data): Likewise.
33197 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33199 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
33201 (grub_module): Likewise.
33203 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33205 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
33206 mbi->cmdline but free playground.
33208 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33210 Handle group offset on UFS1.
33212 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
33213 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
33215 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33217 Split ufs.mod into ufs1.mod and ufs2.mod.
33219 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
33220 (grub_fstest_SOURCES): Likewise.
33221 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
33222 (ufs_mod_SOURCES): Remove.
33223 (ufs_mod_CFLAGS): Likewise.
33224 (ufs_mod_LDFLAGS): Likewise.
33225 (ufs1_mod_SOURCES): New variable.
33226 (ufs1_mod_CFLAGS): Likewise.
33227 (ufs1_mod_LDFLAGS): Likewise.
33228 (ufs2_mod_SOURCES): New variable.
33229 (ufs2_mod_CFLAGS): Likewise.
33230 (ufs2_mod_LDFLAGS): Likewise.
33231 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
33232 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33234 (grub_emu_SOURCES): Likewise.
33235 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33236 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33237 (grub_setup_SOURCES): Likewise.
33238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33239 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
33240 (grub_setup_SOURCES): Likewise.
33241 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33243 * fs/ufs2.c: New file.
33244 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
33246 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33250 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
33251 subsystem at the end.
33252 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
33253 (video_fb_mod_SOURCES): New variable.
33254 (video_fb_mod_CFLAGS): Likewise.
33255 (video_fb_mod_LDFLAGS): Likewise.
33256 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
33257 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
33258 * video/i386/pc/vbeblit.c: Moved from here ...
33259 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
33260 * video/i386/pc/vbefill.c: Moved from here ...
33261 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
33262 * video/i386/pc/vbeutil.c: Moved from here ...
33263 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
33264 * include/grub/i386/pc/vbeblit.h: Moved from here ...
33265 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
33266 * include/grub/i386/pc/vbefill.h: Moved from here ...
33267 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
33268 * include/grub/i386/pc/vbeutil.h: Moved from here ...
33269 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
33270 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
33271 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
33272 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
33273 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
33274 (grub_video_adapter): Added 'get_info_and_fini'.
33275 (grub_video_get_info_and_fini): New prototype.
33276 (grub_video_set_mode): make modestring const char *.
33277 * loader/i386/linux.c (grub_linux_setup_video): Use
33278 grub_video_get_info_and_fini.
33279 (grub_linux_boot): Move modesetting just before booting.
33280 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
33281 grub_video_get_info_and_fini.
33282 * video/i386/pc/vbe.c: Moved framebuffer part ...
33283 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
33284 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
33285 grub_video_fbstd_colors and grub_video_fb_set_palette.
33286 (grub_video_vbe_init): Clear 'framebuffer' variable and use
33287 grub_video_fb_init.
33288 (grub_video_vbe_fini): Use grub_video_fb_fini.
33289 (grub_video_vbe_setup): Use framebuffer.render_target instead of
33290 render_target and use grub_video_fb_set_active_render_target and
33291 grub_video_fb_set_palette.
33292 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
33293 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
33294 (grub_video_vbe_adapter): Use framebuffer.
33295 * video/video.c (grub_video_get_info_and_fini): New function.
33296 (grub_video_set_mode): Make modestring const char *.
33297 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
33298 values are already initialised.
33300 2009-08-14 Pavel Roskin <proski@gnu.org>
33302 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
33304 * boot/i386/pc/diskboot.S: Likewise.
33305 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
33306 sectors allow compilation on MacOSX.
33307 * conf/i386-pc.rmk: Enable unconditional compilation of
33310 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
33312 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
33313 * util/grub.d/00_header.in: Enter interruptible sleep if
33314 GRUB_HIDDEN_TIMEOUT is set.
33316 2009-08-13 Yves Blusseau <blusseau@zetam.org>
33318 * include/grub/symbol.h: Add the LOCAL macro.
33319 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
33320 starting with "L_".
33322 2009-08-13 Pavel Roskin <proski@gnu.org>
33324 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
33325 any modern compilers we support.
33327 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
33328 Use local labels starting with "L_" so that Apple assembler
33329 knows they are local.
33331 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
33333 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
33334 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
33335 (bsd_kernel_types): ... this enum.
33337 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
33338 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
33339 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
33341 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
33342 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
33343 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
33346 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33348 * util/grub-dumpdevtree: Moved from here ...
33349 * util/i386/efi/grub-dumpdevtree: ... to here.
33350 (hexify): New function. Converts a string to its hex version.
33351 Generate hex versions of "efi" and "device-properties" by calling
33352 hexify() on the ASCII strings rather than by hardcoding numbers.
33354 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33356 * fs/jfs.c: Update copyright year.
33358 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
33360 * util/grub.d/00_header.in: Fix a comment.
33361 * util/grub.d/10_linux.in: Likewise.
33362 * util/grub.d/10_windows.in: Likewise.
33363 * util/grub.d/10_hurd.in: Likewise.
33365 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
33367 * util/grub-mkconfig.in: Allow the user to specify the used font
33370 2009-08-08 Pavel Roskin <proski@gnu.org>
33372 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
33373 available, xfs.mod needs it now.
33375 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
33376 the "g" modifier in sed when the intention is to strip something
33377 once. This fixes comparison of kernels with multiple dashes.
33379 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
33380 on it. Add missing space before closing bracket. Fix
33381 misleading formatting.
33383 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33385 * docs/grub.texi: Major overhaul. Remove all sections that are
33386 specific to GRUB Legacy, or mostly composed of Legacy-specific
33389 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33391 * docs/version.texi: New file. Provides version information for
33394 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33396 * docs/grub.texi: Update CVS information to SVN.
33397 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
33399 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
33401 * util/grub-mkconfig.in: Remove a wrong `fi'.
33403 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
33405 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
33406 (grub_jfs_uuid): New function.
33407 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
33409 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
33411 * util/grub-mkconfig_lib.in (font_path): Move the functionality
33413 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
33414 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
33416 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33418 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
33419 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
33422 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
33423 not just "vmlinu[zx]".
33424 Moved from here ...
33425 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
33428 * util/grub.d/10_linux.in (find_latest): Moved from here ...
33429 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
33432 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33434 * util/grub.d/10_freebsd.in: Use an absolute device path for
33435 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
33437 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
33439 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
33440 handling of multiple abstraction modules.
33442 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
33444 Fix a bug resulting in black screen when loading Linux using a
33447 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
33450 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
33451 (grub_vbe_bios_getset_dac_palette_width): New function.
33452 (grub_vbe_bios_get_dac_palette_width)
33453 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
33454 grub_vbe_bios_getset_dac_palette_width()).
33456 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
33457 check for return status.
33458 (grub_vbe_get_video_mode_info): When getting information for a packed
33459 mode (<= 8 bpp), obtain DAC palette width using
33460 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
33461 {red,green,blue}_mark_size.
33463 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
33465 * commands/search.c (options): Fix help output to match actual code.
33467 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
33469 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
33472 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33474 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
33475 on XFS or ReiserFS.
33477 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33479 Support Apple partition map with sector size different from 512 bytes.
33481 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
33482 (apple_partition_map_iterate): Respect 'aheader.blocksize'
33483 and 'apart.partmap_size'.
33485 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33486 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
33490 * commands/i386/cpuid.c (options): New variable.
33491 (grub_cmd_cpuid): Return real error.
33492 (GRUB_MOD_INIT(cpuid)): Declare options.
33494 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
33496 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
33499 2009-07-31 Bean <bean123ch@gmail.com>
33501 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
33503 (grub_fshelp_node): Move inode field to the end.
33504 (grub_xfs_data): Remove inode field.
33505 (grub_xfs_inode_block): Calculate inode size using sblock.
33506 (grub_xfs_inode_offset): Likewise.
33507 (grub_xfs_read_inode): Calculate inode size using sblock.
33508 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
33509 (grub_xfs_iterate_dir): Calculate inode size using sblock.
33510 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
33511 to match inode size.
33512 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
33513 not accessible when data is null.
33514 (grub_xfs_open): Likewise.
33516 2009-07-31 Bean <bean123ch@gmail.com>
33518 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
33519 Don't change pv->disk if it's already set.
33521 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
33522 (grub_raid_register): ... here.
33523 (grub_raid_rescan): Removed.
33525 * include/grub/raid.h (grub_raid_rescan): Removed.
33527 * util/grub-fstest.c: Remove include file <grub/raid.h>.
33528 (fstest): Replace grub_raid_rescan with module fini function followed
33531 * util/grub-probe.c: Add include file <grub/raid.h>.
33532 (probe_raid_level): New function.
33533 (probe): Detect abstraction by walking the disk device, support two
33534 level of abstraction (LVM on RAID) when detecting partition map.
33536 2009-07-31 Pavel Roskin <proski@gnu.org>
33538 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
33539 to grub_zalloc(), it was erroneous.
33540 Reported by Bean <bean123ch@gmail.com>
33542 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
33544 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
33545 embedding zone, not only the first one.
33547 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
33549 * term/gfxterm.c (clear_char): New function.
33550 (grub_virtual_screen_setup): Use clear_char.
33551 (scroll_up): Likewise.
33552 (grub_virtual_screen_cls): Likewise.
33554 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
33556 * util/deviceiter.c (get_acceleraid_disk_name): New static
33558 (grub_util_iterate_devices): Handle Accelraid devices.
33559 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
33561 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
33563 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
33564 separator for the suggested gfxpayload string (';' collides with the
33565 parser and needs escaping).
33567 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
33569 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
33570 Clear direction flag before jumping to OS.
33571 (grub_multiboot2_real_boot): Likewise.
33573 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
33575 * util/i386/pc/grub-install: Fix parsing of --disk-module
33578 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
33580 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
33583 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
33585 * util/grub-mkconfig.in (package_version): New variable.
33586 Use it do display the version.
33588 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
33590 * kern/file.c (grub_file_open): Revert to previous check with
33593 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33595 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
33596 from help line. It's out of sync with code.
33598 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33600 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
33601 entries on failed boot.
33603 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
33605 * kern/file.c (grub_file_open): Fix an error check.
33607 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
33609 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
33610 partition map couldn't be identified.
33612 2009-07-23 Pavel Roskin <proski@gnu.org>
33614 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
33615 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
33616 case of little endian words becomes just an optimization.
33617 Respect const modifier.
33618 (md5_final): Use code that doesn't depend on endianness.
33620 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
33621 to avoid loss of upper bits if align is unsigned and shorter
33624 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33626 UUID support for UFS
33628 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
33629 (grub_ufs_uuid): New function.
33630 (grub_ufs_fs): add .uuid
33632 2009-07-21 Pavel Roskin <proski@gnu.org>
33634 * kern/dl.c (grub_dl_check_header): Make static.
33636 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
33638 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
33639 add drivemap for Vista. It breaks Windows 7.
33641 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33643 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
33646 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33650 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
33651 (grub_fstest_SOURCES): Likewise.
33652 (pkglib_MODULES): Add befs.mod.
33653 (befs_mod_SOURCES): New variable.
33654 (befs_mod_CFLAGS): Likewise.
33655 (befs_mod_LDFLAGS): Likewise.
33656 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33657 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33658 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33659 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33660 (grub_setup_SOURCES): Likewise.
33661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33662 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33663 (grub_setup_SOURCES): Likewise.
33664 * fs/befs.c: New file.
33665 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
33666 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
33667 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
33668 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
33669 (B_KEY_INDEX_ALIGN): New declaration.
33670 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
33671 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
33672 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
33673 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
33674 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
33675 (grub_afs_mount) [MODE_BFS]: Likewise.
33676 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
33677 (grub_afs_fs): Use GRUB_AFS_FSNAME
33678 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
33679 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
33680 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
33681 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
33683 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
33685 * util/getroot.c (find_root_device): Add support for MacOSX.
33686 * util/hostdisk.c: Likewise.
33688 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33690 * font/font.c (find_glyph): Check whether a font is present to avoid
33691 segmentation fault.
33693 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
33695 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
33697 2009-07-20 Pavel Roskin <proski@gnu.org>
33699 * configure.ac: Trim excessively wordy excuses.
33701 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33703 Add symlink, mtime and label support to AtheFS.
33705 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
33706 (grub_afs_iterate_dir): Handle symlinks.
33707 (grub_afs_open): Use grub_afs_read_symlink.
33708 (grub_afs_dir): Likewise.
33710 (grub_afs_label): New function.
33711 (grub_afs_fs): Add grub_afs_label.
33712 (grub_afs_read_symlink): New function.
33714 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33716 Fix AtheFS support.
33718 * fs/afs.c: Fix comments style.
33719 (grub_afs_blockrun): Declare as packed.
33720 (grub_afs_datastream): Likewise.
33721 (grub_afs_bnode): Likewise.
33722 (grub_afs_btree): Likewise.
33723 (grub_afs_sblock): Likewise.
33724 Declare `name' as char.
33725 (grub_afs_inode): Declare as packed.
33726 Change void *vnode to grub_uint32_t unused.
33727 (grub_afs_iterate_dir): Check that key_size is positive.
33728 (grub_afs_mount): Don't read superblock twice.
33729 (grub_afs_dir): Don't free node in case of error,
33730 grub_fshelp_find_file already handles this.
33731 (grub_afs_open): Likewise.
33733 2009-07-19 Pavel Roskin <proski@gnu.org>
33735 * Makefile.in: Remove LIBLZO and enable_lzo.
33736 * conf/i386-pc.rmk: Remove lzo support.
33737 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
33738 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
33740 * kern/i386/pc/lzo1x.S: Remove.
33741 * kern/i386/pc/startup.S: Remove lzo support.
33742 * util/i386/pc/grub-mkimage.c: Likewise.
33744 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
33746 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
33747 * fs/xfs.c (grub_xfs_dir): Likewise.
33748 * fs/afs.c (grub_afs_dir): Likewise.
33749 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
33750 (grub_iso9660_open): Likewise.
33751 * fs/jfs.c (grub_jfs_open): Likewise.
33752 * fs/ext2.c (grub_ext2_dir): Likewise.
33753 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
33754 * script/sh/lexer.c (grub_script_yylex): Likewise.
33756 2009-07-16 Pavel Roskin <proski@gnu.org>
33758 * configure.ac: Never add "-c" to CFLAGS.
33760 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
33762 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
33763 grub_cv_cc_efiemu should be used.
33765 * configure.ac: Typo fixes.
33767 * kern/mm.c (grub_zalloc): New function.
33768 (grub_debug_zalloc): Likewise.
33769 * include/grub/mm.h: Declare grub_zalloc() and
33770 grub_debug_zalloc().
33771 * util/misc.c (grub_zalloc): New function.
33772 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
33773 instead of grub_malloc(), remove unneeded initializations.
33774 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
33775 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
33776 * commands/parttool.c (grub_cmd_parttool): Likewise.
33777 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
33778 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
33779 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
33780 * disk/usbms.c (grub_usbms_finddevs): Likewise.
33781 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
33782 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
33783 (grub_cmd_efiemu_pnvram): Likewise.
33784 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
33785 * fs/iso9660.c (grub_iso9660_mount): Likewise.
33786 (grub_iso9660_iterate_dir): Likewise.
33787 * fs/jfs.c (grub_jfs_opendir): Likewise.
33788 * fs/ntfs.c (list_file): Likewise.
33789 (grub_ntfs_mount): Likewise.
33790 * kern/disk.c (grub_disk_open): Likewise.
33791 * kern/dl.c (grub_dl_load_core): Likewise.
33792 * kern/elf.c (grub_elf_file): Likewise.
33793 * kern/env.c (grub_env_context_open): Likewise.
33794 (grub_env_set): Likewise.
33795 (grub_env_set_data_slot): Likewise.
33796 * kern/file.c (grub_file_open): Likewise.
33797 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33798 * loader/i386/multiboot.c (grub_module): Likewise.
33799 * loader/xnu.c (grub_xnu_create_key): Likewise.
33800 (grub_xnu_create_value): Likewise.
33801 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33802 (read_config_file): Likewise.
33803 * normal/menu_entry.c (make_screen): Likewise.
33804 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33805 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33806 * script/sh/script.c (grub_script_parse): Likewise.
33807 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33808 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33809 * video/readers/png.c (grub_png_output_byte): Likewise.
33810 (grub_video_reader_png): Likewise.
33812 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33814 Enable all targets that can be built by default
33816 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
33817 grub-mkfont and grub-fstest if they can be built
33819 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33821 Fix hang and segmentation fault in grub-emu-usb
33823 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33824 * util/usb.c (grub_libusb_devices): likewise
33825 (grub_libusb_init): rename to ...
33826 (GRUB_MOD_INIT (libusb)):...this
33827 (grub_libusb_fini): rename to ..
33828 (GRUB_MOD_FINI (libusb)):...this
33829 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33830 * include/grub/disk.h (grub_raid_init): removed, it's useless
33831 (grub_raid_fini): likewise
33832 (grub_lvm_init): likewise
33833 (grub_lvm_fini): likewise
33834 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33837 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33841 * Makefile.in (LIBUSB): new macro
33842 * genmk.rb (Utility/print_tail): new method
33843 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33844 (top level): call util.print_tail at the end.
33846 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33848 Make FreeBSD accept zpool.cache
33850 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33851 type is /boot/zfs/zpool.cache
33853 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33857 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33858 correct wrong typedef
33859 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33861 2009-07-15 Pavel Roskin <proski@gnu.org>
33863 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33864 * kern/disk.c (struct grub_disk_cache): Likewise.
33866 * commands/probe.c (options): Typo fix.
33868 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33869 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33871 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33873 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33874 the end of "Error" to make the message more readable.
33876 * boot/i386/pc/boot.S (kernel_segment): Remove.
33877 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33880 * boot/i386/pc/boot.S (boot_version): Remove.
33881 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33884 * include/grub/i386/pc/boot.h: Sort all offsets.
33885 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33886 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33887 * boot/i386/pc/boot.S: Assert location of every offset listed in
33888 include/grub/i386/pc/boot.h.
33890 2009-07-13 Pavel Roskin <proski@gnu.org>
33892 * include/grub/i386/coreboot/machine.h: Rename
33893 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33894 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33895 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33897 * kern/dl.c: Force native word size to suppress warnings when
33898 compiling grub-emu.
33900 * kern/device.c (grub_device_iterate): Change struct part_ent to
33901 hold the name, not a pointer to it. Use one grub_malloc() per
33902 partition, not two. Free partition_name if grub_malloc() fails.
33903 Set ents to NULL only before grub_partition_iterate() is called.
33905 2009-07-11 Bean <bean123ch@gmail.com>
33907 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33910 2009-07-10 Bean <bean123ch@gmail.com>
33911 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33913 * kern/ieee1275/openfw.c (grub_children_iterate)
33914 (grub_devalias_iterate): Fix size evaluation for property or path
33915 strings, which was broken since r2132.
33917 2009-07-07 Pavel Roskin <proski@gnu.org>
33919 * commands/search.c (search_file): Merge into ...
33920 (search_fs): ... this. Accept search type as argument.
33921 (grub_cmd_search): Pass search type to search_fs().
33923 * include/grub/util/console.h: New file.
33924 * util/console.c: Use it instead of grub/machine/console.h.
33925 * util/grub-emu.c: Likewise.
33927 * lib/arg.c (find_long_option): Remove.
33928 (find_long): Add `len' argument, make `s' const char *.
33929 (grub_arg_parse): Parse long options in place, not in a
33932 2009-07-06 Pavel Roskin <proski@gnu.org>
33934 * commands/search.c (search_fs): Fix potential NULL pointer
33937 * commands/search.c (search_fs): Replace QUID macro with quid_fn
33940 2009-07-06 Daniel Mierswa <impulze@impulze.org>
33942 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
33945 2009-07-05 Pavel Roskin <proski@gnu.org>
33947 * include/grub/i386/linux.h (struct linux_kernel_params):
33948 Restore padding3, it's still needed.
33950 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
33952 * util/osdetect.lua: Likewise.
33954 2009-07-05 Bean <bean123ch@gmail.com>
33956 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
33958 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
33959 (grub_lua_getenv): Likewise.
33960 (grub_lua_setenv): Likewise.
33961 (save_errno): New function.
33962 (push_result): Likewise.
33963 (grub_lua_enum_device): Likewise.
33964 (grub_lua_enum_file): Likewise.
33965 (grub_lua_file_open): Likewise.
33966 (grub_lua_file_close): Likewise.
33967 (grub_lua_file_seek): Likewise.
33968 (grub_lua_file_read): Likewise.
33969 (grub_lua_file_getline): Likewise.
33970 (grub_lua_file_getsize): Likewise.
33971 (grub_lua_file_getpos): Likewise.
33972 (grub_lua_file_eof): Likewise.
33973 (grub_lua_file_exist): Likewise.
33974 (grub_lua_add_menu): Likewise.
33976 * script/lua/grub_lua.h (isupper): New inline function.
33977 (islower): Likewise.
33978 (ispunct): Likewise.
33979 (isxdigit): Likewise.
33980 (strcspn): Change to normal function.
33981 (strpbkr): New function declaration.
33982 (memchr): Likewise.
33984 * script/lua/grub_main.c (scan_str): New function.
33985 (strcspn): Likewise.
33986 (strpbrk): Likewise.
33987 (memchr): Likewise.
33989 * script/lua/linit.c (lualibs): Enable the string library.
33991 * util/osdetect.lua: New file.
33993 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
33995 * include/grub/i386/linux.h (struct linux_kernel_params): Add
33996 `capabilities' member.
33998 2009-07-02 Pavel Roskin <proski@gnu.org>
34000 * genparttoollist.sh: Add missing newline at the end.
34002 2009-07-01 Pavel Roskin <proski@gnu.org>
34004 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
34006 * util/hostdisk.c (open_device): Remove `const' from
34007 `sysctl_size', as sysctlbyname() can change it (in this case it
34008 doesn't actually happen).
34010 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
34011 using signed long int constants.
34013 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
34014 constant to avoid a warning on FreeBSD.
34016 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
34019 * Makefile.in: Install include/grub/machine symlink.
34021 * Makefile.in: When installing symlinks, use "cp -fR", which
34022 works on FreeBSD and MacOSX.
34023 From Yves Blusseau <cl7m42e02@sneakemail.com>
34025 * kern/dl.c (grub_dl_resolve_symbol): Make static.
34026 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
34028 * util/misc.c: Move grub_reboot() and grub_halt() ...
34029 * util/grub-emu.c: ... here. Make main_env static.
34030 * include/grub/util/misc.h: Remove main_env.
34032 * kern/mm.c: Use correct format to print size_t.
34034 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
34035 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
34036 * kern/powerpc/dl.c: Likewise.
34037 * kern/sparc64/dl.c: Likewise.
34038 * kern/x86_64/dl.c: Likewise.
34040 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34042 Fix grub-emu build on sparc64-ieee1275.
34044 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
34045 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
34047 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34049 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
34050 (grub_reboot, grub_halt): New functions.
34052 * util/i386/pc/misc.c: Delete. Update all users.
34053 * util/sparc64/ieee1275/misc.c: Likewise.
34054 * util/powerpc/ieee1275/misc.c: Likewise.
34056 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34058 * conf/i386.rmk (setjmp_mod_SOURCES)
34059 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
34060 * conf/common.rmk (setjmp_mod_SOURCES)
34061 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
34062 to use $(target_cpu).
34063 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
34064 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
34065 * conf/powerpc-ieee1275.rmk: Likewise.
34066 * conf/sparc64-ieee1275.rmk: Likewise.
34068 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
34069 $(target_cpu) for kern/$(target_cpu)/dl.c.
34070 * conf/i386-efi.rmk: Likewise.
34071 * conf/i386-ieee1275.rmk: Likewise.
34072 * conf/x86_64-efi.rmk: Likewise.
34073 * conf/i386-coreboot.rmk: Likewise.
34074 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
34075 $(target_cpu) for kern/$(target_cpu)/dl.c and for
34076 kern/$(target_cpu)/cache.S.
34077 * conf/sparc64-ieee1275.rmk: Likewise.
34079 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34081 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
34082 type to `grub_uint8_t', and adjust `padding9' accordingly.
34084 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34086 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
34088 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
34089 assembly in final jump, using register constraints.
34091 (grub_linux_boot): For text mode, initialize `have_vga' using
34092 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
34094 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
34095 right before the final jump.
34097 Set `video_mode' to 0x3.
34099 Document initialization of `video_page', `video_mode' and
34102 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34104 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
34105 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
34106 and set GRUB_LINUX_FLAG_QUIET appropriately.
34108 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34110 Fix build on Debian / sparc.
34112 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
34114 2009-06-28 Pavel Roskin <proski@gnu.org>
34116 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
34119 * util/grub.d/10_linux.in: Match SUSE style initrd names.
34121 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34123 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
34126 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34130 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
34131 file can't be opened. grub_file_open() is already supposed to set
34132 grub_errno / grub_errmsg appropriately.
34133 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34135 2009-06-27 Pavel Roskin <proski@gnu.org>
34136 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34138 * include/grub/dl.h: Include grub/elf.h.
34139 (struct grub_dl): Add symtab field.
34140 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
34141 GRUB_MODULES_MACHINE_READONLY.
34142 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
34143 of the header for read-only modules.
34144 (grub_dl_unload): Free mod->symtab for read-only modules.
34145 * kern/i386/dl.c: Use mod->symtab.
34146 * kern/powerpc/dl.c: Likewise.
34147 * kern/sparc64/dl.c: Likewise.
34148 * kern/x86_64/dl.c: Likewise.
34150 * conf/i386-qemu.rmk: New file.
34151 * kern/i386/qemu/startup.S: Likewise.
34152 * kern/i386/qemu/mmap.c: Likewise.
34153 * boot/i386/qemu/boot.S: Likewise.
34154 * include/grub/i386/qemu/time.h: Likewise.
34155 * include/grub/i386/qemu/serial.h: Likewise.
34156 * include/grub/i386/qemu/kernel.h: Likewise.
34157 * include/grub/i386/qemu/console.h: Likewise.
34158 * include/grub/i386/qemu/boot.h: Likewise.
34159 * include/grub/i386/qemu/init.h: Likewise.
34160 * include/grub/i386/qemu/machine.h: Likewise.
34161 * include/grub/i386/qemu/loader.h: Likewise.
34162 * include/grub/i386/qemu/memory.h: Likewise.
34164 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
34165 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
34166 [qemu] (pkglib_IMAGES): Add `boot.img'.
34167 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
34168 [qemu] (boot_img_FORMAT): New variables.
34169 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
34170 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
34171 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
34172 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
34173 [qemu] (kernel_img_FORMAT): New variables.
34175 * configure.ac: Recognise `i386-qemu'.
34177 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
34178 (for no compression).
34179 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
34180 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
34181 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
34182 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
34185 2009-06-27 Pavel Roskin <proski@gnu.org>
34187 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
34189 * efiemu/prepare32.c: Likewise.
34190 * efiemu/prepare64.c: Likewise.
34192 2009-06-26 Pavel Roskin <proski@gnu.org>
34194 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
34195 * include/grub/elf.h: Define symbols without "32" or "64" based
34196 on GRUB_TARGET_WORDSIZE.
34197 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
34198 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
34200 * efiemu/loadcore64.c: Likewise.
34201 * loader/i386/bsd32.c: Likewise.
34202 * loader/i386/bsd64.c: Likewise.
34203 * kern/dl.c: Remove own ELF definitions.
34204 * util/i386/efi/grub-mkimage.c: Likewise.
34206 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
34208 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
34209 segment 0x0 unconditionally, because the reference generated by
34210 GAS is an absolute address.
34212 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34214 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
34215 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
34217 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34219 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
34220 indexes. Check for -f explicitly.
34221 (search_file): Improve error message.
34222 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
34224 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34226 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
34227 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
34229 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34231 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
34232 * conf/i386-ieee1275.rmk: Likewise.
34233 * conf/i386-coreboot.rmk: Likewise.
34235 * kern/i386/pc/startup.S (grub_stop): Remove function.
34236 * kern/i386/ieee1275/startup.S: Likewise.
34237 * kern/i386/coreboot/startup.S: Likewise.
34238 * kern/i386/misc.S (grub_stop): New function.
34240 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34242 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
34243 * kern/i386/realmode.S (real_to_prot): ... to here.
34245 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34247 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
34249 (kernel_elf_SOURCES): Rename to ...
34250 (kernel_img_SOURCES): ... this.
34251 (kernel_elf_HEADERS): Rename to ...
34252 (kernel_img_HEADERS): ... this. Update all users.
34253 (kernel_elf_ASFLAGS): Rename to ...
34254 (kernel_img_ASFLAGS): ... this.
34255 (kernel_elf_CFLAGS): Rename to ...
34256 (kernel_img_CFLAGS): ... this.
34257 (kernel_elf_LDFLAGS): Rename to ...
34258 (kernel_img_LDFLAGS): ... this.
34259 * conf/i386-coreboot.rmk: Likewise.
34260 * conf/powerpc-ieee1275.rmk: Likewise.
34262 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
34265 2009-06-21 Pavel Roskin <proski@gnu.org>
34267 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
34268 to match nested functions.
34269 * loader/sparc64/ieee1275/linux.c: Likewise.
34271 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
34273 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34275 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
34276 all i386 platforms.
34278 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34280 Fix asm file handling on ELF, and remove workarounds.
34282 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
34283 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
34284 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
34285 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
34287 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
34289 Load BSD ELF modules
34291 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
34292 and loader/i386/bsd64.c
34293 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
34294 (FREEBSD_MODTYPE_ELF_MODULE): New definition
34295 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
34296 (grub_freebsd_load_elfmodule32): New declaration
34297 (grub_freebsd_load_elfmoduleobj64): Likewise
34298 (grub_freebsd_load_elf_meta32): Likewise
34299 (grub_freebsd_load_elf_meta64): Likewise
34300 (grub_freebsd_add_meta): Likewise
34301 (grub_freebsd_add_meta_module): Likewise
34302 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
34303 (grub_freebsd_add_meta_module): Likewise and move module-specific
34304 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
34305 (grub_cmd_freebsd): Add elf-kernel specific parts
34306 based on grub_freebsd_add_meta_module
34307 (grub_cmd_freebsd_module): Add type parsing moved from
34308 grub_freebsd_add_meta_module
34309 (grub_cmd_freebsd_module_elf): New function
34310 (cmd_freebsd_module_elf): New variable
34311 (GRUB_MOD_INIT): Register freebsd_module_elf
34312 * loader/i386/bsd32.c: New file
34313 * loader/i386/bsd64.c: Likewise
34314 * loader/i386/bsdXX.c: Likewise
34315 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
34316 (grub_elf64_load): Likewise
34317 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
34319 (grub_elf64_load_hook_t): Likewise
34321 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
34323 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
34325 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
34326 don't write a menu entry for recovery mode.
34328 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34330 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
34331 after it's no longer needed.
34333 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34335 * include/grub/i386/loader.h (grub_linux_prot_size)
34336 (grub_linux_tmp_addr, grub_linux_real_addr)
34337 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
34338 GRUB_MACHINE_PCBIOS.
34339 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
34340 common grub_util_info() call to ...
34341 (generate_image): ... here.
34342 Fix use of uninitialized memory, comparison of signed with
34343 unsigned integers and memory leak.
34344 Remove bogus module address message.
34346 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
34348 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
34350 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
34352 2009-06-19 Pavel Roskin <proski@gnu.org>
34354 * configure.ac: Remove stray AC_MSG_CHECKING.
34356 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
34358 * disk/scsi.c (grub_scsi_open): use continue instead of big if
34360 2009-06-18 Pavel Roskin <proski@gnu.org>
34362 * conf/common.rmk: Add fs_file.mod.
34363 * disk/fs_file.c: New file.
34364 * include/grub/disk.h (enum grub_disk_dev_id): Add
34365 GRUB_DISK_DEVICE_FILE_ID.
34367 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34369 Fix build with Apple's toolchain. Part 2
34371 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
34374 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34376 Fix build with Apple's toolchain. Part 1
34378 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
34380 * configure.ac: remove a leftover AC_MSG_RESULT
34381 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
34384 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34388 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
34389 (decomp_block): initialize ch
34390 use grub_memcpy instead of memcpy
34392 2009-06-17 Pavel Roskin <proski@gnu.org>
34394 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
34395 version, use declarations needed to use vga_text as the startup
34398 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
34399 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
34401 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
34402 and grub_at_keyboard_fini(), it's done on module load and
34405 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
34407 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
34408 file can't be found.
34409 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34411 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34413 Fix newline handling
34415 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
34416 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
34417 (grub_script_yylex): don't segfault on unterminated script
34418 newline terminates command and variable
34420 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34422 avoid double grub_adjust_range call. Bug reported by David Simner
34424 * kern/disk.c (grub_disk_write): change to raw disk access before
34427 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
34429 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
34430 spaces, for the benefit of help2man.
34431 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34433 2009-06-16 Pavel Roskin <proski@gnu.org>
34435 * kern/i386/halt.c: Include grub/machine/init.h.
34436 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
34438 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
34440 * util/grub.d/30_os-prober.in: Use ${root} in the generated
34441 drivemap menuentry.
34443 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
34445 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
34448 2009-06-16 Pavel Roskin <proski@gnu.org>
34450 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
34451 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
34452 save %dx, we only need %dl and we never change it.
34453 * boot/i386/pc/cdboot.S: Don't set the root drive.
34454 * boot/i386/pc/pxeboot.S: Likewise.
34455 * include/grub/i386/pc/boot.h: Remove
34456 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
34457 GRUB_BOOT_MACHINE_DRIVE_CHECK.
34458 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
34459 * kern/i386/pc/init.c (make_install_device): Remove references
34460 to grub_root_drive.
34461 * kern/i386/pc/startup.S: Likewise.
34462 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
34464 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34468 * commands/xnu_uuid.c: new file
34469 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
34470 (xnu_uuid_mod_SOURCES): new variable
34471 (xnu_uuid_mod_CFLAGS): likewise
34472 (xnu_uuid_mod_LDFLAGS): likewise
34473 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34474 * conf/i386-ieee1275.rmk: likewise
34475 * conf/i386-pc.rmk: likewise
34476 * conf/powerpc-ieee1275.rmk: likewise
34477 * conf/sparc64-ieee1275.rmk: likewise
34478 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
34480 2009-06-16 Pavel Roskin <proski@gnu.org>
34482 * configure.ac: Avoid '==' in test command, it's not portable.
34484 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34488 * commands/probe.c: new file
34489 * conf/common.rmk (pkglib_MODULES): add probe.mod
34490 (probe_mod_SOURCES): new variable
34491 (probe_mod_CFLAGS): likewise
34492 (probe_mod_LDFLAGS): likewise
34493 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34494 * conf/i386-ieee1275.rmk: likewise
34495 * conf/i386-pc.rmk: likewise
34496 * conf/powerpc-ieee1275.rmk: likewise
34497 * conf/sparc64-ieee1275.rmk: likewise
34499 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
34501 Fix handling of string like \"hello\" and "a
34504 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
34505 (grub_script_yylex): fix parsing of quoting, escaping and newline
34507 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
34509 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
34512 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
34514 * util/grub-mkconfig.in: Fix parsing of --output option.
34516 2009-06-12 Pavel Roskin <proski@gnu.org>
34518 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
34519 genmk.rb don't need to be generated or installed.
34521 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
34523 * commands/i386/pc/drivemap_int13h.S: add more comments
34525 2009-06-11 Pavel Roskin <proski@gnu.org>
34527 * Makefile.in (uninstall): Uninstall manuals.
34529 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
34530 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
34531 and update-grub_lib in two places.
34532 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
34534 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
34535 a compiler warning.
34537 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
34538 `entry_lo' to fix variable shadowing.
34540 2009-06-11 Christian Franke <franke@computer.org>
34542 * kern/misc.c (__enable_execute_stack): Add missing return type
34543 to prevent gcc warning.
34545 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
34547 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
34549 2009-06-11 Pavel Roskin <proski@gnu.org>
34551 * Makefile.in: Don't rely on any scripts being executable.
34552 Always use $(SHELL) to run shell scripts.
34554 * configure.ac: Always define ___main if using -nostdlib. This
34555 fixes tests on Cygwin.
34557 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
34561 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
34562 is in bytes and not in blocks
34564 2009-06-11 Pavel Roskin <proski@gnu.org>
34566 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
34569 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
34571 * util/grub.d/30_os-prober.in: Fix a comment. Source
34572 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
34573 to set the root device. Place drivemap command in the generated
34576 2009-06-11 Pavel Roskin <proski@gnu.org>
34578 * configure.ac: Remove host_m32. Issues with 64-bit utilities
34579 have long been resolved.
34581 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
34583 * util/grub.d/10_linux.in: Capitalise "Linux".
34585 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
34587 2009-06-11 Pavel Roskin <proski@gnu.org>
34589 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
34590 fix a gcc warning and ensure that the function won't ever exit.
34592 * kern/i386/ieee1275/init.c: Add missing prototype for
34593 grub_stop_floppy().
34595 * loader/ieee1275/multiboot2.c [__i386__]: Include
34596 grub/cpu/multiboot.h.
34598 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
34599 casts to short - they are not portable and cause warnings. Fix
34600 use of uninitialized values in input_buf. Use ARRAY_SIZE.
34602 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
34606 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
34608 (grub_get_root_biosnumber_saved): new variable
34609 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
34610 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
34611 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
34612 %dx after the call if necessary
34613 * conf/common.rmk (pkglib_MODULES): remove boot.mod
34614 (boot_mod_SOURCES): remove
34615 (boot_mod_CFLAGS): remove
34616 (boot_mod_LDFLAGS): remove
34617 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
34618 (boot_mod_SOURCES): new variable
34619 (boot_mod_CFLAGS): likewise
34620 (boot_mod_LDFLAGS): likewise
34621 * conf/i386-efi.rmk: likewise
34622 * conf/i386-ieee1275.rmk: likewise
34623 * conf/i386-pc.rmk: likewise
34624 * conf/powerpc-ieee1275.rmk: likewise
34625 * conf/sparc64-ieee1275.rmk: likewise
34626 * conf/x86_64-efi.rmk: likewise
34627 * include/grub/i386/pc/biosnum.h: new file
34628 * lib/i386/pc/biosnum.c: likewise
34629 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
34630 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
34631 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
34633 2009-06-10 Pavel Roskin <proski@gnu.org>
34635 * io/gzio.c (test_header): Don't reuse one buffer for all data.
34636 Use separate variables. Read only the file size at the end, but
34637 not the checksum that we don't use.
34639 * kern/file.c (grub_file_read): Use void pointer for the buffer.
34640 Adjust all callers.
34642 * kern/ieee1275/openfw.c: Remove libc includes.
34643 * kern/ieee1275/cmain.c: Likewise.
34644 * include/grub/ieee1275/ieee1275.h: Likewise.
34646 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
34649 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
34651 * Makefile.in: Remove all trailing whitespace.
34652 * conf/i386-pc.rmk: Likewise.
34653 * conf/powerpc-ieee1275.rmk: Likewise.
34654 * conf/sparc64-ieee1275.rmk: Likewise.
34655 * docs/grub.texi: Likewise.
34656 * docs/texinfo.tex: Likewise.
34657 * disk/fs_uuid.c: Likewise.
34658 * disk/lvm.c: Likewise.
34659 * disk/scsi.c: Likewise.
34660 * disk/ata.c: Likewise.
34661 * disk/ieee1275/ofdisk.c: Likewise.
34662 * disk/i386/pc/biosdisk.c: Likewise.
34663 * disk/host.c: Likewise.
34664 * disk/raid.c: Likewise.
34665 * disk/efi/efidisk.c: Likewise.
34666 * disk/usbms.c: Likewise.
34667 * disk/memdisk.c: Likewise.
34668 * disk/loopback.c: Likewise.
34669 * kern/powerpc/dl.c: Likewise.
34670 * kern/device.c: Likewise.
34671 * kern/dl.c: Likewise.
34672 * kern/sparc64/dl.c: Likewise.
34673 * kern/ieee1275/ieee1275.c: Likewise.
34674 * kern/term.c: Likewise.
34675 * kern/fs.c: Likewise.
34676 * kern/i386/dl.c: Likewise.
34677 * kern/i386/pc/startup.S: Likewise.
34678 * kern/i386/pc/init.c: Likewise.
34679 * kern/i386/pc/mmap.c: Likewise.
34680 * kern/i386/pc/lzo1x.S: Likewise.
34681 * kern/i386/ieee1275/init.c: Likewise.
34682 * kern/i386/realmode.S: Likewise.
34683 * kern/i386/tsc.c: Likewise.
34684 * kern/partition.c: Likewise.
34685 * kern/corecmd.c: Likewise.
34686 * kern/file.c: Likewise.
34687 * kern/efi/efi.c: Likewise.
34688 * kern/efi/init.c: Likewise.
34689 * kern/efi/mm.c: Likewise.
34690 * kern/main.c: Likewise.
34691 * kern/err.c: Likewise.
34692 * kern/env.c: Likewise.
34693 * kern/disk.c: Likewise.
34694 * kern/generic/millisleep.c: Likewise.
34695 * kern/generic/rtc_get_time_ms.c: Likewise.
34696 * kern/misc.c: Likewise.
34697 * kern/parser.c: Likewise.
34698 * genmk.rb: Likewise.
34699 * configure.ac: Likewise.
34700 * boot/i386/pc/diskboot.S: Likewise.
34701 * boot/i386/pc/pxeboot.S: Likewise.
34702 * boot/i386/pc/boot.S: Likewise.
34703 * boot/i386/pc/lnxboot.S: Likewise.
34704 * boot/i386/pc/cdboot.S: Likewise.
34705 * parttool/pcpart.c: Likewise.
34706 * video/readers/tga.c: Likewise.
34707 * video/video.c: Likewise.
34708 * video/bitmap.c: Likewise.
34709 * lib/envblk.c: Likewise.
34710 * lib/i386/setjmp.S: Likewise.
34711 * fs/xfs.c: Likewise.
34712 * fs/afs.c: Likewise.
34713 * fs/fat.c: Likewise.
34714 * fs/ntfs.c: Likewise.
34715 * fs/udf.c: Likewise.
34716 * fs/affs.c: Likewise.
34717 * fs/iso9660.c: Likewise.
34718 * fs/hfs.c: Likewise.
34719 * fs/fshelp.c: Likewise.
34720 * fs/ext2.c: Likewise.
34721 * fs/jfs.c: Likewise.
34722 * fs/reiserfs.c: Likewise.
34723 * fs/hfsplus.c: Likewise.
34724 * fs/minix.c: Likewise.
34725 * fs/cpio.c: Likewise.
34726 * fs/sfs.c: Likewise.
34727 * fs/ufs.c: Likewise.
34728 * efiemu/prepare.c: Likewise.
34729 * efiemu/loadcore_common.c: Likewise.
34730 * efiemu/runtime/efiemu.sh: Likewise.
34731 * efiemu/runtime/efiemu.S: Likewise.
34732 * efiemu/runtime/efiemu.c: Likewise.
34733 * efiemu/pnvram.c: Likewise.
34734 * efiemu/main.c: Likewise.
34735 * efiemu/i386/pc/cfgtables.c: Likewise.
34736 * efiemu/i386/loadcore64.c: Likewise.
34737 * efiemu/i386/loadcore32.c: Likewise.
34738 * efiemu/loadcore.c: Likewise.
34739 * efiemu/symbols.c: Likewise.
34740 * efiemu/mm.c: Likewise.
34741 * include/grub/autoefi.h: Likewise.
34742 * include/grub/datetime.h: Likewise.
34743 * include/grub/term.h: Likewise.
34744 * include/grub/hfs.h: Likewise.
34745 * include/grub/lvm.h: Likewise.
34746 * include/grub/i386/tsc.h: Likewise.
34747 * include/grub/i386/linux.h: Likewise.
34748 * include/grub/i386/xnu.h: Likewise.
34749 * include/grub/i386/efiemu.h: Likewise.
34750 * include/grub/i386/pc/biosdisk.h: Likewise.
34751 * include/grub/i386/pc/memory.h: Likewise.
34752 * include/grub/i386/pc/vbe.h: Likewise.
34753 * include/grub/parttool.h: Likewise.
34754 * include/grub/video.h: Likewise.
34755 * include/grub/memory.h: Likewise.
34756 * include/grub/fs.h: Likewise.
34757 * include/grub/partition.h: Likewise.
34758 * include/grub/xnu.h: Likewise.
34759 * include/grub/efi/api.h: Likewise.
34760 * include/grub/efi/pe32.h: Likewise.
34761 * include/grub/efi/memory.h: Likewise.
34762 * include/grub/multiboot.h: Likewise.
34763 * include/grub/usbdesc.h: Likewise.
34764 * include/grub/multiboot2.h: Likewise.
34765 * include/grub/acpi.h: Likewise.
34766 * include/grub/efiemu/efiemu.h: Likewise.
34767 * include/grub/disk.h: Likewise.
34768 * include/grub/ieee1275/ieee1275.h: Likewise.
34769 * include/grub/net.h: Likewise.
34770 * include/grub/machoload.h: Likewise.
34771 * include/grub/macho.h: Likewise.
34772 * include/multiboot.h: Likewise.
34773 * genmoddep.awk: Likewise.
34774 * normal/main.c: Likewise.
34775 * normal/menu_entry.c: Likewise.
34776 * normal/menu_viewer.c: Likewise.
34777 * normal/completion.c: Likewise.
34778 * normal/cmdline.c: Likewise.
34779 * normal/misc.c: Likewise.
34780 * normal/datetime.c: Likewise.
34781 * bus/usb/usbtrans.c: Likewise.
34782 * bus/usb/ohci.c: Likewise.
34783 * bus/usb/uhci.c: Likewise.
34784 * bus/usb/usb.c: Likewise.
34785 * mmap/efi/mmap.c: Likewise.
34786 * mmap/i386/pc/mmap_helper.S: Likewise.
34787 * mmap/i386/pc/mmap.c: Likewise.
34788 * mmap/i386/mmap.c: Likewise.
34789 * mmap/i386/uppermem.c: Likewise.
34790 * mmap/mmap.c: Likewise.
34791 * commands/acpi.c: Likewise.
34792 * commands/echo.c: Likewise.
34793 * commands/blocklist.c: Likewise.
34794 * commands/loadenv.c: Likewise.
34795 * commands/usbtest.c: Likewise.
34796 * commands/boot.c: Likewise.
34797 * commands/parttool.c: Likewise.
34798 * commands/search.c: Likewise.
34799 * commands/cat.c: Likewise.
34800 * commands/i386/pc/play.c: Likewise.
34801 * commands/i386/pc/drivemap.c: Likewise.
34802 * commands/i386/pc/vbeinfo.c: Likewise.
34803 * commands/i386/pc/acpi.c: Likewise.
34804 * commands/i386/pc/vbetest.c: Likewise.
34805 * commands/ls.c: Likewise.
34806 * commands/cmp.c: Likewise.
34807 * commands/test.c: Likewise.
34808 * commands/efi/acpi.c: Likewise.
34809 * commands/gptsync.c: Likewise.
34810 * commands/help.c: Likewise.
34811 * partmap/amiga.c: Likewise.
34812 * partmap/apple.c: Likewise.
34813 * partmap/acorn.c: Likewise.
34814 * partmap/pc.c: Likewise.
34815 * partmap/sun.c: Likewise.
34816 * partmap/gpt.c: Likewise.
34817 * script/sh/lexer.c: Likewise.
34818 * script/sh/function.c: Likewise.
34819 * font/font.c: Likewise.
34820 * font/font_cmd.c: Likewise.
34821 * loader/powerpc/ieee1275/linux.c: Likewise.
34822 * loader/efi/chainloader.c: Likewise.
34823 * loader/multiboot_loader.c: Likewise.
34824 * loader/macho.c: Likewise.
34825 * loader/i386/multiboot.c: Likewise.
34826 * loader/i386/linux.c: Likewise.
34827 * loader/i386/pc/linux.c: Likewise.
34828 * loader/i386/pc/multiboot2.c: Likewise.
34829 * loader/i386/pc/chainloader.c: Likewise.
34830 * loader/i386/pc/xnu.c: Likewise.
34831 * loader/i386/bsd_trampoline.S: Likewise.
34832 * loader/i386/efi/linux.c: Likewise.
34833 * loader/i386/multiboot_elfxx.c: Likewise.
34834 * loader/i386/bsd_helper.S: Likewise.
34835 * loader/i386/bsd.c: Likewise.
34836 * loader/i386/linux_trampoline.S: Likewise.
34837 * loader/i386/xnu_helper.S: Likewise.
34838 * loader/i386/xnu.c: Likewise.
34839 * loader/i386/bsd_pagetable.c: Likewise.
34840 * loader/i386/multiboot_helper.S: Likewise.
34841 * loader/xnu.c: Likewise.
34842 * loader/xnu_resume.c: Likewise.
34843 * io/gzio.c: Likewise.
34844 * term/efi/console.c: Likewise.
34845 * term/terminfo.c: Likewise.
34846 * term/ieee1275/ofconsole.c: Likewise.
34847 * term/i386/pc/serial.c: Likewise.
34848 * term/i386/pc/vesafb.c: Likewise.
34849 * term/i386/pc/vga.c: Likewise.
34850 * term/usb_keyboard.c: Likewise.
34851 * term/gfxterm.c: Likewise.
34852 * aclocal.m4: Likewise.
34853 * util/lvm.c: Likewise.
34854 * util/grub.d/30_os-prober.in: Likewise.
34855 * util/grub.d/10_hurd.in: Likewise.
34856 * util/console.c: Likewise.
34857 * util/grub-macho2img.c: Likewise.
34858 * util/grub-probe.c: Likewise.
34859 * util/hostfs.c: Likewise.
34860 * util/i386/pc/grub-mkimage.c: Likewise.
34861 * util/i386/pc/grub-setup.c: Likewise.
34862 * util/i386/efi/grub-mkimage.c: Likewise.
34863 * util/grub-mkconfig.in: Likewise.
34864 * util/raid.c: Likewise.
34865 * util/resolve.c: Likewise.
34866 * util/grub-mkdevicemap.c: Likewise.
34867 * util/grub-emu.c: Likewise.
34868 * util/getroot.c: Likewise.
34869 * util/hostdisk.c: Likewise.
34870 * util/usb.c: Likewise.
34871 * util/grub-editenv.c: Likewise.
34872 * util/misc.c: Likewise.
34874 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
34876 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34877 `genparttoollist.sh'.
34878 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34879 Add `*.sh' to the list find searches for and change `mdate.sh'
34882 2009-06-10 Pavel Roskin <proski@gnu.org>
34884 * include/grub/multiboot2.h: Provide compatibility defines for
34886 * include/multiboot2.h: Include stdint.h only if needed, using
34888 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34890 * loader/ieee1275/multiboot2.c: Likewise.
34891 * loader/multiboot2.c: Likewise.
34892 * loader/multiboot_loader.c: Likewise.
34894 * configure.ac: Use -nostdlib when probing for the target. It
34895 should not be required to have libc for the target.
34897 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34898 they fail without libc headers for the target.
34899 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34901 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34902 preprocessor conditionals.
34904 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34905 build system doesn't need to be aware of the tar.c internals.
34907 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
34909 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
34911 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34913 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34914 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34916 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
34918 * util/i386/pc/grub-install.in: Change the error message if UUIDs
34919 aren't available if ata.mod gets used.
34921 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
34923 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
34924 initialising controller.
34925 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34927 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34929 * util/i386/pc/grub-install.in: Add a parameter --disk-module
34930 to choose between ata and biosdisk module on i386-pc.
34932 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
34934 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
34935 Subclass and Programming Interface fields in terms of the 3 byte
34936 Class Code register.
34937 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34939 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
34940 interface is OHCI. Add grub_dprintf for symmetry with
34942 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
34943 interface is UHCI. Add interf variable for programming
34944 interface. Print interface with class/subclass.
34946 * bus/usb/ohci.c: Set interf with correct field.
34948 * bus/usb/uhci.c: Remove unneeded doubled lines.
34949 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
34950 Remove whitespace inside comment.
34952 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
34954 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
34955 as fallback an equivalent option without depth.
34957 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34959 Not fail if unable to retrieve C/H/S on LBA disks
34961 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
34962 if unable to retrieve C/H/S on LBA disks
34964 2009-06-08 Pavel Roskin <proski@gnu.org>
34966 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
34969 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34971 * Makefile.in (uninstall): Remove all $lib_DATA files.
34973 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34975 Bugfix: install on partitionless device
34977 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
34980 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34982 * Makefile.in (uninstall): Remove all $include_DATA files.
34984 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34986 * commands/true.c: New file. Implement the true and false commands.
34987 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
34988 (true_mod_SOURCES): New variable.
34989 (true_mod_CFLAGS): Likewise.
34990 (true_mod_LDFLAGS): Likewise.
34992 2009-06-05 Colin D Bennett <colin@gibibit.com>
34994 Optimized font character lookup using binary search instead of linear
34995 search. Fonts now are required to have the character index ordered by
34998 * font/font.c (load_font_index): Verify that fonts have ordered
35000 (find_glyph): Use binary search instead of linear search to find a
35001 character in a font.
35003 2009-06-05 Michael Scherer <misc@mandriva.org>
35005 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
35006 uses case sensitive btree.
35007 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
35008 only for case insensitive filesystems.
35010 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
35012 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
35013 * conf/common.rmk (search_mod_CFLAGS): likewise
35015 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35017 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
35018 compensate a compiler bug
35020 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35022 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
35025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35027 Definitions for creating asm symbols with Apple's CC
35029 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
35030 [APPLE_CC] (VARIABLE): likewise
35032 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35034 Disable lnxboot.img when compiled
35037 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
35038 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
35039 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
35040 [! APPLE_CC] (CODE_LENG): skip
35041 [! APPLE_CC] (setup_sects): likewise
35042 [! APPLE_CC]: skip filling
35044 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35046 Address in trampolines based on 32-bit registers when compiled
35049 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
35051 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
35053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35055 Avoid aliases when compiling with Apple's CC for PCBIOS machine
35057 * kern/misc.c [APPLE_CC] (memcpy): new function
35058 [APPLE_CC] (memmove): likewise
35059 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
35060 (memcpy): define alias conditionally on !APPLE_CC
35063 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
35064 APPLE_CC are defined
35065 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
35066 (grub_assert_fail): make prototype conditional
35068 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35070 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
35072 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
35074 (CLEANFILES): add grub-macho2img
35075 (grub_macho2img_SOURCES): new variable
35076 * kern/i386/pc/startup.S (bss_start): new variable
35077 (bss_end): likewise
35078 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
35079 * util/grub-macho2img.c: new file
35081 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35083 Use objconv when compiling with Apple's CC
35085 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
35086 (efiemu64.o): likewise
35087 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
35088 when compiling with Apple's CC
35089 (efiemu64_s.o): likewise
35090 * configure.ac: check for objconv when compiling with Apple's CC
35091 * genmk.rb: use objconv for modules when compiled with Apple's CC
35093 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35095 Define segment as well as section when compiling with
35098 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
35099 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
35100 (efiemu_convert_pointer): likewise
35101 (efiemu_set_virtual_address_map): likewise
35102 (efiemu_convert_pointer): likewise
35103 (efiemu_getcrc32): likewise
35104 (init_crc32_table): likewise
35105 (reflect): likewise
35106 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
35107 (GRUB_MOD_DEP): likewise
35109 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35111 Allow a compilation without -mcmodel=large
35113 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
35114 when compiled without -mcmodel=large
35115 (filter_memory_map): remove memory post 4 GiB when compiled
35116 without -mcmodel=large
35117 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
35118 TARGET_CFLAGS when -mcmodel=large isn't supported
35120 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35122 Remove nested functions in efiemu core
35124 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
35126 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35128 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
35130 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
35132 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
35134 (grub_cpu_is_tsc_supported): likewise
35135 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
35137 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35139 Absolute addressing through constant with Apple's cc
35141 * kern/i386/pc/startup.S: Define necessary constants
35142 and address through it when using ABS with Apple's CC
35143 * boot/i386/pc/diskboot.S: likewise
35144 * boot/i386/pc/boot.S: likewise
35145 * boot/i386/pc/lnxboot.S: likewise
35146 * boot/i386/pc/cdboot.S: likewise
35147 * mmap/i386/pc/mmap_helper.S: likewise
35148 * commands/i386/pc/drivemap_int13h.S: likewise
35150 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35152 Check if compiler is apple cc
35154 * Makefile.in (ASFLAGS): new variable
35155 (TARGET_ASFLAGS): likewise
35156 (TARGET_MODULE_FORMAT): likewise
35157 (TARGET_APPLE_CC): likewise
35158 (OBJCONV): likewise
35159 (TARGET_IMG_CFLAGS): likewise
35160 (TARGET_CPPFLAGS): add includedir
35161 * configure.ac: call grub_apple_cc and grub_apple_target_cc
35162 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
35163 Check for linker script only if compiler isn't Apple's CC
35164 (TARGET_MODULE_FORMAT): set
35165 (TARGET_APPLE_CC): likewise
35166 (TARGET_ASFLAGS): likewise
35167 (ASFLAGS): likewise
35168 Check for objcopy only if compiler isn't Apple's CC
35169 Check for BSS symbol only if compiler isn't Apple's CC
35170 * genmk.rb: adapt nm options if we use Apple's utils
35171 * aclocal.m4 (grub_apple_cc): new test
35172 (grub_apple_target_cc): likewise
35174 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35176 Simplify sed expressions and improve awk
35178 * Makefile.in (install-local): simplify sed expression
35179 * gencmdlist.sh: likewise
35180 * genmoddep.awk: avoid adding module as a dependency of itself
35182 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35184 Add missing start symbols
35186 * boot/i386/pc/boot.S: add start
35187 * boot/i386/pc/pxeboot.S: likewise
35189 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35191 Fix wrong assumptions with grub-mkimage on EFI
35193 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
35194 (relocate_addresses): consider both r_addend and value at offset
35195 (make_mods_section): zerofill modinfo and header
35196 (convert_elf): write prefix here
35198 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35200 Use .asciz instead of .string
35202 * i386/pc/diskboot.S: use .asciz instead of .string
35203 * i386/pc/boot.S: likewise
35204 * include/grub/dl.h (GRUB_MOD_DEP): likewise
35205 (GRUB_MOD_NAME): likewise
35207 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35211 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
35212 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
35213 (grub_video_setup): remove
35214 (grub_video_set_mode): new prototype
35215 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
35217 (linux_vesafb_res): compile only on PCBIOS
35218 (grub_linux_boot): support gfxpayload
35219 * loader/i386/pc/xnu.c (video_hook): new function
35220 (grub_xnu_set_video): support gfxpayload
35221 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
35222 (DEFAULT_VIDEO_HEIGHT): likewise
35223 (DEFAULT_VIDEO_FLAGS): likewise
35224 (DEFAULT_VIDEO_MODE): new definition
35225 (video_hook): new function
35226 (grub_gfxterm_init): use grub_video_set_mode
35227 * util/grub.d/30_os-prober.in: remove explicit modesetting before
35229 * video/video.c (grub_video_setup): removed
35230 (grub_video_set_mode): new function based on grub_gfxterm_init and
35233 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35235 Avoid calling biosdisk in drivemap
35237 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
35238 (revparse_biosdisk): likewise
35239 (list_mappings): derive name from id directly
35240 (grub_cmd_drivemap): use tryparse_diskstring
35242 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35246 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
35247 (grub_lexer_param): add tokenonhold
35248 (grub_script_create_cmdline): remove cmdline. All callers updated
35249 (grub_script_function_create): make functionname
35250 grub_script_arg. All callers updated
35251 (grub_script_execute_argument_to_string): new prototype
35252 * kern/parser.c (state_transitions): reorder
35253 (grub_parser_cmdline_state): fix a bug and make more compact
35254 * script/sh/execute.c (grub_script_execute_argument_to_string):
35256 (grub_script_execute_cmdline): use new format
35257 * script/sh/function.c (grub_script_function_create): make functionname
35258 grub_script_arg. All callers updated
35259 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
35260 (grub_script_yylex): remove
35261 (grub_script_yylex2): renamed to ...
35262 (grub_script_yylex): ...renamed
35263 parse the expressions like a${b}c
35264 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
35265 (GRUB_PARSER_TOKEN_VAR): remove
35266 (GRUB_PARSER_TOKEN_NAME): likewise
35267 ("if"): declare as typeless
35268 ("while"): likewise
35269 ("function"): likewise
35274 (argument): likewise
35275 (script): accept empty scripts and make exit on error
35276 (arguments): use GRUB_PARSER_TOKEN_ARG
35277 (function): likewise
35278 (command): move error handling to script
35279 (menuentry): move grub_script_lexer_ref before
35280 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
35281 argument. All callers updated
35283 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35285 Prevent GRUB from probing floppies during boot.
35287 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
35288 * commands/search.c (options): Add --no-floppy.
35289 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
35290 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
35291 --no-floppy when searching for UUIDs.
35293 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35295 Simplify the code duplication in commands/search.c.
35297 * commands/search.c (search_label, search_fs_uuid): Merge into ...
35298 (search_fs): ... this. Update all users.
35300 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
35302 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
35304 2009-05-28 Pavel Roskin <proski@gnu.org>
35306 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
35307 Remove the original symlink explicitly.
35309 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
35310 just one slash. That's how grub_fshelp_find_file() does it.
35312 2009-05-26 Pavel Roskin <proski@gnu.org>
35314 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
35317 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
35320 2009-05-25 Christian Franke <franke@computer.org>
35322 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
35324 (grub_atapi_identify): Add wait after drive select.
35325 (grub_ata_identify): Do more strict status register check before
35326 calling grub_atapi_identify (). Suppress error message if status
35327 register is 0x00 after command failure. Add status register
35328 check after PIO read to avoid bogus identify due to stuck DRQ.
35329 Thanks to Pavel Roskin for testing.
35330 (grub_device_initialize): Remove unsafe status register check.
35331 Thanks to 'phcoder' for problem report and patch.
35332 Prevent sign extension in debug message.
35334 2009-05-23 Colin D Bennett <colin@gibibit.com>
35336 Cleaned up `include/grub/normal.h'. Grouped prototypes by
35337 definition file, and functions defined in `normal/menu.c' have had
35338 their prototypes moved to `include/grub/menu.h' for consistency.
35340 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
35342 (grub_menu_get_entry): Likewise.
35343 (grub_menu_get_timeout): Likewise.
35344 (grub_menu_set_timeout): Likewise.
35345 (grub_menu_execute_entry): Likewise.
35346 (grub_menu_execute_with_fallback): Likewise.
35347 (grub_menu_entry_run): Likewise.
35349 * include/grub/normal.h: Re-ordered and grouped function
35350 prototypes by file that the function is defined in.
35351 (grub_menu_execute_callback): Removed; moved to menu.h.
35352 (grub_menu_get_entry): Likewise.
35353 (grub_menu_get_timeout): Likewise.
35354 (grub_menu_set_timeout): Likewise.
35355 (grub_menu_execute_entry): Likewise.
35356 (grub_menu_execute_with_fallback): Likewise.
35357 (grub_menu_entry_run): Likewise.
35358 (grub_menu_addentry): Renamed from this ...
35359 (grub_normal_add_menu_entry): ... to this.
35361 * normal/main.c (grub_menu_addentry): Renamed from this ...
35362 (grub_normal_add_menu_entry): ... to this.
35364 * script/sh/execute.c (grub_script_execute_menuentry): Update
35365 reference to renamed grub_menu_addentry function.
35367 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
35369 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
35371 2009-05-22 Pavel Roskin <proski@gnu.org>
35373 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
35374 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
35375 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
35376 compiling for the i386 targets, but not for the utilities.
35378 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
35380 (grub_root_drive): Likewise.
35381 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
35383 (grub_root_drive): Change size to byte.
35384 (grub_start_addr): Remove.
35385 (grub_end_addr): Likewise.
35386 (grub_apm_bios_info): Likewise.
35388 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
35390 * normal/i386: Remove.
35391 * normal/powerpc: Likewise.
35392 * normal/sparc64: Likewise.
35393 * normal/x86_64: Likewise.
35395 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
35397 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
35398 * loader/i386/linux_trampoline.S: Fix indentation
35399 * loader/i386/xnu_helper.S: Likewise
35401 2009-05-18 Colin D Bennett <colin@gibibit.com>
35403 Display error messages when parsing a Lua statement fails.
35404 Previously, executing a syntactically invalid statement like
35405 ")foo" or "bar;" would silently fail.
35407 * script/lua/grub_main.c (handle_lua_error): New function.
35408 (grub_lua_parse_line): Improved reporting of Lua parser and
35411 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35413 Remove -Werror which causes build to fail on some systems
35415 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
35416 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
35417 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
35419 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35421 trampoline for linux on 64-bit platform
35423 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
35424 loader/i386/efi/linux_trampoline.S
35425 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
35427 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
35429 * loader/i386/linux_trampoline.S: moved here
35430 * loader/i386/efi/linux.c (allocate_pages): reserve space for
35432 (jumpvector): removed
35433 (grub_linux_trampoline_start): new declaration
35434 (grub_linux_trampoline_end): likewise
35435 (grub_linux_boot): use trampoline when on 64-bit platform
35436 * loader/i386/linux.c: likewise
35438 2009-05-16 Pavel Roskin <proski@gnu.org>
35440 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
35441 const to avoid a warning.
35442 (grub_lua_setenv): Likewise.
35443 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
35444 lmsg to fix a warning.
35446 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
35448 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
35449 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35450 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
35451 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35452 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35453 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35454 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35455 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35457 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
35459 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
35461 2009-05-16 Bean <bean123ch@gmail.com>
35463 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
35464 (lua_mod_SOURCES): New variable.
35465 (lua_mod_CFLAGS): Likewise.
35466 (lua_mod_LDFLAGS): Likewise.
35468 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
35469 (setjmp_mod_SOURCES): New variable.
35470 (setjmp_mod_CFLAGS): Likewise.
35471 (setjmp_LDFLAGS): Likewise.
35473 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
35474 (setjmp_mod_SOURCES): New variable.
35475 (setjmp_mod_CFLAGS): Likewise.
35476 (setjmp_LDFLAGS): Likewise.
35478 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35479 (setjmp_mod_SOURCES): New variable.
35480 (setjmp_mod_CFLAGS): Likewise.
35481 (setjmp_LDFLAGS): Likewise.
35483 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35484 (setjmp_mod_SOURCES): New variable.
35485 (setjmp_mod_CFLAGS): Likewise.
35486 (setjmp_LDFLAGS): Likewise.
35488 * normal/i386/setjmp.S: Moved from here ...
35489 * lib/i386/setjmp.S: ... Moved here
35490 * normal/x86_64/setjmp.S: Moved from here ...
35491 * lib/x86_64/setjmp.S: ... Moved here
35492 * normal/powerpc/setjmp.S: Moved from here ...
35493 * lib/powerpc/setjmp.S: ... Moved here
35494 * normal/sparc64/setjmp.S: Moved from here ...
35495 * lib/sparc64/setjmp.S: ... Moved here
35497 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
35498 returns_twice in mingw.
35500 * script/lua/grub_lib.c: New file.
35501 * script/lua/grub_lib.h: Likewise.
35502 * script/lua/grub_lua.h: Likewise.
35503 * script/lua/grub_main.c: Likewise.
35504 * script/lua/lapi.c: Likewise.
35505 * script/lua/lapi.h: Likewise.
35506 * script/lua/lauxlib.c: Likewise.
35507 * script/lua/lauxlib.h: Likewise.
35508 * script/lua/lbaselib.c: Likewise.
35509 * script/lua/lcode.c: Likewise.
35510 * script/lua/lcode.h: Likewise.
35511 * script/lua/ldblib.c: Likewise.
35512 * script/lua/ldebug.c: Likewise.
35513 * script/lua/ldebug.h: Likewise.
35514 * script/lua/ldo.c: Likewise.
35515 * script/lua/ldo.h: Likewise.
35516 * script/lua/ldump.c: Likewise.
35517 * script/lua/lfunc.c: Likewise.
35518 * script/lua/lfunc.h: Likewise.
35519 * script/lua/lgc.c: Likewise.
35520 * script/lua/lgc.h: Likewise.
35521 * script/lua/linit.c: Likewise.
35522 * script/lua/liolib.c: Likewise.
35523 * script/lua/llex.c: Likewise.
35524 * script/lua/llex.h: Likewise.
35525 * script/lua/llimits.h: Likewise.
35526 * script/lua/lmathlib.c: Likewise.
35527 * script/lua/lmem.c: Likewise.
35528 * script/lua/lmem.h: Likewise.
35529 * script/lua/loadlib.c: Likewise.
35530 * script/lua/lobject.c: Likewise.
35531 * script/lua/lobject.h: Likewise.
35532 * script/lua/lopcodes.c: Likewise.
35533 * script/lua/lopcodes.h: Likewise.
35534 * script/lua/loslib.c: Likewise.
35535 * script/lua/lparser.c: Likewise.
35536 * script/lua/lparser.h: Likewise.
35537 * script/lua/lstate.c: Likewise.
35538 * script/lua/lstate.h: Likewise.
35539 * script/lua/lstring.c: Likewise.
35540 * script/lua/lstring.h: Likewise.
35541 * script/lua/lstrlib.c: Likewise.
35542 * script/lua/ltable.c: Likewise.
35543 * script/lua/ltable.h: Likewise.
35544 * script/lua/ltablib.c: Likewise.
35545 * script/lua/ltm.c: Likewise.
35546 * script/lua/ltm.h: Likewise.
35547 * script/lua/lua.h: Likewise.
35548 * script/lua/luaconf.h: Likewise.
35549 * script/lua/lualib.h: Likewise.
35550 * script/lua/lundump.c: Likewise.
35551 * script/lua/lundump.h: Likewise.
35552 * script/lua/lvm.c: Likewise.
35553 * script/lua/lvm.h: Likewise.
35554 * script/lua/lzio.c: Likewise.
35555 * script/lua/lzio.h: Likewise.
35557 2009-05-16 Bean <bean123ch@gmail.com>
35559 * include/grub/kernel.h (grub_module_header_types): Add type
35562 * kern/main.c (grub_load_config): New function.
35563 (grub_main): Call grub_load_config to read boot config.
35565 * grub-mkimage (generate_image): New parameter config_path.
35566 (options): New option --config.
35567 (main): Parse --config option, and pass it to generate_image.
35569 2009-05-14 Christian Franke <franke@computer.org>
35571 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
35572 This fixes build on Cygwin.
35574 2009-05-14 Pavel Roskin <proski@gnu.org>
35576 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
35577 jump. This saves two bytes, so the typical case of 2 swapped
35578 drives would fit 32 bytes.
35580 2009-05-13 Pavel Roskin <proski@gnu.org>
35582 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
35583 grub_uint32_t to avoid a warning.
35585 * loader/i386/linux.c (allocate_pages): When assigning
35586 real_mode_mem, cast through grub_size_t to fix a warning. The
35587 code already makes sure that the value would fit a pointer.
35588 (grub_linux_setup_video): Cast render_target->data to
35589 grub_size_t to fix a warning.
35591 2009-05-13 Javier Martín <lordhabbit@gmail.com>
35593 * commands/i386/pc/drivemap.c: New file - implement drivemap
35595 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
35596 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
35598 2009-05-13 Pavel Roskin <proski@gnu.org>
35600 * util/i386/pc/grub-setup.c (setup): Remove unused variable
35601 embedding_area_exists.
35603 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
35605 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
35606 it easier to understand / work with.
35607 Improve warning messages for cases where there's no embedding area,
35608 or when it is too small (or core.img too large).
35610 2009-05-13 Pavel Roskin <proski@gnu.org>
35612 * loader/i386/pc/multiboot2.c: Add necessary includes for
35613 grub_multiboot2_real_boot().
35615 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
35616 PX record is always little-endian. We only need the lower 2
35619 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
35620 facilitate code reuse.
35621 (grub_cpio_mount): Use "struct head", not a char buffer. This
35622 fixes a warning reported by gcc 4.4.
35624 * kernel/disk.c (grub_disk_read): Use void pointer for the
35626 (grub_disk_write): Use const void pointer for the buffer.
35627 Adjust all callers. Remove unnecessary casts.
35629 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
35631 * util/i386/pc/grub-install.in: Update copyright year.
35633 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35637 * commands/gptsync.c: new file
35638 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
35639 (gptsync_mod_SOURCES): new variable
35640 (gptsync_mod_CFLAGS): likewise
35641 (gptsync_mod_LDFLAGS): likewise
35642 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
35644 (GRUB_PC_PARTITION_TYPE_HFS): likewise
35645 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
35646 * conf/i386-ieee1275.rmk: likewise
35647 * conf/i386-pc.rmk: likewise
35648 * conf/powerpc-ieee1275.rmk: likewise
35650 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35654 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
35655 (grub_dl_ref): likewise
35657 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
35659 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
35660 split in two functions (one for msdos and one for gpt).
35662 2009-05-08 Pavel Roskin <proski@gnu.org>
35664 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
35667 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
35668 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
35669 Initialize them with -1. Add sanity check for bad1. Eliminate
35672 2009-05-08 David S. Miller <davem@davemloft.net>
35674 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
35676 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
35678 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
35681 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
35683 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35684 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
35686 2009-05-05 David S. Miller <davem@davemloft.net>
35688 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
35690 2009-05-05 Pavel Roskin <proski@gnu.org>
35692 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
35693 of grub_dl_ref() and grub_dl_unref().
35694 * commands/parttool.c: Remove preprocessor conditionals around
35695 grub_dl_ref() and grub_dl_unref().
35696 * fs/affs.c: Likewise.
35697 * fs/afs.c: Likewise.
35698 * fs/cpio.c: Likewise.
35699 * fs/ext2.c: Likewise.
35700 * fs/fat.c: Likewise.
35701 * fs/hfs.c: Likewise.
35702 * fs/hfsplus.c: Likewise.
35703 * fs/iso9660.c: Likewise.
35704 * fs/jfs.c: Likewise.
35705 * fs/minix.c: Likewise.
35706 * fs/ntfs.c: Likewise.
35707 * fs/reiserfs.c: Likewise.
35708 * fs/sfs.c: Likewise.
35709 * fs/udf.c: Likewise.
35710 * fs/ufs.c: Likewise.
35711 * fs/xfs.c: Likewise.
35712 * include/grub/dl.h: Likewise.
35713 * loader/xnu.c: Likewise.
35715 2009-05-04 Pavel Roskin <proski@gnu.org>
35717 * commands/acpi.c: Remove unused variable my_mod.
35718 * partmap/amiga.c: Likewise.
35719 * partmap/apple.c: Likewise.
35720 * partmap/gpt.c: Likewise.
35721 * partmap/pc.c: Likewise.
35722 * partmap/sun.c: Likewise.
35723 * term/gfxterm.c: Likewise.
35724 * term/i386/pc/vesafb.c: Likewise.
35725 * term/i386/pc/vga.c: Likewise.
35727 2009-05-04 David S. Miller <davem@davemloft.net>
35729 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
35730 pointer args to grub_ieee1275_get_property().
35732 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
35734 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
35735 devices, and do not traverse down under controller nodes.
35737 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
35738 (grub_ofdisk_open): Use it to un-escape "," characters.
35739 * kern/disk.c (find_part_sep): New.
35740 (grub_disk_open): Use it to find the first non-escaped ','
35741 character in the disk name.
35742 * util/ieee1275/devicemap.c (escape_of_path): New.
35743 (grub_util_emit_devicemap_entry): Use it.
35744 * util/sparc64/ieee1275/grub-install.in: Update script to
35745 strip partition specifiers properly by not triggering on
35746 '\' escaped ',' characters.
35748 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35750 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
35752 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
35754 (linux_vesafb_modes): Add a lot of additional modes to the list (based
35755 on documentation from Wikipedia).
35757 2009-05-04 Pavel Roskin <proski@gnu.org>
35759 * disk/ata.c: Spelling fixes.
35760 * disk/raid.c: Likewise.
35761 * disk/usbms.c: Likewise.
35762 * disk/dmraid_nvidia.c: Likewise.
35763 * kern/ieee1275/openfw.c: Likewise.
35764 * kern/ieee1275/init.c: Likewise.
35765 * kern/ieee1275/cmain.c: Likewise.
35766 * boot/i386/pc/cdboot.S: Likewise.
35767 * video/readers/png.c: Likewise.
35768 * video/i386/pc/vbe.c: Likewise.
35769 * fs/udf.c: Likewise.
35770 * fs/hfs.c: Likewise.
35771 * fs/reiserfs.c: Likewise.
35772 * efiemu/runtime/efiemu.c: Likewise.
35773 * efiemu/main.c: Likewise.
35774 * efiemu/mm.c: Likewise.
35775 * include/grub/elf.h: Likewise.
35776 * include/grub/xnu.h: Likewise.
35777 * include/grub/usbdesc.h: Likewise.
35778 * include/grub/usb.h: Likewise.
35779 * include/grub/script_sh.h: Likewise.
35780 * include/grub/lib/LzmaEnc.h: Likewise.
35781 * include/grub/efiemu/efiemu.h: Likewise.
35782 * include/grub/command.h: Likewise.
35783 * normal/menu.c: Likewise.
35784 * normal/main.c: Likewise.
35785 * normal/datetime.c: Likewise.
35786 * bus/usb/uhci.c: Likewise.
35787 * mmap/i386/uppermem.c: Likewise.
35788 * mmap/mmap.c: Likewise.
35789 * commands/acpi.c: Likewise.
35790 * commands/test.c: Likewise.
35791 * partmap/apple.c: Likewise.
35792 * font/font.c: Likewise.
35793 * loader/sparc64/ieee1275/linux.c: Likewise.
35794 * loader/macho.c: Likewise.
35795 * loader/i386/bsd_trampoline.S: Likewise.
35796 * loader/i386/bsd.c: Likewise.
35797 * loader/xnu.c: Likewise.
35798 * term/i386/pc/vesafb.c: Likewise.
35799 * term/usb_keyboard.c: Likewise.
35800 * util/resolve.c: Likewise.
35801 * util/getroot.c: Likewise.
35803 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
35805 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35807 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35809 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35812 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35814 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35815 parameter only available on BIOS.
35817 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35819 Removed wrong semicolon in declaration
35821 * grub/misc.h (grub_dprintf): remove semicolon
35823 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35825 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35826 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35827 is done by grub_cmd_linux() now).
35828 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35829 restore video to text mode.
35830 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35831 indicates lack of "vga=" parameter. "vga=0" is mapped to
35832 `GRUB_LINUX_VID_MODE_NORMAL'.
35834 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
35836 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35837 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35838 and `normal/script.c'. Add `kern/rescue_reader.c',
35839 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
35840 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35841 `grub_script.tab.c'.
35843 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35844 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35846 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35847 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35849 * Makefile.in: Remove duplicated 2008 in Copyright line.
35851 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35853 * util/misc.c (grub_util_warn): New function. Emits a warning
35855 * include/grub/util/misc.h (grub_util_warn): New declaration.
35857 * util/i386/pc/grub-install.in: Understand --force and pass it down
35860 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35862 (setup): Improve error messages and add warnings when requested to
35863 install in odd layouts. Refuse to install using blocklists unless
35866 2009-05-04 martin f. krafft <madduck@madduck.net>
35868 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35870 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35872 Updated copyright year
35874 * fs/hfsplus.c: updated copyright year
35876 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35880 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
35881 in the space previously used by unused3
35882 (grub_hfsplus_uuid): new function
35883 (grub_hfsplus_fs): added uuid field
35885 2009-05-03 Pavel Roskin <proski@gnu.org>
35887 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35888 suppress warnings. It's no longer needed.
35889 * disk/host.c: Likewise.
35890 * disk/ata_pthru.c: Likewise.
35891 * disk/loopback.c: Likewise.
35892 * hook/datehook.c: Likewise.
35893 * parttool/pcpart.c: Likewise.
35894 * fs/i386/pc/pxe.c: Likewise.
35895 * fs/ntfscomp.c: Likewise.
35896 * efiemu/main.c: Likewise.
35897 * mmap/mmap.c: Likewise.
35898 * commands/crc.c: Likewise.
35899 * commands/hexdump.c: Likewise.
35900 * commands/hdparm.c: Likewise.
35901 * commands/acpi.c: Likewise.
35902 * commands/echo.c: Likewise.
35903 * commands/minicmd.c: Likewise.
35904 * commands/blocklist.c: Likewise.
35905 * commands/memrw.c: Likewise.
35906 * commands/loadenv.c: Likewise.
35907 * commands/usbtest.c: Likewise.
35908 * commands/lsmmap.c: Likewise.
35909 * commands/boot.c: Likewise.
35910 * commands/parttool.c: Likewise.
35911 * commands/configfile.c: Likewise.
35912 * commands/search.c: Likewise.
35913 * commands/ieee1275/suspend.c: Likewise.
35914 * commands/cat.c: Likewise.
35915 * commands/i386/pc/pxecmd.c: Likewise.
35916 * commands/i386/pc/play.c: Likewise.
35917 * commands/i386/pc/halt.c: Likewise.
35918 * commands/i386/pc/vbeinfo.c: Likewise.
35919 * commands/i386/pc/vbetest.c: Likewise.
35920 * commands/lspci.c: Likewise.
35921 * commands/date.c: Likewise.
35922 * commands/handler.c: Likewise.
35923 * commands/ls.c: Likewise.
35924 * commands/test.c: Likewise.
35925 * commands/cmp.c: Likewise.
35926 * commands/efi/loadbios.c: Likewise.
35927 * commands/efi/fixvideo.c: Likewise.
35928 * commands/halt.c: Likewise.
35929 * commands/help.c: Likewise.
35930 * commands/reboot.c: Likewise.
35931 * hello/hello.c: Likewise.
35932 * script/sh/main.c: Likewise.
35933 * loader/xnu.c: Likewise.
35934 * term/terminfo.c: Likewise.
35935 * term/i386/pc/serial.c: Likewise.
35936 * term/usb_keyboard.c: Likewise.
35938 2009-05-03 David S. Miller <davem@davemloft.net>
35940 * normal/menu.c: Include grub/parser.h
35942 2009-05-03 Pavel Roskin <proski@gnu.org>
35944 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
35946 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
35947 Suggested by Javier Martín <lordhabbit@gmail.com>
35949 * util/i386/pc/grub-mkrescue.in: Allow for the case when
35950 efiemu??.o doesn't exist.
35951 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
35954 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
35956 FreeBSD 64-bit support
35958 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
35959 and loader/i386/bsd_trampoline.S
35960 (bsd_mod_ASFLAGS): new variable
35961 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
35962 (FREEBSD_MODTYPE_KERNEL64): likewise
35963 (grub_bsd64_trampoline_start): likewise
35964 (grub_bsd64_trampoline_end): likewise
35965 (grub_bsd64_trampoline_selfjump): likewise
35966 (grub_bsd64_trampoline_gdt): likewise
35967 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
35968 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
35969 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
35970 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
35971 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
35973 * loader/i386/bsd_pagetable.c: new file
35974 * loader/i386/bsd_trampoline.S: likewise
35975 * loader/i386/bsd.c (ALIGN_QWORD): new macro
35976 (ALIGN_VAR): likewise
35977 (entry_hi): new variable
35978 (kern_end_mdofs): likewise
35979 (is_64bit): likewise
35980 (grub_freebsd_add_meta): use ALIGN_VAR
35981 (grub_e820_mmap): new declaration
35982 (grub_freebsd_add_mmap): new function
35983 (grub_freebsd_add_meta_module): support 64 bit kernels
35984 (grub_freebsd_list_modules): use ALIGN_VAR
35985 (gdt_descriptor): new declaration
35986 (grub_freebsd_boot): support 64 bit kernels
35987 (grub_bsd_elf64_hook): new function
35988 (grub_bsd_load_elf): support elf64
35990 2009-05-03 Bean <bean123ch@gmail.com>
35992 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
35993 after we get the result of if statement.
35995 2009-05-03 Bean <bean123ch@gmail.com>
35997 * Makefile.in (enable_efiemu): New variable.
35999 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
36001 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
36003 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
36004 path, add -mno-red-zone option.
36005 (efiemu64_s.o): Likewise.
36006 (efiemu64.o): Use macro $^ for source file.
36008 * configure.ac (--enable-efiemu): New option.
36010 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
36014 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
36015 (pkglib_MODULES): add xnu.mod
36016 (xnu_mod_SOURCES): new variable
36017 (xnu_mod_CFLAGS): likewise
36018 (xnu_mod_LDFLAGS): likewise
36019 (xnu_mod_ASFLAGS): likewise
36020 * conf/i386-pc.rmk: likewise
36021 * conf/x86_64-efi.rmk: likewise
36022 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
36024 * include/grub/i386/macho.h: new file
36025 * include/grub/i386/xnu.h: likewise
36026 * include/grub/macho.h: likewise
36027 * include/grub/machoload.h: likewise
36028 * include/grub/x86_64/macho.h: likewise
36029 * include/grub/x86_64/xnu.h: likewise
36030 * include/grub/xnu.h: likewise
36031 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
36032 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
36033 * loader/i386/efi/xnu.c: new file
36034 * loader/i386/pc/xnu.c: likewise
36035 * loader/i386/xnu.c: likewise
36036 * loader/i386/xnu_helper.S: likewise
36037 * loader/macho.c: likewise
36038 * loader/xnu.c: likewise
36039 * loader/xnu_resume.c: likewise
36040 * util/grub-dumpdevtree: likewise
36041 * include/grub/i386/pit.h: include grub/err.h
36042 (grub_pit_wait): export
36043 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
36045 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36049 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
36050 _linux_efi, linux_efi.
36051 new files in grub-emu
36052 new targets efiemu32.o and efiemu64.o
36053 * loader/linux_normal_efiemu.c: likewise
36054 * loader/i386/efi/linux.c: added preliminary efiemu support
36055 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
36057 * include/grub/autoefi.h: new file
36058 * include/grub/i386/efiemu.h: likewise
36059 * include/grub/i386/pc/efiemu.h: likewise
36060 * include/grub/efi/api.h: add LL suffix when necessary
36061 new definitions relating to tables
36062 * include/grub/efiemu/efiemu.h: new file
36063 * include/grub/efiemu/runtime.h: likewise
36064 * efiemu/prepare.c: likewise
36065 * efiemu/loadcore_common.c: likewise
36066 * efiemu/loadcore64.c: likewise
36067 * efiemu/runtime/efiemu.sh: likewise
36068 * efiemu/runtime/efiemu.S: likewise
36069 * efiemu/runtime/efiemu.c: likewise
36070 * efiemu/runtime/config.h: likewise
36071 * efiemu/prepare32.c: likewise
36072 * efiemu/main.c: likewise
36073 * efiemu/modules/pnvram.c: likewise
36074 * efiemu/modules/i386: likewise
36075 * efiemu/modules/i386/pc: likewise
36076 * efiemu/modules/acpi.c: likewise
36077 * efiemu/i386/pc/cfgtables.c: likewise
36078 * efiemu/i386/loadcore64.c: likewise
36079 * efiemu/i386/loadcore32.c: likewise
36080 * efiemu/prepare64.c: likewise
36081 * efiemu/loadcore.c: likewise
36082 * efiemu/symbols.c: likewise
36083 * efiemu/mm.c: likewise
36084 * efiemu/loadcore32.c: likewise
36086 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36090 * commands/acpi.c: new file
36091 * commands/i386/pc/acpi.c: likewise
36092 * commands/efi/acpi.c: likewise
36093 * include/grub/acpi.h: likewise
36094 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
36095 (acpi_mod_SOURCES): new variable
36096 (acpi_mod_CFLAGS): likewise
36097 (acpi_mod_LDFLAGS): likewise
36098 * conf/i386-efi.rmk: likewise
36099 * conf/x86_64-efi.rmk: likewise
36101 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36103 Missing part from mmap patch
36105 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
36106 (grub_mmap_unregister)
36107 (grub_mmap_free_and_unregister): use grub_mmap_register
36109 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36113 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
36114 * loader/i386/linux.c (find_mmap_size): likewise
36115 (allocate_pages): likewise
36116 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
36117 (grub_fill_multiboot_mmap): likewise
36118 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
36119 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
36120 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
36121 (OPENBSD_MMAP_RESERVED): likewise
36122 * include/grub/i386/pc/memory.h: include grub/memory.h
36123 (grub_lower_mem): removed
36124 (grub_upper_mem): likewise
36125 (GRUB_MACHINE_MEMORY_ACPI): new definition
36126 (GRUB_MACHINE_MEMORY_NVS): likewise
36127 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
36128 (GRUB_MACHINE_MEMORY_HOLE): likewise
36129 (grub_machine_mmap_register): likewise
36130 (grub_machine_mmap_unregister): likewise
36131 (grub_machine_get_upper): likewise
36132 (grub_machine_get_lower): likewise
36133 (grub_machine_get_post64): likewise
36134 * include/grub/i386/efi/memory.h: new file
36135 * include/grub/x86_64/efi/memory.h: likewise
36136 * include/grub/efi/memory.h: likewise
36137 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
36138 (mmap_mod_SOURCES): new variable
36139 (mmap_mod_LDFLAGS): likewise
36140 (mmap_mod_ASFLAGS): likewise
36141 * conf/i386-coreboot.rmk: likewise
36142 * conf/i386-ieee1275.rmk: likewise
36143 * conf/i386-efi.rmk: likewise
36144 * conf/x86_64-efi.rmk: likewise
36145 * include/grub/types.h (UINT_TO_PTR): new macro
36146 (PTR_TO_UINT32): likewise
36147 (PTR_TO_UINT64): likewise
36148 * include/grub/memory.h: new file
36149 * mmap/i386/pc/mmap.c: likewise
36150 * mmap/i386/pc/mmap_helper.S: likewise
36151 * mmap/i386/uppermem.c: likewise
36152 * mmap/mmap.c: likewise
36153 * mmap/efi/mmap.c: likewise
36154 * kern/i386/coreboot/init.c (grub_machine_init): don't use
36156 * kern/i386/pc/init.c (grub_lower_mem): removed variable
36157 (grub_upper_mem): likewise
36158 (grub_machine_init): don't use grub_upper_mem,
36159 make grub_lower_mem local
36160 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
36161 grub_mmap_iterate and grub_mmap_get_upper
36162 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
36164 2009-05-02 Bean <bean123ch@gmail.com>
36166 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
36167 script/sh/parser.y.
36168 (pkglib_MODULES): Add normal.mod and sh.mod.
36169 (normal_SOURCES): New variable.
36170 (normal_mod_CFLAGS): Likewise.
36171 (normal_mod_LDFLAGS): Likewise.
36172 (sh_mod_SOURCES): Likewise.
36173 (sh_mod_CFLAGS): Likewise.
36174 (sh_mod_LDFLAGS): Likewise.
36176 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
36177 script/sh/lexer.c_DEPENDENCIES.
36178 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
36179 kern/rescue_reader.c and kern/rescue_parser.c.
36180 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
36181 (grub_emu_SOURCES): Change source files.
36182 (pkglib_MODULES): Remove normal.mod.
36183 (normal_SOURCES): Removed.
36184 (normal_mod_CFLAGS): Likewise.
36185 (normal_mod_LDFLAGS): Likewise.
36186 * conf/i386-coreboot.rmk: Likewise.
36187 * conf/i386-efi.rmk: Likewise.
36188 * conf/i386-ieee1276.rmk: Likewise.
36189 * conf/powerpc-ieee1275.rmk: Likewise.
36190 * conf/sparc64-ieee1275.rmk: Likewise.
36191 * conf/x86_64-efi.rmk: Likewise.
36193 * include/grub/command.h (grub_command_execute): New inline function.
36195 * include/grub/menu.h (grub_menu_entry): Removed commands field.
36197 * include/grub/normal.h: Remove <grub/setjmp.h>.
36198 (grub_fs_module_list): Moved to normal/autofs.c.
36199 (grub_exit_env): Removed.
36200 (grub_command_execute): Likewise.
36201 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
36203 (read_command_list): New function declaration.
36204 (read_fs_list): Likewise.
36206 * include/parser.h: Include <grub/reader.h>.
36207 (grub_parser_split_cmdline): Change type of getline parameter.
36208 (grub_parser): New structure.
36209 (grub_parser_class): New variable.
36210 (grub_parser_execute): New function declaration.
36211 (grub_register_rescue_parser): Likewise.
36212 (grub_parser_register): New inline function.
36213 (grub_parser_unregister): Likewise.
36214 (grub_parser_get_current): Likewise.
36215 (grub_parser_set_current): Likewise.
36217 * include/grub/reader.h: New file.
36218 * kern/reader.c: Likewise.
36219 * kern/rescue_parser.c: Likewise.
36220 * kern/rescue_reader.c: Likewise.
36221 * normal/autofs.c: Likewise.
36222 * normal/dyncmd.c: Likewise.
36224 * include/grub/rescue.h: Removed.
36225 * normal/command.h: Likewise.
36227 * include/grub/script.h: Moved to ...
36228 * include/grub/script_sh.h: ... Moved here.
36229 * normal/execute.c: Moved to ...
36230 * script/sh/execute.c: ... Moved here.
36231 * normal/function.c: Moved to ...
36232 * script/sh/function.c: ... Moved here.
36233 * normal/lexer.c: Moved to ...
36234 * script/sh/lexer.c: ... Moved here.
36235 * normal/parser.y: Moved to ...
36236 * script/sh/parser.y: ... Moved here.
36237 * normal/script.c: Moved to ...
36238 * script/sh/script.c: ... Moved here.
36240 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
36242 (grub_exit_env): Removed.
36243 (fs_module_list): Moved to normal/autofs.c.
36244 (grub_file_getline): Don't handle comment here.
36245 (free_menu): Skip removed field entry->commands.
36246 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
36248 (read_config_file): Removed nested parameter, change getline function.
36249 (grub_enter_normal_mode): Removed.
36250 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
36251 (read_command_list): Likewise.
36252 (autoload_fs_module): Moved to normal/autofs.c.
36253 (read_fs_list): Likewise.
36254 (reader_nested): New variable.
36255 (grub_normal_execute): Run parser.sh to switch to sh parser.
36256 (grub_cmd_rescue): Removed.
36257 (cmd_normal): Removed.
36258 (grub_cmd_normal): Unregister itself at the beginning. Don't register
36260 (grub_cmdline_run): New function.
36261 (grub_normal_reader_init): Likewise.
36262 (grub_normal_read_line): Likewise.
36263 (grub_env_write_pager): Likewise.
36264 (cmdline): New variable.
36265 (grub_normal_reader): Likewise.
36266 (GRUB_MOD_INIT): Register normal reader and set as current, register
36267 pager hook, register normal command with grub_register_command_prio,
36268 so that it won't show up in command.lst.
36269 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
36270 grub_fs_autoload_hook.
36272 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
36273 (grub_menu_execute_entry): Replace grub_script_execute with
36274 grub_parser_execute, change parameter to grub_command_execute.
36276 * normal/menu_text.c: Remove <grub/script.h>.
36278 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
36279 and <grub/parser.h>.
36280 (run): Change editor_getline to use new parser interface. Change
36281 parameter to grub_command_execute.
36283 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
36284 <grub/reader.h> and <grub/parser.h>.
36285 (grub_load_normal_mode): Execute normal command.
36286 (grub_main): Call grub_register_core_commands,
36287 grub_register_rescue_parser and grub_register_rescue_reader, use
36288 grub_reader_loop to enter input loop.
36290 * kern/parser.c (grub_parser_split_cmdline): Change type of
36292 (grub_parser_class): New variable.
36293 (grub_parser_execute): New function.
36295 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
36296 * loader/multiboot2.c: Likewise.
36297 * loader/sparc64/ieee1275/linux.c: Likewise.
36299 * util/grub-emu.c (read_command_list): New dummy function.
36301 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36303 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
36304 count to 16 for CCISS and IDA.
36306 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36308 * normal/menu_text.c (grub_wait_after_message): Print a newline
36309 after waiting for user input.
36311 * loader/i386/linux.c: Include `<grub/normal.h>'.
36312 (grub_cmd_linux): Improve the error message about `ask' mode, by
36313 waiting for user input so it's not missed (we can do this, since
36314 user requested interaction).
36316 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36318 Added missing lst to grub-mkrescue
36320 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
36321 and ${input_dir}/parttool.lst
36323 2009-04-30 David S. Miller <davem@davemloft.net>
36325 * util/hostdisk.c (device_is_wholedisk): New function.
36326 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
36327 zero only if device_is_wholedisk() returns true.
36329 * util/hostdisk.c (convert_system_partition_to_system_disk):
36330 Handle virtual disk devices named /dev/vdiskX as found on sparc
36333 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
36334 lettered partition specifier is found, convert to numbered.
36336 2009-04-29 David S. Miller <davem@davemloft.net>
36338 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
36339 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36341 * normal/command.c: Add missing newline at end of file.
36343 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
36345 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
36346 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
36347 grub_ofdisk_read): Likewise, and deal similarly with the fact that
36348 ihandles have a 32-bit type but need to be stored in a "void *".
36350 2009-04-28 Pavel Roskin <proski@gnu.org>
36352 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
36353 not disk. Adjust all dependencies.
36354 (grub_fs_uuid_close): Use grub_device_close(), not
36357 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
36358 parent's partition, don't copy it by reference, as it gets freed
36361 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
36363 Preboot hooks support
36365 * commands/boot.c (struct grub_preboot_t): new declaration
36366 (preboots_head): new variable
36367 (preboots_tail): likewise
36368 (grub_loader_register_preboot_hook): new function
36369 (grub_loader_unregister_preboot_hook): likewise
36370 (grub_loader_set): launch preboot hooks
36371 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
36372 (grub_loader_register_preboot_hook): new declaration
36373 (grub_loader_unregister_preboot_hook): likewise
36375 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
36379 * disk/scsi.c (grub_scsi_open): added missing cast when
36380 calling grub_dprintf
36382 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
36384 Bug and warning fixes
36386 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
36388 * commands/test.c (test_parse): fixed bug with file tests and corrected
36389 declaration of find_file
36391 2009-04-26 Pavel Roskin <proski@gnu.org>
36393 * Makefile.in: Don't install empty manual pages if help2man is
36394 missing. Use help2man option for output, not shell redirection.
36396 2009-04-26 David S. Miller <davem@davemloft.net>
36398 * util/grub-mkdevicemap.c (make_device_map): Add missing
36399 NESTED_FUNC_ATTR to process_device().
36401 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36405 * commands/test.c: rewritten to use bash-like test
36407 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36409 Parttool autoloading and improvements
36411 * Makefile.in (pkglib_DATA): add parttool.lst
36412 (parttool.lst): new target
36413 * genmk.rb: generate parttool-*
36414 (CLEANFILES): add #{parttool}
36415 (PARTTOOLFILES): new variable
36416 * genparttoollist.sh: new file
36417 * parttool/pcpart.c (grub_pcpart_boot): more feedback
36418 (grub_pcpart_type): likewise
36419 * commands/parttool.c (helpmsg): new variable
36420 (grub_cmd_parttool): output help if not enough arguments are supplied
36422 (GRUB_MOD_INIT(parttool)): use helpmsg
36424 2009-04-24 David S. Miller <davem@davemloft.net>
36426 Avoiding opening same device multiple times in device iterator.
36428 * kern/device.c: (grub_device_iterate): Define struct part_ent,
36429 and use it to build a list of partitions in iterate_disk() and
36430 iterate_partition().
36432 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
36435 * disk/ieee1275/nand.c (grub_nand_iterate): Return
36436 grub_devalias_iterate() result instead of unconditional 0.
36437 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
36438 Also, capture hook return value, either directly or via
36439 grub_children_iterate(), and propagate to caller.
36440 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
36441 grub_children_iterate): Return value is now 'int' instead of
36443 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
36444 like a proper iterator, stopping when hooks return non-zero.
36445 (grub_devalias_iterate): Likewise.
36447 2009-04-23 David S. Miller <davem@davemloft.net>
36449 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
36451 2009-04-22 David S. Miller <davem@davemloft.net>
36453 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
36454 is larger than address_cells, use that value for address_cells too.
36456 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
36457 IEEE1275_MAX_PATH_LEN): Define.
36458 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
36459 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
36460 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
36461 'devtype'. Explicitly NULL terminate devalias expansion.
36463 * util/sparc64/ieee1275/misc.c: New file.
36464 * util/sparc64/ieee1275/grub-setup.c: New file.
36465 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
36466 * util/sparc64/ieee1275/grub-mkimage.c: New file.
36467 * util/sparc64/ieee1275/grub-install.in: New file.
36468 * util/ieee1275/ofpath.c: New file.
36469 * util/ieee1275/devicemap.c: New file.
36470 * util/devicemap.c: New file.
36471 * util/deviceiter.c: New file.
36472 * kern/sparc64/ieee1275/init.c: New file.
36473 * include/grub/util/ofpath.h: New file.
36474 * include/grub/util/deviceiter.h: New file.
36475 * util/grub-mkdevicemap.c: Include deviceiter.h.
36476 Implement using grub_util_emit_devicemap_entry and
36477 grub_util_iterate_devices.
36478 * conf/i386-corebook.rmk: Build util/deviceiter.c and
36479 util/devicemap.c into grub-mkdevicemap
36480 * conf/i386-efi.rmk: Likewise.
36481 * conf/i386-ieee1275.rmk: Likewise.
36482 * conf/i386-pc.rmk: Likewise.
36483 * conf/powerpc-ieee1275.rmk: Likewise.
36484 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
36485 images and installation utilities. Build kernel as image
36486 instead of as elf binary. Use common rules as much as possible.
36488 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
36490 Correct GPT definition
36492 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
36495 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
36497 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
36499 2009-04-19 David S. Miller <davem@davemloft.net>
36501 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
36502 (grub_rescue_cmd_linux): Rename to...
36503 (grub_cmd_linux): and fix prototype.
36504 (grub_rescue_cmd_initrd): Rename to...
36505 (grub_cmd_initrd): and fix prototype.
36506 (cmd_linux, cmd_initrd): New.
36507 (GRUB_MOD_INIT(linux)): Use grub_register_command().
36508 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
36510 2009-04-17 Pavel Roskin <proski@gnu.org>
36512 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
36514 (grub_ohci_transfer): Likewise.
36516 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
36518 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
36519 return without a value. Fix inconsistent indentation.
36521 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
36522 match struct grub_fs.
36524 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
36525 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
36526 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36527 * commands/lspci.c (grub_lspci_iter): Likewise.
36529 2009-04-16 Bean <bean123ch@gmail.com>
36531 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
36534 2009-04-15 Pavel Roskin <proski@gnu.org>
36536 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
36537 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
36538 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
36541 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
36543 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
36544 that no multiple data or metadata areas are supported and `Unknown
36547 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
36549 Move loader out of the kernel
36551 * kern/loader.c: moved to ...
36552 * commands/boot.c: ... moved here
36553 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
36554 * commands/boot.c (grub_cmd_boot): moved here. All users updated
36555 * include/grub/kernel.h (grub_machine_fini): export
36556 * include/grub/loader.h (grub_loader_is_loaded): update declaration
36557 (grub_loader_set): likewise
36558 (grub_loader_unset): likewise
36559 (grub_loader_boot): likewise
36560 * conf/common.rmk: new module boot.mod
36561 (pkglib_MODULES): add boot.mod
36562 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
36563 (grub_emu_SOURCES): likewise
36564 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
36565 (grub_emu_SOURCES): likewise
36566 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
36567 (grub_emu_SOURCES): likewise
36568 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
36569 (grub_emu_SOURCES): likewise
36570 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
36571 (grub_emu_SOURCES): likewise
36572 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
36573 (grub_emu_SOURCES): likewise
36574 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
36575 (grub_emu_SOURCES): likewise
36577 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
36579 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
36581 * kern/misc.c (grub_itoa): Removed function
36582 (grub_ltoa): likewise
36583 (grub_vsprintf): use grub_lltoa
36585 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
36589 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
36590 * conf/i386-coreboot.rmk: likewise
36591 * conf/i386-ieee1275.rmk: likewise
36592 * conf/powerpc-ieee1275.rmk: likewise
36594 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
36596 * INSTALL: Add that `./autogen.sh' needs to be run before
36599 2009-04-14 Bean <bean123ch@gmail.com>
36601 * Makefile.in (pkglib_DATA): Add handler.lst.
36602 (handler.lst): New rule.
36604 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
36605 * conf/i386-coreboot.rmk: Likewise.
36606 * conf/i386-ieee1275.rmk: Likewise.
36607 * conf/i386-efi.rmk: Likewise.
36608 * conf/x86_64-efi.rmk: Likewise.
36609 * conf/powerpc-ieee1275.rmk: Likewise.
36610 * conf/sparc64-ieee1275.rmk: Likewise.
36612 * genhandlerlist.sh: New file.
36614 * genmk.rb: Add rules to generate handler.lst.
36616 * include/grub/normal.h (grub_file_getline): New function definition.
36617 (read_handler_list): Likewise.
36618 (free_handler_list): Likewise.
36620 * include/grub/term.h (grub_term_register_input): Add name parameter
36621 for auto generation of handler.lst.
36622 (grub_term_register_output): Likewise.
36624 * normal/handler.c: New file.
36626 * normal/main.c (get_line): Renamed to grub_file_getline.
36627 (read_config_file): Use the newly renamed grub_file_getline.
36628 (read_command_list): Likewise.
36629 (read_fs_list): Likewise.
36630 (grub_normal_execute): Call read_handler_list to parse handler.lst.
36631 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
36633 * term/efi/console.c (grub_console_init): Add name parameter for auto
36634 generation of handler.lst.
36635 * term/gfxterm.c: Likewise.
36636 * term/i386/pc/at_keyboard.c: Likewise.
36637 * term/i386/pc/console.c: Likewise.
36638 * term/i386/pc/serial.c: Likewise.
36639 * term/i386/pc/vesafb.c: Likewise.
36640 * term/i386/pc/vga.c: Likewise.
36641 * term/i386/pc/vga_text.c: Likewise.
36642 * term/ieee1275/ofconsole.c: Likewise.
36643 * term/usb_keyboard.c: Likewise.
36645 2009-04-14 Bean <bean123ch@gmail.com>
36647 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
36648 properly with null character.
36650 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
36652 * configure: Remove.
36653 * config.h.in: Likewise.
36654 * stamp-h.in: Likewise.
36655 * DISTLIST: Likewise.
36656 * conf/common.mk: Likewise.
36657 * conf/i386-coreboot.mk: Likewise.
36658 * conf/i386-efi.mk: Likewise.
36659 * conf/i386-ieee1275.mk: Likewise.
36660 * conf/i386.mk: Likewise.
36661 * conf/i386-pc.mk: Likewise.
36662 * conf/powerpc-ieee1275.mk: Likewise.
36663 * conf/sparc64-ieee1275.mk: Likewise.
36664 * conf/x86_64-efi.mk: Likewise.
36666 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
36669 2009-04-14 John Stanley <jpsinthemix@verizon.net>
36670 David S. Miller <davem@davemloft.net>
36672 * util/hostdisk.c (make_device_name): Fix buffer length
36675 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
36677 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
36678 <sys/param.h> and <sys/sysctl.h>.
36679 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
36680 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
36681 opening the device and reset them afterwards.
36683 2009-04-13 Pavel Roskin <proski@gnu.org>
36685 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
36686 Reported by John Stanley <jpsinthemix@verizon.net>
36688 2009-04-13 Robert Millan <rmh@aybabtu.com>
36690 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
36691 that name for menuentries when appropriate.
36693 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
36695 * util/grub.d/10_freebsd.in: Add a missing `fi'.
36697 2009-04-13 Robert Millan <rmh@aybabtu.com>
36699 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
36700 to Linux, simply abort telling the user it's no longer supported.
36702 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
36704 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
36705 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
36706 `freebsd_loadenv' only when devices.hints exist.
36708 2009-04-13 Pavel Roskin <proski@gnu.org>
36710 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
36712 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
36714 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
36716 (grub_drive): Likewise.
36718 2009-04-13 David S. Miller <davem@davemloft.net>
36720 * kern/sparc64/ieee1275/ieee1275.c: New file.
36721 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
36722 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
36723 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
36724 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
36725 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
36726 grub_ieee1275_alloc_physmem): Declare new exported functions.
36728 * include/grub/sparc64/ieee1275/loader.h: New file.
36729 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36730 * include/grub/sparc64/kernel.h: Likewise.
36731 * loader/sparc64/ieee1275/linux.c: Likewise.
36733 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
36734 (grub_fstest_SOURCES): Likewise.
36736 * util/hostdisk.c (make_device_name): Do not make any assumptions
36737 about the length of drive names.
36739 * kern/dl.c (grub_dl_load_file): Close file immediately when
36740 we are done using it.
36742 2009-04-12 David S. Miller <davem@davemloft.net>
36744 * kern/misc.c (grub_ltoa): Fix cast when handling negative
36745 values. Noticed by Pavel Roskin.
36747 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
36750 * genmk.rb: Add more flexible image type specification, also
36751 pass --strip-unneeded to objcopy.
36752 * conf/i386-pc.rmk: Use *_FORMAT.
36753 * conf/i386-pc.mk: Rebuilt.
36755 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
36756 (OFDISK_HASH_SZ): Define.
36757 (ofdisk_hash): New hash table.
36758 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
36759 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
36760 instead of device phandle which is not unique.
36762 * kern/sparc64/ieee1275/init.c: Delete, replace with...
36763 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
36764 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
36765 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
36766 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
36767 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
36768 GRUB_KERNEL_MACHINE_DATA_END): Define.
36769 (grub_kernel_image_size, grub_total_module_size): Declare.
36771 2009-04-12 Pavel Roskin <proski@gnu.org>
36773 * configure.ac: Change the logic when we check for target tools.
36774 Do it when the target is specified and it's different from the
36775 specified value of the host.
36777 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
36779 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
36780 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
36781 GNU/kFreeBSD. Check if a device is a character device. Use
36782 DIOCGMEDIASIZE to get the size.
36783 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
36784 support for GNU/kFreeBSD.
36785 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
36786 is a character device instead of a block device. Add support for
36787 FreeBSD device names.
36789 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36790 is a character device instead of a block device.
36792 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36793 is a character device instead of a block device.
36795 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36797 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36798 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36799 FreeBSD. Check if a device is a character device. Use
36800 DIOCGMEDIASIZE to get the size.
36801 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36802 support for FreeBSD.
36803 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36804 is a character device instead of a block device. Add support for
36805 FreeBSD device names.
36807 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36808 a character device instead of a block device.
36809 (grub_util_check_char_device): New function.
36811 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36812 a character device instead of a block device.
36814 * include/grub/util/getroot.h (grub_util_check_char_device): New
36817 2009-04-11 David S. Miller <davem@davemloft.net>
36819 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36821 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36822 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36823 function, if present.
36824 (__bswapdi2): Likewise.
36826 * include/grub/sparc64/ieee1275/boot.h: New file.
36827 * boot/sparc64/ieee1275/boot.S: Likewise.
36828 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36830 * kern/misc.c (grub_ltoa): New function.
36831 (grub_vsprintf): Use it to format 'long' integers.
36833 2009-04-10 David S. Miller <davem@davemloft.net>
36835 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36836 slots are of type grub_ieee1275_cell_t.
36837 (grub_nand_read): Likewise.
36838 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36839 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36840 macros are used to compare values in arg/ret block of the call.
36841 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36842 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36843 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36844 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36845 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36846 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36847 grub_ieee1275_close, grub_ieee1275_set_property,
36848 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36849 grub_ieee1275_cell_t.
36850 * kern/ieee1275/openfw.c (grub_map): Likewise.
36851 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36852 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36854 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36855 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36856 (grub_devalias_iterate): Likewise.
36858 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
36862 * fs/ufs.c (INODE_NBLOCKS): new definition
36863 (struct grub_ufs_dirent): added fields for non-BSD dirents
36864 (grub_ufs_get_file_block): fixed double indirect handling
36865 (grub_ufs_lookup_symlink): use more robust way to determine whether
36867 (grub_ufs_find_file): support for non-BSD dirents
36868 (grub_ufs_dir): support for non-BSD dirents
36870 2009-04-10 Bean <bean123ch@gnail.com>
36872 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36873 attribute, otherwise the size would be wrong for i386 platform.
36875 * include/grub/pci.h (grub_pci_read_word): New inline function.
36876 (grub_pci_read_byte): Likewise.
36877 (grub_pci_write): Likewise.
36878 (grub_pci_write_word): Likewise.
36879 (grub_pci_write_byte): Likewise.
36881 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36883 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36884 (find_framebuf): Scan pci to locate the frame buffer address.
36886 * commands/efi/fixvideo.c: New file.
36888 * commands/efi/loadbios.c: Likewise.
36890 * commands/memrw.c: Likewise.
36892 * util/grub-dumpbios.in: Likewise.
36894 * conf/common.rmk (grub-dumpbios): New utility.
36895 (pkglib_MODULES): New module memrw.mod.
36896 (memrw_mod_SOURCE): New macro.
36897 (memrw_mod_CFLAGS): Likewise.
36898 (memrw_mod_LDFLAGS): Likewise.
36900 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
36902 (loadbios_mod_SOURCE): New macro.
36903 (loadbios_mod_CFLAGS): Likewise.
36904 (loadbios_mod_LDFLAGS): Likewise.
36905 (fixvideo_mod_SOURCE): Likewise.
36906 (fixvideo_mod_CFLAGS): Likewise.
36907 (fixvideo_mod_LDFLAGS): Likewise.
36909 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
36911 (loadbios_mod_SOURCE): New macro.
36912 (loadbios_mod_CFLAGS): Likewise.
36913 (loadbios_mod_LDFLAGS): Likewise.
36914 (fixvideo_mod_SOURCE): Likewise.
36915 (fixvideo_mod_CFLAGS): Likewise.
36916 (fixvideo_mod_LDFLAGS): Likewise.
36918 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
36920 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
36922 2009-04-07 David S. Miller <davem@davemloft.net>
36924 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
36925 support for R_SPARC_OLO10 relocations. Fix compile warning for
36926 R_SPARC_WDISP30 case.
36927 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
36929 2009-04-06 Pavel Roskin <proski@gnu.org>
36931 * include/grub/misc.h (ARRAY_SIZE): New macro.
36932 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
36934 * loader/i386/linux.c (allocate_pages): Use free_pages().
36935 (grub_linux_unload): Don't use free_pages().
36936 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
36937 wrong index. Treat all other modes as text modes.
36938 (grub_cmd_linux): Initialize vid_mode unconditionally to
36939 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
36941 * commands/help.c (print_command_help): Use cmd->prio, not
36942 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
36944 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
36948 * parttool/pcpart.c: new file
36949 * commands/parttool.c: likewise
36950 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
36951 (parttool_mod_SOURCES): new variable
36952 (parttool_mod_CFLAGS): likewise
36953 (parttool_mod_LDFLAGS): likewise
36954 (pcpart_mod_SOURCES): likewise
36955 (pcpart_mod_CFLAGS): likewise
36956 (pcpart_mod_LDFLAGS): likewise
36957 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
36958 and parttool/pcpart.c
36959 * conf/i386-efi.rmk: likewise
36960 * conf/i386-ieee1275.rmk: likewise
36961 * conf/i386-pc.rmk: likewise
36962 * conf/powerpc-ieee1275.rmk: likewise
36963 * conf/sparc64-ieee1275.rmk: likewise
36964 * conf/x86_64-ieee1275.rmk: likewise
36966 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36968 Support for mtime and further expandability of dir command
36970 * include/grub/lib/datetime.h: moved to ...
36971 * include/grub/datetime.h: ... moved here and added
36972 declaration of grub_unixtime2datetime. All users updated
36973 * include/grub/fs.h: new syntax for dir and mtime functions in
36975 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
36976 and GRUB_FSHELP_FLAGS_MASK
36977 * commands/ls.c (grub_ls_list_files): Write mtime in long format
36978 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
36979 (grub_ext2_mtime): new function
36980 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
36981 (grub_hfsplus_mtime): new function
36982 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
36983 (GRUB_UFS_ATTR_FILE): likewise
36984 (GRUB_UFS_ATTR_LNK): likewise
36985 (struct grub_ufs_sblock): new fields mtime
36986 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
36988 (grub_ufs_dir): mtime support
36989 (grub_ufs_mtime): new function
36990 * fs/affs.c (grub_affs_dir): use new dir syntax
36991 * fs/afs.c (grub_afs_dir): likewise
36992 * fs/cpio.c (grub_cpio_dir): likewise
36993 * fs/fat.c (grub_fat_find_dir): likewise
36994 * fs/hfs.c (grub_hfs_dir): likewise
36995 * fs/iso9660.c (grub_iso9660_dir): likewise
36996 * fs/jfs.c (grub_jfs_dir): likewise
36997 * fs/minix.c (grub_minix_dir): likewise
36998 * fs/ntfs.c (grub_ntfs_dir): likewise
36999 * fs/reiserfs.c (grub_reiserfs_dir): likewise
37000 * fs/sfs.c (grub_sfs_dir): likewise
37001 * fs/xfs.c (grub_xfs_dir): likewise
37002 * util/hostfs.c (grub_hostfs_dir): likewise
37003 * lib/datetime.c: moved to ...
37004 * normal/datetime.c: ... moved here
37005 (grub_unixtime2datetime): new function
37006 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
37007 * normal/completion.c (iterate_dir): use new dir syntax
37008 * normal/misc.c (grub_normal_print_device_info): tell the
37009 last modification time of a volume
37010 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
37011 * conf/common.rmk: added lib/datetime.c to ls.mod
37012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
37013 (normal_mod_SOURCES): likewise
37014 (datetime_mod_SOURCES): Removed lib/datetime.c
37015 * conf/i386-efi.rmk: likewise
37016 * conf/i386-ieee1275.rmk: likewise
37017 * conf/i386-pc.rmk: likewise
37018 * conf/powerpc-ieee1275.rmk: likewise
37019 * conf/sparc64-ieee1275.rmk: likewise
37020 * conf/x86_64-efi.rmk: likewise
37022 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
37024 Trim trailing spaces in FAT label and support mtools-like labels
37026 * fs/fat.c (grub_fat_iterate_dir): New function based
37027 on grub_fat_find_dir
37028 (grub_fat_find_dir): use grub_fat_iterate_dir
37029 (grub_fat_label): likewise
37031 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
37033 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
37035 remove extraneous kernel_elf_HEADERS
37037 2009-04-04 Bean <bean123ch@gnail.com>
37039 * include/grub/util/misc.h: Add dummy function fsync for mingw.
37041 * util/misc.c: Likewise.
37043 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37045 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
37046 instead of grub_printf.
37048 2009-04-03 Robert Millan <rmh@aybabtu.com>
37050 * loader/i386/linux.c (grub_linux_setup_video): Fill
37051 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
37052 values from `mode info' structure instead of hardcoded
37055 2009-04-01 Pavel Roskin <proski@gnu.org>
37057 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
37059 * genmk.rb: Likewise.
37060 * configure.ac: Likewise.
37062 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
37064 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
37065 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
37067 2009-04-01 David S. Miller <davem@davemloft.net>
37069 * normal/sparc64/setjmp.S: Fix setjmp implementation.
37070 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
37071 (grub_setjmp): Mark with 'returns_twice' attribute.
37072 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
37073 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
37074 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
37076 2009-04-01 Robert Millan <rmh@aybabtu.com>
37078 Reapply fix from 2008-07-28 which was accidentally reverted; also
37079 perform the same fix to a similar check in same function.
37081 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37082 with the same number are found, just use issue a warning with
37083 grub_dprintf(), as this error has been reported to be non-fatal.
37085 2009-03-31 Pavel Roskin <proski@gnu.org>
37087 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
37088 for cross-compilation.
37090 2009-03-30 Robert Millan <rmh@aybabtu.com>
37092 Fix i386-ieee1275 build.
37094 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
37095 Remove declaration.
37097 2009-03-30 Pavel Roskin <proski@gnu.org>
37099 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
37100 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
37101 zero-terminated, rely only on the strlen value. Fix comparison
37102 of strings differing in length.
37104 2009-03-30 Robert Millan <rmh@aybabtu.com>
37106 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
37107 checking for abi version. Improve error messages on BIOS to notify
37108 user about `linux16' command.
37110 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
37114 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
37115 in case of collision
37116 * disk/scsi.c (grub_scsi_open): free scsi in case of error
37118 2009-03-29 Robert Millan <rmh@aybabtu.com>
37120 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
37121 set `vid_mode' accordingly.
37122 (grub_linux_boot): Process `vid_mode' and set video mode.
37124 2009-03-29 Robert Millan <rmh@aybabtu.com>
37126 * util/grub.d/10_linux.in (linux_entry): New function.
37127 Factorize generation of Linux boot entries.
37129 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
37131 Make the format of Environment Block plain text. The boot loader
37132 part is not tested well yet.
37134 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
37136 (envblk): Likewise.
37137 (usage): Remove "info" and "clear". Add "unset". Update the
37138 description of "set", as this does not delete variables any
37140 (create_envblk_file): Complete rewrite.
37141 (open_envblk_file): Likewise.
37142 (cmd_info): Removed.
37143 (cmd_list): Likewise.
37144 (cmd_set): Likewise.
37145 (cmd_clear): Likewise.
37146 (list_variables): New function.
37147 (write_envblk): Likewise.
37148 (set_variables): Likewise.
37149 (unset_variables): Likewise.
37150 (main): Complete rewrite.
37152 * commands/loadenv.c (buffer): Removed.
37153 (envblk): Likewise.
37154 (open_envblk_file): New function.
37155 (read_envblk_file): Complete rewrite.
37156 (grub_cmd_load_env): Likewise.
37157 (grub_cmd_list_env): Likewise.
37158 (struct blocklist): New struct.
37159 (free_blocklists): New function.
37160 (check_blocklists): Likewise.
37161 (write_blocklists): Likewise.
37162 (grub_cmd_save_env): Complete rewrite.
37164 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
37165 a plain text signature.
37166 (GRUB_ENVBLK_MAXLEN): Removed.
37167 (struct grub_envblk): Complete rewrite.
37168 (grub_envblk_find): Removed.
37169 (grub_envblk_insert): Likewise.
37170 (grub_envblk_open): New prototype.
37171 (grub_envblk_set): Likewise.
37172 (grub_envblk_delete): Put const to VALUE.
37173 (grub_envblk_iterate): Put const to NAME and VALUE.
37174 (grub_envblk_close): New prototype.
37175 (grub_envblk_buffer): New inline function.
37176 (grub_envblk_size): Likewise.
37178 * lib/envblk.c: Include grub/mm.h.
37179 (grub_env_find): Removed.
37180 (grub_envblk_open): New function.
37181 (grub_envblk_close): Likewise.
37182 (escaped_value_len): Likewise.
37183 (find_next_line): Likewise.
37184 (grub_envblk_insert): Removed.
37185 (grub_envblk_set): New function.
37186 (grub_envblk_delete): Complete rewrite.
37187 (grub_envblk_iterate): Likewise.
37189 2009-03-28 Robert Millan <rmh@aybabtu.com>
37191 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
37192 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
37193 variables. Use 16-bit loader.
37194 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
37196 * kern/i386/loader.S (grub_linux_boot): Rename to ...
37197 (grub_linux16_boot): ... this. Update all users.
37198 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
37199 (grub_linux_boot): ... this. Update all users.
37201 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
37202 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
37203 commands to `linux16' and `initrd16'.
37204 (GRUB_MOD_FINI(linux)): Rename to ...
37205 (GRUB_MOD_FINI(linux16)): ... this.
37207 2009-03-24 Pavel Roskin <proski@gnu.org>
37209 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
37210 not just for compilation.
37212 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
37214 Move multiboot helper out of kernel
37216 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
37217 `loader/i386/multiboot_helper.S'.
37218 * conf/i386-coreboot.rmk: Likewise
37219 * conf/i386-ieee1275.rmk: Likewise
37221 * kern/i386/loader.S: Move multiboot helpers from here...
37222 * loader/i386/multiboot_helper.S: ...moved here
37223 * include/grub/i386/loader.h: Move declarations of multiboot
37224 helpers from here...
37225 * include/grub/i386/multiboot.h: ...moved here
37226 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
37228 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37230 * kern/env.c (grub_env_context_open): Added an argument to specify
37231 whether a new context inherits exported variables from current
37232 one. This is useful when making a sandbox to interpret a config
37234 All callers updated.
37236 * include/grub/env.h (grub_env_context_open): Updated the prototype.
37238 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37240 * kern/env.c (grub_env_context_close): Fix memory leaks.
37242 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37244 * normal/main.c (grub_normal_execute): Added an argument
37245 BATCH to specify if an interactive interface should be provided
37246 after reading a config file.
37247 All callers updated.
37248 (read_command_list): Prevent being executed twice.
37249 (read_fs_list): Likewise.
37251 * include/grub/normal.h (grub_normal_execute): Updated the
37254 2009-03-22 Pavel Roskin <proski@gno.org>
37256 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
37258 * kern/i386/pc/startup.S: Likewise.
37259 * kern/i386/efi/startup.S: Likewise.
37260 * kern/i386/ieee1275/startup.S: Likewise.
37261 * kern/i386/coreboot/startup.S: Likewise.
37262 * kern/x86_64/efi/startup.S: Likewise.
37264 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
37265 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
37266 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
37268 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
37270 Bugfixes in multiboot for bugs uncovered by solaris kernel.
37272 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
37274 Use vaddr of correct segment for entry_point.
37276 2009-03-21 Bean <bean123ch@gmail.com>
37278 * commands/blocklist.c: Add include file <grub/command.h>, remove
37279 <grub/normal.h> and <grub/arg.h>.
37280 (grub_cmd_blocklist): Use the new command interface.
37281 (GRUB_MOD_INIT): Likewise.
37282 (GRUB_MOD_FINI): Likewise.
37283 * commands/boot.c: Likewise.
37284 * commands/cat.c: Likewise.
37285 * commands/cmp.c: Likewise.
37286 * commands/configfile.c: Likewise.
37287 * commands/crc.c: Likewise.
37288 * commands/echo.c: Likewise.
37289 * commands/halt.c: Likewise.
37290 * commands/handler.c: Likewise.
37291 * commands/hdparm.c: Likewise.
37292 * commands/help.c: Likewise.
37293 * commands/hexdump.c: Likewise.
37294 * commands/loadenv.c: Likewise.
37295 * commands/ls.c: Likewise.
37296 * commands/lsmmap.c: Likewise.
37297 * commands/lspci.c: Likewise.
37298 * commands/loadenv.c: Likewise.
37299 * commands/read.c: Likewise.
37300 * commands/reboot.c: Likewise.
37301 * commands/search.c: Likewise.
37302 * commands/sleep.c: Likewise.
37303 * commands/test.c: Likewise.
37304 * commands/usbtest.c: Likewise.
37305 * commands/videotest.c: Likewise.
37306 * commands/i386/cpuid.c: Likewise.
37307 * commands/i386/pc/halt.c: Likewise.
37308 * commands/i386/pc/play.c: Likewise.
37309 * commands/i386/pc/pxecmd.c: Likewise.
37310 * commands/i386/pc/vbeinfo.c: Likewise.
37311 * commands/i386/pc/vbetest.c: Likewise.
37312 * commands/ieee1275/suspend.c: Likewise.
37313 * disk/loopback.c: Likewise.
37314 * font/font_cmd.c: Likewise.
37315 * hello/hello.c: Likewise.
37316 * loader/efi/appleloader.c: Likewise.
37317 * loader/efi/chainloader.c: Likewise.
37318 * loader/i386/bsd.c: Likewise.
37319 * loader/i386/efi/linux.c: Likewise.
37320 * loader/i386/ieee1275/linux.c: Likewise.
37321 * loader/i386/linux.c: Likewise.
37322 * loader/i386/pc/chainloader.c: Likewise.
37323 * loader/i386/pc/linux.c: Likewise.
37324 * loader/powerpc/ieee1275/linux.c: Likewise.
37325 * loader/multiboot_loader.c: Likewise.
37326 * term/gfxterm.c: Likewise.
37327 * term/i386/pc/serial.c: Likewise.
37328 * term/terminfo.c: Likewise.
37330 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
37331 * term/i386/pc/vga.c: Likewise.
37332 * video/readers/jpeg.c: Likewise.
37333 * video/readers/png.c: Likewise.
37334 * video/readers/tga.c: Likewise.
37336 * util/grub-fstest (cmd_loopback): Removed.
37337 (cmd_blocklist): Likewise.
37338 (cmd_ls): Likewise.
37339 (grub_register_command): Likewise.
37340 (grub_unregister_command): Likewise.
37341 (execute_command): Use grub_command_find to locate command and execute
37344 * include/grub/efi/chainloader.h: Removed.
37345 * loader/efi/chainloader_normal.c: Likewise.
37346 * loader/i386/bsd_normal.c: Likewise.
37347 * loader/i386/pc/chainloader_normal.c: Likewise.
37348 * loader/i386/pc/multiboot_normal.c: Likewise.
37349 * loader/linux_normal.c: Likewise.
37350 * loader/multiboot_loader_normal.c: Likewise.
37351 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37353 * gencmdlist.sh: Scan new registration command grub_register_extcmd
37354 and grub_register_command_p1.
37356 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
37357 kern/command.c, lib/arg.c and commands/extcmd.c.
37358 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
37359 (minicmd_mod_SOURCES): New variable.
37360 (minicmd_mod_CFLAGS): Likewise.
37361 (minicmd_mod_LDFLAGS): Likewise.
37362 (extcmd_mod_SOURCES): Likewise.
37363 (extcmd_mod_CFLAGS): Likewise.
37364 (extcmd_mod_LDFLAGS): Likewise.
37365 (boot_mod_SOURCES): Removed.
37366 (boot_mod_CFLAGS): Likewise.
37367 (boot_mod_LDFLAGS): Likewise.
37369 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
37371 (kernel_img_HEADERS): Add command.h.
37372 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
37373 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
37375 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
37376 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
37377 remove the corresponding normal mode command.
37378 (normal_mod_SOURCES): Remove normal/arg.c.
37379 * conf/i386-coreboot.rmk: Likewise.
37380 * conf/i386-efi.rmk: Likewise.
37381 * conf/i386-ieee1275.rmk: Likewise.
37382 * conf/powerpc-ieee1275.rmk: Likewise.
37383 * conf/x86_64-efi.rmk: Likewise.
37385 * include/grub/arg.h: Move from here ...
37386 * include/grub/lib/arg.h: ... to here.
37388 * normal/arg.c: Move from here ...
37389 * lib/arg.c: ... to here.
37391 * commands/extcmd.c: New file.
37392 * commands/minicmd.c: Likewise.
37393 * include/grub/command.h: Likewise.
37394 * include/grub/extcmd.h: Likewise.
37395 * kern/command.c: Likewise.
37396 * kern/corecmd.c: Likewise.
37398 * kern/list.c (grub_list_iterate): Return int instead of void.
37399 (grub_list_insert): New function.
37400 (grub_prio_list_insert): Likewise.
37402 * kern/rescue.c (grub_rescue_command): Removed.
37403 (grub_rescue_command_list): Likewise.
37404 (grub_rescue_register_command): Likewise.
37405 (grub_rescue_unregister_command): Likewise.
37406 (grub_rescue_cmd_boot): Move to minicmd.c
37407 (grub_rescue_cmd_help): Likewise.
37408 (grub_rescue_cmd_info): Likewise.
37409 (grub_rescue_cmd_boot): Likewise.
37410 (grub_rescue_cmd_testload): Likewise.
37411 (grub_rescue_cmd_dump): Likewise.
37412 (grub_rescue_cmd_rmmod): Likewise.
37413 (grub_rescue_cmd_lsmod): Likewise.
37414 (grub_rescue_cmd_exit): Likewise.
37415 (grub_rescue_print_devices): Moved to corecmd.c.
37416 (grub_rescue_print_files): Likewise.
37417 (grub_rescue_cmd_ls): Likewise.
37418 (grub_rescue_cmd_insmod): Likewise.
37419 (grub_rescue_cmd_set): Likewise.
37420 (grub_rescue_cmd_unset): Likewise.
37421 (attempt_normal_mode): Use grub_command_find to get normal module.
37422 (grub_enter_rescue_mode): Use grub_register_core_commands to register
37423 commands, remove grub_rescue_register_command calls.
37425 * normal/command.c (grub_register_command): Removed.
37426 (grub_unregister_command): Likewise.
37427 (grub_command_find): Likewise.
37428 (grub_iterate_commands): Likewise.
37429 (rescue_command): Likewise.
37430 (export_command): Moved to corecmd.c.
37431 (set_command): Removed.
37432 (unset_command): Likewise.
37433 (insmod_command): Likewise.
37434 (rmmod_command): Likewise.
37435 (lsmod_command): Likewise.
37436 (grub_command_init): Likewise.
37438 * normal/completion.c (iterate_command): Use cmd->prio to check for
37440 (complete_arguments): Use grub_extcmd_t structure to find options.
37441 (grub_normal_do_completion): Change function grub_iterate_commands to
37442 grub_command_iterate.
37444 * normal/execute.c (grub_script_execute_cmd): No need to parse
37447 * normal/main.c (grub_dyncmd_dispatcher): New function.
37448 (read_command_list): Register unload commands as dyncmd.
37449 (grub_cmd_normal): Use new command interface, register rescue,
37450 unregister normal at entry, register normal, unregister rescue at exit.
37452 * include/grub/list.h (grub_list_test_t): New type.
37453 (grub_list_iterate): Return int instead of void.
37454 (grub_list_insert): New function.
37455 (GRUB_AS_NAMED_LIST_P): New macro.
37456 (GRUB_AS_PRIO_LIST): Likewise.
37457 (GRUB_AS_PRIO_LIST_P): Likewise.
37458 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
37459 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
37460 (grub_prio_list): New structure.
37461 (grub_prio_list_insert): New function.
37462 (grub_prio_list_remove): New inline function.
37464 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
37465 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
37466 (GRUB_COMMAND_FLAG_MENU): Likewise.
37467 (GRUB_COMMAND_FLAG_BOTH): Likewise.
37468 (GRUB_COMMAND_FLAG_TITLE): Likewise.
37469 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
37470 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
37471 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
37472 (grub_command): Likewise.
37473 (grub_register_command): Likewise.
37474 (grub_command_find): Likewise.
37475 (grub_iterate_commands): Likewise.
37476 (grub_command_init): Likewise.
37477 (grub_arg_parse): Likewise.
37478 (grub_arg_show_help): Likewise.
37480 * include/grub/rescue.h (grub_rescue_register_command): Removed.
37481 (grub_rescue_unregister_command): Likewise.
37483 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
37484 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
37485 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
37487 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
37488 grub_rescue_cmd_initrd.
37489 * include/grub/i386/loader.h: Likewise.
37490 * include/grub/x86_64/loader.h: Likewise.
37492 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
37494 2009-03-21 Bean <bean123ch@gmail.com>
37496 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
37497 instead of stat in mingw environment.
37499 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
37501 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
37503 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
37506 2009-03-21 Bean <bean123ch@gmail.com>
37508 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
37509 out of range error.
37511 2009-03-18 Michel Dänzer <michel@daenzer.net>
37513 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
37514 checking inode flags for EXT4_EXTENTS_FLAG.
37516 2009-03-18 Robert Millan <rmh@aybabtu.com>
37518 * loader/i386/linux.c: Include `<grub/video.h>' and
37519 `<grub/i386/pc/vbe.h>'..
37520 (grub_linux_setup_video): New function. Loosely based on the EFI one.
37521 (grub_linux32_boot): Attempt to configure video settings with
37522 grub_linux_setup_video().
37523 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
37524 to avoid grub_console_fini() which would step out of graphical mode
37527 2009-03-14 Robert Millan <rmh@aybabtu.com>
37529 Fix build on powerpc.
37530 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
37532 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
37534 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
37535 background image command.
37537 2009-03-12 Colin D Bennett <colin@gibibit.com>
37539 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
37540 (grub_gfxterm_putchar): Extract pairs of identical calls to
37541 draw_cursor out of conditional blocks.
37543 2009-03-11 Pavel Roskin <proski@gnu.org>
37545 * fs/hfs.c (grub_hfs_strncasecmp): New function.
37546 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
37548 2009-03-11 Robert Millan <rmh@aybabtu.com>
37550 * loader/i386/multiboot_elfxx.c
37551 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
37553 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
37555 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
37558 2009-03-11 Robert Millan <rmh@aybabtu.com>
37560 * loader/i386/multiboot.c (code_size): New variable.
37561 (grub_multiboot): Define offsets by adding to `code_size' rather
37562 than subtracting from `grub_multiboot_payload_size'. Provide
37563 4-byte alignment to MBI and others by increasing
37564 `boot_loader_name_length' appropriately.
37566 * loader/i386/multiboot_elfxx.c
37567 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
37569 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
37571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
37574 2009-03-08 Robert Millan <rmh@aybabtu.com>
37576 Make loader/i386/linux.c usable on i386-pc again.
37578 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
37580 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
37583 2009-03-07 Bean <bean123ch@gmail.com>
37585 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
37588 2009-03-06 Robert Millan <rmh@aybabtu.com>
37590 Fix display issue on terminals with screen size other than 80x25
37591 (e.g. gfxterm with resolution higher than 640x480).
37593 * normal/main.c (grub_normal_init_page): Display title text in a
37594 position relative to the center of the terminal instead of relying
37595 on a hardcoded offset.
37597 2009-03-04 Robert Millan <rmh@aybabtu.com>
37599 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
37602 * Makefile.in (host_kernel): New variable.
37603 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
37604 scripts instead of just the windows one.
37605 * configure.ac: Initialize and AC_SUBST `host_kernel'.
37607 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
37609 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
37611 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37612 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37614 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37615 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37616 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37618 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
37620 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
37621 or if there's no space for the disk label and print the partition number on a
37624 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
37626 * util/misc.c: Include <time.h>.
37627 (grub_millisleep): New function.
37629 2009-03-04 Bean <bean123ch@gmail.com>
37631 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
37632 another option -mno-red-zone.
37634 * commands/handler.c: Change module description.
37636 * kern/handler.c: Add missing space at the end of description line.
37638 * kern/list.c: Likewise.
37640 2009-03-03 Robert Millan <rmh@aybabtu.com>
37642 Move more components to the relocation area, and fix mbi pointer
37643 handling to use the destination rather than the origin (thanks to
37644 Vladimir Serbinenko for spotting).
37646 * loader/i386/multiboot.c (mbi_dest): New variable.
37647 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
37648 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
37651 2009-03-01 Bean <bean123ch@gmail.com>
37653 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
37654 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
37655 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
37656 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
37658 * loader/i386/efi/linux.c (acpi_guid): New variable.
37659 (acpi_guid): Likewise.
37660 (EBDA_SEG_ADDR): New constant.
37661 (LOW_MEM_ADDR): Likewise.
37662 (FAKE_EBDA_SEG): Likewise.
37663 (fake_bios_data): New function.
37664 (grub_linux_boot): Call fake_bios_data.
37666 2009-03-01 Bean <bean123ch@gmail.com>
37668 * commands/terminal.c: Removed.
37670 * commands/handler.c: New file.
37672 * include/grub/list.h: Likewise.
37674 * include/grub/handler.h: Likewise.
37676 * kern/list.c: Likewise.
37678 * kern/handler.c: Likewise.
37680 * kern/term.h: Include header file <grub/handler.h>.
37681 (grub_term_input): Move next field to the beginning.
37682 (grub_term_output): Likewise.
37683 (grub_term_input_class): New variable.
37684 (grub_term_output_class): Likewise.
37685 (grub_term_register_input): Changed to inline function.
37686 (grub_term_register_output): Likewise.
37687 (grub_term_unregister_input): Likewise.
37688 (grub_term_unregister_output): Likewise.
37689 (grub_term_set_current_input): Likewise.
37690 (grub_term_set_current_output): Likewise.
37691 (grub_term_get_current_input): Likewise.
37692 (grub_term_get_current_output): Likewise.
37693 (grub_term_iterate_input): Removed.
37694 (grub_term_iterate_output): Likewise.
37696 * kern/term.c (grub_term_list_input): Removed.
37697 (grub_term_list_output): Likewise.
37698 (grub_term_input_class): New variable.
37699 (grub_term_output_class): Likewise.
37700 (grub_cur_term_input): Change variable as macro.
37701 (grub_cur_term_output): Likewise.
37702 (grub_term_register_input): Removed.
37703 (grub_term_register_output): Likewise.
37704 (grub_term_unregister_input): Likewise.
37705 (grub_term_unregister_output): Likewise.
37706 (grub_term_set_current_input): Likewise.
37707 (grub_term_set_current_output): Likewise.
37708 (grub_term_iterate_input): Likewise.
37709 (grub_term_iterate_output): Likewise.
37710 (grub_term_get_current_input): Likewise.
37711 (grub_term_get_current_output): Likewise.
37713 * util/grub-editenv.c: Include header file <grub/handler.h>.
37714 (grub_term_get_current_input): Removed.
37715 (grub_term_get_current_output): Likewise.
37716 (grub_term_input_class): New variable.
37717 (grub_term_output_class): Likewise.
37719 * util/grub-fstest.c (grub_term_get_current_input): Removed.
37720 (grub_term_get_current_output): Likewise.
37721 (grub_term_input_class): New variable.
37722 (grub_term_output_class): Likewise.
37724 * util/grub-probe.c (grub_term_get_current_input): Removed.
37725 (grub_term_get_current_output): Likewise.
37726 (grub_term_input_class): New variable.
37727 (grub_term_output_class): Likewise.
37729 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
37730 (grub_term_get_current_output): Likewise.
37731 (grub_term_input_class): New variable.
37732 (grub_term_output_class): Likewise.
37734 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
37735 (terminal_mod_SOURCES): Likewise.
37736 (terminal_mod_CFLAGS): Likewise.
37737 (terminal_mod_LDFLAGS): Likewise.
37739 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
37741 (kernel_img_SOURCES): Add list.c and handler.c.
37742 (kernel_img_HEADERS): Add list.h and handler.h.
37744 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37746 (kernel_mod_SOURCES): Add list.c and handler.c.
37747 (kernel_mod_HEADERS): Add list.h and handler.h.
37749 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
37751 (kernel_elf_SOURCES): Add list.c and handler.c.
37752 (kernel_elf_HEADERS): Add list.h and handler.h.
37754 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37756 (kernel_elf_SOURCES): Add list.c and handler.c.
37757 (kernel_elf_HEADERS): Add list.h and handler.h.
37759 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37761 (kernel_mod_SOURCES): Add list.c and handler.c.
37762 (kernel_mod_HEADERS): Add list.h and handler.h.
37764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37766 (kernel_elf_SOURCES): Add list.c and handler.c.
37767 (kernel_elf_HEADERS): Add list.h and handler.h.
37769 2009-02-27 Robert Millan <rmh@aybabtu.com>
37771 Factorize elf32 / elf64 code in Multiboot loader. This will
37772 prevent it from getting out of sync again.
37774 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
37775 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
37776 grub_multiboot_load_elf64): Move from here ...
37777 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
37778 grub_multiboot_load_elf): ... to here (new file).
37780 2009-02-27 Robert Millan <rmh@aybabtu.com>
37782 * util/grub.d/10_linux.in: Rename "single-user mode" to
37785 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37787 Don't leak in SCSI code.
37788 * disk/scsi.c (grub_scsi_close): free `scsi'.
37790 2009-02-27 Robert Millan <rmh@aybabtu.com>
37792 * loader/i386/pc/multiboot.c: Move from here ...
37793 * loader/i386/multiboot.c: ... to here. Update all users.
37795 2009-02-27 Robert Millan <rmh@aybabtu.com>
37797 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37798 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37800 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
37802 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37805 2009-02-27 Robert Millan <rmh@aybabtu.com>
37807 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37808 `0x' qualifier as 0 when base is specified as parameter).
37810 2009-02-24 Bean <bean123ch@gmail.com>
37812 * configure.ac: Check for -mcmodel=large in x86_64 target.
37814 * include/grub/efi/api.h (efi_call_10): New macro.
37815 (efi_wrap_10): New function.
37817 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37818 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37819 (GRUB_PE32_REL_BASED_LOW): Likewise.
37820 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37821 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37822 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37823 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37824 (GRUB_PE32_REL_BASED_REL): Likewise.
37825 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37826 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37827 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37829 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37832 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37833 (efi_wrap_10): New function.
37835 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37837 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37838 MB/MBP model (NV chipset).
37839 (devdata_devs): Add devpath_5 to the list.
37841 * load/i386/efi/linux.c (video_base): Remove variable.
37842 (RGB_MASK): New macro.
37843 (RGB_MAGIC): Likewise.
37844 (LINE_MIN): Likewise.
37845 (LINE_MAX): Likewise.
37846 (FBTEST_STEP): Likewise.
37847 (FBTEST_COUNT): Likewise.
37848 (fb_list): New variable.
37849 (grub_find_video_card): Remove function.
37850 (find_framebuf): New function.
37851 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37854 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37855 problem for x86_64.
37857 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37859 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37861 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37864 2009-02-22 Robert Millan <rmh@aybabtu.com>
37866 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37867 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37868 in our relocation, instead of using it directly from heap. Also
37869 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37871 2009-02-21 Robert Millan <rmh@aybabtu.com>
37873 Implement USB keyboard support (based on patch by Marco Gerards)
37875 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37876 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37877 (usb_keyboard_mod_LDFLAGS): New variables.
37879 * term/usb_keyboard.c: New file.
37881 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37883 Corrected wrong declaration
37885 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37887 2009-02-14 Christian Franke <franke@computer.org>
37889 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37890 (grub_lspci_iter): Print class code and programming interface byte.
37892 2009-02-14 Christian Franke <franke@computer.org>
37894 * gendistlist.sh: Ignore `.svn' directories.
37896 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
37898 * fs/fat.c: Add 2009 to Copyright line.
37900 2009-02-14 Christian Franke <franke@computer.org>
37902 * commands/hdparm.c: New file. Provides `hdparm' command
37903 which sends ATA commands via grub_disk_ata_pass_through ().
37905 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37907 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37908 and <grub/cpu/io.h> to include/grub/ata.h.
37909 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37910 (GRUB_CDROM_SECTOR_SIZE): Remove.
37911 (GRUB_ATA_*): Move to include/grub/ata.h.
37912 (GRUB_ATAPI_*): Likewise.
37913 (enum grub_ata_commands): Likewise.
37914 (enum grub_ata_timeout_milliseconds): Likewise.
37915 (struct grub_ata_device): Likewise.
37916 (grub_ata_regset): Likewise.
37917 (grub_ata_regget): Likewise.
37918 (grub_ata_regset2): Likewise.
37919 (grub_ata_regget2): Likewise.
37920 (grub_ata_check_ready): Likewise.
37921 (grub_ata_wait_not_busy): Remove static, exported in
37922 include/grub/ata.h.
37923 (grub_ata_wait_drq): Likewise.
37924 (grub_ata_pio_read): Likewise.
37926 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
37927 function for hdparm.mod.
37929 * include/grub/ata.h: New file, contains declarations from
37931 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
37933 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
37934 (grub_disk_ata_pass_through): New exported variable.
37936 * kern/disk.c (grub_disk_ata_pass_through): New variable.
37938 2009-02-13 Colin D Bennett <colin@gibibit.com>
37940 Support multiple fallback entries, and provide an API to support
37941 executing default+fallback menu entries. Renamed the `terminal' menu
37944 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
37945 variable declaration.
37946 (grub_menu_execute_callback): New structure declaration.
37947 (grub_menu_execute_callback_t): New typedef.
37948 (grub_menu_execute_with_fallback): New function declaration.
37949 (grub_menu_get_entry): Likewise.
37950 (grub_menu_get_timeout): Likewise.
37951 (grub_menu_set_timeout): Likewise.
37953 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
37955 * normal/menu.c (grub_wait_after_message): Moved to
37956 `normal/menu_text.c'.
37957 (draw_border): Likewise.
37958 (print_message): Likewise.
37959 (print_entry): Likewise.
37960 (print_entries): Likewise.
37961 (grub_menu_init_page): Likewise.
37962 (get_entry_number): Likewise.
37963 (print_timeout): Likewise.
37964 (run_menu): Likewise.
37965 (grub_menu_execute_entry): Likewise.
37966 (show_text_menu): Likewise.
37967 (get_and_remove_first_entry_number): New function.
37968 (grub_menu_execute_with_fallback): Likewise.
37969 (get_entry): Renamed to ...
37970 (grub_menu_get_entry): .. this and made it global.
37971 (get_timeout): Renamed to ...
37972 (grub_menu_get_timeout): ... this and made it global.
37973 (set_timeout): Renamed to ...
37974 (grub_menu_set_timeout): ... this and made it global.
37975 (grub_normal_terminal_menu_viewer): Renamed to ...
37976 (grub_normal_text_menu_viewer): ... this.
37978 * normal/menu_text.c: New file. Extracted text-menu-specific code
37979 from normal/menu.c.
37981 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
37982 (normal_mod_SOURCES): Likewise.
37984 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37985 (normal_mod_SOURCES): Likewise.
37987 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37988 (normal_mod_SOURCES): Likewise.
37990 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
37991 (normal_mod_SOURCES): Likewise.
37993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37994 (normal_mod_SOURCES): Likewise.
37996 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37997 (normal_mod_SOURCES): Likewise.
37999 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38000 (normal_mod_SOURCES): Likewise.
38002 2009-02-11 Robert Millan <rmh@aybabtu.com>
38004 * util/grub.d/00_header.in: Update old reference to `font' command.
38006 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
38008 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
38010 Based on patch from Javier Martín.
38012 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
38014 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
38015 to avoid false positives with FAT.
38016 (grub_fstest_SOURCES): Likewise.
38017 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38018 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38020 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38021 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38022 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38024 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
38026 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
38027 bpb.version_specific.fat12_or_fat16.fstype and
38028 bpb.version_specific.fat32.fstype.
38030 2009-02-08 Robert Millan <rmh@aybabtu.com>
38032 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
38034 2009-02-08 Robert Millan <rmh@aybabtu.com>
38036 * Makefile.in (host_os, host_cpu): New variables.
38037 (target_os): Remove. Update all users.
38039 2009-02-08 Marco Gerards <marco@gnu.org>
38041 * Makefile.in (enable_grub_emu_usb): New variable.
38042 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
38043 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
38044 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
38045 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
38046 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
38047 `usbtest.mod' and `usbms.mod'.
38048 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
38049 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
38050 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
38051 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
38052 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
38055 * disk/usbms.c: New file.
38057 * include/grub/usb.h: Likewise.
38059 * include/grub/usbtrans.h: Likewise.
38061 * include/grub/usbdesc.h: Likewise.
38063 * bus/usb/usbtrans.c: Likewise.
38065 * bus/usb/ohci.c: Likewise.
38067 * bus/usb/uhci.c: Likewise.
38069 * bus/usb/usbhub.c: Likewise.
38071 * bus/usb/usb.c: Likewise.
38073 * commands/usbtest.c: Likewise.
38075 * util/usb.c: Likewise.
38077 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
38079 * configure.ac: Test for libusb presence.
38081 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
38083 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
38085 * kern/mm.c: Add more comments.
38087 2009-02-08 Robert Millan <rmh@aybabtu.com>
38089 Patch from Javier Martín.
38090 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
38091 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
38093 2009-02-08 Robert Millan <rmh@aybabtu.com>
38095 * fs/cpio.c: Split tar functionality to ...
38096 * fs/tar.c: ... here (new file). Update all users.
38098 2009-02-07 Robert Millan <rmh@aybabtu.com>
38100 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
38101 backward-incompatible features.
38103 Based on patch from Javier Martín, with some adjustments.
38105 2009-02-07 Michael Scherer <misc@mandriva.org>
38107 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
38109 2009-02-07 Robert Millan <rmh@aybabtu.com>
38111 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
38112 position of `disk/lvm.c' to ensure grub_init_all() always picks it
38113 after the RAID stuff.
38115 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
38117 Fixes problem when running vbetest command as reported by
38118 Vladimir Serbinenko <phcoder@gmail.com>.
38120 * (grub_vbe_set_video_mode): Fixed problem with text modes.
38122 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
38124 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
38125 /dev/md/NpN style mdraid devices.
38127 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
38129 * util/unifont2pff.rb: Remove.
38131 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
38133 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
38136 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
38138 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
38139 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38140 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38141 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38143 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38144 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38146 2009-02-02 Christian Franke <franke@computer.org>
38148 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
38150 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
38152 * INSTALL: Note that we now require at least autoconf 2.59 and
38153 that LZO is optional.
38155 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38157 Base on patch on bug #24154 created by Tomas Tintera
38158 <trosos@seznam.cz>.
38160 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
38162 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38164 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
38165 <bero@arklinux.org>.
38167 * normal/parser.y (script_init): Add missing semicolon.
38169 2009-01-31 Colin D Bennett <colin@gibibit.com>
38171 * normal/main.c: Add include to grub/menu_viewer.h.
38172 (free_menu_entry_classes): Added.
38173 (grub_normal_menu_addentry): Added class property handling.
38174 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
38175 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
38177 * normal/menu_viewer.c: New file.
38179 * normal/menu.c (run_menu_entry): Renamed to ...
38180 (grub_menu_execute_entry): ... this and made it as global.
38181 (grub_menu_run): Renamed to ...
38182 (show_text_menu): ... this and made it local.
38183 (show_text_menu): Adapt to new function names.
38184 (grub_normal_terminal_menu_viewer): New global variable.
38186 * include/grub/menu.h: New file.
38188 * include/grub/menu_viewer.h: New file.
38190 * include/grub/normal.h: Added include to grub/menu.h.
38191 (grub_menu_entry): Moved to include/grub/menu.h.
38192 (grub_menu_entry_t): Likewise.
38193 (grub_menu): Likewise.
38194 (grub_menu_t): Likewise.
38195 (grub_normal_terminal_menu_viewer): Added.
38196 (grub_menu_execute_entry): Likewise.
38197 (grub_menu_run): Removed.
38199 * DISTLIST: Added include/grub/menu.h.
38200 Added include/grub/menu_viewer.h.
38201 Added normal/menu_viewer.c.
38203 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
38205 * normal/execute.c (grub_script_execute_menuentry): Changed to use
38206 arglist for menutitle arguments.
38208 * normal/main.c (grub_normal_menu_addentry): Likewise.
38210 * normal/parser.y (menuentry): Likewise.
38212 * normal/script.c (grub_script_create_cmdmenu): Likewise.
38214 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
38215 (grub_script_create_cmdmenu): Likewise.
38217 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
38219 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
38222 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
38224 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
38226 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
38228 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38230 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38232 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38234 2009-01-30 Christian Franke <franke@computer.org>
38236 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
38237 in option help text.
38239 2009-01-27 Pavel Roskin <proski@gnu.org>
38241 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
38243 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38245 * commands/lsmmap.c: Add include to grub/machine/memory.h.
38247 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
38249 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
38250 unregister function.
38252 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38254 * disk/scsi.c (grub_scsi_read): Fix sign problem.
38256 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
38258 * util/grub-mkfont.c (usage): Fix typo.
38260 * util/elf/grub-mkimage.c (load_modules): Fix warning.
38262 2009-01-26 Daniel Mierswa <impulze@impulze.org>
38264 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
38266 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
38268 * kern/misc.c (grub_strcasecmp): New function.
38269 (grub_strcasecmp): Use grub_size_t instead of int for length.
38271 * include/grub/misc.h: Update function prototypes.
38273 2009-01-26 Robert Millan <rmh@aybabtu.com>
38275 * configure.ac: Fix cross-compilation check.
38277 2009-01-22 Christian Franke <franke@computer.org>
38279 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
38280 (precision) digit string. Allow `.format2' without `format1' (width).
38281 Limit input chars for `%s' output to `format2' if specified. This is
38282 compatible with standard printf ().
38284 2009-01-22 Christian Franke <franke@computer.org>
38286 * disk/ata.c (grub_ata_wait_status): Replace by ...
38287 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
38288 other status bits may be invalid while BSY is asserted.
38289 (grub_ata_check_ready): New function.
38290 (grub_ata_cmd): Removed.
38291 (grub_ata_wait_drq): New function.
38292 (grub_ata_strncpy): Remove inline.
38293 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
38294 and error check now done by grub_ata_wait_drq ().
38295 (grub_ata_pio_write): Likewise.
38296 (grub_atapi_identify): Set DEV before check for !BSY. Use
38297 grub_ata_wait_drq () to wait for data.
38298 (grub_ata_device_initialize): Add status register check to
38299 detect missing SATA slave devices. Add debug messages.
38300 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
38301 (grub_atapi_packet): Set DEV before check for !BSY. Replace
38302 transfer loop by grub_ata_pio_write ().
38303 (grub_ata_identify): Set DEV before check for !BSY. Use
38304 grub_ata_wait_drq () to wait for data.
38305 (grub_ata_setaddress): Set DEV before check for !BSY.
38306 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
38307 read/write in one loop. Fix invalid command on write. Fix incomplete
38308 command on (size % batch) == 0. Add missing error check after write of
38309 last block. Add debug messages.
38310 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
38312 2009-01-19 Christian Franke <franke@computer.org>
38314 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
38315 (GRUB_ATAPI_IREASON_*): Likewise.
38316 (grub_ata_pio_write): Fix timeout error return.
38317 (grub_atapi_identify): Add grub_ata_wait () after cmd.
38318 (grub_atapi_wait_drq): New function.
38319 (grub_atapi_packet): New parameter `size'.
38320 Use grub_atapi_wait_drq () and direct write instead of
38321 grub_ata_pio_write ().
38322 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
38323 reads the number of bytes requested by the device for each DRQ
38325 (grub_atapi_write): Remove old implementation, return not
38326 implemented instead.
38328 2009-01-19 Christian Franke <franke@computer.org>
38330 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
38331 of 512 to calculate data size.
38332 (grub_scsi_read12): Likewise.
38333 (grub_scsi_write10): Likewise.
38334 (grub_scsi_write12): Likewise.
38335 (grub_scsi_read): Adjust size according to blocksize.
38336 Add checks for invalid blocksize and unaligned transfer.
38338 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
38340 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
38342 * term/gfxterm.c (write_char): Fix background rendering for wide
38345 2009-01-19 Robert Millan <rmh@aybabtu.com>
38347 * config.guess: Update to latest version from config git.
38348 * config.sub: Likewise.
38350 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
38352 * Makefile.in: Change font compilation to use new grub-mkfont instead
38355 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
38356 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
38357 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38358 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38359 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
38360 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
38361 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
38362 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
38363 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38365 2009-01-16 Christian Franke <franke@computer.org>
38367 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
38368 (enum grub_ata_timeout_milliseconds): New enum.
38369 (grub_ata_wait_status): Add parameter milliseconds.
38370 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
38371 recovery from timed-out commands.
38372 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
38373 return grub_errno instead of REG_ERROR.
38374 (grub_ata_pio_write): Add parameter milliseconds.
38375 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
38376 Pass milliseconds to grub_ata_wait_status () and
38377 grub_ata_pio_read ().
38378 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
38379 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
38380 grub_ata_wait_status (). Fix IDENTIFY timeout check.
38381 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
38382 It is not suitable for device detection, because DEV bit is ignored,
38383 the command may run too long, and not all devices set the signature
38385 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
38386 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
38387 Fix device selection, DEV bit must be set first to address the registers
38388 of the correct device.
38389 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
38390 grub_ata_pio_read/write ().
38391 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
38392 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
38394 2009-01-13 Carles Pina i Estany <carles@pina.cat>
38396 * util/grub-editenv.c (main): Use fseeko(), not fseek().
38398 2009-01-13 Bean <bean123ch@gmail.com>
38400 * util/grub-mkfont.c (write_font): forget to remove some debug code.
38402 2009-01-13 Bean <bean123ch@gmail.com>
38404 * Makefile.in: (enable_grub_mkfont): New variable.
38405 (freetype_cflags): Likewise.
38406 (freetype_libs): Likewise.
38408 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
38409 (grub_mkfont_SOURCES): New variable.
38410 (grub_mkfont_CFLAGS): Likewise.
38411 (grub_mkfont_LDFLAGS): Likewise.
38413 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
38414 library if `--enable-grub-mkfont' is requested.
38415 (enable_grub_mkfont): New variable.
38416 (freetype_cflags): Likewise.
38417 (freetype_libs): Likewise.
38419 * util/grub-mkfont.c: New file.
38421 2009-01-12 Christian Franke <franke@computer.org>
38423 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
38424 mode check. Fix setting of compat_use[].
38426 2009-01-10 Robert Millan <rmh@aybabtu.com>
38428 Update a few copyright years which we forgot to do in 2008 (only for
38429 files whose changes made in 2008 were copyright-significant)
38431 * Makefile.in: Add 2008 to Copyright line.
38432 * disk/ieee1275/ofdisk.c: Likewise.
38433 * disk/efi/efidisk.c: Likewise.
38434 * kern/dl.c: Likewise.
38435 * kern/sparc64/ieee1275/init.c: Likewise.
38436 * kern/mm.c: Likewise.
38437 * kern/efi/mm.c: Likewise.
38438 * boot/i386/pc/boot.S: Likewise.
38439 * genfslist.sh: Likewise.
38440 * fs/iso9660.c: Likewise.
38441 * fs/hfs.c: Likewise.
38442 * fs/jfs.c: Likewise.
38443 * fs/minix.c: Likewise.
38444 * fs/ufs.c: Likewise.
38445 * gensymlist.sh.in: Likewise.
38446 * genkernsyms.sh.in: Likewise.
38447 * include/grub/misc.h: Likewise.
38448 * include/grub/types.h: Likewise.
38449 * include/grub/symbol.h: Likewise.
38450 * include/grub/elf.h: Likewise.
38451 * include/grub/kernel.h: Likewise.
38452 * include/grub/disk.h: Likewise.
38453 * include/grub/dl.h: Likewise.
38454 * include/grub/i386/linux.h: Likewise.
38455 * include/grub/i386/pc/biosdisk.h: Likewise.
38456 * include/grub/efi/api.h: Likewise.
38457 * include/grub/efi/pe32.h: Likewise.
38458 * include/grub/util/misc.h: Likewise.
38459 * normal/execute.c: Likewise.
38460 * normal/arg.c: Likewise.
38461 * normal/completion.c: Likewise.
38462 * normal/lexer.c: Likewise.
38463 * normal/parser.y: Likewise.
38464 * normal/misc.c: Likewise.
38465 * commands/i386/pc/vbeinfo.c: Likewise.
38466 * commands/hexdump.c: Likewise.
38467 * commands/terminal.c: Likewise.
38468 * commands/ls.c: Likewise.
38469 * commands/help.c: Likewise.
38470 * partmap/pc.c: Likewise.
38471 * loader/efi/chainloader.c: Likewise.
38472 * loader/multiboot_loader.c: Likewise.
38473 * loader/i386/pc/multiboot2.c: Likewise.
38474 * term/efi/console.c: Likewise.
38475 * term/i386/pc/serial.c: Likewise.
38476 * util/lvm.c: Likewise.
38477 * util/console.c: Likewise.
38478 * util/i386/efi/grub-mkimage.c: Likewise.
38479 * util/raid.c: Likewise.
38481 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
38483 * commands/videotest.c: Removed include to grub/machine/memory.h.
38485 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
38486 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
38487 (video_mod_SOURCES): Removed.
38488 (video_mod_CFLAGS): Likewise.
38489 (video_mod_LDFLAGS): Likewise.
38490 (gfxterm_mod_SOURCES): Likewise.
38491 (gfxterm_mod_CFLAGS): Likewise.
38492 (gfxterm_mod_LDFLAGS): Likewise.
38493 (videotest_mod_SOURCES): Likewise.
38494 (videotest_mod_CFLAGS): Likewise.
38495 (videotest_mod_LDFLAGS): Likewise.
38496 (bitmap_mod_SOURCES): Likewise.
38497 (bitmap_mod_CFLAGS): Likewise.
38498 (bitmap_mod_LDFLAGS): Likewise.
38499 (tga_mod_SOURCES): Likewise.
38500 (tga_mod_CFLAGS): Likewise.
38501 (tga_mod_LDFLAGS): Likewise.
38502 (jpeg_mod_SOURCES): Likewise.
38503 (jpeg_mod_CFLAGS): Likewise.
38504 (jpeg_mod_LDFLAGS): Likewise.
38505 (png_mod_SOURCES): Likewise.
38506 (png_mod_CFLAGS): Likewise.
38507 (png_mod_LDFLAGS): Likewise.
38509 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
38510 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
38511 (video_mod_SOURCES): Added.
38512 (video_mod_CFLAGS): Likewise.
38513 (video_mod_LDFLAGS): Likewise.
38514 (videotest_mod_SOURCES): Likewise.
38515 (videotest_mod_CFLAGS): Likewise.
38516 (videotest_mod_LDFLAGS): Likewise.
38517 (bitmap_mod_SOURCES): Likewise.
38518 (bitmap_mod_CFLAGS): Likewise.
38519 (bitmap_mod_LDFLAGS): Likewise.
38520 (tga_mod_SOURCES): Likewise.
38521 (tga_mod_CFLAGS): Likewise.
38522 (tga_mod_LDFLAGS): Likewise.
38523 (jpeg_mod_SOURCES): Likewise.
38524 (jpeg_mod_CFLAGS): Likewise.
38525 (jpeg_mod_LDFLAGS): Likewise.
38526 (png_mod_SOURCES): Likewise.
38527 (png_mod_CFLAGS): Likewise.
38528 (png_mod_LDFLAGS): Likewise.
38529 (gfxterm_mod_SOURCES): Likewise.
38530 (gfxterm_mod_CFLAGS): Likewise.
38531 (gfxterm_mod_LDFLAGS): Likewise.
38533 * term/gfxterm.c: Removed include to grub/machine/memory.h,
38534 grub/machine/console.h.
38536 2009-01-04 Jerone Young <jerone@gmail.com>
38538 Make on screen instructions clearer
38540 Based on patch created by Jidanni <jidanni@jidanni.org>
38542 * normal/menu.c: print clearer instructions on the screen
38544 2009-01-02 Colin D Bennett <colin@gibibit.com>
38548 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
38549 build system and fixed gfxterm.c to work with different sized fonts.
38551 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
38553 * configure: Re-generated.
38555 * DISTLIST: Removed font/manager.c.
38557 Added font/font_cmd.c.
38559 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
38562 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
38564 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
38566 * kern/term.c: Changed users of grub_utf8_to_ucs4.
38568 * normal/menu.c: Likewise.
38570 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
38571 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
38573 * include/grub/font.h: Replaced with new file.
38575 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
38576 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
38577 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
38578 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
38579 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
38580 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
38581 fg_red, fg_green, fg_blue, fg_alpha.
38582 (grub_video_adapter): Removed blit_glyph.
38583 (grub_video_blit_glyph): Removed.
38585 * font/manager.c: Removed file.
38587 * font/font.c: New file.
38589 * font/font_cmd.c: Likewise.
38591 * video/video.c (grub_video_blit_glyph): Removed.
38593 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
38594 (grub_video_vbe_map_rgba): Likewise.
38595 (grub_video_vbe_unmap_color_int): Likewise.
38596 (grub_video_vbe_blit_glyph): Removed.
38597 (grub_video_vbe_adapter): Removed blit_glyph.
38599 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
38600 (get_pixel): Likewise.
38601 (set_pixel): Likewise.
38603 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
38605 * term/gfxterm.c: Adapted to new font engine.
38607 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
38609 * term/i386/pc/vga.c: Likewise.
38611 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
38613 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
38615 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38617 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38619 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
38621 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
38623 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
38625 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
38627 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38629 * util/grub.d/00_header.in: Changed to use new loadfont command.
38631 * util/grub-mkconfig_lib.in: Changed font extension.
38633 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
38635 * util/getroot.c (grub_util_get_grub_dev): Add support for
38636 /dev/md/dNNpNN style partitionable mdraid devices.
38638 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
38640 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
38641 at a time limit of the PXE TFTP API correctly.
38642 (grub_pxefs_close): Likewise.
38644 2008-11-29 Robert Millan <rmh@aybabtu.com>
38646 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
38647 grub_ata_device_initialize() calls.
38649 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
38651 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
38653 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
38655 2008-11-28 Robert Millan <rmh@aybabtu.com>
38657 Fix build on powerpc-ieee1275. Based on patch created by
38658 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
38659 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38660 `kern/ieee1275/mmap.c'.
38661 * include/grub/powerpc/ieee1275/memory.h: New file.
38663 Provide grub-install on coreboot.
38664 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
38665 (grub_install_SOURCES): New variable.
38666 * util/i386/pc/grub-install.in: Add a few condition checks to make it
38667 usable on coreboot.
38669 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
38671 * util/grub-fstest.c (grub_term_get_current_input): Change return type
38672 to `grub_term_input_t'.
38673 (grub_term_get_current_output): Change return type to
38674 `grub_term_output_t'.
38676 2008-11-22 Robert Millan <rmh@aybabtu.com>
38678 Fix breakage on coreboot due to declaration mismatch.
38679 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
38680 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
38681 grub_vga_text_cls().
38683 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
38684 comments. Avoid copying one more byte than necessary (just in case).
38686 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
38687 to 0x200000 (avoids trouble with some OFW implementations, and matches
38688 with the one in Yaboot).
38689 Reported by Manoel Abranches
38691 2008-11-20 Robert Millan <rmh@aybabtu.com>
38693 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
38694 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
38696 * util/grub-mkconfig_lib.in (grub_warn): New function.
38697 (convert_system_path_to_grub_path): Use grub_warn() when issuing
38698 warnings, to obtain consistent formatting.
38699 * util/grub.d/00_header.in: Likewise.
38700 * util/update-grub_lib.in: Likewise.
38702 * loader/i386/linux.c (allocate_pages): Fix a warning.
38703 Move comment text to `#error' stanza.
38705 Harmonize ieee1275's grub_available_iterate() with the generic
38706 grub_machine_mmap_iterate() interface (fixes a recently-introduced
38707 build problem on i386-ieee1275):
38708 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
38709 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
38710 parameter `type'. Update all users of this function.
38711 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38712 `kern/ieee1275/mmap.c'.
38713 * kern/ieee1275/init.c
38714 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
38716 (grub_machine_mmap_iterate): ... this.
38717 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
38718 return type to `grub_err_t'. Update all implementations of this
38719 function prototype.
38720 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
38723 Add `lsmmap' command (lists firmware-provided memory map):
38724 * commands/lsmmap.c: New file.
38725 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
38726 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
38728 * conf/powerpc-ieee1275.rmk: Likewise.
38729 * conf/i386-coreboot.rmk: Likewise.
38730 * conf/i386-ieee1275.rmk: Likewise.
38732 2008-11-19 Robert Millan <rmh@aybabtu.com>
38734 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
38735 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
38736 constraints to initrd allocation (based on code from
38737 loader/i386/pc/linux.c). Without them, initrd was allocated too high
38738 for Linux to find it.
38740 2008-11-14 Robert Millan <rmh@aybabtu.com>
38742 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
38743 order to cope with duplicate slashes.
38745 2008-11-14 Robert Millan <rmh@aybabtu.com>
38747 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
38748 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
38749 don't want to mess with lower memory, because it is used in the Linux
38752 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
38753 an appropriate place in lower memory, between 0x10000 and 0x90000,
38754 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
38755 is in our heap (probably as a result of it being corrupted during
38756 decompression). Add #error instance with comment to explain why this
38757 loader isn't currently usable on PC/BIOS.
38759 2008-11-14 Robert Millan <rmh@aybabtu.com>
38761 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
38762 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
38764 2008-11-12 Robert Millan <rmh@aybabtu.com>
38766 Make loader/i386/linux.c buildable on i386-pc (although disabled).
38768 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
38769 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
38771 * include/grub/i386/pc/memory.h: ... to here.
38773 2008-11-12 Robert Millan <rmh@aybabtu.com>
38775 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
38778 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
38779 (grub_console_cur_color, grub_console_real_putchar)
38780 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38781 (grub_console_setcolorstate, grub_console_setcolor)
38782 (grub_console_getcolor): Move from here ...
38783 * include/grub/i386/vga_common.h: ... to here (new file).
38785 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
38786 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
38787 `<grub/i386/io.h>'.
38788 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
38789 `<grub/i386/vga_common.h>'.
38791 2008-11-12 Robert Millan <rmh@aybabtu.com>
38793 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38794 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38795 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38797 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38798 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38800 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38801 grub_console_init() with call to grub_vga_text_init().
38802 (grub_machine_fini): Replace call to
38803 grub_console_fini() with call to grub_vga_text_fini() and
38804 grub_at_keyboard_fini().
38806 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38807 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38808 (grub_console_setcolorstate, grub_console_setcolor)
38809 (grub_console_getcolor): New function prototypes.
38811 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38812 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38813 (grub_vga_text_setcursor): Static-ize.
38814 (grub_vga_text_term): New structure.
38815 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38817 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38818 (grub_console_cur_color, grub_console_standard_color)
38819 (grub_console_normal_color, grub_console_highlight_color)
38820 (map_char, grub_console_putchar, grub_console_getcharwidth)
38821 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38822 (grub_console_getcolor): Move from here ...
38823 * term/i386/vga_common.c: ... to here (same function names).
38825 2008-11-12 Robert Millan <rmh@aybabtu.com>
38827 Use newly-added Multiboot support in coreboot.
38829 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38830 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38832 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38833 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38834 (codestart): Store the MBI in `startup_multiboot_info' when we're
38835 being loaded using Multiboot.
38837 * kern/i386/coreboot/init.c (grub_machine_init): Move
38838 grub_at_keyboard_init() call to beginning of function (useful for
38839 debugging). Call grub_machine_mmap_init() before attempting to use
38840 grub_machine_mmap_iterate().
38841 (grub_lower_mem, grub_upper_mem): Move from here ...
38842 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38845 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38846 function prototype.
38848 2008-11-12 Robert Millan <rmh@aybabtu.com>
38850 Fix a regression introduced by the at_keyboard.mod split. Because
38851 some terminals are default on some platforms and non-default on
38852 others, the first terminal being registered determines which is
38853 going to be default.
38855 * kern/term.c (grub_term_register_input): If this is the first
38856 terminal being registered, set it as the current one.
38857 (grub_term_register_output): Likewise.
38859 * term/efi/console.c (grub_console_init): Do not call
38860 grub_term_set_current_output() or grub_term_set_current_input().
38861 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38862 * term/i386/pc/console.c (grub_console_init): Likewise.
38863 (grub_console_fini): Do not call grub_term_set_current_input()
38864 (but leave grub_term_set_current_output() to restore text mode).
38866 2008-11-10 Robert Millan <rmh@aybabtu.com>
38868 * util/grub.d/00_header.in: Add backward compatibility check for
38869 versions of terminal.mod that don't understand `terminal_input' or
38872 2008-11-09 Robert Millan <rmh@aybabtu.com>
38874 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38875 `terminal_input' / `terminal_output', not `terminal'.
38877 2008-11-08 Robert Millan <rmh@aybabtu.com>
38879 * Makefile.in (include_DATA): Fix srcdir=. assumption.
38880 (DISTCLEANFILES): Add `build_env.mk'.
38882 2008-11-08 Robert Millan <rmh@aybabtu.com>
38884 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
38885 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38886 members. Update all users.
38887 * util/console.c (grub_ncurses_term): Split in ...
38888 (grub_ncurses_term_input): ... this, and ...
38889 (grub_ncurses_term_output): ... this. Update all users.
38890 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
38892 2008-11-08 Robert Millan <rmh@aybabtu.com>
38894 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38895 (PKGDATA): Add $(pkgdata_SRCDIR).
38896 (pkglib_BUILDDIR): New variable.
38897 (pkgdata_SRCDIR): New variable.
38898 (build_env.mk): New target.
38899 (include_DATA): New variable.
38900 (install-local): Install $(include_DATA) files in $(includedir).
38902 2008-11-07 Pavel Roskin <proski@gnu.org>
38904 * gendistlist.sh: Use C locale for sorting to ensure consistent
38905 output on all systems.
38907 * util/grub.d/00_header.in: Remove incorrect space before
38910 2008-11-07 Robert Millan <rmh@aybabtu.com>
38912 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38914 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38915 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38916 (based on find_multi_boot1_header).
38917 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38918 using find_multi_boot2_header(), and abort if neither Multiboot or
38919 Multiboot headers were found.
38921 2008-11-07 Robert Millan <rmh@aybabtu.com>
38923 Modularize at_keyboard.mod:
38925 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
38926 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
38927 (at_keyboard_mod_LDFLAGS): New variables.
38929 Actual terminal split:
38931 * include/grub/term.h (struct grub_term): Split in ...
38932 (struct grub_term_input): ... this, and ...
38933 (struct grub_term_output): ... this. Update all users.
38934 (grub_term_set_current): Split in ...
38935 (grub_term_set_current_input): ... this, and ...
38936 (grub_term_set_current_output): ... this.
38937 (grub_term_get_current): Split in ...
38938 (grub_term_get_current_input): ... this, and ...
38939 (grub_term_get_current_output): ... this.
38940 (grub_term_register): Split in ...
38941 (grub_term_register_input): ... this, and ...
38942 (grub_term_register_output): ... this.
38943 (grub_term_unregister): Split in ...
38944 (grub_term_unregister_input): ... this, and ...
38945 (grub_term_unregister_output): ... this.
38946 (grub_term_iterate): Split in ...
38947 (grub_term_iterate_input): ... this, and ...
38948 (grub_term_iterate_output): ... this.
38950 * kern/term.c (grub_term_list): Split in ...
38951 (grub_term_list_input): ... this, and ...
38952 (grub_term_list_output): ... this. Update all users.
38953 (grub_cur_term): Split in ...
38954 (grub_cur_term_input): ... this, and ...
38955 (grub_cur_term_output): ... this. Update all users.
38956 (grub_term_set_current): Split in ...
38957 (grub_term_set_current_input): ... this, and ...
38958 (grub_term_set_current_output): ... this.
38959 (grub_term_get_current): Split in ...
38960 (grub_term_get_current_input): ... this, and ...
38961 (grub_term_get_current_output): ... this.
38962 (grub_term_register): Split in ...
38963 (grub_term_register_input): ... this, and ...
38964 (grub_term_register_output): ... this.
38965 (grub_term_unregister): Split in ...
38966 (grub_term_unregister_input): ... this, and ...
38967 (grub_term_unregister_output): ... this.
38968 (grub_term_iterate): Split in ...
38969 (grub_term_iterate_input): ... this, and ...
38970 (grub_term_iterate_output): ... this.
38972 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
38973 a check for input and one for output (and only attempt to get keys
38974 from user when input works).
38976 * util/grub-probe.c (grub_term_get_current): Split in ...
38977 (grub_term_get_current_input): ... this, and ...
38978 (grub_term_get_current_output): ... this.
38979 * util/grub-fstest.c: Likewise.
38980 * util/i386/pc/grub-setup.c: Likewise.
38981 * util/grub-editenv.c: Likewise.
38983 Portability adjustments:
38985 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
38986 `term/i386/pc/at_keyboard.c'.
38987 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
38988 grub_keyboard_controller_init() (now handled by terminal .init).
38989 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
38990 grub_at_keyboard_init().
38991 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
38992 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
38993 at_keyboard.mod via input terminal interface).
38994 * include/grub/i386/coreboot/console.h: Convert into a stub for
38995 `<grub/i386/pc/console.h>'.
38997 Migrate full terminals to new API:
38999 * term/efi/console.c (grub_console_term): Split into ...
39000 (grub_console_term_input): ... this, and ...
39001 (grub_console_term_output): ... this. Update all users.
39002 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
39003 (grub_ofconsole_init): Split into ...
39004 (grub_ofconsole_init_input): ... this, and ...
39005 (grub_ofconsole_init_output): ... this.
39006 (grub_ofconsole_term): Split into ...
39007 (grub_ofconsole_term_input): ... this, and ...
39008 (grub_ofconsole_term_output): ... this. Update all users.
39009 * term/i386/pc/serial.c (grub_serial_term): Split into ...
39010 (grub_serial_term_input): ... this, and ...
39011 (grub_serial_term_output): ... this. Update all users.
39012 * term/i386/pc/console.c (grub_console_term): Split into ...
39013 (grub_console_term_input): ... this, and ...
39014 (grub_console_term_output): ... this. Update all users.
39015 (grub_console_term_input): Only enable it on PC/BIOS platform.
39016 (grub_console_init): Remove grub_keyboard_controller_init() call.
39018 Migrate input terminals to new API:
39020 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
39021 `i386' and `i386/pc' to enable build on x86_64 (this driver is
39022 i386-specific anyway).
39023 (grub_console_checkkey): Rename to ...
39024 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
39026 (grub_keyboard_controller_orig): New variable.
39027 (grub_console_getkey): Rename to ...
39028 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
39030 (grub_keyboard_controller_init): Static-ize. Save original
39031 controller value so that it can be restored ...
39032 (grub_keyboard_controller_fini): ... here (new function).
39033 (grub_at_keyboard_term): New structure.
39034 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
39037 Migrate output terminals to new API:
39039 * term/i386/pc/vga.c (grub_vga_term): Change type to
39040 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39041 members. Update all users.
39042 * term/gfxterm.c (grub_video_term): Change type to
39043 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39044 members. Update all users.
39045 * include/grub/i386/pc/console.h (grub_console_checkkey)
39046 (grub_console_getkey): Do not export (no longer needed by gfxterm,
39049 Migrate `terminal' command and userland tools to new API:
39051 * commands/terminal.c (grub_cmd_terminal): Split into ...
39052 (grub_cmd_terminal_input): ... this, and ...
39053 (grub_cmd_terminal_output): ... this.
39054 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
39055 `terminal_input' and `terminal_output'.
39056 * util/grub.d/00_header.in: Adjust `terminal' calls to new
39057 `terminal_input' / `terminal_output' API.
39058 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
39059 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
39060 provided ${GRUB_TERMINAL}, convert it).
39062 2008-11-04 Robert Millan <rmh@aybabtu.com>
39064 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
39066 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
39068 2008-11-03 Bean <bean123ch@gmail.com>
39070 * kern/elf.c (grub_elf32_load): Revert to previous code.
39071 (grub_elf64_load): Likewise.
39073 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
39075 2008-11-01 Robert Millan <rmh@aybabtu.com>
39077 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
39078 (TARGET_CPPFLAGS): Likewise.
39079 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
39081 2008-11-01 Carles Pina i Estany <carles@pina.cat>
39083 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
39085 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
39087 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
39088 addition of objects until the code is not going to be able to fail.
39090 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
39092 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
39093 (add a missing NULL check, and correct them by moving the pointer
39094 operations after the actual check).
39096 2008-10-29 Robert Millan <rmh@aybabtu.com>
39098 * util/i386/pc/grub-install.in: Handle empty string as output from
39099 make_system_path_relative_to_its_root().
39101 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
39103 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
39104 circular metadata worst case scenario. If the metadata is circular
39105 then copy the wrap in place.
39106 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
39107 project lib/format_text/layout.h
39108 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
39110 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
39112 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
39114 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
39116 * util/update-grub_lib.in: Mention filename in warning message.
39118 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
39120 * NEWS: Update for rename of update-grub to grub-mkconfig.
39122 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
39124 * util/update-grub_lib.in: Copy to ...
39125 * util/grub-mkconfig_lib.in: ... this. Update all users.
39126 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
39127 * util/update-grub.in: Rename to ...
39128 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
39129 option. Add `--output' option to allow users to specify the generated
39130 configuration file. Default to stdout.
39131 (update_grub_dir): Rename to ...
39132 (grub_mkconfig_dir): ... this.
39133 (grub_cfg): Default to an empty string.
39134 * conf/common.rmk (update-grub): Rename to ...
39135 (grub-mkconfig): ... this.
39136 (update-grub_lib): Copy to ...
39137 (grub-mkconfig_lib): ... this.
39138 (update-grub_SCRIPTS): Copy to ...
39139 (grub-mkconfig_SCRIPTS): ... this. Update all users.
39140 (update-grub_DATA): Rename to ...
39141 (grub-mkconfig_DATA): ... this.
39143 2008-09-28 Robert Millan <rmh@aybabtu.com>
39145 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
39146 to `modified'. Add the real `created' field.
39147 (grub_iso9660_uuid): Use `modified' rather than `created' for
39148 constructing the UUID.
39150 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
39152 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
39153 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
39155 2008-09-28 Bean <bean123ch@gmail.com>
39157 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
39158 Thanks to Christian Franke for finding this bug.
39160 2008-09-25 Robert Millan <rmh@aybabtu.com>
39162 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
39163 instances of grub_util_get_disk_name() (see previous commit).
39165 2008-09-25 Robert Millan <rmh@aybabtu.com>
39167 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
39168 `util/i386/get_disk_name.c'.
39169 * conf/i386-efi.rmk: Likewise.
39170 * conf/x86_64-efi.rmk: Likewise.
39171 * conf/i386-coreboot.rmk: Likewise.
39172 * conf/i386-ieee1275.rmk: Likewise.
39173 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
39174 `util/ieee1275/get_disk_name.c'.
39175 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
39176 * util/ieee1275/get_disk_name.c: Remove file.
39177 * util/i386/get_disk_name.c: Remove file.
39178 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
39179 "hd%d" for device.map entries, rather than using
39180 grub_util_get_disk_name().
39182 2008-09-24 Carles Pina i Estany <carles@pina.cat>
39184 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
39186 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
39188 2008-09-24 Carles Pina i Estany <carles@pina.cat>
39190 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
39192 (GRUB_TERM_PPAGE): Changed to 0x4900.
39194 2008-09-24 Robert Millan <rmh@aybabtu.com>
39196 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
39197 macros (they were i386-pc specific).
39198 * include/grub/sparc64/ieee1275/console.h: Likewise.
39199 * include/grub/efi/console.h: Likewise.
39201 2008-09-22 Bean <bean123ch@gmail.com>
39203 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
39204 resident and in attribute list.
39206 * include/grub/ntfs.h (BMP_LEN): Removed.
39208 2008-09-22 Bean <bean123ch@gmail.com>
39210 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
39211 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
39213 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
39214 error occurs, as grub_disk_open will call grub_disk_close, which will
39215 call p->close (scsi).
39217 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
39219 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
39220 (AC_PREREQ): Bumped to 2.59.
39221 (AC_TRY_COMPILE): Replace obsolete macro with ...
39222 (AC_COMPILE_IFELSE): ... this.
39223 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
39224 (AC_LINK_IFELSE): ... this.
39226 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
39228 * autogen.sh: Add a call to `gendistlist.sh'.
39230 2008-09-19 Christian Franke <franke@computer.org>
39232 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
39233 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
39234 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
39235 Export __enable_execute_stack() to modules.
39236 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
39239 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
39241 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
39244 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
39246 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
39247 #include <grub/util/hostdisk.h>.
39249 2008-09-08 Robert Millan <rmh@aybabtu.com>
39251 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
39252 segments when their filesz is zero (grub_file_read() interprets
39253 zero-size as "read until EOF", which results in memory corruption).
39254 Use `lowest_segment' rather than 0 for calculating the current
39255 segment load address.
39257 2008-09-08 Robert Millan <rmh@aybabtu.com>
39259 * util/hostdisk.c (open_device): Replace a grub_util_info() call
39260 with grub_dprintf("hostdisk", ...), as it was so verbose that it
39261 clobbered useful information.
39263 2008-09-08 Robert Millan <rmh@aybabtu.com>
39265 * include/grub/util/biosdisk.h: Move to ...
39266 * include/grub/util/hostdisk.h: ... here. Update all users.
39267 * util/biosdisk.c: Move to ...
39268 * util/hostdisk.c: ... here. Update all users.
39270 2008-09-07 Robert Millan <rmh@aybabtu.com>
39272 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
39274 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
39275 and length can be stored directly in the `mbi->mmap_addr' and
39276 `mbi->mmap_length' struct fields.
39278 2008-09-07 Robert Millan <rmh@aybabtu.com>
39280 * conf/i386.rmk: New file. Provides declaration for building
39282 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
39283 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
39285 Include `conf/i386.mk'.
39286 * conf/i386-efi.rmk: Likewise.
39287 * conf/x86_64-efi.rmk: Likewise.
39288 * conf/i386-coreboot.rmk: Likewise.
39289 * conf/i386-ieee1275.rmk: Likewise.
39291 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
39293 Based on patch created by Colin D Bennett <colin@gibibit.com>.
39294 Adds optimization support for BGR based modes.
39296 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
39297 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39298 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39299 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39300 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39301 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39302 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39303 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39304 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39305 (grub_video_i386_vbeblit_index_index): Likewise.
39306 (grub_video_i386_vbeblit_replace_directN): Added.
39307 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39308 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39309 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39310 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39311 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39312 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
39313 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
39314 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39315 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39316 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39317 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39318 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39319 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
39321 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
39322 (grub_video_i386_vbefill_R8G8B8): Likewise.
39323 (grub_video_i386_vbefill_index): Likewise.
39324 (grub_video_i386_vbefill_direct32): Added.
39325 (grub_video_i386_vbefill_direct24): Likewise.
39326 (grub_video_i386_vbefill_direct16): Likewise.
39327 (grub_video_i386_vbefill_direct8): Likewise.
39329 * include/grub/video.h (grub_video_blit_format): Removed
39330 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
39331 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
39332 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
39333 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
39334 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
39336 * video/video.c (grub_video_get_blit_format): Updated to use new
39337 blit formats. Added handling for 16 bit color modes.
39339 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
39341 (common_blitter): Updated to use new blitters.
39343 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
39345 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39346 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39347 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39348 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39349 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39350 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39351 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39352 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39353 (grub_video_i386_vbeblit_index_index): Likewise.
39354 (grub_video_i386_vbeblit_replace_directN): Added.
39355 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39356 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39357 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39358 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39359 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39360 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
39361 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
39362 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39363 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39364 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39365 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39366 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39367 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
39369 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
39370 (grub_video_i386_vbefill_R8G8B8): Likewise.
39371 (grub_video_i386_vbefill_index): Likewise.
39372 (grub_video_i386_vbefill_direct32): Added.
39373 (grub_video_i386_vbefill_direct24): Likewise.
39374 (grub_video_i386_vbefill_direct16): Likewise.
39375 (grub_video_i386_vbefill_direct8): Likewise.
39377 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
39380 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
39383 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
39386 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
39389 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
39391 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
39394 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
39396 * fs/iso9660.c (grub_iso9660_date): New structure.
39397 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
39398 (grub_iso9660_uuid): New function.
39400 2008-09-05 Bean <bean123ch@gmail.com>
39402 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
39404 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
39405 insensitive bit for names in Win32 and Win32 & DOS namespace.
39407 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
39409 * include/grub/types.h (LONG_MAX): Likewise.
39411 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
39413 * util/getroot.c: Include <config.h>.
39414 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
39415 add support for /dev/md/N devices and handle LVM double dash escaping.
39417 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
39419 * config.guess: Update to latest version from config git.
39420 * config.sub: Likewise.
39422 2008-09-03 Robert Millan <rmh@aybabtu.com>
39424 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
39425 `disk->total_sectors'.
39427 2008-09-01 Colin D Bennett <colin@gibibit.com>
39429 * include/grub/normal.h: Fixed incorrect comment for
39430 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
39432 2008-09-01 Colin D Bennett <colin@gibibit.com>
39434 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
39435 values with defines.
39437 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
39438 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
39439 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
39440 (GRUB_VBE_MODEATTR_COLOR): Likewise.
39441 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
39442 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
39443 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
39444 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
39445 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
39446 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
39447 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
39448 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
39449 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
39450 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
39451 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
39452 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
39453 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
39454 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
39455 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
39457 2008-08-31 Robert Millan <rmh@aybabtu.com>
39459 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
39461 (grub_multiboot): Fix a few warnings.
39463 2008-08-31 Robert Millan <rmh@aybabtu.com>
39465 * loader/i386/pc/multiboot.c: Update comment not to say that
39466 boot_device support is unimplemented.
39468 2008-08-31 Robert Millan <rmh@aybabtu.com>
39470 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
39471 or memory map support are unimplemented.
39473 2008-08-31 Colin D Bennett <colin@gibibit.com>
39475 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
39477 2008-08-31 Colin D Bennett <colin@gibibit.com>
39479 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
39480 total video memory in 'vbeinfo' output; show color format details for
39483 2008-08-30 Pavel Roskin <proski@gnu.org>
39485 * util/genmoddep.c: Remove for real this time.
39486 * DISTLIST: Remove util/genmoddep.c.
39488 2008-08-30 Robert Millan <rmh@aybabtu.com>
39490 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
39491 as required by Multiboot spec (it was already 4-byte aligned, but
39494 2008-08-29 Pavel Roskin <proski@gnu.org>
39496 * kern/powerpc/ieee1275/crt0.S: Rename to ...
39497 * kern/powerpc/ieee1275/startup.S: ... this.
39498 * conf/powerpc-ieee1275.rmk: Adjust for the above.
39499 * DISTLIST: Likewise.
39501 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
39502 grub/cpu/kernel.h. Add start label for consistency with other
39503 platforms. Add grub_prefix immediately after start. Add jump
39504 to the code after grub_prefix.
39505 * include/grub/powerpc/kernel.h: Provide valid values for
39506 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
39508 2008-08-29 Bean <bean123ch@gmail.com>
39510 * configure.ac: Change host_os to cygwin for mingw.
39511 (asprintf): New check for function.
39513 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
39514 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
39516 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
39517 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
39518 sync, sleep and grub_util_get_disk_size for mingw.
39520 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
39521 to get size in mingw.
39522 (open_device): Use flag O_BINARY if it's defined.
39523 (find_root_device): Add dummy code for mingw.
39525 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
39526 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
39527 (get_scsi_disk_name): Return 0 for mingw.
39529 * util/hostfs.c: #include <grub/util/misc.h>.
39530 (grub_hostfs_open): Use "rb" flag to open file, use
39531 grub_util_get_disk_size to get disk size for mingw.
39533 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
39534 (asprintf): New function if HAVE_ASPRINTF is not set.
39535 (sync): New function for mingw.
39537 (grub_util_get_disk_size): Likewise.
39539 2008-08-28 Pavel Roskin <proski@gnu.org>
39541 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39544 2008-08-28 Robert Millan <rmh@aybabtu.com>
39546 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
39548 2008-08-28 Robert Millan <rmh@aybabtu.com>
39550 Change find_grub_drive() syntax so it doesn't prevent it from
39551 detecting NULL names as errors.
39553 * util/biosdisk.c (find_grub_drive): Move free slot search code
39555 (find_free_slot): ... to here.
39556 (read_device_map): Use find_free_slot() to search for free slots.
39558 2008-08-27 Marco Gerards <marco@gnu.org>
39560 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
39561 (scsi_mod_SOURCES): New variable.
39562 (scsi_mod_CFLAGS): Likewise
39563 (scsi_mod_LDFLAGS): Likewise.
39565 * disk/scsi.c: New file.
39567 * include/grub/scsi.h: Likewise.
39569 * include/grub/scsicmd.h: Likewise.
39571 * disk/ata.c: Include <grub/scsi.h>.
39572 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
39574 (grub_ata_iterate): Skip ATAPI devices.
39575 (grub_ata_open): Only handle ATAPI devices.
39576 (struct grub_atapi_read): Removed.
39577 (grub_atapi_readsector): Likewise.
39578 (grub_ata_read): No longer handle ATAPI devices.
39579 (grub_ata_write): Likewise.
39580 (grub_atapi_iterate): New function.
39581 (grub_atapi_read): Likewise.
39582 (grub_atapi_write): Likewise.
39583 (grub_atapi_open): Likewise.
39584 (grub_atapi_close): Likewise.
39585 (grub_atapi_dev): New variable.
39586 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
39587 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
39589 * include/grub/disk.h (enum grub_disk_dev_id): Add
39590 `GRUB_DISK_DEVICE_SCSI_ID'.
39592 2008-08-26 Robert Millan <rmh@aybabtu.com>
39594 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
39595 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
39598 2008-08-23 Bean <bean123ch@gmail.com>
39600 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
39601 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39602 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
39603 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
39605 (raid5rec_mod_SOURCES): New macro.
39606 (raid5rec_mod_CFLAGS): Likewise.
39607 (raid5rec_mod_LDFLAGS): Likewise.
39608 (raid6rec_mod_SOURCES): Likewise.
39609 (raid6rec_mod_CFLAGS): Likewise.
39610 (raid6rec_mod_LDFLAGS): Likewise.
39611 (mdraid_mod_SOURCES): Likewise.
39612 (mdraid_mod_CFLAGS): Likewise.
39613 (mdraid_mod_LDFLAGS): Likewise.
39614 (dm_nv_mod_SOURCES): Likewise.
39615 (dm_nv_mod_CFLAGS): Likewise.
39616 (dm_nv_mod_LDFLAGS): Likewise.
39618 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
39619 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39620 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39622 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
39623 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39625 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39627 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39629 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39633 * disk/raid5_recover.c: New file.
39635 * disk/raid6_recover.c: Likewise.
39637 * disk/mdraid_linux.c: Likewise.
39639 * disk/dmraid_nvidia.c: Likewise.
39641 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
39644 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
39645 calculate the size of raid device.
39646 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
39647 different layout of raid5.
39648 (grub_raid_scan_device): Remove code specific to mdraid.
39649 (grub_raid_list): New variable.
39650 (free_array): New function.
39651 (grub_raid_register): Likewise.
39652 (grub_raid_unregister): Likewise.
39653 (grub_raid_rescan): Likewise.
39654 (GRUB_MOD_INIT): Don't iterate device here.
39655 (GRUB_MOD_FINI): Use free_array to release resource.
39657 * include/grub/raid.h: Remove macro and structure specific to mdraid.
39658 (grub_raid5_recover_func_t): New function variable type.
39659 (grub_raid6_recover_func_t): Likewise.
39660 (grub_raid5_recover_func): New variable.
39661 (grub_raid6_recover_func): Likewise.
39662 (grub_raid_register): New function.
39663 (grub_raid_unregister): Likewise.
39664 (grub_raid_rescan): Likewise.
39665 (grub_raid_block_xor): Likewise.
39667 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
39668 (CMD_CRC): New macro.
39670 (read_file): Handle device as well as file.
39671 (cmd_crc): New function.
39672 (fstest): Handle multiple disks.
39673 (options): Remove part, raw and long, add root and diskcount.
39674 (usage): Add crc, remove -p, -r, -l, add -r and -c.
39675 (main): Find the first non option entry and ignore subsequent options,
39676 add handling for the new options, support multiple disks.
39678 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
39680 2008-08-23 Bean <bean123ch@gmail.com>
39682 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
39684 * genfslist.sh: Ignore kernel.mod.
39686 * genpartmaplist.sh: Likewise.
39688 2008-08-23 Robert Millan <rmh@aybabtu.com>
39690 * util/getroot.c (find_root_device): Skip anything that starts with
39691 a dot, not just directories. This avoids things like /dev/.tmp.md0.
39693 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
39695 * util/update-grub.in (GRUB_GFXMODE): Export variable.
39696 * util/grub.d/00_header.in: Allow the administrator to change default
39697 gfxmode via ${GRUB_GFXMODE}.
39699 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
39701 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
39703 2008-08-21 Robert Millan <rmh@aybabtu.com>
39705 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
39707 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
39708 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
39710 2008-08-20 Carles Pina i Estany <carles@pina.cat>
39712 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
39713 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
39715 2008-08-19 Robert Millan <rmh@aybabtu.com>
39717 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
39718 (struct grub_virtual_screen): Remove `cursor_color'.
39719 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
39721 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
39723 2008-08-18 Robert Millan <rmh@aybabtu.com>
39725 Unify (identical) linux_normal.c files.
39726 * loader/i386/efi/linux_normal.c: Move from here ...
39727 * loader/linux_normal.c: ... to here. Update all users.
39728 * loader/i386/pc/linux_normal.c: Delete. Update all users.
39729 * loader/i386/ieee1275/linux_normal.c: Likewise.
39731 2008-08-18 Robert Millan <rmh@aybabtu.com>
39733 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
39734 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
39735 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
39736 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
39737 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
39739 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
39740 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
39741 (GRUB_LINUX_CL_END_OFFSET): ... to here.
39742 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
39743 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
39744 (GRUB_EFI_CL_END_OFFSET): Rename to ...
39745 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
39746 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
39747 Initialize `params->video_cursor_x' and `params->video_cursor_y'
39748 portably using grub_getxy().
39749 Replace `-EFI' with `-bzImage' in boot message.
39751 2008-08-17 Robert Millan <rmh@aybabtu.com>
39753 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
39755 2008-08-17 Robert Millan <rmh@aybabtu.com>
39757 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
39759 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
39760 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
39761 (grub_machine_mmap_iterate): New function declaration.
39762 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
39764 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
39767 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
39768 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
39769 Move e820 parsing from here ...
39770 * kern/i386/pc/mmap.c: New file.
39771 (grub_machine_mmap_iterate): ... to here.
39773 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
39774 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
39775 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
39776 (grub_available_iterate): Redeclare to return `void', and redeclare
39777 its hook to use grub_uint64_t as addr and size parameters, and rename
39779 (grub_machine_mmap_iterate): ... this. Update all users.
39781 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
39782 to make it more readable. Rename to ...
39783 (grub_machine_mmap_iterate): ... this.
39785 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
39786 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
39787 (grub_multiboot): Allocate an extra region after the payload, and fill
39788 it with a Multiboot memory map. Adjust a.out loader to calculate size
39789 with the extra space.
39790 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39791 with the extra space.
39793 2008-08-17 Carles Pina i Estany <carles@pina.cat>
39795 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
39797 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
39799 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39800 mdate-sh to the list `find' searches for.
39801 * DISTLIST: Regenerated.
39803 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
39805 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39806 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
39807 genmoddep.awk, gensymlist.sh.in.
39808 (DISTDIRS): Add bus, docs, hook, lib.
39809 * DISTLIST: Regenerated.
39810 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
39812 2008-08-16 Robert Millan <rmh@aybabtu.com>
39814 * disk/raid.c (grub_raid_init): Handle/report errors set by
39815 grub_device_iterate().
39816 * disk/lvm.c (grub_lvm_init): Likewise.
39818 2008-08-15 Bean <bean123ch@gmail.com>
39820 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39822 (datetime_mod_SOURCES): New macro.
39823 (datetime_mod_CFLAGS): Likewise.
39824 (datetime_mod_LDFLAGS): Likewise.
39825 (date_mod_SOURCES): Likewise.
39826 (date_mod_CFLAGS): Likewise.
39827 (date_mod_LDFLAGS): Likewise.
39828 (datehook_mod_SOURCES): Likewise.
39829 (datehook_mod_CFLAGS): Likewise.
39830 (datehook_mod_LDFLAGS): Likewise.
39832 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39834 (datetime_mod_SOURCES): New macro.
39835 (datetime_mod_CFLAGS): Likewise.
39836 (datetime_mod_LDFLAGS): Likewise.
39837 (date_mod_SOURCES): Likewise.
39838 (date_mod_CFLAGS): Likewise.
39839 (date_mod_LDFLAGS): Likewise.
39840 (datehook_mod_SOURCES): Likewise.
39841 (datehook_mod_CFLAGS): Likewise.
39842 (datehook_mod_LDFLAGS): Likewise.
39844 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39846 (datetime_mod_SOURCES): New macro.
39847 (datetime_mod_CFLAGS): Likewise.
39848 (datetime_mod_LDFLAGS): Likewise.
39849 (date_mod_SOURCES): Likewise.
39850 (date_mod_CFLAGS): Likewise.
39851 (date_mod_LDFLAGS): Likewise.
39852 (datehook_mod_SOURCES): Likewise.
39853 (datehook_mod_CFLAGS): Likewise.
39854 (datehook_mod_LDFLAGS): Likewise.
39856 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39858 (datetime_mod_SOURCES): New macro.
39859 (datetime_mod_CFLAGS): Likewise.
39860 (datetime_mod_LDFLAGS): Likewise.
39861 (date_mod_SOURCES): Likewise.
39862 (date_mod_CFLAGS): Likewise.
39863 (date_mod_LDFLAGS): Likewise.
39864 (datehook_mod_SOURCES): Likewise.
39865 (datehook_mod_CFLAGS): Likewise.
39866 (datehook_mod_LDFLAGS): Likewise.
39868 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39870 (datetime_mod_SOURCES): New macro.
39871 (datetime_mod_CFLAGS): Likewise.
39872 (datetime_mod_LDFLAGS): Likewise.
39873 (date_mod_SOURCES): Likewise.
39874 (date_mod_CFLAGS): Likewise.
39875 (date_mod_LDFLAGS): Likewise.
39876 (datehook_mod_SOURCES): Likewise.
39877 (datehook_mod_CFLAGS): Likewise.
39878 (datehook_mod_LDFLAGS): Likewise.
39880 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39882 * commands/date.c: New file.
39884 * hook/datehook.c: Likewise.
39886 * include/grub/lib/datetime.h: Likewise.
39888 * include/grub/i386/cmos.h: Likewise.
39890 * lib/datetime.c: Likewise.
39892 * lib/i386/datetime.c: Likewise.
39894 * lib/efi/datetime.c: Likewise.
39896 2008-08-14 Robert Millan <rmh@aybabtu.com>
39898 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39899 (grub_mkelfimage_SOURCES): New variable.
39900 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39902 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39903 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39904 * conf/powerpc-ieee1275.rmk: Likewise.
39905 * conf/i386-ieee1275.rmk: Likewise.
39907 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39908 * kern/i386/coreboot/init.c: Likewise.
39910 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39911 with `<grub/cpu/kernel.h>'.
39912 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39914 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39915 * kern/i386/coreboot/startup.S: Likewise.
39917 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39918 (GRUB_MOD_GAP): Remove.
39919 * include/grub/powerpc/kernel.h: New file.
39920 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
39921 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39922 * include/grub/i386/kernel.h: New file.
39923 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
39924 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
39925 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39927 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
39929 Use --directory when invoking grub_mkimage.
39931 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
39932 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
39933 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
39934 and GRUB_KERNEL_CPU_PREFIX.
39936 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
39938 * include/grub/err.h (grub_err_printf): New function prototype.
39939 * util/misc.c (grub_err_printf): New function.
39940 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
39942 * kern/err.c (grub_print_error): Use grub_err_printf.
39944 2008-08-13 Robert Millan <rmh@aybabtu.com>
39946 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
39948 2008-08-13 Robert Millan <rmh@aybabtu.com>
39950 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
39953 2008-08-12 Robert Millan <rmh@aybabtu.com>
39955 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
39956 of the relocation code from here ...
39957 (grub_multiboot): ... to here.
39958 (forward_relocator, backward_relocator): Move from here ...
39959 * kern/i386/loader.S (grub_multiboot_forward_relocator)
39960 (grub_multiboot_backward_relocator): ... to here.
39961 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
39962 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
39963 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
39964 (grub_multiboot_forward_relocator_end)
39965 (grub_multiboot_backward_relocator)
39966 (grub_multiboot_backward_relocator_end): New variables.
39968 2008-08-12 Bean <bean123ch@gmail.com>
39970 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
39972 2008-08-11 Robert Millan <rmh@aybabtu.com>
39974 * kern/i386/linuxbios/startup.S: Move from here ...
39975 * kern/i386/coreboot/startup.S: ... to here.
39977 * kern/i386/linuxbios/init.c: Move from here ...
39978 * kern/i386/coreboot/init.c: ... to here.
39980 * kern/i386/linuxbios/table.c: Move from here ...
39981 * kern/i386/coreboot/mmap.c: ... to here.
39983 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
39985 2008-08-11 Robert Millan <rmh@aybabtu.com>
39987 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
39988 errors. Leave it to the upper layer to handle them.
39990 2008-08-09 Christian Franke <franke@computer.org>
39992 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
39993 * conf/common.rmk: Install `grub-pe2elf' only if requested.
39994 Install `grub.d/10_windows' only on Cygwin.
39995 * configure.ac: Add subst of `target_os'.
39996 Check `target_os' also before setting TARGET_OBJ2ELF.
39997 Add `--enable-grub-pe2elf'.
39999 2008-08-08 Robert Millan <rmh@aybabtu.com>
40001 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
40002 (grub_last_time): Change type to grub_uint64_t.
40003 (grub_disk_open): Migrate code from to using grub_get_time_ms().
40004 (grub_disk_close): Likewise.
40006 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
40007 (run_menu): Migrate code from to using grub_get_time_ms().
40009 * util/misc.c (grub_get_time_ms): New function.
40011 2008-08-08 Marco Gerards <marco@gnu.org>
40013 * disk/ata.c (grub_ata_regget): Change return type to
40015 (grub_ata_regget2): Likewise.
40016 (grub_ata_wait_status): New function.
40017 (grub_ata_wait_busy): Removed function, updated all users to use
40018 `grub_ata_wait_status'.
40019 (grub_ata_wait_drq): Likewise.
40020 (grub_ata_cmd): New function.
40021 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
40023 (grub_ata_pio_write): Add error handling.
40024 (grub_atapi_identify): Likewise.
40025 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
40027 (grub_ata_identify): Use `grub_ata_cmd' and improve error
40028 handling. Actually use the detected registers. Reorder the
40029 detection logic such that it is easier to read.
40030 (grub_ata_pciinit): Do not assign the same ID to each controller.
40031 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
40033 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
40035 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
40037 2008-08-08 Marco Gerards <marco@gnu.org>
40041 2008-08-07 Bean <bean123ch@gmail.com>
40043 * include/grub/x86_64/pci.h: New file.
40045 2008-08-07 Christian Franke <franke@computer.org>
40047 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
40048 (TIMER2_GATE): Likewise.
40049 (grub_pit_wait): Add enable/disable of the timer2 gate
40050 bit of port 0x61. This fixes a possible infinite loop.
40052 2008-08-07 Bean <bean123ch@gmail.com>
40054 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
40055 kern/i386/tsc.c and kern/i386/pit.c.
40057 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
40060 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
40063 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
40065 2008-08-07 Bean <bean123ch@gmail.com>
40067 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
40069 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
40071 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
40072 multiple inclusion. Add #include <grub/types.h>.
40074 2008-08-06 Christian Franke <franke@computer.org>
40076 * conf/common.rmk: Build and install `10_windows'.
40077 * util/grub.d/10_windows.in: New script.
40079 2008-08-06 Pavel Roskin <proski@gnu.org>
40081 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
40083 2008-08-06 Robert Millan <rmh@aybabtu.com>
40085 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
40086 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
40088 2008-08-06 Bean <bean123ch@gmail.com>
40090 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
40091 (grub_pxefs_fs_int): Remove dummy definition.
40092 (grub_pxefs_open): Use data->block_size to store the current block
40094 (grub_pxefs_read): Use block size stored in data->block_size. As the
40095 value of grub_pxe_blksize can be changed after the file is opened.
40097 2008-08-06 Bean <bean123ch@gmail.com>
40099 * fs/i386/pc/pxe.c (curr_file): new variable.
40100 (grub_pxefs_open): Simply the handling of pxe file system. Don't
40101 require the dummy internal file system anymore.
40102 (grub_pxefs_read): Removed.
40103 (grub_pxefs_close): Likewise.
40104 (grub_pxefs_fs_int): Likewise.
40105 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
40106 connection when we switch file.
40107 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
40109 2008-08-06 Robert Millan <rmh@aybabtu.com>
40111 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
40113 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
40114 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
40116 * kern/i386/halt.c: New file.
40117 * kern/i386/reboot.c: Likewise.
40118 * include/grub/i386/reboot.h: Likewise.
40119 * include/grub/i386/halt.h: Likewise.
40121 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
40122 Include `<grub/cpu/halt.h>'.
40123 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
40124 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
40126 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
40127 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
40128 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
40129 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
40130 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
40131 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
40133 * include/grub/i386/at_keyboard.h: ... to here.
40135 2008-08-05 Robert Millan <rmh@aybabtu.com>
40137 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
40138 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
40139 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
40140 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40141 `kern/generic/millisleep.c'.
40143 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
40144 instead of grub_get_rtc().
40145 (grub_tsc_init): Initialize `tsc_boot_time'.
40147 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
40148 (grub_machine_init): Use grub_tsc_init() rather than
40149 installing an RTC-based handler via grub_install_get_time_ms().
40151 * kern/i386/pit.c: New file.
40152 * include/grub/i386/pit.h: Likewise.
40154 2008-08-05 Bean <bean123ch@gmail.com>
40156 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
40158 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
40159 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
40160 (pxe_mod_SOURCES): New macro.
40161 (pxe_mod_CFLAGS): Likewise.
40162 (pxe_mod_LDFLAGS): Likewise.
40163 (pxecmd_mod_SOURCES): Likewise.
40164 (pxecmd_mod_CFLAGS): Likewise.
40165 (pxecmd_mod_LDFLAGS): Likewise.
40167 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
40168 (grub_pxe_call): Likewise.
40170 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
40172 * commands/i386/pc/pxecmd.c: New file.
40174 * fs/i386/pc/pxe.c: Likewise.
40176 * include/grub/i386/pc/pxe.h: Likewise.
40178 2008-08-05 Bean <bean123ch@gmail.com>
40180 * util/console.c (grub_console_cur_color): New variable.
40181 (grub_console_standard_color): Likewise.
40182 (grub_console_normal_color): Likewise.
40183 (grub_console_highlight_color): Likewise.
40184 (color_map): Likewise.
40185 (use_color): Likewise.
40186 (NUM_COLORS): New macro.
40187 (grub_ncurses_setcolorstate): Handle color properly.
40188 (grub_ncurses_setcolor): Don't change color here, just remember the
40189 settings, color will be set in grub_ncurses_setcolorstate.
40190 (grub_ncurses_getcolor): New function.
40191 (grub_ncurses_init): Initialize color pairs.
40192 (grub_ncurses_term): New member grub_ncurses_getcolor.
40194 2008-08-05 Colin D Bennett <colin@gibibit.com>
40196 High resolution timer support. Implemented for x86 CPUs using TSC.
40197 Extracted generic grub_millisleep() so it's linked in only as needed.
40198 This requires a Pentium compatible CPU; if the RDTSC instruction is
40199 not supported, then it falls back on the generic grub_get_time_ms()
40200 implementation that uses the machine's RTC.
40202 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
40203 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40204 `kern/generic/millisleep.c'.
40206 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
40207 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
40209 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
40210 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
40212 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40214 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40215 `kern/generic/millisleep.c'.
40217 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40219 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
40221 * kern/generic/rtc_get_time_ms.c: New file.
40223 * kern/generic/millisleep.c: New file.
40225 * kern/misc.c: Don't include
40226 <kern/time.h> anymore.
40227 (grub_millisleep_generic): Removed.
40229 * commands/sleep.c (grub_interruptible_millisleep): Uses
40230 grub_get_time_ms() instead of grub_get_rtc().
40232 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
40234 (grub_cpu_is_cpuid_supported): New inline function.
40235 (grub_cpu_is_tsc_supported): New inline function.
40236 (grub_tsc_init): New function prototype.
40237 (grub_tsc_get_time_ms): New function prototype.
40239 * kern/i386/tsc.c (grub_get_time_ms): New file.
40241 * include/grub/time.h: Include <grub/types.h.
40242 (grub_millisleep_generic): Removed.
40243 (grub_get_time_ms): New prototype.
40244 (grub_install_get_time_ms): New prototype.
40245 (grub_rtc_get_time_ms): New prototype.
40247 * kern/time.c (grub_get_time_ms): New function.
40248 (grub_install_get_time_ms): New function.
40250 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
40251 <grub/time.h> anymore.
40252 (grub_millisleep): Removed.
40253 (grub_machine_init): Call grub_tsc_init.
40255 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
40256 get_time_ms() implementation.
40258 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
40259 (ieee1275_get_time_ms): New function.
40260 (grub_machine_init): Install get_time_ms() implementation.
40262 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
40263 (grub_machine_init): Call grub_tsc_init().
40264 (grub_millisleep): Removed.
40266 * kern/ieee1275/init.c (grub_millisleep): Removed.
40267 (grub_machine_init): Install ieee1275_get_time_ms()
40269 (ieee1275_get_time_ms): New function.
40270 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
40273 2008-08-05 Marco Gerards <marco@gnu.org>
40275 * disk/ata.c: Include <grub/pci.h>.
40276 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
40277 (grub_ata_initialize): Rewritten.
40278 (grub_ata_device_initialize): New function.
40280 2008-08-04 Pavel Roskin <proski@gnu.org>
40282 * kern/main.c: Include grub/mm.h.
40284 2008-08-04 Robert Millan <rmh@aybabtu.com>
40286 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
40287 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
40288 corruption problem).
40290 2008-08-04 Robert Millan <rmh@aybabtu.com>
40292 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
40293 warnings introduced in my last commit.
40295 2008-08-03 Robert Millan <rmh@aybabtu.com>
40297 Make PCI available on all i386 architectures.
40299 * include/grub/i386/pc/pci.h: Move from here ...
40300 * include/grub/i386/pci.h: ... to here.
40302 * include/grub/i386/pc/pci.h: Remove.
40303 * include/grub/i386/efi/pci.h: Remove.
40304 * include/grub/x86_64/efi/pci.h: Remove.
40306 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
40307 `<grub/cpu/pci.h>'.
40309 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
40310 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
40311 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
40313 * conf/i386-ieee1275.rmk: Likewise.
40315 2008-08-03 Robert Millan <rmh@aybabtu.com>
40317 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
40318 (grub_console_setcursor): Make it possible to set cursor off.
40320 2008-08-03 Robert Millan <rmh@aybabtu.com>
40322 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
40323 of modules instead of assuming which platform provides what.
40324 * util/update-grub.in: Likewise.
40326 2008-08-03 Robert Millan <rmh@aybabtu.com>
40328 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
40329 instead of `grub_install_dos_part' to determine whether a drive needs
40330 to be prepended to prefix (`grub_install_dos_part' is not reliable,
40331 because it can be overridden when loading GRUB via Multiboot).
40333 2008-08-02 Robert Millan <rmh@aybabtu.com>
40335 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
40337 2008-08-02 Robert Millan <rmh@aybabtu.com>
40339 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
40340 of informational grub_dprintf() calls.
40342 2008-08-02 Robert Millan <rmh@aybabtu.com>
40344 * disk/memdisk.c (memdisk_size): Don't initialize.
40345 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
40347 * include/grub/i386/pc/kernel.h
40348 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
40349 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
40350 (grub_memdisk_image_size, grub_arch_memdisk_addr)
40351 (grub_arch_memdisk_size): Remove.
40353 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
40354 field (was only used to transfer a constant). Add `type' field to
40355 support multiple module types.
40356 (grub_module_iterate): New function.
40358 * kern/device.c (grub_device_open): Do not hide error messages
40359 when grub_disk_open() fails. Use grub_print_error() instead.
40361 * kern/i386/pc/init.c (grub_arch_modules_addr)
40362 (grub_arch_memdisk_size): Remove functions.
40363 (grub_arch_modules_addr): Return the module address in high memory
40364 (now that it isn't copied anymore).
40366 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
40367 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
40368 decompression routine (grub_total_module_size already includes that
40369 now). Don't copy modules back to low memory.
40371 * kern/main.c: Include `<grub/mm.h>'.
40372 (grub_load_modules): Split out (and use) ...
40373 (grub_module_iterate): ... this function, which iterates through
40374 module objects and runs a hook.
40375 Comment out grub_mm_init_region() call, as it would cause non-ELF
40376 modules to be overwritten.
40378 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
40379 the memdisk image in its own region, make it part of the module list.
40380 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
40381 (main): Parse --memdisk|-m option, and pass user-provided path as
40382 parameter to generate_image().
40383 (add_segments): Pass `memdisk_path' down to load_modules().
40384 (load_modules): Embed memdisk image in module section when requested.
40385 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
40386 `header.type' instead of `header.offset'.
40388 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
40389 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
40390 (memdisk_mod_LDFLAGS): New variables.
40391 * conf/i386-coreboot.rmk: Likewise.
40392 * conf/i386-ieee1275.rmk: Likewise.
40394 2008-08-02 Robert Millan <rmh@aybabtu.com>
40396 * loader/i386/pc/multiboot.c (playground, forward_relocator)
40397 (backward_relocator): New variables. Used to allocate and relocate
40398 the payload, respectively.
40399 (grub_multiboot_load_elf32): Load into heap instead of requested
40400 address, install the appropriate relocator code in each bound of
40401 the payload, and set the entry point such that
40402 grub_multiboot_real_boot() will jump to one of them.
40404 * kern/i386/loader.S (grub_multiboot_payload_size)
40405 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40406 (grub_multiboot_payload_entry_offset): New variables.
40407 (grub_multiboot_real_boot): Set cpu context to what the relocator
40408 expects, and jump to the relocator instead of the payload.
40410 * include/grub/i386/loader.h (grub_multiboot_payload_size)
40411 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40412 (grub_multiboot_payload_entry_offset): Export.
40414 2008-08-01 Bean <bean123ch@gmail.com>
40416 * normal/menu_entry.c (editor_getline): Don't return the original
40417 string as result, as it will be released by lexer once it has done
40420 2008-08-01 Robert Millan <rmh@aybabtu.com>
40422 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
40423 within menuentries, not before them.
40424 util/grub.d/10_hurd.in: Likewise.
40426 2008-08-01 Bean <bean123ch@gmail.com>
40428 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
40429 (bufio_mod_SOURCES): New macro.
40430 (bufio_mod_CFLAGS): Likewise.
40431 (bufio_mod_LDFLAGS): Likewise.
40433 * include/grub/bufio.h: New file.
40435 * io/bufio.c: Likewise.
40437 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
40438 (grub_video_reader_png): Use grub_buffile_open to open file.
40440 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
40441 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
40443 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
40444 (grub_video_reader_tga): Use grub_buffile_open to open file.
40446 * font/manager.c: Include <grub/bufio.h>.
40447 (add_font): Use grub_buffile_open to open file.
40449 2008-07-31 Robert Millan <rmh@aybabtu.com>
40451 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
40452 ELF segments, use a macro for arbitrarily accessing any of them instead
40453 of preparing a pointer that allows access to one at a time.
40454 (grub_multiboot_load_elf64): Likewise.
40456 2008-07-31 Bean <bean123ch@gmail.com>
40458 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
40459 GRUB_KERNEL_MACHINE_DATA_END.
40461 2008-07-30 Robert Millan <rmh@aybabtu.com>
40463 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
40464 Increase from 0x50 to 0x60.
40465 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
40466 use UUIDs to identify the root drive for them. If that's not
40468 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
40469 check, for cross-disk installs.
40471 2008-07-30 Robert Millan <rmh@aybabtu.com>
40473 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
40474 is non-empty, use it to set the `prefix' environment variable instead
40475 of the usual approach.
40476 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
40477 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
40478 environment variable instead of dummy make_install_device().
40480 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
40481 (start): Insert a data section, with `grub_prefix' variable.
40482 * kern/i386/linuxbios/startup.S: Likewise.
40484 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
40485 New variable reference.
40486 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
40487 New macro. Defines offset of `grub_prefix' within startup.S (relative
40489 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
40490 section within startup.S (relative to `start').
40491 * include/grub/i386/coreboot/kernel.h: Likewise.
40493 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
40494 Overwrite grub_prefix with its contents, at the beginning of the
40496 (main): Understand -p|--prefix.
40498 2008-07-30 Robert Millan <rmh@aybabtu.com>
40500 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
40502 2008-07-30 Robert Millan <rmh@aybabtu.com>
40504 * term/i386/pc/vga_text.c (grub_console_cls): Use
40505 grub_console_gotoxy() to go back to beginning of the screen.
40506 Found by Patrick Georgi <patrick.georgi@coresystems.de>
40508 2008-07-29 Christian Franke <franke@computer.org>
40510 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40511 Add conversion of emulated mount points on Cygwin.
40513 2008-07-29 Christian Franke <franke@computer.org>
40515 * util/update-grub.in: Add a check for admin
40517 Remove old `grub.cfg.new' before creation.
40518 Add `-f' to `mv' to handle the different filesystem
40519 semantics of Windows.
40521 2008-07-29 Bean <bean123ch@gmail.com>
40523 * normal/main.c (get_line): Fix buffer overflow bug.
40525 2008-07-28 Robert Millan <rmh@aybabtu.com>
40527 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
40528 (struct grub_apple_header): New struct. Describes the layout of
40529 the partmap header.
40530 (apple_partition_map_iterate): Check the header magic as well as the
40531 partition magic (which was already being checked).
40533 2008-07-28 Pavel Roskin <proski@gnu.org>
40535 * genmk.rb: Add a warning to the beginning of the output that
40536 it's a generated file and should not be edited.
40538 2008-07-28 Robert Millan <rmh@aybabtu.com>
40540 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40541 with the same number are found, just use issue a warning with
40542 grub_dprintf(), as this error has been reported to be non-fatal.
40544 2008-07-27 Robert Millan <rmh@aybabtu.com>
40546 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
40549 2008-07-27 Bean <bean123ch@gmail.com>
40551 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
40552 (grub_fat_find_dir): Ignore case when comparing filename.
40554 2008-07-27 Bean <bean123ch@gmail.com>
40556 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
40557 smallino, as it's more descriptive, and i8count can be confused with
40558 the other field count.
40559 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
40562 2008-07-27 Bean <bean123ch@gmail.com>
40564 * commands/crc.c: New file.
40566 * lib/crc.c: Likewise.
40568 * include/grub/lib/crc.h: Likewise.
40570 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
40572 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
40573 (hexdump): Move this function to ...
40575 * lib/hexdump.c: ... here.
40577 * include/grub/hexdump.h: Renamed to ...
40579 * include/grub/lib/hexdump.h: ... this.
40581 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
40583 * util/grub-editenv.c: Likewise.
40585 * include/envblk.h: Renamed to ...
40587 * include/lib/envblk.h: ... this.
40589 * util/envblk.c: Renamed to ...
40591 * lib/envblk.c: ... this.
40593 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
40595 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
40596 (pkglib_MODULES): Add crc.mod.
40597 (hexdump_mod_SOURCES): Add lib/hexdump.c.
40598 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
40599 (crc_mod_SOURCES): New macro.
40600 (crc_mod_CFLAGS): Likewise.
40601 (crc_mod_LDFLAGS): Likewise.
40603 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
40605 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40607 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40611 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40613 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
40615 * commands/help.c: Include <grub/term.h>.
40616 (TERM_WIDTH): Removed. Updated all users.
40618 2008-07-27 Pavel Roskin <proski@gnu.org>
40620 * util/getroot.c (find_root_device): Rephrase a comment to avoid
40621 spurious warnings about a comment within a comment.
40623 2008-07-25 Robert Millan <rmh@aybabtu.com>
40625 * util/getroot.c (find_root_device): Skip devices that match
40626 /dev/dm-[0-9]. This lets the real device be found for any type of
40627 abstraction (LVM, EVMS, RAID..).
40628 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
40629 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
40630 device is found first, find_root_device() will now skip it.
40632 2008-07-24 Pavel Roskin <proski@gnu.org>
40634 * include/grub/types.h: Use __builtin_bswap32() and
40635 __builtin_bswap64() with gcc 4.3 and newer.
40637 2008-07-24 Christian Franke <franke@computer.org>
40639 * util/i386/pc/grub-install.in: If `--debug' is specified,
40640 pass `--verbose' to grub-setup.
40641 Abort script if make_system_path_relative_to_its_root() fails.
40643 2008-07-24 Bean <bean123ch@gmail.com>
40645 * configure.ac: Fixed a bug caused by the previous cygwin patch,
40646 variable `target_platform' should be `platform'.
40648 2008-07-24 Bean <bean123ch@gmail.com>
40650 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
40651 (grub_png_init_fixed_block): New function.
40652 (grub_png_decode_image_data): Handle fixed huffman code compression.
40654 2008-07-24 Bean <bean123ch@gmail.com>
40656 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
40657 (grub_pe2elf_SOURCES): New macro.
40658 (CLEANFILES): Add grub-pe2elf.
40660 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
40661 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
40662 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
40663 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
40664 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
40665 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
40666 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
40667 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
40668 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
40669 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
40670 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
40671 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
40672 (GRUB_PE32_DT_FUNCTION): Likewise.
40673 (GRUB_PE32_REL_I386_DIR32): Likewise.
40674 (GRUB_PE32_REL_I386_REL32): Likewise.
40675 (grub_pe32_symbol): New structure.
40676 (grub_pe32_reloc): Likewise.
40678 * util/grub-pe2elf.c: New file.
40680 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
40681 start symbol in non pc platform.
40683 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
40685 The following patches are from Christian Franke.
40687 * include/grub/dl.h: Remove .previous, gas supports this only
40690 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
40691 Remove .type, gas supports this only for ELF format.
40693 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
40694 nullbytes in symbol table. This fixes an infinite loop if table is
40697 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
40698 TARGET_IMG_LDFLAGS and EXEEXT.
40700 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
40701 TARGET_IMG_LDFLAGS_AC.
40702 (grub_CHECK_STACK_ARG_PROBE): New function.
40704 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
40706 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
40708 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
40709 to set TARGET_IMG_LD* accordingly.
40710 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
40711 Add call to grub_CHECK_STACK_ARG_PROBE.
40712 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
40714 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
40716 * genmk.rb: Add EXEEXT to CLEANFILES.
40718 2008-07-23 Robert Millan <rmh@aybabtu.com>
40720 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
40721 define the codes for arrows and lines used for the menu).
40722 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
40725 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
40726 fonts, because the latter are too slow.
40728 2008-07-21 Bean <bean123ch@gmail.com>
40730 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
40731 a20. Run keyboard test last, as it will cause macbook to halt.
40733 2008-07-18 Pavel Roskin <proski@gnu.org>
40735 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
40736 load foreign architecture modules correctly anyway. Keep
40737 support for loading host architecture modules, whether we
40738 compile them or not.
40740 2008-07-17 Pavel Roskin <proski@gnu.org>
40742 * configure.ac: Use -m32 or -m64 regardless of whether we had to
40743 change target_cpu. The compiler default can mismatch target_cpu
40746 * disk/efi/efidisk.c: Fix format warnings on x86_64.
40747 * kern/efi/efi.c: Likewise.
40749 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
40750 target compiler is functional.
40751 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
40754 * configure.ac: Default to efi platform for x86_64-apple. Allow
40755 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
40756 adjustments from the rest, only do them if target is not
40757 explicitly given. Merge other adjustments with the final sanity
40758 check. Remove an extraneous check for supported CPU. Be
40759 specific which CPU and which platform is not supported.
40761 * configure.ac: Default to pc platform for x86_64.
40763 2008-07-17 Robert Millan <rmh@aybabtu.com>
40765 Partial LinuxBIOS -> Coreboot rename.
40767 * conf/i386-linuxbios.rmk: Renamed to ...
40768 * conf/i386-coreboot.rmk: ... this.
40769 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
40770 * configure.ac: Accept "coreboot" as input platform (but maintain
40771 compatibility with "linuxbios").
40772 * include/grub/i386/linuxbios: Renamed to ...
40773 * include/grub/i386/coreboot: ... this.
40775 2008-07-17 Bean <bean123ch@gmail.com>
40777 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
40778 (appleldr_mod_SOURCE): New variable.
40779 (appleldr_mod_CFLAGS): Likewise.
40780 (appleldr_mod_LDFLAGS): Likewise.
40781 (pci_mod_SOURCES): Likewise.
40782 (pci_mod_CFLAGS): Likewise.
40783 (pci_mod_LDFLAGS): Likewise.
40784 (lspci_mod_SOURCES): Likewise.
40785 (lspci_mod_CFLAGS): Likewise.
40786 (lspci_mod_LDFLAGS): Likewise.
40788 * conf/x86_64-efi.rmk: New file.
40790 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40792 (grub_efidisk_write): Likewise.
40794 * include/efi/api.h (efi_call_0): New macro.
40795 (efi_call_1): Likewise.
40796 (efi_call_2): Likewise.
40797 (efi_call_3): Likewise.
40798 (efi_call_4): Likewise.
40799 (efi_call_5): Likewise.
40800 (efi_call_6): Likewise.
40802 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40803 grub_rescue_cmd_chainloader.
40805 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40806 (grub_pe32_optional_header): Change some fields based on i386 or
40808 (GRUB_PE32_PE32_MAGIC): Likewise.
40810 * include/grub/efi/uga_draw.h: New file.
40812 * include/grub/elf.h (STN_ABS): New constant.
40813 (R_X86_64_NONE): Relocation constant for x86_64.
40814 (R_X86_64_64): Likewise.
40815 (R_X86_64_PC32): Likewise.
40816 (R_X86_64_GOT32): Likewise.
40817 (R_X86_64_PLT32): Likewise.
40818 (R_X86_64_COPY): Likewise.
40819 (R_X86_64_GLOB_DAT): Likewise.
40820 (R_X86_64_JUMP_SLOT): Likewise.
40821 (R_X86_64_RELATIVE): Likewise.
40822 (R_X86_64_GOTPCREL): Likewise.
40823 (R_X86_64_32): Likewise.
40824 (R_X86_64_32S): Likewise.
40825 (R_X86_64_16): Likewise.
40826 (R_X86_64_PC16): Likewise.
40827 (R_X86_64_8): Likewise.
40828 (R_X86_64_PC8): Likewise.
40830 * include/grub/i386/efi/pci.h: New file.
40832 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40833 Change it value based on platform.
40834 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40835 (GRUB_E820_RAM): Likewise.
40836 (GRUB_E820_RESERVED): Likewise.
40837 (GRUB_E820_ACPI): Likewise.
40838 (GRUB_E820_NVS): Likewise.
40839 (GRUB_E820_EXEC_CODE): Likewise.
40840 (GRUB_E820_MAX_ENTRY): Likewise.
40841 (grub_e820_mmap): New structure.
40842 (linux_kernel_header): Change the efi field according to different
40843 kernel version, also field from linux_kernel_header.
40845 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40847 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40848 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40849 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40850 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40851 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40852 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40853 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40854 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40855 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40856 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40858 * include/grub/x86_64/efi/kernel.h: New file.
40860 * include/grub/x86_64/efi/loader.h: Likewise.
40862 * include/grub/x86_64/efi/machine.h: Likewise.
40864 * include/grub/x86_64/efi/pci.h: Likewise.
40866 * include/grub/x86_64/efi/time.h: Likewise.
40868 * include/grub/x86_64/linux.h: Likewise.
40870 * include/grub/x86_64/setjmp.h: Likewise.
40872 * include/grub/x86_64/time.h: Likewise.
40874 * include/grub/x86_64/types.h: Likewise.
40876 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40877 GRUB_TARGET_SIZEOF_VOID_P.
40879 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40880 (grub_efi_locate_handle): Likewise.
40881 (grub_efi_open_protocol): Likewise.
40882 (grub_efi_set_text_mode): Likewise.
40883 (grub_efi_stall): Likewise.
40884 (grub_exit): Likewise.
40885 (grub_reboot): Likewise.
40886 (grub_halt): Likewise.
40887 (grub_efi_exit_boot_services): Likewise.
40888 (grub_get_rtc): Likewise.
40890 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40891 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40892 (grub_efi_allocate_pages): Wrap efi calls.
40893 (grub_efi_free_pages): Wrap efi calls.
40894 (grub_efi_get_memory_map): Wrap efi calls.
40896 * kern/x86_64/dl.c: New file.
40898 * kern/x86_64/efi/callwrap.S: Likewise.
40900 * kern/x86_64/efi/startup.S: Likewise.
40902 * loader/efi/appleloader.c: Likewise.
40904 * loader/efi/chainloader.c (cmdline): New variable.
40905 (grub_chainloader_unload): Wrap efi calls.
40906 (grub_chainloader_boot): Likewise.
40907 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40910 * loader/efi/chainloader_normal.c (chainloader_command):
40911 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40914 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40916 (grub_e820_add_region): New function.
40917 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40919 (grub_find_video_card): New function.
40920 (grub_linux_setup_video): New function.
40921 (grub_rescue_cmd_linux): Probe for video information.
40923 * normal/x86_64/setjmp.S: New file.
40925 * term/efi/console.c (map_char): New function.
40926 (grub_console_putchar): Map unicode char.
40927 (grub_console_checkkey): Wrap efi calls.
40928 (grub_console_getkey): Likewise.
40929 (grub_console_getwh): Likewise.
40930 (grub_console_gotoxy): Likewise.
40931 (grub_console_cls): Likewise.
40932 (grub_console_setcolorstate): Likewise.
40933 (grub_console_setcursor): Likewise.
40935 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
40937 2008-07-16 Pavel Roskin <proski@gnu.org>
40939 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
40942 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
40943 pointer, not an integer. This fixes a warning and prevents
40944 precision loss on 64-bit systems.
40945 (relocate_addresses): Remove unneeded cast.
40947 2008-07-15 Pavel Roskin <proski@gnu.org>
40949 * kern/i386/ieee1275/init.c: Include grub/cache.h.
40951 * term/ieee1275/ofconsole.c: Disable code unused on i386.
40953 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
40954 Fix comparison between signed and unsigned.
40956 * include/grub/i386/ieee1275/console.h: Declare
40957 grub_console_init() and grub_console_fini().
40959 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
40960 It's empty and unused.
40962 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
40963 beginning to avoid warnings with some compilers.
40965 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
40966 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
40968 2008-07-14 Pavel Roskin <proski@gnu.org>
40970 * kern/env.c (grub_register_variable_hook): Don't copy empty
40971 string, it leaks memory. Pass "" to grub_env_set(), it should
40972 handle constant strings.
40974 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
40975 * commands/cmp.c (grub_cmd_cmp): Likewise.
40976 * kern/dl.c (grub_dl_flush_cache): Likewise.
40977 (grub_dl_load_core): Likewise.
40978 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
40979 (grub_elf64_load_phdrs): Likewise.
40981 2008-07-13 Pavel Roskin <proski@gnu.org>
40983 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
40984 between signed and unsigned.
40985 (LzmaEnc_Finish): Fix warning about an unused parameter.
40987 2008-07-13 Bean <bean123ch@gmail.com>
40989 * Makefile.in (enable_lzo): New rule.
40991 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
40993 * configure.ac (ENABLE_LZO): New option --enable-lzo.
40995 * boot/i386/pc/lnxboot.S: #include <config.h>.
40997 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
40998 its value according to the compression algorithm used, lzo or lzma.
41000 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
41001 compression algorithm according to configure macro.
41003 * kern/i386/pc/startup.S (codestart): Likewise.
41005 * kern/i386/pc/lzma_decode.S: New file.
41007 * include/grub/lib/LzFind.h: Likewise.
41009 * include/grub/lib/LzHash.h: Likewise.
41011 * include/grub/lib/LzmaDec.h: Likewise.
41013 * include/grub/lib/LzmaEnc.h: Likewise.
41015 * include/grub/lib/LzmaTypes.h: Likewise.
41017 * lib/LzFind.c: Likewise.
41019 * lib/LzmaDec.c: Likewise.
41021 * lib/LzmaEnc.c: Likewise.
41023 2008-07-13 Bean <bean123ch@gmail.com>
41025 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
41026 (grub_ext4_extent_header): New structure.
41027 (grub_ext4_extent): Likewise.
41028 (grub_ext4_extent_idx): Likewise.
41029 (grub_ext4_find_leaf): New function.
41030 (grub_ext2_read_block): Handle extents.
41032 2008-07-12 Robert Millan <rmh@aybabtu.com>
41034 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
41036 2008-07-11 Robert Millan <rmh@aybabtu.com>
41038 * util/grub.d/40_custom.in: New file. Example on how to add custom
41039 entries to /etc/grub.d.
41040 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
41041 40_custom (implicitly, by merging all the grub.d rules).
41043 2008-07-11 Pavel Roskin <proski@gnu.org>
41045 * commands/read.c (grub_getline): Fix invalid memory access.
41046 Don't add newline to the variable value.
41048 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
41049 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
41050 (serial_hw_get_port): Check validity of the port number.
41051 (grub_cmd_serial): Check return value of serial_hw_get_port().
41053 2008-07-07 Pavel Roskin <proski@gnu.org>
41055 * boot/i386/pc/diskboot.S (notification_string): Replace
41056 "Loading kernel" with just "loading". This is shorter, less
41057 confusing and saves a few bytes for possible future changes.
41059 2008-07-05 Pavel Roskin <proski@gnu.org>
41061 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
41062 size for ATAPI devices, they are undefined. Output sector
41063 number in decimal form.
41065 * disk/ata.c: Use named constants for status bits.
41067 2008-07-04 Pavel Roskin <proski@gnu.org>
41069 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
41070 grub_addr_t before casting it to the void pointer to fix a
41071 warning. Non-addressable regions are discarded earlier.
41072 (grub_arch_modules_addr): Cast _end to grub_addr_t.
41073 * kern/i386/linuxbios/table.c: Include grub/misc.h.
41074 (check_signature): Don't shadow table_header.
41075 (grub_linuxbios_table_iterate): Cast numeric constants to
41076 grub_linuxbios_table_header_t.
41077 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
41080 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
41083 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
41084 pointer, which can cause warnings. Support 64-bit addresses.
41086 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
41087 of sizeof(long). This fixes PowerPC image generation on x86_64.
41089 2008-07-04 Robert Millan <rmh@aybabtu.com>
41091 This fixes a performance issue when pc & gpt partmap iterators
41092 didn't abort iteration even after our hook found what it was
41093 looking for (often causing expensive probes of non-existent drives).
41095 Some callers relied on previous buggy behaviour, since they would
41096 raise an error when their own hooks caused early abortion of its
41099 * kern/device.c (grub_device_open): Improve error message.
41100 * disk/lvm.c (grub_lvm_open): Likewise.
41101 * disk/raid.c (grub_raid_open): Likewise.
41103 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
41104 when hook requests it, independently of grub_errno.
41105 (pc_partition_map_probe): Do not fail when find_func() caused
41106 early abortion of pc_partition_map_iterate().
41108 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
41109 when hook requests it, independently of grub_errno.
41110 (gpt_partition_map_probe): Do not fail when find_func() caused
41111 early abortion of gpt_partition_map_iterate().
41113 * kern/partition.c (grub_partition_iterate): Abort parent iteration
41114 when hook requests it, independently of grub_errno. Do not fail when
41115 part_map_iterate_hook() caused early abortion of p->iterate().
41117 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
41118 when grub_partition_iterate() returned with non-zero.
41120 2008-07-03 Pavel Roskin <proski@gnu.org>
41122 * disk/ata.c (grub_ata_pio_write): Check status before writing,
41123 like we do in grub_ata_pio_read().
41124 (grub_ata_readwrite): Always write individual sectors. Fix the
41125 sector count for the remainder.
41126 (grub_ata_write): Enable writing to ATA devices. Correctly
41127 report error for ATAPI devices.
41129 2008-07-02 Pavel Roskin <proski@gnu.org>
41131 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
41134 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
41135 for every read sector, we already increment it for the whole
41136 batch. This fixes reading more than 256 sectors at once.
41138 * util/grub-editenv.c (cmd_info): Cast argument to long
41139 explicitly. ptrdiff_t reduces to int on i386.
41141 * util/grub-editenv.c (main): Be specific which parameter is
41144 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
41145 (memdisk): Make memdisk_orig_addr a pointer.
41147 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
41148 for file offsets, use grub_off_t instead. Fix printf format
41151 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
41152 there. Real unexpected warnings should not drown in the noise
41153 about known problems.
41155 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
41156 grub_disk_addr_t for memory addresses.
41158 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
41159 explicitly to fix a warning.
41161 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
41163 * Makefile.in (MODULE_LDFLAGS): New variable.
41164 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
41165 the linker accepts --build-id=none.
41166 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
41168 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
41170 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
41171 those in Linux XFS code. Provide a way to access 64-bit parent
41173 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
41174 the end of struct grub_xfs_dir_header.
41176 2008-07-02 Bean <bean123ch@gmail.com>
41178 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
41179 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41180 and GRUB_IEEE1275_FLAG_NO_ANSI.
41182 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
41183 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41184 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
41186 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
41187 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
41189 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
41190 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
41192 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
41193 esc sequence on non ANSI terminal.
41194 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
41196 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
41199 2008-07-02 Bean <bean123ch@gmail.com>
41201 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
41202 (grub_editenv_SOURCES): New variable.
41203 (pkglib_MODULES): Add loadenv.mod.
41204 (loadenv_mod_SOURCES): New variable.
41205 (loadenv_mod_CFLAGS): Likewise.
41206 (loadenv_mod_LDFLAGS): Likewise.
41208 * include/grub/envblk.h: New file.
41210 * util/envblk.c: New file.
41212 * util/grub-editenv.c: New file.
41214 * commands/loadenv.c: New file.
41216 2008-07-01 Pavel Roskin <proski@gnu.org>
41218 * include/multiboot2.h (struct multiboot_tag_module): Use char,
41219 not unsigned char. This fixes warnings and is consistent with
41222 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
41224 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
41226 * term/tparm.c (analyze): Always set *popcount.
41228 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
41229 cast to fix a warning.
41231 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
41232 cast to suppress a warning.
41234 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
41235 grub_fshelp_read_file() expects.
41237 * fs/fat.c: Fix UUID calculation on big-endian systems. We
41238 write uuid as a 32-bit value in CPU byte order, so declare and
41241 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
41242 long if the format specifier expects it.
41243 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
41244 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41245 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
41246 long to fix a warning.
41247 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
41248 grub_dprintf() arguments to fix warnings.
41250 2008-06-30 Pavel Roskin <proski@gnu.org>
41252 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
41253 install_bsd_part immediately before core.img is embedded or
41254 modified on disk. This fixes core.img verification if core.img
41255 cannot be embedded.
41257 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
41258 core_path to calculate the blocklist.
41259 Patch from Javier Martín <lordhabbit@gmail.com>
41261 2008-06-29 Robert Millan <rmh@aybabtu.com>
41263 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
41264 block to disk block.
41265 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
41266 Patch from Niels Böhm <bitbucket@arcor.de>
41268 2008-06-29 Robert Millan <rmh@aybabtu.com>
41270 * util/update-grub_lib.in (font_path): Search for fonts in
41271 /boot/grub first, which is more likely to be readable (we aren't
41272 deciding where fonts live, just looking for them).
41274 2008-06-26 Pavel Roskin <proski@gnu.org>
41276 * util/biosdisk.c (read_device_map): Don't leave dead map
41277 entries for devices failing stat() check.
41279 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
41280 core_path_dev for the core.img path on the target device.
41282 2008-06-26 Robert Millan <rmh@aybabtu.com>
41284 * disk/fs_uuid.c: New file.
41285 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
41286 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
41287 (fs_uuid_mod_LDFLAGS): New variables.
41288 * include/grub/disk.h (grub_disk_dev_id): Add
41289 `GRUB_DISK_DEVICE_UUID_ID'.
41290 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
41291 implement iterate().
41293 2008-06-26 Robert Millan <rmh@aybabtu.com>
41295 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
41296 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
41297 Linux image includes no initrd.
41299 2008-06-21 Javier Martín <lordhabbit@gmail.com>
41301 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
41302 call to resolve the core image location that effectively appended the
41305 2008-06-21 Robert Millan <rmh@aybabtu.com>
41307 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
41310 * util/grub.d/10_hurd.in: ... to here ...
41311 * util/grub.d/10_linux.in: ... and here.
41313 2008-06-19 Robert Millan <rmh@aybabtu.com>
41315 * kern/main.c (grub_main): Export `prefix' variable immediately
41316 after it has been set by grub_machine_set_prefix().
41318 2008-06-19 Robert Millan <rmh@aybabtu.com>
41320 * commands/search.c (search_label, search_fs_uuid, search_file): Print
41321 search result when not saving to variable, not the other way around.
41322 When saving to variable, abort iteration as soon as a match is found.
41324 2008-06-19 Robert Millan <rmh@aybabtu.com>
41326 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
41327 check for partition that provides /boot/grub. Its logic is flawed,
41328 as it prevents prepare_grub_to_access_device() from being called
41331 2008-06-19 Robert Millan <rmh@aybabtu.com>
41333 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
41334 "insmod" command directly when abstraction modules are needed,
41335 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
41336 since it had already been processed).
41338 2008-06-19 Pavel Roskin <proski@gnu.org>
41340 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
41341 changed. This is needed in case GRUB_LIBDIR changes.
41342 * conf/i386-ieee1275.rmk: Likewise.
41343 * conf/i386-linuxbios.rmk: Likewise.
41344 * conf/i386-pc.rmk: Likewise.
41345 * conf/powerpc-ieee1275.rmk: Likewise.
41347 2008-06-18 Pavel Roskin <proski@gnu.org>
41349 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
41350 kernel_elf_symlist.c to symlist.c for consistency with other
41351 architectures. Update all users.
41352 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41354 2008-06-18 Robert Millan <rmh@aybabtu.com>
41356 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
41359 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
41360 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
41361 a RAID device, run setup() for all members independently on whether
41362 LVM abstraction is being used.
41363 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
41364 If grub-mkimage has set `*install_dos_part == -2', don't override this
41366 Perform *install_dos_part adjustments independently on whether
41367 we're embedding or not.
41368 Clarify error message when image is too big for embedding.
41369 Remove duplicate *install_dos_part stanza.
41371 2008-06-17 Robert Millan <rmh@aybabtu.com>
41373 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
41374 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
41376 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
41377 values in grub_ofconsole_normal_color and
41378 grub_ofconsole_highlight_color (they're not directly related to
41379 background and foreground).
41380 (grub_ofconsole_setcolorstate): Extract background and foreground
41381 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
41383 2008-06-17 Robert Millan <rmh@aybabtu.com>
41385 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
41386 /boot/grub for the check in last commit, not /boot (they could be
41387 different partitions).
41389 2008-06-16 Robert Millan <rmh@aybabtu.com>
41391 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
41392 asked to setup access for the same partition that provides /boot,
41393 don't bother using UUIDs since our root already has the value we
41396 2008-06-16 Robert Millan <rmh@aybabtu.com>
41398 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
41400 Patch from Sven Mueller <sven@debian.org>.
41402 2008-06-16 Robert Millan <rmh@aybabtu.com>
41404 * util/update-grub.in: Check for $EUID instead of $UID.
41405 Reported by Vincent Zweije.
41407 2008-06-16 Bean <bean123ch@gmail.com>
41409 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
41410 (grub_ext2_read_block): Likewise.
41411 (grub_ext2_read_inode): Likewise.
41412 (grub_ext2_mount): Likewise.
41413 (grub_ext2_close): Likewise.
41414 (grub_ext3_get_journal): Removed.
41416 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
41417 (grub_reiserfs_read_symlink): Likewise.
41418 (grub_reiserfs_mount): Likewise.
41419 (grub_reiserfs_open): Likewise.
41420 (grub_reiserfs_read): Likewise.
41421 (grub_reiserfs_close): Likewise.
41422 (grub_reiserfs_get_journal): Removed.
41424 * fs/fshelp.c (grub_fshelp_read): Removed.
41425 (grub_fshelp_map_block): Likewise.
41427 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
41428 (grub_fshelp_journal): Likewise.
41429 (grub_fshelp_read): Likewise.
41430 (grub_fshelp_map_block): Likewise.
41432 2008-06-16 Pavel Roskin <proski@gnu.org>
41434 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
41435 floating point anymore.
41436 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
41438 2008-06-15 Pavel Roskin <proski@gnu.org>
41440 * commands/ls.c (grub_ls_list_files): Use integer calculations
41441 for human readable format, avoid floating point use.
41442 * kern/misc.c (grub_ftoa): Remove.
41443 (grub_vsprintf): Remove floating point support.
41445 2008-06-15 Robert Millan <rmh@aybabtu.com>
41447 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
41449 Reported by Max Vozeler.
41451 2008-06-15 Robert Millan <rmh@aybabtu.com>
41453 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
41454 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
41456 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
41457 the beginning of the prefix.
41459 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
41460 It is assumed that if we have a memdisk, grub-mkimage has set
41461 grub_prefix to include the "(memdisk)" drive in it.
41463 2008-06-15 Robert Millan <rmh@aybabtu.com>
41465 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
41466 Initialize keyboard controller after registering the terminal, so that
41467 grub_printf() can be called from grub_keyboard_controller_init().
41469 2008-06-15 Robert Millan <rmh@aybabtu.com>
41471 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
41472 extent-btree which is written as big endian on disk.
41473 Reported by Alain Greppin <al@chilibi.org>.
41475 2008-06-14 Robert Millan <rmh@aybabtu.com>
41477 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
41478 * util/i386/pc/grub-install.in (modules): Likewise.
41480 2008-06-13 Pavel Roskin <proski@gnu.org>
41482 * commands/ls.c (grub_ls_list_files): Fix format warnings.
41484 2008-06-13 Bean <bean123ch@gmail.com>
41486 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
41488 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
41490 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
41491 to indicate sparse block.
41493 2008-06-12 Pavel Roskin <proski@gnu.org>
41495 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
41496 number, grub_fshelp_read() does it for us.
41498 * fs/fshelp.c (grub_fshelp_read): New function. Implement
41499 linear disk read with journal translation.
41500 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
41501 * include/grub/fshelp.h: Declare grub_fshelp_read().
41503 2008-06-09 Pavel Roskin <proski@gnu.org>
41505 * fs/minix.c (grub_minix_mount): Handle error reading
41508 2008-06-08 Robert Millan <rmh@aybabtu.com>
41510 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
41511 don't append the RAID prefix afterwards.
41512 Reported by Clint Adams.
41514 2008-06-08 Robert Millan <rmh@aybabtu.com>
41516 Based on description from Pavel:
41517 * kern/disk.c (grub_disk_check_range): Rename to ...
41518 (grub_disk_adjust_range): ... this. Add a comment explaining the
41519 tasks performed by this function.
41521 2008-06-08 Robert Millan <rmh@aybabtu.com>
41523 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
41524 `num_serial' (for consistency with other variables).
41525 (struct grub_ntfs_data): Add `uuid' member.
41526 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
41527 (grub_ntfs_uuid): New function.
41528 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
41530 2008-06-07 Pavel Roskin <proski@gnu.org>
41532 * util/biosdisk.c (open_device): Revert last change to the
41533 function, it broke installation. The sector needs to be
41534 different dependent on which device is opened.
41536 2008-06-06 Robert Millan <rmh@aybabtu.com>
41538 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
41539 rest of GRUB, and breakage doesn't happen if its value were modified.
41541 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41542 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
41543 a constant (same value).
41544 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
41545 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
41547 2008-06-06 Robert Millan <rmh@aybabtu.com>
41549 * util/biosdisk.c (open_device): Do not modify sector offset when
41550 accessing a partition. kern/disk.c already handles this for us.
41552 2008-06-06 Robert Millan <rmh@aybabtu.com>
41554 * util/grub-emu.c (grub_machine_init): Move code in this function from
41556 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
41557 segfault in case grub_printf() is called).
41559 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
41560 grub_probe. Update all users not to explicitly add it again.
41561 (grub_device): New variable; contains corresponding device for grubdir.
41562 (fs_module, partmap_module, devabstraction_module): Pass
41563 `--device ${grub_device}' to grub_probe to avoid traversing /dev
41566 2008-06-05 Robert Millan <rmh@aybabtu.com>
41568 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
41569 is found, print it (same layout as with labels).
41571 2008-06-04 Robert Millan <rmh@aybabtu.com>
41573 * util/biosdisk.c (get_drive): Rename to ...
41574 (find_grub_drive): ... this. Update all users.
41576 (get_os_disk): Rename to ...
41577 (convert_system_partition_to_system_disk): ... this. Update all users.
41579 (find_drive): Rename to ...
41580 (find_system_device): ... this. Update all users.
41582 2008-06-04 Robert Millan <rmh@aybabtu.com>
41584 * util/biosdisk.c (get_os_disk): Handle IDA devices.
41585 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41586 (make_device_map): Likewise.
41588 2008-06-01 Robert Millan <rmh@aybabtu.com>
41590 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
41591 before dereferencing it.
41593 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
41594 union with fat12/fat16-specific ones. Add some new fields, including
41595 `num_serial' for both versions.
41596 (struct grub_fat_data): Add `uuid' member.
41597 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
41598 names. Initialize `data->uuid' using `num_serial'.
41599 (grub_fat_uuid): New function.
41600 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
41602 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
41603 (grub_reiserfs_uuid): New function.
41604 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
41607 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
41608 (grub_xfs_uuid): New function.
41609 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
41611 2008-06-01 Robert Millan <rmh@aybabtu.com>
41613 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
41614 code that is backward compatible with pre-uuid search command.
41616 2008-05-31 Robert Millan <rmh@aybabtu.com>
41618 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
41619 floppies after everything else, to ensure floppy drive isn't accessed
41620 unnecessarily (patch from Bean).
41622 2008-05-31 Robert Millan <rmh@aybabtu.com>
41624 * commands/search.c (search_label, search_fs_uuid, search_file): Do
41625 not print device names when we were asked to set a variable.
41627 2008-05-31 Robert Millan <rmh@aybabtu.com>
41629 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
41630 using "cursor-on" and "cursor-off" commands (understood at least by
41631 the Open Firmware flavour on OLPC).
41633 2008-05-31 Michael Gorven <michael@gorven.za.net>
41635 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
41636 on and off sequences.
41638 2008-05-31 Robert Millan <rmh@aybabtu.com>
41640 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
41641 * util/update-grub.in: Likewise.
41643 2008-05-30 Pavel Roskin <proski@gnu.org>
41645 * util/biosdisk.c (linux_find_partition): Simplify logic and
41646 make the code more universal. Keep special processing for
41647 devfs, but use a simple rule for all other devices. If the
41648 device ends with a number, append 'p' and the partition number.
41649 Otherwise, append only the partition number.
41651 2008-05-30 Robert Millan <rmh@aybabtu.com>
41653 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
41654 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
41655 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
41656 the `root' parameter to Linux.
41658 2008-05-30 Robert Millan <rmh@aybabtu.com>
41660 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
41661 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
41662 --fs_uuid with --fs-uuid.
41663 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
41664 all filesystems support them).
41666 2008-05-30 Robert Millan <rmh@aybabtu.com>
41668 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
41669 grub_printf() flags, since we're printing in units of 2 bytes.
41671 2008-05-30 Robert Millan <rmh@aybabtu.com>
41673 * util/grub.d/00_header.in: Remove obsolete comment referencing
41674 convert_system_path_to_grub_path().
41675 * util/update-grub.in: Likewise.
41676 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
41677 (convert_system_path_to_grub_path): Add a warning message explaining
41678 that this function is deprecated. Rely on is_path_readable_by_grub()
41679 for the readability checks.
41680 (font_path): Use is_path_readable_by_grub() for the readability
41681 check rather than convert_system_path_to_grub_path().
41683 2008-05-30 Robert Millan <rmh@aybabtu.com>
41685 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
41686 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
41687 converting it first.
41688 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
41689 grub.cfg for access to font file, and afterwards call it again to set
41692 2008-05-30 Robert Millan <rmh@aybabtu.com>
41694 * commands/search.c (options): Add --fs_uuid option.
41695 (search_fs_uuid): New function.
41696 (grub_cmd_search): Fix --set argument passing.
41697 Use search_fs_uuid() when requested via --fs_uuid.
41698 (grub_search_init): Update help message.
41699 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
41700 and redeclare it as an array of 16-bit words.
41701 (grub_ext2_uuid): New function.
41702 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
41703 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
41704 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
41705 (GRUB_DEVICE_BOOT_UUID): New variables.
41706 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
41707 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
41709 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
41710 just assume `root' variable has the right value.
41711 * util/grub.d/10_linux.in: Likewise.
41712 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
41714 (main): Recognise `-t fs_uuid' argument.
41716 2008-05-30 Robert Millan <rmh@aybabtu.com>
41718 * util/biosdisk.c (map): Redefine structure to hold information
41719 about GRUB drive name.
41720 (get_drive): Reimplement without assuming (and verifying) BIOS-like
41722 (call_hook): Remove.
41723 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
41724 member. Assume drive has partitions.
41725 (grub_util_biosdisk_open): Access device names via `.device' struct
41727 (open_device): Likewise.
41728 (find_drive): Likewise.
41729 (read_device_map): Adjust map[] usage to match the new struct
41730 definition. Don't check for duplicates (still possible, but not cheap
41732 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
41733 (make_device_name): Remove assumption of BIOS-like drive names.
41735 2008-05-30 Pavel Roskin <proski@gnu.org>
41737 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
41738 compiling execute.c doesn't need grub_script.tab.h anymore.
41739 (normal/command.c_DEPENDENCIES): Likewise.
41740 (normal/function.c_DEPENDENCIES): Likewise.
41741 * conf/i386-ieee1275.rmk: Likewise.
41742 * conf/i386-linuxbios.rmk: Likewise.
41743 * conf/i386-pc.rmk: Likewise.
41744 * conf/powerpc-ieee1275.rmk: Likewise.
41745 * conf/sparc64-ieee1275.rmk: Likewise.
41747 2008-05-29 Pavel Roskin <proski@gnu.org>
41749 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
41750 when scanning metadata for volume group name.
41752 * include/grub/script.h: Don't include grub_script.tab.h. It's
41753 a generated file, which may only be included from the files with
41754 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
41755 use union YYSTYPE, as the later allows forward declaration.
41756 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
41758 2008-05-29 Robert Millan <rmh@aybabtu.com>
41760 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
41761 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
41762 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
41763 (grub_console_checkkey): Add grub_dprintf() call to report unknown
41766 2008-05-29 Robert Millan <rmh@aybabtu.com>
41768 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
41769 control key combinations.
41771 2008-05-29 Robert Millan <rmh@aybabtu.com>
41773 * util/powerpc/ieee1275/grub-install.in: Move from here ...
41774 * util/ieee1275/grub-install.in: ... to here.
41775 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
41776 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
41777 (grub_install_SOURCES): Likewise.
41779 2008-05-29 Robert Millan <rmh@aybabtu.com>
41781 * fs/affs.c: Update copyright year.
41782 * fs/ext2.c: Likewise.
41783 * fs/fshelp.c: Likewise.
41784 * fs/hfsplus.c: Likewise.
41785 * fs/ntfs.c: Likewise.
41786 * fs/xfs.c: Likewise.
41787 * include/grub/fshelp.h: Likewise.
41788 * util/grub-mkdevicemap.c: Likewise.
41790 2008-05-28 Robert Millan <rmh@aybabtu.com>
41792 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41793 might need to be fatfs to support some firmware implementations
41796 2008-05-28 Robert Millan <rmh@aybabtu.com>
41798 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41800 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41801 (make_device_map): Likewise.
41803 2008-05-20 Bean <bean123ch@gmail.com>
41805 * fs/fshelp.c (grub_fshelp_map_block): New function.
41806 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41807 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41809 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41810 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41811 (grub_fshelp_journal): New structure.
41812 (grub_fshelp_map_block): New function prototype.
41813 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41814 (grub_fshelp_map_block): Likewise.
41816 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41817 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41818 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41819 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41820 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41821 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41822 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41823 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41824 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41825 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41826 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41827 (grub_ext2_sblock): New members for journal support.
41828 (grub_ext3_journal_header): New structure.
41829 (grub_ext3_journal_revoke_header): Likewise.
41830 (grub_ext3_journal_block_tag): Likewise.
41831 (grub_ext3_journal_sblock): Likewise.
41832 (grub_fshelp_node): New members logfile and journal.
41833 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41834 grub_fshelp_map_block to get real block number.
41835 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41837 (grub_ext2_read_inode): Likewise.
41838 (grub_ext3_get_journal): New function.
41839 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41840 (grub_ext2_close): Release memory used by journal.
41842 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41843 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41844 (grub_reiserfs_transaction_header): Renamed to
41845 grub_reiserfs_description_block, replace field data with real_blocks.
41846 (grub_reiserfs_commit_block): New structure.
41847 (grub_reiserfs_data): New member journal.
41848 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41850 (grub_reiserfs_read_symlink): Likewise.
41851 (grub_reiserfs_iterate_dir): Likewise.
41852 (grub_reiserfs_open): Likewise.
41853 (grub_reiserfs_read): Likewise.
41854 (grub_reiserfs_get_journal): New function.
41855 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41856 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41857 using grub_reiserfs_get_journal.
41858 (grub_reiserfs_close): Release memory used by journal.
41860 * fs/affs.c (grub_affs_read_block): Change block type to
41861 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41863 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41865 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41867 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41869 * fs/udf.c (grub_udf_read_block): Change block type to
41870 grub_disk_addr_t. Use type cast to avoid warning.
41872 * fs/xfs.c (grub_xfs_read_block): Likewise.
41874 2008-05-16 Christian Franke <franke@computer.org>
41876 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41877 to ensure that break with ESC will always work.
41878 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41879 Remove ESC from keyboard queue.
41881 2008-05-16 Christian Franke <franke@computer.org>
41883 * util/biosdisk.c: [__CYGWIN__] Add includes.
41884 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41885 (get_os_disk): Move variable declarations to OS specific
41886 parts to avoid warning.
41887 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41888 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41889 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41891 * util/getroot.c: [__CYGWIN__] Add includes.
41892 (strip_extra_slashes): Fix "/" case.
41893 [__CYGWIN__] (get_win32_path): New function.
41894 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41895 [__CYGWIN__] (find_root_device): Disable.
41896 [__CYGWIN__] (get_bootsec_serial): New function.
41897 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41898 [__linux__] (grub_guess_root_device): Add early returns to simplify
41900 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41901 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41902 check for Linux only.
41904 2008-05-15 Bean <bean123ch@gmail.com>
41906 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41907 keyboard hang problem in apple's intel mac.
41909 2008-05-09 Robert Millan <rmh@aybabtu.com>
41911 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41913 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41914 (make_device_map): Likewise.
41915 Reported by Aurelien Jarno <aurel32@debian.org>
41917 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
41919 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
41920 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
41921 (make_device_map): Output entries for xvd type disks.
41923 2008-05-07 Robert Millan <rmh@aybabtu.com>
41925 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
41927 * util/grub-mkdevicemap.c (get_cciss_disk_name)
41928 (make_device_map): Likewise.
41929 Reported by Roland Dreier <rdreier@cisco.com>
41931 2008-05-07 Robert Millan <rmh@aybabtu.com>
41933 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
41934 grub_strstr() call. Correct a few mistakes in failure path handling.
41936 2008-05-06 Robert Millan <rmh@aybabtu.com>
41938 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41939 Do not print a trailing slash (therefore, the root directory is an
41941 (convert_system_path_to_grub_path): Do not remove trailing slash
41942 from make_system_path_relative_to_its_root() output.
41944 * util/i386/pc/grub-install.in: Add trailing slash to output from
41945 make_system_path_relative_to_its_root().
41947 2008-05-06 Robert Millan <rmh@aybabtu.com>
41949 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
41950 ensures that output lines aren't intermangled with those sent to
41951 stderr (via grub_util_info()).
41952 * util/grub-probe.c (grub_refresh): Likewise.
41953 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
41955 2008-05-05 Christian Franke <franke@computer.org>
41957 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
41958 Add Cygwin device names.
41959 (get_ide_disk_name) [__CYGWIN__]: Likewise.
41960 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
41961 (check_device): Return error instead of success on empty name.
41962 (make_device_map): Move label inside linux specific code to
41963 prevent compiler warning.
41965 2008-04-30 Robert Millan <rmh@aybabtu.com>
41967 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
41968 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
41970 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
41972 2008-04-29 Robert Millan <rmh@aybabtu.com>
41974 * docs/grub.cfg: New file (example GRUB configuration).
41976 2008-04-26 Robert Millan <rmh@aybabtu.com>
41978 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
41979 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
41980 and `disk/ieee1275/nand.c'.
41982 2008-04-25 Bean <bean123ch@gmail.com>
41984 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
41987 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
41988 change the buffer size to 4096 for cdrom device.
41990 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
41992 (_linux_mod_SOURCES): New variable.
41993 (_linux_mod_CFLAGS): Likewise.
41994 (_linux_mod_LDFLAGS): Likewise.
41995 (linux_mod_SOURCES): Likewise.
41996 (linux_mod_CFLAGS): Likewise.
41997 (linux_mod_LDFLAGS): Likewise.
41998 (nand_mod_SOURCES): Likewise.
41999 (nand_mod_CFLAGS): Likewise.
42000 (nand_mod_LDFLAGS): Likewise.
42002 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
42003 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
42004 type property. (nand device in olpc don't have this property)
42006 * include/grub/disk.h (grub_disk_dev_id): New macro
42007 GRUB_DISK_DEVICE_NAND_ID.
42009 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
42010 function prototype.
42011 (grub_rescue_cmd_initrd): Likewise.
42013 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
42014 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
42015 ofw_cif_handler and ofw_idt, adjust padding number.
42017 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
42018 GRUB_MACHINE_IEEE1275 is defined.
42020 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
42021 Use NESTED_FUNC_ATTR attribute on the hook parameter.
42023 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
42024 on nested function heap_init.
42025 (grub_upper_mem): New variable for i386-ieee1275.
42026 (grub_get_extended_memory): New function for i386-ieee1275.
42027 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
42029 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
42030 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
42033 * loader/i386/ieee1275/linux.c: New file.
42035 * loader/i386/ieee1275/linux_normal.c: New file.
42037 * disk/ieee1275/nand.c: New file.
42039 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
42041 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
42043 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
42045 2008-04-18 Robert Millan <rmh@aybabtu.com>
42047 Restructures early code path on ieee1275 to unify grub_main() as
42048 the first C function that is executed in every platform.
42050 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
42051 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
42053 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
42054 * kern/ieee1275/cmain.c (cmain): Rename to ...
42055 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
42056 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
42059 2008-04-18 Robert Millan <rmh@aybabtu.com>
42061 * util/update-grub.in: Fix syntax error when setting
42062 `GRUB_PRELOAD_MODULES'.
42063 Reported by Stephane Chazelas <stephane@artesyncp.com>
42065 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
42067 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
42068 section into account, newer toolchains generate unique build ids
42069 * configure.ac: remove the test for --build-id=none acceptance,
42070 we want build ids to be preserved
42071 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
42072 far from other sections don't cause the raw binary images grow
42075 2008-04-15 Robert Millan <rmh@aybabtu.com>
42077 * disk/lvm.c: Update copyright year.
42078 * kern/misc.c: Likewise.
42080 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42082 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
42083 there is no memory left for physical volume name.
42085 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42087 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
42088 volume name mapping to support bigger than 9 character names properly.
42090 2008-04-13 Robert Millan <rmh@aybabtu.com>
42092 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
42093 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
42095 2008-04-13 Christian Franke <franke@computer.org>
42097 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
42098 to create a floppy emulation boot CD when non emulation mode
42100 Enable Joliet CD filesystem extension.
42102 2008-04-13 Robert Millan <rmh@aybabtu.com>
42104 * kern/misc.c (grub_strncat): Fix off-by-one error.
42105 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
42107 * kern/env.c (grub_env_context_close): Clear current context, not
42109 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
42111 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
42113 2008-04-13 Robert Millan <rmh@aybabtu.com>
42115 Improve robustness when handling LVM.
42117 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
42118 (and leave `*p' unmodified).
42119 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
42121 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
42122 iterating through it.
42123 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
42125 (grub_lvm_scan_device): Check the return value (and fail gracefully
42126 when due) on each grub_lvm_getvalue() or grub_strstr() call.
42127 Don't assume `vg->pvs != NULL' when iterating through it.
42129 2008-04-13 Robert Millan <rmh@aybabtu.com>
42131 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
42132 * genmk.rb (partmap): New variable.
42133 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
42134 (#{partmap}): New target rule.
42135 * genpartmaplist.sh: New file.
42136 * Makefile.in (pkglib_DATA): Add partmap.lst.
42137 (partmap.lst): New target rule.
42138 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
42139 modules (including all partition maps), instead of preloading them.
42141 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
42143 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
42144 `linux-boot-prober' (if installed) to detect other operating
42145 systems which are installed on the computer and add them to
42147 * conf/common.rmk: Build and install 30_os-prober.
42149 2008-04-12 Robert Millan <rmh@aybabtu.com>
42151 * kern/powerpc/ieee1275/init.c: Move from here ...
42152 * kern/ieee1275/init.c: ... to here. Update all users.
42154 * kern/powerpc/ieee1275/cmain.c: Move from here ...
42155 * kern/ieee1275/cmain.c: ... to here. Update all users.
42157 * kern/powerpc/ieee1275/openfw.c: Move from here ...
42158 * kern/ieee1275/openfw.c: ... to here. Update all users.
42160 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
42161 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
42163 2008-04-10 Pavel Roskin <proski@gnu.org>
42165 * configure.ac: Always use "_cv_" in cache variables for
42166 compatibility with Autoconf 2.62.
42168 2008-04-07 Robert Millan <rmh@aybabtu.com>
42170 Revert grub/machine/init.h addition by Pavel (since it breaks on
42171 i386-ieee1275 and others):
42172 * util/i386/pc/misc.c: Remove grub/machine/init.h.
42173 * util/powerpc/ieee1275/misc.c: Likewise.
42175 2008-04-07 Robert Millan <rmh@aybabtu.com>
42177 * util/grub-probe.c (probe): Improve error message.
42179 2008-04-07 Robert Millan <rmh@aybabtu.com>
42181 * util/biosdisk.c (read_device_map): Skip devices that don't exist
42182 (this prevents the presence of a bogus entry from ruining the whole
42185 2008-04-06 Pavel Roskin <proski@gnu.org>
42187 * util/biosdisk.c: Include grub/util/biosdisk.h.
42188 * util/grub-fstest.c (execute_command): Make static.
42189 * util/grub-mkdevicemap.c (check_device): Likewise.
42190 * util/i386/pc/misc.c: Include grub/machine/init.h.
42191 * util/powerpc/ieee1275/misc.c: Likewise.
42192 * util/lvm.c: Include grub/util/lvm.h.
42193 * util/misc.c: Include grub/kernel.h, grub/misc.h and
42195 * util/raid.c: Include grub/util/raid.h.
42196 (grub_util_getdiskname): Make static.
42198 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
42199 grub_hostfs_fini(), as they are called from grub_init_all() and
42200 grub_fini_all() respectively. This fixes an infinite loop in
42201 grub-fstest due to double registration of hostfs.
42202 Reported by Christian Franke <Christian.Franke@t-online.de>
42204 2008-04-05 Pavel Roskin <proski@gnu.org>
42206 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
42207 all 8 functions. Otherwise, probe function 0 only.
42209 2008-04-04 Pavel Roskin <proski@gnu.org>
42211 * commands/lspci.c (grub_lspci_iter): Print the bus number
42214 * commands/lspci.c (grub_pci_classes): Fix typos.
42215 (grub_lspci_iter): Don't print func twice. Print vendor ID
42216 before device ID, as it's normally done.
42218 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42219 Fix signedness warnings.
42220 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
42222 * util/ieee1275/get_disk_name.c: Include config.h so that
42223 _GNU_SOURCE is defined and getline() is declared. Mark an
42224 unused argument as such. Fix a signedness warning.
42226 2008-04-02 Pavel Roskin <proski@gnu.org>
42228 * genkernsyms.sh.in: Use more robust assignments for CC and
42229 srcdir. Quote srcdir.
42230 * gensymlist.sh.in: Likewise. Assert at the compile time that
42231 the symbol table is not empty.
42233 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
42234 * fs/cpio.c (grub_cpio_read): Likewise.
42236 2008-04-01 Pavel Roskin <proski@gnu.org>
42238 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
42239 * disk/host.c (grub_host_open): Likewise.
42240 * disk/loopback.c (grub_loopback_open): Likewise.
42241 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
42242 disk->id as in disk/host.c, not a multi-character constant.
42244 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
42245 later is obsolete, potentially dangerous and sets a bad example.
42246 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
42247 * util/misc.c (grub_util_get_image_size): Likewise.
42249 * disk/loopback.c (options): Improve help for "--partitions".
42251 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
42252 options to align them with the short options, e.g. "echo -e".
42254 2008-03-31 Bean <bean123ch@gmail.com>
42256 * video/reader/png.c (grub_png_data): New member is_16bit and
42258 (grub_png_decode_image_header): Detect 16 bit png image.
42259 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
42260 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
42261 (grub_video_reader_png): Release memory occupied by image_data.
42263 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
42265 (grub_nfs_mount): Skip the test for sector per cluster.
42267 * include/grub/ntfs.h (MAX_SPC): Removed.
42269 2008-03-31 Bean <bean123ch@gmail.com>
42271 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
42272 (grub_probe_SOURCES): Add fs/afs.c.
42273 (grub_fstest_SOURCES): Likewise.
42274 (afs_mod_SOURCES): New variable.
42275 (afs_mod_CFLAGS): Likewise.
42276 (afs_mod_LDFLAGS): Likewise.
42278 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
42279 (grub_emu_SOURCES): Likewise.
42281 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42283 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42285 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42289 * fs/afs.c: New file.
42291 2008-03-30 Pavel Roskin <proski@gnu.org>
42293 * disk/host.c: Include grub/misc.h to fix a warning.
42294 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
42295 warnings about implicit declarations.
42297 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
42299 * include/grub/i386/loader.h: Change declaration of
42300 grub_linux_boot() to match what grub_loader_set() expects.
42301 * util/getroot.c (grub_guess_root_device): Return const char* to
42303 * util/grub-probe.c (probe): Fix a warning about uninitialized
42304 abstraction_name variable.
42305 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
42306 second argument as unused to fix a warning.
42308 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
42309 missing grub_error() call.
42311 * util/update-grub_lib.in: Define datarootdir, since Autoconf
42312 2.60 and newer uses it to define datadir.
42314 * commands/sleep.c: Fix warning about implicit declaration.
42315 * disk/memdisk.c: Likewise.
42316 * loader/aout.c: Likewise.
42317 * loader/i386/bsd_normal.c: Likewise.
42318 * util/grub-probe.c: Likewise.
42320 * commands/i386/cpuid.c (has_longmode): Make static.
42321 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
42322 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
42324 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
42325 GDT. This is more robust, as %ds can change.
42326 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
42327 calling real_to_prot().
42328 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
42330 2008-03-28 Pavel Roskin <proski@gnu.org>
42332 * kern/i386/pc/startup.S: Assert that uncompressed functions
42333 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
42334 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
42335 code, as they push parts of the code (error handlers) beyond
42336 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
42337 code as correctness and size.
42339 2008-03-28 Pavel Roskin <proski@gnu.org>
42341 * kern/i386/pc/startup.S
42342 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
42343 data block address to the real mode, keep offset minimal. This
42344 works around a bug in AWARD BIOS on old Athlon systems, which
42345 makes CD detection hang.
42347 2008-03-26 Pavel Roskin <proski@gnu.org>
42349 * normal/color.c (grub_parse_color_name_pair): Make `name' a
42351 * include/grub/normal.h: Add grub_parse_color_name_pair()
42354 2008-03-24 Bean <bean123ch@gmail.com>
42356 * disk/i386/pc/biosdisk.c (cd_start): Removed.
42357 (cd_count): Removed.
42358 (cd_drive): New variable.
42359 (grub_biosdisk_get_drive): Don't check for (cdN) device.
42360 (grub_biosdisk_call_hook): Likewise.
42361 (grub_biosdisk_iterate): Change cdrom detection method.
42362 (grub_biosdisk_open): Replace cd_start with cd_drive.
42363 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
42364 detect cdrom device.
42366 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
42368 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
42369 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
42370 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
42371 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
42372 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
42373 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
42374 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
42375 (grub_biosdisk_cdrp): New structure.
42376 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
42378 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
42380 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
42383 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
42386 2008-03-20 Robert Millan <rmh@aybabtu.com>
42388 Remove 2 TiB limit in ata.mod.
42389 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
42390 (grub_ata_dumpinfo): Print sector count with 0x%llx.
42391 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
42392 grub_uint64_t instead of grub_uint32_t.
42394 2008-03-05 Bean <bean123ch@gmail.com>
42396 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
42397 (grub_multiboot): Set boot device.
42399 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
42401 2008-03-02 Bean <bean123ch@gmail.com>
42403 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
42406 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
42408 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
42411 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
42414 * docs/fdl.texi: New file.
42416 * docs/mdate-sh: New file. Copied from gnulib.
42417 * docs/texinfo.tex: Likewise.
42419 * config.guess: Updated from gnulib.
42420 * install-sh: Likewise.
42422 2008-02-28 Robert Millan <rmh@aybabtu.com>
42424 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
42425 (aout_mod_SOURCES): New variable.
42426 (aout_mod_CFLAGS): Likewise.
42427 (aout_mod_LDFLAGS): Likewise.
42429 * conf/i386-ieee1275.rmk: Likewise.
42431 2008-02-28 Robert Millan <rmh@aybabtu.com>
42433 * util/update-grub.in: Reorganise terminal validity check. Accept
42434 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
42435 Based on suggestion by Franklin PIAT.
42437 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
42439 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
42441 * util/getroot.c (grub_util_check_block_device): New function that
42442 returns the given argument if it is a block device and returns NULL else.
42443 * util/grub-probe.c (argument_is_device): New variable.
42444 (probe): Promote device_name from a variable to an argument. Receive
42445 device_name from grub_util_check_block_device() if path is NULL and from
42446 grub_guess_root_device() else. Do not free() device_name anymore.
42447 (options): Introduce new parameter '-d, --device'.
42448 (main): Add description of the new parameter to the help screen.
42449 Rename path variable to argument. Set argument_is_device if the '-d'
42450 option is given. Pass argument to probe() depending on
42451 argument_is_device.
42453 2008-02-24 Bean <bean123ch@gmail.com>
42455 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
42456 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
42457 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
42458 (GRUB_ISO9660_VOLDESC_PART): Likewise.
42459 (GRUB_ISO9660_VOLDESC_END): Likewise.
42460 (grub_iso9660_primary_voldesc): New member escape.
42461 (grub_iso9660_data): New member joliet.
42462 (grub_iso9660_convert_string): New function.
42463 (grub_iso9660_mount): Detect joliet extension.
42464 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
42465 (grub_iso9660_iso9660_label): Likewise.
42467 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
42468 (grub_setup_SOURCES): Add fs/udf.c.
42469 (grub_fstest_SOURCES): Likewise.
42470 (udf_mod_SOURCES): New variable.
42471 (udf_mod_CFLAGS): Likewise.
42472 (udf_mod_LDFLAGS): Likewise.
42474 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
42475 (grub_emu_SOURCES): Likewise.
42477 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42479 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42481 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42483 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42485 * fs/udf.c: New file.
42487 2008-02-24 Robert Millan <rmh@aybabtu.com>
42489 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
42490 (normal/lexer.c_DEPENDENCIES): New variables.
42491 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42492 (normal/lexer.c_DEPENDENCIES): Likewise.
42493 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
42494 (normal/lexer.c_DEPENDENCIES): Likewise.
42495 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
42496 (normal/lexer.c_DEPENDENCIES): Likewise.
42497 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42498 (normal/lexer.c_DEPENDENCIES): Likewise.
42499 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42500 (normal/lexer.c_DEPENDENCIES): Likewise.
42502 2008-02-23 Robert Millan <rmh@aybabtu.com>
42504 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
42505 since they were intended to be in hex. This didn't break previously
42506 because of a bug in gpt_partition_map_iterate() (see below).
42508 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
42509 when checking the validity of GPT header.
42510 Remove `partno', since it always provides the same information as `i'.
42512 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
42514 * include/grub/efi/time.h: Fix a wrong comment.
42516 2008-02-19 Pavel Roskin <proski@gnu.org>
42518 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
42521 2008-02-19 Bean <bean123ch@gmail.com>
42523 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
42524 (aout_mod_SOURCES): New variable.
42525 (aout_mod_CFLAGS): Likewise.
42526 (aout_mod_LDFLAGS): Likewise.
42527 (_bsd_mod_SOURCES): New variable.
42528 (_bsd_mod_CFLAGS): Likewise.
42529 (_bsd_mod_LDFLAGS): Likewise.
42530 (bsd_mod_SOURCES): New variable.
42531 (bsd_mod_CFLAGS): Likewise.
42532 (bsd_mod_LDFLAGS): Likewise.
42534 * include/grub/aout.h: New file.
42536 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
42538 * include/grub/i386/bsd.h: New file.
42540 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
42543 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
42544 function is called, so that it's possible to change it inside the hook.
42545 (grub_elf64_load): Likewise.
42546 (grub_elf_file): Don't close the file if elf header is not found.
42547 (grub_elf_close): Close the file if grub_elf_file fails (The new
42548 grub_elf_file won't close it).
42549 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
42550 (grub_elf64_size): Likewise.
42552 * kern/i386/loader.S (grub_unix_real_boot): New function.
42554 * loader/aout.c: New file.
42556 * loader/i386/bsd.c: New file.
42558 * loader/i386/bsd_normal.c: New file.
42560 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
42562 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
42563 can test other formats.
42565 2008-02-19 Robert Millan <rmh@aybabtu.com>
42567 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
42568 (grub_gpt_partition_type_empty): Redefine with macro from
42569 `<grub/gpt_partition.h>'.
42570 (gpt_partition_map_iterate): Adjust partition type comparison.
42572 Export `entry' as partmap-specific `part.data' struct.
42573 (grub_gpt_header, grub_gpt_partentry): Move from here ...
42575 * include/grub/gpt_partition.h (grub_gpt_header)
42576 (grub_gpt_partentry): ... to here (new file).
42578 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
42580 (grub_gpt_partition_type_bios_boot): New const variable, defined
42581 with macro from `<grub/gpt_partition.h>'.
42583 (setup): Replace `first_start' with `embed_region', which keeps
42584 track of the embed region (and is partmap-agnostic).
42586 Replace find_first_partition_start() with find_usable_region(),
42587 which finds a usable region for embedding using partmap-specific
42588 knowledge (supports PC/MSDOS and GPT).
42590 Fix all assumptions that the embed region start at sector 1, using
42591 `embed_region.start' from now on. Similarly, use `embed_region.end'
42592 rather than `first_start' to calculate available size.
42594 In grub_util_info() message, replace "into after the MBR" with an
42595 indication of the specific sector our embed region starts at.
42597 2008-02-19 Robert Millan <rmh@aybabtu.com>
42599 * DISTLIST: Replace `commands/ieee1275/halt.c' and
42600 `commands/ieee1275/reboot.c' with `commands/halt.c' and
42601 `commands/reboot.c'.
42602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42603 (halt_mod_SOURCES): Likewise.
42604 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42605 (halt_mod_SOURCES): Likewise.
42607 2008-02-17 Christian Franke <franke@computer.org>
42609 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
42611 2008-02-17 Robert Millan <rmh@aybabtu.com>
42613 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42614 set `first_start' to 0 for non-PC/MSDOS partition maps.
42616 2008-02-16 Robert Millan <rmh@aybabtu.com>
42618 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42619 do not assume partition map is PC/MSDOS before performing checks that
42620 are specific to that layout.
42622 2008-02-13 Robert Millan <rmh@aybabtu.com>
42624 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
42625 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
42626 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
42628 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
42630 * configure.ac: Only a cosmetic change on the handling of
42631 -fno-stack-protector.
42633 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
42635 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
42636 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
42638 (grub_install_SOURCES): Add halt.mod and reboot.mod.
42639 (halt_mod_SOURCES): New variable.
42640 (halt_mod_CFLAGS): Likewise.
42641 (halt_mod_LDFLAGS): Likewise.
42642 (reboot_mod_SOURCES): Likewise.
42643 (reboot_mod_CFLAGS): Likewise.
42644 (reboot_mod_LDFLAGS): Likewise.
42646 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
42647 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
42649 (halt_mod_SOURCES): Likewise.
42650 (reboot_mod_SOURCES): Likewise.
42652 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
42653 commands/i386/pc/reboot.c by commands/reboot.c.
42654 (reboot_mod_SOURCES): Likewise.
42656 * commands/i386/pc/reboot.c: merge this file ...
42658 * commands/ieee1275/reboot.c: ... and this file ...
42660 * commands/reboot.c: ... to this file.
42661 Add some precompiler directive to include the correct header for
42664 * commands/ieee1275/halt.c: move this file ...
42666 * commands/halt.c: ... to here.
42667 Add some precompiler directive to include the correct header for
42670 * include/grub/efi/efi.h (grub_reboot): New function declaration.
42671 (grub_halt): Likewise.
42673 * kern/efi/efi.c (grub_reboot): New function.
42674 (grub_halt): Likewise.
42676 2008-02-12 Robert Millan <rmh@aybabtu.com>
42678 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
42679 /dev (like it is done for /dev/mapper). This doesn't provide support
42680 for EVMS, but at least it is now easy to identify the problem when it
42683 2008-02-11 Robert Millan <rmh@aybabtu.com>
42685 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
42686 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
42687 comparing it with -1, not 0.
42689 2008-02-10 Robert Millan <rmh@aybabtu.com>
42691 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
42693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42694 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
42696 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
42697 `disk/lvm.c' to the end of the list.
42698 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42699 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42701 2008-02-10 Robert Millan <rmh@aybabtu.com>
42703 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
42704 grub_print_error() instead. This will let user know why we're entering
42706 Based on suggestions from Sam Morris.
42708 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
42710 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
42711 on remaining N args, instead of "--" arg N times.
42713 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
42715 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
42716 (fill_with_default_glyph): Changed to use unknown_glyph for fill
42717 pattern for unknown glyphs.
42719 2008-02-09 Robert Millan <rmh@aybabtu.com>
42721 * configure.ac: Probe for `help2man'.
42722 * Makefile.in (builddir): New variable.
42723 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
42724 or otherwise add a few flags/options to it.
42725 (install-local): For every executable utility or script that is
42726 installed, invoke $(HELP2MAN) to install a manpage based on --help
42729 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
42730 that it doesn't prevent --help from working in build tree.
42732 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
42733 with `bug-grub@gnu.org'.
42734 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
42735 * util/update-grub.in (usage): New function.
42736 Implement proper argument check, with support for --help and --version
42737 (as well as existing -y).
42739 2008-02-09 Christian Franke <franke@computer.org>
42741 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
42742 avoid overwriting previous output.
42743 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
42745 2008-02-09 Robert Millan <rmh@aybabtu.com>
42747 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
42750 2008-02-09 Robert Millan <rmh@aybabtu.com>
42752 * commands/sleep.c: New file.
42753 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
42754 (sleep_mod_SOURCES): New variable.
42755 (sleep_mod_CFLAGS): Likewise.
42756 (sleep_mod_LDFLAGS): Likewise.
42758 2008-02-09 Robert Millan <rmh@aybabtu.com>
42760 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
42761 situations in which we can deduce the RAID size and the superblock
42764 2008-02-09 Robert Millan <rmh@aybabtu.com>
42766 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
42767 and return a grub_diskmemberlist_t composed of LVM physical volumes.
42768 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
42770 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
42771 and return a grub_diskmemberlist_t composed of physical array members.
42772 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
42774 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
42776 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
42777 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
42778 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
42780 * util/grub-probe.c (probe): Move partmap probing code from here ...
42781 (probe_partmap): ... to here.
42782 (probe): Use probe_partmap() once for the disk we're probing, and
42783 additionally, when such disk contains a memberlist() struct member,
42784 once for each disk that is contained in the structure returned by
42787 2008-02-09 Robert Millan <rmh@aybabtu.com>
42789 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42790 environment variable to 'all' in order to obtain debug output from
42792 * util/i386/pc/grub-setup.c (main): Likewise.
42794 2008-02-08 Robert Millan <rmh@aybabtu.com>
42796 * disk/raid.c (grub_raid_scan_device): Check for
42797 `array->device[sb.this_disk.number]' rather than for
42798 `array->device[sb.this_disk.number]->name', since the latter is not
42799 guaranteed to be accessible.
42801 2008-02-08 Robert Millan <rmh@aybabtu.com>
42803 * disk/raid.c: Update copyright.
42804 * fs/cpio.c: Likewise.
42805 * include/grub/raid.h: Likewise.
42806 * loader/i386/pc/multiboot.c: Likewise.
42807 * util/hostfs.c: Likewise.
42809 2008-02-08 Robert Millan <rmh@aybabtu.com>
42811 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42812 to a grub_disk_t array.
42813 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42815 (grub_raid_scan_device): Replace `device[x].name' accesses with
42816 `device[x]->name'. Simplify initialization of `array->device[x]'.
42818 2008-02-08 Robert Millan <rmh@aybabtu.com>
42820 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42821 grub_dprintf() calls.
42822 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42825 2008-02-07 Christian Franke <franke@computer.org>
42827 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42828 instead of fseek and ftell to support large files.
42829 (grub_hostfs_read): Likewise.
42831 2008-02-07 Robert Millan <rmh@aybabtu.com>
42833 Patch from Jeroen Dekkers.
42834 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
42835 failure, since successfully reading all array members might not be
42838 2008-02-06 Robert Millan <rmh@aybabtu.com>
42840 * util/grub-probe.c (probe): Simplify partmap probing (with the
42841 assumption that the first word up to the underscore equals to
42844 2008-02-06 Christian Franke <franke@computer.org>
42846 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42847 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42848 last block of a cpio or tar stream.
42849 Check for "TRAILER!!!" instead of any empty data
42850 block to detect last block of a cpio stream.
42851 (grub_cpio_dir): Fix constness of variable np.
42852 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42853 cpio or tar trailer is detected. This fixes a crash
42854 on open of a non existing file.
42856 2008-02-05 Bean <bean123ch@gmail.com>
42858 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42860 (grub_multiboot_load_elf64): Likewise.
42861 (grub_multiboot): Initialize mbi structure.
42863 * util/grub-fstest.c: Don't include unused header file script.h.
42865 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
42867 (grub_fstest_SOURCES): Likewise.
42869 2008-02-05 Robert Millan <rmh@aybabtu.com>
42871 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42872 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42873 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42874 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42876 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42877 (translation_table): Replace hardcoded values with macros
42878 provided by `<grub/term.h>'.
42880 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42881 (keyboard_map): Correct/add a few values, with macros provided
42882 by `<grub/term.h>'.
42883 (keyboard_map_shift): Zero values that don't differ from their
42884 `keyboard_map' equivalents.
42885 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42886 Discard the second scan code that is always sent by Caps lock.
42887 Only use `keyboard_map_shift' when it provides a non-zero value,
42888 otherwise fallback to `keyboard_map'.
42890 2008-02-04 Bean <bean123ch@gmail.com>
42892 * Makefile.in (enable_grub_fstest): New variable.
42894 * conf/common.rmk (grub_fstest_init.lst): New rule.
42895 (grub_fstest_init.h): Likewise.
42896 (grub_fstest_init.c): Likewise.
42897 (util/grub-fstest.c_DEPENDENCIES): New variable.
42898 (grub_fstest_SOURCES): Likewise.
42900 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42902 * util/grub-fstest.c: New file.
42904 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42906 Make grub-setup handle a separate root device.
42908 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42909 so that the root device can be compared with the destination
42911 When embedding the core image, if the root and destination devices
42912 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42914 When not embedding, set ROOT_DRIVE to 0xFF.
42916 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42918 Add support for having a grub directory in a different drive. This
42919 is still only the data handling part.
42921 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
42922 (codestart): Save %dh in GRUB_ROOT_DRIVE.
42923 (grub_root_drive): New variable.
42925 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
42926 instead of GRUB_BOOT_DRIVE to construct a device name. Set
42927 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
42930 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
42932 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
42934 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
42936 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
42937 is bogus, because PXE booting does not specify any drive
42940 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
42941 am not sure if this is really correct.
42943 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
42944 is always identical to the boot drive when booting from a CD.
42946 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
42948 (root_drive): New variable.
42949 (real_start): Unconditionally set %dh to ROOT_DRIVE.
42950 (setup_sectors): Push %dx right after popping it, because %dh will
42952 (copy_buffer): Restore %dx.
42954 2008-02-03 Robert Millan <rmh@aybabtu.com>
42956 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
42957 use `cdboot.img' for cdrom images.
42959 2008-02-03 Robert Millan <rmh@aybabtu.com>
42961 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
42962 only setup gfxterm when `font' command has succeeded.
42964 2008-02-03 Robert Millan <rmh@aybabtu.com>
42966 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
42967 (grub_rescue_cmd_multiboot_loader)
42968 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
42970 2008-02-03 Pavel Roskin <proski@gnu.org>
42972 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
42973 %edx and %esi from stack only after grub_gate_a20() is called.
42974 grub_gate_a20() clobbers %edx.
42976 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42978 * configure.ac (AC_INIT): Bumped to 1.96.
42980 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
42981 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
42982 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
42983 video/readers/png.c.
42985 2008-02-03 Bean <bean123ch@gmail.com>
42987 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
42988 (cdboot_img_SOURCES): New variable.
42989 (cdboot_img_ASFLAGS): New variable.
42990 (cdboot_img_LDFLAGS): New variable.
42992 * boot/i386/pc/cdboot.S: New file.
42994 * disk/i386/pc/biosdisk.c (cd_start): New variable.
42995 (cd_count): Likewise.
42996 (grub_biosdisk_get_drive): Add support for cd device.
42997 (grub_biosdisk_call_hook): Likewise.
42998 (grub_biosdisk_iterate): Likewise.
42999 (grub_biosdisk_open): Likewise.
43000 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
43001 (grub_biosdisk_rw): Support reading from cd device.
43002 (GRUB_MOD_INIT): Iterate cd devices.
43004 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
43005 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
43006 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
43008 * kern/i386/pc/init.c (make_install_device): Check for cd device.
43010 2008-02-02 Robert Millan <rmh@aybabtu.com>
43012 * commands/read.c: New file.
43013 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
43014 (read_mod_SOURCES): New variable.
43015 (read_mod_CFLAGS): Likewise.
43016 (read_mod_LDFLAGS): Likewise.
43018 2008-02-02 Robert Millan <rmh@aybabtu.com>
43020 * normal/main.c (grub_normal_execute): Check for `menu->size' when
43021 determining whether menu has to be displayed.
43023 2008-02-02 Marco Gerards <marco@gnu.org>
43025 * bus/pci.c: New file.
43027 * include/grub/pci.h: Likewise.
43029 * include/grub/i386/pc/pci.h: Likewise.
43031 * commands/lspci.c: Likewise.
43033 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
43035 (pci_mod_SOURCES): New variable.
43036 (pci_mod_CFLAGS): Likewise.
43037 (pci_mod_LDFLAGS): Likewise.
43038 (lspci_mod_SOURCES): Likewise.
43039 (lspci_mod_CFLAGS): Likewise.
43040 (lspci_mod_LDFLAGS): Likewise.
43042 2008-02-02 Bean <bean123ch@gmail.com>
43044 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
43045 (grub_ufs_get_file_block): Fix indirect block calculation problem.
43047 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
43048 (grub_xfs_btree_node): New structure.
43049 (grub_xfs_btree_root): New structure.
43050 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
43051 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
43052 (GRUB_XFS_EXTENT_BLOCK): Likewise.
43053 (GRUB_XFS_EXTENT_SIZE): Likewise.
43054 (grub_xfs_read_block): Support btree format type.
43055 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
43056 Use directory block as basic unit.
43058 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
43060 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
43061 __attribute__ ((__regparm__ (1))).
43063 2008-02-01 Robert Millan <rmh@aybabtu.com>
43065 Correct a mistake in previous commit.
43067 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
43069 (normal/command.c_DEPENDENCIES): New variable.
43071 2008-02-01 Robert Millan <rmh@aybabtu.com>
43073 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
43075 (normal/command.c_DEPENDENCIES): New variable.
43076 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
43077 * conf/i386-ieee1275.rmk: Likewise.
43078 * conf/i386-linuxbios.rmk: Likewise.
43079 * conf/i386-pc.rmk: Likewise.
43080 * conf/sparc64-ieee1275.rmk: Likewise.
43081 * conf/powerpc-ieee1275.rmk: Likewise.
43082 (grub_emu_SOURCES): Add `fs/fshelp.c'.
43084 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
43086 2008-02-01 Robert Millan <rmh@aybabtu.com>
43088 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
43089 call at beginning of function.
43091 2008-01-31 Pavel Roskin <proski@gnu.org>
43093 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
43094 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
43095 (grub_mkrescue_SOURCES): Likewise.
43096 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
43098 2008-01-30 Robert Millan <rmh@aybabtu.com>
43100 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
43101 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
43102 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
43103 (grub_probe_SOURCES): ... to here.
43105 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
43106 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
43107 * conf/i386-ieee1275.rmk: Likewise.
43108 * conf/i386-linuxbios.rmk: Likewise.
43109 * conf/powerpc-ieee1275.rmk: Likewise.
43111 2008-01-30 Tristan Gingold <gingold@free.fr>
43113 * kern/rescue.c: Silently accept empty lines.
43115 2008-01-29 Bean <bean123ch@gmail.com>
43117 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
43118 (real_code_2): Code cleanup and change comment style.
43119 (move_memory): Avoid using 32-bit address mode.
43121 2008-01-29 Bean <bean123ch@gmail.com>
43123 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
43124 (png_mod_SOURCES): New variable.
43125 (png_mod_CFLAGS): Likewise.
43126 (png_mod_LDFLAGS): Likewise.
43128 * video/readers/png.c: New file.
43130 2008-01-28 Robert Millan <rmh@aybabtu.com>
43132 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
43133 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
43134 `ifndef GRUB_MOD_GAP' hack.
43135 * util/elf/grub-mkimage.c (add_segments): Likewise.
43137 2008-01-27 Robert Millan <rmh@aybabtu.com>
43139 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
43140 `GRUB_MOD_GAP' for platforms in which it's not defined.
43141 * util/elf/grub-mkimage.c (add_segments): Likewise.
43143 2008-01-27 Robert Millan <rmh@aybabtu.com>
43145 Get grub-emu to build again (including parallel builds).
43147 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
43149 (util/grub-emu.c_DEPENDENCIES): ... this, ...
43150 (normal/execute.c_DEPENDENCIES): ... this, ...
43151 (grub-emu_DEPENDENCIES): ... and this.
43153 * conf/i386-efi.rmk: Likewise.
43154 * conf/i386-linuxbios.rmk: Likewise.
43155 * conf/i386-ieee1275.rmk: Likewise.
43156 * conf/powerpc-ieee1275.rmk: Likewise.
43157 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
43159 2008-01-27 Robert Millan <rmh@aybabtu.com>
43161 * NEWS: Add a few items.
43163 2008-01-27 Robert Millan <rmh@aybabtu.com>
43165 Fix parallel builds with grub-emu. Based on earlier commit for
43166 grub-probe and grub-setup.
43168 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43169 (util/grub-emu.c_DEPENDENCIES): ... this.
43170 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43171 (util/grub-emu.c_DEPENDENCIES): ... this.
43172 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43173 (util/grub-emu.c_DEPENDENCIES): ... this.
43174 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43175 (util/grub-emu.c_DEPENDENCIES): ... this.
43176 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43177 (util/grub-emu.c_DEPENDENCIES): ... this.
43179 2008-01-27 Pavel Roskin <proski@gnu.org>
43181 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
43182 to create a gap between _end and the modules added to the image
43183 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
43184 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
43185 * util/elf/grub-mkimage.c (add_segments): Likewise.
43187 2008-01-26 Pavel Roskin <proski@gnu.org>
43189 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
43190 just return an error.
43192 2008-01-26 Bean <bean123ch@gmail.com>
43194 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
43195 (grub_reiserfs_get_item): Save offset of the next item.
43196 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
43198 2008-01-25 Robert Millan <rmh@aybabtu.com>
43200 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
43201 make all filesystem sources appear together (possibly fixing omissions
43203 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43204 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43205 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43208 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
43210 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
43211 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43212 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
43213 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43215 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
43216 (probe): Add a sanity check to make sure of our ability to read
43217 requested files when probing for filesystem type.
43219 * genmk.rb: Update copyright year (2007).
43221 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
43222 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
43223 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
43224 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
43225 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
43226 : Remove function prototypes.
43228 2008-01-25 Robert Millan <rmh@aybabtu.com>
43230 Revert my previous commits (based on wrong assumption of how grub_errno
43233 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
43234 * kern/file.c (grub_file_open): Likewise.
43236 2008-01-24 Pavel Roskin <proski@gnu.org>
43238 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
43239 that hang if GRUB tries to setup colors.
43240 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
43241 colors for firmwares that don't support it.
43242 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
43243 Recognize Open Hack'Ware, set flags to work around its
43246 2008-01-24 Robert Millan <rmh@aybabtu.com>
43248 * kern/file.c (grub_file_open): Do not account previous failures of
43249 unrelated functions when grub_errno is checked for.
43250 Reported by Oleg Strikov.
43252 2008-01-24 Bean <bean123ch@gmail.com>
43254 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
43255 (grub_ufs_sblock): New member volume name.
43256 (grub_ufs_find_file): Fix string copy bug.
43257 (grub_ufs_label): Implement this function properly.
43259 * fs/hfs.c (grub_hfs_cnid_type): New enum.
43260 (grub_hfs_iterate_records): Use the correct file number for extents
43261 and catalog file. Fix problem in next index calculation.
43262 (grub_hfs_find_node): Replace recursive function call with loop.
43263 (grub_hfs_iterate_dir): Replace recursive function call with loop.
43265 2008-01-23 Robert Millan <rmh@aybabtu.com>
43267 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
43268 `<grub/symbol.h>' and `<grub/multiboot.h>'.
43269 (grub_multiboot2_real_boot): New function prototype.
43271 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
43272 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
43274 * kern/i386/ieee1275/init.c (grub_os_area_addr)
43275 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
43277 2008-01-23 Robert Millan <rmh@aybabtu.com>
43279 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
43280 #ifdef'ed out grub_printf().
43282 2008-01-23 Robert Millan <rmh@aybabtu.com>
43284 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
43285 grub_dprintf calls, since they make "debug=all" mode unusable.
43286 (grub_console_checkkey): Likewise.
43288 2008-01-23 Robert Millan <rmh@aybabtu.com>
43290 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
43291 `term/i386/pc/at_keyboard.c'.
43292 (pkglib_MODULES): Add `serial.mod'.
43293 (serial_mod_SOURCES): New variable.
43294 (serial_mod_CFLAGS): Likewise.
43295 (serial_mod_LDFLAGS): Likewise.
43297 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
43298 `<grub/powerpc/ieee1275/console.h>'.
43299 (grub_keyboard_controller_init): New function prototype.
43300 (grub_console_checkkey): Likewise.
43301 (grub_console_getkey): Likewise.
43303 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
43306 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
43307 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
43309 2008-01-23 Robert Millan <rmh@aybabtu.com>
43311 * kern/i386/pc/init.c (make_install_device): When memdisk image is
43312 present, "(memdisk)/boot/grub" becomes the default prefix.
43314 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
43315 a memdisk tarball with all the modules. Add --overlay=DIR option that
43316 allows users to overlay additional files into the image.
43318 2008-01-23 Robert Millan <rmh@aybabtu.com>
43320 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
43321 and `machine/memory.h'.
43322 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
43323 (_multiboot_mod_SOURCES): New variable.
43324 (_multiboot_mod_CFLAGS): Likewise.
43325 (_multiboot_mod_LDFLAGS): Likewise.
43326 (multiboot_mod_SOURCES): Likewise.
43327 (multiboot_mod_CFLAGS): Likewise.
43328 (multiboot_mod_LDFLAGS): Likewise.
43330 * include/grub/i386/ieee1275/loader.h: New file.
43332 * include/grub/i386/ieee1275/machine.h: Likewise.
43334 * include/grub/i386/ieee1275/memory.h: Likewise.
43336 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
43337 variable declaration.
43338 (grub_os_area_size): Likewise.
43340 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
43341 (grub_lower_mem, grub_upper_mem): New variables.
43342 (grub_stop_floppy): New function (just to make
43343 grub_multiboot2_real_boot() happy).
43345 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
43346 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
43347 (grub_stop): New function.
43348 Include `"../realmode.S"' and `"../loader.S"'.
43350 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
43351 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
43353 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
43354 rely on grub_multiboot2_real_boot() for final boot.
43356 2008-01-22 Robert Millan <rmh@aybabtu.com>
43358 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
43359 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
43360 device that doesn't look like an SD card.
43361 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
43362 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
43363 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
43364 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
43367 2008-01-22 Robert Millan <rmh@aybabtu.com>
43369 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
43370 avoid claiming over our own code.
43372 2008-01-22 Bean <bean123ch@gmail.com>
43374 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
43375 (jpeg_mod_SOURCES): New variable.
43376 (jpeg_mod_CFLAGS): Likewise.
43377 (jpeg_mod_LDFLAGS): Likewise.
43379 * video/readers/jpeg.c : New file.
43381 2008-01-22 Bean <bean123ch@gmail.com>
43383 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
43384 there are no more items.
43386 2008-01-21 Robert Millan <rmh@aybabtu.com>
43388 * kern/mm.c (grub_mm_init_region): Improve debug message.
43390 2008-01-21 Robert Millan <rmh@aybabtu.com>
43392 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
43393 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
43395 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
43397 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
43398 Indicates start of upper memory.
43399 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
43400 (generate_image): Abort when image size is big enough to corrupt
43403 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
43404 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
43405 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43406 instead of hardcoding 0xA0000.
43407 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
43408 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43409 instead of hardcoding 0xA0000.
43411 2008-01-21 Robert Millan <rmh@aybabtu.com>
43413 * disk/memdisk.c (memdisk_size): New variable.
43414 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
43416 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
43417 image to dynamic memory.
43418 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
43419 `memdisk_size'. Free memdisk block.
43421 2008-01-21 Robert Millan <rmh@aybabtu.com>
43423 Fix detection of very small filesystems (like tar).
43425 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
43426 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
43427 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
43428 a problem with this disk).
43430 2008-01-21 Robert Millan <rmh@aybabtu.com>
43432 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
43433 on grub_biosdisk_rw_standard() error.
43435 2008-01-21 Robert Millan <rmh@aybabtu.com>
43437 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
43439 * kern/elf.c: Likewise.
43440 * kern/ieee1275/ieee1275.c: Likewise.
43441 * kern/powerpc/ieee1275/openfw.c: Likewise.
43442 * term/ieee1275/ofconsole.c: Likewise.
43444 2008-01-21 Robert Millan <rmh@aybabtu.com>
43446 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
43448 * include/grub/kernel.h (grub_arch_memdisk_addr)
43449 (grub_arch_memdisk_size): Moved from here ...
43451 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
43452 (grub_arch_memdisk_size): ... to here.
43454 2008-01-21 Robert Millan <rmh@aybabtu.com>
43456 Mostly based on bugfix from Bean.
43458 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
43459 attribute with hook() parameter.
43460 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
43462 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
43463 attribute with hook() parameter.
43464 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
43467 2008-01-21 Robert Millan <rmh@aybabtu.com>
43469 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
43470 (pkglib_MODULES): Add `memdisk.mod'.
43471 (memdisk_mod_SOURCES): New variable.
43472 (memdisk_mod_CFLAGS): Likewise.
43473 (memdisk_mod_LDFLAGS): Likewise.
43475 * disk/memdisk.c: New file.
43477 * include/grub/disk.h (grub_disk_dev_id): Add
43478 `GRUB_DISK_DEVICE_MEMDISK_ID'.
43480 * include/grub/i386/pc/kernel.h
43481 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
43482 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
43483 (grub_kernel_image_size): New variable declaration.
43484 (grub_total_module_size): Likewise.
43485 (grub_memdisk_image_size): Likewise.
43487 * include/grub/i386/pc/memory.h
43488 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
43490 * include/grub/kernel.h: Include `<grub/symbol.h>'.
43491 (grub_arch_memdisk_addr): New variable declaration.
43492 (grub_arch_memdisk_size): Likewise.
43494 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
43495 (grub_arch_memdisk_size): Likewise.
43497 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
43498 (codestart): Replace hardcoded `0x100000' with
43499 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
43501 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
43502 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
43503 not NULL, append the contents of the file it refers to, at the end of
43504 the compressed kernel image. Initialize `grub_memdisk_image_size'
43505 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
43506 (options): Add "memdisk"|'m' option.
43507 (main): Parse --memdisk|-m option, and pass user-provided path as
43508 parameter to generate_image().
43510 2008-01-20 Robert Millan <rmh@aybabtu.com>
43512 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
43513 grub_dprintf() calls from here ...
43514 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
43516 2008-01-20 Robert Millan <rmh@aybabtu.com>
43518 Fix detection of "real mode" when /options/real-mode? doesn't exist.
43520 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
43522 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
43523 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
43524 `GRUB_IEEE1275_FLAG_REAL_MODE'.
43525 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
43527 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
43528 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
43530 2008-01-19 Robert Millan <rmh@aybabtu.com>
43532 Get rid of confusing function (superseded by
43533 `grub_ieee1275_get_integer_property')
43534 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
43536 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
43538 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
43539 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
43540 in native endianness from grub_ieee1275_get_integer_property().
43542 2008-01-19 Robert Millan <rmh@aybabtu.com>
43544 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
43545 command after "shut-down", since implementations differ on which
43546 the command for halt is.
43548 2008-01-19 Robert Millan <rmh@aybabtu.com>
43550 * include/grub/i386/linuxbios/console.h: Add header protection.
43551 (grub_keyboard_controller_init): New function prototype.
43552 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
43553 (KEYBOARD_COMMAND_READ): Likewise.
43554 (KEYBOARD_COMMAND_WRITE): Likewise.
43555 (KEYBOARD_SCANCODE_SET1): Likewise.
43556 (grub_keyboard_controller_write): New function.
43557 (grub_keyboard_controller_read): Likewise.
43558 (grub_keyboard_controller_init): Likewise.
43560 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
43561 (grub_console_init): On coreboot/LinuxBIOS, call
43562 grub_keyboard_controller_init().
43564 2008-01-19 Robert Millan <rmh@aybabtu.com>
43566 PowerPC changes provided by Pavel Roskin.
43568 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
43569 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
43570 don't rely on cmain() doing it.
43571 * kern/i386/ieee1275/startup.S (_start): Store %eax in
43572 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
43574 2008-01-16 Robert Millan <rmh@aybabtu.com>
43576 * include/grub/i386/linuxbios/memory.h
43577 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
43578 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
43579 receive `table_header' as argument. Instead, probe for it in the
43580 known memory ranges where it can be present.
43581 (grub_available_iterate): Do not pass a fixed `table_header' address
43582 to grub_linuxbios_table_iterate().
43584 2008-01-15 Robert Millan <rmh@aybabtu.com>
43586 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
43587 * conf/i386-ieee1275.rmk: New file.
43588 * include/grub/i386/ieee1275/console.h: Likewise.
43589 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
43590 * include/grub/i386/ieee1275/kernel.h: Likewise.
43591 * include/grub/i386/ieee1275/time.h: Likewise.
43592 * kern/i386/ieee1275/init.c: Likewise.
43593 * kern/i386/ieee1275/startup.S: Likewise.
43595 2008-01-15 Robert Millan <rmh@aybabtu.com>
43597 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
43598 when pointers are 32-bit (but still do set it to one when they are
43601 2008-01-15 Robert Millan <rmh@aybabtu.com>
43603 * include/grub/ieee1275/ieee1275.h
43604 (grub_ieee1275_get_integer_property): New function prototype.
43606 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
43607 (grub_ieee1275_get_integer_property): New function. Wraps around
43608 grub_ieee1275_get_property() to handle endianness.
43610 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
43611 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
43613 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
43614 (grub_map): Likewise.
43615 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
43617 2008-01-15 Bean <bean123ch@gmail.com>
43619 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
43620 (grub_script_execute_cmdline): Reset grub_errno.
43622 * normal/main.c (read_config_file): Reset grub_errno.
43624 * normal/parse.y (script_init): New.
43625 (script): Move function and menuentry here.
43627 (command): Add delimiter at the end of command.
43628 (commands): Adjust to match the new command.
43629 (commandblock): Remove grub_script_lexer_record_start.
43630 (menuentry): Add grub_script_lexer_record_start, use the new commands.
43631 (if): Use the new commands.
43633 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
43635 2008-01-15 Robert Millan <rmh@aybabtu.com>
43637 * normal/menu.c (run_menu): Move timeout message from here ...
43638 (print_timeout): ... to here.
43639 (run_menu): Use print_timeout() once during initial draw to print
43640 the whole message, and again in every clock tick to update only
43641 the number of seconds.
43643 2008-01-15 Robert Millan <rmh@aybabtu.com>
43645 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
43646 actual size of `available' from grub_ieee1275_get_property(), and
43647 restrict parsing to that bound.
43649 2008-01-15 Christian Franke <franke@computer.org>
43651 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
43652 (argp_program_version): Remove variable.
43653 (argp_program_bug_address): Likewise.
43654 (options): Convert from struct argp_option to struct option.
43655 (struct arguments): Remove.
43656 (parse_opt): Remove.
43657 (usage): New function.
43658 (main): Replace struct args members by simple variables.
43659 Replace argp_parse() by getopt_long().
43660 Add switch to evaluate options.
43661 Add missing "(...)" around root_dev in prefix string.
43663 2008-01-14 Robert Millan <rmh@aybabtu.com>
43665 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
43666 for grub_ieee1275_exit(), in order to improve portability.
43668 2008-01-14 Robert Millan <rmh@aybabtu.com>
43670 * util/grub.d/10_linux.in (prefix): Define.
43671 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
43673 2008-01-13 Pavel Roskin <proski@gnu.org>
43675 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
43676 grub_errno if no errors have been detected.
43678 2008-01-12 Robert Millan <rmh@aybabtu.com>
43680 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
43681 (grub_util_get_dev_abstraction): New function prototype.
43683 * util/getroot.c: Include `<grub/util/getroot.h>'
43684 (grub_util_get_grub_dev): Move detection of abstraction type to ...
43685 (grub_util_get_dev_abstraction): ... here (new function).
43687 * util/grub-probe.c: Convert PRINT_* to an enum. Add
43688 `PRINT_ABSTRACTION'.
43689 (probe): Probe for abstraction type when requested.
43690 (main): Understand `--target=abstraction'.
43692 * util/i386/efi/grub-install.in: Add abstraction module to core
43693 image when it is found to be necessary.
43694 * util/i386/pc/grub-install.in: Likewise.
43695 * util/powerpc/ieee1275/grub-install.in: Likewise.
43697 * util/update-grub_lib.in (font_path): Return system path without
43698 converting to GRUB path.
43699 * util/update-grub.in: Convert system path returned by font_path()
43700 to a GRUB path. Use `grub-probe -t abstraction' to determine what
43701 abstraction module is needed for loading fonts (if any). Export
43702 that as `GRUB_PRELOAD_MODULES'.
43703 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
43706 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
43708 Remove some unused code from reiserfs.
43710 * fs/reiserfs.c (struct grub_reiserfs_key)
43711 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
43712 (struct grub_reiserfs_node_body): Removed.
43713 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43715 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43717 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43719 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43721 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43723 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
43725 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43726 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43727 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43729 2008-01-10 Robert Millan <rmh@aybabtu.com>
43731 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
43732 Determines if a file is garbage left by packaging systems, etc.
43733 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
43734 for processing /etc/grub.d scripts.
43735 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
43736 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
43737 as a condition for processing Linux images.
43739 2008-01-10 Pavel Roskin <proski@gnu.org>
43741 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
43742 to compile reiserfs.c on PowerPC.
43744 2008-01-10 Robert Millan <rmh@aybabtu.com>
43746 * kern/device.c (grub_device_iterate): Do not abort device iteration
43747 when one of the devices cannot be opened.
43748 * kern/disk.c (grub_disk_open): Do not account previous failures of
43749 unrelated functions when grub_errno is checked for.
43751 2008-01-08 Robert Millan <rmh@aybabtu.com>
43753 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
43754 `! grub_linux_is_bzimage', change order of address comparison to make
43755 it more intuitive, and improve "too big zImage" error message.
43757 2008-01-08 Robert Millan <rmh@aybabtu.com>
43759 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
43760 `$(update-grub_DATA)'.
43761 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
43764 2008-01-07 Robert Millan <rmh@aybabtu.com>
43766 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
43767 which instruction is modified by grub-setup during installation
43768 (since it wasn't obvious by only looking at this file).
43770 2008-01-07 Robert Millan <rmh@aybabtu.com>
43772 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
43773 listing actual TODO items.
43775 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43777 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
43779 (grub_reiserfs_get_key_offset): Likewise.
43780 (grub_reiserfs_set_key_offset): Likewise.
43781 (grub_reiserfs_set_key_type): Likewise.
43782 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
43784 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
43785 better to remove the bitfield version completely.
43787 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43789 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43790 allocated from the heap, due to the fshelp implementation.
43791 (grub_reiserfs_dir): Free NODE, due to the same reason.
43793 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43795 Mostly from Vincent Pelletier:
43797 * fs/reiserfs.c: New file.
43799 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43800 (reiserfs_mod_SOURCES): New variable.
43801 (reiserfs_mod_CFLAGS): Likewise.
43802 (reiserfs_mod_LDFLAGS): Likewise.
43804 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43805 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43806 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43809 2008-01-06 Robert Millan <rmh@aybabtu.com>
43811 * normal/color.c: Remove `<grub/env.h>'.
43813 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43815 * include/grub/normal.h: Include <grub/env.h>.
43817 2008-01-05 Robert Millan <rmh@aybabtu.com>
43819 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43820 usage example with `(hd0,1)'.
43821 Reported by Samuel Thibault.
43823 2008-01-05 Robert Millan <rmh@aybabtu.com>
43825 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43826 (grub_linux_boot_zimage): Rename to ...
43827 (grub_linux_boot): ... this.
43828 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43829 (grub_linux_boot_zimage): Conditionalize zImage copy.
43831 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43832 (grub_linux_boot_bzimage): Remove prototype.
43833 (grub_linux_boot_zimage): Rename to ...
43834 (grub_linux_boot): ... this.
43836 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43837 (grub_linux_boot): Remove function.
43839 2008-01-05 Robert Millan <rmh@aybabtu.com>
43841 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43842 (grub_env_write_color_highlight): Likewise.
43843 (grub_wait_after_message): Likewise.
43845 * normal/color.c: New file.
43847 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43848 (normal_mod_DEPENDENCIES): Likewise.
43850 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43851 (normal_mod_DEPENDENCIES): Likewise.
43853 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43854 (normal_mod_DEPENDENCIES): Likewise.
43856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43857 (normal_mod_DEPENDENCIES): Likewise.
43859 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43860 for waiting after a message is printed.
43861 * normal/main.c (read_config_file): Likewise.
43862 (grub_normal_init): Register grub_env_write_color_normal() and
43863 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43864 `color_highlight' variables as global.
43866 * normal/menu.c (grub_wait_after_message): New function.
43867 (grub_color_menu_normal): New variable. Replaces ...
43868 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43869 (grub_color_menu_highlight): New variable. Replaces ...
43870 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43871 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43872 `GRUB_TERM_COLOR_STANDARD'.
43873 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43874 `normal_code' and `highlight_code' to `old_color_normal' and
43875 `old_color_highlight', respectively.
43876 (grub_menu_init_page): Update colors when drawing the menu, based on
43877 `menu_color_normal' and `menu_color_highlight' variables.
43878 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43879 a message is printed.
43881 2008-01-05 Robert Millan <rmh@aybabtu.com>
43883 * kern/env.c (grub_env_context_open): Propagate hooks for global
43884 variables to new context.
43886 * kern/main.c (grub_set_root_dev): Export `root' variable.
43888 2008-01-05 Robert Millan <rmh@aybabtu.com>
43890 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
43891 discs unconditionally, since udev and others have options to provide
43894 2008-01-05 Robert Millan <rmh@aybabtu.com>
43896 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43898 2008-01-04 Christian Franke <franke@computer.org>
43900 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43903 2008-01-03 Pavel Roskin <proski@gnu.org>
43905 * kern/i386/linuxbios/init.c: Put "void" to all function
43906 declarations with no arguments.
43907 * kern/powerpc/ieee1275/init.c: Likewise.
43908 * term/i386/pc/at_keyboard.c: Likewise.
43909 * term/i386/pc/vga_text.c: Likewise.
43910 * util/grub-mkdevicemap.c: Likewise.
43912 2008-01-02 Robert Millan <rmh@aybabtu.com>
43914 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43915 message when loaded image is out of bounds.
43916 (grub_multiboot_load_elf64): Likewise.
43918 2008-01-02 Pavel Roskin <proski@gnu.org>
43920 * util/grub.d/10_linux.in: Try version without ".old" when
43921 looking for initrd. It's better to use initrd from the newer
43922 kernel of the same version than no initrd at all.
43924 2008-01-01 Robert Millan <rmh@aybabtu.com>
43926 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
43928 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
43930 * include/grub/video.h: Added grub_video_unmap_color and
43931 grub_video_get_active_render_target.
43932 (grub_video_adapter): Added unmap_color and get_active_render_target.
43934 * video/video.c: Added grub_video_unmap_color and
43935 grub_video_get_active_render_target.
43936 (grub_video_get_info): Changed method to accept NULL pointer as an
43937 argument to allow detection of active video adapter.
43939 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
43940 grub_video_vbe_unmap_color_int.
43941 Added grub_video_vbe_unmap_color and
43942 grub_video_vbe_get_active_render_target.
43943 (grub_video_vbe_adapter): Added unmap_color and
43944 get_active_render_target.
43946 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
43947 with grub_video_vbe_unmap_color_int.
43949 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
43950 (DEFAULT_NORMAL_COLOR): Likewise.
43951 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
43952 (DEFAULT_FG_COLOR): Removed.
43953 (DEFAULT_BG_COLOR): Likewise.
43954 (DEFAULT_CURSOR_COLOR): Changed value.
43955 (grub_virtual_screen): Added standard_color_setting,
43956 normal_color_setting, highlight_color_setting and term_color.
43957 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
43958 (bitmap_width): Added.
43959 (bitmap_height): Likewise.
43960 (bitmap): Likewise.
43961 (set_term_color): Likewise.
43962 (grub_virtual_screen_setup): Changed to use new terminal coloring
43964 (grub_gfxterm_init): Added init for bitmap.
43965 (grub_gfxterm_fini): Added destroy for bitmap.
43966 (redraw_screen_rect): Updated to use background bitmap and new
43968 (scroll_up): Added optimization for case when there is no bitmap.
43969 (grub_gfxterm_cls): Fixed to use correct background color.
43970 (grub_virtual_screen_setcolorstate): Changed to use new terminal
43972 (grub_virtual_screen_setcolor): Likewise.
43973 (grub_virtual_screen_getcolor): Added.
43974 (grub_gfxterm_background_image_cmd): Likewise.
43975 (grub_video_term): Added setcolor and getcolor.
43976 (MOD_INIT): Added registration of background_image command.
43977 (MOD_TERM): Added unregistration for background_image command.
43979 2007-12-30 Pavel Roskin <proski@gnu.org>
43981 * loader/multiboot_loader.c: Fix multiboot command
43982 unregistration. Fix all typos in the word "multiboot".
43984 2007-12-29 Pavel Roskin <proski@gnu.org>
43986 * util/grub.d/10_linux.in: Refactor search for initrd. Add
43987 support for initrd names used in Fedora.
43989 2007-12-26 Bean <bean123ch@gmail.com>
43991 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
43992 (cpio_mod_SOURCES): New variable.
43993 (cpio_mod_CFLAGS): Likewise.
43994 (cpio_mod_LDFLAGS): Likewise.
43996 * fs/cpio.c: New file.
43998 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
44000 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44002 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44006 2007-12-25 Robert Millan <rmh@aybabtu.com>
44008 * include/grub/term.h (struct grub_term): Add `getcolor' function.
44009 (grub_getcolor): New function.
44011 * kern/term.c (grub_getcolor): New function.
44012 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
44013 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
44014 (print_entry): Set normal and highlight colors to
44015 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
44016 respectively, before printing and restore them to old
44018 (grub_menu_init_page): Likewise. Fill an additional colored space
44019 that would otherwise be left blank.
44021 * term/efi/console.c (grub_console_getcolor): New function.
44022 (struct grub_console_term.getcolor): New variable.
44023 * term/i386/pc/console.c (grub_console_getcolor): New function.
44024 (struct grub_console_term.getcolor): New variable.
44025 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
44026 (struct grub_console_term.getcolor): New variable.
44028 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
44029 (struct grub_console_term.setcolor): Remove variable.
44030 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
44031 (struct grub_console_term.setcolor): Remove variable.
44032 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
44033 (struct grub_console_term.setcolor): Remove variable.
44034 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
44035 (struct grub_console_term.setcolor): Remove variable.
44037 2007-12-25 Robert Millan <rmh@aybabtu.com>
44039 * configure.ac: Search for possible unifont.hex locations, and
44040 define UNIFONT_HEX if found.
44042 * Makefile.in (UNIFONT_HEX): Define variable.
44043 (DATA): Rename to ...
44044 (PKGLIB): ... this. Update all users.
44045 (PKGDATA): New variable.
44046 (pkgdata_IMAGES): Rename to ...
44047 (pkglib_IMAGES): ... this. Update all users.
44048 (pkgdata_MODULES): Rename to ...
44049 (pkglib_MODULES): ... this. Update all users.
44050 (pkgdata_PROGRAMS): Rename to ...
44051 (pkglib_PROGRAMS): ... this. Update all users.
44052 (pkgdata_DATA): Rename to ...
44053 (pkglib_DATA): ... this. Update all users.
44054 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
44055 (unicode.pff, ascii.pff): New rules.
44056 (all-local): Add `$(PKGDATA)' dependency.
44057 (install-local): Process `$(PKGDATA)'.
44059 * util/update-grub_lib.in (font_path): Search for *.pff files in
44060 a few more locations, including `${pkgdata}'.
44062 2007-12-23 Robert Millan <rmh@aybabtu.com>
44064 Patch from Bean <bean123ch@gmail.com>:
44065 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
44068 2007-12-21 Bean <bean123ch@gmail.com>
44070 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
44071 (ntfscomp_mod_SOURCES): New variable.
44072 (ntfscomp_mod_CFLAGS): Likewise.
44073 (ntfscomp_mod_LDFLAGS): Likewise.
44075 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
44076 (grub_probe_SOURCES): Likewise.
44077 (grub_emu_SOURCES): Likewise.
44079 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44080 (grub_emu_SOURCES): Likewise.
44082 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44083 (grub_emu_SOURCES): Likewise.
44085 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44086 (grub_emu_SOURCES): Likewise.
44088 * fs/ntfs.c (grub_ntfscomp_func): New variable.
44089 (read_run_list): Renamed to grub_ntfs_read_run_list.
44090 (decomp_nextvcn): Moved to ntfscomp.c.
44091 (decomp_getch): Likewise.
44092 (decomp_get16): Likewise.
44093 (decomp_block): Likewise.
44094 (read_block): Likewise.
44095 (read_data): Partially moved to ntfscomp.c.
44096 (fixup): Change unsigned to grub_uint16_t.
44097 (read_mft): Change unsigned long to grub_uint32_t.
44098 (read_attr): Likewise.
44099 (read_data): Likewise.
44100 (read_run_data): Likewise.
44101 (read_run_list): Likewise.
44102 (read_mft): Likewise.
44104 * fs/ntfscomp.c: New file.
44106 * include/grub/ntfs.h: New file.
44108 2007-12-16 Robert Millan <rmh@aybabtu.com>
44110 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
44111 IDE disk check, since Linux is known to support 20 IDE disks.
44112 Reported by Colin Watson.
44114 2007-12-15 Bean <bean123ch@gmail.com>
44116 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
44117 (lnxboot_img_SOURCES): New variable.
44118 (lnxboot_img_ASFLAGS): Likewise.
44119 (lnxboot_img_LDFLAGS): Likewise.
44121 * boot/i386/pc/lnxboot.S: New file.
44123 2007-11-24 Pavel Roskin <proski@gnu.org>
44125 * configure.ac: Test if '--build-id=none' is supported by the
44126 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
44127 objcopy to generate incorrect binary files (binutils
44128 2.17.50.0.18-1 as shipped by Fedora 8).
44129 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
44130 linking, so that build ID doesn't break the test.
44132 2007-11-24 Pavel Roskin <proski@gnu.org>
44134 * include/grub/i386/time.h: use "void" in the argument list
44135 of grub_cpu_idle().
44136 * include/grub/powerpc/time.h: Likewise.
44137 * include/grub/sparc64/time.h: Likewise.
44139 2007-11-18 Christian Franke <franke@computer.org>
44141 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
44142 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
44143 This fixes the problem that function keys did not work in grub-emu.
44145 2007-11-18 Christian Franke <franke@computer.org>
44147 * disk/host.c (grub_host_open): Remove attribute unused from
44148 name parameter. Add check for "host". This fixes the problem
44149 that grub-emu does not find partitions.
44151 2007-11-18 Christian Franke <franke@computer.org>
44153 * util/hostfs.c (is_dir): New function.
44154 (grub_hostfs_dir): Handle missing dirent.d_type case.
44155 (grub_hostfs_read): Add missing fseek().
44156 (grub_hostfs_label): Clear label pointer. This fixes a crash
44157 of grub-emu on "ls (host)".
44159 2007-11-18 Christian Franke <franke@computer.org>
44161 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
44162 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
44163 to 64 bit boundary by default.
44165 2007-11-18 Bean <bean123ch@gmail.com>
44167 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
44168 (hexdump_mod_SOURCES): New variable.
44169 (hexdump_mod_CFLAGS): Likewise.
44170 (hexdump_mod_LDFLAGS): Likewise.
44172 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44174 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44176 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44180 * include/grub/hexdump.h: New file.
44182 * commands/hexdump.c: New file.
44184 2007-11-10 Robert Millan <rmh@aybabtu.com>
44186 * commands/i386/pc/play.c (beep_off): Switch order of arguments
44187 in grub_outb() calls.
44188 (beep_on): Likewise.
44190 2007-11-10 Christian Franke <franke@computer.org>
44192 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
44193 (grub_menu_run): Likewise.
44195 2007-11-10 Robert Millan <rmh@aybabtu.com>
44197 * include/grub/i386/efi/machine.h: New file.
44198 * include/grub/i386/linuxbios/machine.h: Likewise.
44199 * include/grub/i386/pc/machine.h: Likewise.
44200 * include/grub/powerpc/ieee1275/machine.h: Likewise.
44201 * include/grub/sparc64/ieee1275/machine.h: Likewise.
44203 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
44204 (serial_hw_io_addr): New variable.
44205 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
44206 instead of `(unsigned short *) 0x400'.
44208 2007-11-10 Bean <bean123ch@gmail.com>
44210 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
44212 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44214 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
44215 (vga_mod_SOURCES): Added.
44216 (vga_mod_CFLAGS): Likewise.
44217 (vga_mod_LDFLAGS): Likewise.
44219 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
44221 (set_map_mask): Likewise.
44222 (set_read_map): Likewise.
44223 (set_read_address): Likewise.
44224 (vga_font): Removed variable.
44225 (get_vga_glyph): Removed function.
44226 (invalidate_char): Likewise.
44227 (write_char): Changed to use grub_font_get_glyph() for font
44229 (grub_vga_putchar): Likewise.
44230 (grub_vga_getcharwidth): Likewise.
44232 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44234 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
44236 (pxeboot_img_LDFLAGS): Likewise.
44237 (diskboot_img_LDFLAGS): Likewise.
44238 (kernel_img_LDFLAGS): Likewise.
44240 2007-11-06 Robert Millan <rmh@aybabtu.com>
44242 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
44243 in grub_outb() calls.
44244 (serial_hw_init): Likewise.
44246 2007-11-05 Robert Millan <rmh@aybabtu.com>
44248 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
44249 spaces. Skip non-regular files.
44251 2007-11-05 Robert Millan <rmh@aybabtu.com>
44253 * kern/disk.c (grub_disk_firmware_fini)
44254 (grub_disk_firmware_is_tainted): New variables.
44256 * include/grub/disk.h (grub_disk_firmware_fini)
44257 (grub_disk_firmware_is_tainted): Likewise.
44259 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
44260 (grub_disk_biosdisk_fini): ... to here.
44261 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
44262 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
44263 is set. Register grub_disk_biosdisk_fini() in
44264 `grub_disk_firmware_fini'.
44266 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
44267 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
44268 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
44269 to finish existing firmware disk interface.
44271 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
44272 (ata_mod_SOURCES): New variable.
44273 (ata_mod_CFLAGS): Likewise.
44274 (ata_mod_LDFLAGS): Likewise.
44276 2007-11-05 Robert Millan <rmh@aybabtu.com>
44278 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
44279 (grub_ata_wait): Reimplement using grub_millisleep().
44281 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
44282 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
44284 2007-11-03 Marco Gerards <marco@gnu.org>
44286 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
44287 (CRTC_ADDR_PORT): New macro.
44288 (CRTC_DATA_PORT): Likewise.
44289 (CRTC_CURSOR): Likewise.
44290 (CRTC_CURSOR_ADDR_HIGH): Likewise.
44291 (CRTC_CURSOR_ADDR_LOW): Likewise.
44292 (update_cursor): New function.
44293 (grub_console_real_putchar): Call `update_cursor'.
44294 (grub_console_gotoxy): Likewise.
44295 (grub_console_cls): Set the default color when clearing the
44297 (grub_console_setcursor): Implemented.
44299 2007-11-03 Marco Gerards <marco@gnu.org>
44301 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
44303 (grub_ata_pio_write): Likewise.
44305 (grub_atapi_identify): Wait after issuing an ATA command.
44306 (grub_atapi_packet): Likewise.
44307 (grub_ata_identify): Likewise.
44308 (grub_ata_readwrite): Likewise.
44310 2007-11-03 Marco Gerards <marco@gnu.org>
44312 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
44313 (grub_ata_pio_write): Likewise.
44314 (grub_ata_readwrite): Use `grub_error', instead of
44315 returning `grub_errno'.
44317 2007-11-03 Marco Gerards <marco@gnu.org>
44319 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
44320 grub_ata_pio_write once for every single sector, instead of for
44323 2007-10-31 Robert Millan <rmh@aybabtu.com>
44325 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
44327 * conf/i386-linuxbios.rmk: New file.
44329 * kern/i386/pc/hardware.c: Likewise.
44330 * term/i386/pc/at_keyboard.c: Likewise.
44331 * term/i386/pc/vga_text.c: Likewise.
44333 * include/grub/i386/linuxbios/boot.h: Likewise.
44334 * include/grub/i386/linuxbios/console.h: Likewise.
44335 * include/grub/i386/linuxbios/init.h: Likewise.
44336 * include/grub/i386/linuxbios/kernel.h: Likewise.
44337 * include/grub/i386/linuxbios/loader.h: Likewise.
44338 * include/grub/i386/linuxbios/memory.h: Likewise.
44339 * include/grub/i386/linuxbios/serial.h: Likewise.
44340 * include/grub/i386/linuxbios/time.h: Likewise.
44342 * kern/i386/linuxbios/init.c: Likewise.
44343 * kern/i386/linuxbios/startup.S: Likewise.
44344 * kern/i386/linuxbios/table.c: Likewise.
44346 2007-10-31 Marco Gerards <marco@gnu.org>
44348 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
44349 (ata_mod_SOURCES): New variable.
44350 (ata_mod_CFLAGS): Likewise.
44351 (ata_mod_LDFLAGS): Likewise.
44353 * disk/ata.c: New file.
44355 * include/grub/disk.h (grub_disk_dev_id): Add
44356 `GRUB_DISK_DEV_ATA_ID'.
44358 2007-10-31 Robert Millan <rmh@aybabtu.com>
44360 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
44361 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
44363 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
44364 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
44366 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
44369 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
44371 2007-10-27 Robert Millan <rmh@aybabtu.com>
44373 * include/grub/types.h (ULONG_MAX): Define macro.
44375 2007-10-22 Robert Millan <rmh@aybabtu.com>
44377 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
44379 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
44381 2007-10-22 Robert Millan <rmh@aybabtu.com>
44383 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
44384 (pkgdata_MODULES): Add `biosdisk.mod'.
44385 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
44388 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
44389 (grub_biosdisk_init): Replace with ...
44390 (GRUB_MOD_INIT(biosdisk)): ... this.
44391 (grub_biosdisk_fini): Replace with ...
44392 (GRUB_MOD_FINI(biosdisk)): ... this.
44394 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
44395 (grub_machine_init): Remove call to grub_biosdisk_init().
44396 (grub_machine_fini): Remove call to grub_machine_fini().
44398 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
44400 2007-10-22 Robert Millan <rmh@aybabtu.com>
44402 * include/grub/time.h: New file.
44403 * include/grub/i386/time.h: Likewise.
44404 * include/grub/powerpc/time.h: Likewise.
44405 * include/grub/sparc64/time.h: Likewise.
44407 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
44409 (KERNEL_MACHINE_TIME_HEADER): ... this.
44410 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44412 (KERNEL_MACHINE_TIME_HEADER): ... this.
44413 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44415 (KERNEL_MACHINE_TIME_HEADER): ... this.
44417 * kern/i386/efi/init.c: Include `<grub/time.h>'.
44418 (grub_millisleep): New function.
44419 * kern/i386/pc/init.c: Include `<grub/time.h>'.
44420 (grub_millisleep): New function.
44421 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
44422 Remove `grub/machine/time.h' include.
44423 (grub_millisleep): New function.
44424 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
44425 Remove `grub/machine/time.h' include.
44426 (grub_millisleep): New function.
44428 * include/grub/misc.h (grub_div_roundup): New function.
44430 * kern/misc.c: Include `<grub/time.h>'.
44431 (grub_millisleep_generic): New function.
44433 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
44435 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
44437 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
44438 `machine/time.h'. Add `time.h'.
44439 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44441 2007-10-21 Robert Millan <rmh@aybabtu.com>
44443 * include/grub/misc.h (grub_max): New function.
44445 2007-10-21 Robert Millan <rmh@aybabtu.com>
44447 * util/misc.c (grub_util_info): Call fflush() before returning.
44449 2007-10-20 Robert Millan <rmh@aybabtu.com>
44451 * genmk.rb (Image): Copy `extra_flags' from here ...
44452 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
44454 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
44455 to `argc' and `args' arguments.
44457 2007-10-17 Robert Millan <rmh@aybabtu.com>
44459 * kern/i386/loader.S: New file.
44461 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
44462 * kern/i386/loader.S (grub_linux_prot_size)... to here.
44463 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
44464 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
44465 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
44466 * kern/i386/loader.S (grub_linux_real_addr)... to here.
44467 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
44468 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
44469 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
44470 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
44471 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
44472 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
44473 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
44474 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
44476 * kern/i386/realmode.S: New file.
44478 * kern/i386/pc/startup.S (protstack): Moved from here ...
44479 * kern/i386/realmode.S (protstack)... to here.
44480 * kern/i386/pc/startup.S (gdt): Moved from here ...
44481 * kern/i386/realmode.S (gdt)... to here.
44482 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
44483 * kern/i386/realmode.S (prot_to_real)... to here.
44485 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
44486 `kern/i386/realmode.S'.
44488 2007-10-17 Robert Millan <rmh@aybabtu.com>
44490 * include/grub/i386/loader.h: New file.
44492 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
44493 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44494 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44495 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44496 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
44497 * include/grub/i386/loader.h (grub_linux_prot_size)
44498 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44499 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44500 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44501 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
44503 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
44505 2007-10-15 Robert Millan <rmh@aybabtu.com>
44507 * normal/misc.c (grub_normal_print_device_info): Do not probe for
44508 filesystem when dev->disk is unset.
44509 Do probe for filesystem even when dev->disk->has_partitions is set.
44510 In case a filesystem is found, always report it.
44511 In case it isn't, if dev->disk->has_partitions is set, report that
44512 a partition table was found instead of reporting that no filesystem
44513 could be identified.
44515 2007-10-12 Robert Millan <rmh@aybabtu.com>
44517 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
44518 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
44520 * include/grub/types.h (grub_host_to_target16): New macro.
44521 (grub_host_to_target32): Likewise.
44522 (grub_host_to_target64): Likewise.
44523 (grub_target_to_host16): Likewise.
44524 (grub_target_to_host32): Likewise.
44525 (grub_target_to_host64): Likewise.
44527 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44528 Renamed from to ...
44529 (GRUB_MOD_ALIGN): ...this. Update all users.
44531 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
44532 grub_host_to_target32.
44533 Replace grub_be_to_cpu32 with grub_target_to_host32.
44534 (load_modules): Likewise.
44535 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
44536 Replace grub_be_to_cpu32 with grub_target_to_host32.
44537 Replace grub_cpu_to_be16 with grub_host_to_target16.
44538 Replace grub_cpu_to_be32 grub_host_to_target32.
44540 2007-10-12 Robert Millan <rmh@aybabtu.com>
44542 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
44543 * util/elf/grub-mkimage.c: ... here.
44545 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
44546 `util/powerpc/ieee1275/grub-mkimage.c'.
44548 2007-10-07 Robert Millan <rmh@aybabtu.com>
44550 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
44551 and make it easier to figure out.
44552 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
44553 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
44554 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
44555 leave us with less than HEAP_MIN_SIZE total heap.
44556 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
44558 2007-10-03 Robert Millan <rmh@aybabtu.com>
44560 * include/grub/i386/io.h: New file.
44561 * commands/i386/pc/play.c (inb): Removed.
44563 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44565 * term/i386/pc/serial.c (inb): Removed.
44567 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44569 * term/i386/pc/vga.c (inb): Removed.
44571 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44574 2007-10-02 Robert Millan <rmh@aybabtu.com>
44576 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
44577 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44578 Reported by Marcin Kurek.
44580 2007-09-07 Robert Millan <rmh@aybabtu.com>
44582 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
44583 SmartFirmware version updates (as released by Sven Luther), and avoid
44584 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
44585 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
44588 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44590 From Hitoshi Ozeki:
44591 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
44592 when merging two regions.
44594 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44596 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
44597 * normal/completion.c (grub_normal_do_completion): Likewise.
44598 Reported by Hitoshi Ozeki.
44600 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44602 Do not use devices at boot in chainloading.
44604 * loader/i386/pc/chainloader.c (boot_drive): New variable.
44605 (boot_part_addr): Likewise.
44606 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
44607 with BOOT_DRIVE and BOOT_PART_ADDR.
44608 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
44609 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
44611 2007-08-29 Robert Millan <rmh@aybabtu.com>
44613 Patch from Simon Peter <dn.tlp@gmx.net>:
44614 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
44615 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
44616 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
44617 util/i386/pc/grub-setup.c_DEPENDENCIES.
44618 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
44619 util/grub-probe.c_DEPENDENCIES.
44620 * conf/powerpc-ieee1275.rmk: Likewise.
44622 2007-08-28 Robert Millan <rmh@aybabtu.com>
44624 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
44625 to tell grub-mkdevicemap how to name devices.
44626 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
44629 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
44630 util/i386/get_disk_name.c.
44631 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
44632 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
44633 util/ieee1275/get_disk_name.c.
44635 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
44637 * DISTLIST: Add util/i386/get_disk_name.c and
44638 util/ieee1275/get_disk_name.c.
44640 * util/grub-mkdevicemap.c: Replace device naming logic with
44641 grub_util_get_disk_name() calls.
44643 2007-08-20 Robert Millan <rmh@aybabtu.com>
44645 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
44646 (so that it works for both plural and singular quantities).
44648 2007-08-05 Robert Millan <rmh@aybabtu.com>
44650 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
44651 so that [xz] isn't taken into account when determining order.
44653 2007-08-02 Marco Gerards <marco@gnu.org>
44655 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
44656 `include/multiboot2.h', `include/grub/elfload.h',
44657 `include/multiboot.h', `include/grub/multiboot.h',
44658 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
44659 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
44660 `kern/elf.c', `loader/multiboot_loader.c',
44661 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
44662 `loader/i386/pc/multiboot2.c',
44663 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
44664 `util/i386/pc/grub-mkrescue.in'. Remove
44665 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
44666 `include/grub/i386/pc/util/biosdisk.h' and
44667 `include/grub/powerpc/ieee1275/multiboot.h'.
44669 2007-08-02 Bean <bean123ch@gmail.com>
44671 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
44672 (ntfs_mod_SOURCES): New variable.
44673 (ntfs_mod_CFLAGS): Likewise.
44674 (ntfs_mod_LDFLAGS): Likewise.
44676 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
44677 (grub_probe_SOURCES): Likewise.
44678 (grub_emu_SOURCES): Likewise.
44680 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44681 (grub_emu_SOURCES): Likewise.
44683 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44684 (grub_emu_SOURCES): Likewise.
44686 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
44688 * fs/ntfs.c: New file.
44690 2007-08-02 Bean <bean123ch@gmail.com>
44692 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
44694 * file.h (grub_file): Likewise.
44696 * fshelp.h (grub_fshelp_read_file): Likewise.
44698 * util/i386/pc/grub-setup.c (setup): Likewise.
44699 (save_first_sector): Likewise.
44700 (save_blocklists): Likewise.
44702 * fs/affs.c (grub_affs_read_file): Likewise.
44704 * fs/ext2.c (grub_ext2_read_file): Likewise.
44706 * fs/fat.c (grub_fat_read_data): Likewise.
44708 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
44710 * fs/hfs.c (grub_hfs_read_file): Likewise.
44712 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44714 * fs/jfs.c (grub_jfs_read_file): Likewise.
44716 * fs/minix.c (grub_minix_read_file): Likewise.
44718 * fs/sfs.c (grub_sfs_read_file): Likewise.
44720 * fs/ufs.c (grub_ufs_read_file): Likewise.
44722 * fs/xfs.c (grub_xfs_read_file): Likewise.
44724 * command/blocklist.c (read_blocklist): Likewise.
44725 (print_blocklist): Likewise.
44727 2007-08-02 Marco Gerards <marco@gnu.org>
44729 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
44732 * disk/host.c: New file.
44734 * util/hostfs.c: Likewise.
44736 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
44737 return `GRUB_ERR_BAD_FS'.
44738 * fs/sfs.c (grub_sfs_mount): Likewise.
44739 * fs/xfs.c (grub_xfs_mount): Likewise.
44741 * include/grub/disk.h (enum grub_disk_dev_id): Add
44742 `GRUB_DISK_DEVICE_HOST_ID'.
44744 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
44746 2007-07-24 Jerone Young <jerone@gmail.com>
44748 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
44749 modules for compilation.
44750 * conf/powerpc-ieee1275.rmk: Likewise.
44752 * include/multiboot.h: Move multiboot definitions to one file. Rename
44753 many definitions to not get grub specific.
44754 * include/multiboot2.h: Create header with multiboot 2 definitions.
44755 * include/grub/multiboot.h: Header for grub specific function
44756 prototypes and definitions.
44757 * include/grub/multiboot2.h: Likewise.
44758 * include/grub/multiboot_loader.h: Likewise.
44759 * include/grub/i386/pc/multiboot.h: Removed.
44760 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
44762 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
44763 and 2 to allow for one multiboot and module commands.
44764 * loader/multiboot2.c: Add multiboot2 functionality.
44765 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
44766 and definition names.
44767 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
44769 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
44770 ieee1275 specific multiboot2 code.
44772 * kern/i386/pc/startup.S: Change headers and definition names for
44773 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
44775 2007-07-22 Robert Millan <rmh@aybabtu.com>
44777 * geninitheader.sh: Process file specified in first parameter rather
44778 than hardcoding grub_modules_init.lst.
44779 * geninit.sh: Likewise. Also, construct header name dynamically rather
44780 than hardcoding grub_modules_init.h.
44782 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
44783 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
44784 grub_probe_init.[ch] and grub_setup_init.[ch].
44786 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
44787 grub_modules_init.h with grub_emu_init.h.
44788 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
44789 grub_probe_init.[ch] files.
44790 * conf/i386-efi.rmk: Likewise.
44791 * conf/i386-pc.rmk: Likewise.
44792 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44793 grub_setup_init.[ch] files.
44795 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44796 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44797 to initialize modules rather than a list of hardcoded functions.
44798 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44799 grub_init_all() to initialize modules rather than a list of hardcoded
44802 2007-07-22 Robert Millan <rmh@aybabtu.com>
44804 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44805 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44807 2007-07-22 Robert Millan <rmh@aybabtu.com>
44809 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44810 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44811 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44812 flag when running on SmartFirmware.
44813 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44814 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44817 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44818 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44819 rather than decreasing it.
44821 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44822 there's not enough space to do it, fail in the same way as when it
44823 can't be done because there are no partitions.
44825 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44826 when nvsetenv failed.
44828 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44830 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44831 because this rule is automatically generated.
44832 (grub-mkrescue): Removed for the same reason as above.
44834 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44836 Migrate to GNU General Public License Version 3.
44838 * COPYING: Replaced with the plain text version of GPLv3.
44840 * config.guess: Updated from gnulib.
44841 * config.sub: Likewise.
44843 * geninit.sh: Output a GPLv3 copyright notice.
44844 * geninitheader.sh: Likewise.
44845 * genmodsrc.sh: Likewise.
44846 * gensymlist.sh.in: Likewise.
44848 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44849 * boot/i386/pc/diskboot.S: Likewise.
44850 * boot/i386/pc/pxeboot.S: Likewise.
44851 * commands/blocklist.c: Likewise.
44852 * commands/boot.c: Likewise.
44853 * commands/cat.c: Likewise.
44854 * commands/cmp.c: Likewise.
44855 * commands/configfile.c: Likewise.
44856 * commands/echo.c: Likewise.
44857 * commands/help.c: Likewise.
44858 * commands/ls.c: Likewise.
44859 * commands/search.c: Likewise.
44860 * commands/terminal.c: Likewise.
44861 * commands/test.c: Likewise.
44862 * commands/videotest.c: Likewise.
44863 * commands/i386/cpuid.c: Likewise.
44864 * commands/i386/pc/halt.c: Likewise.
44865 * commands/i386/pc/play.c: Likewise.
44866 * commands/i386/pc/reboot.c: Likewise.
44867 * commands/i386/pc/vbeinfo.c: Likewise.
44868 * commands/i386/pc/vbetest.c: Likewise.
44869 * commands/ieee1275/halt.c: Likewise.
44870 * commands/ieee1275/reboot.c: Likewise.
44871 * commands/ieee1275/suspend.c: Likewise.
44872 * disk/loopback.c: Likewise.
44873 * disk/lvm.c: Likewise.
44874 * disk/raid.c: Likewise.
44875 * disk/efi/efidisk.c: Likewise.
44876 * disk/i386/pc/biosdisk.c: Likewise.
44877 * disk/ieee1275/ofdisk.c: Likewise.
44878 * font/manager.c: Likewise.
44879 * fs/affs.c: Likewise.
44880 * fs/ext2.c: Likewise.
44881 * fs/fat.c: Likewise.
44882 * fs/fshelp.c: Likewise.
44883 * fs/hfs.c: Likewise.
44884 * fs/hfsplus.c: Likewise.
44885 * fs/iso9660.c: Likewise.
44886 * fs/jfs.c: Likewise.
44887 * fs/minix.c: Likewise.
44888 * fs/sfs.c: Likewise.
44889 * fs/ufs.c: Likewise.
44890 * fs/xfs.c: Likewise.
44891 * hello/hello.c: Likewise.
44892 * include/grub/acorn_filecore.h: Likewise.
44893 * include/grub/arg.h: Likewise.
44894 * include/grub/bitmap.h: Likewise.
44895 * include/grub/boot.h: Likewise.
44896 * include/grub/cache.h: Likewise.
44897 * include/grub/device.h: Likewise.
44898 * include/grub/disk.h: Likewise.
44899 * include/grub/dl.h: Likewise.
44900 * include/grub/elfload.h: Likewise.
44901 * include/grub/env.h: Likewise.
44902 * include/grub/err.h: Likewise.
44903 * include/grub/file.h: Likewise.
44904 * include/grub/font.h: Likewise.
44905 * include/grub/fs.h: Likewise.
44906 * include/grub/fshelp.h: Likewise.
44907 * include/grub/gzio.h: Likewise.
44908 * include/grub/hfs.h: Likewise.
44909 * include/grub/kernel.h: Likewise.
44910 * include/grub/loader.h: Likewise.
44911 * include/grub/lvm.h: Likewise.
44912 * include/grub/misc.h: Likewise.
44913 * include/grub/mm.h: Likewise.
44914 * include/grub/net.h: Likewise.
44915 * include/grub/normal.h: Likewise.
44916 * include/grub/parser.h: Likewise.
44917 * include/grub/partition.h: Likewise.
44918 * include/grub/pc_partition.h: Likewise.
44919 * include/grub/raid.h: Likewise.
44920 * include/grub/rescue.h: Likewise.
44921 * include/grub/script.h: Likewise.
44922 * include/grub/setjmp.h: Likewise.
44923 * include/grub/symbol.h: Likewise.
44924 * include/grub/term.h: Likewise.
44925 * include/grub/terminfo.h: Likewise.
44926 * include/grub/tparm.h: Likewise.
44927 * include/grub/types.h: Likewise.
44928 * include/grub/video.h: Likewise.
44929 * include/grub/efi/api.h: Likewise.
44930 * include/grub/efi/chainloader.h: Likewise.
44931 * include/grub/efi/console.h: Likewise.
44932 * include/grub/efi/console_control.h: Likewise.
44933 * include/grub/efi/disk.h: Likewise.
44934 * include/grub/efi/efi.h: Likewise.
44935 * include/grub/efi/pe32.h: Likewise.
44936 * include/grub/efi/time.h: Likewise.
44937 * include/grub/i386/linux.h: Likewise.
44938 * include/grub/i386/setjmp.h: Likewise.
44939 * include/grub/i386/types.h: Likewise.
44940 * include/grub/i386/efi/kernel.h: Likewise.
44941 * include/grub/i386/efi/loader.h: Likewise.
44942 * include/grub/i386/efi/time.h: Likewise.
44943 * include/grub/i386/pc/biosdisk.h: Likewise.
44944 * include/grub/i386/pc/boot.h: Likewise.
44945 * include/grub/i386/pc/chainloader.h: Likewise.
44946 * include/grub/i386/pc/console.h: Likewise.
44947 * include/grub/i386/pc/init.h: Likewise.
44948 * include/grub/i386/pc/kernel.h: Likewise.
44949 * include/grub/i386/pc/loader.h: Likewise.
44950 * include/grub/i386/pc/memory.h: Likewise.
44951 * include/grub/i386/pc/multiboot.h: Likewise.
44952 * include/grub/i386/pc/serial.h: Likewise.
44953 * include/grub/i386/pc/time.h: Likewise.
44954 * include/grub/i386/pc/vbe.h: Likewise.
44955 * include/grub/i386/pc/vbeblit.h: Likewise.
44956 * include/grub/i386/pc/vbefill.h: Likewise.
44957 * include/grub/i386/pc/vbeutil.h: Likewise.
44958 * include/grub/i386/pc/vga.h: Likewise.
44959 * include/grub/ieee1275/ieee1275.h: Likewise.
44960 * include/grub/ieee1275/ofdisk.h: Likewise.
44961 * include/grub/powerpc/libgcc.h: Likewise.
44962 * include/grub/powerpc/setjmp.h: Likewise.
44963 * include/grub/powerpc/types.h: Likewise.
44964 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
44965 * include/grub/powerpc/ieee1275/console.h: Likewise.
44966 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
44967 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
44968 * include/grub/powerpc/ieee1275/loader.h: Likewise.
44969 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
44970 * include/grub/powerpc/ieee1275/time.h: Likewise.
44971 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
44972 * include/grub/sparc64/libgcc.h: Likewise.
44973 * include/grub/sparc64/setjmp.h: Likewise.
44974 * include/grub/sparc64/types.h: Likewise.
44975 * include/grub/sparc64/ieee1275/console.h: Likewise.
44976 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44977 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44978 * include/grub/sparc64/ieee1275/time.h: Likewise.
44979 * include/grub/util/biosdisk.h: Likewise.
44980 * include/grub/util/getroot.h: Likewise.
44981 * include/grub/util/lvm.h: Likewise.
44982 * include/grub/util/misc.h: Likewise.
44983 * include/grub/util/raid.h: Likewise.
44984 * include/grub/util/resolve.h: Likewise.
44985 * io/gzio.c: Likewise.
44986 * kern/device.c: Likewise.
44987 * kern/disk.c: Likewise.
44988 * kern/dl.c: Likewise.
44989 * kern/elf.c: Likewise.
44990 * kern/env.c: Likewise.
44991 * kern/err.c: Likewise.
44992 * kern/file.c: Likewise.
44993 * kern/fs.c: Likewise.
44994 * kern/loader.c: Likewise.
44995 * kern/main.c: Likewise.
44996 * kern/misc.c: Likewise.
44997 * kern/mm.c: Likewise.
44998 * kern/parser.c: Likewise.
44999 * kern/partition.c: Likewise.
45000 * kern/rescue.c: Likewise.
45001 * kern/term.c: Likewise.
45002 * kern/efi/efi.c: Likewise.
45003 * kern/efi/init.c: Likewise.
45004 * kern/efi/mm.c: Likewise.
45005 * kern/i386/dl.c: Likewise.
45006 * kern/i386/efi/init.c: Likewise.
45007 * kern/i386/efi/startup.S: Likewise.
45008 * kern/i386/pc/init.c: Likewise.
45009 * kern/i386/pc/lzo1x.S: Likewise.
45010 * kern/i386/pc/startup.S: Likewise.
45011 * kern/ieee1275/ieee1275.c: Likewise.
45012 * kern/powerpc/cache.S: Likewise.
45013 * kern/powerpc/dl.c: Likewise.
45014 * kern/powerpc/ieee1275/cmain.c: Likewise.
45015 * kern/powerpc/ieee1275/crt0.S: Likewise.
45016 * kern/powerpc/ieee1275/init.c: Likewise.
45017 * kern/powerpc/ieee1275/openfw.c: Likewise.
45018 * kern/sparc64/cache.S: Likewise.
45019 * kern/sparc64/dl.c: Likewise.
45020 * kern/sparc64/ieee1275/init.c: Likewise.
45021 * kern/sparc64/ieee1275/openfw.c: Likewise.
45022 * loader/efi/chainloader.c: Likewise.
45023 * loader/efi/chainloader_normal.c: Likewise.
45024 * loader/i386/efi/linux.c: Likewise.
45025 * loader/i386/efi/linux_normal.c: Likewise.
45026 * loader/i386/pc/chainloader.c: Likewise.
45027 * loader/i386/pc/chainloader_normal.c: Likewise.
45028 * loader/i386/pc/linux.c: Likewise.
45029 * loader/i386/pc/linux_normal.c: Likewise.
45030 * loader/i386/pc/multiboot.c: Likewise.
45031 * loader/i386/pc/multiboot_normal.c: Likewise.
45032 * loader/powerpc/ieee1275/linux.c: Likewise.
45033 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
45034 * normal/arg.c: Likewise.
45035 * normal/cmdline.c: Likewise.
45036 * normal/command.c: Likewise.
45037 * normal/completion.c: Likewise.
45038 * normal/execute.c: Likewise.
45039 * normal/function.c: Likewise.
45040 * normal/lexer.c: Likewise.
45041 * normal/main.c: Likewise.
45042 * normal/menu.c: Likewise.
45043 * normal/menu_entry.c: Likewise.
45044 * normal/misc.c: Likewise.
45045 * normal/parser.y: Likewise.
45046 * normal/script.c: Likewise.
45047 * normal/i386/setjmp.S: Likewise.
45048 * normal/powerpc/setjmp.S: Likewise.
45049 * normal/sparc64/setjmp.S: Likewise.
45050 * partmap/acorn.c: Likewise.
45051 * partmap/amiga.c: Likewise.
45052 * partmap/apple.c: Likewise.
45053 * partmap/gpt.c: Likewise.
45054 * partmap/pc.c: Likewise.
45055 * partmap/sun.c: Likewise.
45056 * term/gfxterm.c: Likewise.
45057 * term/terminfo.c: Likewise.
45058 * term/efi/console.c: Likewise.
45059 * term/i386/pc/console.c: Likewise.
45060 * term/i386/pc/serial.c: Likewise.
45061 * term/i386/pc/vesafb.c: Likewise.
45062 * term/i386/pc/vga.c: Likewise.
45063 * term/ieee1275/ofconsole.c: Likewise.
45064 * util/biosdisk.c: Likewise.
45065 * util/console.c: Likewise.
45066 * util/genmoddep.c: Likewise.
45067 * util/getroot.c: Likewise.
45068 * util/grub-emu.c: Likewise.
45069 * util/grub-mkdevicemap.c: Likewise.
45070 * util/grub-probe.c: Likewise.
45071 * util/lvm.c: Likewise.
45072 * util/misc.c: Likewise.
45073 * util/raid.c: Likewise.
45074 * util/resolve.c: Likewise.
45075 * util/update-grub.in: Likewise.
45076 * util/update-grub_lib.in: Likewise.
45077 * util/grub.d/00_header.in: Likewise.
45078 * util/grub.d/10_hurd.in: Likewise.
45079 * util/grub.d/10_linux.in: Likewise.
45080 * util/i386/efi/grub-install.in: Likewise.
45081 * util/i386/efi/grub-mkimage.c: Likewise.
45082 * util/i386/pc/grub-install.in: Likewise.
45083 * util/i386/pc/grub-mkimage.c: Likewise.
45084 * util/i386/pc/grub-mkrescue.in: Likewise.
45085 * util/i386/pc/grub-setup.c: Likewise.
45086 * util/i386/pc/misc.c: Likewise.
45087 * util/powerpc/ieee1275/grub-install.in: Likewise.
45088 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
45089 * util/powerpc/ieee1275/misc.c: Likewise.
45090 * video/bitmap.c: Likewise.
45091 * video/video.c: Likewise.
45092 * video/i386/pc/vbe.c: Likewise.
45093 * video/i386/pc/vbeblit.c: Likewise.
45094 * video/i386/pc/vbefill.c: Likewise.
45095 * video/i386/pc/vbeutil.c: Likewise.
45096 * video/readers/tga.c: Likewise.
45098 2007-07-02 Robert Millan <rmh@aybabtu.com>
45100 * conf/i386-efi.rmk: Replace obsolete reference to
45101 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
45102 with util/getroot.c.
45103 * conf/powerpc-ieee1275.rmk: Likewise.
45104 * conf/sparc64-ieee1275.rmk: Likewise.
45106 * util/grub-emu.c (main): Fix unchecked pointer handling.
45108 2007-07-02 Robert Millan <rmh@aybabtu.com>
45110 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
45111 invocation to fail, in order to support partition-less media.
45113 * util/i386/pc/grub-install.in: Likewise.
45115 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
45116 which fs or partmap modules are needed (akin to its sister scripts).
45118 Also use grub-probe to get rid of unportable /proc/mounts check.
45120 Print the same informational message that the other scripts do, before
45123 2007-06-23 Robert Millan <rmh@aybabtu.com>
45125 * util/update-grub_lib.in (font_path): New function. Determine whether
45126 a font file can be found and, if so, echo the GRUB path to it.
45128 * util/update-grub.in: Handle multiple terminals depending on user
45129 input, platform availability and font file presence. Propagate
45130 variables of our findings to /etc/grub.d/ children.
45132 * util/grub.d/00_header.in: Handle multiple terminals, based on
45133 environment setup by update-grub.
45135 2007-06-23 Robert Millan <rmh@aybabtu.com>
45137 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
45139 2007-06-21 Robert Millan <rmh@aybabtu.com>
45141 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
45142 indicate end of data section in kernel image.
45143 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
45144 GRUB_KERNEL_MACHINE_DATA_END.
45146 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
45148 * kern/i386/efi/startup.S: Likewise.
45150 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
45151 during image generation. Implement --prefix option to override this
45153 * util/i386/efi/grub-mkimage.c: Likewise.
45155 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
45156 code to make path relative to its root into a separate function.
45158 * util/i386/pc/grub-install.in: Use newly provided
45159 make_system_path_relative_to_its_root() to convert ${grubdir}, then
45160 pass the result to grub-install --prefix.
45162 2007-06-13 Robert Millan <rmh@aybabtu.com>
45164 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
45165 DEFAULT_DEVICE_MAP.
45166 * util/grub-emu.c: Use above definitions from misc.h instead of
45168 * util/grub-mkdevicemap.c: Likewise.
45169 * util/i386/pc/grub-setup.c: Likewise.
45170 * util/grub-probe.c: Likewise.
45171 (probe): Abort with grub_util_error() when either
45172 grub_guess_root_device or grub_util_get_grub_dev fails.
45174 2007-06-12 Robert Millan <rmh@aybabtu.com>
45176 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
45177 "pager" assignment.
45178 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
45180 * util/grub-probe.c (probe): Likewise for "drive_name".
45182 2007-06-11 Robert Millan <rmh@aybabtu.com>
45184 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
45185 not just the cdrom one.
45187 2007-06-11 Robert Millan <rmh@aybabtu.com>
45189 * util/i386/pc/grub-mkrescue.in: Add "set -e".
45190 Add --pkglibdir=DIR option to override pkglibdir.
45191 Mention --image-type=TYPE in help output.
45192 Fix --grub-mkimage (it was a no-op).
45193 Abort gracefully when no parameter is given.
45195 2007-06-11 Robert Millan <rmh@aybabtu.com>
45197 * util/i386/pc/grub-mkrescue.in: New file.
45198 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
45199 * Makefile.in: Handle bin_SCRIPTS.
45201 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
45203 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
45204 list of video modes.
45206 2007-06-06 Robert Millan <rmh@aybabtu.com>
45208 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
45209 file doesn't exist, or if it is in a filesystem grub can't read.
45211 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
45212 not abort if GRUB_DRIVE could not be defined. Rearrange generated
45213 header comment to fit in 80 columns when the variables are resolved.
45215 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
45216 could be identified by update-grub. Remove redundant check for
45217 unifont.pff existence (since convert_system_path_to_grub_path now
45220 2007-06-04 Robert Millan <rmh@aybabtu.com>
45222 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
45224 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
45226 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
45228 2007-06-04 Robert Millan <rmh@aybabtu.com>
45230 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
45232 * include/grub/partition.h: Declare grub_apple_partition_map_init and
45233 grub_apple_partition_map_fini.
45236 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
45237 to access >2 TiB disks).
45239 Print disk->total_sectors with %llu instead of %lu, since this
45240 variable is always 64-bit (prevents wrong disk size from being displayed
45241 on either >2 TiB disk or big-endian CPU).
45243 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
45244 into a generic case that supports all (sane) partition maps.
45246 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
45249 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
45250 and grub_apple_partition_map_fini() after that.
45252 2007-06-01 Robert Millan <rmh@aybabtu.com>
45254 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
45256 * util/grub.d/00_header.in: Only enable gfxterm when
45257 convert_system_path_to_grub_path() succeeds.
45259 2007-05-20 Robert Millan <rmh@aybabtu.com>
45261 * util/update-grub_lib.in: New file.
45262 * DISTLIST: Add update-grub_lib.in.
45263 * conf/common.rmk: Generate update-grub_lib and install it in
45265 * Makefile.in: Add install routine for $(lib_DATA).
45267 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
45268 function provided by update-grub_lib to support arbitrary paths of
45270 * util/update-grub.in: Use convert_system_path_to_grub_path() to
45271 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
45273 2007-05-19 Robert Millan <rmh@aybabtu.com>
45275 * commands/i386/cpuid.c: New module.
45276 * DISTLIST: Add it.
45277 * conf/i386-efi.rmk: Enable cpuid.mod.
45278 * conf/i386-pc.rmk: Likewise.
45280 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45282 * kern/disk.c (grub_disk_read): Check return value of
45285 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45287 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
45289 * disk/raid.c (grub_raid_open): Likewise.
45291 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45293 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
45294 stack instead of on the heap.
45296 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
45297 before doing a read on it.
45299 * configure.ac: Only use -fno-stack-protector for the target
45302 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45304 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
45305 __attribute_ ((unused)) to mode_type argument.
45307 * util/getroot.c (grub_guess_root_device): Fix #endif.
45309 * kern/misc.c (memcmp): Fix prototype.
45311 * include/grub/partition.h [GRUB_UTIL]
45312 (grub_gpt_partition_map_init): Add prototype.
45313 (grub_gpt_partition_map_fini): Likewise.
45315 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
45316 at the right place.
45318 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
45319 (grub_fat_read_data): Likewise.
45320 (grub_fat_find_dir): Likewise.
45322 * font/manager.c (find_glyph): Make table a const.
45323 (grub_font_get_glyph): Remove bitmap from if statement.
45325 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
45327 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
45328 code, first search for device in /dev/mapper, then in /dev.
45329 (grub_util_get_grub_dev): New function.
45330 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
45332 * util/grub-probe.c (probe): Remove check for RAID, call
45333 grub_util_get_grub_dev() instead of
45334 grub_util_biosdisk_get_grub_dev().
45335 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
45336 grub_util_biosdisk_get_grub_dev().
45337 * util/i386/pc/grub-setup.c (main): Likewise.
45339 2007-05-16 Robert Millan <rmh@aybabtu.com>
45341 * DISTLIST: Update for the latest changes.
45342 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
45343 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
45344 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
45345 grub/util/biosdisk.h.
45346 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
45347 grub/util/biosdisk.h.
45349 2007-05-16 Robert Millan <rmh@aybabtu.com>
45351 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
45353 2007-05-16 Robert Millan <rmh@aybabtu.com>
45355 * util/i386/efi/grub-install.in: New.
45356 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
45357 newly added grub-install.
45358 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
45360 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
45361 grub/util/biosdisk.h.
45362 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
45363 grub/util/biosdisk.h.
45365 2007-05-16 Robert Millan <rmh@aybabtu.com>
45367 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
45368 * include/grub/util/biosdisk.h: ... here.
45369 * util/i386/pc/biosdisk.c: Moved to ...
45370 * util/biosdisk.c: ... here.
45371 * util/i386/pc/getroot.c: Moved to ...
45372 * util/getroot.c: ... here.
45373 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
45374 * util/grub-mkdevicemap.c: ... here.
45375 * util/i386/pc/grub-probe.c: Moved to ...
45376 * util/grub-probe.c: ... here.
45378 2007-05-15 Robert Millan <rmh@aybabtu.com>
45380 * util/update-grub.in: Remove duplicated line in grub.cfg header
45383 2007-05-13 Robert Millan <rmh@aybabtu.com>
45385 * util/update-grub.in: Fix a few assumptions about the devices holding
45386 /, /boot and /boot/grub being the same.
45387 * util/grub.d/00_header.in: Likewise.
45388 * util/grub.d/10_hurd.in: Likewise.
45389 * util/grub.d/10_linux.in: Likewise.
45391 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
45392 patterns. Use that to define the `.old' suffix as older than `'.
45394 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
45396 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
45397 the grub.cfg header message.
45399 2007-05-11 Robert Millan <rmh@aybabtu.com>
45401 * util/update-grub.in: Create device.map if it doesn't already exist,
45402 before attempting to run grub-probe.
45403 Check for grub-probe and grub-mkdevicemap with the same code
45404 grub-install is using.
45407 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
45409 * Makefile.in: Add the datarootdir autoconf variable.
45411 2007-05-09 Robert Millan <rmh@aybabtu.com>
45413 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
45414 fail gracefully if dev->disk->partition == NULL.
45416 2007-05-07 Robert Millan <rmh@aybabtu.com>
45418 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
45419 determine partition map module.
45420 * util/i386/pc/grub-install.in: Use this feature to decide which
45421 partition module to load, instead of hardcoding pc and gpt.
45423 2007-05-07 Robert Millan <rmh@aybabtu.com>
45425 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
45426 source directory differs from build directory.
45428 2007-05-05 Robert Millan <rmh@aybabtu.com>
45430 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
45433 2007-05-05 Robert Millan <rmh@aybabtu.com>
45435 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
45437 2007-05-05 Robert Millan <rmh@aybabtu.com>
45439 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
45440 command-line arguments via ${GRUB_CMDLINE_LINUX}.
45442 2007-05-05 Robert Millan <rmh@aybabtu.com>
45444 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
45445 (grub_probe_SOURCES): Likewise.
45446 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
45447 GPT and initialize dos_part and bsd_part accordingly.
45448 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
45450 (main): Activate gpt module for use during partition identification,
45451 and deactivate it afterwards.
45452 * util/i386/pc/grub-install.in: Add gpt module to core.img.
45453 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
45454 partition identification, and deactivate it afterwards.
45456 2007-05-05 Robert Millan <rmh@aybabtu.com>
45458 * term/i386/pc/console.c (grub_console_fini): Call
45459 grub_term_set_current() before grub_term_unregister().
45461 2007-05-04 Robert Millan <rmh@aybabtu.com>
45463 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
45464 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
45465 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
45466 and update-grub_DATA.
45467 * conf/common.rmk: Build and install update-grub components.
45468 * conf/common.mk: Regenerate.
45469 * util/update-grub.in: New. Core of update-grub.
45470 * util/grub.d/00_header.in: New. Generates grub.cfg header.
45471 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
45472 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
45473 * util/grub.d/README: New. Document grub.d directory layout.
45475 2007-05-01 Robert Millan <rmh@aybabtu.com>
45477 * util/grub-emu.c: Move initialization functions
45478 grub_util_biosdisk_init() and grub_init_all() before
45479 grub_util_biosdisk_get_grub_dev(), which relies on them.
45481 2007-04-19 Robert Millan <rmh@aybabtu.com>
45483 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
45486 2007-04-18 Jerone Young <jerone@gmail.com>
45488 * kernel/elf.c: Add missing parenthesis for conditional statement
45491 2007-04-10 Jerone Young <jerone@gmail.com>
45493 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
45494 continue on and look for device node with real device name.
45496 2007-04-10 Jerone Young <jerone@gmail.com>
45498 * configure.ac: Add argument for autoconf to use transformation
45500 * Makefile.in: Add autoconf package transformation code.
45501 * util/i386/pc/grub-install.in: Likewise.
45502 * util/powerpc/ieee1275/grub-install.in: Likewise.
45504 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45506 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
45507 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
45508 (EXT2_REVISION): Likewise.
45509 (EXT2_INODE_SIZE): Likewise.
45510 (struct grub_ext2_block_group): Added a missing member
45512 (grub_ext2_read_inode): Divide by the inode size in a superblock
45513 instead of 128 to obtain INODES_PER_BLOCK.
45514 Use the macro EXT2_INODE_SIZE instead of directly using
45515 SBLOCK->INODE_SIZE.
45517 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45519 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
45520 superblock instead of the structure size to compute an
45521 offset. This fixes the problem that GRUB could not read a
45522 filesystem when inode size is different from 128-byte.
45524 2007-03-05 Marco Gerards <marco@gnu.org>
45526 * normal/main.c (read_config_file): When "menu" is not set, create
45527 an initial context.
45529 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45531 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
45532 (HEAP_LIMIT): New macro.
45533 (grub_claim_heap): Claim memory up to `heaplimit'.
45535 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45537 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
45538 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
45539 (_start): Likewise.
45540 (grub_arch_modules_addr): Return address after `_end'.
45541 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
45542 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
45543 (add_segments): Calculate `_end' from phdr size and location.
45544 (ALIGN_UP): Moved to ...
45545 * include/grub/misc.h: here.
45546 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
45548 (GRUB_IEEE1275_MODULE_BASE): Removed.
45550 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45552 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
45555 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45557 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
45559 (grub_elf64_load_hook_t): Likewise.
45560 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
45563 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45565 * kern/mm.c: Update copyright.
45566 (grub_mm_debug): Correct syntax error.
45567 (grub_mm_dump_free): New function.
45568 (grub_debug_free): Call `grub_free'.
45569 * include/grub/mm.h: Update copyright.
45570 (grub_mm_dump_free): Add declaration.
45572 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45574 * include/grub/ieee1275/ieee1275.h: Update copyright.
45575 * kern/powerpc/ieee1275/init.c: Likewise.
45576 * kern/powerpc/ieee1275/openfw.c: Likewise.
45578 * loader/powerpc/ieee1275/linux.c: Likewise.
45579 * include/grub/elfload.h: Likewise.
45580 * kern/elf.c: Likewise.
45581 (grub_elf32_load): Pass `base' and `size' parameters. Update all
45583 (grub_elf64_load): Likewise.
45584 (grub_elf32_load_segment): Move to a nested function.
45585 (grub_elf64_load_segment): Likewise.
45587 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45589 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
45591 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
45592 (grub_heap_len): Likewise.
45593 (HEAP_SIZE): New macro.
45594 (grub_claim_heap): New function.
45595 (grub_machine_init): Don't claim heap directly. Call
45597 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
45598 (grub_available_iterate): New function.
45600 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
45602 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
45603 * configure.ac: Use it for testing the HOST and TARGET compilers.
45605 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
45607 * Makefile.in (enable_grub_emu): New variable.
45608 * configure.ac (--enable-grub-emu): New option.
45609 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
45610 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
45611 * conf/i386-pc.rmk: Likewise.
45612 * conf/powerpc-ieee1275.rmk: Likewise.
45613 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
45615 2006-12-12 Marco Gerards <marco@gnu.org>
45617 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
45619 * kern/env.c (grub_env_unset): Don't free the member `value' when
45620 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
45623 * normal/main.c (current_menu): Removed.
45624 (free_menu): Unset the `menu' environment variable.
45625 (grub_normal_menu_addentry): Make use of the environment variable
45626 `menu', instead of using the global `current_menu'. Allocate
45627 memory for the sourcecode of this entry.
45628 (read_config_file): New argument `nested', changed all callers.
45629 Only in the case of a new context, initialize a new menu. Set the
45630 `menu' environment variable.
45631 (grub_normal_execute): Don't set and unset the environment
45632 variable `menu' here anymore. Only free the menu when leaving the
45635 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
45638 2006-12-11 Marco Gerards <marco@gnu.org>
45640 * normal/menu_entry.c (run): Fix off by one bug so the last line
45641 is executed. Move the loader check to outside the loop.
45643 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
45645 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
45647 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
45649 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
45650 the number of sectors. Reported by Andrey Shuvikov
45651 <mr_hyro@yahoo.com>.
45653 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
45655 * kern/disk.c (grub_disk_read): When there is a read error, always
45656 try to read only the necessary data.
45658 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
45660 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
45662 [GRUB_UTIL] (grub_raid_fini): Likewise.
45663 [GRUB_UTIL] (grub_lvm_init): Likewise.
45664 [GRUB_UTIL] (grub_lvm_fini): Likewise.
45665 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
45666 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
45667 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
45668 and grub_raid_fini().
45670 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
45672 * include/grub/types.h (__unused): Rename to UNUSED.
45673 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
45674 (grub_elf64_size): Likewise.
45676 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45678 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
45679 grub_error_push and grub_error_pop in the error-handling path.
45680 (grub_elf32_load_segment): Only call grub_file_read with non-zero
45683 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45685 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
45686 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45688 (kernel_elf_SOURCES): Likewise.
45689 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
45690 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
45691 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45692 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45693 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
45694 (elf_mod_SOURCES): New variable.
45695 (elf_mod_CFLAGS): Likewise.
45696 (elf_mod_LDFLAGS): Likewise.
45697 * include/grub/types.h (__unused): New macro.
45698 * include/grub/elfload.h: New file.
45699 * kern/elf.c: Likewise.
45700 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
45701 (ELF32_LOADMASK): New macro.
45702 (ELF64_LOADMASK): Likewise.
45703 (vmlinux): Removed.
45704 (grub_linux_load32): New function.
45705 (grub_linux_load64): Likewise.
45706 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
45707 Use grub_elf_t instead of grub_file_t.
45709 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
45711 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
45712 `catch_result' to struct set_color_args.
45714 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45716 * normal/menu.c: Include grub/script.h.
45717 * normal/menu_entry.c: Likewise.
45718 * include/grub/normal.h: Do not include grub/script.h.
45720 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45722 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
45724 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45726 * kern/disk.c (grub_disk_open): Print debug messages when opening a
45728 (grub_disk_close): Print debug messages when closing a disk.
45729 (grub_disk_read): Print debug messages when disk read fails.
45730 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
45732 * kern/partition.c: Include misc.h.
45733 (grub_partition_iterate): Print debug messages when detecting
45736 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45738 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
45740 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
45742 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
45744 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
45745 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
45747 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
45749 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
45750 instead of sizeof(lv). Patch by Michael Guntsche.
45752 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
45754 * disk/lvm.c: Rename VGS to VG_LIST.
45755 (grub_lvm_iterate): Change VGS->LV to VG-LV.
45756 (grub_lvm_open): Likewise.
45757 Thanks to Michael Guntsche for finding this bug.
45759 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45761 * configure.ac (AC_INIT): Bumped to 1.95.
45763 2006-10-14 Robert Millan <rmh@aybabtu.com>
45765 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
45766 with "/dev/.static/dev/md".
45768 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45770 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
45771 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
45772 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
45773 DRIVE_NAME are always freed.
45775 * util/i386/pc/biosdisk.c (make_device_name): Add one into
45776 DOS_PART, as a DOS partition is counted from one instead of zero
45777 now. Reported by Robert Millan.
45779 2006-10-14 Robert Millan <rmh@aybabtu.com>
45781 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
45782 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
45783 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
45784 string returned by grub_guess_root_device.
45785 * util/i386/pc/grub-setup.c: Likewise.
45786 * util/i386/pc/grub-probefs.c: Likewise.
45788 * util/i386/pc/grub-probefs.c: Rename to ...
45789 * util/i386/pc/grub-probe.c: ... this.
45790 * DISTLIST: Remove grub-probefs, add grub-probe.
45791 * conf/i386-efi.rmk: Likewise.
45792 * conf/i386-pc.rmk: Likewise.
45793 * util/i386/pc/grub-install.in: Likewise.
45795 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45796 choose which information we want to print.
45798 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45800 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45801 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45802 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45803 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45804 video/readers/tga.c and video/i386/pc/vbeutil.c.
45806 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45808 Added support for RAID and LVM.
45810 * disk/lvm.c: New file.
45811 * disk/raid.c: Likewise.
45812 * include/grub/lvm.h: Likewise.
45813 * include/grub/raid.h: Likewise.
45814 * include/grub/util/lvm.h: Likewise.
45815 * include/grub/util/raid.h: Likewise.
45816 * util/lvm.c: Likewise.
45817 * util/raid.c: Likewise.
45819 * include/grub/disk.h (grub_disk_dev_id): Add
45820 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45821 (grub_disk_get_size): New prototype.
45822 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45823 returns a partition.
45824 (grub_disk_get_size): New function.
45826 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45827 verbatim if grub_install_dos_part is -2.
45829 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45832 * util/i386/pc/grub-setup.c (setup): New argument
45833 MUST_EMBED. Force embedding of GRUB when the argument is
45834 true. Close FILE before returning.
45835 (main): Add support for RAID and LVM.
45837 * conf/common.rmk: Add RAID and LVM modules.
45838 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45840 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45842 * kern/misc.c (grub_strstr): New function.
45843 * include/grub/misc.h (grub_strstr): New prototype.
45845 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45847 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45849 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45851 * kern/misc.c (grub_strtoull): Guess the base only if not
45854 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
45856 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45859 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
45861 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45863 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45864 Remove `flags' argument. All callers changed.
45865 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45866 (IEEE1275_IHANDLE_INVALID): New variable.
45867 (IEEE1275_CELL_INVALID): New variable.
45868 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45869 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45870 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45871 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45872 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45873 codes from Open Firmware. All callers updated.
45874 (grub_ieee1275_next_property): Directly return Open Firmware return
45876 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45877 Standardize error checking from `grub_ieee1275_get_property'.
45878 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45879 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45881 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
45883 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45884 `instance_to_package_args' to `instance_to_path_args'.
45886 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45887 `grub_ieee1275_chosen'.
45889 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45890 `grub_ieee1275_interpret'.
45892 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
45894 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45896 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
45898 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45899 (__cmpdi): Likewise.
45901 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45902 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45905 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
45907 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45908 to type `grub_ssize_t'.
45909 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45911 2006-09-22 Marco Gerards <marco@gnu.org>
45913 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45916 2006-09-22 Marco Gerards <marco@gnu.org>
45918 * commands/echo.c: New file.
45920 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
45922 * conf/common.rmk (echo_mod_SOURCES): New variable.
45923 (echo_mod_CFLAGS): Likewise.
45924 (echo_mod_LDFLAGS): Likewise.
45926 2006-09-22 Marco Gerards <marco@gnu.org>
45928 * normal/main.c (get_line): Malloc memory instead of using
45929 preallocated memory. Removed the arguments `cmdline' and
45930 `max_len'. Updated all callers.
45932 2006-09-22 Marco Gerards <marco@gnu.org>
45934 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
45935 (normal_mod_DEPENDENCIES): Likewise.
45937 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
45938 (normal_mod_DEPENDENCIES): Likewise.
45940 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
45942 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
45944 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
45946 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
45947 (normal_mod_DEPENDENCIES): Likewise.
45948 * conf/i386-pc.mk: Regenerate.
45949 * conf/i386-efi.mk: Likewise
45950 * conf/common.mk: Likewise.
45951 * conf/powerpc-ieee1275.mk: Likewise.
45952 * conf/sparc64-ieee1275.mk: Likewise.
45954 2006-09-22 Robert Millan <rmh@aybabtu.com>
45956 Sync with i386 version.
45957 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
45958 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
45960 2006-09-21 Robert Millan <rmh@aybabtu.com>
45962 Import from GRUB Legacy (lib/device.c):
45963 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
45964 (init_device_map) [__linux__]: Add support for I2O devices.
45966 2006-09-14 Marco Gerards <marco@gnu.org>
45968 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
45971 2006-09-14 Robert Millan <rmh@aybabtu.com>
45973 * util/i386/pc/grub-install.in: Skip menu.lst when removing
45976 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
45978 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
45979 before adding it to device.map.
45981 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
45983 * genmk.rb: Let GCC generate dependencies the first time it
45984 compiles a file; using the -MD option.
45985 * conf/common.mk: Regenerate.
45986 * conf/i386-pc.mk: Likewise.
45987 * conf/i386-efi.mk: Likewise.
45988 * conf/powerpc-ieee1275.mk: Likewise.
45989 * conf/sparc64-ieee1275.mk: Likewise.
45991 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
45993 Move the prototypes of grub_setjmp and grub_longjmp to
45994 cpu/setjmp.h, so that each architecture may specify different
45997 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
45998 (grub_longjmp): Likewise.
45999 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
46000 (grub_longjmp): Likewise.
46001 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
46002 (grub_longjmp): Likewise.
46004 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
46005 [!GRUB_UTIL] (grub_longjmp): Removed.
46007 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
46009 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
46010 "color!" method does not return any value.
46012 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46014 * include/grub/bitmap.h: New file.
46016 * include/grub/i386/pc/vbeutil.h: Likewise.
46018 * video/bitmap.c: Likewise.
46020 * video/readers/tga.c: Likewise.
46022 * video/i386/pc/vbeutil.c: Likewise.
46024 * commands/videotest.c: Code cleanup and updated to reflect to new
46027 * term/gfxterm.c: Likewise.
46029 * video/video.c: Likewise.
46031 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
46032 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
46033 (bitmap_mod_SOURCES): New entry.
46034 (bitmap_mod_CFLAGS): Likewise.
46035 (bitmap_mod_LDFLAGS): Likewise.
46036 (tga_mod_SOURCES): Likewise.
46037 (tga_mod_CFLAGS): Likewise.
46038 (tga_mod_LDFLAGS): Likewise.
46040 * include/grub/video.h (grub_video_blit_operators): New enum type.
46041 (grub_video_render_target): Changed as forward declaration and moved
46042 actual definition to be video driver specific.
46043 (grub_video_adapter.blit_bitmap): Added blitting operator.
46044 (grub_video_adapter.blit_render_target): Likewise.
46045 (grub_video_blit_bitmap): Likewise.
46046 (grub_video_blit_render_target): Likewise.
46048 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
46049 driver specific render target definition.
46050 (grub_video_vbe_map_rgba): Added driver internal helper.
46051 (grub_video_vbe_unmap_color): Updated to use
46052 grub_video_i386_vbeblit_info.
46053 (grub_video_vbe_get_video_ptr): Likewise.
46055 * include/grub/i386/pc/vbeblit.h
46056 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
46057 grub_video_i386_vbeblit_info.
46058 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
46059 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
46060 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
46061 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
46062 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
46063 (grub_video_i386_vbeblit_index_index): Likewise.
46064 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
46065 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
46066 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
46067 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
46069 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
46072 * video/i386/pc/vbeblit.c: Updated to reflect changes on
46073 include/grub/i386/pc/vbeblit.h.
46075 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
46076 Updated to use grub_video_i386_vbeblit_info.
46077 (grub_video_i386_vbefill_R8G8B8): Likewise.
46078 (grub_video_i386_vbefill_index): Likewise.
46079 (grub_video_i386_vbefill): Added generic filler.
46081 * video/i386/pc/vbefill.c: Updated to reflect changes on
46082 include/grub/i386/pc/vbefill.h.
46084 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
46085 grub_video_i386_vbeblit_info.
46086 (grub_video_vbe_unmap_color): Likewise.
46087 (grub_video_vbe_blit_glyph): Likewise.
46088 (grub_video_vbe_scroll): Likewise.
46089 (grub_video_vbe_draw_pixel): Removed function.
46090 (grub_video_vbe_get_pixel): Likewise.
46091 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
46092 updated code to use it.
46093 (common_blitter): Added common blitter for render target and bitmap.
46094 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
46095 (grub_video_vbe_blit_render_target): Likewise.
46097 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
46099 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
46100 is in text mode if there is no console control protocol instance
46103 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46105 * include/grub/video.h: Code cleanup.
46107 * include/grub/i386/pc/vbe.h: Likewise.
46109 * video/i386/pc/vbe.c: Likewise.
46111 * video/i386/pc/vbeblit.c: Likewise.
46113 * video/i386/pc/vbefill.c: Likewise.
46115 * video/video.c: Likewise. Also added more comments.
46117 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46119 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
46120 (struct grub_biosdisk_dap): Likewise.
46122 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
46123 linkage settings for all functions.
46125 2006-07-12 Marco Gerards <marco@gnu.org>
46127 * configure.ac (--enable-mm-debug): Fix typo.
46129 * genkernsyms.sh.in: Use proper quoting for `CC'.
46131 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
46133 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
46134 (normal_mod_ASFLAGS): Remove "-m32".
46136 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
46138 * util/misc.c: Include config.h.
46139 [!HAVE_MEMALIGN]: Do not include malloc.h.
46140 (grub_memalign): Use posix_memalign, if present. Then, use
46141 memalign, if present. Otherwise, emit an error.
46143 * util/grub-emu.c: Do not include malloc.h.
46145 * include/grub/util/misc.h: Include unistd.h. This is required for
46146 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
46147 D. Eades III <hde@foobar-qux.org>.
46149 * configure.ac (AC_GNU_SOURCE): Added.
46150 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
46153 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
46155 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
46156 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
46158 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
46160 * include/grub/types.h (grub_host_addr_t): Rename to
46161 grub_target_addr_t.
46162 (grub_host_off_t): Rename to grub_target_off_t.
46163 (grub_host_size_t): Rename to grub_target_size_t.
46164 (grub_host_ssize_t): Rename to grub_target_ssize_t.
46165 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
46167 * include/grub/kernel.h (struct grub_module_header): Change type
46168 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
46169 (grub_module_info): Likewise.
46171 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46173 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
46174 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
46175 Velazquez <jesus.velazquez@gmail.com>.
46177 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46179 Count partitions from 1 instead of 0 in the string representation
46180 of partitions. Still use 0-based internally.
46182 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
46183 (sun_partition_map_iterate): Use grub_partition_t instead of
46184 struct grub_partition *. Cast DESC->START_CYLINDER to
46185 grub_uint64_t after converting the endian.
46186 (sun_partition_map_probe): Subtract 1 for PARTNUM.
46187 (sun_partition_map_get_name): Add 1 to P->INDEX.
46189 * partmap/pc.c (grub_partition_parse): Subtract 1 for
46191 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
46193 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
46194 zero instead of one.
46195 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
46196 (gpt_partition_map_get_name): Add 1 into P->INDEX.
46198 * partmap/apple.c (apple_partition_map_iterate): Change the type
46199 of POS to unsigned.
46200 (apple_partition_map_probe): Subtract 1 for PARTNUM.
46201 (apple_partition_map_get_name): Add 1 into P->INDEX.
46203 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
46204 of POS to unsigned.
46205 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
46206 calculate the offset of a partition.
46207 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
46208 (amiga_partition_map_get_name): Add 1 into P->INDEX.
46210 * partmap/acorn.c (acorn_partition_map_find): Change the type of
46211 SECTOR to grub_disk_addr_t.
46212 (acorn_partition_map_iterate): Likewise.
46213 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
46214 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
46216 (acorn_partition_map_get_name): Add 1 into P->INDEX.
46218 * kern/i386/pc/init.c (make_install_device): Add 1 into
46219 GRUB_INSTALL_DOS_PART.
46221 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
46224 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46226 Clean up the code to support 64-bit addressing in disks and
46227 files. This change is not enough for filesystems yet.
46229 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
46230 type of "start" to grub_uint64_t.
46231 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
46232 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
46233 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
46236 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
46237 to grub_disk_addr_t.
46239 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
46242 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46244 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
46247 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
46249 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
46251 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
46253 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
46254 to grub_off_t, to detect an error from grub_file_seek.
46255 (grub_multiboot_load_elf32): Likewise.
46257 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
46258 maximum unsigned long value when an overflow is detected.
46259 (grub_strtoull): New function.
46260 (grub_divmod64): Likewise.
46261 (grub_lltoa): use grub_divmod64.
46263 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
46265 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
46266 the pointer to next character. Use grub_strtoull instead of
46268 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
46269 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
46272 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
46273 return value is signed.
46274 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
46275 test if OFFSET is less than zero, as OFFSET is unsigned now.
46277 * kern/disk.c (struct grub_disk_cache): Change the type of
46278 "sector" to grub_disk_addr_t.
46279 (grub_disk_cache_get_index): Change the type of SECTOR to
46280 grub_disk_addr_t. Calculate the hash with SECTOR casted to
46281 unsigned after shifting.
46282 (grub_disk_cache_invalidate): Change the type of SECTOR to
46284 (grub_disk_cache_unlock): Likewise.
46285 (grub_disk_cache_store): Likewise.
46286 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
46287 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
46288 grub_disk_addr_t and grub_uint64_t, respectively.
46289 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
46290 body, as the value of OFFSET is tweaked by
46291 grub_disk_check_range. Change the types of START_SECTOR, LEN and
46292 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
46294 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
46295 body, as the value of OFFSET is tweaked by
46296 grub_disk_check_range. Change the types of LEN and N to
46299 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
46300 and "saved_offset" to grub_off_t.
46301 (test_header): Cast BUF to char *.
46302 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
46304 (grub_gzio_read): Change the types of OFFSET and SIZE to
46305 grub_off_t and grub_size_t, respectively.
46307 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
46309 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
46310 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
46311 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
46312 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
46313 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
46315 * include/grub/types.h (grub_off_t): Unconditionally set to
46317 (grub_disk_addr_t): Changed to grub_uint64_t.
46319 * include/grub/partition.h (struct grub_partition): Change the
46320 types of "start", "len" and "offset" to grub_disk_addr_t,
46321 grub_uint64_t and grub_disk_addr_t, respectively.
46322 (grub_partition_get_start): Return grub_disk_addr_t.
46323 (grub_partition_get_len): Return grub_uint64_t.
46325 * include/grub/misc.h (grub_strtoull): New prototype.
46326 (grub_divmod64): Likewise.
46328 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
46329 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
46330 grub_off_t, respectively.
46331 All callers and references changed.
46333 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
46334 grub_size_t in "read".
46335 All callers and references changed.
46337 * include/grub/file.h (struct grub_file): Change the types of
46338 "offset" and "size" to grub_off_t and grub_off_t,
46339 respectively. Change the type of SECTOR to grub_disk_addr_t in
46341 (grub_file_read): Change the type of LEN to grub_size_t.
46342 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
46344 (grub_file_size): Return grub_off_t.
46345 (grub_file_tell): Likewise.
46346 All callers and references changed.
46348 * include/grub/disk.h (struct grub_disk_dev): Change the types of
46349 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
46351 (struct grub_disk): Change the type of "total_sectors" to
46352 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
46354 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
46355 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
46356 (grub_disk_write): Likewise.
46357 All callers and references changed.
46359 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
46360 char * for grub_strncmp to silence gcc.
46361 (grub_iso9660_mount): Likewise.
46362 (grub_iso9660_mount): Likewise.
46363 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
46365 (grub_iso9660_iterate_dir): Likewise.
46366 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
46368 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
46369 LEN to grub_disk_addr_t and grub_size_t, respectively.
46371 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46373 * fs/jfs.c (grub_jfs_read_file): Likewise.
46375 * fs/minix.c (grub_jfs_read_file): Likewise.
46377 * fs/sfs.c (grub_jfs_read_file): Likewise.
46379 * fs/ufs.c (grub_jfs_read_file): Likewise.
46381 * fs/xfs.c (grub_jfs_read_file): Likewise.
46383 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
46384 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
46387 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
46388 BLKNR to -1 instead of returning GRUB_ERRNO.
46389 (grub_ext2_read_file): Change the types of SECTOR and
46390 LEN to grub_disk_addr_t and grub_size_t, respectively.
46392 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
46393 LEN to grub_disk_addr_t and grub_size_t, respectively.
46395 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
46398 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
46399 string. Do not cast SECTOR explicitly.
46401 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
46402 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
46403 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
46404 grub_disk_addr_t and grub_size_t, respectively. If the sector is
46405 over 2TB and LBA mode is not supported, raise an error.
46406 (get_safe_sectors): New function.
46407 (grub_biosdisk_read): Use get_safe_sectors.
46408 (grub_biosdisk_write): Likewise.
46410 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
46411 (grub_efidisk_write): Likewise.
46413 * disk/loopback.c (delete_loopback): Cosmetic changes.
46414 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
46416 (grub_loopback_open): Likewise.
46417 (grub_loopback_read): Likewise. Also, change the type of POS to
46418 grub_off_t, and fix the usage of grub_memset.
46420 * commands/i386/pc/play.c: Include grub/machine/time.h.
46422 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
46425 * commands/configfile.c: Include grub/env.h.
46427 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
46428 GRUB_ERRNO directly instead. Change the type of POS to
46429 grub_off_t. Follow the coding standard.
46431 * commands/blocklist.c: Include grub/partition.h.
46432 (grub_cmd_blocklist): Return an error if the underlying device is
46433 not a disk. Take the starting sector of a partition into account,
46434 if a partition is used.
46436 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
46438 (lba_mode): Support 64-bit addresses.
46439 (chs_mode): Likewise.
46440 (copy_buffer): Adapted to the new offsets of a length field and a
46442 (blocklist_default_start): Allocate 64-bit space.
46444 * boot/i386/pc/boot.S (force_lba): Removed.
46445 (boot_drive): Moved to under KERNEL_SECTOR.
46446 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
46448 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
46450 (lba_mode): Refactored to support a 64-bit address. More size
46452 (setup_sectors): Likewise.
46454 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46456 * DISTLIST: Added include/grub/i386/linux.h. Removed
46457 include/grub/i386/pc/linux.h
46459 * configure.ac (AC_INIT): Bumped to 1.94.
46461 * config.guess: Updated from gnulib.
46462 * config.sub: Likewise.
46463 * install-sh: Likewise.
46464 * mkinstalldirs: Likewise.
46466 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46468 * conf/common.rmk (grub_modules_init.lst): Depended on
46469 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
46472 * genmk.rb (PModule::rule): Reverted the previous change.
46474 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46476 * conf/common.rmk (grub_modules_init.lst): Depends on
46477 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
46478 that the target does not exist before producing.
46479 (grub_modules_init.h): Remove the target before generating.
46480 (grub_emu_init.c): Likewise.
46482 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
46484 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
46486 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
46487 for the target-specific tests. Make sure that we also have the
46488 up-to-date target variables for those tests.
46490 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46492 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
46493 (PModule::rule): Likewise.
46495 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46497 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
46498 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
46499 target-specific flags should be prefixed.
46500 (PModule::rule): Likewise.
46502 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
46504 * configure.ac (CMP): Check if cmp is available explicitly.
46506 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
46508 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
46509 (target_cpu): New variable.
46510 (pkglibdir): Use target_cpu instead of host_cpu.
46512 * util/i386/pc/grub-install.in (host_cpu): Removed.
46513 (target_cpu): New variable.
46514 (pkglibdir): Use target_cpu instead of host_cpu.
46516 * util/genmoddep.c: Removed.
46518 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
46519 instead of GRUB_HOST_SIZEOF_VOID_P.
46520 * kern/dl.c: Likewise.
46522 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
46524 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46525 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46526 (GRUB_TARGET_SIZEOF_LONG): ... this.
46527 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46528 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46529 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46531 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46532 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46533 (GRUB_TARGET_SIZEOF_LONG): ... this.
46534 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46535 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46536 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46538 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46539 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46540 (GRUB_TARGET_SIZEOF_LONG): ... this.
46541 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46542 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46544 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
46545 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
46546 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
46547 instead of GRUB_HOST_SIZEOF_LONG.
46548 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
46549 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
46550 GRUB_CPU_WORDS_BIGENDIAN.
46551 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
46552 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
46555 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
46556 (genmoddep_SOURCES): Likewise.
46557 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
46558 (genmoddep_SOURCES): Likewise.
46559 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
46560 (genmoddep_SOURCES): Likewise.
46561 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
46563 (genmoddep_SOURCES): Likewise.
46565 * genmoddep.awk: New file.
46567 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
46568 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
46569 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
46570 (PModule::rule): Likewise.
46571 (Program::rule): Likewise.
46572 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
46573 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
46576 * configure.ac: Rewritten intensively to use host and target
46577 instead of build and host, respectively.
46579 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
46580 (host_cpu): Removed.
46581 (target_cpu): New variable.
46582 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
46583 (BUILD_CC): Removed.
46584 (BUILD_CFLAGS): Likewise.
46585 (BUILD_CPPFLAGS): Likewise.
46586 (TARGET_CC): New variable.
46587 (TARGET_CFLAGS): Likewise.
46588 (TARGET_CPPFLAGS): Likewise.
46589 (TARGET_LDFLAGS): Likewise.
46591 (include): Use target_cpu instead of host_cpu.
46592 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
46594 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
46596 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
46598 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
46599 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
46600 field 'false' to 'exec_on_false'.
46601 (grub_script_create_cmdif): Renamed argument names to reflect above
46604 * normal/execute.c (grub_script_execute_cmdif): Likewise.
46606 * normal/script.c (grub_script_create_cmdif): Likewise.
46608 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
46610 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
46612 (grub_hfsplus_btree_recptr): Likewise.
46613 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
46614 FILEBLOCK both to pass a block number and store next block
46616 (grub_hfsplus_read_block): Rewritten heavily to support an extent
46617 overflow file correctly. Specify errors appropriately, because
46618 fshelp expects that GRUB_ERRNO is set when fails. Reuse
46619 grub_hfsplus_btree_recptr to get the pointer to a found key.
46620 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
46623 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
46625 (_linux_mod_SOURCES): New variable.
46626 (_linux_mod_CFLAGS): Likewise.
46627 (_linux_mod_LDFLAGS): Likewise.
46628 (linux_mod_SOURCES): Likewise.
46629 (linux_mod_CFLAGS): Likewise.
46630 (linux_mod_LDFLAGS): Likewise.
46632 * DISTLIST: Added loader/i386/efi/linux.c,
46633 loader/i386/efi/linux_normal.c and
46634 include/grub/i386/efi/loader.h.
46636 * loader/i386/efi/linux.c: New file.
46637 * loader/i386/efi/linux_normal.c: Likewise.
46638 * include/grub/i386/efi/loader.h: Likewise.
46640 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
46642 * commands/blocklist.c: New file.
46644 * DISTLIST: Added commands/blocklist.c.
46646 * term/efi/console.c (grub_console_highlight_color): Use a lighter
46647 color for the background, and a darker color for the foreground.
46648 (grub_console_checkkey): Return READ_KEY.
46649 (grub_console_cls): Set the background to
46650 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
46652 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
46654 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
46655 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
46657 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
46660 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
46661 BG. The spec is wrong again.
46663 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
46665 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
46667 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46668 commands/blocklist.c.
46669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46671 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
46672 (blocklist_mod_SOURCES): New variable.
46673 (blocklist_mod_CFLAGS): Likewise.
46674 (blocklist_mod_LDFLAGS): Likewise.
46676 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
46678 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
46680 (lba_mode): Use %eax more intensively to reduce the code size.
46682 2006-05-20 Marco Gerards <marco@gnu.org>
46684 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
46686 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
46688 (script): Accept leading newlines.
46689 (newlines): New rule to describe 0 or more newlines.
46690 (commands): Accept `command' with trailing newline. Fixed the
46691 order in which arguments were passed to `grub_script_add_cmd'.
46692 Accept commands separated by newlines.
46693 (function): Changed to accept newlines.
46694 (menuentry) Rewritten.
46696 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
46697 front of the list, instead of to the end.
46699 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
46701 * util/i386/pc/grub-install.in (bindir): New variable.
46702 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
46703 Shaver <lbgwjl@gmail.com>.
46705 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
46707 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
46708 grub/machine/linux.h
46709 * loader/i386/pc/linux.c: Likewise.
46711 * include/grub/i386/pc/linux.h: Moved to ...
46712 * include/grub/i386/linux.h: ... here.
46714 * include/grub/i386/linux.h (struct linux_kernel_params): New
46717 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
46719 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
46721 (grub_video_vbe_blit_glyph): Likewise.
46722 (grub_video_vbe_blit_bitmap): Likewise.
46723 (grub_video_vbe_blit_render_target): Likewise.
46725 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
46727 * configure.ac (--with-platform): Properly quote the square
46730 2006-05-08 Marco Gerards <marco@gnu.org>
46732 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
46734 (kernel_elf_HEADERS): ...to this. Updated all users.
46735 (grubof_symlist.c): Renamed from this...
46736 (kernel_elf_symlist.c): ...to this. Updated all users.
46737 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46738 (grubof_SOURCES): Renamed from this...
46739 (kernel_elf_SOURCES): ...to this.
46740 (grubof_HEADERS): Renamed from this...
46741 (kernel_elf_HEADERS): ...to this.
46742 (grubof_CFLAGS): Renamed from this...
46743 (kernel_elf_CFLAGS): ...to this.
46744 (grubof_ASFLAGS): Renamed from this...
46745 (kernel_elf_ASFLAGS): ...to this.
46746 (grubof_LDFLAGS): Renamed from this...
46747 (kernel_elf_LDFLAGS): ...to this.
46749 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
46751 (kernel_elf_HEADERS): ...to this. Updated all users.
46752 (grubof_symlist.c): Renamed from this...
46753 (kernel_elf_symlist.c): ...to this. Updated all users.
46754 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46755 (grubof_SOURCES): Renamed from this...
46756 (kernel_elf_SOURCES): ...to this.
46757 (grubof_HEADERS): Renamed from this...
46758 (kernel_elf_HEADERS): ...to this.
46759 (grubof_CFLAGS): Renamed from this...
46760 (kernel_elf_CFLAGS): ...to this.
46761 (grubof_ASFLAGS): Renamed from this...
46762 (kernel_elf_ASFLAGS): ...to this.
46763 (grubof_LDFLAGS): Renamed from this...
46764 (kernel_elf_LDFLAGS): ...to this.
46766 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
46767 `kernel.elf' instead of `grubof'.
46769 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
46771 Add --with-platform to configure. Use pkglibdir instead of
46772 pkgdatadir. This is reported by Roger Leigh.
46774 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
46775 (host_vendor): Likewise.
46776 (host_os): Likewise.
46777 (pkgdatadir): Likewise.
46778 (platform): New variable.
46779 (pkglibdir): Likewise.
46780 Use PKGLIBDIR instead of PKGDATADIR.
46782 * util/i386/pc/grub-install.in (datadir): Removed.
46783 (host_vendor): Likewise.
46784 (host_os): Likewise.
46785 (pkgdatadir): Likewise.
46786 (platform): New variable.
46787 (pkglibdir): Likewise.
46788 Use PKGLIBDIR instead of PKGDATADIR.
46790 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46791 instead of GRUB_DATADIR.
46793 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46795 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46798 * configure.ac (--with-platform): New option.
46799 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46801 * Makefile.in: Include a makefile based on PLATFORM instead of
46803 (pkgdatadir): Not appended by the machine type.
46804 (pkglibdir): Appended by the machine type.
46805 (host_vendor): Removed.
46806 (platform): New variable.
46807 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46808 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46809 (uninstall): Likewise.
46811 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46813 Use the environment context in the menu. Remove the commands
46814 "default" and "timeout", and use variables instead.
46816 * normal/menu.c: Include grub/env.h.
46817 (print_entry): Cast TITLE to silence gcc.
46818 (get_timeout): New function.
46819 (set_timeout): Likewise.
46820 (get_entry_number): Likewise.
46821 (run_menu): Use a default entry, a fallback entry and a timeout
46822 in the environment variables "default", "fallback" and
46823 "timeout". Also, tweak the default entry if it is not within the
46824 current menu entries.
46825 (grub_menu_run): Use a fallback entry in the environment variable
46828 * normal/main.c (read_config_file): Do not initialize
46829 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46831 (grub_normal_execute): Use a data slot to store the menu.
46833 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46834 fallback_entry and timeout.
46835 (struct grub_menu_list): Removed.
46836 (grub_menu_list_t): Likewise.
46837 (struct grub_context): Likewise.
46838 (grub_context_t): Likewise.
46839 (grub_context_get): Likewise.
46840 (grub_context_get_current_menu): Likewise.
46841 (grub_context_push_menu): Likewise.
46842 (grub_context_pop_menu): Likewise.
46843 (grub_default_init): Likewise.
46844 (grub_default_fini): Likewise.
46845 (grub_timeout_init): Likewise.
46846 (grub_timeout_fini): Likewise.
46848 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46850 (normal_mod_SOURCES): Removed normal/context.c.
46852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46853 commands/default.c, commands/timeout.c and normal/context.c.
46854 (normal_mod_SOURCES): Removed normal/context.c.
46856 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46857 commands/timeout.c and normal/context.c.
46858 (normal_mod_SOURCES): Removed normal/context.c.
46860 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46861 commands/default.c, commands/timeout.c and normal/context.c.
46862 (normal_mod_SOURCES): Removed normal/context.c.
46864 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46866 (default_mod_SOURCES): Removed.
46867 (default_mod_CFLAGS): Likewise.
46868 (default_mod_LDFLAGS): Likewise.
46869 (timeout_mod_SOURCES): Removed.
46870 (timeout_mod_CFLAGS): Likewise.
46871 (timeout_mod_LDFLAGS): Likewise.
46873 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46876 * commands/default.c: Removed.
46877 * commands/timeout.c: Likewise.
46878 * normal/context.c: Likewise.
46880 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46882 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46884 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46886 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46887 "next" to "prev" for readability.
46888 (struct grub_env_sorted_var): New struct.
46889 (grub_env_context): Renamed to ...
46890 (initial_context): ... this.
46891 (grub_env_var_context): Renamed to ...
46892 (current_context): ... this.
46893 (grub_env_find): Look only at CURRENT_CONTEXT.
46894 (grub_env_context_open): Rewritten to copy exported variables from
46896 (grub_env_context_close): Rewritten according to the new
46897 scheme. Also, add an assertion to prevent the initial context from
46899 (grub_env_insert): Removed the code for the sorted list.
46900 (grub_env_remove): Likewise.
46901 (grub_env_export): Simply mark the variable with
46902 GRUB_ENV_VAR_GLOBAL.
46903 (grub_env_set): A cosmetic change for naming consistency.
46904 (grub_env_get): Likewise.
46905 (grub_env_unset): Likewise.
46906 (grub_env_iterate): Rewritten to sort variables within this
46908 (grub_register_variable_hook): Fixed for naming consistency. Call
46909 grub_env_find again, only if NAME is not found at the first time.
46910 (mangle_data_slot_name): New function.
46911 (grub_env_set_data_slot): Likewise.
46912 (grub_env_get_data_slot): Likewise.
46913 (grub_env_unset_data_slot): Likewise.
46915 * include/grub/env.h (grub_env_var_type): New enum.
46916 (GRUB_ENV_VAR_LOCAL): New constant.
46917 (GRUB_ENV_VAR_GLOBAL): Likewise.
46918 (GRUB_ENV_VAR_DATA): Likewise.
46919 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
46921 (grub_env_set): Replace VAR with NAME for consistency.
46922 (grub_register_variable_hook): Likewise.
46923 (grub_env_export): Specify the name of the argument.
46924 (grub_env_set_data_slot): New prototype.
46925 (grub_env_get_data_slot): Likewise.
46926 (grub_env_unset_data_slot): Likewise.
46928 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46930 Extend the loader so that GRUB can accept a loader which comes
46931 back to GRUB when a loaded image exits. Also, this change adds
46932 support for a chainloader on EFI.
46934 * term/efi/console.c: Include grub/misc.h.
46935 (grub_console_checkkey): Display a scan code on the top for
46936 debugging. This will be removed once the EFI port gets stable.
46937 Correct the scan code mapping.
46939 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
46940 allocate memory from larger regions, in order to reduce the number
46941 of allocated regions. Otherwise, the MacOSX loader panics.
46942 (filter_memory_map): Avoid less than 1MB for compatibility with
46944 (add_memory_regions): Allocate from the tail of a region, if
46945 possible, to avoid allocating a region near to 1MB, for the MacOSX
46948 * kern/efi/init.c (grub_efi_set_prefix): Specify
46949 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
46951 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
46952 argument IMAGE_HANDLE and specify it to get a loaded image.
46953 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
46954 grub_efi_get_loaded_image.
46955 (grub_efi_get_filename): Divide the length by the size of
46957 (grub_efi_get_device_path): New function.
46958 (grub_efi_print_device_path): Print End Device Path nodes. Divide
46959 the length by the size of grub_efi_char16_t for a file path device
46962 * kern/loader.c (grub_loader_noreturn): New variable.
46963 (grub_loader_set): Accept a new argument NORETURN. Set
46964 GRUB_LOADER_NORETURN to NORETURN.
46965 All callers changed.
46966 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
46969 * include/grub/efi/efi.h (grub_efi_get_device_path): New
46971 (grub_efi_get_loaded_image): Take an argument to specify an image
46974 * include/grub/loader.h (grub_loader_set): Added one more argument
46977 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
46978 instead of grub_efi_open_protocol.
46979 (grub_efidisk_get_device_name): Likewise.
46980 (grub_efidisk_close): Print a newline.
46981 (grub_efidisk_get_device_handle): Fixed to use
46982 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
46983 GRUB_EFI_DEVICE_PATH_TYPE.
46985 * disk/efi/efidisk.c (device_path_guid): Moved to ...
46986 * kern/efi/efi.c (device_path_guid): ... here.
46988 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
46990 (kernel_mod_HEADERS): Added efi/disk.h.
46991 (_chain_mod_SOURCES): New variable.
46992 (_chain_mod_CFLAGS): Likewise.
46993 (_chain_mod_LDFLAGS): Likewise.
46994 (chain_mod_SOURCES): Likewise.
46995 (chain_mod_CFLAGS): Likewise.
46996 (chain_mod_LDFLAGS): Likewise.
46998 * DISTLIST: Added include/grub/efi/chainloader.h,
46999 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
47001 * include/grub/efi/chainloader.h: New file.
47002 * loader/efi/chainloader.c: Likewise.
47003 * loader/efi/chainloader_normal.c: Likewise.
47005 2006-04-30 Marco Gerards <marco@gnu.org>
47007 * commands/configfile.c (grub_cmd_source): New function.
47008 (GRUB_MOD_INIT): Register the commands `source' and `.'.
47009 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
47011 2006-04-30 Marco Gerards <marco@gnu.org>
47013 * normal/execute.c (grub_script_execute_cmd): Change the return
47014 type to `grub_err_t'. Correctly return the error.
47015 (grub_script_execute_cmdline): In case a command line is not a
47016 command or a function, try to interpret it as an assignment.
47018 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
47020 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
47021 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
47022 skip a node whose name is obviously invalid as UTF-16,
47023 i.e. contains a NUL character. Stop the iteration when the last
47024 directory entry is found. Instead of using the return value of
47025 grub_hfsplus_btree_iterate_node, store the value in RET and use
47026 it, because the iterator can be stopped by the last directory
47029 2006-04-30 Marco Gerards <marco@gnu.org>
47031 * include/grub/env.h (grub_env_export): New prototype. Reported
47032 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
47034 2006-04-30 Marco Gerards <marco@gnu.org>
47036 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
47037 size of the extents in a catalog file record.
47039 2006-04-29 Marco Gerards <marco@gnu.org>
47041 * commands/configfile.c (grub_cmd_configfile): Execute the
47042 configfile within its own context.
47044 * include/grub/env.h (grub_env_context_open): New prototype.
47045 (grub_env_context_close): Likewise.
47047 * kern/env.c (grub_env): Removed.
47048 (grub_env_sorted): Likewise.
47049 (grub_env_context): New variable.
47050 (grub_env_var_context): Likewise.
47051 (grub_env_find): Search both the active context and the global
47053 (grub_env_context_open): New function.
47054 (grub_env_context_close): Likewise.
47055 (grub_env_insert): Likewise.
47056 (grub_env_remove): Likewise.
47057 (grub_env_export): Likewise.
47058 (grub_env_set): Changed to use helper functions to avoid code
47060 (grub_env_iterate): Rewritten so both the current context and the
47061 global context are being used.
47063 * normal/command.c (export_command): New function.
47064 (grub_command_init): Register the `export' function.
47066 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
47068 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
47069 explicitly to suppress gcc's warnings.
47070 * fs/fat.c (grub_fat_find_dir): Likewise.
47071 (grub_fat_label): Likewise.
47072 * fs/xfs.c (grub_xfs_read_inode): Likewise.
47073 (grub_xfs_mount): Likewise.
47074 (grub_xfs_label): Likewise.
47075 * fs/affs.c (grub_affs_mount): Likewise.
47076 (grub_affs_label): Likewise.
47077 (grub_affs_iterate_dir): Likewise.
47078 * fs/sfs.c (grub_sfs_mount): Likewise.
47079 (grub_sfs_iterate_dir): Likewise.
47080 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
47081 * fs/hfs.c (grub_hfs_mount): Likewise.
47082 (grub_hfs_cmp_catkeys): Likewise.
47083 (grub_hfs_find_dir): Likewise.
47084 (grub_hfs_dir): Likewise.
47085 (grub_hfs_label): Likewise.
47086 * fs/jfs.c (grub_jfs_mount): Likewise.
47087 (grub_jfs_opendir): Likewise.
47088 (grub_jfs_getent): Likewise.
47089 (grub_jfs_lookup_symlink): Likewise.
47090 (grub_jfs_label): Likewise.
47091 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
47092 (grub_hfsplus_iterate_dir): Likewise.
47093 (grub_hfsplus_btree_iterate_node): Made static.
47095 * util/grub-emu.c (prefix): New variable.
47096 (grub_machine_set_prefix): New function.
47097 (main): Do not set the environment variable "prefix" here. Only
47098 set PREFIX, which is used later by grub_machine_set_prefix.
47100 * include/grub/video.h: Do not include grub/symbol.h.
47101 (grub_video_register): Not exported. This symbol is not defined in
47103 (grub_video_unregister): Likewise.
47104 (grub_video_iterate): Likewise.
47105 (grub_video_setup): Likewise.
47106 (grub_video_restore): Likewise.
47107 (grub_video_get_info): Likewise.
47108 (grub_video_get_blit_format): Likewise.
47109 (grub_video_set_palette): Likewise.
47110 (grub_video_get_palette): Likewise.
47111 (grub_video_set_viewport): Likewise.
47112 (grub_video_get_viewport): Likewise.
47113 (grub_video_map_color): Likewise.
47114 (grub_video_map_rgb): Likewise.
47115 (grub_video_map_rgba): Likewise.
47116 (grub_video_fill_rect): Likewise.
47117 (grub_video_blit_glyph): Likewise.
47118 (grub_video_blit_bitmap): Likewise.
47119 (grub_video_blit_render_target): Likewise.
47120 (grub_video_scroll): Likewise.
47121 (grub_video_swap_buffers): Likewise.
47122 (grub_video_create_render_target): Likewise.
47123 (grub_video_delete_render_target): Likewise.
47124 (grub_video_set_active_render_target): Likewise.
47126 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
47128 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
47130 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
47131 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47132 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47133 instead of $(srcdir)/genkernsyms.sh.
47135 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
47136 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47137 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47138 instead of $(srcdir)/genkernsyms.sh.
47140 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
47141 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47142 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47143 instead of $(srcdir)/genkernsyms.sh.
47145 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
47146 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47147 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47148 instead of $(srcdir)/genkernsyms.sh.
47150 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
47153 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
47155 (gensymlist.sh): New target.
47156 (genkernsyms.sh): Likewise.
47158 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
47159 genkernsyms.sh.in and gensymlist.sh.in.
47161 * genkernsyms.sh: Removed.
47162 * gensymlist.sh: Likewise.
47164 * genkernsyms.sh.in: New file.
47165 * gensymlist.sh.in: Likewise.
47167 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47169 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
47170 clobber "prefix", since we may have already set it manually.
47172 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47174 * kern/misc.c (abort): New alias for grub_abort.
47176 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
47178 A new machine-specific function "grub_machine_set_prefix" is
47179 defined. This is called after loading modules, so that a prefix
47180 initialization can use modules. Also, this change adds an
47181 intensive debugging feature for the memory manager via the
47182 configure option "--enable-mm-debug".
47184 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
47187 * kern/sparc64/ieee1275/init.c (abort): Removed.
47188 (grub_stop): Likewise.
47189 (grub_exit): New function.
47190 (grub_set_prefix): Renamed to ...
47191 (grub_machine_set_prefix): ... this.
47192 (grub_machine_init): Do not call grub_set_prefix.
47194 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
47195 (grub_machine_set_prefix): ... this.
47196 (grub_machine_init): Do not call grub_set_prefix.
47198 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
47199 (grub_machine_init): Do not set the prefix here.
47201 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
47203 * kern/efi/init.c: Include grub/mm.h.
47204 (grub_efi_set_prefix): New function.
47206 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
47207 (grub_efi_get_filename): New function.
47208 (grub_print_device_path): Renamed to ...
47209 (grub_efi_print_device_path): ... this.
47211 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
47212 [MM_DEBUG] (grub_realloc): Likewise.
47213 [MM_DEBUG] (grub_free): Likewise.
47214 [MM_DEBUG] (grub_memalign): Likewise.
47215 [MM_DEBUG] (grub_mm_debug): New variable.
47216 [MM_DEBUG] (grub_debug_malloc): New function.
47217 [MM_DEBUG] (grub_debug_free): New function.
47218 [MM_DEBUG] (grub_debug_realloc): New function.
47219 [MM_DEBUG] (grub_debug_memalign): New function.
47221 * kern/misc.c (grub_abort): Print a newline to distinguish
47224 * kern/main.c (grub_main): Call grub_machine_set_prefix and
47225 grub_set_root_dev after loading modules. This is necessary when
47226 setting a prefix depends on modules.
47228 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
47229 (grub_efi_print_device_path): ... this.
47230 (grub_efi_get_filename): New prototype.
47231 (grub_efi_set_prefix): Likewise.
47233 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
47235 (grub_efidisk_get_device_handle): New prototype.
47236 (grub_efidisk_get_device_name): Likewise.
47238 * include/grub/mm.h: Include config.h.
47239 (MM_DEBUG): Removed.
47240 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
47241 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
47242 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
47243 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
47244 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
47245 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
47246 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
47247 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
47248 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
47250 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
47252 * disk/efi/efidisk.c: Include grub/partition.h.
47253 (iterate_child_devices): New function.
47254 (add_device): First, compare only last device path nodes, so that
47255 devices are sorted by the types.
47256 (grub_efidisk_get_device_handle): New function.
47257 (grub_efidisk_get_device_name): Likewise.
47259 * configure.ac (--enable-mm-debug): New option to enable the
47260 memory manager debugging feature. This makes the binary much
47261 bigger, so is disabled by default.
47263 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
47265 Use grub_abort instead of grub_stop, and grub_exit must be
47266 define in each architecture now. Also, this change adds support
47269 * util/i386/pc/grub-probefs.c: Include grub/term.h.
47270 (grub_getkey): New function.
47271 (grub_term_get_current): Likewise.
47273 * util/i386/pc/grub-setup.c: Include grub/term.h.
47274 (grub_getkey): New function.
47275 (grub_term_get_current): Likewise.
47277 * util/misc.c (grub_stop): Renamed to ...
47278 (grub_exit): ... this.
47280 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
47281 (grub_exit): ... this.
47282 (grub_machine_init): Use grub_abort instead of abort.
47283 (grub_stop): Removed.
47285 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
47288 * kern/i386/pc/startup.S (grub_exit): New function.
47289 (cold_reboot): New label.
47291 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
47292 (grub_efi_init): Call grub_efidisk_init.
47293 (grub_efi_fini): Call grub_efidisk_fini.
47295 * kern/efi/efi.c: Include grub/mm.h.
47296 (grub_efi_console_control_guid): Renamed to ...
47297 (console_control_guid): ... this.
47298 (grub_efi_loaded_image_guid): Renamed to ...
47299 (loaded_image_guid): ... this.
47300 (grub_efi_locate_handle): New function.
47301 (grub_efi_open_protocol): Likewise.
47302 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
47303 GRUB_EFI_CONSOLE_CONTROL_GUID.
47304 (grub_efi_exit): Removed.
47305 (grub_stop): Likewise.
47306 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
47307 (grub_exit): New function.
47308 (grub_print_device_path): Likewise.
47310 * kern/rescue.c (grub_rescue_cmd_exit): New function.
47311 (grub_enter_rescue_mode): Register "exit".
47313 * kern/misc.c (grub_real_dprintf): A cosmetic change.
47314 (grub_abort): New function.
47316 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
47318 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
47320 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
47322 * include/grub/efi/efi.h (grub_efi_exit): Removed.
47323 (grub_print_device_path): New prototype.
47324 (grub_efi_locate_handle): Likewise.
47325 (grub_efi_open_protocol): Likewise.
47327 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
47328 * disk/efi/efidisk.c: Likewise.
47330 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
47332 * include/grub/efi/console_control.h
47333 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
47335 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
47336 last 8 bytes as an array.
47337 (GRUB_EFI_DISK_IO_GUID): New macro.
47338 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
47339 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
47340 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
47342 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
47343 (struct grub_efi_device_path): Rename the member "sub_type" to
47345 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
47346 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
47347 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
47348 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
47349 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
47350 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
47351 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
47352 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
47353 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
47354 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
47355 (struct grub_efi_pci_device_path): New structure.
47356 (grub_efi_pci_device_path_t): New type.
47357 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
47358 (struct grub_efi_pccard_device_path): New structure.
47359 (grub_efi_pccard_device_path_t): New type.
47360 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
47361 (struct grub_efi_memory_mapped_device_path): New structure.
47362 (grub_efi_memory_mapped_device_path_t): New type.
47363 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
47364 (struct grub_efi_vendor_device_path): New structure.
47365 (grub_efi_vendor_device_path_t): New type.
47366 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
47367 (struct grub_efi_controller_device_path): New structure.
47368 (grub_efi_controller_device_path_t): New type.
47369 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
47370 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
47371 (struct grub_efi_acpi_device_path): New structure.
47372 (grub_efi_acpi_device_path_t): New type.
47373 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
47374 (struct grub_efi_expanded_acpi_device_path): New structure.
47375 (grub_efi_expanded_acpi_device_path_t): New type.
47376 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
47377 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
47378 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
47379 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
47380 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
47381 (struct grub_efi_atapi_device_path): New structure.
47382 (grub_efi_atapi_device_path_t): New type.
47383 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
47384 (struct grub_efi_fibre_channel_device_path): New structure.
47385 (grub_efi_fibre_channel_device_path_t): New type.
47386 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
47387 (struct grub_efi_1394_device_path): New structure.
47388 (grub_efi_1394_device_path_t): New type.
47389 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
47390 (struct grub_efi_usb_device_path): New structure.
47391 (grub_efi_usb_device_path_t): New type.
47392 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
47393 (struct grub_efi_usb_class_device_path): New structure.
47394 (grub_efi_usb_class_device_path_t): New type.
47395 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
47396 (struct grub_efi_i2o_device_path): New structure.
47397 (grub_efi_i2o_device_path_t): New type.
47398 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
47399 (struct grub_efi_mac_address_device_path): New structure.
47400 (grub_efi_mac_address_device_path_t): New type.
47401 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
47402 (struct grub_efi_ipv4_device_path): New structure.
47403 (grub_efi_ipv4_device_path_t): New type.
47404 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
47405 (struct grub_efi_ipv6_device_path): New structure.
47406 (grub_efi_ipv6_device_path_t): New type.
47407 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
47408 (struct grub_efi_infiniband_device_path): New structure.
47409 (grub_efi_infiniband_device_path_t): New type.
47410 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
47411 (struct grub_efi_uart_device_path): New structure.
47412 (grub_efi_uart_device_path_t): New type.
47413 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
47414 (struct grub_efi_vendor_messaging_device_path): New structure.
47415 (grub_efi_vendor_messaging_device_path_t): New type.
47416 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
47417 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
47418 (struct grub_efi_hard_drive_device_path): New structure.
47419 (grub_efi_hard_drive_device_path_t): New type.
47420 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
47421 (struct grub_efi_cdrom_device_path): New structure.
47422 (grub_efi_cdrom_device_path_t): New type.
47423 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
47424 (struct grub_efi_vendor_media_device_path): New structure.
47425 (grub_efi_vendor_media_device_path_t): New type.
47426 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
47427 (struct grub_efi_file_path_device_path): New structure.
47428 (grub_efi_file_path_device_path_t): New type.
47429 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
47430 (struct grub_efi_protocol_device_path): New structure.
47431 (grub_efi_protocol_device_path_t): New type.
47432 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
47433 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
47434 (struct grub_efi_bios_device_path): New structure.
47435 (grub_efi_bios_device_path_t): New type.
47436 (struct grub_efi_disk_io): New structure.
47437 (grub_efi_disk_io_t): New type.
47438 (struct grub_efi_block_io_media): New structure.
47439 (grub_efi_block_io_media_t): New type.
47440 (struct grub_efi_block_io): New structure.
47441 (grub_efi_block_io_t): New type.
47443 * include/grub/misc.h (grub_stop): Removed.
47444 (grub_exit): New prototype.
47445 (grub_abort): Likewise.
47447 * include/grub/disk.h (enum grub_disk_dev_id): Added
47448 GRUB_DISK_DEVICE_EFIDISK_ID.
47450 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
47451 disk/efi/efidisk.c.
47452 (kernel_syms.lst): Remove the target if an error occurs.
47454 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
47456 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
47457 as it was simply too buggy.
47459 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
47461 * kern/misc.c (grub_lltoa): New function.
47462 (grub_vsprintf): Added support for the long long suffix,
47465 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
47467 * Makefile.in (LDFLAGS): Add variable.
47468 (LD): Remove variable.
47469 * configure.ac: Add -m32 to LDFLAGS.
47470 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
47471 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
47472 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
47473 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
47474 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
47476 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
47477 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
47478 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
47480 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
47482 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
47483 length for unknown glyph.
47485 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47487 Add support for pre-loaded modules into the EFI port.
47489 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
47490 completely. Accept one more argument DIR. The caller has changed.
47492 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
47494 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
47495 (grub_efi_loaded_image_guid): New variable.
47496 (grub_efi_get_loaded_image): New function.
47497 (grub_arch_modules_addr): Likewise.
47499 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
47502 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
47503 (struct grub_efi_loaded_image): New structure.
47504 (grub_efi_loaded_image_t): New type.
47506 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47508 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
47509 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
47510 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
47512 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
47514 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
47516 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
47518 * DISTLIST: Added include/grub/efi/console.h,
47519 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
47520 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47522 * include/grub/efi/console.h: New file.
47523 * include/grub/efi/time.h: Likewise.
47524 * include/grub/i386/efi/kernel.h: Likewise.
47525 * kern/efi/init.c: Likewise.
47526 * kern/efi/mm.c: Likewise.
47527 * term/efi/console.c: Likewise.
47529 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
47530 (grub_stop): Removed.
47531 (grub_get_rtc): Likewise.
47532 (grub_machine_init): Simply call grub_efi_init.
47533 (grub_machine_fini): Call grub_efi_fini.
47535 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
47536 (grub_efi_output_string): Removed.
47537 (grub_efi_stall): New function.
47538 (grub_stop): Likewise.
47539 (grub_get_rtc): Likewise.
47541 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
47542 (grub_efi_stall): New prototype.
47543 (grub_efi_allocate_pages): Likewise.
47544 (grub_efi_free_pages): Likewise.
47545 (grub_efi_get_memory_map): Likewise.
47546 (grub_efi_mm_init): Likewise.
47547 (grub_efi_mm_fini): Likewise.
47548 (grub_efi_init): Likewise.
47549 (grub_efi_fini): Likewise.
47551 * include/grub/i386/efi/time.h: Do not include
47552 grub/symbol.h. Include grub/efi/time.h.
47553 (GRUB_TICKS_PER_SECOND): Removed.
47554 (grub_get_rtc): Likewise.
47556 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
47557 Added padding. The EFI spec is buggy.
47558 (GRUB_EFI_BLACK): New macro.
47559 (GRUB_EFI_BLUE): Likewise.
47560 (GRUB_EFI_GREEN): Likewise.
47561 (GRUB_EFI_CYAN): Likewise.
47562 (GRUB_EFI_RED): Likewise.
47563 (GRUB_EFI_MAGENTA): Likewise.
47564 (GRUB_EFI_BROWN): Likewise.
47565 (GRUB_EFI_LIGHTGRAY): Likewise.
47566 (GRUB_EFI_BRIGHT): Likewise.
47567 (GRUB_EFI_DARKGRAY): Likewise.
47568 (GRUB_EFI_LIGHTBLUE): Likewise.
47569 (GRUB_EFI_LIGHTGREEN): Likewise.
47570 (GRUB_EFI_LIGHTCYAN): Likewise.
47571 (GRUB_EFI_LIGHTRED): Likewise.
47572 (GRUB_EFI_LIGHTMAGENTA): Likewise.
47573 (GRUB_EFI_YELLOW): Likewise.
47574 (GRUB_EFI_WHITE): Likewise.
47575 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
47576 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
47577 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
47578 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
47579 (GRUB_EFI_BACKGROUND_RED): Likewise.
47580 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
47581 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
47582 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
47583 (GRUB_EFI_TEXT_ATTR): Likewise.
47585 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
47586 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47587 (kernel_mod_HEADERS): Added efi/time.h.
47589 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
47591 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
47592 include/grub/efi/api.h, include/grub/efi/console_control.h,
47593 include/grub/efi/efi.h, include/grub/efi/pe32.h,
47594 include/grub/i386/efi/time.h, kern/efi/efi.c,
47595 kern/i386/efi/init.c, kern/i386/efi/startup.S,
47596 and util/i386/efi/grub-mkimage.c.
47598 * Makefile.in (RMKFILES): Added i386-efi.rmk.
47600 * genmk.rb (PModule#rule): Do not export symbols if
47601 #{prefix}_EXPORTS is set to "no".
47603 * conf/i386-efi.mk: New file.
47604 * conf/i386-efi.rmk: Likewise.
47605 * include/grub/efi/api.h: Likewise.
47606 * include/grub/efi/console_control.h: Likewise.
47607 * include/grub/efi/efi.h: Likewise.
47608 * include/grub/efi/pe32.h: Likewise.
47609 * include/grub/i386/efi/time.h: Likewise.
47610 * kern/efi/efi.c: Likewise.
47611 * kern/i386/efi/init.c: Likewise.
47612 * kern/i386/efi/startup.S: Likewise.
47613 * util/i386/efi/grub-mkimage.c: Likewise.
47615 2006-04-17 Marco Gerards <marco@gnu.org>
47617 * include/grub/script.h: Include <grub/parser.h> and
47618 "grub_script.tab.h".
47619 (struct grub_lexer_param): New struct.
47620 (struct grub_parser_param): Likewise.
47621 (grub_script_create_arglist): Pass the state in an argument.
47622 (grub_script_add_arglist): Likewise.
47623 (grub_script_create_cmdline): Likewise.
47624 (grub_script_create_cmdblock): Likewise.
47625 (grub_script_create_cmdif): Likewise.
47626 (grub_script_create_cmdmenu): Likewise.
47627 (grub_script_add_cmd): Likewise.
47628 (grub_script_arg_add): Likewise.
47629 (grub_script_lexer_ref): Likewise.
47630 (grub_script_lexer_deref): Likewise.
47631 (grub_script_lexer_record_start): Likewise.
47632 (grub_script_lexer_record_stop): Likewise.
47633 (grub_script_mem_record): Likewise.
47634 (grub_script_mem_record_stop): Likewise.
47635 (grub_script_malloc): Likewise.
47636 (grub_script_yylex): Likewise.
47637 (grub_script_yyparse): Likewise.
47638 (grub_script_yyerror): Likewise.
47639 (grub_script_yylex): Likewise.
47640 (grub_script_lexer_init): Return the state.
47642 * normal/lexer.c (grub_script_lexer_state): Removed variable.
47643 (grub_script_lexer_done): Likewise.
47644 (grub_script_lexer_getline): Likewise.
47645 (grub_script_lexer_refs): Likewise.
47646 (script): Likewise.
47647 (newscript): Likewise.
47648 (record): Likewise.
47649 (recording): Likewise.
47650 (recordpos): Likewise.
47651 (recordlen): Likewise.
47652 (grub_script_lexer_init): Return the state instead of setting
47654 (grub_script_lexer_ref): Use the newly added argument for state
47655 instead of globals.
47656 (grub_script_lexer_deref): Likewise.
47657 (grub_script_lexer_record_start): Likewise.
47658 (grub_script_lexer_record_stop): Likewise.
47659 (recordchar): Likewise.
47660 (nextchar): Likewise.
47661 (grub_script_yylex2): Likewise.
47662 (grub_script_yylex): Likewise.
47663 (grub_script_yyerror): Likewise.
47665 * normal/parser.y (func_mem): Removed variable.
47666 (menu_entry): Likewise.
47668 (%lex-param): New parser option.
47669 (%parse-param): Likewise.
47670 (script): Always return the AST.
47671 (argument): Pass the state around.
47672 (arguments): Likewise.
47673 (grubcmd): Likewise.
47674 (commands): Likewise.
47675 (function): Likewise.
47676 (menuentry): Likewise.
47677 (if_statement): Likewise.
47680 * normal/script.c (grub_script_memused): Removed variable.
47681 (grub_script_parsed): Likewise.
47682 (grub_script_malloc): Added a state argument. Use that instead of
47684 (grub_script_mem_record): Likewise.
47685 (grub_script_mem_record_stop): Likewise.
47686 (grub_script_arg_add): Likewise.
47687 (grub_script_add_arglist): Likewise.
47688 (grub_script_create_cmdline): Likewise.
47689 (grub_script_create_cmdif): Likewise.
47690 (grub_script_create_cmdmenu): Likewise.
47691 (grub_script_add_cmd): Likewise.
47692 (grub_script_parse): Setup the state before calling the parser.
47694 2006-04-16 Marco Gerards <marco@gnu.org>
47696 * normal/command.c (grub_command_init): Remove the title command.
47698 * normal/lexer.c (grub_script_yylex): Renamed from this...
47699 (grub_script_yylex2): ... to this.
47700 (grub_script_yylex): New function. Temporary
47701 introduced to filter some tokens.
47702 (grub_script_yyerror): Print a newline.
47704 * normal/main.c (read_config_file): Output information about the
47705 lines that contain errors. Wait for a key after all lines have
47706 been processed. Don't return an empty menu.
47708 * normal/parser.y (func_mem): Don't initialize.
47709 (menu_entry): Likewise.
47710 (err): New variable.
47711 (script): Don't return anything when an error was encountered.
47712 (ws, returns): Removed rules.
47713 (argument): Disabled concatenated variable support.
47714 (arguments): Remove explicit separators.
47715 (grubcmd): Likewise.
47716 (function): Likewise.
47717 (menuentry): Likewise.
47719 (commands): Likewise. Add error handling.
47721 * normal/script.c (grub_script_create_cmdline): If
47722 `grub_script_parsed' is 0, assume the parser encountered an error.
47724 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
47726 * configure.ac: Add support for EFI. Fix the typo
47727 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
47729 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47731 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
47732 foreign multibyte characters should be shown correctly.
47734 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47736 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
47738 (read_config_file): Made it to close file before returning.
47740 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
47742 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
47743 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
47744 video/i386/pc/vbefill.c.
47746 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
47747 video/i386/pc/vbefill.c.
47749 * include/grub/video.h (grub_video_blit_format): New enum.
47750 (grub_video_mode_info): Added new member blit_format.
47751 (grub_video_get_blit_format): New function prototype.
47753 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
47754 function prototype.
47755 (grub_video_vbe_map_rgb): Likewise.
47756 (grub_video_vbe_unmap_color): Likewise.
47758 * include/grub/i386/pc/vbeblit.h: New file.
47760 * include/grub/i386/pc/vbefill.h: New file.
47762 * video/video.c (grub_video_get_blit_format): New function.
47763 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
47764 (grub_video_vbe_map_rgb): Likewise.
47765 (grub_video_vbe_unmap_color): Likewise.
47767 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
47769 (grub_video_vbe_blit_render_target): Changed to use more optimized
47771 (grub_video_vbe_setup): Added detection for optimized settings.
47772 (grub_video_vbe_create_render_target): Likewise.
47774 * video/i386/pc/vbeblit.c: New file.
47776 * video/i386/pc/vbefill.c: New file.
47778 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
47780 * font/manager.c (grub_font_get_glyph): Removed font fixup from
47783 * util/unifont2pff.rb: ... and moved it to here. Improved argument
47784 parsing to support both hex and dec ranges. If filename was missing
47785 show usage information.
47787 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
47789 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47790 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47792 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47793 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47794 (video_mod_SOURCES): Added.
47795 (video_mod_CFLAGS): Likewise.
47796 (video_mod_LDFLAGS): Likewise.
47797 (gfxterm_mod_SOURCES): Likewise.
47798 (gfxterm_mod_CFLAGS): Likewise.
47799 (gfxterm_mod_LDFLAGS): Likewise.
47800 (videotest_mod_SOURCES): Likewise.
47801 (videotest_mod_CFLAGS): Likewise.
47802 (videotest_mod_LDFLAGS): Likewise.
47803 (vesafb_mod_SOURCES): Removed.
47804 (vesafb_mod_CFLAGS): Likewise.
47805 (vesafb_mod_LDFLAGS): Likewise.
47806 (vga_mod_SOURCES): Likewise.
47807 (vga_mod_CFLAGS): Likewise.
47808 (vga_mod_LDFLAGS): Likewise.
47810 * commands/videotest.c: New file.
47812 * font/manager.c (fill_with_default_glyph): Modified to use
47814 (grub_font_get_glyph): Likewise.
47815 (fontmanager): Renamed from this...
47816 (font_manager): ... to this.
47818 * include/grub/font.h (grub_font_glyph): Added new structure.
47819 (grub_font_get_glyph): Modified to use grub_font_glyph.
47821 * include/grub/misc.h (grub_abs): Added as inline function.
47823 * include/grub/video.h: New file.
47825 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47826 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47827 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47828 (grub_vbe_get_controller_info): Renamed from this...
47829 (grub_vbe_bios_get_controller_info): ... to this.
47830 (grub_vbe_get_mode_info): Renamed from this...
47831 (grub_vbe_bios_get_mode_info): ... to this.
47832 (grub_vbe_set_mode): Renamed from this...
47833 (grub_vbe_bios_set_mode): ... to this.
47834 (grub_vbe_get_mode): Renamed from this...
47835 (grub_vbe_bios_get_mode): ... to this.
47836 (grub_vbe_set_memory_window): Renamed from this...
47837 (grub_vbe_bios_set_memory_window): ... to this.
47838 (grub_vbe_get_memory_window): Renamed from this...
47839 (grub_vbe_bios_get_memory_window): ... to this.
47840 (grub_vbe_set_scanline_length): Renamed from this...
47841 (grub_vbe_set_scanline_length): ... to this.
47842 (grub_vbe_get_scanline_length): Renamed from this...
47843 (grub_vbe_bios_get_scanline_length): ... to this.
47844 (grub_vbe_set_display_start): Renamed from this...
47845 (grub_vbe_bios_set_display_start): ... to this.
47846 (grub_vbe_get_display_start): Renamed from this...
47847 (grub_vbe_bios_get_display_start): ... to this.
47848 (grub_vbe_set_palette_data): Renamed from this...
47849 (grub_vbe_bios_set_palette_data): ... to this.
47850 (grub_vbe_set_pixel_rgb): Removed.
47851 (grub_vbe_set_pixel_index): Likewise.
47853 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47855 (grub_vbe_bios_get_controller_info): ... to this.
47856 (grub_vbe_get_mode_info): Renamed from this...
47857 (grub_vbe_bios_get_mode_info): ... to this.
47858 (grub_vbe_set_mode): Renamed from this...
47859 (grub_vbe_bios_set_mode): ... to this.
47860 (grub_vbe_get_mode): Renamed from this...
47861 (grub_vbe_bios_get_mode): ... to this.
47862 (grub_vbe_set_memory_window): Renamed from this...
47863 (grub_vbe_bios_set_memory_window): ... to this.
47864 (grub_vbe_get_memory_window): Renamed from this...
47865 (grub_vbe_bios_get_memory_window): ... to this.
47866 (grub_vbe_set_scanline_length): Renamed from this...
47867 (grub_vbe_set_scanline_length): ... to this.
47868 (grub_vbe_get_scanline_length): Renamed from this...
47869 (grub_vbe_bios_get_scanline_length): ... to this.
47870 (grub_vbe_set_display_start): Renamed from this...
47871 (grub_vbe_bios_set_display_start): ... to this.
47872 (grub_vbe_get_display_start): Renamed from this...
47873 (grub_vbe_bios_get_display_start): ... to this.
47874 (grub_vbe_set_palette_data): Renamed from this...
47875 (grub_vbe_bios_set_palette_data): ... to this.
47876 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47877 getting corrupted after calling it. Added more pushes and pops.
47878 (grub_vbe_bios_set_mode): Likewise.
47879 (grub_vbe_bios_get_mode): Likewise.
47880 (grub_vbe_bios_get_memory_window): Likewise.
47881 (grub_vbe_bios_set_scanline_length): Likewise.
47882 (grub_vbe_bios_get_scanline_length): Likewise.
47883 (grub_vbe_bios_get_display_start): Likewise.
47884 (grub_vbe_bios_set_palette_data): Likewise.
47886 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47887 (cl_insert): Likewise.
47888 (cl_delete): Likewise.
47890 * term/gfxterm.c: New file.
47892 * term/i386/pc/vesafb.c: Removed file.
47894 * video/video.c: New file.
47896 * video/i386/pc/vbe.c (real2pm): Added new function.
47897 (grub_video_vbe_draw_pixel): Likewise.
47898 (grub_video_vbe_get_video_ptr): Likewise.
47899 (grub_video_vbe_get_pixel): Likewise
47900 (grub_video_vbe_init): Likewise.
47901 (grub_video_vbe_fini): Likewise.
47902 (grub_video_vbe_setup): Likewise.
47903 (grub_video_vbe_get_info): Likewise.
47904 (grub_video_vbe_set_palette): Likewise.
47905 (grub_video_vbe_get_palette): Likewise.
47906 (grub_video_vbe_set_viewport): Likewise.
47907 (grub_video_vbe_get_viewport): Likewise.
47908 (grub_video_vbe_map_color): Likewise.
47909 (grub_video_vbe_map_rgb): Likewise.
47910 (grub_video_vbe_map_rgba): Likewise.
47911 (grub_video_vbe_unmap_color): Likewise.
47912 (grub_video_vbe_fill_rect): Likewise.
47913 (grub_video_vbe_blit_glyph): Likewise.
47914 (grub_video_vbe_blit_bitmap): Likewise.
47915 (grub_video_vbe_blit_render_target): Likewise.
47916 (grub_video_vbe_scroll): Likewise.
47917 (grub_video_vbe_swap_buffers): Likewise.
47918 (grub_video_vbe_create_render_target): Likewise.
47919 (grub_video_vbe_delete_render_target): Likewise.
47920 (grub_video_vbe_set_active_render_target): Likewise.
47921 (grub_vbe_set_pixel_rgb): Remove function.
47922 (grub_vbe_set_pixel_index): Likewise.
47923 (index_color_mode): Remove static variable.
47924 (active_mode): Likewise.
47925 (framebuffer): Likewise.
47926 (bytes_per_scan_line): Likewise.
47927 (grub_video_vbe_adapter): Added new static variable.
47928 (framebuffer): Likewise.
47929 (render_target): Likewise.
47930 (initial_mode): Likewise.
47931 (mode_in_use): Likewise.
47932 (mode_list): Likewise.
47934 2006-03-10 Marco Gerards <marco@gnu.org>
47936 * configure.ac (AC_INIT): Bumped to 1.93.
47938 * DISTLIST: Added `include/grub/hfs.h'.
47940 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
47942 * boot/i386/pc/boot.S (general_error): Before looping, try INT
47943 18H, which might help the BIOS falling back to next boot media.
47945 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
47947 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
47948 Poe Chen <poe.poechen@gmail.com>.
47950 2006-01-17 Marco Gerards <marco@gnu.org>
47952 * include/grub/normal.h: Include <grub/script.h>.
47953 (grub_command_list): Removed struct.
47954 (grub_command_list_t): Removed type.
47955 (grub_menu_entry): Remove members `num' and `command_list'. Add
47956 members `commands' and `sourcecode'.
47957 * include/grub/script.h: Add inclusion guards.
47958 (grub_script_cmd_menuentry): New struct.
47959 (grub_script_execute_menuentry): New prototype.
47960 (grub_script_lexer_record_start): Likewise.
47961 (grub_script_lexer_record_stop): Likewise.
47962 * normal/execute.c (grub_script_execute_menuentry): New function.
47963 * normal/lexer.c (record, recording, recordpos, recordlen): New
47965 (grub_script_lexer_record_start): New function.
47966 (grub_script_lexer_record_stop): Likewise.
47967 (recordchar): Likewise.
47968 (nextchar): Likewise.
47969 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
47970 2048 as the buffer size. Add the tokens `menuentry' and `@'.
47971 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
47972 (current_menu): New variable.
47973 (free_menu): Mainly rewritten.
47974 (grub_normal_menu_addentry): New function.
47975 (read_config_file): Rewritten.
47976 * normal/menu.c (run_menu_entry): Mainly rewritten.
47977 * normal/menu_entry.c (make_screen): Rewritten the code to insert
47979 (run): Mainly rewritten.
47980 * normal/parser.y (menu_entry): New variable.
47981 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
47982 (menuentry): New rule.
47983 (command): Add `menuentry'.
47984 (if_statement): Allow additional returns before `fi'.
47985 * normal/script.c (grub_script_create_cmdmenu): New function.
47987 2006-01-03 Marco Gerards <marco@gnu.org>
47989 * INSTALL: GNU Bison is required.
47990 * configure.ac: Rewritten the test to detect Bison.
47991 * Makefile.in (YACC): New variable. Reported by Xun Sun
47992 <xun.sun.cn@gmail.com>.
47994 2006-01-03 Marco Gerards <marco@gnu.org>
47996 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
47997 the HFS+ filesystem to filesystem blocks.
47998 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
47999 GCC warning is silenced.
48001 2006-01-03 Marco Gerards <marco@gnu.org>
48003 * partmap/apple.c (apple_partition_map_iterate): Convert the data
48004 read from disk from big endian to host byte order.
48006 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
48008 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
48010 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
48011 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
48012 embedded HFS+ filesystem.
48013 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
48014 (grub_hfs_sblock): Move from here...
48015 * include/grub/hfs.h: To here... New file.
48016 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
48018 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
48020 (grub_hfsplus_volheader): Change type of member `magic' to
48022 (grub_hfsplus_data): Add new member `embedded_offset'.
48023 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
48025 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
48026 Calculate the offset.
48028 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48030 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
48032 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
48034 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48036 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
48037 ENV->NAME is NULL after allocating ENV->VALUE.
48039 2005-12-25 Marco Gerards <marco@gnu.org>
48041 * kern/env.c (grub_env_set): Rewritten the error handling code.
48043 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48045 * geninit.sh: Made more robust, and more portable.
48047 2005-12-25 Marco Gerards <marco@gnu.org>
48049 Add support for Apple HFS+ filesystems.
48051 * fs/hfsplus.c: New file.
48053 * DISTLIST: Added `fs/hfsplus.c'.
48055 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
48056 (hfsplus_mod_SOURCES): New variable.
48057 (hfsplus_mod_CFLAGS): Likewise.
48058 (hfsplus_mod_LDFLAGS): Likewise.
48059 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
48060 (grub_setup_SOURCES): Likewise.
48061 (grub_mkdevicemap_SOURCES): Likewise.
48062 (grub_emu_SOURCES): Likewise.
48063 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48065 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
48067 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
48069 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48071 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
48072 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
48073 include/grub/parser.h, include/grub/script.h, kern/parser.c,
48074 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
48075 normal/lexer.c, normal/parser.y, normal/script.c, and
48077 Removed kern/sparc64/cache.c.
48079 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
48080 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
48083 * configure.ac (AC_INIT): Bumped to 1.92.
48085 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
48087 * kern/err.c (grub_error_push): Added new function to support error
48089 (grub_error_pop): Likewise.
48090 (grub_error_stack_items): New local variable to support error stacks.
48091 (grub_error_stack_pos): Likewise.
48092 (grub_error_stack_assert): Likewise.
48093 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
48095 (grub_print_error): Added support to print errors from error stack.
48097 * include/grub/err.h (grub_error_push): Added function prototype.
48098 (grub_error_pop): Likewise.
48100 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
48102 * configure.ac: Accept `powerpc64' as host_cpu.
48103 (amd64): Rename to `biarch32'.
48105 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
48106 non-cacheline-aligned addresses.
48108 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
48109 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
48110 if `size' is non-zero.
48112 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
48114 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
48115 and `cd' to make sure the filename is not prefixed with a
48117 (pkgdata_MODULES): Add `gpt.mod'.
48118 (gpt_mod_SOURCES): New variable.
48119 (gpt_mod_CFLAGS): Likewise.
48120 (gpt_mod_LDFLAGS): Likewise.
48122 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
48124 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
48127 * partmap/gpt.c: New file.
48129 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
48130 GPT partition map is detected.
48132 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
48134 * commands/i386/pc/play.c: New file.
48135 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
48136 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
48139 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
48141 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
48142 ((unused))' to silence gcc warning.
48144 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
48146 * configure.ac: Correct `AC_PROG_YACC' test.
48148 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48150 * util/powerpc/ieee1275/grub-install.in: Run the mount point
48151 check before installing files.
48153 2005-11-22 Mike Small <smallm@panix.com>
48155 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
48156 number regex so multidigit numbers are recognized correctly.
48158 2005-11-22 Mike Small <smallm@panix.com>
48160 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
48161 debugging message before attempting to claim memory.
48162 (grub_rescue_cmd_initrd): Add a claim debugging message and try
48163 multiple addresses in case of failure.
48165 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48167 * term/tparm.c (get_space): Remove empty `if' statement.
48169 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
48171 * kern/parser.c (check_varstate): Rename `state' to 's'.
48173 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48175 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
48176 variable definitions to the beginning of each function. Sort stack
48178 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
48179 `buf' argument to `char *'.
48181 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48183 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
48184 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
48185 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
48186 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48187 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48188 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48189 configfile.mod, search.mod, gzio.mod and test.mod.
48190 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48191 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48192 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48193 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48194 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48195 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48196 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48197 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48198 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48199 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48200 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48201 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48202 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48203 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48204 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48205 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48206 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48207 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48208 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48209 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48210 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48211 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48212 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
48214 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
48216 (pkgdata_MODULES): Add test.mod.
48218 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48220 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
48221 appending to variables with "+=".
48222 (PModule): Use full pathname to generate *.lst filenames.
48224 * Makefile.in: Fixed list rules moved from genmk.rb.
48225 (.DELETE_ON_ERROR): New special target.
48226 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
48228 * conf/i386-pc.rmk: Include conf/common.mk.
48229 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
48230 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
48231 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48232 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48233 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48234 configfile.mod, search.mod, gzio.mod and test.mod.
48235 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48236 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48237 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48238 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48239 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48240 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48241 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48242 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48243 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48244 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48245 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48246 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48247 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48248 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48249 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48250 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48251 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48252 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48253 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48254 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48255 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48256 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48257 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
48259 * conf/common.rmk: ... to here. New file.
48261 * conf/common.mk: New file.
48263 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
48265 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
48266 (grub_script.tab.c): ... here.
48268 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
48269 (grub_script.tab.c): ... here.
48271 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
48272 (grub_script.tab.c): ... here.
48274 * normal/command.c (grub_command_find): Fixed a memory leak of
48275 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
48277 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48279 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
48280 "@" which marks the start of a comment on ARM.
48281 (VARIABLE): Likewise.
48283 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48285 Add support for Linux/ADFS partition tables.
48287 * partmap/acorn.c: New file.
48289 * include/grub/acorn_filecore.h: Likewise.
48291 * DISTLIST: Added `partmap/acorn.c' and
48292 `include/grub/acorn_filecore.h'.
48294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48296 (pkgdata_MODULES): Add `acorn.mod'.
48297 (acorn_mod_SOURCES): New variable.
48298 (acorn_mod_CFLAGS): Likewise.
48300 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48302 (pkgdata_MODULES): Add `acorn.mod'.
48303 (acorn_mod_SOURCES): New variable.
48304 (acorn_mod_CFLAGS): Likewise.
48306 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
48307 (pkgdata_MODULES): Add `acorn.mod'.
48308 (acorn_mod_SOURCES): New variable.
48309 (acorn_mod_CFLAGS): Likewise.
48310 (acorn_mod_LDFLAGS): Likewise.
48312 * include/types.h (grub_disk_addr_t): New typedef.
48314 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
48316 * geninit.sh: New file.
48318 * geninitheader.sh: Likewise.
48320 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
48321 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
48322 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
48323 * commands/configfile.c (grub_configfile_init)
48324 (grub_configfile_fini): Likewise.
48325 * commands/default.c (grub_default_init, grub_default_fini):
48327 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
48328 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
48329 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
48330 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
48332 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
48333 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
48335 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
48336 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
48338 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
48340 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
48342 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
48343 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
48344 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
48345 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
48346 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
48347 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
48348 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
48349 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
48350 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
48351 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
48352 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
48353 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
48354 * partmap/amiga.c (grub_amiga_partition_map_init)
48355 (grub_amiga_partition_map_fini): Likewise.
48356 * partmap/apple.c (grub_apple_partition_map_init)
48357 (grub_apple_partition_map_fini): Likewise.
48358 * partmap/pc.c (grub_pc_partition_map_init)
48359 (grub_pc_partition_map_fini): Likewise.
48360 * partmap/sun.c (grub_sun_partition_map_init,
48361 grub_sun_partition_map_fini): Likewise.
48362 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
48365 * util/grub-emu.c: Include <grub_modules_init.h>.
48366 (main): Don't initialize and de-initialize any modules directly,
48367 use `grub_init_all' and `grub_fini_all' instead.
48369 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
48370 `grub_vesafb_mod_init'.
48371 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
48373 * term/i386/pc/vga.c (grub_vga_init): Renamed to
48374 `grub_vga_mod_init'. Updated all users.
48375 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
48377 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
48378 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
48381 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
48382 Generate a function to initialize the module in utilities.
48383 Updated all callers.
48384 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
48385 initialize the module in utilities. Updated all callers.
48387 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48389 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
48390 escape sequence and a literal ^L to clear the screen.
48392 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
48393 when returning from Open Firmware.
48395 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48397 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
48398 (grub_ofconsole_height): Likewise.
48399 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
48400 manually insert a '\n'.
48401 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
48402 `grub_ofconsole_height'. Return early if these are already set.
48404 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
48406 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48407 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
48408 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
48409 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
48410 and `normal/script.c'.
48411 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48412 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48413 (test_mod_SOURCES): New variable.
48414 (test_mod_CFLAGS): Likewise.
48415 (test_mod_LDFLAGS): Likewise.
48416 (pkgdata_MODULES): Add `test.mod'.
48417 (grub_script.tab.c): New rule.
48418 (grub_script.tab.h): Likewise.
48420 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
48422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48423 `commands/test.c', `normal/execute.c', `normal/lexer.c',
48424 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48425 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48426 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48427 (test_mod_SOURCES): New variable.
48428 (test_mod_CFLAGS): Likewise.
48429 (pkgdata_MODULES): Add `test.mod'.
48430 (grub_script.tab.c): New rule.
48431 (grub_script.tab.h): Likewise.
48433 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
48435 Add initial scripting support.
48437 * commands/test.c: New file.
48438 * include/grub/script.h: Likewise.
48439 * normal/execute.c: Likewise.
48440 * normal/function.c: Likewise.
48441 * normal/lexer.c: Likewise.
48442 * normal/parser.y: Likewise.
48443 * normal/script.c: Likewise.
48445 * configure.ac: Add `AC_PROG_YACC' test.
48447 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
48448 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
48449 `normal/function.c' and `normal/script.c'.
48450 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48451 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48452 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
48454 (pkgdata_MODULES): Add `test.mod'.
48455 (grub_script.tab.c): New rule.
48456 (grub_script.tab.h): Likewise.
48458 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
48460 * include/grub/normal.h (grub_test_init): New prototype.
48461 (grub_test_fini): Likewise.
48463 * normal/command.c: Include <grub/script.h>.
48464 (grub_command_execute): Rewritten.
48466 * util/grub-emu.c (main): Call `grub_test_init' and
48469 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48471 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
48473 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
48474 there are no pending characters.
48476 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48478 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
48479 `grub_strndup' to drop device arguments. Replace unnecessary
48480 `grub_strndup' with `grub_strdup'.
48482 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48484 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
48485 `debug' environment variable has been set.
48487 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
48489 * Makefile.in (install-local): Use $(DATA).
48490 (uninstall): Likewise.
48491 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
48492 (sbin_UTILITIES): ... to here.
48493 (sbin_SCRIPTS): New variable.
48494 (grub_install_SOURCES): New variable.
48495 * util/powerpc/ieee1275/grub-install.in: New file.
48496 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
48498 (add_segments): Call `grub_util_get_path'.
48500 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48502 From Timothy Baldwin:
48503 * commands/ls.c (grub_ls_list_files): Close FILE with
48505 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
48507 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
48509 * include/grub/parser.h: New file.
48511 * kern/parser.c: Likewise.
48513 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
48514 (grub_setup_SOURCES): Likewise.
48515 (grub_probefs_SOURCES): Likewise.
48516 (grub_emu_SOURCES): Likewise.
48517 (kernel_img_HEADERS): Add `parser.h'.
48519 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48520 (grub_emu_SOURCES): Add `kern/parser.c'.
48521 (grubof_SOURCES): Likewise.
48523 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48524 (grubof_SOURCES): Add `kern/parser.c'.
48526 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
48528 * kern/misc.c (grub_split_cmdline): Removed function.
48530 * kern/rescue.c: Include <grub/parser.h>.
48531 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
48532 of `grub_split_cmdline'.
48534 * normal/command.c: Include <grub/parser.h>.
48535 (grub_command_execute): Use `grub_parser_split_cmdline' instead
48536 of `grub_split_cmdline'.
48538 * normal/completion.c: Include <grub/parser.h>.
48539 (cmdline_state): New variable.
48540 (iterate_dir): End the filename with a quote depending on the
48541 command line state.
48542 (get_state): new function.
48543 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
48544 split the arguments and determine the current argument. When the
48545 argument string is not quoted, escape all spaces.
48547 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48549 * normal/sparc64/setjmp.S: New file.
48551 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48553 * include/grub/sparc64/libgcc.h: New file.
48554 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
48555 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
48556 normal/sparc64/setjmp.c.
48558 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48560 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
48561 * kern/sparc64/cache.S: New file.
48562 * kern/sparc64/cache.c: Removed.
48563 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
48564 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
48566 (COMMON_LDFLAGS): Add -melf64_sparc.
48567 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
48568 (grubof_SOURCES): Use cache.S instead of cache.c.
48569 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
48570 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
48571 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
48573 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
48574 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
48575 (linux_mod_CFLAGS): Commented out.
48576 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
48577 out because module isn't built.
48578 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
48579 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
48580 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
48581 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
48582 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
48583 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48584 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48585 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
48586 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
48587 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
48588 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48589 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48590 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
48591 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
48593 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
48595 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
48596 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
48597 longer, because HFS should not be used on PC.
48599 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48601 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
48602 consistently within the loop.
48604 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
48606 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
48607 directory can not be read.
48609 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48611 * configure.ac (AC_INIT): Increase the version number to 1.91.
48613 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
48614 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
48615 term/i386/pc/serial.c.
48617 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48619 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
48620 file size must be permitted.
48622 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
48623 between %ah and %al.
48625 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48627 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
48629 Call the hook with a NUL-terminated filename.
48630 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
48633 * kern/term.c (cursor_state): New variable.
48634 (grub_term_set_current): Reset the cursor state on a new
48636 (grub_setcursor): Rewritten to use CURSOR_STATE.
48637 (grub_getcursor): New function.
48639 * include/grub/term.h (grub_getcursor): New prototype.
48641 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
48642 integers on ARM. Reported by Timothy Baldwin
48643 <T.E.Baldwin99@members.leeds.ac.uk>.
48645 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
48647 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
48649 (grub_sfs_dir): Likewise.
48651 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
48653 Add support for the SFS filesystem.
48655 * fs/sfs.c: New file.
48657 * DISTLIST: Added `fs/sfs.c'.
48659 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
48660 (grub_probefs_SOURCES): Likewise.
48661 (grub_emu_SOURCES): Likewise.
48662 (pkgdata_MODULES): Add `sfs.mod'.
48663 (sfs_mod_SOURCES): New variable.
48664 (sfs_mod_CFLAGS): Likewise.
48665 (sfs_mod_LDFLAGS): Likewise.
48667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
48668 (pkgdata_MODULES): Add `sfs.mod'.
48669 (sfs_mod_SOURCES): New variable.
48670 (sfs_mod_CFLAGS): Likewise.
48672 * util/grub-emu.c (main): Call `grub_sfs_init' and
48675 * include/grub/fs.h (grub_sfs_init): New prototype.
48676 (grub_sfs_fini): Likewise.
48678 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
48680 Add support for the AFFS filesystem.
48682 * fs/affs.c: New file.
48684 * DISTLIST: Added `fs/affs.c'.
48686 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
48687 (grub_probefs_SOURCES): Likewise.
48688 (grub_emu_SOURCES): Likewise.
48689 (pkgdata_MODULES): Add `affs.mod'.
48690 (affs_mod_SOURCES): New variable.
48691 (affs_mod_CFLAGS): Likewise.
48692 (affs_mod_LDFLAGS): Likewise.
48694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
48695 (pkgdata_MODULES): Add `affs.mod'.
48696 (affs_mod_SOURCES): New variable.
48697 (affs_mod_CFLAGS): Likewise.
48699 * util/grub-emu.c (main): Call `grub_affs_init' and
48702 * include/grub/fs.h (grub_affs_init): New prototype.
48703 (grub_affs_fini): Likewise.
48705 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
48707 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
48709 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
48711 * configure.ac: Accept `x86_64' as host_cpu. In that case add
48714 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
48717 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
48718 (COMMON_LDFLAGS): New variable.
48719 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
48720 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
48721 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
48722 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
48723 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
48724 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
48725 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
48726 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
48727 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
48728 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
48729 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48730 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48731 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
48732 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
48733 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
48735 (normal_mod_ASFLAGS): Add `-m32'.
48737 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
48738 (grub_host_size_t, grub_host_ssize_t): New types.
48739 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
48740 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
48741 `GRUB_HOST_SIZEOF_VOID_P'.
48743 * include/grub/kernel.h (struct grub_module_header): Type of
48744 member offset changed to `grub_host_off_t'. Type of member size
48745 changed to `grub_host_size_t'.
48746 (struct grub_module_info): Type of member offset changed to
48747 `grub_host_off_t'. Type of member size changed to
48748 `grub_host_size_t'.
48750 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
48752 Make GRUB's kernel compliant to Multiboot Specification.
48754 * kern/i386/pc/startup.S (multiboot_header): New label.
48755 (multiboot_entry): Likewise.
48756 (multiboot_trampoline): Likewise.
48758 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48759 Increased to 0x4A0.
48761 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
48762 put parentheses after a question mark.
48763 [!GRUB_UTIL] (my_mod): New variable.
48765 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
48767 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
48769 Adds support for the XFS filesystem. Btrees are not supported
48772 * fs/xfs.c: New file.
48774 * DISTLIST: Added `fs/xfs.c'.
48776 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
48777 (grub_probefs_SOURCES): Likewise.
48778 (grub_emu_SOURCES): Likewise.
48779 (pkgdata_MODULES): Add `xfs.mod'.
48780 (xfs_mod_SOURCES): New variable.
48781 (xfs_mod_CFLAGS): Likewise.
48783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
48784 (pkgdata_MODULES): Add `xfs.mod'.
48785 (xfs_mod_SOURCES): New variable.
48786 (xfs_mod_CFLAGS): Likewise.
48788 * util/grub-emu.c (main): Call `grub_xfs_init' and
48791 * include/grub/fs.h (grub_xfs_init): New prototype.
48792 (grub_xfs_fini): Likewise.
48795 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48797 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48798 color modes, allow greater than 16 colors to be configured as
48801 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48803 * normal/completion.c (complete_arguments): Add the qualifier
48804 const into OPTIONS.
48806 From Omniflux <omniflux+lists@omniflux.com>:
48807 * include/grub/terminfo.h: New file.
48808 * include/grub/tparm.h: Likewise.
48809 * include/grub/i386/pc/serial.h: Likewise.
48810 * term/terminfo.c: Likewise.
48811 * term/tparm.c: Likewise.
48812 * term/i386/pc/serial.c: Likewise.
48813 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48815 (terminfo_mod_SOURCES): New variable.
48816 (terminfo_mod_CFLAGS): Likewise.
48817 (serial_mod_SOURCES): Likewise.
48818 (serial_mod_CFLAGS): Likewise.
48820 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48822 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48823 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48824 and kern/powerpc/ieee1275/cmain.c, respectively.
48826 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48827 * kern/powerpc/ieee1275/crt0.S: ... here.
48829 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48830 * kern/powerpc/ieee1275/cmain.c: ... here.
48832 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48833 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48834 instead of boot/powerpc/ieee1275/crt0.S and
48835 boot/powerpc/ieee1275/cmain.c, respectively.
48837 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48838 sectors. It was not used anyway.
48840 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48842 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48843 `unused parameter' warning.
48845 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48847 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48849 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48852 2005-08-28 Marco Gerards <metgerards@student.han.nl>
48854 * include/grub/normal.h (enum grub_completion_type): Added
48855 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48857 * normal/cmdline.c (print_completion): Handle
48858 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48859 * normal/menu_entry.c (store_completion): Likewise.
48861 * normal/completion.c (complete_arguments): New function.
48862 (grub_normal_do_completion): Call `complete_arguments' when the
48863 current words start with a dash.
48865 2005-08-27 Marco Gerards <metgerards@student.han.nl>
48867 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48868 `gzio.mod' instead of `io.mod').
48870 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48872 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48873 (DISTDIRS): Added io and video.
48874 Rewrite the search routine to make an output consistently.
48876 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48877 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48878 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48879 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48880 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48881 util/powerpc/ieee1275/misc.c.
48883 * include/grub/gzio.h: New file.
48884 * io/gzio.c: Likewise.
48886 * kern/file.c (grub_file_close): Call grub_device_close only if
48887 FILE->DEVICE is not NULL.
48889 * include/grub/mm.h [!NULL] (NULL): New macro.
48891 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48894 (pkgdata_MODULES): Added gzio.mod.
48895 (gzio_mod_SOURCES): New variable.
48896 (gzio_mod_CFLAGS): Likewise.
48898 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48899 (pkgdata_MODULES): Added gzio.mod.
48900 (gzio_mod_SOURCES): New variable.
48901 (gzio_mod_CFLAGS): Likewise.
48903 * commands/cat.c: Include grub/gzio.h.
48904 (grub_cmd_cat): Use grub_gzfile_open instead of
48907 * commands/cmp.c: Include grub/gzio.h.
48908 (grub_cmd_cmp): Use grub_gzfile_open instead of
48911 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48912 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48914 (grub_rescue_cmd_module): Likewise.
48916 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48918 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
48919 kern/sparc64/ieee1275/init.c because it contains _start.
48920 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
48922 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48924 * configure.ac: Add support for sparc64 host with ieee1275
48926 * configure: Generated from configure.ac.
48927 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
48929 (grub_ofdisk_read): Likewise.
48930 (grub_ofdisk_open): Use %p to print pointer values, and cast the
48931 pointers as (void *) to remove a warning.
48932 (grub_ofdisk_close): Likewise.
48933 (grub_ofdisk_read): Likewise.
48934 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
48935 returns, so make it return void to remove a warning.
48936 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
48937 Corresponding prototype change.
48938 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
48939 values, and cast the pointers as (void *) to remove a warning.
48940 (grub_mm_dump): Likewise.
48941 * conf/sparc64-ieee1275.mk: New file.
48942 * conf/sparc64-ieee1275.rmk: Likewise.
48943 * include/grub/sparc64/setjmp.h: Likewise.
48944 * include/grub/sparc64/types.h: Likewise.
48945 * include/grub/sparc64/ieee1275/console.h: Likewise.
48946 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48947 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48948 * include/grub/sparc64/ieee1275/time.h: Likewise.
48949 * kern/sparc64/cache.c: Likewise.
48950 * kern/sparc64/dl.c: Likewise.
48951 * kern/sparc64/ieee1275/init.c: Likewise.
48952 * kern/sparc64/ieee1275/openfw.c: Likewise.
48954 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48956 * util/console.c (grub_ncurses_putchar): If C is greater than
48957 0x7f, set C to a question mark.
48958 (grub_ncurses_getcharwidth): New function.
48959 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
48962 * normal/menu.c (print_entry): Made aware of Unicode. First,
48963 convert TITLE to UCS-4, and predict the cursor position by
48966 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
48968 * kern/misc.c (grub_utf16_to_utf8): Likewise.
48970 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48972 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
48973 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48976 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
48977 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48978 grub_strcpy and grub_strlen. Take it into account that a space
48979 character is inserted as a delimiter.
48981 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48983 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
48984 invalid magic in the error.
48986 * commands/search.c: New file.
48988 * util/grub-emu.c (main): Call grub_search_init and
48991 * kern/rescue.c (grub_rescue_print_disks): Removed.
48992 (grub_rescue_print_devices): New function.
48993 (grub_rescue_cmd_ls): Use grub_device_iterate with
48994 grub_rescue_print_devices instead of grub_disk_dev_iterate with
48995 grub_rescue_print_disks.
48997 * kern/partition.c (grub_partition_iterate): Return the result of
48998 PARTMAP->ITERATE instead of GRUB_ERRNO.
49000 * kern/device.c: Include grub/partition.h.
49001 (grub_device_iterate): New function.
49003 * include/grub/partition.h (grub_partition_iterate): Return int
49004 instead of grub_err_t.
49006 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
49008 [GRUB_UTIL] (grub_search_fini): Likewise.
49010 * include/grub/device.h (grub_device_iterate): New prototype.
49012 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49014 (pkgdata_MODULES): Added search.mod.
49015 (search_mod_SOURCES): New variable.
49016 (search_mod_CFLAGS): Likewise.
49018 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
49019 (pkgdata_MODULES): Added search.mod.
49020 (search_mod_SOURCES): New variable.
49021 (search_mod_CFLAGS): Likewise.
49023 * commands/ls.c (grub_ls_list_disks): Renamed to ...
49024 (grub_ls_list_devices): ... this, and use grub_device_iterate.
49025 All callers changed.
49027 * DISTLIST: Added commands/search.c.
49029 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
49031 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
49033 (grub_getcharwidth): New function.
49035 * kern/misc.c (grub_utf8_to_ucs4): New function.
49037 * include/grub/term.h (struct grub_term): Added a new member
49039 (grub_getcharwidth): New prototype.
49041 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
49043 * term/i386/pc/console.c (map_char): New function. Segregated from
49044 grub_console_putchar.
49045 (grub_console_putchar): Use map_char.
49046 (grub_console_getcharwidth): New function.
49047 (grub_console_term): Specified grub_console_getcharwidth as
49050 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
49051 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
49053 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
49055 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
49056 on grub_strtoul completely.
49057 (write_char): Declare local variables in the beginning of the
49059 (grub_vesafb_getcharwidth): New function.
49060 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
49063 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
49065 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
49066 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
49067 commands/i386/pc/vbetest.c.
49069 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
49070 call grub_vbe_get_controller_info again, because the returned
49071 information is volatile.
49072 (grub_vbe_set_video_mode): Mostly rewritten.
49073 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
49074 grub_vbe_status_t correctly.
49075 (grub_vbe_get_video_mode_info): Likewise.
49076 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
49077 several if statements.
49079 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
49080 * commands/i386/pc/vbeinfo.c: ... this.
49082 * commands/i386/pc/vbe_test.c: Renamed to ...
49083 * commands/i386/pc/vbetest.c: ... this.
49085 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
49087 (grub_cmd_vbeinfo): ... this. Save video modes before
49088 iterating. Skip a video mode, if it is not available, not enough
49089 information is given or it is monochrome. Show the memory
49090 model. Leave the interpretation of MODEVAR to grub_strtoul
49092 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
49093 (GRUB_MOD_FINI): Likewise.
49095 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
49096 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
49097 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
49098 duplicated grub_env_get. Leave the interpretation of MODEVAR to
49099 grub_strtoul completely.
49100 (real2pm): Removed.
49101 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
49102 (GRUB_MOD_FINI): Likewise.
49104 * normal/misc.c: Include grub/mm.h.
49106 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
49107 vbe_list_modes with vbetest.mod and vbeinfo.mod.
49108 (vbe_list_modes_mod_SOURCES): Removed.
49109 (vbe_list_modes_mod_CFLAGS): Likewise.
49110 (vbe_test_mod_SOURCES): Likewise.
49111 (vbe_test_mod_CFLAGS): Likewise.
49112 (vbeinfo_mod_SOURCES): New variable.
49113 (vbeinfo_mod_CFLAGS): Likewise.
49114 (vbetest_mod_SOURCES): Likewise.
49115 (vbetest_mod_CFLAGS): Likewise.
49117 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
49119 * normal/misc.c: New file.
49121 * DISTLIST: Added normal/misc.c.
49123 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
49124 DISK to HOOK. Call HOOK with DISK.
49125 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49126 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49127 * partmap/sun.c (sun_partition_map_iterate): Likewise.
49129 * normal/menu_entry.c (struct screen): Added a new member
49130 "completion_shown".
49131 (completion_buffer): New global variable.
49132 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
49133 (store_completion): New function.
49134 (complete): Likewise.
49135 (clear_completions): Likewise.
49136 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
49137 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
49138 a tab, call complete.
49140 * normal/completion.c (disk_dev): Removed.
49141 (print_simple_completion): Likewise.
49142 (print_partition_completion): Likewise.
49143 (print_func): New global variable.
49144 (add_completion): Do not take the arguments WHAT or PRINT any
49145 longer. Added a new argument TYPE. Instead of printing directly,
49146 call PRINT_FUNC if not NULL.
49147 All callers changed.
49148 (complete_device): Use a local variable DEV instead of
49149 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
49150 (grub_normal_do_completion): Take a new argument HOOK. Do not
49151 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
49152 empty string, return NULL instead.
49153 All callers changed.
49155 * normal/cmdline.c (print_completion): New function.
49157 * kern/partition.c (grub_partition_iterate): Add an argument DISK
49159 All callers changed.
49161 * kern/disk.c (grub_print_partinfo): Removed.
49163 * include/grub/partition.h (struct grub_partition_map): Add a new
49164 argument DISK into HOOK of ITERATE.
49165 (grub_partition_iterate): Add a new argument DISK to HOOK.
49167 * include/grub/normal.h (enum grub_completion_type): New enum.
49168 (grub_completion_type_t): New type.
49169 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
49170 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
49171 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
49172 (GRUB_COMPLETION_TYPE_FILE): Likewise.
49173 (grub_normal_do_completion): Added a new argument HOOK.
49174 (grub_normal_print_device_info): New prototype.
49176 * include/grub/disk.h (grub_print_partinfo): Removed.
49178 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
49179 (normal_mod_SOURCES): Likewise.
49180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49181 (normal_mod_SOURCES): Likewise.
49183 * commands/ls.c (grub_ls_list_disks): Use
49184 grub_normal_print_device_info instead of grub_print_partinfo. Free
49186 (grub_ls_list_files): Use grub_normal_print_device_info instead of
49187 duplicating the code.
49189 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49191 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
49192 follow GCS more precisely.
49193 * commands/i386/pc/vbe_test.c: Likewise.
49194 * include/grub/i386/pc/vbe.h: Likewise.
49195 * term/i386/pc/vesafb.c: Likewise.
49196 * video/i386/pc/vbe.c: Likewise.
49198 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49200 * DISTLIST: Added term/i386/pc/vesafb.c
49201 DISTLIST: Added video/i386/pc/vbe.c
49202 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
49203 DISTLIST: Added commands/i386/pc/vbe_test.c.
49204 * commands/i386/pc/vbe_list_modes.c: New file.
49205 * commands/i386/pc/vbe_test.c: Likewise.
49206 * term/i386/pc/vesafb.c: Likewise.
49207 * video/i386/pc/vbe.c: Likewise.
49208 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
49209 (grub_vbe_probe) Added prototype.
49210 (grub_vbe_set_video_mode) Likewise.
49211 (grub_vbe_get_video_mode) Likewise.
49212 (grub_vbe_get_video_mode_info) Likewise.
49213 (grub_vbe_set_pixel_rgb) Likewise.
49214 (grub_vbe_set_pixel_index) Likewise.
49215 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
49216 (pkgdata_MODULES): Added vesafb.mod.
49217 (pkgdata_MODULES): Added vbe_list_modes.mod.
49218 (pkgdata_MODULES): Added vbe_test.mod.
49219 (vbe_mod_SOURCES): Added.
49220 (vbe_mod_CFLAGS): Likewise.
49221 (vesafb_mod_SOURCES): Likewise.
49222 (vesafb_mod_CFLAGS): Likewise.
49223 (vbe_list_modes_mod_SOURCES): Likewise.
49224 (vbe_list_modes_mod_CFLAGS): Likewise.
49225 (vbe_test_mod_SOURCES): Likewise.
49226 (vbe_test_mod_CFLAGS): Likewise.
49228 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
49230 * normal/command.c (grub_command_execute): If INTERACTIVE is
49231 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
49232 CMDLINE. Disable the pager if INTERACTIVE is true.
49233 All callers are changed.
49235 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
49236 before reading a config file.
49237 * normal/main.c (read_config_file): Even if a command is not
49238 found, register it if it is within an entry.
49240 * util/grub-emu.c: Include sys/types.h and unistd.h.
49241 (options): Added --hold.
49242 (struct arguments): Added a new member "hold".
49243 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
49245 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
49246 cleared by a debugger, if it is not zero.
49248 * include/grub/normal.h (grub_command_execute): Add an argument
49251 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
49253 * DISTLIST: Added include/grub/i386/pc/vbe.h.
49255 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
49257 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
49258 program with another one, because the old one didn't detect a bug
49259 in gcc-3.4. Always use regparm 2, because the new test is still
49260 not enough for gcc-4.0. Someone must investigate a simple test
49261 case which detects a bug in gcc-4.0.
49263 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
49265 * DISTLIST: Added normal/completion.c.
49267 * normal/completion.c: New file.
49269 * term/i386/pc/console.c (grub_console_getwh): New function.
49270 (grub_console_term): Assign grub_console_getwh to getwh.
49272 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
49273 function is defined in normal/completion.c as
49274 grub_normal_do_completion.
49275 (grub_cmdline_get): Use grub_normal_do_completion instead of
49278 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
49279 returns non-zero, otherwise return 0.
49280 (grub_partition_iterate): First, probe the partition map. Then,
49281 call ITERATE only for this partition map.
49283 * kern/misc.c (grub_strncmp): Rewritten.
49285 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
49286 returns non-zero. Otherwise return 0.
49288 * include/grub/partition.h (grub_partition_map_iterate): Return
49289 int instead of void.
49291 * include/grub/normal.h (grub_normal_do_completion): New prototype.
49293 * include/grub/misc.h (grub_strncmp): Change the type of N to
49296 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
49299 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
49300 unsigned explicitly before comparing it with I.
49302 * kern/main.c (grub_env_write_root): Add the attribute unused into
49305 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49306 normal/completion.c.
49307 (normal_mod_SOURCES): Likewise.
49308 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
49309 (normal_mod_SOURCES): Likewise.
49311 * normal/command.c (grub_iterate_commands): If ITERATE returns
49312 non-zero, return one immediately.
49314 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
49316 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
49317 * kern/i386/pc/startup.S: Updated Global Descriptor table's
49319 (grub_vbe_get_controller_info): New function.
49320 (grub_vbe_get_mode_info): Likewise.
49321 (grub_vbe_set_mode): Likewise.
49322 (grub_vbe_get_mode): Likewise.
49323 (grub_vbe_set_memory_window): Likewise.
49324 (grub_vbe_get_memory_window): Likewise.
49325 (grub_vbe_set_scanline_length): Likewise.
49326 (grub_vbe_get_scanline_length): Likewise.
49327 (grub_vbe_set_display_start): Likewise.
49328 (grub_vbe_get_display_start): Likewise.
49329 (grub_vbe_set_palette_data): Likewise.
49330 * include/grub/i386/pc/vbe.h: New file.
49332 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49334 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49335 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
49336 * DISTLIST: Likewise.
49337 * kern/ieee1275/of.c: Moved to ...
49338 * kern/ieee1275/ieee1275.c: ... here.
49340 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49342 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
49343 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
49344 Pass 0 as `end' parameter to grub_strtoul().
49346 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49348 * include/grub/powerpc/ieee1275/console.h: Do not include
49349 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
49351 (grub_console_cur_color): Remove i386-specific prototype.
49352 (grub_console_real_putchar): Likewise.
49353 (grub_console_checkkey): Likewise.
49354 (grub_console_getkey): Likewise.
49355 (grub_console_getxy): Likewise.
49356 (grub_console_gotoxy): Likewise.
49357 (grub_console_cls): Likewise.
49358 (grub_console_setcursor): Likewise.
49359 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
49360 Include <grub/machine/console.h>.
49361 * term/ieee1275/ofconsole.c: Likewise.
49363 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
49365 * Makefile.in (LIBLZO): New variable.
49367 * configure.ac: Check for LZO version 2.
49369 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
49370 lzo/lzo1x.h instead of lzo1x.h.
49372 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
49375 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
49376 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
49378 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
49379 copying the data from PARTITION to P.
49381 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49383 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
49384 negative, unload the module.
49386 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
49387 map is "pc_partition_map" but not "pc".
49388 (usage): Fix the description. The options are --boot-image and
49389 --core-image but not --boot-file or --core-file.
49390 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
49391 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
49394 * util/i386/pc/grub-install.in: Do not specify --boot-file or
49395 --core-file. Specify INSTALL_DEVICE as an argument.
49397 * util/console.c: Include config.h.
49398 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
49399 [HAVE_NCURSES_H]: Include ncurses.h.
49400 [HAVE_CURSES_H]: Include curses.h.
49401 [!A_NORMAL] (A_NORMAL): Defined as zero.
49402 [!A_STANDOUT] (A_STANDOUT): Likewise.
49404 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
49406 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
49408 * configure.ac: Check for curses libraries and headers.
49410 * Makefile.in (LIBCURSES): New variable.
49412 * genmk.rb (Script::rule): Set the executable bits.
49414 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
49415 name of the PC partition map is "pc_partition_map" but not "pc".
49417 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49419 * util/i386/pc/grub-install.in (grub_probefs): New variable.
49420 (modules): Likewise.
49421 (usage): Added descriptions for --modules and --grub-probefs.
49422 Handle --modules and --grub-probefs. Save the arguments in MODULES
49423 and GRUB_PROBEFS, respectively.
49424 Auto-detect a filesystem module against GRUBDIR. If the result is
49425 empty and modules are not specified explicitly, abort the
49426 installation. Add the result to MODULES.
49428 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
49429 disk/powerpc/ieee1275/ofdisk.c,
49430 include/grub/powerpc/ieee1275/init.h and
49431 term/powerpc/ieee1275/ofconsole.c.
49432 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
49433 term/ieee1275/ofconsole.c.
49435 * include/grub/powerpc/ieee1275/console.h: Resurrected.
49437 * COPYING: Upgraded to the latest version. Only the address of the
49438 FSF office has changed.
49440 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49442 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49443 kern/ieee1275.c with kern/ieee1275/of.c.
49445 * kern/ieee1275.c: Moved to ...
49446 * kern/ieee1275/of.c: ... here.
49448 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
49450 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
49453 * config.guess: Updated to the latest version from gnulib.
49454 * config.sub: Likewise.
49455 * install.sh: Likewise.
49456 * mkinstalldirs: Likewise.
49458 * include/grub/console.h: Removed. This file is arch-specific. Do
49459 not put this in include/grub.
49461 * include/grub/i386/pc/console.h: Resurrected.
49463 * util/console.c: Include grub/machine/console.h instead of
49465 * util/grub-emu.c: Likewise.
49467 2005-08-04 Marco Gerards <metgerards@student.han.nl>
49469 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
49472 From Vincent Pelletier <subdino2004@yahoo.fr>
49473 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
49474 Redefined to use grub_getwh.
49475 (grub_term): New member named getwh.
49476 (grub_getwh): New prototype.
49477 * kern/term.c (grub_getwh): New function.
49478 * term/i386/pc/console.c (grub_console_getwh): New function.
49479 (grub_console_term): New member `getwh'.
49480 * term/i386/pc/vga.c (grub_vga_getwh): New function.
49481 (grub_vga_term): New member `getwh'.
49482 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
49484 (grub_ofconsole_getw): New function.
49485 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
49486 (grub_ofconsole_term): New field named getwh and new initial
49489 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
49491 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
49492 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
49493 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
49494 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
49495 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
49496 of <grub/machine/ieee1275.h>.
49497 * commands/ieee1275/reboot.c: Likewise.
49498 * boot/powerpc/ieee1275/ieee1275.c: Move ...
49499 * kern/ieee1275.c: ... to here. All users updated. Change all
49500 parameter structs to use new type `grub_ieee1275_cell_t'.
49501 * term/powerpc/ieee1275/ofconsole.c: Move ...
49502 * term/ieee1275/ofconsole.c: ... to here. All users updated.
49503 * disk/powerpc/ieee1275/ofdisk.c: Move ...
49504 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
49505 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
49507 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
49508 Remove unused prototypes. All users updated.
49509 * include/grub/powerpc/ieee1275/console.h: Removed.
49510 * include/grub/powerpc/ieee1275/ieee1275.h: Define
49511 `grub_ieee1275_cell_t'.
49512 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
49513 Cast comparisons with -1 to the correct type.
49514 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
49515 type to match `grub_ieee1275_entry_fn'.
49517 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
49519 * DISTLIST: Added util/i386/pc/grub-probefs.c.
49521 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
49522 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
49524 (grub_probefs_SOURCES): New variable.
49526 * util/i386/pc/grub-probefs.c: New file.
49528 * util/i386/pc/grub-setup.c (main): Call
49529 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
49530 grub_hfs_init and grub_jfs_init to initialize the system. Call
49531 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
49532 grub_pc_partition_map_fini to finish the system.
49534 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
49536 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
49538 (grub_multiboot_load_elf32): Likewise.
49539 (grub_multiboot_is_elf64): Likewise.
49540 (grub_multiboot_load_elf64): Likewise.
49541 (grub_multiboot_load_elf): Likewise.
49542 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
49543 an ELF32 or ELF64 file.
49544 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
49546 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
49547 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
49548 NULL before calling FS->LABEL.
49549 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
49550 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
49551 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
49552 before calling FS->LABEL.
49554 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
49556 * util/i386/pc/grub-install.in (datadir): New variable.
49558 (pkgdatadir): New variable.
49559 (pkglibdir): Removed.
49561 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
49563 * DISTLIST: Added util/i386/pc/grub-install.in.
49565 * util/i386/pc/grub-install.in: New file.
49567 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
49568 (grub_install_SOURCES): Likewise.
49570 * genmk.rb: Added support for scripts.
49571 (Script): New class.
49572 (scripts): New variable.
49574 * Makefile.in (install-local): Install sbin_SCRIPTS by
49576 (uninstall): Remove sbin_SCRIPTS.
49578 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
49579 device, try to get a GRUB device by
49580 grub_util_biosdisk_get_grub_dev.
49583 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
49584 description for --device-map.
49586 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49588 Change the semantics of variable hooks. They now return strings
49589 instead of error values.
49591 * util/i386/pc/grub-setup.c: Include grub/env.h.
49592 (setup): Use grub_device_set_root instead of grub_env_set.
49594 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
49595 grub_env_get instead of grub_device_set_root and
49596 grub_device_get_root, respectively.
49598 * kern/main.c (grub_env_write_root): New function.
49599 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
49600 grub_env_set instead of grub_device_set_root.
49602 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
49604 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
49605 rather than calling ENV->WRITE_HOOK afterwards.
49606 (grub_env_get): Return the result of ENV->READ_HOOK rather than
49607 passing a pointer of a pointer.
49608 (grub_register_variable_hook): Change the types of "read_hook" and
49609 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
49611 Allocate the default empty string on the heap, because this string
49612 may be freed later.
49614 * kern/device.c: Include grub/env.h.
49615 (grub_device_set_root): Removed.
49616 (grub_device_get_root): Likewise.
49617 (grub_device_open): Use grub_env_get instead of
49618 grub_device_get_root.
49620 * include/grub/env.h (grub_env_read_hook_t): New type.
49621 (grub_env_write_hook_t): Likewise.
49622 (grub_env_var): Change the types of "read_hook" and "write_hook"
49623 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
49624 (grub_register_variable_hook): Likewise.
49626 * include/grub/device.h (grub_device_set_root): Removed.
49627 (grub_device_set_root): Likewise.
49629 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
49630 make sure that DIRNAME terminates with '/', so that
49631 grub_fat_find_dir will fail if PATH is not a directory.
49633 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
49635 Use the qualifier auto for print_files and print_files_long.
49636 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
49638 Put a newline only if there is no error.
49639 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
49642 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49644 * kern/partition.c (grub_partition_probe): Initialize PART to
49645 NULL. Otherwise, when no partition map is registered, this returns
49648 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
49650 * partmap/apple.c (apple_partition_map_iterate): Check if POS
49651 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
49654 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
49656 * commands/ls.c (grub_ls_list_disks): Print the filesystem
49657 information on each device, if it does not have partitions. Print
49658 "Device" instead of "Disk", because this function is not specific
49661 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
49662 static to ensure that it is put on the memory rather than a
49665 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49667 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
49668 (grub_cat_init): Likewise.
49669 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
49670 (options): Likewise.
49671 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
49672 (grub_configfile_init): Likewise.
49673 * font/manager.c (GRUB_MOD_INIT): Likewise.
49674 * commands/help.c (GRUB_MOD_INIT): Likewise.
49675 (grub_help_init): Likewise.
49676 * normal/command.c (grub_command_init): Likewise.
49677 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
49678 * disk/loopback.c (grub_loop_init): Likewise.
49679 (GRUB_MOD_INIT): Likewise.
49680 * commands/ls.c (grub_ls_init): Likewise.
49681 (GRUB_MOD_INIT): Likewise.
49682 (options): Likewise.
49683 * commands/boot.c (grub_boot_init): Likewise.
49684 (GRUB_MOD_INIT): Likewise.
49685 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
49686 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
49687 (GRUB_MOD_INIT): Likewise.
49688 * commands/cmp.c (grub_cmp_init): Likewise.
49689 (GRUB_MOD_INIT): Likewise.
49691 * normal/arg.c: Use <> instead of "" to include header files.
49692 (SHORT_ARG_HELP): New macro.
49693 (SHORT_ARG_USAGE): Likewise.
49694 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
49695 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
49697 (find_short): Check if C is 'h' or 'u' explicitly.
49698 (grub_arg_show_help): Use space characters instead of tabs. Treat
49699 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
49700 are shown with --help and --usage only if they are not used for
49701 the command itself.
49702 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
49705 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
49706 const into "longarg". Change the type of "shortarg" to int.
49708 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49710 * boot/i386/pc/boot.S (boot_drive_check): New label.
49712 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
49715 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
49716 which do not pass a boot drive correctly. Copied from GRUB Legacy.
49718 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49720 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
49721 When turning off Gate A20, skip the check and return immediately,
49722 because this is not fatal usually.
49724 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49726 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
49727 be 0x7C00 instead of 0x8000.
49729 * boot/i386/pc/pxeboot.S: Rewritten.
49731 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
49733 (gate_a20_check_state): Read a byte from 0x108000. Invert the
49736 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
49738 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
49739 robustness. This routine now supports a BIOS call and System
49740 Control Port A to modify the gate A20.
49742 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
49743 Increased to 0x440.
49745 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
49747 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
49748 device path and resulting ihandle.
49749 (grub_ofdisk_close): dprintf the ihandle being closed.
49750 (grub_ofdisk_read): dprintf function parameters.
49751 * kern/mm.c (grub_mm_init_region): Likewise.
49752 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
49753 (grub_linux_boot): dprintf the Linux entry point, initrd address and
49754 size, and boot arguments.
49755 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
49756 before loading into memory.
49757 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
49758 before loading into memory.
49760 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
49762 * kern/mm.c: Added much documentation.
49763 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
49764 8, set to 5 instead of 8.
49766 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
49768 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
49770 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
49771 (grub_mkdevicemap_SOURCES): New variable.
49773 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
49774 lib/device.c of GRUB Legacy.
49776 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
49778 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
49779 instead of PATH is NULL.
49781 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
49783 * commands/cmp.c (BUFFER_SIZE): New macro.
49784 (grub_cmd_cmp): Close the right file at the right time. Compare
49785 only data just read. Don't report files of different size as
49786 identical. Dynamically allocate buffers. Move variable
49787 declarations at the beginning of function.
49789 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
49791 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49794 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49796 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49797 when backspace is pressed at beginning of line.
49799 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
49801 * DISTLIST: Added genfslist.sh.
49803 * normal/main.c (fs_module_list): New variable.
49804 (autoload_fs_module): New function.
49805 (read_fs_list): Likewise.
49806 (grub_normal_execute): Call read_fs_list.
49808 * kern/fs.c (grub_fs_autoload_hook): New variable.
49809 (grub_fs_probe): Added support for auto-loading.
49811 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49812 (grub_fs_module_list_t): New type.
49814 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49815 (grub_fs_autoload_hook): New prototype.
49817 * genfslist.sh: New file.
49819 * genmk.rb: Added a rule to generate a filesystem list.
49821 2005-06-30 Marco Gerards <metgerards@student.han.nl>
49823 * configure.ac: Fix the test for cross-compiling.
49825 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49826 define GRUB_UTIL anymore.
49828 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49829 so this function works on other systems than just big endian.
49830 (load_modules): Likewise.
49831 (add_segments): Likewise.
49833 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49835 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49836 contains `l' modifier, get a long from va_arg().
49838 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49840 * kern/mm.c (grub_free): If the next free block which is being
49841 merged is the first free block, set the first block to the block
49843 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49845 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49847 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49848 `grub_ieee1275_chosen'.
49850 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49852 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49853 (grub_ieee1275_chosen): New variable.
49854 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49856 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49857 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49858 Rename first argument to `phandle' for consistency.
49859 (grub_ieee1275_get_property_length): Likewise.
49860 (grub_ieee1275_next_property): Likewise. Change type of first argument
49861 to grub_ieee1275_phandle_t.
49862 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49863 Move export next to declaration.
49864 (grub_ieee1275_chosen): New variable.
49865 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49866 Correct cosmetic typo.
49867 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49868 `grub_ieee1275_chosen'.
49869 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49870 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49871 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49872 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49873 `grub_ieee1275_chosen'.
49875 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49877 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49879 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49880 /chosen/bootargs as "variable=value" pairs.
49882 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49884 * include/grub/misc.h (grub_dprintf): New macro.
49885 (grub_real_dprintf): New prototype.
49886 (grub_strword): Likewise.
49887 (grub_iswordseparator): Likewise.
49888 * kern/misc.c (grub_real_dprintf): New function.
49889 (grub_strword): Likewise.
49890 (grub_iswordseparator): Likewise.
49892 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49894 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49895 (roundup): Remove macro.
49896 (grub_ieee1275_flags): Make static.
49897 (grub_ieee1275_realmode): Remove.
49898 (grub_ieee1275_test_flag): New function.
49899 (grub_ieee1275_set_flag): Likewise.
49900 (find_options): Rename to `grub_ieee1275_find_options'; update
49901 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49902 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49903 (cmain): New prototype.
49904 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49905 `grub_ieee1275_flags' directly.
49906 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49907 machine/biosdisk.h.
49908 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49909 Don't include grub/machine/init.h.
49910 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49911 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49913 (grub_ieee1275_realmode): Likewise.
49914 (grub_ieee1275_flag): New enum.
49915 (grub_ieee1275_test_flag): New prototype.
49916 (grub_ieee1275_set_flag): New prototype.
49917 * include/grub/powerpc/ieee1275/init.h: Remove file.
49918 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
49919 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
49920 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
49921 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
49923 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
49924 `grub_ieee1275_test_flag'.
49925 (grub_ieee1275_encode_devname): Likewise.
49927 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
49929 * include/grub/powerpc/ieee1275/ieee1275.h
49930 (grub_ieee1275_encode_devname): New prototype.
49931 (grub_ieee1275_get_filename): Likewise.
49932 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
49934 (grub_set_prefix): Likewise.
49935 (grub_machine_init): Call grub_set_prefix.
49936 * kern/powerpc/ieee1275/openfw.c: Fix typos.
49937 (grub_parse_type): New enum.
49938 (grub_ieee1275_get_devargs): New function.
49939 (grub_ieee1275_get_devname): Likewise.
49940 (grub_ieee1275_parse_args): Likewise.
49941 (grub_ieee1275_get_filename): Likewise.
49942 (grub_ieee1275_encode_devname): Likewise.
49944 2005-03-30 Marco Gerards <metgerards@student.han.nl>
49946 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
49947 `grub_loader_unset'.
49949 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
49951 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
49952 instead of grub_ieee1275_interpret.
49953 (grub_halt_init): New function.
49954 (grub_halt_fini): Likewise.
49955 (GRUB_MOD_INIT): Correct message grammar.
49956 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
49957 instead of grub_ieee1275_interpret.
49958 (grub_reboot_init): New function.
49959 (grub_reboot_fini): Likewise.
49960 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
49961 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
49962 util/i386/pc/misc.c with commands/ieee1275/halt.c,
49963 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
49964 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
49966 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
49968 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
49970 (grub_halt): Likewise.
49971 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
49972 (cmain): Remove __attribute__((unused)).
49973 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
49974 (grub_heap_len): Likewise.
49975 (grub_machine_fini): New function.
49976 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
49977 (grub_halt): Likewise.
49978 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
49980 * util/powerpc/ieee1275/misc.c: New file.
49982 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
49984 * DISTLIST: New file.
49985 * gendistlist.sh: Likewise.
49987 * Makefile.in (COMMON_DISTFILES): Removed.
49988 (BOOT_DISTFILES): Likewise.
49989 (CONF_DISTFILES): Likewise.
49990 (DISK_DISTFILES): Likewise.
49991 (FS_DISTFILES): Likewise.
49992 (INCLUDE_DISTFILES): Likewise.
49993 (KERN_DISTFILES): Likewise.
49994 (LOADER_DISTFILES): Likewise.
49995 (TERM_DISTFILES): Likewise.
49996 (UTIL_DISTFILES): Likewise.
49997 (DISTFILES): Likewise.
49998 (uninstall): Uninstall files in $(pkgdata_DATA).
49999 (DISTLIST): New target.
50000 (distdir): Use the contents of the file DISTLIST to get a list of
50003 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
50005 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
50006 descriptor. This is ported from GRUB Legacy.
50008 * gencmdlist.sh: Added an extra semicolon to make it work with
50009 old sed versions. Reported by Robert Bihlmeyer
50010 <robbe@orcus.priv.at>.
50012 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
50014 Automatic loading of commands is supported.
50016 * normal/main.c (read_command_list): New function.
50017 (grub_normal_execute): Call read_command_list.
50019 * normal/command.c (grub_register_command): Return zero or CMD.
50020 Allocate CMD->NAME from the heap.
50021 Initialize CMD->MODULE_NAME to zero.
50022 Find the same name as well. If the same command is found and it is
50023 a dummy command, overwrite members. If it is not a dummy command,
50025 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
50026 (grub_command_find): If a dummy command is found, load a module
50027 and retry to find a command only once.
50029 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
50030 make sure that each command is loaded.
50032 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
50034 (struct grub_command): Remove const from the member `name'.
50035 Add a new member `module_name'.
50036 (grub_register_command): Return grub_command_t.
50038 * commands/help.c (grub_cmd_help): Call grub_command_find to make
50039 sure that each command is loaded.
50041 * genmk.rb (PModule::rule): Specify a module name without the
50042 suffix ".mod" to gencmdlist.sh.
50044 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50046 * gencmdlist.sh: New file.
50048 * genmk.rb (PModule::rule): Generate a rule for a command list.
50050 Generate command.lst from $(COMMANDFILES).
50052 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
50053 (DATA): Added $(pkgdata_DATA).
50054 (install-local): Install files in $(pkgdata_DATA).
50056 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50058 * term/i386/pc/vga.c (debug_command): Removed.
50059 (GRUB_MOD_INIT): Do not register the command "debug".
50061 From Hollis Blanchard:
50062 * commands/configfile.c: New file.
50063 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50064 commands/configfile.c.
50065 (pkgdata_MODULES): Added configfile.mod.
50066 (configfile_mod_SOURCES): New variable.
50067 (configfile_mod_CFLAGS): Likewise.
50068 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50069 commands/configfile.c.
50070 (pkgdata_MODULES): Added configfile.mod.
50071 (configfile_mod_SOURCES): New variable.
50072 (configfile_mod_CFLAGS): Likewise.
50073 * util/grub-emu.c (main): Call grub_configfile_init and
50074 grub_configfile_fini.
50075 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
50077 [GRUB_UTIL] (grub_configfile_fini): Likewise.
50079 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50081 * normal/arg.c (grub_arg_show_help): Do not show the bug report
50084 * commands/help.c (grub_cmd_help): Do not print newlines after
50085 the last command in print_command_help.
50087 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50089 * commands/default.h: New file.
50090 * commands/timeout.h: Likewise.
50091 * normal/context.c: Likewise.
50093 * util/misc.c: Do not include sys/times.h.
50094 Include sys/time.h and grub/machine/time.h.
50095 (grub_get_rtc): Rewritten with gettimeofday.
50097 * util/grub-emu.c (main): Call grub_default_init and
50098 grub_timeout_init before grub_normal_init, and call
50099 grub_timeout_fini and grub_default_fini after grub_main.
50101 * util/console.c (grub_ncurses_checkkey): Return the read
50104 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
50107 * normal/main.c (read_config_file): Push MENU. If this fails,
50108 print an error and wait for a user input.
50109 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
50110 If a menu is empty or an error occurs, pop MENU.
50111 (grub_normal_execute): Pop and free MENU after grub_menu_run
50114 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
50116 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
50118 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50120 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
50122 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50125 * include/grub/normal.h (struct grub_menu_list): New struct.
50126 (grub_menu_list_t): New type.
50127 (struct grub_context): New struct.
50128 (grub_context_t): New type.
50129 (grub_register_command): Got rid of EXPORT_FUNC.
50130 (grub_unregister_command): Likewise.
50131 (grub_context_get): New prototype.
50132 (grub_context_get_current_menu): Likewise.
50133 (grub_context_push_menu): Likewise.
50134 (grub_context_pop_menu): Likewise.
50135 [GRUB_UTIL] (grub_default_init): Likewise.
50136 [GRUB_UTIL] (grub_default_fini): Likewise.
50137 [GRUB_UTIL] (grub_timeout_init): Likewise.
50138 [GRUB_UTIL] (grub_timeout_fini): Likewise.
50140 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
50141 commands/timeout.c and normal/context.c.
50142 (pkgdata_MODULES): Added default.mod and timeout.mod.
50143 (normal_mod_SOURCES): Added normal/context.c.
50144 (default_mod_SOURCES): New variable.
50145 (default_mod_CFLAGS): Likewise.
50146 (timeout_mod_SOURCES): Likewise.
50147 (timeout_mod_CFLAGS): Likewise.
50148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
50150 (pkgdata_MODULES): Added default.mod and timeout.mod.
50151 (normal_mod_SOURCES): Added normal/context.c.
50152 (default_mod_SOURCES): New variable.
50153 (default_mod_CFLAGS): Likewise.
50154 (timeout_mod_SOURCES): Likewise.
50155 (timeout_mod_CFLAGS): Likewise.
50157 * Makefile.in (all-local): Added $(MKFILES).
50159 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
50161 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
50162 (grub_emu_SOURCES): Likewise.
50163 (pkgdata_MODULES): Add `sun.mod'.
50164 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50167 (pkgdata_MODULES): Add `sun.mod'.
50168 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50169 * include/grub/partition.h (grub_sun_partition_map_init): New
50171 (grub_sun_partition_map_fini): Likewise.
50172 * partmap/sun.c: New file.
50173 * util/grub-emu.c (main): Initialize and de-initialize the sun
50174 partitionmap support.
50176 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
50178 This implements an Emacs-like menu entry editor.
50180 * normal/menu_entry.c: New file.
50182 * util/console.c (grub_ncurses_putchar): Translate some Unicode
50183 characters to ASCII.
50184 (saved_char): New variable.
50185 (grub_ncurses_checkkey): Rewritten completely.
50186 (grub_ncurses_getkey): Likewise.
50187 (grub_ncurses_init): Call raw instead of cbreak.
50189 * normal/menu.c (print_entry): Do not put a space.
50190 (init_page): Renamed to ...
50191 (grub_menu_init_page): ... this. All callers changed.
50192 (edit_menu_entry): Removed.
50193 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
50195 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
50197 * kern/misc.c (grub_vprintf): Call grub_refresh.
50199 * normal/menu.c (DISP_LEFT): Renamed to ...
50200 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
50201 * normal/menu.c (DISP_UP): Renamed to ...
50202 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
50203 * normal/menu.c (DISP_RIGHT): Renamed to ...
50204 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
50205 * normal/menu.c (DISP_DOWN): Renamed to ...
50206 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
50207 * normal/menu.c (DISP_HLINE): Renamed to ...
50208 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
50209 * normal/menu.c (DISP_VLINE): Renamed to ...
50210 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
50211 * normal/menu.c (DISP_UL): Renamed to ...
50212 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
50213 * normal/menu.c (DISP_UR): Renamed to ...
50214 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
50215 * normal/menu.c (DISP_LL): Renamed to ...
50216 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
50217 * normal/menu.c (DISP_LR): Renamed to ...
50218 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
50219 * normal/menu.c (TERM_WIDTH): Renamed to ...
50220 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
50221 * normal/menu.c (TERM_HEIGHT): Renamed to ...
50222 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
50223 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
50224 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
50225 * normal/menu.c (TERM_MARGIN): Renamed to ...
50226 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
50227 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
50228 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
50229 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
50230 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
50231 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
50232 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
50233 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
50234 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
50235 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
50236 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
50237 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
50238 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
50239 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
50240 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
50241 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
50242 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
50243 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
50244 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
50245 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
50246 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
50247 All callers changed.
50249 * include/grub/normal.h: New prototype.
50251 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50252 normal/menu_entry.c.
50253 (normal_mod_SOURCES): Likewise.
50254 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50255 (normal_mod_SOURCES): Likewise.
50257 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
50259 * include/grub/normal.h (grub_halt_init): New prototype.
50260 (grub_halt_fini): Likewise.
50261 (grub_reboot_init): Likewise.
50262 (grub_reboot_fini): Likewise.
50264 * util/grub-emu.c: Include signal.h.
50265 (main_env): New global variable.
50266 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
50268 (grub_machine_fini): New function.
50269 (main): Call grub_halt_init and grub_reboot_init before
50270 grub_main, and grub_reboot_fini and grub_halt_fini after it.
50271 Call setjmp with MAIN_ENV to go back afterwards.
50272 Call grub_machine_fini right before return.
50274 * include/grub/util/misc.h: Include setjmp.h.
50275 (main_env): New prototype.
50277 * include/grub/kernel.h (grub_machine_fini): New prototype.
50278 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
50279 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
50281 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
50282 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
50283 * term/i386/pc/console.c (grub_console_fini): Likewise.
50285 * util/i386/pc/misc.c: New file.
50287 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50288 util/i386/pc/misc.c, commands/i386/pc/halt.c and
50289 commands/i386/pc/reboot.c.
50291 2005-02-14 Guillem Jover <guillem@hadrons.org>
50293 * include/grub/dl.h (grub_dl_check_header): New prototype.
50294 (grub_arch_dl_check_header): Change return type to grub_err_t,
50295 remove size parameter and export function. Update all callers.
50296 * kern/dl.c (grub_dl_check_header): New function.
50297 (grub_dl_load_core): Use `grub_dl_check_header' instead of
50298 `grub_arch_dl_check_header'. Check ELF type. Check if sections
50299 are inside the core.
50300 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
50301 independent ELF header checks.
50302 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50303 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
50304 `grub_dl_check_header' instead of explicit checks. Check for the
50306 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
50307 `grub_dl_check_header' instead of explicit checks. Remove arch
50308 specific ELF header checks.
50310 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
50313 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
50315 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
50316 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
50318 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
50320 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
50321 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
50322 (part_map_iterate): Clear `grub_errno' and return 0 if
50323 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
50324 * partmap/amiga.c (amiga_partition_map_iterate): Return
50325 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
50326 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50328 2005-02-01 Guillem Jover <guillem@hadrons.org>
50330 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
50333 2005-01-31 Marco Gerards <metgerards@student.han.nl>
50335 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
50337 (grub_rescue_cmd_linux): New prototype.
50338 (grub_rescue_cmd_initrd): Likewise.
50339 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
50341 (grub_linux_release_mem): Release the memory for the initrd.
50342 (grub_load_linux): Renamed from this...
50343 (grub_rescue_cmd_linux): ...To this. Changed all callers.
50344 Changed `entry' not to be static. Loop over memory regions to
50345 find another one when the default fails.
50346 (grub_rescue_cmd_initrd): New function.
50347 (grub_linux_init): Remove function.
50348 (grub_linux_fini): Likewise.
50349 (GRUB_MOD_INIT): Register `initrd'.
50350 (GRUB_MOD_FINI): Unregister `initrd'.
50351 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
50353 (grub_linux_normal_fini): Likewise.
50354 (GRUB_MOD_INIT): Register `initrd'.
50355 (GRUB_MOD_FINI): Unregister `initrd'.
50357 2005-01-31 Marco Gerards <metgerards@student.han.nl>
50359 * commands/help.c: New file.
50360 * normal/arg.c (show_help): Renamed to...
50361 (grub_arg_show_help): ... this.
50362 * commands/i386/pc/halt.c: New file.
50363 * commands/i386/pc/reboot.c: Likewise.
50364 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
50365 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
50366 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
50367 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
50369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50371 (pkgdata_MODULES): Add `help.mod'.
50372 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
50373 * grub/i386/pc/init.h (grub_reboot): New prototype.
50374 (grub_halt): Likewise.
50375 * include/grub/normal.h (grub_arg_show_help): New prototype.
50376 (grub_help_init): Likewise.
50377 (grub_help_fini): Likewise.
50378 * util/grub-emu.c (main): Initialize and deinitialize the help
50381 * normal/cmdline.c (grub_cmdline_get): Doc fix.
50383 * normal/command.c (grub_command_init): Fixed the description of
50384 the `set' and `unset' commands.
50386 2005-01-31 Marco Gerards <metgerards@student.han.nl>
50388 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
50390 * commands/ieee1275/halt.c: New file.
50391 * commands/ieee1275/reboot.c: Likewise.
50392 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
50393 `__attribute__ ((unused))'. Some GCS related fixed.
50394 (grub_suspend_init) [GRUB_UTIL]: Function removed.
50395 (grub_suspend_fini): Likewise.
50396 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
50398 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
50399 (halt_mod_CFLAGS): New variables.
50400 * include/grub/powerpc/ieee1275/ieee1275.h
50401 (grub_ieee1275_interpret): New prototype.
50403 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
50405 * include/grub/misc.h (memmove): New prototype.
50406 (memcpy): Likewise.
50408 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
50410 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
50411 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
50413 2005-01-22 Marco Gerards <metgerards@student.han.nl>
50415 * kern/misc.c (grub_strndup): Function rewritten.
50417 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
50419 * normal/menu.c (TERM_WIDTH): Macro redefined.
50420 (TERM_TOP_BORDER_Y): Likewise.
50421 (draw_border): Replaced while-loop by a for-loop. Make the number
50422 of lines consistent with the number of lines displayed in
50423 print_entries. Added a margin below the rectangle.
50424 (print_entry): Make the entry fit in the rectangle.
50425 (print_entries): Display the scroll arrows next to the right
50428 2005-01-21 Marco Gerards <metgerards@student.han.nl>
50430 * fs/minix.c (grub_minix_find_file): Reserve more space for
50431 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
50432 `grub_strncpy' to copy `path' into it.
50434 2005-01-21 Marco Gerards <metgerards@student.han.nl>
50436 Add the loopback device, a device via which files can be accessed
50439 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
50440 (pkgdata_MODULES): Add loopback.mod.
50441 (loopback_mod_SOURCES): New variable.
50442 (loopback_mod_CFLAGS): Likewise.
50443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50445 (pkgdata_MODULES): Add loopback.mod.
50446 (loopback_mod_SOURCES): New variable.
50447 (loopback_mod_CFLAGS): Likewise.
50448 * disk/loopback.c: new file.
50449 * include/grub/normal.h (grub_loop_init): New prototype.
50450 (grub_loop_fini): New prototype.
50451 * util/grub-emu.c (main): Initialize and de-initialize loopback
50453 * include/grub/disk.h (grub_disk_dev_id): Add
50454 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
50456 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
50458 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
50460 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
50461 (suspend_mod_SOURCES): New variable.
50462 (suspend_mod_CFLAGS): Likewise.
50463 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
50465 * commands/ieee1275/suspend.c: New file.
50467 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50469 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
50470 ((unused))' to `__attribute__ ((used))'.
50471 (GRUB_MOD_FINI): Likewise.
50472 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
50473 * genmk.rb (PModule): Assign space to common symbols when linking
50476 2005-01-20 Marco Gerards <metgerards@student.han.nl>
50478 * include/grub/mm.h (grub_mm_init_region): Change the type of the
50479 `unsigned' arguments to `grub_size_t'.
50480 (grub_malloc): Likewise.
50481 (grub_realloc): Likewise.
50482 (grub_memalign): Likewise.
50483 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
50484 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50485 * util/misc.c (grub_malloc): Likewise.
50486 (grub_realloc): Likewise.
50487 * kern/mm.c (get_header_from_pointer): Change the casts to
50488 `unsigned' into a cast to `grub_size_t'.
50490 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
50491 point to `currnode' when `currnode' is changed.
50493 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
50494 Schottelius <nico-linux@schottelius.org>.
50496 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
50498 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
50499 (note_path): Remove variable.
50500 (GRUB_IEEE1275_NOTE_NAME): New macro.
50501 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
50502 (grub_ieee1275_note_hdr): New structure.
50503 (grub_ieee1275_note_desc): Likewise.
50504 (grub_ieee1275_note): Likewise.
50505 (load_note): Remove `dir' argument. All callers updated. Remove
50506 `note_img' and `path'. Do not load a file from `note_path'.
50507 Initialize a struct grub_ieee1275_note and write that to `out'.
50508 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
50510 2005-01-05 Marco Gerards <metgerards@student.han.nl>
50512 * util/misc.c (grub_util_read_image): Revert last change. It
50513 called `grub_util_read_at', which seeks from the beginning of the
50516 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
50518 * TODO: Add note about endianness in grub-mkimage.
50519 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
50521 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
50522 (grub_mkimage_SOURCES): New target.
50523 * include/grub/kernel.h (grub_start_addr): Remove variable.
50524 (grub_end_addr): Likewise.
50525 (grub_total_module_size): Likewise.
50526 (grub_kernel_image_size): Likewise.
50527 (GRUB_MODULE_MAGIC): New constant.
50528 (grub_module_info): New structure.
50529 (grub_arch_modules_addr): New prototype.
50530 (grub_get_end_addr): Remove prototype.
50531 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
50532 * include/grub/powerpc/ieee1275/kernel.h: New file.
50533 * include/grub/util/misc.h (grub_util_get_fp_size): New
50535 (grub_util_read_at): Likewise.
50536 (grub_util_write_image_at): Likewise.
50537 * kern/main.c (grub_get_end_addr): Remove function.
50538 (grub_load_modules): Call grub_arch_modules_addr instead of using
50539 grub_end_addr. Look for a grub_module_info struct in memory. Use
50540 the grub_module_info fields instead of calling grub_get_end_addr
50541 as loop conditions. Move grub_add_unused_region code here.
50542 (grub_add_unused_region): Remove function.
50543 * kern/i386/pc/init.c: Include grub/cache.h.
50544 (grub_machine_init): Remove call to grub_get_end_addr. Remove
50545 one call to add_mem_region.
50546 (grub_arch_modules_addr): New function.
50547 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
50548 (grub_total_module_size): Likewise.
50549 Include grub/machine/kernel.h.
50550 (grub_arch_modules_addr): New function.
50551 * util/grub-emu.c (grub_end_addr): Remove variable.
50552 (grub_total_module_size): Likewise.
50553 (grub_arch_modules_addr): New function.
50554 * util/misc.c: Include unistd.h.
50555 (grub_util_get_fp_size): New function.
50556 (grub_util_read_at): Likewise.
50557 (grub_util_write_image_at): Likewise.
50558 (grub_util_read_image): Call grub_util_read_at.
50559 (grub_util_write_image): Call grub_util_write_image_at.
50560 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
50561 additional memory in kernel_img for a struct grub_module_info.
50562 Fill in that grub_module_info.
50563 * util/powerpc/ieee1275/grub-mkimage.c: New file.
50565 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50567 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
50569 * include/grub/powerpc/ieee1275/ieee1275.h
50570 (grub_ieee1275_milliseconds): New prototype.
50571 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
50573 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
50574 grub_ieee1275_milliseconds.
50576 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50578 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
50580 (find_options): New function.
50581 (cmain): Call find_options.
50582 * include/grub/powerpc/ieee1275/ieee1275.h
50583 (grub_ieee1275_realmode): New extern variable.
50584 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
50585 grub_map if grub_ieee1275_realmode is false.
50587 2004-12-29 Marco Gerards <metgerards@student.han.nl>
50589 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
50590 lines are inserted and make it work like readline. Reported by
50591 Vincent Pelletier <subdino2004@yahoo.fr>.
50593 2004-12-28 Marco Gerards <metgerards@student.han.nl>
50595 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
50597 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
50598 `kern/powerpc/cache.S'.
50600 2004-12-27 Marco Gerards <metgerards@student.han.nl>
50602 * genmk.rb: Handle the `Program' class in the main loop. Written
50603 by Johan Rydberg <jrydberg@gnu.org>.
50604 (Program): New class.
50605 (programs): New variable.
50606 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
50607 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
50608 instead of "grub/kernel.h". Include <grub/machine/init.h>.
50609 (help_arch): Function removed.
50610 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
50611 `powerpc/libgcc.h' and `loader.h'.
50612 (pkgdata_PROGRAMS): New variable.
50613 (sbin_UTILITIES): Variable removed.
50614 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
50615 (grubof_SOURCES): Variable re-defined so it only includes the
50616 core functionality.
50617 (grubof_CFLAGS): Remove `-DGRUBOF'.
50618 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
50619 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
50620 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
50621 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
50622 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
50623 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
50624 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
50625 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
50626 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
50627 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
50628 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50629 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
50630 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
50631 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
50632 (pc_mod_CFLAGS): New variables.
50633 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
50634 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
50635 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
50636 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
50638 * include/grub/i386/pc/init.h (grub_os_area_addr)
50639 (rub_os_area_size): ... to here.
50640 * include/grub/powerpc/ieee1275/ieee1275.h
50641 (grub_ieee1275_entry_fn): Export symbol.
50642 * include/grub/powerpc/ieee1275/init.h: New file.
50643 * include/grub/powerpc/libgcc.h: Likewise.
50644 * include/grub/cache.h: Likewise.
50645 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
50646 <hollis@penguinppc.org>.
50647 * kern/dl.c: Include <grub/cache.h>.
50648 (grub_dl_flush_cache): New function.
50649 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
50651 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
50652 (grub_console_init): Removed prototypes.
50653 (grub_machine_init): Don't initialize the modules anymore.
50654 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
50656 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
50657 Macro undef removed.
50658 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
50659 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
50660 relocation `R_PPC_REL32'. Return an error when the relocation is
50662 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
50663 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
50664 * util/misc.c (grub_arch_sync_caches): Likewise.
50666 2004-12-19 Marco Gerards <metgerards@student.han.nl>
50668 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
50669 `symlist.c', add `grubof_symlist.c'.
50670 (symlist.c): Variable removed.
50671 (grubof_HEADERS): Variable added.
50672 (grubof_symlist.c): New target.
50673 (kernel_syms.lst): Use `grubof_HEADERS' instead of
50674 `kernel_img_HEADERS'.
50675 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
50676 * kern/powerpc/dl.c: New file.
50677 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
50679 (grub_arch_dl_relocate_symbols): Likewise.
50680 (grub_register_exported_symbols): Likewise.
50682 2004-12-13 Marco Gerards <metgerards@student.han.nl>
50684 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
50685 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
50686 to fail instead. Reported by Vincent Pelletier
50687 <subdino2004@yahoo.fr>.
50689 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
50690 it is not allocated. Reported by Vincent Pelletier
50691 <subdino2004@yahoo.fr>.
50693 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
50694 output so the output looks better.
50696 2004-12-04 Marco Gerards <metgerards@student.han.nl>
50698 Modulize the partition map support and add support for the amiga
50701 * commands/ls.c: Include <grub/partition.h> instead of
50702 <grub/machine/partition.h>.
50703 * kern/disk.c: Likewise.
50704 * kern/rescue.c: Likewise.
50705 * loader/i386/pc/chainloader.c: Likewise.
50706 * normal/cmdline.c: Likewise.
50707 * kern/powerpc/ieee1275/init.c: Likewise.
50708 (grub_machine_init): Call `grub_pc_partition_map_init',
50709 `grub_amiga_partition_map_init' and
50710 `grub_apple_partition_map_init'.
50711 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
50712 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
50713 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
50714 `partition.h' and `pc_partition.h'.
50715 (grub_setup_SOURCES): Remove
50716 `disk/i386/pc/partition.c'. Add `kern/partition.c',
50717 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50718 (grub_emu_SOURCES): Likewise.
50719 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
50720 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
50721 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
50722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50723 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
50724 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50725 (grubof_SOURCES): Likewise.
50726 * disk/i386/pc/partition.c: File removed.
50727 * disk/powerpc/ieee1275/partition.c: Likewise.
50728 * include/grub/powerpc/ieee1275/partition.h: Likewise.
50729 * include/grub/i386/pc/partition.h: Likewise.
50730 * kern/partition.c: New file.
50731 * partmap/amiga.c: Likewise.
50732 * partmap/apple.c: Likewise.
50733 * partmap/pc.c: Likewise.
50734 * include/grub/partition.h: Likewise..
50735 * include/grub/pc_partition.h: Likewise.
50736 * util/grub-emu.c: Include <grub/partition.h> instead of
50737 <grub/machine/partition.h>.
50738 (main): Call `grub_pc_partition_map_init',
50739 `grub_amiga_partition_map_init' and
50740 `grub_apple_partition_map_init' and deinitialize afterwards.
50741 * util/i386/pc/biosdisk.c: Include `#include
50742 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50743 `<grub/machine/partition.h>'.
50744 * util/i386/pc/grub-setup.c: Likewise.
50745 * util/i386/pc/biosdisk.c: Likewise.
50746 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
50747 partition information in case of a PC partition.
50748 * util/i386/pc/grub-setup.c: Include `#include
50749 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50750 `<grub/machine/partition.h>'.
50751 (setup): Only access the PC specific partition information in case
50754 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
50756 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
50757 (grub_longjmp): Likewise.
50758 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
50760 * normal/powerpc/setjmp.S: New file.
50761 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50762 `normal/powerpc/setjmp.S'.
50763 (grubof_CFLAGS): Add `-DGRUBOF'.
50764 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
50765 [GRUB_UTIL && !GRUBOF].
50767 2004-11-16 Marco Gerards <metgerards@student.han.nl>
50769 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
50770 property named `name'. Correctly handle the error returned by
50771 `grub_ieee1275_finddevice' if a device can not be opened.
50773 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
50775 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
50776 `actual' for negativity.
50777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50780 2004-11-01 Marco Gerards <metgerards@student.han.nl>
50782 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
50783 (PAGE_OFFSET): New macro.
50784 (CRTC_ADDR_PORT): Likewise.
50785 (CRTC_DATA_PORT): Likewise.
50786 (START_ADDR_HIGH_REGISTER): Likewise.
50787 (START_ADDR_LOW_REGISTER): Likewise.
50788 (GRAPHICS_ADDR_PORT): Likewise.
50789 (GRAPHICS_DATA_PORT): Likewise.
50790 (READ_MAP_REGISTER): Likewise.
50791 (INPUT_STATUS1_REGISTER): Likewise.
50792 (INPUT_STATUS1_VERTR_BIT): Likewise.
50793 (page): New variable.
50794 (wait_vretrace): New function.
50795 (set_read_map): Likewise.
50796 (set_start_address): Likewise.
50797 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50799 (check_vga_mem): Take the page into account.
50800 (write_char): Likewise.
50801 (write_cursor): Likewise.
50802 (scroll_up): Likewise. Copy the page to the page that is not
50803 shown and switch between both pages.
50804 (grub_vga_putchar): Fix off by one error.
50805 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50808 2004-11-01 Marco Gerards <metgerards@student.han.nl>
50810 Add support for iso9660 (including rockridge).
50812 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50813 (iso9660_mod_SOURCES): New variable.
50814 (iso9660_mod_CFLAGS): Likewise.
50815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50816 * include/grub/fs.h (grub_iso9660_init): New prototype.
50817 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50818 * fs/iso9660.c: New file.
50820 * include/grub/misc.h (grub_strncat): New prototype.
50821 * kern/misc.c (grub_strncat): New function.
50823 * fs/hfs.c (grub_hfs_mount): Translate the error
50824 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50825 * fs/jfs.c (grub_jfs_mount): Likewise.
50826 * fs/ufs.c (grub_ufs_mount): Likewise.
50828 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50830 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50831 which initialized BAT registers.
50832 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50833 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50835 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50836 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50838 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50839 (grub_mapclaim): Likewise.
50840 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50841 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50844 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50846 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50847 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50848 -ffreestanding and -msoft-float.
50850 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50852 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50853 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50854 set in grub_ieee1275_flags.
50856 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50858 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50860 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50861 grub_console_init first.
50862 Change the memory range used for grub_ieee1275_claim and
50863 grub_mm_init_region.
50864 Print an error message if the claim fails.
50865 Include <grub/misc.h>.
50867 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50869 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50870 Call grub_children_iterate for device nodes of type `scsi',
50872 (grub_ofdisk_open): Remove manual device alias resolution.
50873 Fix memory leak when device cannot be opened.
50874 * include/grub/powerpc/ieee1275/ieee1275.h
50875 (grub_children_iterate): New prototype.
50876 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50878 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50879 Return -1 if args.size was -1.
50881 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50883 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50884 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50885 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50886 Open Firmware's memory for it; claim memory from _start to _end.
50887 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50888 (_end): New extern.
50889 (_start): Zero BSS from __bss_start to _end.
50890 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50892 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50894 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50896 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50897 -1 if args.base was -1.
50899 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50901 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50902 escape sequence instead of a literal ^L. Also call
50903 grub_ofconsole_gotoxy.
50905 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50907 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50908 void * arguments to grub_addr_t. All callers updated. Also make
50909 the `result' argument optional.
50910 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50911 All callers updated.
50913 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50915 * commands/ls.c (grub_ls_list_files): Use the string following the
50916 initial ')', if present, as the filesystem path.
50917 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50919 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
50921 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
50923 Make the source code of the menu interface more readable.
50925 * normal/menu.c: Include grub/mm.h.
50926 (TERM_WIDTH): New macro.
50927 (TERM_HEIGHT): Likewise.
50928 (TERM_INFO_HEIGHT): Likewise.
50929 (TERM_MARGIN): Likewise.
50930 (TERM_SCROLL_WIDTH): Likewise.
50931 (TERM_TOP_BORDER_Y): Likewise.
50932 (TERM_LEFT_BORDER_X): Likewise.
50933 (TERM_BORDER_WIDTH): Likewise.
50934 (TERM_MESSAGE_HEIGHT): Likewise.
50935 (TERM_BORDER_HEIGHT): Likewise.
50936 (TERM_NUM_ENTRIES): Likewise.
50937 (TERM_FIRST_ENTRY_Y): Likewise.
50938 (TERM_ENTRY_WIDTH): Likewise.
50939 (TERM_CURSOR_X): Likewise.
50940 (draw_border): Use macros instead of magic numbers.
50941 (print_entry): Likewise.
50942 (print_entries): Likewise.
50943 (run_menu): Likewise. Also, handle the key 'e'.
50944 (run_menu_entry): Ignore empty command lines.
50945 (print_message): Added a new argument EDIT. If EDIT is true,
50946 print a different message.
50947 (init_page): Likewise.
50948 (edit_menu_entry): New function. Not implemented yet.
50950 2004-09-17 Marco Gerards <metgerards@student.han.nl>
50952 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
50953 can be loaded from normal mode.
50955 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
50957 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
50958 (multiboot_mod_CFLAGS): New variables.
50959 * loader/i386/pc/linux_normal.c: New file.
50960 * loader/i386/pc/multiboot_normal.c: Likewise.
50962 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
50963 attribute `unused'.
50965 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
50966 `fdiro' to read the mode information from instead of `diro'.
50968 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
50969 looking up a symlink.
50971 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
50973 * normal/command.c (grub_command_execute): Don't parse the
50974 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
50975 flags of the command.
50977 * normal/menu.c (grub_menu_run): Fix typo.
50979 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
50981 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
50983 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
50984 `y + 1' instead of `y - 1'.
50986 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
50988 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
50990 From Hollis Blanchard <hollis@penguinppc.org>:
50991 * kern/misc.c (memmove): New alias for grub_memmove.
50992 (memcmp): New alias for grub_memcmp.
50993 (memset): New alias for grub_memset.
50994 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50995 Change "int handle" to "grub_ieee1275_phandle_t handle".
50996 * include/grub/powerpc/ieee1275/ieee1275.h
50997 (grub_ieee1275_get_property): Likewise.
50999 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
51001 Added normal mode command `chainloader' as module chain.mod, which
51002 depends on normal.mod and _chain.mod.
51004 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
51005 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
51006 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
51008 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
51009 but arguments parsing moved to ...
51010 (grub_chainloader_cmd): ... here. New function.
51011 * include/grub/i386/pc/chainloader.h: New file.
51012 * loader/i386/pc/chainloader_normal.c: Likewise.
51014 2004-09-11 Marco Gerards <metgerards@student.han.nl>
51016 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
51017 (grub_mkimage_LDFLAGS): Likewise.
51018 (grub_emu_SOURCES): Likewise.
51019 (kernel_img_HEADERS): Added fshelp.h.
51020 * fs/ext2.c: Include <grub/fshelp.h>.
51021 (FILETYPE_REG): New macro.
51022 (FILETYPE_INO_REG): Likewise.
51023 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
51025 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
51027 (grub_fshelp_node): New struct.
51028 (grub_ext2_data): Added member `diropen'. Changed member `inode'
51030 (grub_ext2_get_file_block): Removed function.
51031 (grub_ext2_read_block): New function.
51032 (grub_ext2_read_file): Replaced parameter `data' by `node'.
51033 This function was written.
51034 (grub_ext2_mount): Read the root inode. Create a diropen struct.
51035 (grub_ext2_find_file): Removed function.
51036 (grub_ext2_read_symlink): New function.
51037 (grub_ext2_iterate_dir): Likewise.
51038 (grub_ext2_open): Rewritten.
51039 (grub_ext2_dir): Rewritten.
51040 * include/grub/fshelp.h: New file.
51041 * fs/fshelp.c: Likewise.
51043 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
51045 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
51046 (print_message): Add a missing newline.
51047 (run_menu): Added timeout support.
51048 (run_menu_entry): New local function.
51049 (grub_menu_run): Added support for booting.
51051 * kern/loader.c (grub_loader_is_loaded): New function.
51053 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
51054 (grub_get_rtc): Exported.
51056 * include/grub/i386/pc/time.h: Include grub/symbol.h.
51057 (grub_get_rtc): Exported.
51059 * include/grub/normal.h (struct grub_command_list): Remove
51060 constant from the member `command'.
51062 * include/grub/loader.h (grub_loader_is_loaded): Declared.
51064 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
51066 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
51068 2004-08-28 Marco Gerards <metgerards@student.han.nl>
51070 Add support for the JFS filesystem.
51072 * fs/jfs.c: New file.
51073 * include/grub/fs.h (grub_jfs_init): New prototype.
51074 (grub_jfs_fini): New prototype.
51075 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
51076 (grub_emu_SOURCES): Likewise.
51077 (pkgdata_MODULES): Add jfs.mod.
51078 (jfs_mod_SOURCES): New variable.
51079 (jfs_mod_CFLAGS): Likewise.
51080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
51081 (grubof_SOURCES): Likewise.
51082 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
51084 * fs/fat.c (grub_fat_find_dir): Convert the filename little
51085 endian to the host endian.
51086 (grub_fat_utf16_to_utf8): Move function from there...
51087 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
51088 the endianness of the source string anymore.
51089 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
51091 2004-08-24 Marco Gerards <metgerards@student.han.nl>
51093 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
51094 (grub_boot_fini) [GRUB_UTIL]: Likewise.
51095 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
51096 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
51098 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
51099 (grub_hfs_iterate_dir): Make the function static. Add prototypes
51100 for `node_found' and `it_dir'.
51101 (grub_hfs_dir): Add prototype for `dir_hook'.
51103 * fs/minix.c (grub_minix_get_file_block): Add prototype for
51104 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
51105 and `indir32' to silence a gcc warning.
51107 * include/grub/fs.h (grub_hfs_init): New prototype.
51108 (grub_hfs_fini): Likewise.
51111 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51113 Each disk device has its own id now. This is useful to make use
51114 of multiple disk devices.
51116 * include/grub/disk.h (grub_disk_dev_id): New enum.
51117 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
51118 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
51120 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
51121 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51123 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
51124 GRUB_DISK_DEVICE_OFDISK_ID as an id.
51126 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
51127 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51129 * include/grub/disk.h (struct grub_disk_dev): Added a new member
51130 "id" which is used by the cache manager.
51132 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
51135 2004-08-18 Marco Gerards <metgerards@student.han.nl>
51137 * fs/hfs.c: New file.
51138 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
51139 (grub_emu_SOURCES): Likewise.
51140 (pkgdata_MODULES): Add hfs.mod.
51141 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
51142 (grubof_SOURCES): Likewise.
51143 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
51145 * include/grub/misc.h (grub_strncasecmp): Add prototype.
51146 * kern/misc.c (grub_strncasecmp): Add function.
51148 2004-08-14 Marco Gerards <metgerards@student.han.nl>
51150 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
51153 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
51154 (grub_ext2_dir): In case the directory entry type is unknown, read
51157 2004-08-02 Peter Bruin <pjbruin@dds.nl>
51159 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
51160 grub_load_linux instead of grub_rescue_cmd_linux as second
51161 argument of grub_rescue_register_command.
51163 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
51165 2004-07-27 Marco Gerards <metgerards@student.han.nl>
51167 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
51169 * commands/boot.c: Remove the check for `GRUB_UTIL'.
51170 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
51171 `loader/powerpc/ieee1275/linux.c',
51172 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
51173 * include/grub/powerpc/ieee1275/ieee1275.h
51174 (grub_ieee1275_release): New prototype.
51175 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
51176 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
51177 normal, boot, linux and linux_normal.
51178 * loader/powerpc/ieee1275/linux.c: New file.
51179 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
51181 2004-07-12 Marco Gerards <metgerards@student.han.nl>
51183 * normal/arg.c (grub_arg_parse): Correct error handling after
51184 reallocating the argumentlist (check if `argl' is not null instead
51185 of checking if `args' is not null).
51186 * kern/mm.c (grub_realloc): Return the same pointer when using the
51187 same region, instead of returning the header address.
51189 2004-07-11 Marco Gerards <metgerards@student.han.nl>
51191 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
51192 one block instead of two when looking for the initial partition.
51193 (grub_partition_probe): Initialize the local variable `p' with 0.
51194 Use base 10 for the grub_strtoul call.
51195 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
51196 need for one local variable.
51197 (grub_strtoul): Don't add the new value to `num', instead of that
51200 2004-07-11 Marco Gerards <metgerards@student.han.nl>
51202 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
51203 (pxeboot_img_SOURCES): New variable.
51204 (pxeboot_img_ASFLAGS): Likewise.
51205 (pxeboot_img_LDFLAGS): Likewise.
51206 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
51207 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
51208 <lode_leroy@hotmail.com>.
51210 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51212 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
51213 there was no input.
51215 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51217 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
51218 the history buffer logic.
51220 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51222 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
51223 (FILETYPE_INO_SYMLINK): New macros.
51224 (grub_ext2_find_file): Check if the node is a directory using the
51225 inode stat information instead of using the filetype in the
51226 dirent. Exclude the first character of an absolute symlink.
51227 (grub_ext2_dir): Mask out the filetype part of the mode member of
51230 2004-05-24 Marco Gerards <metgerards@student.han.nl>
51232 Add support for UFS version 1 and 2. Add support for the minix
51233 filesystem version 1 and 2, both the variants with 14 and 30 long
51236 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
51238 (grub_emu_SOURCES): Likewise.
51239 (pkgdata_MODULES): Add ufs.mod and minix.mod.
51240 (ufs_mod_SOURCES): New variable.
51241 (ufs_mod_CFLAGS): Likewise.
51242 (minix_mod_SOURCES): Likewise.
51243 (minix_mod_CFLAGS): Likewise.
51244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
51246 (grubof_SOURCES): Likewise.
51247 * fs/ufs.c: New file.
51248 * fs/minix.c: New file.
51249 * include/grub/fs.h (grub_ufs_init): New prototype.
51250 (grub_ufs_fini): Likewise.
51251 (grub_minix_init): Likewise.
51252 (grub_minix_fini): Likewise.
51253 * util/grub-emu.c (main): Initialize and deinitialize UFS and
51256 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
51258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
51259 commands/ls.c, commands/terminal.c, commands/boot.c,
51260 commands/cmp.c and commands/cat.c.
51261 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
51263 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
51266 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51268 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
51269 and grub_, respectively. Because the conversion is trivial and
51270 mechanical, I omit the details here. Please refer to the CVS
51271 if you need more information.
51273 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51275 * include/pupa: Renamed to ...
51276 * include/grub: ... this.
51277 * util/i386/pc/pupa-mkimage.c: Renamed to ...
51278 * util/i386/pc/grub-mkimage.c: ... this.
51279 * util/i386/pc/pupa-setup.c: Renamed to ...
51280 * util/i386/pc/grub-setup.c: ... this.
51281 * util/pupa-emu.c: Renamed to ...
51282 * util/grub-emu.c: ... this.
51284 2004-03-29 Marco Gerards <metgerards@student.han.nl>
51286 Add support for the newworld apple macintosh (PPC). This has been
51287 tested on the powerbook 2000 only. It only adds support for
51288 generic ieee1275 functions, console and disk support. This should
51289 be easy to port to other architectures with support for Open
51292 * configure.ac: Accept the powerpc as host_cpu. In the case of
51293 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
51294 specific tests are only executed while building for the i386.
51295 Inverse test for crosscompile.
51296 * genmk.rb (Utility): Allow assembler files.
51297 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
51298 * conf/powerpc-ieee1275.rmk: New file.
51299 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
51300 * disk/powerpc/ieee1275/partition.c: Likewise.
51301 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
51302 * include/pupa/powerpc/ieee1275/console.h: Likewise.
51303 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
51304 * include/pupa/powerpc/ieee1275/time.h: Likewise.
51305 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
51306 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
51307 * include/pupa/powerpc/ieee1275/loader.h
51308 * include/pupa/powerpc/setjmp.h: Likewise.
51309 * include/pupa/powerpc/types.h: Likewise.
51310 * kern/powerpc/ieee1275/init.c: Likewise.
51311 * kern/powerpc/ieee1275/openfw.c: Likewise.
51312 * term/powerpc/ieee1275/ofconsole.c: Likewise.
51314 These files were written by Johan Rydberg
51315 (jrydberg@night.trouble.net) and I only modified them slightly.
51317 * boot/powerpc/ieee1275/cmain.c: New file.
51318 * boot/powerpc/ieee1275/crt0.S: Likewise.
51319 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
51320 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
51322 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
51324 * Makefile.in: Update copyright.
51325 * genmodsrc.sh: Likewise.
51326 * gensymlist.sh: Likewise.
51327 * term/i386/pc/vga.c: Indent correctly.
51329 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
51330 bugreporting address.
51331 * util/i386/pc/pupa-setup.c (usage): Likewise,
51332 (main): Call pupa_ext2_init and pupa_ext2_fini.
51334 * fs/fat.c (log2): Renamed to ...
51335 (fat_log2): ... this.
51336 All callers changed.
51337 * kern/misc.c (memcpy): Alias to pupa_memmove.
51338 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
51340 * util/console.c (pupa_ncurses_fini): Return 0.
51342 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
51343 Move fail label here.
51344 [__GNU__]: Don't warn when using stat.
51345 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
51346 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
51347 long int. Use strtol instead of strtoul.
51349 2004-03-14 Marco Gerards <metgerards@student.han.nl>
51351 * commands/boot.c: New file.
51352 * commands/cat.c: Likewise.
51353 * commands/cmp.c: Likewise.
51354 * commands/ls.c: Likewise.
51355 * commands/terminal.c: Likewise.
51356 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
51357 (pupa_register_command): Changed interface to match the new
51359 (pupa_command_execute): Changed (almost rewritten) so it uses
51360 pupa_split_command. Added support for setting variables using the
51362 (rescue_command): Changed to work with the new argument parser.
51363 (terminal_command): Moved from here to commands/terminal.c.
51364 (set_command): New function.
51365 (unset_command): New function.
51366 (insmod_command): New function.
51367 (rmmod_command): New function.
51368 (lsmod_command): New function.
51369 (pupa_command_init): Don't initialize the command terminal
51370 anymore. Initialize the commands set, unset, insmod, rmmod and
51372 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
51373 (kernel_img_HEADERS): Add arg.h and env.h.
51374 (pupa_mkimage_LDFLAGS): Add kern/env.c.
51375 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
51376 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
51378 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
51380 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
51381 (boot_mod_SOURCES): New variable.
51382 (terminal_mod_SOURCES): Likewise.
51383 (ls_mod_SOURCES): Likewise.
51384 (cmp_mod_SOURCES): Likewise.
51385 (cat_mod_SOURCES): Likewise.
51387 * normal/arg.c: New file.
51388 * kern/env.c: Likewise.
51389 * include/pupa/arg.h: Likewise.
51390 * include/pupa/env.h: Likewise.
51391 * font/manager.c (font_command): Changed to match argument parsing
51393 (PUPA_MOD_INIT): Likewise.
51394 * hello/hello.c (pupa_cmd_hello): Likewise.
51395 (PUPA_MOD_INIT): Likewise.
51396 * include/pupa/disk.h: Include <pupa/device.h>.
51397 (pupa_print_partinfo): New prototype.
51398 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
51399 (pupa_dl_get_prefix): Likewise.
51400 * include/pupa/misc.h: Include <pupa/err.h>.
51401 (pupa_isgraph): New prototype.
51402 (pupa_isdigit): Likewise.
51403 (pupa_split_cmdline): Likewise.
51404 * include/pupa/normal.h: Include <pupa/arg.h>.
51405 (pupa_command): Changed the prototype of the member `func' to
51406 match the argument parsing interface. Added member `options'.
51407 (pupa_register_command): Updated to match function.
51408 (pupa_arg_parse): New prototype.
51409 (pupa_hello_init) [PUPA_UTIL]: New prototype.
51410 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
51411 (pupa_ls_init) [PUPA_UTIL]: Likewise.
51412 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
51413 (pupa_cat_init) [PUPA_UTIL]: Likewise.
51414 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
51415 (pupa_boot_init) [PUPA_UTIL]: Likewise.
51416 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
51417 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
51418 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
51419 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
51420 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
51421 * kern/disk.c: Include <pupa/file.h>.
51422 (pupa_print_partinfo): New function.
51423 * kern/dl.c: Include <pupa/env.h>.
51424 (pupa_dl_dir): Variable removed.
51425 (pupa_dl_load): Use the environment variable `prefix' instead of
51426 the variable pupa_dl_dir.
51427 (pupa_dl_set_prefix): Function removed.
51428 (pupa_dl_get_prefix): Likewise.
51429 * kern/i386/pc/init.c: Include <pupa/env.h>.
51430 (pupa_machine_init): Use the environment variable `prefix' instead of
51431 using pupa_dl_set_prefix to set the prefix.
51432 * kern/main.c: Include <pupa/env.h>.
51433 (pupa_set_root_dev): Use the environment variable `prefix' instead of
51434 using pupa_dl_get_prefix to get the prefix.
51435 * kern/misc.c: Include <pupa/env.h>.
51436 (pupa_isdigit): New function.
51437 (pupa_isgraph): Likewise.
51438 (pupa_ftoa): Likewise.
51439 (pupa_vsprintf): Added support for printing values of the type
51440 `double'. Make it possible to format variable output when using
51441 formatting like `%1.2%f'.
51442 (pupa_split_cmdline): New function.
51443 * kern/rescue.c: Include <pupa/env.h>.
51444 (next_word): Removed function.
51445 (pupa_rescue_cmd_prefix): Likewise.
51446 (pupa_rescue_cmd_set): New function.
51447 (pupa_rescue_cmd_unset): New function.
51448 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
51449 split the command line instead of splitting it here. Added
51450 support for setting variables using the syntax `foo=bar'. Don't
51451 initialize the prefix command anymore. Initialized the set and
51453 * normal/cmdline.c: Include <pupa/env.h>.
51454 (pupa_tab_complete): Added prototypes for print_simple_completion,
51455 print_partition_completion, add_completion, iterate_commands,
51456 iterate_dev, iterate_part and iterate_dir. Moved code to print
51457 partition information from here to kern/disk.c.
51458 (pupa_cmdline_run): Don't check if the function exists anymore.
51459 * normal/main.c: Include <pupa/env.h>.
51460 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
51461 instead of using pupa_dl_get_prefix to get the prefix.
51462 * term/i386/pc/vga.c: Include <pupa/arg.h>.
51463 (check_vga_mem): Cast pointers to `void *' to silence a gcc
51465 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
51466 (pupa_vga_setcolor): Declare unused variables with `__attribute__
51467 ((unused))' to silence a gcc warning.
51468 (pupa_vga_setcolor): Likewise.
51469 (debug_command): Changed to match argument parsing
51471 * util/pupa-emu.c: Include <pupa/env.h>.
51472 (options): Added 0's for unused fields to silence a gcc warning.
51474 (main): Use the environment variable `prefix' instead of using
51475 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
51476 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
51479 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
51480 * util/misc.c: Include <malloc.h>.
51481 (pupa_malloc): Rewritten so errors are correctly reported.
51482 (pupa_realloc): Likewise.
51483 (pupa_memalign): Likewise.
51484 (pupa_mm_init_region): Declare unused variables with
51485 `__attribute__ ((unused))' to silence a gcc warning.
51486 * normal/i386/setjmp.S: Remove tab at the end of the file to
51487 silence a gcc warning.
51488 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
51489 variables with `__attribute__ ((unused))' to silence a gcc
51491 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
51492 local variable i unsigned to silence a gcc warning.
51494 * kern/term.c: Include <pupa/misc.h>.
51495 (pupa_more_lines): New variable.
51496 (pupa_more): Likewise.
51497 (pupa_putcode): When the pager is active pause at the end of every
51499 (pupa_set_more): New function.
51500 * include/pupa/term.h (pupa_set_more): New prototype.
51503 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
51505 Now this project is GRUB 2 rather than PUPA. The location of
51506 the CVS repository was moved to GRUB's.
51508 * configure.ac: Use bug-grub as the reporting address.
51509 Use GRUB instead of PUPA.
51510 Change the version number to 1.90.
51512 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
51514 * genkernsyms.sh: Updated copyright information.
51515 * genmk.rb: Likewise.
51516 * genmodsrc.sh: Likewise.
51517 * gensymlist.sh: Likewise.
51518 * boot/i386/pc/boot.S: Likewise.
51519 * boot/i386/pc/diskboot.S: Likewise.
51520 * disk/i386/pc/biosdisk.c: Likewise.
51521 * disk/i386/pc/partition.c: Likewise.
51522 * font/manager.c: Likewise.
51523 * fs/ext2.c: Likewise.
51524 * fs/fat.c: Likewise.
51525 * include/pupa/boot.h: Likewise.
51526 * include/pupa/device.h: Likewise.
51527 * include/pupa/disk.h: Likewise.
51528 * include/pupa/dl.h: Likewise.
51529 * include/pupa/elf.h: Likewise.
51530 * include/pupa/err.h: Likewise.
51531 * include/pupa/file.h: Likewise.
51532 * include/pupa/font.h: Likewise.
51533 * include/pupa/fs.h: Likewise.
51534 * include/pupa/kernel.h: Likewise.
51535 * include/pupa/loader.h: Likewise.
51536 * include/pupa/misc.h: Likewise.
51537 * include/pupa/mm.h: Likewise.
51538 * include/pupa/net.h: Likewise.
51539 * include/pupa/normal.h: Likewise.
51540 * include/pupa/rescue.h: Likewise.
51541 * include/pupa/setjmp.h: Likewise.
51542 * include/pupa/symbol.h: Likewise.
51543 * include/pupa/term.h: Likewise.
51544 * include/pupa/types.h: Likewise.
51545 * include/pupa/i386/setjmp.h: Likewise.
51546 * include/pupa/i386/types.h: Likewise.
51547 * include/pupa/i386/pc/biosdisk.h: Likewise.
51548 * include/pupa/i386/pc/boot.h: Likewise.
51549 * include/pupa/i386/pc/console.h: Likewise.
51550 * include/pupa/i386/pc/init.h: Likewise.
51551 * include/pupa/i386/pc/kernel.h: Likewise.
51552 * include/pupa/i386/pc/linux.h: Likewise.
51553 * include/pupa/i386/pc/loader.h: Likewise.
51554 * include/pupa/i386/pc/memory.h: Likewise.
51555 * include/pupa/i386/pc/multiboot.h: Likewise.
51556 * include/pupa/i386/pc/partition.h: Likewise.
51557 * include/pupa/i386/pc/time.h: Likewise.
51558 * include/pupa/i386/pc/vga.h: Likewise.
51559 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
51560 * include/pupa/util/getroot.h: Likewise.
51561 * include/pupa/util/misc.h: Likewise.
51562 * include/pupa/util/resolve.h: Likewise.
51563 * kern/device.c: Likewise.
51564 * kern/disk.c: Likewise.
51565 * kern/dl.c: Likewise.
51566 * kern/err.c: Likewise.
51567 * kern/file.c: Likewise.
51568 * kern/fs.c: Likewise.
51569 * kern/loader.c: Likewise.
51570 * kern/main.c: Likewise.
51571 * kern/misc.c: Likewise.
51572 * kern/mm.c: Likewise.
51573 * kern/rescue.c: Likewise.
51574 * kern/term.c: Likewise.
51575 * kern/i386/dl.c: Likewise.
51576 * kern/i386/pc/init.c: Likewise.
51577 * kern/i386/pc/lzo1x.S: Likewise.
51578 * kern/i386/pc/startup.S: Likewise.
51579 * loader/i386/pc/chainloader.c: Likewise.
51580 * loader/i386/pc/linux.c: Likewise.
51581 * loader/i386/pc/multiboot.c: Likewise.
51582 * normal/cmdline.c: Likewise.
51583 * normal/command.c: Likewise.
51584 * normal/main.c: Likewise.
51585 * normal/menu.c: Likewise.
51586 * normal/i386/setjmp.S: Likewise.
51587 * term/i386/pc/console.c: Likewise.
51588 * term/i386/pc/vga.c: Likewise.
51589 * util/console.c: Likewise.
51590 * util/genmoddep.c: Likewise.
51591 * util/misc.c: Likewise.
51592 * util/pupa-emu.c: Likewise.
51593 * util/resolve.c: Likewise.
51594 * util/unifont2pff.rb: Likewise.
51595 * util/i386/pc/biosdisk.c: Likewise.
51596 * util/i386/pc/getroot.c: Likewise.
51597 * util/i386/pc/pupa-mkimage.c: Likewise.
51598 * util/i386/pc/pupa-setup.c: Likewise.
51600 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
51602 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
51603 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
51604 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
51605 reading and reset it after reading.
51606 (pupa_ext2_close): Return PUPA_ERR_NONE.
51608 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
51610 (struct linux_kernel_header): Add kernel_version and
51612 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
51613 pupa_file_read succeeds.
51614 (pupa_rescue_cmd_initrd): Implement.
51616 2003-12-03 Marco Gerards <metgerards@student.han.nl>
51618 * fs/ext2.c (pupa_ext2_label): New function.
51619 (pupa_ext2_fs): Added label.
51620 * fs/fat.c (pupa_fat_label): New function.
51621 (pupa_fat_fs): Added label.
51622 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
51624 * kern/misc.c (pupa_strndup): New function.
51625 * include/pupa/misc.h (pupa_strndup): New prototype.
51627 * include/pupa/normal.h: Include <pupa/err.h>.
51628 (pupa_set_history): New prototype.
51629 (pupa_iterate_commands): New prototype.
51630 * normal/cmdline.c: Include <pupa/machine/partition.h>,
51631 <pupa/disk.h>, <pupa/file.h>.
51632 (hist_size): New variable.
51633 (hist_lines): Likewise.
51634 (hist_end): Likewise.
51635 (hist_used): Likewise.
51636 (pupa_set_history): New function.
51637 (pupa_history_get): Likewise.
51638 (pupa_history_add): Likewise.
51639 (pupa_history_replace): Likewise.
51640 (pupa_tab_complete): Likewise.
51641 (pupa_cmdline_run): Added tab completion and history buffer. Tab
51642 completion shows partitionnames while completing partitions, this
51643 feature was suggested by Jeff Bailey.
51644 * normal/command.c (pupa_iterate_commands): New function.
51645 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
51646 (pupa_normal_init): Initialize history buffer.
51647 (PUPA_MOD_INIT): Likewise.
51648 (pupa_normal_fini): Free the history buffer.
51649 (PUPA_MOD_FINI): Likewise.
51651 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
51654 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
51655 * configure.ac [i386]: Check for regparam bug.
51656 (NESTED_FUNC_ATTR) [! i386]: Defined.
51658 2003-11-17 Marco Gerards <metgerards@student.han.nl>
51660 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
51661 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
51662 (pupa_emu_SOURCES): New variable.
51663 (pupa_emu_LDFLAGS): Likewise.
51664 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
51665 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
51666 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
51667 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51668 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
51669 (pupa_jmp_buf): New typedef.
51670 (pupa_setjmp) [PUPA_UTIL]: New macro.
51671 (pupa_longjmp) [PUPA_UTIL]: Likewise.
51672 * include/pupa/term.h (struct pupa_term): New member `refresh'.
51673 (pupa_refresh): New prototype.
51674 * include/pupa/util/getroot.h: New file.
51675 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
51677 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
51678 (pupa_rescue_cmd_cat): Likewise.
51679 (pupa_rescue_cmd_ls): Likewise.
51680 (pupa_rescue_cmd_testload): Likewise.
51681 (pupa_rescue_cmd_lsmod): Likewise.
51682 * normal/cmdline.c (pupa_cmdline_get): Likewise.
51683 * normal/menu.c (run_menu): Likewise.
51684 * kern/term.c (pupa_cls): Likewise.
51685 (pupa_refresh): New function.
51686 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
51687 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51688 * util/console.c: New file.
51690 * util/i386/pc/getroot.c: New file.
51691 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
51692 (pupa_putchar): New function.
51693 (pupa_refresh): Likewise.
51694 (xgetcwd): Function moved to ...
51695 (strip_extra_slashes): Likewise.
51696 (get_prefix): Likewise.
51697 * util/i386/pc/getroot.c: ... here.
51698 (find_root_device): Function moved and renamed to...
51699 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
51700 Changed all callers.
51701 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
51703 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
51704 Changed all callers.
51705 * util/misc.c (pupa_memalign): New function.
51706 (pupa_mm_init_region): Likewise.
51707 (pupa_register_exported_symbols): Likewise.
51708 (pupa_putchar): Function removed.
51709 * util/pupa-emu.c: New file.
51711 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
51713 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
51714 (_multiboot_mod_SOURCES): New variable.
51715 (_multiboot_mod_CFLAGS): Likewise.
51716 * loader/i386/pc/multiboot.c: New file.
51717 * include/pupa/i386/pc/multiboot.h: Likewise.
51718 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
51719 (pupa_multiboot_real_boot): New function.
51720 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
51721 (pupa_multiboot_real_boot): New prototype.
51722 (pupa_rescue_cmd_multiboot): Likewise
51723 (pupa_rescue_cmd_module): Likewise.
51725 * kern/loader.c (pupa_loader_set): Continue when
51726 pupa_loader_unload_func() fails.
51727 (pupa_loader_unset): New function.
51728 * include/pupa/loader.h (pupa_loader_unset): New prototype.
51730 * kern/misc.c (pupa_stpcpy): New function.
51731 * include/pupa/misc.h (pupa_stpcpy): New prototype.
51733 2003-11-12 Marco Gerards <metgerards@student.han.nl>
51735 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
51736 for available extensions.
51738 * include/pupa/i386/pc/time.h: New file.
51739 * kern/disk.c: Include <pupa/machine/time.h>.
51740 (PUPA_CACHE_TIMEOUT): New macro.
51741 (pupa_last_time): New variable.
51742 (pupa_disk_open): Flush the cache when there was a timeout.
51743 (pupa_disk_close): Reset the timer.
51744 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
51746 * util/misc.c: Include <sys/times.h>
51747 (pupa_get_rtc): New function.
51749 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
51751 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
51753 (pupa_ext2_get_file_block): Use blocks member.
51755 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
51756 first block. Return -1 instead of pupa_errno on error.
51758 2003-10-27 Marco Gerards <metgerards@student.han.nl>
51760 * README: In the pupa-mkimage example use _chain instead of chain
51761 and ext2 instead of fat.
51762 * TODO: Replace ext2fs with jfs as an example. Add an item for
51763 adding journal playback for ext2fs.
51764 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
51765 (pkgdata_MODULES): Added ext2.mod.
51766 (ext2_mod_SOURCES): New variable.
51767 (ext2_mod_CFLAGS): Likewise.
51768 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
51769 * include/pupa/misc.h (pupa_strncpy): New prototype.
51770 (pupa_strcat): Likewise.
51771 (pupa_strncmp): Likewise.
51772 * kern/misc.c (pupa_strcat): Enable function.
51773 (pupa_strncpy): New function.
51774 (pupa_strncmp): Likewise.
51775 * fs/ext2.c: New file.
51777 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
51778 when the read failed before retrying.
51779 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
51780 (_FILE_OFFSET_BITS): Likewise.
51781 * configure.ac: Added AC_SYS_LARGEFILE.
51783 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51785 * genmk.rb (PModule#rule): Make sure to get only symbol names
51786 from the output of nm.
51787 Reported by Robert Millan <rmh.grub@aybabtu.com>.
51789 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51791 I forgot to check in these changes for a long time. This adds
51792 incomplete support for VGA console, and this is still very
51793 buggy. Also, a lot of consideration is required for I18N,
51794 UNICODE, and VGA font issues. Therefore, assume that this is
51795 such that "better than nothing".
51797 * font/manager.c: New file.
51798 * include/pupa/font.h: Likewise.
51799 * include/pupa/i386/pc/vga.h: Likewise.
51800 * term/i386/pc/vga.c: Likewise.
51801 * util/unifont2pff.rb: Likewise.
51803 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51804 (pkgdata_MODULES): Added vga.mod and font.mod.
51805 (vga_mod_SOURCES): New variables.
51806 (vga_mod_CFLAGS): Likewise.
51807 (font_mod_SOURCES): Likewise.
51808 (font_mod_CFLAGS): Likewise.
51810 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51812 * include/pupa/term.h: Include pupa/err.h.
51813 (struct pupa_term): Added init and fini.
51814 Changed the argument of putchar to pupa_uint32_t.
51816 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51817 (pupa_console_real_putchar): New prototype.
51818 (pupa_console_putchar): Removed.
51819 (pupa_console_checkkey): Exported.
51820 (pupa_console_getkey): Likewise.
51822 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51825 * kern/term.c (pupa_term_set_current): Rewritten.
51826 (pupa_putchar): Likewise.
51827 (pupa_putcode): New function.
51829 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51830 (pupa_console_real_putchar): ... this.
51831 (pupa_vga_set_mode): New function.
51832 (pupa_vga_get_font): Likewise.
51834 * normal/command.c: Include pupa/term.h.
51835 (terminal_command): New function.
51836 (pupa_command_init): Register the command "terminal".
51838 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51839 (DISP_UP): Likewise.
51840 (DISP_RIGHT): Likewise.
51841 (DISP_DOWN): Likewise.
51842 (DISP_HLINE): Likewise.
51843 (DISP_VLINE): Likewise.
51844 (DISP_UL): Likewise.
51845 (DISP_UR): Likewise.
51846 (DISP_LL): Likewise.
51847 (DISP_LR): Likewise.
51849 * term/i386/pc/console.c (pupa_console_putchar): New function.
51851 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51853 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51854 FIX. Reverse the path_list.
51856 * include/pupa/normal.h: Export pupa_register_command and
51857 pupa_unregister_command.
51859 * hello/hello.c (pupa_cmd_hello): New module.
51860 * conf/i386-pc.rmk: Added hello.mod.
51862 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51864 * kern/i386/pc/lzo1x.S: New file.
51866 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51867 (compress_kernel): New variable.
51868 (generate_image): Heavily modified to support compressing a
51869 large part of the core image.
51871 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51873 (pupa_util_load_image): New function.
51875 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51876 (pupa_compressed_size): New variable.
51877 (codestart): Enable Gate A20 here.
51878 Decompress the compressed part of the core image.
51879 Rearrange the code to put functions and variables which are
51880 required for initialization in the non-compressed part.
51883 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51886 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51888 * include/pupa/i386/pc/kernel.h
51889 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51890 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51891 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51892 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51893 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51895 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51897 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51898 (Utility#rule): Likewise.
51900 * configure.ac: Check if LZO is available.
51902 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51904 * include/pupa/normal.h: New file.
51905 * include/pupa/setjmp.h: Likewise.
51906 * include/pupa/i386/setjmp.h: Likewise.
51907 * normal/cmdline.c: Likewise.
51908 * normal/command.c: Likewise.
51909 * normal/main.c: Likewise.
51910 * normal/menu.c: Likewise.
51911 * normal/i386/setjmp.S: Likewise.
51913 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51914 (pupa_rescue_cmd_initrd): Likewise.
51916 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51919 * kern/i386/pc/startup.S (translation_table): New variable.
51920 (translate_keycode): New function.
51921 (pupa_console_getkey): Call translate_keycode.
51923 * kern/rescue.c (attempt_normal_mode): New function.
51924 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
51925 it failed, print a message.
51927 * kern/mm.c (pupa_real_malloc): Print more information when a
51928 free magic is broken.
51929 (pupa_free): If the first free header is not free actually, set
51932 * kern/main.c (pupa_load_normal_mode): Just load the module
51934 (pupa_main): Don't print the message
51935 "Entering into rescue mode..." here.
51937 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
51939 (pupa_rescue_cmd_initrd): Likewise.
51940 (pupa_rescue_cmd_initrd): Likewise.
51942 * include/pupa/symbol.h (FUNCTION): Specify the type.
51943 (VARIABLE): Likewise.
51945 * include/pupa/err.h (pupa_err_t): Added
51946 PUPA_ERR_UNKNOWN_COMMAND.
51948 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
51949 (pupa_dl_get_prefix): Likewise.
51951 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
51952 Added _chain.mod and _linux.mod instead of chain.mod and
51954 (chain_mod_SOURCES): Renamed to ...
51955 (_chain_mod_SOURCES): ... this.
51956 (chain_mod_CFLAGS): Renamed to ...
51957 (_chain_mod_CFLAGS): ... this.
51958 (linux_mod_SOURCES): Renamed to ...
51959 (_linux_mod_SOURCES): ... this.
51960 (linux_mod_CFLAGS): Renamed to ...
51961 (_linux_mod_CFLAGS): ... this.
51962 (normal_mod_SOURCES): New variable.
51963 (normal_mod_CFLAGS): Likewise.
51964 (normal_mod_ASFLAGS): Likewise.
51966 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
51968 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
51971 * kern/dl.c (pupa_dl_ref): Refer depending modules
51973 (pupa_dl_unref): Unrefer depending modules recursively.
51974 Don't call pupa_dl_unload implicitly, because PUPA can crash if
51975 a module is unloaded before one depending on that module is
51977 (pupa_dl_unload): Unload depending modules explicitly,
51980 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
51982 * include/pupa/i386/pc/linux.h: New file.
51983 * loader/i386/pc/linux.c: Likewise.
51985 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
51987 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
51988 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
51989 of PUPA_CHAINLOADER_BOOT_SECTOR.
51991 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
51992 (pupa_linux_prot_size): New variable.
51993 (pupa_linux_tmp_addr): Likewise.
51994 (pupa_linux_real_addr): Likewise.
51995 (pupa_linux_boot_zimage): New function.
51996 (pupa_linux_boot_bzimage): Likewise.
51998 * kern/i386/pc/init.c (struct mem_region): New structure.
51999 (MAX_REGIONS): New macro.
52000 (mem_regions): New variable.
52001 (num_regions): Likewise.
52002 (pupa_os_area_addr): Likewise.
52003 (pupa_os_area_size): Likewise.
52004 (pupa_lower_mem): Likewise.
52005 (pupa_upper_mem): Likewise.
52006 (add_mem_region): New function.
52007 (compact_mem_regions): Likewise.
52008 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
52009 the size of the conventional memory and that of so-called upper
52010 memory (before the first memory hole).
52011 Instead of adding each found region to free memory, use
52012 add_mem_region and add them after removing overlaps.
52013 Also, add only 1/4 of the upper memory to free memory. The rest
52014 is used for loading OS images. Maybe this is ad hoc, but this
52015 makes it much easier to relocate OS images when booting.
52017 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
52018 (pupa_enter_rescue_mode): Don't register initrd and module.
52020 * kern/mm.c: Include pupa/dl.h.
52022 * kern/main.c: Include pupa/file.h and pupa/device.h.
52024 * kern/loader.c (pupa_loader_load_module_func): Removed.
52025 (pupa_loader_load_module): Likewise.
52027 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
52030 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
52031 (pupa_linux_tmp_addr): Likewise.
52032 (pupa_linux_real_addr): Likewise.
52033 (pupa_linux_boot_zimage): Likewise.
52034 (pupa_linux_boot_bzimage): Likewise.
52036 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
52037 (pupa_upper_mem): Likewise.
52038 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
52039 module is too dangerous.
52041 * include/pupa/loader.h (pupa_os_area_addr): Declared.
52042 (pupa_os_area_size): Likewise.
52043 (pupa_loader_set): Remove the first argument. Loader doesn't
52044 manage modules or initrd any longer.
52045 (pupa_loader_load_module): Removed.
52047 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
52048 (linux_mod_SOURCES): New variable.
52049 (linux_mod_CFLAGS): Likewise.
52051 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
52053 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
52054 the length of a blocklist correctly.
52056 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
52057 Use ioctl only if the OS file is a block device.
52058 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
52059 not very useful for normal files.
52061 * kern/main.c (pupa_set_root_dev): New function.
52062 (pupa_load_normal_mode): Likewise.
52063 (pupa_main): Call those above.
52065 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
52068 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
52070 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
52072 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
52073 (setup): Configure the installed partition information and the
52076 * loader/i386/pc/chainloader.c (my_mod): New variable.
52077 (pupa_chainloader_unload): New function.
52078 (pupa_rescue_cmd_chainloader): Refer itself.
52079 (PUPA_MOD_INIT): Save its own module in MY_MOD.
52081 * kern/i386/pc/startup.S (install_partition): Removed.
52082 (version_string): Likewise.
52083 (config_file): Likewise.
52084 (pupa_install_dos_part): New variable.
52085 (pupa_install_bsd_part): Likewise.
52086 (pupa_prefix): Likewise.
52087 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
52089 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
52091 (make_install_device): New function.
52092 (pupa_machine_init): Set the dl prefix.
52094 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
52095 (buf): Renamed to ...
52096 (linebuf): ... this.
52097 (pupa_rescue_cmd_prefix): New function.
52098 (pupa_rescue_cmd_insmod): Likewise.
52099 (pupa_rescue_cmd_rmmod): Likewise.
52100 (pupa_rescue_cmd_lsmod): Likewise.
52101 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
52104 * kern/mm.c (pupa_memalign): If failed even after invalidating
52105 disk caches, unload unneeded modules and retry.
52107 * kern/misc.c (pupa_memmove): New function.
52108 (pupa_memcpy): Removed.
52109 (pupa_strcpy): New function.
52110 (pupa_itoa): Made static.
52112 * kern/dl.c (pupa_dl_iterate): New function.
52113 (pupa_dl_ref): Likewise.
52114 (pupa_dl_unref): Likewise.
52115 (pupa_dl_unload): Return if succeeded or not.
52116 (pupa_dl_unload_unneeded): New function.
52117 (pupa_dl_unload_all): Likewise.
52118 (pupa_dl_init): Renamed to ...
52119 (pupa_dl_set_prefix): ... this.
52120 (pupa_dl_get_prefix): New function.
52122 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
52123 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
52124 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
52125 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
52126 (pupa_install_dos_part): Declared.
52127 (pupa_install_bsd_part): Likewise.
52128 (pupa_prefix): Likewise.
52129 (pupa_boot_drive): Likewise.
52131 * include/pupa/types.h: Fix a typo.
52133 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
52135 (pupa_memmove): Declared.
52136 (pupa_strcpy): Likewise.
52138 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
52139 pupa_mod_init takes one argument, its own module.
52140 (pupa_dl_unload_unneeded): Declared.
52141 (pupa_dl_unload_all): Likewise.
52142 (pupa_dl_ref): Likewise.
52143 (pupa_dl_unref): Likewise.
52144 (pupa_dl_iterate): Likewise.
52145 (pupa_dl_init): Renamed to ...
52146 (pupa_dl_set_prefix): ... this.
52147 (pupa_dl_get_prefix): Declared.
52149 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
52150 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
52152 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
52153 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
52155 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
52156 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
52158 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52160 * util/i386/pc/pupa-setup.c (setup): Define the internal
52161 function find_first_partition_start at the top level, because GCC
52162 3.0.x cannot compile internal functions in deeper scopes
52164 (find_root_device): Use lstat instead of stat.
52165 Don't follow symbolic links.
52166 Fix the path-constructing code.
52168 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
52169 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
52170 by a BLKGETSIZE ioctl first, because block devices don't fill
52171 the member st_mode of the structure stat on Linux.
52172 [__linux__] (linux_find_partition): Use a temporary buffer
52173 REAL_DEV for the working space. Copy it to DEV before returning.
52174 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
52175 buffer cache consistent.
52176 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
52177 strncmp. The previous value was merely wrong.
52178 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
52180 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
52181 FAT size is 12. The previous value was merely wrong.
52183 * kern/main.c (pupa_main): Don't split the starting message from
52186 * kern/term.c (pupa_putchar): Put CR after LF instead of before
52187 LF, because BIOS goes crazy about character attributes in this
52190 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52192 * include/i386/pc/util/biosdisk.h: New file.
52193 * util/i386/pc/biosdisk.c: Likewise.
52194 * util/i386/pc/pupa-setup.c: Likewise.
52196 * Makefile.in (INCLUDE_DISTFILES): Added
52197 include/pupa/i386/pc/util/biosdisk.h.
52198 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
52199 directory util/i386/pc.
52200 (install-local): Added a rule for sbin_UTILITIES.
52201 (uninstall): Likewise.
52203 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
52205 * util/misc.c (xrealloc): New function.
52206 (pupa_malloc): Likewise.
52207 (pupa_free): Likewise.
52208 (pupa_realloc): Likewise.
52209 (pupa_stop): Likewise.
52210 (pupa_putchar): Likewise.
52212 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
52214 * include/pupa/util/misc.h (xrealloc): Declared.
52216 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
52218 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
52219 (PUPA_BOOT_MACHINE_BPB_END): ... this.
52221 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
52222 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52224 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
52225 way should be implemented.
52226 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52228 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
52229 the size of NAME for safety.
52230 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
52233 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
52234 (pupa_setup_SOURCES): Likewise.
52236 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
52238 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52240 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
52241 bunch of pushl's from pusha, because this destroys the return
52244 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52246 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
52247 This means that any missing prototypes could be fatal. Also, you
52248 must take care when writing assembly code. See the comments at
52249 the beginning of startup.S, for more details.
52251 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
52252 compilation mechanism.
52253 (pupa_chainloader_real_boot): Likewise.
52254 (pupa_biosdisk_rw_int13_extensions): Likewise.
52255 (pupa_biosdisk_rw_standard): Likewise.
52256 (pupa_biosdisk_check_int13_extensions): Likewise.
52257 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
52258 (pupa_biosdisk_get_diskinfo_standard): Likewise.
52259 (pupa_get_memsize): Likewise.
52260 (pupa_get_mmap_entry): Likewise.
52261 (pupa_console_putchar): Likewise.
52262 (pupa_console_setcursor): Likewise.
52263 (pupa_getrtsecs): Use pushl instead of push.
52265 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
52266 memory instead of the stack for a mmap entry, because some
52267 BIOSes may ignore the maximum size and overflow.
52269 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
52271 * genmk.rb (PModule#rule): Compile automatically generated
52272 sources with module-specific CFLAGS as well as other sources.
52274 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52276 * configure.ac: Check ld.
52277 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
52278 respectively, before checking endianness and sizes.
52280 * Makefile.in (LD): New variable.
52282 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52284 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
52286 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52288 * Changelog: New file.