1 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
3 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
6 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
8 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
9 * util/grub.d/10_linux.in: Use it to check for LVM, so that
10 LVM-on-RAID is handled correctly.
12 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14 * docs/grub.texi (Changes from GRUB Legacy): New section.
17 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20 grub.d/README accidentally ends up executable for one reason or
23 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
25 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26 (gpt_partition_map_iterate): Support non-512B sectors.
28 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
30 * kern/efi/init.c (grub_efi_init): Disable watchdog.
31 Tested by: Seth Goldberg.
33 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
35 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
37 Reported by: Seth Goldberg.
39 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
41 * util/grub-mkrescue.in: Avoid module duplication.
43 2010-07-01 Sean Finney <seanius@seanius.net>
45 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
47 2010-07-01 Sean Finney <seanius@seanius.net>
49 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
51 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
53 * disk/lvm.c (grub_lvm_checkvalue): New function.
54 (grub_lvm_check_flag): Likewise.
56 2010-07-01 Robert Millan <rmh@gnu.org>
58 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
59 Support 'p' as partition separator on kernel of FreeBSD (used
61 (grub_util_biosdisk_get_grub_dev): Likewise.
63 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
65 Yeeloong firmware port.
67 * boot/mips/yeeloong/fwstart.S: New file.
68 * bus/cs5536.c (gpiodump): New const.
69 (set_io_space): New function.
72 (grub_cs5536_init_geode): Likewise.
73 * commands/mips/yeeloong/lsspd.c: New file.
74 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
75 (serial_mod_SOURCES): New variable.
76 (serial_mod_CFLAGS): Likewise.
77 (serial_mod_LDFLAGS): Likewise.
78 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
79 term/terminfo.c and term/tparm.c.
80 (pkglib_IMAGES): Add fwstart.img.
81 (fwstart_img_SOURCES): New variable.
82 (fwstart_img_CFLAGS): Likewise.
83 (fwstart_img_ASFLAGS): Likewise.
84 (fwstart_img_LDFLAGS): Likewise.
85 (fwstart_img_FORMAT): Likewise.
86 (pkglib_MODULES): Add lsspd.mod.
87 (lsspd_mod_SOURCES): New variable.
88 (lsspd_mod_CFLAGS): Likewise.
89 (lsspd_mod_LDFLAGS): Likewise.
90 (pkglib_MODULES): Add halt.mod.
91 (halt_mod_SOURCES): New variable.
92 (halt_mod_CFLAGS): Likewise.
93 (halt_mod_LDFLAGS): Likewise.
94 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
95 (serial_mod_SOURCES): Removed.
96 (serial_mod_CFLAGS): Likewise.
97 (serial_mod_LDFLAGS): Likewise.
98 * disk/ata.c (check_device): New function.
99 (grub_ata_device_initialize): Use check_device.
100 (grub_ata_iterate): Recheck devices.
101 (grub_ata_open): Likewise.
102 (grub_atapi_iterate): Likewise.
103 (grub_atapi_open): Likewise.
104 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
105 (GRUB_ATA_CH1_PORT1): Likewise.
106 (GRUB_ATA_CH0_PORT2): Likewise.
107 (GRUB_ATA_CH1_PORT2): Likewise.
108 * include/grub/mips/loongson.h: New file.
109 * include/grub/mips/yeeloong/ec.h: Likewise.
110 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
111 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
112 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
113 * include/grub/misc.h (grub_halt): Declare as noreturn.
114 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
115 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
116 (UART_ENABLE_FIFO_TRIGGER1): New definition.
117 (UART_ENABLE_DTRRTS): Likewise.
118 (UART_ENABLE_MODEM): Removed.
119 (UART_ENABLE_OUT2): New const.
120 * include/grub/term.h (grub_term_register_input_active): New function.
121 (grub_term_register_output_active): Likewise.
122 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
124 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
125 (init_pci): New function.
126 (grub_machine_init): Execute platform init when firmware. Init serial.
127 (grub_halt): Implement.
128 (grub_exit): Likewise.
129 (grub_reboot): Likewise.
130 * term/serial.c (serial_hw_init): Update macros.
131 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
132 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
133 (image_targets): New target mipsel-yeeloong-flash.
134 (generate_image): Support IMAGE_YEELOONG_FLASH.
135 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
136 (grub_video_sm712_setup): Init card.
137 (grub_video_sm712_set_palette): Removed.
138 * video/sm712_init.c: New file.
140 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
142 * Makefile.in (install-local): Temporarily prepend $(builddir) to
143 PATH when running help2man and then run it on the unadorned
144 executable names, rather than passing $(builddir)/* paths to
145 help2man. This avoids the build directory ending up in generated
148 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
150 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
151 to avoid accidents when debugging with 'sh -x'.
152 * util/grub-mkrescue.in: Likewise.
153 * util/grub.d/00_header.in: Likewise.
154 * util/grub.d/10_hurd.in: Likewise.
155 * util/grub.d/10_kfreebsd.in: Likewise.
156 * util/grub.d/10_linux.in: Likewise.
157 * util/grub.d/10_netbsd.in: Likewise.
158 * util/grub.d/10_windows.in: Likewise.
159 * util/grub.d/20_linux_xen.in: Likewise.
160 * util/grub.d/30_os-prober.in: Likewise.
161 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
163 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
165 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
166 last character in the buffer.
167 Reported by: Vladimir Serbinenko.
169 2010-06-29 Robert Millan <rmh@gnu.org>
171 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
172 (Command-line and menu entry commands): Document `badram' command.
174 2010-06-28 Robert Millan <rmh@gnu.org>
176 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
177 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
178 command using ${GRUB_BADRAM} as parameter.
180 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
182 * docs/grub.texi (Device map): New section.
183 (Themes): New section (stub).
184 * Makefile.in (docs/grub.info): The info documentation now builds
185 without errors. Make sure it stays that way.
187 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
189 Use normal parser for menu entries.
190 Reported by: Thomas Frauendorfer
192 * include/grub/parser.h (grub_parser_execute): Don't export.
193 * normal/menu.c (grub_menu_execute_entry_real): New function.
194 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
196 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
198 * docs/grub.texi (Embedded configuration): New section (replacing
199 old "Preset Menu" stub).
200 (Images): New section.
201 (configfile): Note that any menu entries defined in `file' are shown
204 2010-06-28 Josh Triplett <josh@joshtriplett.org>
206 * mmap/i386/pc/mmap_helper.S: Set CF on return.
208 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
210 * util/grub-install.in: Add --debug-image= option.
212 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
214 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
217 * util/deviceiter.c (check_device): Rename to ...
218 (check_device_readable_unique): ... this. Update all callers.
219 Maintain and check a list of which devices (by canonicalized name)
220 have already been seen.
221 (clear_seen_devices): New function.
222 (compare_file_names) [__linux__]: New function.
223 (grub_util_iterate_devices): Clear the list of seen devices on exit
224 and (just in case) on entry.
225 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
226 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
227 seen-devices list, superseded by general code in check_device.
229 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
231 * commands/cat.c (options): New variable.
232 (grub_cmd_cat): Parse options. If the --dos option is given, print
233 DOS-style "\r\n" line endings as simple newlines (Debian bug
235 (GRUB_MOD_INIT): Use extcmd.
236 (GRUB_MOD_FINI): Likewise.
237 * docs/grub.texi (cat): Document --dos.
239 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
241 XEN with Linux grub-mkconfig support.
243 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
244 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
245 GRUB_CMDLINE_XEN_DEFAULT.
246 * util/grub.d/20_linux_xen.in: New file.
248 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
250 Initialise VGA video on qemu ourselves.
252 * boot/i386/qemu/boot.S: Don't call 0xc000.
253 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
254 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
255 (kernel_img_HEADERS): Add pci.h.
256 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
257 * configure.ac: Force unifont on qemu and yeeloong.
258 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
259 (grub_vga_palette_write): Use correct register.
260 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
261 Call grub_qemu_init_cirrus.
262 * kern/i386/qemu/init.c: New file.
263 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
265 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
267 2010-06-26 Pavel Roskin <proski@gnu.org>
269 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
272 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
274 * docs/grub.texi (Simple configuration): Explain that
275 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
276 set to `true' to disable their respective recovery entries, not
279 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
281 Make the `source' command slightly faster.
283 * normal/main.c (grub_normal_execute): Don't re-read list files when
286 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
288 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
289 field position and mask size to red fields from mode_info, not
291 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
292 Remove redundant tag->common.framebuffer_type assignment.
293 Reported by: Seth Goldberg.
295 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
297 Sync up other versions of the Linux loader with Robert Millan's
298 change of 2010-01-09, "Make loader output a bit more user-friendly".
300 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
302 (grub_cmd_linux): Likewise.
303 (grub_cmd_initrd): Likewise.
304 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
305 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
307 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
309 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
310 larger than MEMORY_MAP_SIZE.
312 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
316 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
318 * script/parser.y: #include grub_script.tab.h header.
320 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
322 Support >3GiB and <16MiB RAM in i386-qemu.
324 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
325 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
326 (grub_lower_mem): Removed.
327 (grub_upper_mem): Likewise.
328 (mem_size): Made static.
329 (above_4g): New variable.
330 (grub_machine_mmap_init): Detect small mem_size and above_4g.
331 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
334 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
336 Cirrus 5446 and Bochs video cards support.
338 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
340 (video_cirrus_mod_SOURCES): New variable.
341 (video_cirrus_mod_CFLAGS): Likewise.
342 (video_cirrus_mod_LDFLAGS): Likewise.
343 (video_bochs_mod_SOURCES): Likewise.
344 (video_bochs_mod_CFLAGS): Likewise.
345 (video_bochs_mod_LDFLAGS): Likewise.
346 * include/grub/vga.h: New file.
347 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
348 (grub_video_fb_set_page_t): New type.
349 (grub_video_fb_setup): New prototype.
350 (grub_video_fb_swap_buffers): Likewise.
351 (grub_video_fb_get_info_and_fini): Likewise.
352 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
353 (CRTC_DATA_PORT): Likewise.
354 (CRTC_CURSOR): Likewise.
355 (CRTC_CURSOR_ADDR_HIGH): Likewise.
356 (CRTC_CURSOR_ADDR_LOW): Likewise.
357 (CRTC_CURSOR_DISABLE): Likewise.
358 (update_cursor): Use grub_vga_cr_write.
359 (grub_vga_text_setcursor): Likewise.
360 * video/bochs.c: New file.
361 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
363 (palette_size): Likewise.
364 (framebuffer): New variable.
365 (grub_video_fb_init): Use 'framebuffer'.
366 (grub_video_fb_fini): Likewise.
367 (grub_video_fb_get_info): Likewise.
368 (grub_video_fb_get_palette): Likewise.
369 (grub_video_fb_set_palette): Likewise.
370 (grub_video_fb_set_viewport): Likewise.
371 (grub_video_fb_get_viewport): Likewise.
372 (grub_video_fb_map_color): Likewise.
373 (grub_video_fb_map_rgb): Likewise.
374 (grub_video_fb_map_rgba): Likewise.
375 (grub_video_fb_unmap_color): Likewise.
376 (grub_video_fb_unmap_color_int): Likewise.
377 (grub_video_fb_fill_rect): Likewise.
378 (grub_video_fb_blit_bitmap): Likewise.
379 (grub_video_fb_blit_render_target): Likewise.
380 (grub_video_fb_scroll): Likewise.
381 (grub_video_fb_create_render_target): Likewise.
382 (grub_video_fb_doublebuf_blit_init): Likewise.
383 (grub_video_fb_set_active_render_target): Handle doublebuffering.
384 (doublebuf_pageflipping_update_screen): New function.
385 (doublebuf_pageflipping_init): Likewise.
386 (grub_video_fb_setup): Likewise.
387 (grub_video_fb_swap_buffers): Likewise.
388 (grub_video_fb_get_info_and_fini): Likewise.
389 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
391 (doublebuf_pageflipping_commit): Restructured into ...
392 (doublebuf_pageflipping_set_page): ... this.
393 (doublebuf_pageflipping_update_screen): Removed.
394 (doublebuf_pageflipping_init): Likewise.
395 (double_buffering_init): Likewise.
396 (grub_video_vbe_setup): Use grub_video_fb_setup.
397 (grub_video_vbe_swap_buffers): Removed.
398 (grub_video_vbe_set_active_render_target): Likewise.
399 (grub_video_vbe_get_active_render_target): Likewise.
400 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
401 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
402 grub_video_fb_set_active_render_target and
403 grub_video_fb_get_active_render_target.
404 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
405 (SEQUENCER_DATA_PORT): Likewise.
406 (MAP_MASK_REGISTER): Likewise.
407 (CRTC_ADDR_PORT): Likewise.
408 (CRTC_DATA_PORT): Likewise.
409 (START_ADDR_HIGH_REGISTER): Likewise.
410 (START_ADDR_LOW_REGISTER): Likewise.
411 (GRAPHICS_ADDR_PORT): Likewise.
412 (GRAPHICS_DATA_PORT): Likewise.
413 (READ_MAP_REGISTER): Likewise.
414 (INPUT_STATUS1_REGISTER): Likewise.
415 (INPUT_STATUS1_VERTR_BIT): Likewise.
416 (get_map_mask): Use grub_vga_sr_read.
417 (set_map_mask): Use grub_vga_sr_write.
418 (set_read_map): Use grub_vga_gr_write.
419 (set_start_address): Use grub_vga_cr_write.
420 * video/sm712.c (framebuffer): Remove leftover fields.
422 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
424 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
425 setting GRUB_VIDEO_BACKEND. Make it available as a user override
426 instead. Replace the gfxterm backend check with a check that
427 ${GRUB_PREFIX}/video.lst is non-empty.
428 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
430 (load_video): New generated function. Call it before loading
431 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
432 * util/grub.d/10_linux.in (linux_entry): Call load_video.
433 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
434 * docs/grub.texi (Simple configuration): Document
437 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
439 Use video functions in linux and xnu loaders.
441 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
442 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
443 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
444 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
445 loader/i386/pc/linux.c.
446 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
447 (find_line_len): Removed.
448 (find_framebuf): Likewise.
449 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
450 * loader/i386/efi/xnu.c: Removed.
451 * loader/i386/pc/xnu.c: Moved from here...
452 * loader/i386/xnu.c: ...here.
454 Enable priorities in video drivers.
456 * include/grub/video.h (grub_video_adapter_prio_t): New type.
457 (grub_video_adapter): New field prio.
458 (grub_video_register): Respect prio when inserting.
459 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
460 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
461 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
462 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
463 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
464 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
465 * video/sm712.c (grub_video_sm712_adapter): Likewise.
469 * include/grub/video.h (grub_video_driver_id_t): New value
470 GRUB_VIDEO_DRIVER_SDL.
471 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
473 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
475 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
477 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
479 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
481 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
482 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
484 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
486 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
487 directly, and recommend grub-install instead.
488 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
490 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
492 Fix i386-pc prefix handling with nested partitions (Debian bug
493 #585068). Note that the case where the core image is booted using
494 multiboot and relocated from its original location still requires
497 * kern/i386/pc/init.c (make_install_device): If the prefix starts
498 with "(,", fill the boot drive in between those two characters, but
499 expect that a full partition specification including partition map
501 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
502 specified, write a prefix without the drive name but including a
503 full partition specification.
505 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
507 * util/grub-mkconfig.in: Ignore non-option arguments, for
508 compatibility with older versions (before 2010-06-12) which did the
509 same. In particular, this makes it easier to ship an update-grub
510 wrapper which is compatible with that used with GRUB Legacy (Debian
513 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
515 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
516 for manual page generation.
518 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
520 * po/POTFILES: Remove leftover commands/handler.c.
522 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
524 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
525 left this script non-functional.
527 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
529 * docs/man/grub-emu.h2m: New file.
531 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
533 * docs/grub.texi (Commands): Document reduced command set in rescue
535 (cpuid): New section.
537 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
539 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
540 new partition naming style.
541 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
543 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
545 Add "-o grub.iso" like cmdline options support.
547 * util/grub-install.in: Improve cmdline option parsing.
548 * util/grub-mkconfig.in: Likewise.
549 * util/grub-mkrescue.in: Likewise.
550 * util/grub-reboot.in: Likewise.
551 * util/grub-set-default.in: Likewise.
552 * util/i386/efi/grub-install.in: Likewise.
553 * util/ieee1275/grub-install.in: Likewise.
554 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
556 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
558 * .bzrignore: Ignore 41_custom.
560 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
562 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
564 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
566 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
567 prototype declarations.
569 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
570 generating fs, partmap, and video lists.
571 * include/grub/fs.h (grub_fs_register): Omit prototype if
572 GRUB_LST_GENERATOR is defined.
573 * include/grub/partition.h (grub_partition_map_register): Likewise.
574 * include/grub/video.h (grub_video_register): Likewise.
576 2010-06-12 Javier Martín <lordhabbit@gmail.com>
578 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
580 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
582 * util/grub-mkrescue.in: Support --xorriso argument.
584 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
586 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
587 Suggested by: Thomas Schmitt.
589 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
591 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
592 Suggested by: Thomas Schmitt.
594 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
598 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
599 * util/grub.d/41_custom.in: New file.
601 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
603 * util/grub-mkrescue.in (make_image): Remove sh module, which has
604 been merged back into normal.
606 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
608 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
609 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
611 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
613 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
614 when generating manual pages.
615 * docs/man/grub-bin2h.h2m: New file.
616 * docs/man/grub-editenv.h2m: New file.
617 * docs/man/grub-fstest.h2m: New file.
618 * docs/man/grub-install.h2m: New file.
619 * docs/man/grub-macho2img.h2m: New file.
620 * docs/man/grub-mkconfig.h2m: New file.
621 * docs/man/grub-mkdevicemap.h2m: New file.
622 * docs/man/grub-mkfont.h2m: New file.
623 * docs/man/grub-mkimage.h2m: New file.
624 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
625 * docs/man/grub-mkrelpath.h2m: New file.
626 * docs/man/grub-mkrescue.h2m: New file.
627 * docs/man/grub-ofpathname.h2m: New file.
628 * docs/man/grub-pe2elf.h2m: New file.
629 * docs/man/grub-probe.h2m: New file.
630 * docs/man/grub-reboot.h2m: New file.
631 * docs/man/grub-script-check.h2m: New file.
632 * docs/man/grub-set-default.h2m: New file.
633 * docs/man/grub-setup.h2m: New file.
635 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
637 Use FOR_* macros instead of *_iterate whenever possible.
639 * commands/handler.c: Removed.
640 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
641 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
642 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
643 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
644 (grub_probe_SOURCES): Remove kern/parser.c.
645 (util/grub-script-check.c_DEPENDENCIES): Removed.
646 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
647 and grub_script_check_init.c.
648 (grub_script_check_init.lst): Removed.
649 (grub_script_check_init.h): Likewise.
650 (grub_script_check_init.c): Likewise.
651 (pkglib_MODULES): Remove handler.mod and sh.mod.
652 (handler_mod_SOURCES): Removed.
653 (handler_mod_CFLAGS): Likewise.
654 (handler_mod_LDFLAGS): Likewise.
655 (normal_mod_SOURCES): Remove normal/handler.c.
656 Add script/main.c, script/script.c, script/execute.c,
657 script/function.c, script/lexer.c, grub_script.tab.c
658 and grub_script.yy.c.
659 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
660 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
661 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
662 (grub_setup_SOURCES): Remove kern/parser.c.
663 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
664 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
665 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
666 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
667 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
668 (grub_setup_SOURCES): Remove kern/parser.c.
669 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
670 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
671 * include/grub/command.h (grub_command_iterate): Removed.
672 (FOR_COMMANDS): New macro.
673 * include/grub/dl.h (grub_dl): New member next.
674 (grub_dl_iterate): Removed.
675 (grub_dl_head): New variable declaration.
676 (FOR_DL_MODULES): New macro.
677 * include/grub/fs.h: Include list.h.
678 (grub_fs): Make next first element.
679 (grub_fs_list): New variable declaration.
680 (grub_fs_register): Make inline.
681 (grub_fs_unregister): Likewise.
682 (grub_fs_iterate): Removed.
683 (FOR_FILESYSTEMS): New macro.
684 * include/grub/handler.h: Removed.
685 * include/grub/list.h (grub_list_hook_t): Removed.
686 (grub_list_test_t): Likewise.
687 (grub_list_pop): Likewise.
688 (grub_list_iterate): Likewise.
689 (grub_list_insert): Likewise.
690 (FOR_LIST_ELEMENTS): New macro.
691 * include/grub/parser.h (grub_parser_class): Removed.
692 (grub_parser_register): Likewise.
693 (grub_parser_unregister): Likewise.
694 (grub_parser_get_current): Likewise.
695 (grub_parser_set_current): Likewise.
696 (grub_register_rescue_parser): Likewise.
697 (grub_rescue_parse_line): New function.
698 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
699 * include/grub/script_sh.h (grub_script_function_list): New variable
701 (FOR_SCRIPT_FUNCTIONS): New macro.
702 (grub_script_function_iterate): Removed.
703 (grub_normal_parse_line): New prototype.
704 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
705 (FOR_DISABLED_TERM_INPUTS): Likewise.
706 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
707 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
708 * include/grub/video.h (grub_video_adapter): Move 'next' to first
710 (grub_video_register): Inline.
711 (grub_video_unregister): Likewise.
712 (grub_video_adapter_list): New variable declaration.
713 (grub_video_iterate): Removed.
714 (FOR_VIDEO_ADAPTERS): New macro.
715 * kern/dl.c (grub_dl_list): Removed. All users updated.
716 (grub_dl_iterate): Removed.
717 * kern/fs.c (grub_fs_list): Make global.
718 (grub_fs_register): Removed.
719 (grub_fs_unregister): Likewise.
720 (grub_fs_iterate): Likewise.
721 * kern/handler.c: Removed.
722 * kern/list.c (grub_list_pop): Removed.
723 (grub_list_iterate): Likewise.
724 (grub_list_insert): Likewise.
725 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
726 (grub_prio_list_insert): Don't use grub_list_insert.
727 * kern/main.c (grub_register_rescue_parser): Don't call
728 grub_register_rescue_parser.
729 * kern/parser.c (grub_parser_class): Removed.
730 (grub_parser_execute): Use grub_rescue_parse_line.
731 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
732 (grub_rescue_parser): Removed.
733 (grub_register_rescue_parser): Likewise.
734 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
735 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
736 (grub_auth_check_authentication): Likewise.
737 * normal/completion.c (iterate_command): Removed.
738 (grub_normal_do_completion): Use FOR_COMMANDS.
739 * normal/handler.c: Removed.
740 * normal/main.c (read_config_file): Remove parser changing.
741 (grub_normal_execute): Don't call read_handler_list.
742 (grub_normal_read_line_real): Statically allocate prompt.
743 (grub_cmdline_run): Use grub_normal_parse_line.
744 (GRUB_MOD_FINI): Don't call free_handler_list.
745 * normal/menu_entry.c (run): Likewise.
746 * script/function.c (grub_script_function_list): Make global.
747 (grub_script_function_iterate): Removed.
748 * script/main.c (grub_normal_parse_line): Make global.
749 (grub_sh_parser): Removed.
750 (GRUB_MOD_INIT): Likewise.
751 (GRUB_MOD_FINI): Likewise.
752 * tests/lib/functional_test.c (grub_functional_test): Use
754 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
755 (grub_test_run): Use FOR_LIST_ELEMENTS.
756 * tests/lib/unit_test.c (main): Likewise.
757 * util/deviceiter.c (grub_util_iterate_devices): Don't use
759 * util/grub-fstest.c (grub_term_input_class): Removed.
760 (grub_term_output_class): Likewise.
761 * util/grub-probe.c: Likewise.
762 * util/i386/pc/grub-setup.c: Likewise.
763 * util/sparc64/ieee1275/grub-setup.c: Likewise.
764 * util/grub-script-check.c (main): Don't call grub_init_all and
766 * video/video.c (grub_video_adapter_list): Make global.
767 (grub_video_register): Removed.
768 (grub_video_unregister): Likewise.
769 (grub_video_iterate): Likewise.
771 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
773 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
774 reported by Henrique Ferreiro.
776 2010-06-09 Robert Millan <rmh@gnu.org>
778 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
779 ones, when both are available.
781 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
783 Make --version uniform and avoid hard-coded program name.
785 * util/grub-mkimage.c (main): Use `program_name' instead of
787 * util/i386/pc/grub-setup.c (main): Likewise.
788 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
789 * util/grub-install.in: Save the basename of $0 in $self, and use the
790 latter in informational messages. Use the same format for --version
791 as the binary programs.
792 * util/grub-mkconfig.in: Likewise.
793 * util/grub-mkrescue.in: Likewise.
794 * util/grub-reboot.in: Likewise.
795 * util/grub-set-default.in: Likewise.
796 * util/i386/efi/grub-install.in: Likewise.
797 * util/ieee1275/grub-install.in: Likewise.
798 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
800 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
802 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
803 embedding area. Use <= instead of == when checking for non-emptiness.
805 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
807 * configure.ac: Add `.' to the directories searched for unifont.
809 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
811 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
814 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
816 * docs/grub.texi (History): Expand to cover GRUB 2.
817 (Serial terminal): Refer to `terminal_input' and `terminal_output'
818 commands, not `terminal'.
820 (terminal_input): New section.
821 (terminal_output): New section.
822 (uppermem): New section (stub).
823 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
825 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
827 * docs/grub.texi (Security): Menu entries are unrestricted by
828 default, not restricted to superusers as I had previously thought.
829 Reword to account for this.
831 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
833 * kern/emu/misc.c (device_mapper_null_log): New function.
834 (grub_device_mapper_supported): New function.
835 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
837 * kern/emu/hostdisk.c (find_partition_start): Check whether
838 device-mapper is supported before trying to use it.
839 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
841 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
843 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
844 (File name syntax): Likewise.
845 (help): --all is no longer supported in GRUB 2. Be more precise
846 about pattern matching.
848 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
850 * normal/completion.c (grub_normal_do_completion): When completing
851 arguments to "set" and the current word contains an equals sign,
852 skip to after the equals sign before starting completion.
854 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
856 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
858 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
860 * docs/grub.texi (Network): New section.
861 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
862 `(nd)' as in GRUB Legacy.
863 (pxe_unload): New section.
865 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
867 * docs/grub.texi (Troubleshooting): `echo' is not usually available
868 in the rescue shell, so recommend using `set' instead. Thanks,
871 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
873 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
874 (password): New section.
875 (password_pbkdf2): New section.
876 (search): New section.
877 (Security): New section.
878 (Troubleshooting): New section, currently very incomplete.
879 (Invoking grub-mkpasswd-pbkdf2): New section.
880 (Internals): New section, currently very incomplete.
882 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
884 * util/grub.d/00_header.in: Add some more quoting (of
885 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
887 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
889 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
891 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
892 to `count', fixing variable shadowing that broke the -c option.
894 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
896 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
897 in case they contain spaces.
899 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
901 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
902 "part_" to partmap module names, in line with grub-install.
903 Reported by: Jindřich Makovička (Debian bug #584426).
905 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
907 * util/grub-mkimage.c: Make target-related error messages slightly
908 more helpful; -O talks about "format". Explicitly point to the use
909 of -O if no target is specified.
910 Reported by: Didier Raboud (Debian bug #584415).
912 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
914 * INSTALL: Document several build requirements for optional features
915 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
917 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
919 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
920 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
921 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
923 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
925 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
926 Thanks to Jordan Uggla for spotting this.
928 2010-06-02 Aleš Nesrsta <starous@volny.cz>
930 Finally make USB usable.
932 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
933 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
934 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
935 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
936 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
937 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
938 (GRUB_OHCI_FSMPS): Likewise.
939 (GRUB_OHCI_PERIODIC_START): Likewise.
940 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
941 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
942 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
943 (GRUB_OHCI_SET_PORT_RESET): Likewise.
944 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
945 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
946 (grub_ohci_transaction): Likewise.
947 (grub_ohci_transfer): Improve condition detection algorithms.
948 Handle toggle property. Program the transactions correctly.
949 Improve error handling. Various important fixups.
950 (grub_ohci_portstatus): Put register writes in right order.
951 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
952 (grub_uhci_transfer): Don't show "failed" message on success.
953 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
955 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
957 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
958 before initialization is completed. Use IN direction for empty
959 transfers. Use last_trans and compute toggle.
960 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
961 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
962 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
963 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
964 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
965 (grub_usb_device): Increase toggle to 256.
966 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
967 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
968 GRUB_USBMS_SUBCLASS_SFF8070.
969 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
970 (grub_scsi_inquiry): New member page and alloc_length.
971 (grub_scsi_request_sense): New structure.
972 (grub_scsi_request_sense_data): Likewise.
973 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
975 * disk/scsi.c (grub_scsi_request_sense): New function.
976 (grub_scsi_test_unit_ready): Likewise.
977 (grub_scsi_inquiry): Fill new fields.
978 (grub_scsi_read_capacity): Likewise.
979 (grub_scsi_read10): Add request sense at the end.
980 (grub_scsi_read12): Likewise.
981 (grub_scsi_write10): Likewise.
982 (grub_scsi_write12): Likewise.
983 (grub_scsi_open): Add Test Unit Ready.
984 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
985 Support additional subclasses. Con't clear halt yet. Activate the
986 proper config. Calculate LUNs correctly.
987 (grub_usbms_transfer): Various important fixups.
989 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
991 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
992 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
993 (grub_ohci_fini_hw): New function.
994 (grub_ohci_restore_hw): Likewise.
995 (GRUB_MOD_INIT(ohci)): Register preboot hook.
996 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
997 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
999 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1001 Dedicated DMA allocations.
1003 * bus/pci.c (grub_memalign_dma32): New function
1004 (grub_dma_free): Likewise.
1005 (grub_dma_get_virt): Likewise.
1006 (grub_dma_get_phys): Likewise.
1007 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1008 (grub_ohci_pci_iter): Use dma32_alloc.
1009 (grub_ohci_transfer): Likewise.
1010 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1011 (grub_usb_bulk_readwrite): Likewise.
1012 * include/grub/pci.h: Add declarations.
1014 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1018 * bus/cs5536.c: New file.
1019 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1020 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1021 (cs5536_mod_SOURCES): New variable.
1022 (cs5536_mod_CFLAGS): Likewise.
1023 (cs5536_mod_LDFLAGS): Likewise.
1024 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1026 (kernel_img_SOURCES): Add bus/cs5536.c.
1027 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1029 (usb_mod_SOURCES): New variable.
1030 (usb_mod_CFLAGS): New variable.
1031 (usb_mod_LDFLAGS): New variable.
1032 (usbtest_mod_SOURCES): New variable.
1033 (usbtest_mod_CFLAGS): New variable.
1034 (usbtest_mod_LDFLAGS): New variable.
1035 (ohci_mod_SOURCES): New variable.
1036 (ohci_mod_CFLAGS): New variable.
1037 (ohci_mod_LDFLAGS): New variable.
1038 (usbms_mod_SOURCES): New variable.
1039 (usbms_mod_CFLAGS): New variable.
1040 (usbms_mod_LDFLAGS): New variable.
1041 (usb_keyboard_mod_SOURCES): New variable.
1042 (usb_keyboard_mod_CFLAGS): New variable.
1043 (usb_keyboard_mod_LDFLAGS): New variable.
1044 * include/grub/smbus.h: New file.
1045 * include/grub/cs5536.h: New file.
1047 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1049 * util/grub.d/00_header.in: Add safety check to make sure that
1050 ${locale_dir} exists before trying to probe it.
1052 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1054 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1055 per the GNU Coding Standards; this is now too obscure to be worth
1058 (chainloader): Remove cross-reference to `SCO UnixWare'.
1060 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1062 * docs/grub.texi (Chain-loading): New section.
1063 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1064 adjusted for GRUB 2.
1065 (SCO UnixWare): Likewise.
1067 (chainloader): Add reference to `Block list syntax'.
1068 (drivemap): New section.
1069 (parttool): New section.
1071 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1073 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1075 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1076 (Installing GRUB using grub-install): Remove reference to the grub
1077 shell; mention `grub-mkimage' and `grub-setup' instead.
1078 (Invoking grub-install): Likewise.
1079 (Interface): Add reference to `Menu entry editor'.
1080 (serial): Remove `--device' option.
1082 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1084 * docs/grub.texi (Configuration): New section, documenting
1085 configuration file generation using grub-mkconfig. I've left a slot
1086 for documenting the full shell scripting format but have not yet
1087 started on writing that up.
1088 (Invoking grub-mkconfig): New section.
1090 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1092 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1093 (GNU GRUB manual): Likewise.
1094 (General commands): Update description of `terminfo' for GRUB 2.
1096 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1098 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1099 (GRUB_MOD_INIT): Fix capitalisation.
1100 * docs/grub.texi (Command-line and menu entry commands): Document
1101 gettext and gptsync commands.
1103 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1105 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1106 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1108 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1110 Add btrfs probing support, currently only in the single-device case.
1112 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1114 (grub_guess_root_device): Call find_root_device_from_mountinfo
1115 before looking in /dev.
1117 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1119 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1120 GRUB_DISK_SIZE_UNKNOWN.
1121 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1123 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1125 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1126 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1127 corrupted or not synced properly.
1129 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1131 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1132 Reported by: Seth Goldberg.
1134 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1136 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1138 Reported by: Seth Goldberg.
1140 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1142 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1143 Reported by: Seth Goldberg.
1145 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1147 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1148 64-bit address as signed on MIPS.
1150 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1152 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1153 to the empty string.
1155 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1157 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1159 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1160 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1161 * kern/misc.c (__enable_execute_stack): Disable on
1164 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1166 Make grub-probe work with symbolic links under /dev/mapper as well
1167 as with real block devices. The Linux world seems to be (at best)
1168 in transition here, and GRUB shouldn't get caught in the middle.
1170 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1173 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1175 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1176 input files (in which case exit zero).
1178 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1180 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1181 return NULL for various reasons even if it has a maximum-length
1182 buffer: for example, there might be a symlink loop, or the path
1183 might exceed PATH_MAX. If this happens, return NULL.
1185 2010-05-27 Robert Millan <rmh@gnu.org>
1187 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1188 partmap module to handle cross-partmap setups.
1189 Reported by Orestes Mas. Gràcies!
1191 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1193 * util/grub-mkrescue.in: Initialise override_dir rather than
1194 assuming that it's unset or empty in the environment.
1196 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1198 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1199 variable index into p_index to suppress a warning with -Wshadow.
1201 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1203 * INSTALL: Added flex >= 2.5.35 requirement.
1205 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1207 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1209 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1213 * commands/i386/cmostest.c: New file.
1214 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1215 (cmostest_mod_SOURCES): New variable.
1216 (cmostest_mod_CFLAGS): Likewise.
1217 (cmostest_mod_LDFLAGS): Likewise.
1218 * conf/i386-pc.rmk: Likewise.
1219 * docs/grub.texi (Vendor power-on keys): New section.
1220 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1221 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1222 and GRUB_BUTTON_CMOS_ADDRESS.
1223 * util/grub.d/00_header.in: Handle powering-on by separate button.
1225 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1227 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1228 Removed drawing_scrollbar argument. All users updated
1230 Reported by Jo Shields
1232 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1234 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1235 buffer since gfxterm handles double repaint.
1237 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1239 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1240 * term/gfxterm.c (real_scroll): Likewise.
1242 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1244 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1245 before calling BIOS.
1247 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1249 * include/grub/i18n.h: Always enable grub_gettext.
1251 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1253 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1254 partition naming style.
1256 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1258 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1259 not the first option.
1261 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1263 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1265 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1267 * util/misc.c: Move inclusion of <limits.h> to ...
1268 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1270 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1272 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1273 Fix merge error in NetBSD code.
1274 (find_partition_start) [__NetBSD__]: Likewise.
1276 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1278 Fix grub-mkrescue usage unit testing.
1280 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1282 2010-05-18 Christian Franke <franke@computer.org>
1284 * util/grub.d/10_windows.in: Use path names instead of
1285 drive letters to prevent warning from Cygwin 1.7.
1286 Add drivemap command to menuentry if needed.
1288 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1290 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1291 gnumach and gnumach.gz.
1293 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1295 * include/grub/i18n.h (gettext): Inline instead of using #define.
1296 (grub_gettext): Likewise.
1299 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1301 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1302 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1303 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1304 (main): Add a slash after pkglibdirroot.
1306 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1308 * util/grub-install.in: Add missing "in" keyword.
1310 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1312 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1313 Reported by: Seth Goldberg.
1315 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1317 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1319 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1321 * configure.ac: Check for Linux device-mapper support.
1323 * util/hostdisk.c (device_is_mapped): New function.
1324 (find_partition_start): New function, partly broken out from
1325 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1326 device-mapper support added.
1327 (linux_find_partition): Use find_partition_start.
1328 (convert_system_partition_to_system_disk): Add `st' argument.
1329 Support Linux /dev/mapper/* devices if device-mapper support is
1330 available; only DM-RAID devices are understood at present.
1331 (find_system_device): Add `st' argument. Pass it to
1332 convert_system_partition_to_system_disk.
1333 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1334 find_system_device and convert_system_partition_to_system_disk. Use
1335 find_partition_start.
1337 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1338 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1339 * util/deviceiter.c [__linux__]: Define MINOR.
1340 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1341 * util/mkdevicemap.c (grub_putchar): New function.
1342 (grub_getkey): New function.
1343 (grub_refresh): New function.
1344 (main): Set debug=all if -v -v is used.
1346 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1348 Fix build with non-GNU libcs.
1350 * util/misc.c (canonicalize_file_name): Move to ...
1351 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1352 grub_make_system_path_relative_to_its_root.
1354 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1356 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1357 we handle finding grub-mkimage. Default to finding grub-mkimage in
1358 ${bindir} with program_transform_name applied, and provide a
1359 --grub-mkimage option to override this.
1361 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1363 Remove grub-mkisofs.
1365 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1366 (grub_mkisofs_SOURCES): Removed.
1367 (grub_mkisofs_CFLAGS): Removed.
1368 * util/mkisofs/defaults.h: Removed.
1369 * util/mkisofs/eltorito.c: Likewise.
1370 * util/mkisofs/exclude.h: Likewise.
1371 * util/mkisofs/hash.c: Likewise.
1372 * util/mkisofs/include/: Likewise.
1373 * util/mkisofs/include/fctldefs.h: Likewise.
1374 * util/mkisofs/include/mconfig.h: Likewise.
1375 * util/mkisofs/include/prototyp.h: Likewise.
1376 * util/mkisofs/include/statdefs.h: Likewise.
1377 * util/mkisofs/iso9660.h: Likewise.
1378 * util/mkisofs/joliet.c: Likewise.
1379 * util/mkisofs/match.c: Likewise.
1380 * util/mkisofs/match.h: Likewise.
1381 * util/mkisofs/mkisofs.c: Likewise.
1382 * util/mkisofs/mkisofs.h: Likewise.
1383 * util/mkisofs/msdos_partition.h: Likewise.
1384 * util/mkisofs/multi.c: Likewise.
1385 * util/mkisofs/name.c: Likewise.
1386 * util/mkisofs/rock.c: Likewise.
1387 * util/mkisofs/tree.c: Likewise.
1388 * util/mkisofs/write.c: Likewise.
1390 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1392 Unify grub-mkimage accross platforms.
1394 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1395 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1396 (grub_mkelfimage_SOURCES): Removed.
1397 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1398 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1399 (bin_UTILITIES): Add grub-mkimage.
1400 (grub_mkimage_SOURCES): New variable.
1401 (kernel_img_HEADERS): Remove machine/kernel.h.
1402 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1403 (pkglib_PROGRAMS): Add kernel.img.
1404 (kernel_img_HEADERS): Add machine/kernel.h.
1405 (kernel_img_FORMAT): Removed.
1406 (bin_UTILITIES): Remove grub-mkimage.
1407 (grub_mkimage_SOURCES): Removed.
1408 (grub_mkimage_CFLAGS): Likewise.
1409 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1410 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1411 (pkglib_PROGRAMS): Add kernel.img.
1412 (bin_UTILITIES): Remove grub-mkimage.
1413 (grub_mkimage_SOURCES): Removed.
1414 (grub_mkimage_CFLAGS): Likewise.
1415 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1416 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1417 (pkglib_PROGRAMS): Add kernel.img.
1418 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1419 (pkglib_PROGRAMS): Add kernel.img.
1420 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1421 (grub_mkimage_SOURCES): Removed.
1422 (grub_mkimage_CFLAGS): Likewise.
1423 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1424 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1425 (pkglib_PROGRAMS): Add kernel.img.
1426 (bin_UTILITIES): Remove grub-mkimage.
1427 (grub_mkimage_SOURCES): Removed.
1428 (grub_mkimage_CFLAGS): Likewise.
1429 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1430 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1431 (grub_mkimage_SOURCES): Removed.
1432 (grub_mkimage_CFLAGS): Likewise.
1433 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1434 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1435 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1436 (grub_pe32_optional_header): ... this.
1437 (grub_pe64_optional_header): ... and this. All users updated.
1438 (GRUB_PE32_PE32_MAGIC): Split into ..
1439 (GRUB_PE32_PE32_MAGIC): .. this.
1440 (GRUB_PE32_PE64_MAGIC): .. and this.
1441 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1442 * include/grub/elf.h (PT_GNU_STACK): New definition.
1443 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1444 * include/grub/i386/efi/kernel.h: Likewise.
1445 * include/grub/i386/kernel.h: Likewise.
1446 * include/grub/i386/pc/kernel.h: Likewise.
1447 * include/grub/i386/qemu/boot.h: Likewise.
1448 * include/grub/mips/kernel.h: Likewise.
1449 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1450 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1451 * include/grub/powerpc/kernel.h: Likewise.
1452 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1453 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1454 * include/grub/sparc64/kernel.h: Likewise.
1455 * include/grub/x86_64/efi/kernel.h: Likewise.
1456 * include/grub/x86_64/kernel.h: Likewise.
1457 * include/grub/offsets.h: New file.
1458 * include/grub/kernel.h (grub_module_info): Split into ...
1459 (grub_module_info32): ... this.
1460 (grub_module_info64): ... and this.
1461 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1462 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1463 (grub_boot_blocklist): Moved from here ...
1464 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1465 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1466 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1467 * include/grub/types.h (grub_target_to_host16): Removed.
1468 (grub_target_to_host32): Likewise.
1469 (grub_target_to_host64): Likewise.
1470 (grub_host_to_target16): Likewise.
1471 (grub_host_to_target32): Likewise.
1472 (grub_host_to_target64): Likewise.
1473 (grub_host_to_target_addr): Likewise.
1475 Support grub-mkrescue for efi, coreboot and qemu.
1477 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1478 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1479 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1480 * util/grub-mkrawimage.c: Moved from here ...
1481 * util/grub-mkimage.c: ... here. All users updated.
1482 (ALIGN_ADDR): Use image_target.
1483 (TARGET_NO_FIELD): New const.
1484 (image_target_desc): New type.
1485 (image_targets): New array.
1486 (grub_target_to_host64): Use image_target.
1487 (grub_target_to_host32): Likewise.
1488 (grub_target_to_host16): Likewise.
1489 (grub_host_to_target64): Likewise.
1490 (grub_host_to_target32): Likewise.
1491 (grub_host_to_target16): Likewise.
1492 (grub_host_to_target_addr): Likewise.
1493 (generate_image): Handle multiimage.
1494 (main): Require -O parameter. All users updated.
1495 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1496 util/efi/grub-mkimage.c
1497 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1498 New option --rom-directory.
1500 * util/i386/efi/grub-mkimage.c: Removed.
1501 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1502 (grub_target_to_host32): Likewise.
1503 (grub_target_to_host64): Likewise.
1504 (grub_host_to_target16): Likewise.
1505 (grub_host_to_target32): Likewise.
1506 (grub_host_to_target64): Likewise.
1507 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1508 (grub_target_to_host32): Likewise.
1509 (grub_target_to_host64): Likewise.
1510 (grub_host_to_target16): Likewise.
1511 (grub_host_to_target32): Likewise.
1512 (grub_host_to_target64): Likewise.
1514 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1516 Source tree is reorganized for emu build.
1518 * include/grub/util/console.h: Move from here...
1519 * include/grub/emu/console.h: ...to here.
1520 * include/grub/util/getroot.h: Move from here...
1521 * include/grub/emu/getroot.h: ...to here.
1522 * include/grub/util/hostdisk.h: Move from here...
1523 * include/grub/emu/hostdisk.h: ...to here.
1524 * util/console.c: Move from here...
1525 * kern/emu/console.c: ...to here.
1526 * util/getroot.c: Move from here...
1527 * kern/emu/getroot.c: ...to here.
1528 * util/grub-emu.c: Move from here...
1529 * kern/emu/main.c: ...to here.
1530 * util/hostdisk.c: Move from here...
1531 * kern/emu/hostdisk.c: ...to here.
1532 * util/hostfs.c: Move from here...
1533 * kern/emu/hostfs.c: ...to here.
1534 * util/mm.c: Move from here...
1535 * kern/emu/mm.c: ...to here.
1536 * util/pci.c: Move from here...
1537 * bus/emu/pci.c: ...to here.
1538 * util/sdl.c: Move from here...
1539 * video/emu/sdl.c: ...to here.
1540 * util/time.c: Move from here...
1541 * kern/emu/time.c: ...to here.
1542 * util/usb.c: Move from here...
1543 * bus/usb/emu/usb.c: ...to here.
1545 * include/grub/emu/misc.h: New header for grub-emu functions.
1546 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1548 * conf/any-emu.rmk: Rule updates for above renames.
1549 * conf/common.rmk: Likewise.
1550 * conf/i386-pc.rmk: Likewise.
1551 * conf/i386-qemu.rmk: Likewise.
1552 * conf/mips.rmk: Likewise.
1553 * conf/sparc64-ieee1275.rmk: Likewise.
1554 * conf/x86-efi.rmk: Likewise.
1556 * disk/lvm.h: #include updates for above renames.
1557 * util/grub-mkrelpath.c: Likewise.
1558 * util/grub-probe.c: Likewise.
1559 * util/i386/pc/grub-setup.c: Likewise.
1560 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1561 * kern/emu/console.c: Likewise.
1562 * kern/emu/getroot.c: Likewise.
1563 * kern/emu/hostdisk.c: Likewise.
1564 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1566 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1567 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1568 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1569 * util/misc.c: Remove grub-emu functions.
1571 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1574 Reported by: Thorsten Grützmacher.
1576 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1578 (circprog_set_property): Register and unregister timeout hook.
1579 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1580 (label_destroy): Free template. and unregister hook.
1581 (label_set_state): New function.
1582 (label_set_property): Handle templates and hooks.
1583 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1585 (progress_bar_set_property): Register and unregister timeout hook.
1586 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1587 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1588 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1589 (update_timeout_visit): Removed.
1590 (update_timeouts): New function.
1591 (redraw_timeouts): Likewise.
1592 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1593 (grub_gfxmenu_clear_timeout): Likewise.
1594 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1595 (grub_gfxmenu_timeout_notify): Likewise.
1596 (grub_gfxmenu_timeout_notifications): New external variable.
1597 (grub_gfxmenu_timeout_register): New function.
1598 (grub_gfxmenu_timeout_unregister): Likewise.
1600 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1602 Transform (broken) vga terminal into (working) vga video driver.
1604 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1605 video/i386/pc/vga.c.
1606 * include/grub/video.h (grub_video_driver_id):
1607 Add GRUB_VIDEO_DRIVER_VGA.
1608 * term/i386/pc/vga.c: Renamed to ...
1609 * video/i386/pc/vga.c: ...this
1610 (DEBUG_VGA): Removed.
1611 (CHAR_WIDTH): Likewise.
1612 (CHAR_HEIGHT): Likewise.
1613 (TEXT_WIDTH): Likewise.
1614 (TEXT_HEIGHT): Likewise.
1615 (DEFAULT_FG_COLOR): Likewise.
1616 (DEFAULT_BG_COLOR): Likewise.
1617 (colored_char): Likewise.
1620 (cursor_state): Likewise.
1621 (fg_color): Likewise.
1622 (bg_color): Likewise.
1623 (text_buf): Likewise.
1626 (framebuffer): New variable.
1627 (set_read_map): Disabled.
1628 (setup): New variable.
1629 (is_target): Likewise.
1630 (grub_vga_mod_init): Likewise.
1631 (grub_vga_mod_fini): Likewise.
1632 (check_vga_mem): Likewise.
1633 (write_char): Likewise.
1634 (write_cursor): Likewise.
1635 (scroll_up): Likewise.
1636 (grub_vga_putchar): Likewise.
1637 (grub_vga_getcharwidth): Likewise.
1638 (grub_vga_getwh): Likewise.
1639 (grub_vga_getxy): Likewise.
1640 (grub_vga_gotoxy): Likewise.
1641 (grub_vga_cls): Likewise.
1642 (grub_vga_setcolorstate): Likewise.
1643 (grub_vga_setcursor): Likewise.
1644 (grub_video_vga_init): New function.
1645 (grub_video_vga_setup): Likewise.
1646 (grub_video_vga_fini): Likewise.
1647 (update_target): Likewise.
1648 (grub_video_vga_blit_bitmap): Likewise.
1649 (grub_video_vga_blit_render_target): Likewise.
1650 (grub_video_vga_set_active_render_target): Likewise.
1651 (grub_video_vga_get_active_render_target): Likewise.
1652 (grub_video_vga_swap_buffers): Likewise.
1653 (grub_video_vga_set_palette): Likewise.
1654 (grub_video_vga_get_info_and_fini): Likewise.
1655 (grub_vga_term): Removed.
1656 (grub_video_vga_adapter): New variable.
1657 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1658 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1660 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1662 * video/readers/jpeg.c: Indented.
1664 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1666 Various jpeg cleanups.
1668 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1669 (grub_jpeg_decode_quan_table): Use sizeof.
1670 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1672 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1674 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1675 tables. Ignore non-last ac bit.
1676 (grub_jpeg_decode_quan_table): Likewise.
1678 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1680 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1681 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1682 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1683 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1684 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1685 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1687 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1689 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1692 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1694 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1696 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1698 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1701 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1703 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1706 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1708 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1711 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1713 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1715 2010-05-01 Christian Franke <franke@computer.org>
1717 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1718 Remove broken Cygwin path conversion.
1719 * util/misc.c: [__CYGWIN__] Add include and define.
1720 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1722 (make_system_path_relative_to_its_root): Simplify loop, replace early
1724 [__CYGWIN__] Add conversion to win32 path.
1725 Include "/" case in trailing slash removal.
1727 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1729 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1730 Reported by: Seth Goldberg
1732 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1734 * commands/help.c (grub_cmd_help): Fix a typo.
1735 Reported by: Seth Goldberg
1737 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1739 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1741 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1742 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1743 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1744 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1745 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1746 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1747 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1748 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1749 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1750 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1751 * normal/context.c (GRUB_MOD_INIT): Likewise.
1752 * normal/main.c (GRUB_MOD_INIT): Likewise.
1753 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1754 * term/serial.c (GRUB_MOD_INIT): Likewise.
1755 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1757 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1759 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1762 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1764 * commands/iorw.c: New file.
1765 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1766 (iorw_mod_SOURCES): New variable.
1767 (iorw_mod_CFLAGS): Likewise.
1768 (iorw_mod_LDFLAGS): Likewise.
1770 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1774 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1775 * normal/main.c (hotkey_aliases): New variable.
1776 (grub_normal_add_menu_entry): Parse "--hotkey".
1777 * normal/menu_text.c (run_menu): Handle hotkeys.
1779 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1781 * kern/i386/coreboot/init.c (grub_machine_init): Call
1782 grub_machine_mmap_init on qemu.
1784 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1786 * boot/i386/qemu/boot.S: Add a missing .code16.
1788 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1790 Use LBIO on coreboot.
1792 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1793 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1794 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1796 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1797 grub_machine_mmap_init on coreboot.
1798 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1799 GRUB_LINUXBIOS_MEMBER_LINK.
1800 (grub_machine_mmap_iterate): Fix declaration.
1801 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1803 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1805 Split coreboot and multiboot ports.
1807 * conf/i386-multiboot.rmk: New file.
1808 * configure.ac: Add multiboot port.
1809 * include/grub/i386/multiboot/boot.h: New file.
1810 * include/grub/i386/multiboot/console.h: Likewise.
1811 * include/grub/i386/multiboot/init.h: Likewise.
1812 * include/grub/i386/multiboot/kernel.h: Likewise.
1813 * include/grub/i386/multiboot/loader.h: Likewise.
1814 * include/grub/i386/multiboot/memory.h: Likewise.
1815 * include/grub/i386/multiboot/serial.h: Likewise.
1816 * include/grub/i386/multiboot/time.h: Likewise.
1817 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1818 * loader/multiboot.c: Likewise.
1819 * loader/multiboot_mbi2.c: Likewise.
1820 * util/grub-mkrescue.in: Generate multiboot rescue.
1822 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1824 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1826 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1828 Merge handling of input and output terminals. Fix a hang.
1830 * commands/terminal.c (abstract_terminal): New struct.
1831 (handle_command): New function. Based on grub_cmd_terminal_input.
1832 (grub_cmd_terminal_input): Use handle_command.
1833 (grub_cmd_terminal_output): Use handle_command.
1835 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1837 Fix comment handling.
1839 * tests/grub_script_comments.in: New testcase.
1840 * conf/tests.rmk: Rules for new testcase.
1841 * script/yylex.l: Updated flex rules.
1843 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1845 * docs/grub.texi (play): Document that zero pitches produce rests.
1846 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1849 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1851 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1854 2010-04-26 Christian Franke <franke@computer.org>
1856 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1857 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1858 (grub_get_prefix): Remove function.
1859 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1860 make_system_path_relative_to_its_root ().
1861 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1863 2010-04-24 Christian Franke <franke@computer.org>
1865 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1866 (kernel_img_LDFLAGS): Remove -static-libgcc.
1868 2010-04-24 Christian Franke <franke@computer.org>
1870 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1871 and CHECK_END_SYMBOL if grub-emu is built.
1872 Unset TARGET_OBJ2ELF if grub-emu is built
1873 without module support.
1875 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1879 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1880 (grub_fstest_SOURCES): Likewise.
1881 (pkglib_MODULES): Add nilfs2.mod.
1882 (nilfs2_mod_SOURCES): New variable.
1883 (nilfs2_mod_CFLAGS): Likewise.
1884 (nilfs2_mod_LDFLAGS): Likewise.
1885 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1886 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1887 * fs/nilfs2.c: New file.
1889 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1891 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1894 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1896 Add grub-mkconfig support for NetBSD.
1898 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1899 * util/grub-mkconfig.in: export new NetBSD specific variables.
1900 * po/POTFILES-shell: added 10_netbsd.in.
1901 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1903 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1905 Fix emu build with grub-emu-pci and grub-emu-modules.
1907 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1909 * include/grub/libpciaccess.h: New file.
1910 * conf/any-emu.rmk: Update kernel headers for emu build.
1912 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1914 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1916 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1918 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1920 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1922 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1923 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1924 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1925 util/ieee1275/ofpath.c.
1926 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1927 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1928 * include/grub/sparc64/ieee1275/boot.h
1929 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1930 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1931 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1932 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1934 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1935 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1936 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1939 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1941 * util/grub-mkconfig.in: Corrected two == equality tests.
1942 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1943 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1944 expect a number appended to it.
1945 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1946 expects a number appended to it.
1948 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1950 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1952 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1954 * util/hostdisk.c (make_device_name): Change to new partition naming.
1956 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1958 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1960 2010-04-17 Christian Franke <franke@computer.org>
1962 * Makefile.in: Add missing localedir setting.
1964 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1966 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1967 mistake in r2156. Noticed by Anthony Fok.
1969 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1971 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1973 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1975 Fix a spurious, uninitialized variable warning.
1977 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1978 Initialize variable, shdr.
1979 (grub_freebsd_load_elfmodule): Likewise.
1980 (grub_freebsd_load_elf_meta): Likewise.
1982 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1984 Fix for escaped dollar in double quoted strings.
1986 * script/yylex.l: Updated flex rules.
1987 * conf/tests.rmk: Rule for new testcase.
1988 * tests/grub_script_dollar.in: New testcase.
1990 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1991 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1993 Enclose all translated strings in grub.cfg in single quotes, and
1994 escape them appropriately (Ubuntu bug #552921).
1996 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1997 * util/grub.d/10_hurd.in: Use it.
1998 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1999 * util/grub.d/10_linux.in (linux_entry): Likewise.
2001 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2003 Fix cygwin compilation.
2005 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2006 * include/grub/misc.h (__register_frame_info)
2007 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2008 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2009 * kern/misc.c (__register_frame_info)
2010 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2011 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2013 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2015 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2017 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2019 Unify libgcc processing.
2021 * Makefile.in (kernel_img_LDFLAGS): New variable.
2022 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2023 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2025 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2026 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2027 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2028 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2029 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2030 overwriting. Remove -lgcc and -static-libgcc
2031 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2032 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2033 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2034 (kernel_img_LDFLAGS): Append instead of overwriting.
2035 Remove -lgcc and -static-libgcc
2036 * conf/sparc64-ieee1275.rmk: Likewise.
2037 * include/grub/powerpc/libgcc.h: Move to ...
2038 * include/grub/libgcc.h: .. this.
2039 * include/grub/libgcc.h: Don't export most of the function on x86.
2040 (__bswapsi2): New export.
2041 (__bswapdi2): Likewise.
2042 * include/grub/mips/libgcc.h: Removed.
2043 * include/grub/sparc64/libgcc.h: Likewise.
2045 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2047 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2048 disk_info_msg (conflicts with gettexting into languages with cases).
2050 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2052 Add grub-probe support for NetBSD.
2054 * util/getroot.c (find_root_device): Convert block device to
2055 character device on NetBSD.
2056 * util/probe.c (probe): Require character device on NetBSD.
2057 * util/hostdisk.c: NetBSD specific headers.
2058 (configure_device_driver): new function to tune device driver
2059 parameters (currently only for NetBSD floppy driver).
2060 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2061 via disklabel ioctl).
2062 (open_device): call configure_device_driver on NetBSD.
2063 (convert_system_partition_to_system_disk): NetBSD specific code.
2064 (device_is_wholedisk): Likewise.
2065 (grub_util_biosdisk_get_grub_dev): Likewise.
2066 (make_device_name): Fixed a typo in bsd_part_str.
2067 * configure.ac: check for opendisk() and getrawpartition() on
2068 NetBSD and set LIBUTIL.
2069 * Makefile.in: add LIBUTIL to LIBS.
2071 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2075 * util/grub-script-check.c: Better help message.
2077 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2081 * configure.ac: Flex version check.
2082 * conf/common.rmk: Add -Wno-error to sh.mod.
2083 * script/yylex.l: Remove all #pragma.
2085 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2087 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2089 Reported by: Seth Goldberg.
2091 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2093 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2094 Rename "module" to "module2".
2095 Reported by: Seth Goldberg.
2097 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2099 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2101 Reported by: Seth Goldberg.
2103 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2105 * lib/posix_wrap/locale.h: Add missing file.
2106 Reported by: Seth Goldberg.
2108 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2110 grub-emu module load support.
2112 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2113 NO_DYNAMIC_MODULES switched to this.
2114 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2116 * conf/any-emu.rmk: Generate symlist.
2117 (kernel_img_HEADERS): Add util/datetime.h.
2118 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2119 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2120 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2121 kern/$(target_cpu)/cache.S.
2122 * configure.ac (grub-emu-modules): New option.
2123 * genmk.rb: Handle multiple source lists.
2124 * include/grub/sdl.h: New file.
2125 * include/grub/libusb.h: Likewise.
2126 * util/grub-emu.c (main): Hanle (host) root.
2127 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2128 GRUB_ERR_UNKNOWN_DEVICE.
2129 * util/misc.c: Move mm functions to ...
2130 * util/mm.c: ... here. All users updated.
2132 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2134 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2135 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2137 (maintainer-clean): Remove libgcrypt-grub.
2139 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2141 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2143 2010-04-09 EFI Coder <eficoder@hotmail.com>
2145 * normal/menu_text.c (print_message): Clean up the message and show
2146 the Fn information when on EFI
2147 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2149 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2151 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2153 * normal/crypto.c (read_crypto_list): Likewise.
2154 * normal/dyncmd.c (read_command_list): Likewise.
2155 * normal/term.c (read_terminal_list): Likewise.
2156 * normal/main.c (read_lists): Use explicit prefix.
2157 (read_lists_hook): Use read_lists.
2158 (grub_normal_execute): Likewise.
2160 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2162 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2163 Reported by: Thomas Schmitt.
2164 Add -no-emul-boot to grub-mkisofs parameters.
2166 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2168 * font/font.c: Indented.
2170 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2172 Elif support to GRUB script (by Deepak Vankadaru).
2174 * tests/grub_script_if.in: New testcase.
2175 * conf/tests.rmk: Rule for new testcase.
2176 * script/parser.y: Grammar rules for elif.
2178 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2180 While and until loops support to GRUB script.
2182 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2183 (grub_script_create_cmdwhile): New function prototype.
2184 (grub_script_execute_cmdwhile): New function prototype.
2185 * script/execute.c (grub_script_execute_cmdwhile): New function.
2186 * script/parser.y (command): New commands.
2187 (whilecmd): New grammar rule.
2188 (untilcmd): New grammar rule.
2189 * script/script.c (grub_script_create_cmdwhile): New function.
2190 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2193 * tests/grub_script_while1.in: New testcase.
2194 * conf/tests.rmk: Rule for new testcase.
2196 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2198 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2201 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2203 GRUB_BACKGROUND support.
2205 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2206 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2208 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2210 Load fonts and modules for gfxmenu in grub-mkconfig.
2211 Idea by: Mario Vazquez
2213 * util/grub.d/00_header.in: Load pf2 and image modules.
2215 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2217 grub-mkconfig multiple terminal support.
2219 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2220 * util/grub.d/00_header.in: Likewise.
2222 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2224 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2225 we use cd $(srcdir).
2227 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2229 * util/grub.d/10_linux.in: Only use the first word of
2230 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2231 spaces in GRUB_DISTRIBUTOR.
2232 * util/grub.d/10_kfreebsd.in: Likewise.
2233 * util/grub.d/10_hurd.in: Likewise.
2235 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2237 Fix unit testing framework for Qemu 0.12.
2239 * tests/util/grub-shell.in: Remove -serial stdio option.
2241 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2243 POSIX header file wrappers.
2245 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2247 * lib/posix_wrap/ctype.h: Likewise.
2248 * lib/posix_wrap/errno.h: Likewise.
2249 * lib/posix_wrap/langinfo.h: Likewise.
2250 * lib/posix_wrap/limits.h: Likewise.
2251 * lib/posix_wrap/localcharset.h: Likewise.
2252 * lib/posix_wrap/stdint.h: Likewise.
2253 * lib/posix_wrap/stdio.h: Likewise.
2254 * lib/posix_wrap/stdlib.h: Likewise.
2255 * lib/posix_wrap/string.h: Likewise.
2256 * lib/posix_wrap/sys/types.h: Likewise.
2257 * lib/posix_wrap/unistd.h: Likewise.
2258 * lib/posix_wrap/wchar.h: Likewise.
2259 * lib/posix_wrap/wctype.h: Likewise.
2260 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2261 (grub_script.yy.h): Likewise.
2262 * script/yylex.l: Remove POSIX emulation #defines.
2263 * Makefile.in (POSIX_CFLAGS): New variable.
2264 (GNULIB_UTIL_CFLAGS): Likewise.
2268 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2269 (regexp_mod_SOURCES): New variable.
2270 (regexp_mod_CFLAGS): Likewise.
2271 (regexp_mod_LDFLAGS): Likewise.
2272 * commands/regexp.c: New file.
2273 * gnulib/regcomp.c: New file. Imported from gnulib.
2274 * gnulib/regex.c: Likewise.
2275 * gnulib/regex_internal.c: Likewise.
2276 * gnulib/regex_internal.h: Likewise.
2277 * gnulib/regexec.c: Likewise.
2278 * gnulib/regex.h: Likewise.
2280 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2282 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2283 unsupported video mode types.
2285 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2287 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2289 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2291 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2292 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2294 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2296 Remove unused grub_vga_get_font.
2298 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2299 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2301 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2303 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2304 * include/grub/misc.h: Likewise.
2306 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2308 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2309 for which failure is fatal.
2311 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2313 * util/grub-install.in: Use mkdir -p to create grub directory.
2314 * util/i386/efi/grub-install.in: Likewise.
2315 * util/ieee1275/grub-install.in: Likewise.
2317 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2319 * Makefile.in (LEX): new variable.
2321 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2323 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2324 `=' and added double quotes on operands of this equality test.
2326 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2328 * Makefile.in (uninstall): Remove a leftover debug echo.
2329 Reported by: Grégoire Sutre
2331 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2333 MIPS multiboot2 support.
2335 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2336 (multiboot2_mod_SOURCES): New variable.
2337 (multiboot2_mod_CFLAGS): Likewise.
2338 (multiboot2_mod_LDFLAGS): Likewise.
2339 (multiboot2_mod_ASFLAGS): Likewise.
2340 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2342 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2343 (MULTIBOOT_MBI_REGISTER): Likewise.
2344 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2345 (MULTIBOOT_ELF32_MACHINE): Likewise.
2346 (MULTIBOOT_ELF64_MACHINE): Likewise.
2347 * include/grub/mips/multiboot.h: New file.
2348 * include/grub/video.h (grub_video_driver_id): New type
2349 GRUB_VIDEO_DRIVER_SM712.
2350 (grub_video_get_info_and_fini): Export.
2351 (grub_video_get_palette): Likewise.
2352 (grub_video_get_driver_id): Likewise.
2353 * include/multiboot2.h: Resynced with spec.
2354 * loader/i386/multiboot.c: Moved from here ...
2355 * loader/multiboot.c: ... here. All users updated.
2356 (grub_multiboot_boot): Use platform-specific macros.
2357 * loader/i386/multiboot_elfxx.c: Moved from here ...
2358 * loader/multiboot_elfxx.c: ... here. All users updated.
2359 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2360 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2361 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2363 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2365 Import gnulib argp module.
2367 * gnulib/argp-ba.c: New file.
2368 * gnulib/argp-eexst.c: Likewise.
2369 * gnulib/argp-fmtstream.c: Likewise.
2370 * gnulib/argp-fmtstream.h: Likewise.
2371 * gnulib/argp-fs-xinl.c: Likewise.
2372 * gnulib/argp-help.c: Likewise.
2373 * gnulib/argp-namefrob.h: Likewise.
2374 * gnulib/argp-parse.c: Likewise.
2375 * gnulib/argp-pin.c: Likewise.
2376 * gnulib/argp-pv.c: Likewise.
2377 * gnulib/argp-pvh.c: Likewise.
2378 * gnulib/argp-version-etc.c: Likewise.
2379 * gnulib/argp-version-etc.h: Likewise.
2380 * gnulib/argp-xinl.c: Likewise.
2381 * gnulib/argp.h: Likewise.
2383 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2385 * kern/device.c (grub_device_iterate): Clear errors after failed
2388 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2390 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2391 returned by firmware.
2393 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2395 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2396 compilation on coreboot and qemu
2398 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2400 * include/multiboot2.h: Resync with spec.
2402 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2404 Multiboot2 tag support
2406 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2407 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2408 Remove loader/multiboot_loader.c.
2409 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2410 (grub_multiboot2_real_boot): Likewise.
2411 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2412 (grub_get_multiboot_mmap_count): New proto.
2413 (grub_fill_multiboot_mmap): Likewise.
2414 (grub_multiboot_set_video_mode): Likewise.
2415 (grub_multiboot_set_console): Likewise.
2416 (grub_multiboot_load): Likewise.
2417 (grub_multiboot_load_elf): Likewise.
2418 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2419 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2420 * include/multiboot.h: Resynced with specification.
2421 * include/multiboot2.h: Resynced with specification.
2422 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2423 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2424 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2425 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2427 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2428 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2429 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2431 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2433 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2434 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2436 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2437 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2438 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2440 * loader/i386/multiboot_mbi2.c: New file.
2442 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2446 * Makefile.in (GNULIB_CFLAGS): New variable.
2447 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2448 (grub_script_check_CFLAGS): New variable.
2449 * gnulib/alloca.h: Resync with gnulib.
2450 * gnulib/error.c: Likewise.
2451 * gnulib/error.h: Likewise.
2452 * gnulib/fnmatch.c: Likewise.
2453 * gnulib/fnmatch_loop.c: Likewise.
2454 * gnulib/getdelim.c: Likewise.
2455 * gnulib/getline.c: Likewise.
2456 * gnulib/getopt.c: Likewise.
2457 * gnulib/getopt1.c: Likewise.
2458 * gnulib/getopt_int.h: Likewise.
2459 * gnulib/gettext.h: Likewise.
2460 * gnulib/progname.c: Likewise.
2461 * gnulib/progname.h: Likewise.
2463 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2465 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2466 which is the case with --disabled-nls.
2468 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2469 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2470 * util/misc.c: Likewise.
2471 * util/mkisofs/mkisofs.c: Likewise.
2472 * util/mkisofs/mkisofs.h: Likewise.
2474 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2476 Simplify Apple CC support.
2478 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2479 Add 0 byte at the end not to have a symbol with empty target.
2480 * mmap/i386/pc/mmap_helper.S: Likewise.
2481 * genmk.rb: Ignore errors 2030 and 2050.
2482 * kern/i386/pc/startup.S: Use LOCAL when possible.
2484 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2486 Testcase and the fix for final semicolon on cmdline.
2488 * tests/grub_script_final_semicolon.in: New testcase.
2489 * conf/tests.rmk: Rules for the new testcase.
2490 * script/parser.y: Grammar fix.
2492 2010-03-26 BVK Chaitanya <bvk@localhost>
2494 Blank lines testcase for GRUB script.
2496 * tests/grub_script_blanklines.in: New testcase.
2497 * conf/tests.rmk: Rules for the new testcase.
2499 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2503 * genmk.rb: Add -DGRUB_FILE to all C targets.
2504 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2505 * include/grub/list.h: Likewise.
2506 * include/grub/misc.h: Likewise.
2507 * include/grub/mm.h: Likewise.
2508 * include/grub/test.h: Likewise.
2509 * kern/mm.c: Likewise.
2510 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2512 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2514 Sunpc partitions support.
2516 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2517 (grub_fstest_SOURCES): Likewise.
2518 (pkglib_MODULES): Add part_sunpc.mod.
2519 (part_sunpc_mod_SOURCES): New variable.
2520 (part_sunpc_mod_CFLAGS): Likewise.
2521 (part_sunpc_mod_LDFLAGS): Likewise.
2522 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2523 * partmap/sunpc.c: New file.
2525 2010-03-26 BVK Chaitanya <bvk@localhost>
2527 For loop support to GRUB script.
2529 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2530 (grub_script_create_cmdfor): New function prototype.
2531 (grub_script_execute_cmdfor): New function prototype.
2532 * script/execute.c (grub_script_execute_cmdfor): New function.
2533 * script/parser.y (command): New for command.
2534 (forcmd): New grammar rule.
2535 * script/script.c (grub_script_create_cmdfor): New function.
2536 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2538 * tests/grub_script_for1.in: New testcase.
2539 * conf/tests.rmk: Rules for new testcase.
2541 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2545 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2546 'partition' is NULL, grub_partition_get_start already does that.
2547 * commands/loadenv.c (check_blocklists): Likewise.
2548 (write_blocklists): Likewise.
2549 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2550 (grub_fstest_SOURCES): Likewise.
2551 (pkglib_MODULES): Add part_bsd.mod.
2552 (part_bsd_mod_SOURCES): New variable.
2553 (part_bsd_mod_CFLAGS): Likewise.
2554 (part_bsd_mod_LDFLAGS): Likewise.
2555 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2556 (grub_emu_SOURCES): Likewise.
2557 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2558 * include/grub/bsdlabel.h: New file.
2559 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2561 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2562 (grub_partition_map_list): New variable.
2563 (grub_partition_map_register): Inline.
2564 (grub_partition_map_unregister): Likewise.
2565 (FOR_PARTITION_MAPS): New macro.
2566 (grub_partition_map_iterate): Removed.
2567 (grub_partition_get_start): Handle nested partitions.
2568 * include/grub/msdos_partition.h: Remove bsd-related entries.
2569 (grub_pc_partition): Remove.
2570 * kern/disk.c (grub_disk_close): Free partition data.
2571 (grub_disk_adjust_range): Handle nested partitions.
2572 * kern/partition.c (grub_partition_map_probe): New function.
2573 (grub_partition_probe): Parse name to number, handle subpartitions.
2574 (get_partmap): New function.
2575 (grub_partition_iterate): Handle subpartitions.
2576 (grub_partition_get_name): Likewise.
2577 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2578 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2579 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2580 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2582 (acorn_partition_map_probe): Remove.
2583 (acorn_partition_map_get_name): Likewise.
2584 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2586 Set 'index' to 0 since there can be only one partition entry per sector.
2587 (amiga_partition_map_probe): Remove.
2588 (amiga_partition_map_get_name): Likewise.
2589 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2591 Set 'offset' and 'index' to real positions of partitions.
2592 (apple_partition_map_probe): Remove.
2593 (apple_partition_map_get_name): Likewise.
2594 * partmap/bsdlabel.c: New file.
2595 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2597 Allocate 'data' so it can be correctly freed.
2598 Set 'index' to offset inside sector.
2599 (gpt_partition_map_probe): Remove.
2600 (gpt_partition_map_get_name): Likewise.
2601 * partmap/msdos.c (grub_partition_parse): Remove.
2602 (pc_partition_map_iterate): Don't force raw access.
2604 Make 'ext_offset' a local variable.
2605 (pc_partition_map_probe): Remove.
2606 (pc_partition_map_get_name): Remove.
2607 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2609 (sun_partition_map_probe): Remove.
2610 (sun_partition_map_get_name): Likewise.
2611 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2612 (grub_pcpart_type): Likewise.
2613 * util/hostdisk.c (open_device): Handle new numbering scheme.
2614 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2615 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2616 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2617 * util/grub-install.in: Insert all subpartition modules.
2618 * util/ieee1275/grub-install.in: Likewise.
2620 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2622 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2625 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2627 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2629 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2631 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2632 match where 'make install' puts them.
2633 * util/i386/efi/grub-install.in: Likewise.
2635 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2637 * .bzrignore: Add gentrigtables, grub-script-check,
2638 grub_script_check_init.c, grub_script_check_init.h, and
2641 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2643 * kern/parser.c: Indented.
2645 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2647 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2649 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2651 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2652 alpha_mask_size == 0 case.
2654 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2656 GRUB shell lexer and parser improvements.
2658 * conf/any-emu.rmk: Build rule updates.
2659 * conf/common.rmk: Likewise.
2660 * conf/i386-coreboot.rmk: Likewise.
2661 * conf/i386-efi.rmk: Likewise.
2662 * conf/i386-ieee1275.rmk: Likewise.
2663 * conf/i386-pc.rmk: Likewise.
2664 * conf/powerpc-ieee1275.rmk: Likewise.
2665 * conf/x86_64-efi.rmk: Likewise.
2667 * configure.ac: Configure check for flex.
2669 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2671 (grub_lexer_param): Struct member updates.
2672 (grub_parser_param): Likewise.
2673 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2674 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2675 (grub_script_lexer_init): Prototype update.
2676 (grub_script_lexer_record_start): Likewise.
2677 (grub_script_lexer_record_stop): Likewise.
2678 (grub_script_lexer_yywrap): New function prototype.
2679 (grub_script_lexer_fini): Likewise.
2680 (grub_script_execute_argument_to_string): Removed by...
2681 (grub_script_execute_argument_to_argv): ...better version.
2683 * script/execute.c (ROUND_UPTO): New macro.
2684 (grub_script_execute_cmdline): Out of memory fixes.
2685 (grub_script_execute_menuentry): Likewise.
2686 (grub_script_execute_argument_to_string): Removed. Update all
2688 (grub_script_execute_argument_to_argv): ...better version.
2689 * script/function.c (grub_script_function_create): Use
2690 grub_script_execute_argument_to_argv instead of
2691 grub_script_execute_argument_to_string.
2693 * script/lexer.c (check_varstate): Removed.
2694 (check_textstate): Removed.
2695 (grub_script_lexer_record_start): Likewise.
2696 (grub_script_lexer_record_stop): Likewise.
2697 (recordchar): Replaced with...
2698 (grub_script_lexer_record): ...new function.
2699 (nextchar): Removed.
2700 (grub_script_lexer_init): Rewritten.
2701 (grub_script_yylex): Rewritten.
2702 (append_newline): New function.
2703 (grub_script_lexer_yywrap): New function.
2704 (grub_script_lexer_fini): New function.
2705 (grub_script_yyerror): Sets error flag.
2707 * script/yylex.l: New file.
2708 (grub_lexer_yyfree): Wrapper for flex yyffre.
2709 (grub_lexer_yyalloc): Likewise.
2710 (grub_lexer_yyrealloc): Likewise.
2711 * script/parser.y: Refactored.
2713 * script/script.c (grub_script_arg_add): Out of memory fixes.
2714 (grub_script_add_arglist): Likewise.
2715 (grub_script_create_cmdline): Likewise.
2716 (grub_script_create_cmdmenu): Likewise.
2717 (grub_script_add_cmd): Likewise.
2718 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2719 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2722 * tests/grub_script_echo1.in: New testcase.
2723 * tests/grub_script_vars1.in: New testcase.
2724 * tests/grub_script_echo_keywords.in: New testcase.
2726 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2728 Remove some redundancy in build system.
2730 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2731 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2732 (TARGET_LDFLAGS): Add -nostdlib.
2733 (TARGET_IMG_LDFLAGS): Likewise.
2734 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2735 anything since mmap isn't available.
2736 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2738 (pkglib_MODULES): Remove reboot.mod.
2739 (reboot_mod_SOURCES): Removed.
2740 (reboot_mod_CFLAGS): Likewise.
2741 (reboot_mod_LDFLAGS): Likewise.
2742 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2743 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2744 (DEFSYMFILES): Add kernel_syms.lst.
2745 (kernel_img_HEADERS): Add common headers.
2746 (symlist.c): New target.
2747 (kernel_syms.lst): Likewise.
2748 (pkglib_MODULES): Add memdisk.mod.
2749 (memdisk_mod_SOURCES): New variable.
2750 (memdisk_mod_CFLAGS): Likewise.
2751 (memdisk_mod_LDFLAGS): Likewise.
2752 (pkglib_MODULES): Add reboot.mod.
2753 (reboot_mod_SOURCES): New variable.
2754 (reboot_mod_CFLAGS): Likewise.
2755 (reboot_mod_LDFLAGS): Likewise.
2756 (pkglib_MODULES): Add date.mod.
2757 (date_mod_SOURCES): New variable.
2758 (date_mod_CFLAGS): Likewise.
2759 (date_mod_LDFLAGS): Likewise.
2760 (pkglib_MODULES): Add datehook.mod.
2761 (datehook_mod_SOURCES): New variable.
2762 (datehook_mod_CFLAGS): Likewise.
2763 (datehook_mod_LDFLAGS): Likewise.
2764 (pkglib_MODULES): Add lsmmap.mod.
2765 (lsmmap_mod_SOURCES): New variable.
2766 (lsmmap_mod_CFLAGS): Likewise.
2767 (lsmmap_mod_LDFLAGS): Likewise.
2768 (pkglib_MODULES): Add boot.mod.
2769 (boot_mod_SOURCES): New variable.
2770 (boot_mod_CFLAGS): Likewise.
2771 (boot_mod_LDFLAGS): Likewise.
2772 * conf/i386-coreboot.rmk: Removed redundant parts.
2773 * conf/i386-ieee1275.rmk: Likewise.
2774 * conf/i386-pc.rmk: Likewise.
2775 * conf/mips-yeeloong.rmk: Likewise.
2776 * conf/mips.rmk: Likewise.
2777 * conf/powerpc-ieee1275.rmk: Likewise.
2778 * conf/sparc64-ieee1275.rmk: Likewise.
2779 * conf/x86_64-efi.rmk: Likewise.
2780 * conf/i386-coreboot.rmk: Moved qemu parts ..
2781 * conf/i386-qemu.rmk: ... here
2782 * conf/i386-efi.rmk: Moved common parts to...
2783 * conf/x86-efi.rmk: ... here.
2784 * conf/i386.rmk: Added modules common to all x86 variants.
2785 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2786 * disk/memdisk.c: Remove grub/machine/kernel.h.
2787 * gensymlist.sh.in: Include symbol.h.
2788 * hook/datehook.c: Correct module name.
2789 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2790 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2791 * include/grub/i386/efi/serial.h: New file.
2792 * include/grub/x86_64/efi/serial.h: Likewise.
2793 * util/time.c: Likewise.
2794 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2796 2010-03-14 Colin King <colin.king@ubuntu.com>
2797 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2799 Shrink the pre-partition-table part of boot.img by eight bytes.
2801 * boot/i386/pc/boot.S (ERR): New macro.
2802 (chs_mode): Use ERR.
2803 (geometry_error): Likewise.
2804 (hd_probe_error): Remove. This is only used once, so we wrwite
2806 (read_error): Instead of printing read_error_string, just set up
2807 %si and fall through to ...
2808 (error_message): ... this new function, also used by ERR.
2810 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2812 Speed up consecutive hostdisk operations on the same device.
2814 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2815 (grub_util_biosdisk_open): Initialise disk->data.
2816 (struct linux_partition_cache): New structure.
2817 (linux_find_partition): Cache partition start positions; these are
2818 expensive to compute on every read and write.
2819 (open_device): Cache open file descriptor in disk->data, so that we
2820 don't have to reopen it and flush the buffer cache for consecutive
2821 operations on the same device.
2822 (grub_util_biosdisk_close): New function.
2823 (grub_util_biosdisk_dev): Set `close' member.
2825 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2826 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2827 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2828 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2829 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2831 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2833 Compile parts of grub-emu as modules.
2835 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2836 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2837 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2838 (all-local): Add $(GRUB_EMU).
2839 (install-local): Install $(GRUB_EMU).
2840 (uninstall): Uninstall $(GRUB_EMU).
2841 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2842 * kern/dl.c: Likewise.
2843 * commands/sleep.c: Not include machine/time.h.
2844 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2845 (COMMON_CFLAGS): Likewise.
2846 (sbin_UTILITIES): Remove grub-emu.
2847 (grub_emu_SOURCES): Removed.
2848 (kernel_img_RELOCATABLE): New variable.
2849 (pkglib_PROGRAMS): Add kernel.img.
2850 (kernel_img_SOURCES): New variable
2851 (kernel_img_CFLAGS): Likewise.
2852 (kernel_img_LDFLAGS): Likewise.
2853 (TARGET_NO_STRIP): Likewise.
2854 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2855 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2856 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2857 (grub-emu): New target.
2858 (GRUB_EMU): New variable.
2859 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2860 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2861 * loader/xnu.c: Likewise.
2862 * include/grub/pci.h: Likewise.
2863 * genemuinit.sh: New file.
2864 * genemuinitheader.sh: Likewise.
2865 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2866 Support TARGET_NO_DYNAMIC_MODULES.
2867 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2868 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2869 * disk/loopback.c: Likewise.
2870 * font/font_cmd.c: Likewise.
2871 * partmap/acorn.c: Likewise.
2872 * partmap/amiga.c: Likewise.
2873 * partmap/apple.c: Likewise.
2874 * partmap/gpt.c: Likewise.
2875 * partmap/msdos.c: Likewise.
2876 * partmap/sun.c: Likewise.
2877 * parttool/msdospart.c: Likewise.
2878 * term/gfxterm.c: Likewise.
2879 * video/bitmap.c: Likewise.
2880 * video/readers/jpeg.c: Likewise.
2881 * video/readers/png.c: Likewise.
2882 * video/readers/tga.c: Likewise.
2883 * video/video.c: Likewise.
2884 * util/grub-emu.c (read_command_list): Removed.
2885 (main): Don't call util_init_nls.
2886 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2887 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2889 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2891 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2892 date.mod, datehook.mod.
2893 (datetime_mod_SOURCES): New variable.
2894 (datetime_mod_CFLAGS): Likewise.
2895 (datetime_mod_LDFLAGS): Likewise.
2896 (date_mod_SOURCES): Likewise.
2897 (date_mod_CFLAGS): Likewise.
2898 (date_mod_LDFLAGS): Likewise.
2899 (datehook_mod_SOURCES): Likewise.
2900 (datehook_mod_CFLAGS): Likewise.
2901 (datehook_mod_LDFLAGS): Likewise.
2902 * conf/sparc64-ieee1275.rmk: Likewise.
2903 * lib/ieee1275/datetime.c: New file.
2905 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2907 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2908 (ieee1275_fb_mod_SOURCES): New variable.
2909 (ieee1275_fb_mod_CFLAGS): Likewise.
2910 (ieee1275_fb_mod_LDFLAGS): Likewise.
2911 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2913 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2914 (HEAP_MAX_ADDR): Likewise.
2915 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2917 Correct stop condition.
2918 (grub_ieee1275_devices_iterate): New function.
2919 * video/ieee1275.c: New file.
2921 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2923 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2925 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2927 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2928 SCRATCH_PAD_DISKBOOT as scratch.
2929 (bootit): Pass Openfirmware pointer in %o4.
2930 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2932 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2933 with util/grub-mkrawimage.c.
2934 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2935 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2936 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2937 (grub_aout_load) [GRUB_UTIL]: Likewise.
2938 * include/grub/kernel.h (grub_modules_get_end): New proto.
2939 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2940 (SCRATCH_PAD_BOOT): New definition.
2941 (SCRATCH_PAD_DISKBOOT): Likewise.
2942 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2943 * include/grub/sparc64/ieee1275/ieee1275.h
2944 (grub_ieee1275_original_stack): New variable
2945 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2947 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2948 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2949 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2950 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2951 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2952 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2953 (grub_platform_image_format_t): New type.
2954 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2955 * kern/main.c (grub_modules_get_end)
2956 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2957 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2958 (codestart): Switch stacks.
2959 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2961 (grub_heap_init): Use grub_modules_get_end.
2962 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2964 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2966 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2968 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2970 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2972 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2974 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2977 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2979 * genmoddep.awk: Output all missing symbols and not only first.
2981 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2983 * NEWS: Put the date of 1.98 release.
2985 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2987 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2990 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2992 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2993 completition in the middle of string.
2995 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2997 * util/grub-mkrescue.in: Use mktemp with explicit template.
2999 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3001 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3003 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3005 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3008 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3010 Fix FreeBSD compilation.
3012 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3013 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3015 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3017 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3019 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3021 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3023 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3025 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3027 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3029 Support relative image path in theme file.
3031 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3032 (image_set_property): Handle theme_dir and relative path.
3034 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3036 * configure.ac: Alias amd64 to x86_64.
3038 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3040 * NEWS: mention multiboot on EFI.
3042 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3044 * kern/main.c (grub_load_modules): Handle errors from init functions of
3047 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3049 * normal/autofs.c (autoload_fs_module): Handle errors.
3051 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3053 Disable linux.mod on qemu-mips since it's not functional and leads
3054 to compilation failure.
3056 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3057 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3058 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3059 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3060 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3061 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3062 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3063 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3064 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3065 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3066 Reported by: BVK Chaitanya
3068 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3070 * INSTALL: Add gettext as a dependency and add qemu to a new section
3071 "Prerequisites for make-check".
3073 2010-03-04 Christian Franke <franke@computer.org>
3075 * util/grub-pe2elf.c: Add missing include "progname.h".
3077 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3079 * normal/crypto.c (read_crypto_list): Fix a typo.
3080 Reported by: Seth Goldberg.
3082 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3084 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3085 Reported by: Seth Goldberg.
3087 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3089 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3092 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3094 * genmk.rb: Remove terminal*.lst in make clean.
3095 Reported by: Seth Goldberg.
3097 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3099 * util/i386/efi/grub-install.in: Copy gettext files.
3101 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3103 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3105 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3107 Wait for user entry basing on presence of output rather than on errors.
3109 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3110 (grub_install_newline_hook): Likewise.
3111 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3112 * normal/menu.c (show_menu): Check line_counter to determine presence
3114 * normal/term.c (grub_normal_line_counter): New variable.
3115 (grub_normal_get_line_counter): New function.
3116 (grub_install_newline_hook): Likewise.
3118 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3120 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3122 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3124 * configure.ac: Update version to 1.98.
3126 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3128 * util/grub.d/10_linux.in (linux_entry): Don't default to
3129 gfxpayload=keep if Linux doesn't support video handover.
3131 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3133 Don't compile video modules on yeeloong since video subsystem is part
3136 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3137 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3138 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3139 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3140 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3141 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3142 * include/grub/bitmap_scale.h: Likewise.
3143 * include/grub/bufio.h: Likewise.
3144 * include/grub/font.h: Likewise.
3145 * include/grub/gfxterm.h: Likewise.
3146 * include/grub/video.h: Likewise.
3147 * include/grub/vbe.h: Don't include video_fb.h.
3148 * video/i386/pc/vbe.c: Include video_fb.h.
3149 * commands/i386/pc/vbetest.c: Include video.h.
3151 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3153 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3154 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3155 default entry if GRUB_SAVEDEFAULT=true. This allows using
3156 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3157 saving a new default on every boot.
3159 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3161 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3162 * normal/term.c (read_terminal_list): Likewise.
3163 * normal/main.c (grub_normal_init_page): Likewise.
3164 (grub_normal_read_line_real): Likewise.
3166 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3168 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3170 Reported by: Seth Goldberg.
3172 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3174 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3175 duplicate declaration of `start'.
3177 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3179 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3181 Reported by: Georgy Buranov
3183 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3185 * util/grub-mkrawimage.c (usage): Change string formatting to
3188 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3190 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3193 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3195 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3196 Reported by: Michael Suchanek.
3198 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3200 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3201 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3203 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3205 Remove any reference to non-free fonts.
3207 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3208 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3209 uses non-free components.
3210 * font/font.c (grub_font_get_name): Remove example name.
3211 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3212 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3213 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3214 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3216 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3218 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3220 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3222 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3224 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3226 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3228 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3230 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3232 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3234 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3235 * docs/grub.texi (Command-line and menu entry commands): Document play
3238 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3240 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3241 parse arguments as inline tempo and notes. Move code for playing notes
3243 (play): ... new function.
3245 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3247 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3248 grub_uint16_t instead of short.
3249 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3250 disk from little endian to cpu endianness.
3252 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3254 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3255 GRUB_TICKS_PER_SECOND instead of 120.
3257 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3259 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3260 escape sequence after \e.
3262 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3264 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3265 non-ASCII characters.
3267 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3269 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3270 set root in single quotes to prevent \, from being unescaped.
3272 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3274 Prevent unknown commands from stopping menuentry execution.
3276 * script/execute.c (grub_script_execute_cmdline): Print error after
3279 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3281 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3282 Reported by: Pavel Pisa.
3284 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3286 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3288 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3290 Merge grub_ieee1275_map_physical into grub_map and rename to
3293 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3294 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3296 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3297 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3299 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3301 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3303 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3304 opening and not after.
3306 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3308 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3311 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3313 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3314 (alloc_phys): Use ALIGN_UP instead of align_addr.
3316 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3318 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3320 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3322 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3324 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3326 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3329 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3331 Fix over-4GiB seek on sparc64.
3333 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3334 Replace pos_i and pos_lo with pos. All users updated.
3335 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3337 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3339 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3342 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3344 * util/grub-mkrawimage.c (main): Call set_program_name.
3346 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3348 Properly align 64-bit targets.
3350 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3351 (generate_image): Use ALIGN_ADDR.
3353 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3355 Properly create cross-endian images.
3357 * include/grub/types.h (grub_host_to_target_addr): New macro
3358 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3360 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3362 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3364 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3366 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3368 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3369 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3370 (grub_linux_boot): Divide by 64K when on VESA.
3372 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3374 Support GRUB_GFXPAYLOAD_LINUX.
3376 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3377 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3379 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3381 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3382 to show messages instead of discarding them.
3383 Process errors after executing command and not before. Keep old method
3386 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3388 * configure.ac: Check for ft2build.h.
3390 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3392 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3394 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3396 * genkernsyms.sh.in: Use TARGET_CC.
3398 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3402 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3404 * include/grub/multiboot2.h: Remove leftover file.
3405 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3406 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3408 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3410 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3412 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3414 Fix warnings in grub-emu when compiling with maximum warning options.
3416 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3417 (grub_arch_modules_addr): Return 0 and not NULL.
3418 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3419 (xstrdup): Use newstr instead of dup.
3420 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3421 of disk to dsk to avoid shadowing.
3422 (find_free_slot): Fix prototype.
3423 * util/getroot.c (grub_util_is_dmraid): Make static.
3424 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3425 Add missing prototype.
3426 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3428 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3430 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3433 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3435 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3438 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3440 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3441 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3442 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3443 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3444 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3445 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3447 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3449 * include/grub/err.h (grub_err_printf): Don't export.
3451 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3453 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3455 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3457 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3458 * kern/misc.c (grub_gettext_dummy): Make static.
3460 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3462 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3464 * kern/term.c (grub_putchar): Likewise.
3466 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3468 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3469 buggy hook call and memory leak.
3471 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3473 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3475 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3477 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3479 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3481 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3483 Return grub_errno on allocation error.
3485 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3487 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3489 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3491 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3492 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3494 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3496 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3498 (grub_pxefs_open): Likewise.
3500 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3502 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3503 * util/grub.d/10_kfreebsd.in: Likewise.
3504 * util/grub.d/10_linux.in: Likewise.
3506 2010-02-06 Colin D Bennett <colin@gibibit.com>
3508 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3509 (gfxmenu_mod_SOURCES): New variable.
3510 (gfxmenu_mod_CFLAGS): Likewise.
3511 (gfxmenu_mod_LDFLAGS): Likewise.
3512 * include/grub/term.h (grub_term_set_current_output): Declare
3514 * docs/gfxmenu-theme-example.txt: New file.
3515 * gfxmenu/gfxmenu.c: Likewise.
3516 * gfxmenu/gui_box.c: Likewise.
3517 * gfxmenu/gui_canvas.c: Likewise.
3518 * gfxmenu/gui_circular_progress.c: Likewise.
3519 * gfxmenu/gui_image.c: Likewise.
3520 * gfxmenu/gui_label.c: Likewise.
3521 * gfxmenu/gui_list.c: Likewise.
3522 * gfxmenu/gui_progress_bar.c: Likewise.
3523 * gfxmenu/gui_string_util.c: Likewise.
3524 * gfxmenu/gui_util.c: Likewise.
3525 * gfxmenu/icon_manager.c: Likewise.
3526 * gfxmenu/model.c: Likewise.
3527 * gfxmenu/named_colors.c: Likewise.
3528 * gfxmenu/theme_loader.c: Likewise.
3529 * gfxmenu/view.c: Likewise.
3530 * gfxmenu/widget-box.c: Likewise.
3531 * include/grub/gfxmenu_model.h: Likewise.
3532 * include/grub/gfxmenu_view.h: Likewise.
3533 * include/grub/gfxwidgets.h: Likewise.
3534 * include/grub/gui.h: Likewise.
3535 * include/grub/gui_string_util.h: Likewise.
3536 * include/grub/icon_manager.h: Likewise.
3538 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3540 Agglomerate scrolling in gfxterm.
3542 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3543 (grub_virtual_screen_setup): Initialise 'total_screen'.
3544 (write_char): Split to ...
3545 (paint_char): ... this ...
3546 (write_char): ... and this.
3547 (paint_char): Handle delayed scrolling.
3548 (draw_cursor): Likewise.
3549 (scroll_up): Split to ...
3550 (real_scroll): ... this ...
3551 (scroll_up): ... and this.
3552 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3554 (grub_gfxterm_refresh): Call real_scroll.
3556 2010-02-06 Colin D Bennett <colin@gibibit.com>
3558 * include/grub/misc.h (grub_iscntrl): New inline function.
3559 (grub_isalnum): Likewise.
3560 (grub_strtol): Likewise.
3562 2010-02-06 Colin D Bennett <colin@gibibit.com>
3564 * normal/menu_text.c (get_entry_number): Move from here ...
3565 * normal/menu.c (get_entry_number): ... moved here.
3566 * include/grub/menu.h (grub_menu_get_default_entry_index):
3568 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3569 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3570 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3571 (grub_menu_viewer_should_return): Likewise.
3572 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3573 * normal/menu_text.c (run_menu): Enable menu switching.
3574 * normal/menu_viewer.c (should_return): New variable.
3575 (menu_viewer_changed): Likewise.
3576 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3577 (grub_menu_viewer_should_return): New function.
3578 (menuviewer_write_hook): Likewise.
3579 (grub_menu_viewer_init): Likewise.
3581 2010-02-06 Colin D Bennet <colin@gibibit.com>
3582 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3584 Support for gfxterm in a window.
3586 * include/grub/gfxterm.h: New file.
3587 * include/grub/video.h (struct grub_video_rect): New declaration.
3588 (grub_video_rect_t): Likewise.
3589 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3590 (refcount): New variable.
3591 (render_target): Likewise.
3593 (repaint_callback): Likewise.
3594 (grub_virtual_screen_setup): Use 'render_target'.
3595 (init_window): New function.
3596 (grub_gfxterm_init_window): Likewise.
3597 (grub_gfxterm_init): Check reference counter.
3599 (destroy_window): New function.
3600 (grub_gfxterm_destroy_window): Likewise.
3601 (grub_gfxterm_fini): Check reference counter.
3603 (redraw_screen_rect): Restore viewport.
3604 Use 'render_target' and 'window'.
3605 Call 'repaint_callback'.
3606 (write_char): Use 'render_target'.
3607 (draw_cursor): Likewise.
3608 (scroll_up): Restore viewport.
3609 Use 'render_target' and 'window'.
3610 Call 'repaint_callback'.
3611 (grub_gfxterm_cls): Likewise.
3612 (grub_gfxterm_refresh): Use 'window'.
3613 (grub_gfxterm_set_repaint_callback): New function.
3614 (grub_gfxterm_background_image_cmd): Use 'window'.
3615 (grub_gfxterm_get_term): New function.
3616 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3618 2010-02-06 Colin D Bennett <colin@gibibit.com>
3620 Bitmap scaling support.
3622 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3623 (bitmap_scale_mod_SOURCES): New variable.
3624 (bitmap_scale_mod_CFLAGS): Likewise.
3625 (bitmap_scale_mod_LDFLAGS): Likewise.
3626 * include/grub/bitmap_scale.h: New file.
3627 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3628 (background_image_cmd_options): New variable.
3629 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3630 (cmd): Rename and change type to ...
3631 (background_image_cmd_handle): ... this. All users updated.
3632 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3633 * video/bitmap_scale.c: New file.
3635 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3639 * Makefile.in (LIBSDL): New variable.
3640 (enable_grub_emu_sdl): Likewise.
3641 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3642 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3643 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3644 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3645 * util/sdl.c: New file.
3647 2010-02-06 Colin D Bennett <colin@gibibit.com>
3648 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3650 Double buffering support.
3652 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3653 * include/grub/video.h: Update comment.
3654 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3656 (grub_video_fb_doublebuf_blit_init): New prototype.
3657 * term/gfxterm.c (scroll_up): Support double buffering.
3658 (grub_gfxterm_refresh): Likewise.
3659 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3660 (grub_video_fb_doublebuf_blit_init): Likewise.
3661 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3662 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3663 'displayed_page', 'render_page' and 'update_screen'.
3664 (grub_video_vbe_fini): Free offscreen buffer.
3665 (doublebuf_pageflipping_commit): New function.
3666 (doublebuf_pageflipping_update_screen): Likewise.
3667 (doublebuf_pageflipping_init): Likewise.
3668 (double_buffering_init): Likewise.
3669 (grub_video_vbe_setup): Enable doublebuffering.
3670 (grub_video_vbe_swap_buffers): Implement.
3671 (grub_video_vbe_set_active_render_target): Handle double buffering.
3672 (grub_video_vbe_get_active_render_target): Likewise.
3673 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3674 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3675 (grub_video_vbe_enable_double_buffering): Likewise.
3676 (grub_video_vbe_swap_buffers): Use update_screen.
3677 (grub_video_set_mode): Use double buffering.
3679 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3681 * maintainance/gentrigtables.py: Remove.
3682 * lib/trig.c: Likewise.
3684 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3686 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3688 (trigtables.c): New rule.
3689 (gentrigtables): Likewise.
3690 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3692 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3694 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3697 2010-02-06 Colin D Bennet <colin@gibibit.com>
3699 Trigonometry support.
3701 * include/grub/trig.h: New file.
3702 * lib/trig.c: Likewise.
3703 * maintainance/gentrigtables.py: Likewise.
3704 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3705 (trig_mod_SOURCES): New variable.
3706 (trig_mod_CFLAGS): Likewise.
3707 (trig_mod_LDFLAGS): Likewise.
3709 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3711 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3714 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3716 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3719 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3721 * util/hostdisk.c (open_device): Don't use partition device when reading
3722 before the partition.
3723 (grub_util_biosdisk_read): Don't read from partition and before the
3724 partition in single operation.
3725 (grub_util_biosdisk_write): Don't write to partition and before the
3726 partition in single operation.
3728 2010-02-03 Torsten Landschoff <torsten@debian.org>
3730 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3733 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3735 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3737 (grub_biosdisk_write): Refuse to write to CDROM.
3739 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3741 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3743 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3745 * font/font.c (find_glyph): Check that bmp_idx is available before
3747 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3748 with (font == NULL).
3750 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3752 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3754 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3756 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3757 * util/grub-script-check.c (getline): Fix empty lines case.
3759 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3761 * Makefile.in (check): Exit with fail status when one of the tests
3763 * tests/example_functional_test.c (example_test): Fix reversed assert.
3764 * tests/example_unit_test.c (example_test): Likewise.
3766 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3768 * util/grub.d/10_linux.in: This script does not use any of the
3769 contents of gettext.sh, only the external command `gettext', so stop
3770 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3771 the same prefix as GRUB.)
3772 * util/grub.d/10_kfreebsd.in: Likewise.
3774 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3776 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3779 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3781 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3784 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3786 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3787 having a 4KiB and not 32KiB buffer size.
3789 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3791 * util/hostfs.c: Include `<errno.h>'.
3792 (grub_hostfs_read): Handle errors from fseeko() and fread().
3794 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3796 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3797 loop when using read hooks on files whose size isn't sector-aligned.
3799 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3801 Remove unused parameter.
3803 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3804 (grub_iso9660_open): Remove initialization of `data->length'.
3806 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3808 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3811 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3813 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3814 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3816 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3818 * util/bin2h.c (usage): Fix warning (space after backslash).
3820 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3822 * font/font.c: Include `grub/fontformat.h.
3823 Remove font file format constants.
3824 (grub_font_load): Use the new macros.
3825 * include/grub/fontformat.h: New file.
3826 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3827 (write_font_pf2): Use the new macros.
3829 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3831 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3834 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3836 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3838 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3839 (_start): Macroify `0x7F'.
3841 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3842 (make_install_device): Use "(pxe)" as fallback prefix when booting
3845 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3847 * configure.ac: Reset LIBS after check for libgcc symbols.
3849 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3851 * util/hostdisk.c (open_device): Add trailing newline to debug
3854 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3856 * configure.ac: Check for `limits.h'.
3857 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3859 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3861 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3862 capitalize error strings.
3864 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3866 * util/grub.d/10_hurd.in: Add a recovery mode.
3868 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3870 * configure.ac: Check for libgcc symbols with -nostdlib.
3872 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3874 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3876 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3878 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3879 stack since heap may be unavailable at that point.
3880 (grub_ofconsole_gotoxy): Likewise.
3882 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3884 * configure.ac: Check for _restgpr_14_x.
3885 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3886 and _savegpr_* prototypes.
3888 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3890 Use generic grub_reboot() for i386-efi.
3892 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3893 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3894 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3896 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3898 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3899 presence of "prefix" variable as it breaks when normal.mod is
3902 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3904 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3905 stack since heap is unavailable at that point.
3907 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3909 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3910 (grub_freebsd_bootinfo): Rewritten.
3911 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3913 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3915 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3917 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3919 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3922 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3924 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3925 around for handling "/" to the correct fix. Fix a memory leak. Use
3926 xstrdup instead of strdup.
3928 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3930 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3932 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3934 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3936 * font/font.c (struct grub_font): New member 'bmp_idx'.
3937 (font_init): Initialise 'bmp_idx'.
3938 (load_font_index): Fill 'bmp_idx'.
3939 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3941 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3943 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3946 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3948 Move context handling out of the kernel.
3950 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3951 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3952 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3953 * conf/i386-efi.rmk: Likewise.
3954 * conf/i386-ieee1275.rmk: Likewise.
3955 * conf/i386-pc.rmk: Likewise.
3956 * conf/powerpc-ieee1275.rmk: Likewise.
3957 * conf/sparc64-ieee1275.rmk: Likewise.
3958 * conf/x86_64-efi.rmk: Likewise.
3959 * include/grub/env.h: Include grub/menu.h.
3960 (grub_env_var_type): Removed.
3961 (grub_env_var): Replaced field 'type' with 'global'.
3962 (grub_env_find): New prototype.
3963 (grub_env_context_open): Remove EXPORT_FUNC.
3964 (grub_env_context_close): Likewise.
3965 (grub_env_export): Likewise.
3966 (grub_env_set_data_slot): Removed.
3967 (grub_env_get_data_slot): Likewise.
3968 (grub_env_unset_data_slot): Likewise.
3969 (grub_env_unset_menu): New prototype.
3970 (grub_env_set_menu): Likewise.
3971 (grub_env_get_menu): Likewise.
3972 * include/grub/env_private.h: New file.
3973 * include/grub/normal.h (grub_context_init): New prototype.
3974 (grub_context_fini): Likewise.
3975 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3976 * normal/context.c (grub_cmd_export): ... to here.
3977 * kern/env.c: Include env_private.h.
3978 (HASHSZ): Moved to include/grub/env_private.h.
3979 (grub_env_context): Likewise.
3980 (grub_env_sorted_var): Likewise.
3981 (current_context): Renamed from this ...
3982 (grub_current_context): ...to this. 'static' removed. All users updated.
3983 (grub_env_find): Removed 'static'.
3984 (grub_env_context_open): Moved to normal/context.c.
3985 (grub_env_context_close): Likewise.
3986 (grub_env_export): Likewise.
3987 (mangle_data_slot_name): Removed.
3988 (grub_env_set_data_slot): Likewise.
3989 (grub_env_get_data_slot): Likewise.
3990 (grub_env_unset_data_slot): Likewise.
3991 * kern/main.c (grub_set_root_dev): Don't export root.
3992 It will be done later.
3993 (grub_main): Don't export prefix.
3994 It will be done later.
3995 * normal/context.c: New file.
3996 * normal/main.c (free_menu): Use grub_env_unset_menu.
3997 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3998 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3999 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4000 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4002 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4006 * commands/setpci.c: New file.
4007 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4008 (setpci_mod_SOURCES): New variable.
4009 (setpci_mod_CFLAGS): Likewise.
4010 (setpci_mod_LDFLAGS): Likewise.
4012 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4014 Byte-addressable PCI configuration space.
4016 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4018 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4019 GRUB_PCI_REG_CACHELINE.
4020 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4021 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4022 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4023 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4024 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4025 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4026 grub_pci_make_address.
4027 (lock_rom_area): Likewise.
4028 * commands/lspci.c (grub_lspci_iter): Use macroses
4029 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4030 of grub_pci_make_address.
4031 * disk/ata.c (grub_ata_pciinit): Likewise.
4032 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4033 (GRUB_PCI_REG_VENDOR): Likewise.
4034 (GRUB_PCI_REG_DEVICE): Likewise.
4035 (GRUB_PCI_REG_COMMAND): Likewise.
4036 (GRUB_PCI_REG_STATUS): Likewise.
4037 (GRUB_PCI_REG_REVISION): Likewise.
4038 (GRUB_PCI_REG_CLASS): Likewise.
4039 (GRUB_PCI_REG_CACHELINE): Likewise.
4040 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4041 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4042 (GRUB_PCI_REG_BIST): Likewise.
4043 (GRUB_PCI_REG_ADDRESSES): Likewise.
4044 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4045 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4046 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4047 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4048 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4049 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4050 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4051 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4052 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4053 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4054 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4055 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4056 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4057 (GRUB_PCI_REG_MIN_GNT): Likewise.
4058 (GRUB_PCI_REG_MAX_LAT): Likewise.
4059 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4060 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4061 * video/efi_uga.c (find_framebuf): Likewise.
4062 * video/sm712.c (grub_video_sm712_setup): Likewise.
4063 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4066 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4068 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4069 can be reliably determined to be supported.
4071 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4073 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4074 that VESA is supported.
4075 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4078 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4080 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4082 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4084 * util/misc.c (make_system_path_relative_to_its_root): Work around
4085 special-casing of "/", as previous incarnation of this routine did.
4087 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4089 Fix any-emu compilation.
4091 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4092 * grub_bin2h_SOURCES: New variable.
4094 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4096 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4098 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4100 * util/grub.d/00_header.in: Fix handling of locale_dir.
4102 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4104 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4105 as possible unifont location (Gentoo).
4106 Reported by: Alexander Brüning
4108 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4110 Don't try to generate lists for kernel.img.
4112 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4113 (pkglib_MODULES): Remove kernel.img.
4114 (kernel_img_EXPORTS): Removed.
4115 (kernel_img_RELOCATABLE): New variable.
4116 * conf/x86_64-efi.rmk: Likewise.
4117 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4119 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4121 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4122 grub_xasprintf or grub_snprintf.
4123 (grub_vsprintf): Likewise.
4124 (grub_snprintf): New proto.
4125 (grub_vsnprintf): Likewise.
4126 (grub_xasprintf): Likewise.
4127 (grub_xvasprintf): Likewise.
4128 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4129 (grub_sprintf): Removed.
4130 (grub_vsnprintf): New function.
4131 (grub_snprintf): Likewise.
4132 (grub_xvasprintf): Likewise.
4133 (grub_xasprintf): Likewise.
4134 (grub_vsprintf): Renamed to ...
4135 (grub_vsnprintf_real): ...this. New argument max_len.
4137 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4139 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4140 fix grub-script-check warning.
4142 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4144 * include/grub/font.h (grub_font_load): Fix prototype.
4146 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4148 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4150 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4152 * include/grub/x86_64/at_keyboard.h: New file.
4154 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4156 * loader/mips/linux.c: Include missing grub/i18n.h.
4158 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4160 * normal/menu.c (notify_execution_failure): Clarify error message.
4162 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4164 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4165 return value (and revert all return statements). Update users.
4167 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4169 * kern/device.c (grub_device_iterate): Allocate new part_ent
4170 structure based on sizeof (*p) rather than sizeof (p->next), to
4171 account for structure padding.
4173 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4174 disk is NULL, which might happen for LVM physical volumes with no
4177 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4179 * loader/mips/linux.c (grub_cmd_initrd)
4180 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4182 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4184 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4185 (grub_video_video_init, grub_video_bitmap_init)
4186 (grub_font_manager_init, grub_term_gfxterm_init)
4187 (grub_at_keyboard_init): New extern declarations.
4188 (grub_machine_init): Initialize gfxterm and at_keyboard.
4190 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4192 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4193 `gfxterm.mod' into core image.
4195 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4196 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4197 (kernel_img_FORMAT): Copy to ...
4199 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4200 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4201 (kernel_img_FORMAT): ... here, and ...
4203 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4204 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4205 (kernel_img_FORMAT): ... here.
4207 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4208 and input (at_keyboard) terminals in kernel.
4209 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4211 (pkglib_MODULES): Remove `pci.mod'.
4212 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4213 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4214 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4215 (at_keyboard_mod_LDFLAGS): Remove variables.
4217 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4219 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4221 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4223 * include/grub/mips/libgcc.h: Only export symbols for functions
4224 that libgcc provides.
4226 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4230 * bus/bonito.c: New file.
4231 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4232 GRUB_PCI_NUM_DEVICES.
4233 * term/i386/pc/serial.c: Move to ...
4234 * term/serial.c: ... here. All users updated.
4235 * util/i386/pc/grub-mkimage.c: Move to ...
4236 * util/grub-mkrawimage.c: ... here. All users updated.
4237 * term/i386/pc/at_keyboard.c: Move to ...
4238 * term/at_keyboard.c: ... here. All users updated.
4239 * conf/mips-qemu-mips.rmk: New file.
4240 * conf/mips-yeeloong.rmk: Likewise.
4241 * conf/mips.rmk: Likewise.
4242 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4244 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4246 (grub_ata_pciinit): Support CS5536.
4247 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4248 * font/font_cmd.c (loadfont_command): Open file before passing it to
4250 (pseudo_file_read): New function.
4251 (pseudo_file_close): Likewise.
4252 (pseudo_fs): New structure.
4253 (load_font_module): New function.
4254 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4255 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4256 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4257 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4258 * include/grub/i386/at_keyboard.h: Split into ...
4259 * include/grub/at_keyboard.h: ... this ...
4260 * include/grub/i386/at_keyboard.h: ... and this.
4261 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4263 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4265 (grub_elf64_size): Likewise.
4266 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4268 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4269 * include/grub/i386/coreboot/serial.h: Rewritten.
4270 * include/grub/i386/ieee1275/serial.h: Include
4271 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4272 * include/grub/i386/pc/serial.h: Moved from here ...
4273 * include/grub/serial.h: ... to here. All users updated.
4274 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4275 (GRUB_PCI_NUM_BUS): Likewise.
4276 (GRUB_PCI_NUM_DEVICES): Likewise.
4277 (grub_pci_device_map_range): Add missing volatile keyword.
4278 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4279 * include/grub/mips/at_keyboard.h: New file.
4280 * include/grub/mips/cache.h: Likewise.
4281 * include/grub/mips/io.h: Likewise.
4282 * include/grub/mips/kernel.h: Likewise.
4283 * include/grub/mips/libgcc.h: Likewise.
4284 * include/grub/mips/pci.h: Likewise.
4285 * include/grub/mips/qemu-mips/boot.h: Likewise.
4286 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4287 * include/grub/mips/qemu-mips/loader.h: Likewise.
4288 * include/grub/mips/qemu-mips/memory.h: Likewise.
4289 * include/grub/mips/qemu-mips/serial.h: Likewise.
4290 * include/grub/mips/qemu-mips/time.h: Likewise.
4291 * include/grub/mips/relocator.h: Likewise.
4292 * include/grub/mips/time.h: Likewise.
4293 * include/grub/mips/types.h: Likewise.
4294 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4295 * include/grub/mips/yeeloong/boot.h: Likewise.
4296 * include/grub/mips/yeeloong/kernel.h: Likewise.
4297 * include/grub/mips/yeeloong/loader.h: Likewise.
4298 * include/grub/mips/yeeloong/memory.h: Likewise.
4299 * include/grub/mips/yeeloong/pci.h: Likewise.
4300 * include/grub/mips/yeeloong/serial.h: Likewise.
4301 * include/grub/mips/yeeloong/time.h: Likewise.
4302 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4303 * kern/elf.c (grub_elf32_size): New parameter. All users
4305 (grub_elf64_size): Likewise.
4306 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4307 Load modules before saying "Welcome to GRUB!".
4308 Call grub_refresh after saying "Welcome to GRUB!".
4309 * kern/mips/cache.S: New file.
4310 * kern/mips/cache_flush.S: Likewise.
4311 * kern/mips/dl.c: Likewise.
4312 * kern/mips/init.c: Likewise.
4313 * kern/mips/qemu-mips/init.c: Likewise.
4314 * kern/mips/startup.S: Likewise.
4315 * kern/mips/yeeloong/init.c: Likewise.
4316 * kern/term.c (grub_putcode): Handle NULL terminal.
4317 (grub_getcharwidth): Likewise.
4318 (grub_getkey): Likewise.
4319 (grub_checkkey): Likewise.
4320 (grub_getkeystatus): Likewise.
4321 (grub_getxy): Likewise.
4322 (grub_getwh): Likewise.
4323 (grub_gotoxy): Likewise.
4324 (grub_cls): Likewise.
4325 (grub_setcolorstate): Likewise.
4326 (grub_setcolor): Likewise.
4327 (grub_getcolor): Likewise.
4328 (grub_refresh): Likewise.
4329 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4330 (write_jump): Add hatch nop.
4331 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4332 * lib/mips/setjmp.S: New file.
4333 * loader/mips/linux.c: Likewise.
4334 * term/i386/pc/at_keyboard.c: Move from here ...
4335 * term/at_keyboard.c: ... to here.
4336 * term/i386/pc/serial.c: Moved from here ...
4337 * term/serial.c: ... to here. All users updated.
4338 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4339 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4340 (serial_translate_key_sequence): Avoid deadlock.
4341 (grub_serial_getkey): Handle backspace.
4342 (grub_serial_putchar): Fix newline handling.
4343 * util/i386/pc/grub-mkimage.c: Move from here ...
4344 * util/grub-mkrawimage.c: ... to here. All users updated.
4345 (generate_image): New parameters 'font_path' and 'format'.
4346 Support embedding font.
4347 Use grub_host_to_target* instead of grub_cpu_to_le*.
4348 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4349 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4350 (options): New option "--font".
4352 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4353 (main): Handle "--font".
4354 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4355 (grub_virtual_screen_setup): Set bg_color_display.
4356 (redraw_screen_rect): Use bg_color_display instead of incorrect
4358 (grub_gfxterm_cls): Likewise.
4359 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4360 Support embedding config file.
4361 (add_segments): Likewise.
4362 (options): New option "--config".
4363 (main): Handle "--config".
4364 * video/sm712.c: New file.
4366 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4368 Fix parallel builds.
4370 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4371 font.c depend on ascii.h).
4373 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4375 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4377 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4379 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4380 By default: disabled.
4381 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4384 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4386 * font/font.c: Update copyright years.
4387 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4389 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4391 * font/font.c: Include `ascii.h'.
4392 (ASCII_BITMAP_SIZE): New macro.
4393 (ascii_font_glyph): Define.
4394 (ascii_glyph_lookup): New function.
4395 (grub_font_get_string_width): Change comment. If glyph not found, use
4397 (grub_font_get_glyph_with_fallback): If glyph not available returns
4399 * util/grub-mkfont.c (file_formats): New enum.
4400 (options): Add `ascii-bitmaps' new option.
4401 (usage): Add `asii-bitmaps' new option.
4402 (write_font_ascii_bitmap): New function.
4403 (write_font): Rename to ...
4404 (write_font_p2): ... this. Remove print_glyphs call.
4405 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4406 used. Call print_glyphs.
4407 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4409 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4411 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4412 (grub_bin2h_SOURCES): New variable.
4413 * util/bin2h.c: New file.
4415 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4417 * include/multiboot.h: Resynced with spec.
4418 * include/multiboot2.h: Likewise.
4419 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4420 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4422 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4424 * include/grub/term.h (grub_term_register_input,
4425 grub_term_register_output): Check return of terminal init()
4426 routines, and abort if errors are raised.
4428 * commands/terminal.c: Update copyright year.
4430 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4432 * commands/terminal.c (grub_cmd_terminal_input)
4433 (grub_cmd_terminal_output): Check return of terminal init()
4434 routines, and abort if errors are raised.
4436 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4438 * include/grub/i386/bsd.h: Fix include pathes.
4440 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4442 Add missing *BSD copyright headers.
4444 * include/grub/aout.h: Add BSD licence.
4445 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4446 * include/grub/i386/freebsd_linker.h: ... here,
4447 * include/grub/i386/freebsd_reboot.h: ... here,
4448 * include/grub/i386/netbsd_bootinfo.h: ... here,
4449 * include/grub/i386/netbsd_reboot.h: ... here,
4450 * include/grub/i386/openbsd_bootarg.h: ... here,
4451 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4452 licence to each file.
4454 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4456 * acinclude.m4: Remove `nop' assembly instruction; it's not
4457 implemented by all architectures.
4459 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4461 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4462 ELILO. This is no longer necessary.
4464 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4466 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4468 * util/grub-script-check.c: grub-script-check tool.
4469 * conf/common.rmk: Make rules for grub-script-check.
4471 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4473 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4474 spotting it back in 2008. Shame on me for forgetting he did.
4476 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4478 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4480 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4481 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4482 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4483 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4484 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4485 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4487 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4489 * include/grub/test.h: Add license header.
4490 * tests/example_functional_test.c: Likewise.
4491 * tests/example_unit_test.c: Likewise.
4492 * tests/lib/functional_test.c: Likewise.
4493 * tests/lib/test.c: Likewise.
4494 * tests/lib/unit_test.c: Likewise.
4496 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4498 Use flag-based instead of hook-based video mode selection and "auto"
4501 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4502 (grub_video_set_mode): Changed prototype. All users updated.
4503 (grub_video_check_mode_flag): New inline function.
4504 * video/video.c (parse_modespec): New function.
4505 (grub_video_set_mode): Parse flags and keywords.
4507 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4509 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4512 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4514 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4516 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4518 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4520 * util/grub-emu.c (usage): Likewise.
4521 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4522 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4523 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4524 * util/i386/pc/grub-setup.c (usage): Likewise.
4526 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4528 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4530 (grub_util_info): Likewise.
4531 (grub_util_error): Likewise.
4532 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4533 and/or new lines in `grub_util_warna', `grub_util_info',
4534 `grub_util_error' calls.
4535 * util/getroot.c: Likewise.
4536 * util/grub-editenv.c: Likewise.
4537 * util/grub-emu.c: Likewise.
4538 * util/grub-fstest.c: Likewise.
4539 * util/grub-mkdevicemap.c: Likewise.
4540 * util/grub-mkfont.c: Likewise.
4541 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4542 * util/grub-mkrelpath.c: Likewise.
4543 * util/grub-pe2elf.c: Likewise.
4544 * util/grub-probe.c: Likewise.
4545 * util/hostdisk.c: Likewise.
4546 * util/i386/efi/grub-mkimage.c: Likewise.
4547 * util/i386/pc/grub-mkimage.c: Likewise.
4548 * util/i386/pc/grub-setup.c: Likewise.
4549 * util/ieee1275/ofpath.c: Likewise.
4550 * util/mkisofs/eltorito.c: Likewise.
4551 * util/mkisofs/rock.c: Likewise.
4552 * util/mkisofs/write.c: Likewise.
4553 * util/raid.c: Likewise.
4554 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4555 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4557 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4559 Enable multiboot on non-pc.
4561 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4562 multiboot.mod and multiboot2.mod to ...
4563 * conf/i386.rmk (pkglib_MODULES): ... here.
4564 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4566 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4567 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4569 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4570 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4572 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4573 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4575 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4576 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4578 (ata_mod_SOURCES): Removed.
4579 (ata_mod_CFLAGS): Likewise.
4580 (ata_mod_LDFLAGS): Likewise.
4581 (relocator_mod_SOURCES): Removed.
4582 (relocator_mod_CFLAGS): Likewise.
4583 (relocator_mod_ASFLAGS): Likewise.
4584 (relocator_mod_LDFLAGS): Likewise.
4586 * include/grub/x86_64/multiboot.h: New file.
4587 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4590 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4592 Video multiboot support.
4594 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4596 * include/multiboot.h: Resynced with multiboot specification.
4597 * include/multiboot2.h: Likewise.
4598 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4599 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4600 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4601 (HAS_VGA_TEXT): Likewise.
4602 (accepts_video): New variable.
4603 (grub_multiboot_set_accepts_video): New function.
4604 (grub_multiboot_get_mbi_size): Account for video structures.
4605 (set_video_mode): New function.
4606 (retrieve_video_parameters): Likewise.
4607 (grub_multiboot_make_mbi): Fill video fields.
4609 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4613 * include/grub/video.h (grub_video_driver_id): New type.
4614 (grub_video_adapter): New member 'id'. All users updated.
4615 (grub_video_get_driver_id): New proto.
4616 * video/video.c (grub_video_get_driver_id): New function.
4618 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4620 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4623 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4625 * normal/cmdline.c (print_completion): Gettextizze.
4627 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4629 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4631 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4633 * gettext/gettext.c (grub_gettext_translate): Push and pop
4635 (grub_gettext_delete_list): Change comment style.
4636 * kern/err.c (grub_error): Gettextizze.
4637 (grub_fatal): Gettextizze.
4639 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4641 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4642 (grub_linux16_real_boot): ... this.
4643 * kern/i386/loader.S: Likewise.
4644 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4645 (grub_linux16_boot): New function. Switches to text mode and calls
4646 grub_linux16_real_boot().
4648 * loader/i386/bsd.c: Include `<grub/video.h>'.
4649 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4650 text mode before calling grub_unix_real_boot().
4652 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4653 (grub_multiboot_boot): Switch to text mode before calling
4654 grub_relocator32_boot().
4656 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4657 (grub_chainloader_boot): Switch to text mode before calling
4658 grub_chainloader_real_boot().
4660 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4661 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4663 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4666 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4667 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4669 * util/grub.d/00_header.in: Define a "savedefault" function for use
4671 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4673 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4674 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4676 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4677 saved_entry if boot_once is unset.
4678 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4679 previous saved entry (i.e. grub-reboot).
4681 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4683 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4685 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4687 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4689 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4691 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4693 * util/grub-reboot.in: Fix --version output.
4694 * util/grub-set-default.in: Likewise.
4696 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4698 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4701 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4703 * util/grub.d/00_header.in: Quote the value assigned to `default',
4704 in case it contains spaces.
4706 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4708 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4709 `save_default_entry' call from the macosx case to the linux case.
4711 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4712 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4714 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4715 in `chosen' environment variable.
4716 * normal/menu_text.c (get_entry_number): Check if the variable
4717 matches the title of a menu entry.
4718 (run_menu): Pass menu to get_entry_number.
4720 * util/grub-reboot.in: New file.
4721 * util/grub-set-default.in: New file.
4722 * conf/common.rmk (grub-reboot): New utility.
4723 (grub-set-default): New utility.
4725 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4726 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4727 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4728 move it to `saved_entry' for the next boot. Load environment on
4730 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4731 * util/grub.d/10_hurd.in: Likewise.
4732 * util/grub.d/10_linux.in (linux_entry): Likewise.
4733 * util/grub.d/10_windows.in: Likewise.
4734 * util/grub.d/30_os-prober.in: Likewise.
4736 * util/grub-install.in: Create environment block.
4737 * util/i386/efi/grub-install.in: Likewise.
4738 * util/ieee1275/grub-install.in: Likewise.
4739 * util/sparc64/ieee1275/grub-install.in: Likewise.
4741 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4743 Unit testing framework for GRUB.
4745 * Makefile.in: Test framework build rules for 'make check'.
4746 * conf/tests.rmk: Build rules for individual tests and framework.
4748 * include/grub/test.h: Header file for whitebox tests.
4749 * tests/lib/functional_test.c: Framework support for whitebox
4751 * tests/lib/test.c: Common whitebox testing code for unit and
4753 * tests/lib/unit_test.c: Framework support for whitebox unit
4756 * tests/util/grub-shell-tester.in: Support utility for grub-script
4758 * tests/util/grub-shell.in: Utility to execute grub-script
4759 commands in a Qemu instance.
4761 * tests/example_functional_test.c: Example whitebox functional
4763 * tests/example_grub_script_test.in: Example grub-script test.
4764 * tests/example_scripted_test.in: Example scripted test.
4765 * tests/example_unit_test.c: Example whitebox unit test.
4767 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4769 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4770 Add loader/i386/multiboot_mbi.c.
4771 (multiboot2_mod_SOURCES): Likewise.
4772 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4773 (multiboot2_mod_SOURCES): Likewise.
4774 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4775 (grub_multiboot_make_mbi): Likewise.
4776 (grub_multiboot_free_mbi): Likewise.
4777 (grub_multiboot_init_mbi): Likewise.
4778 (grub_multiboot_add_module): Likewise.
4779 (grub_multiboot_set_bootdev): Likewise.
4780 * loader/i386/multiboot.c (mbi): Removed.
4781 (mbi_dest): Likewise.
4782 (alloc_mbi): New variable.
4783 (grub_multiboot_payload_size): Removed. All users updated.
4784 (grub_multiboot_pure_size): New variable.
4785 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4786 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4787 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4788 (grub_fill_multiboot_mmap): Likewise.
4789 (grub_multiboot_get_bootdev): Likewise.
4790 (grub_multiboot): Use multiboot_mbi functions.
4791 * loader/i386/multiboot_mbi.c: New file.
4793 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4795 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4796 it would result in module crash.
4798 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4800 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4801 (grub_ofconsole_getwh): Split to ...
4802 (grub_ofconsole_getwh): ... this.
4803 (grub_ofconsole_dimensions): ...and this.
4804 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4806 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4808 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4810 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4812 * loader/i386/pc/multiboot2.c: Removed stalled file.
4814 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4816 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4817 Reported by: Grégoire Sutre
4819 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4821 * util/misc.c (canonicalize_file_name): New function.
4822 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4823 instead of realpath().
4825 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4827 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4828 and make it clearer that it's optional. Based on confusion
4831 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4833 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4834 in premature implicit newline.
4836 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4838 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4839 which resulted in garbled command line at the end of screen.
4841 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4843 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4844 initialization with similar approach as with other Linux loaders.
4846 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4848 Fix i386-ieee1275 build.
4850 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4851 and grub_term_height() for video_{width,height} initialization.
4853 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4857 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4859 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4860 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4862 Support for multiple terminals.
4864 * Makefile.in (pkglib_DATA): terminal.lst.
4865 (terminal.lst): New target.
4866 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4867 (GRUB_MOD_INIT(handler)): Likewise.
4868 (GRUB_MOD_FINI(handler)): Likewise.
4869 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4870 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4871 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4872 (grub_cmd_sleep): Use grub_term_save_pos.
4873 * commands/terminal.c: New file.
4874 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4875 commands/terminal.c and lib/charset.c.
4876 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4877 (pkglib_MODULES): Add terminal.mod.
4878 (terminal_mod_SOURCES): New variable.
4879 (terminal_mod_CFLAGS): Likewise.
4880 (terminal_mod_LDFLAGS): Likewise.
4881 * genhandlerlist.sh: Don't handle terminals.
4882 * genmk.rb: Generate terminal-*.lst.
4883 * genterminallist.sh: New file.
4884 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4885 (grub_is_valid_utf8): Likewise.
4886 (grub_utf8_to_ucs4_alloc): Likewise.
4887 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4888 (grub_menu_register_viewer): Changed argument.
4889 (grub_menu_try_text): New proto.
4890 (grub_gfxmenu_try_hook): New declaration.
4891 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4892 (grub_menu_init_page): Additional argument term.
4893 (grub_normal_init_page): Likewise.
4894 (grub_cmdline_get): Arguments simplified.
4895 (grub_utf8_to_ucs4_alloc): Removed.
4896 (grub_print_ucs4): Additional argument term.
4897 (grub_getstringwidth): Likewise.
4898 (grub_print_message_indented): Likewise.
4899 (grub_menu_text_register_instances): New proto.
4900 (grub_show_menu): Likewise.
4901 (read_terminal_list): Likewise.
4902 (grub_set_more): Likewise.
4903 * include/grub/parser.h: Include handler.h.
4904 * include/grub/reader.h: Rewritten.
4905 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4906 (GRUB_TERM_WIDTH): Changed to function.
4907 (GRUB_TERM_HEIGHT): Likewise.
4908 (GRUB_TERM_BORDER_WIDTH): Likewise.
4909 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4910 (GRUB_TERM_NUM_ENTRIES): Likewise.
4911 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4912 (GRUB_TERM_CURSOR_X): Likewise.
4913 (grub_term_input_class): Likewise.
4914 (grub_term_output_class): Likewise.
4915 (grub_term_outputs_disabled): New declaration.
4916 (grub_term_inputs_disabled): Likewise.
4917 (grub_term_outputs): Likewise.
4918 (grub_term_inputs): Likewise.
4919 (grub_term_register_input): Rewritten.
4920 (grub_term_register_output): Likewise.
4921 (grub_term_unregister_input): Likewise.
4922 (grub_term_unregister_output): Likewise.
4923 (FOR_ACTIVE_TERM_INPUTS): New macro.
4924 (FOR_DISABLED_TERM_INPUTS): Likewise.
4925 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4926 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4927 * include/grub/terminfo.h: Add oterm argument to all protypes.
4928 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4929 Use grub_rescue_run.
4930 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4932 * kern/reader.c: Removed. All users updated.
4933 * kern/rescue_reader.c (grub_rescue_init): Removed.
4934 (grub_rescue_reader): Likewise.
4935 (grub_register_rescue_reader): Likewise.
4936 (grub_rescue_run): New function based on kern/reader.c.
4937 * kern/term.c: Adapted for multiterm.
4938 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4939 (grub_is_valid_utf8): Likewise.
4940 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4941 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4943 * loader/i386/linux.c (grub_linux_boot): Likewise.
4944 * normal/auth.c (grub_username_get): New function.
4945 (grub_auth_check_authentication): Use grub_username_get.
4946 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4947 * normal/color.c: Adapt for multiterm.
4948 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4949 (grub_normal_init_page): Additional argument term.
4950 (read_lists): Call read_terminal_lists.
4951 (grub_enter_normal_mode): Call grub_cmdline_run.
4952 Handle grub_normal_exit_level.
4953 (grub_cmd_normal): Make reentrant.
4954 (grub_cmd_normal_exit): New function.
4955 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4956 * normal/menu.c: Adapt for multiterm.
4957 * normal/menu_entry.c: Likewise.
4958 * normal/menu_text.c: Likewise.
4959 * normal/menu_viewer.c: Removed. All users updated.
4960 * normal/term.c: New file.
4961 * util/console.c: Change order of includes to workaround a bug in
4963 * term/terminfo.c: New argument oterm on all exported functions.
4965 * util/grub-editenv.c (grub_term_input_class): Removed.
4966 (grub_term_output_class): Likewise.
4968 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4970 Make loader output a bit more user-friendly.
4972 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4973 is being loaded. Likewise for the Hurd.
4975 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4976 that kernel of FreeBSD ${version} is being loaded.
4978 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4980 (grub_cmd_initrd): Likewise.
4981 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4982 that Linux ${version} is being loaded. Likewise for initrd.
4984 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4986 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4988 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4990 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4991 (GRUB_MOD_INIT): Gettextizze.
4992 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4993 (GRUB_MOD_INIT): Gettextizze.
4994 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4995 (grub_cmd_linux): Capitalise Linux.
4996 (GRUB_MOD_INIT): Gettextizze.
4997 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4998 (grub_cmd_linux): Capitalise Linux.
4999 (GRUB_MOD_INIT): Gettextizze.
5000 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5001 (grub_cmd_linux): Capitalise Linux.
5002 (GRUB_MOD_INIT): Gettextizze.
5003 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5004 (GRUB_MOD_INIT): Gettextizze.
5005 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5006 (grub_cmd_linux): Capitalise Linux.
5007 (GRUB_MOD_INIT): Gettextizze.
5008 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5009 (grub_cpu_xnu_init): Gettextizze.
5010 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5011 (GRUB_MOD_INIT): Gettextizze.
5012 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5013 (GRUB_MOD_INIT): Gettextizze.
5014 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5015 (grub_linux_load64): Capitalise Linux.
5016 (GRUB_MOD_INIT): Gettextizze.
5017 * loader/xnu.c: Include `<grub/i18n.h>'.
5018 (GRUB_MOD_INIT): Gettextizze.
5019 * po/POTFILES: Add `loader/efi/appleloader.c',
5020 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5021 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5022 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5023 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5024 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5027 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5029 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5031 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5033 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5034 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5035 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5037 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5039 Reset Multiboot 2 support. New loader implements the draft in
5040 /branches/multiboot2 and shares as much code as possible with the
5041 production Multiboot 1 implementation.
5043 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5044 * loader/multiboot2.c: Likewise.
5045 * loader/i386/multiboot_helper.S: Likewise.
5046 * include/multiboot2.h: Replace with latest version from the draft
5047 in /branches/multiboot2.
5049 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5050 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5051 and `loader/multiboot2.c'.
5052 (pkglib_MODULES): Add `multiboot2.mod'.
5053 (multiboot2_mod_SOURCES): New variable.
5054 (multiboot2_mod_LDFLAGS): Likewise.
5055 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5057 * conf/i386-pc.rmk: Likewise.
5059 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5060 (multiboot_mod_SOURCES): Remove variable.
5061 (multiboot_mod_LDFLAGS): Likewise.
5062 (multiboot_mod_CFLAGS): Likewise.
5064 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5065 `<multiboot2.h>' instead of `<multiboot.h>'.
5066 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5067 (MULTIBOOT_HEADER_MAGIC): New macros.
5069 * loader/multiboot_loader.c (module_version_status): Remove variable.
5070 (find_multi_boot2_header): Remove function.
5071 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5072 logic. Always check for the Multiboot version we're compiling for.
5073 (grub_cmd_module_loader): Likewise.
5074 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5075 command instead of `multiboot'.
5077 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5079 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5080 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5083 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5084 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5086 Fix breakage introduced with previous commit.
5088 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5090 * normal/handler.c (read_handler_list): Revert part of previous commit
5091 affecting this file.
5092 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5093 (grub_normal_execute): ... here.
5095 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5097 Merge prefix-redefinition-fix branch.
5099 * normal/autofs.c (read_fs_list): Make function capable of being
5100 run multiple times, gracefuly replacing the previous data
5102 * normal/dyncmd.c (read_command_list): Likewise.
5103 * normal/handler.c (read_handler_list): Likewise.
5104 * normal/main.c (read_lists): New function. Calls all the
5105 list reading functions.
5106 (grub_normal_execute): Use read_lists() instead of calling all
5107 list reading functions explicitly. Register read_lists() as a
5108 variable hook attached to ${prefix}.
5110 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5112 Merge crypto branch.
5114 * Makefile.in (pkglib_DATA): Add crypto.lst.
5115 (crypto.lst): New target.
5116 * commands/hashsum.c: New file.
5117 * commands/password.c (check_password): Use grub_crypto_memcmp.
5118 * commands/password_pbkdf2.c: New file.
5119 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5120 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5121 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5122 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5123 -I$(srcdir)/lib/libgcrypt_wrap.
5124 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5125 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5126 password_pbkdf2.mod.
5127 (crypto_mod_SOURCES): New variable.
5128 (crypto_mod_CFLAGS): Likewise.
5129 (crypto_mod_LDFLAGS): Likewise.
5130 (hashsum_mod_SOURCES): New variable.
5131 (hashsum_mod_CFLAGS): Likewise.
5132 (hashsum_mod_LDFLAGS): Likewise.
5133 (pbkdf2_mod_SOURCES): New variable.
5134 (pbkdf2_mod_CFLAGS): Likewise.
5135 (pbkdf2_mod_LDFLAGS): Likewise.
5136 (password_pbkdf2_mod_SOURCES): New variable.
5137 (password_pbkdf2_mod_CFLAGS): Likewise.
5138 (password_pbkdf2_mod_LDFLAGS): Likewise.
5139 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5140 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5141 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5142 Include conf/gcry.rmk.
5143 * include/grub/auth.h: Rewritten.
5144 * include/grub/crypto.h: New file.
5145 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5146 * include/grub/normal.h (read_crypto_list): New prototype.
5147 * lib/crypto.c: New file.
5148 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5149 * lib/pbkdf2.c: Likewise.
5150 * normal/auth.c (grub_auth_strcmp): Removed.
5151 (grub_iswordseparator): Likewise.
5152 (grub_auth_strword): Likewise.
5153 (is_authenticated): Use grub_strword.
5154 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5155 and grub_strword. Pass entered password to authentication callback.
5156 * normal/crypto.c: New file.
5157 * normal/main.c: Call read_crypto_list.
5158 * util/grub-mkpasswd-pbkdf2.c: New file.
5159 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5161 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5163 Fix descent and ascent calculation.
5165 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5166 (options): New option "asce".
5168 (add_char): Ignore invalid glyphs for descent calculation.
5169 Calculate ascent from actual content.
5170 (print_glyphs): Use 'asce'.
5171 (write_font): Likewise. Allow ascent override.
5172 (main): Handle "asce" option.
5174 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5176 * kern/err.c: Include `<grub/i18n.h>'.
5177 (grub_print_error): Add full stop. Gettextizze.
5178 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5179 (grub_bsd_load_elf): Capitalise ELF.
5180 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5181 (grub_cmd_freebsd_module): Likewise.
5182 (grub_cmd_freebsd_module_elf): Likewise.
5183 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5185 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5187 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5188 * commands/search_file.c (HELP_MESSAGE): New macro.
5189 * commands/search_label.c (HELP_MESSAGE): Likewise.
5190 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5191 * po/POTFILES: Add `commands/search_file.c',
5192 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5193 `commands/search.c'.
5195 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5197 * config.rpath: Update from Gnulib.
5199 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5201 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5203 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5205 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5207 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5209 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5210 arguments to fread so that we get a return value in bytes, rather
5211 than something that will normally be rounded down to 0.
5212 Adjust error handling to avoid producing garbage when size_t is not
5213 the same size as long long.
5215 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5217 * util/mkisofs/write.c (padblock_write): Check return value of
5220 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5222 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5225 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5227 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5229 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5230 instead of manual alignment.
5231 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5232 verbose). Avoid attempts to read past end of the device
5233 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5234 but GRUB_DISK_CACHE_SIZE may exceed that).
5236 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5238 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5239 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5242 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5244 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5246 (grub_efi_piwg_device_path): New structure
5247 (grub_efi_piwg_device_path_t): New type.
5248 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5249 (devpath_1): Transform to a structure. All users updated.
5250 (devpath_2): Likewise.
5251 (devpath_3): Likewise.
5252 (devpath_4): Likewise.
5253 (devpath_5): Likewise.
5255 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5257 * loader/efi/appleloader.c: Restored. Update all users.
5259 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5261 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5263 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5264 (struct boot_blocklist): Move from here ...
5265 * include/grub/i386/pc/boot.h [ASM_FILE]
5266 (struct grub_boot_blocklist): ... to here. Update all users.
5267 (setup): Only initialize `start' member of `first_block'
5268 structure. Add assert() calls to verify the other members.
5270 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5271 (generate_image): Fix broken blocklist length initialization.
5272 Add assert() call to verify blocklist `segment' field.
5274 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5276 * loader/efi/appleloader.c: Remove. Update all users.
5278 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5280 * boot/i386/pc/boot.S: Update copyright year.
5281 * boot/i386/pc/cdboot.S: Likewise.
5282 * boot/i386/pc/diskboot.S: Likewise.
5283 * boot/i386/pc/lnxboot.S: Likewise.
5284 * boot/i386/pc/pxeboot.S: Likewise.
5285 * bus/pci.c: Likewise.
5286 * commands/cmp.c: Likewise.
5287 * commands/help.c: Likewise.
5288 * commands/hexdump.c: Likewise.
5289 * commands/i386/pc/halt.c: Likewise.
5290 * commands/i386/pc/play.c: Likewise.
5291 * commands/i386/pc/vbeinfo.c: Likewise.
5292 * commands/ls.c: Likewise.
5293 * commands/test.c: Likewise.
5294 * disk/dmraid_nvidia.c: Likewise.
5295 * disk/i386/pc/biosdisk.c: Likewise.
5296 * disk/ieee1275/nand.c: Likewise.
5297 * disk/ieee1275/ofdisk.c: Likewise.
5298 * disk/lvm.c: Likewise.
5299 * disk/raid.c: Likewise.
5300 * disk/raid6_recover.c: Likewise.
5301 * disk/scsi.c: Likewise.
5302 * fs/affs.c: Likewise.
5303 * fs/cpio.c: Likewise.
5304 * fs/ext2.c: Likewise.
5305 * fs/hfs.c: Likewise.
5306 * fs/iso9660.c: Likewise.
5307 * fs/ntfs.c: Likewise.
5308 * fs/sfs.c: Likewise.
5309 * fs/udf.c: Likewise.
5310 * fs/ufs.c: Likewise.
5311 * fs/xfs.c: Likewise.
5312 * gencmdlist.sh: Likewise.
5313 * genmk.rb: Likewise.
5314 * include/grub/disk.h: Likewise.
5315 * include/grub/efi/api.h: Likewise.
5316 * include/grub/efi/efi.h: Likewise.
5317 * include/grub/efi/pe32.h: Likewise.
5318 * include/grub/elf.h: Likewise.
5319 * include/grub/fs.h: Likewise.
5320 * include/grub/i386/at_keyboard.h: Likewise.
5321 * include/grub/i386/pc/memory.h: Likewise.
5322 * include/grub/i386/pc/vbe.h: Likewise.
5323 * include/grub/i386/pci.h: Likewise.
5324 * include/grub/i386/tsc.h: Likewise.
5325 * include/grub/ieee1275/ieee1275.h: Likewise.
5326 * include/grub/ntfs.h: Likewise.
5327 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5328 * include/grub/sparc64/libgcc.h: Likewise.
5329 * include/grub/symbol.h: Likewise.
5330 * include/grub/types.h: Likewise.
5331 * include/multiboot2.h: Likewise.
5332 * io/gzio.c: Likewise.
5333 * kern/device.c: Likewise.
5334 * kern/disk.c: Likewise.
5335 * kern/efi/efi.c: Likewise.
5336 * kern/efi/mm.c: Likewise.
5337 * kern/elf.c: Likewise.
5338 * kern/file.c: Likewise.
5339 * kern/i386/dl.c: Likewise.
5340 * kern/i386/pc/init.c: Likewise.
5341 * kern/i386/pc/startup.S: Likewise.
5342 * kern/ieee1275/ieee1275.c: Likewise.
5343 * kern/ieee1275/init.c: Likewise.
5344 * kern/main.c: Likewise.
5345 * kern/mm.c: Likewise.
5346 * kern/powerpc/dl.c: Likewise.
5347 * kern/sparc64/dl.c: Likewise.
5348 * kern/x86_64/dl.c: Likewise.
5349 * lib/hexdump.c: Likewise.
5350 * loader/efi/appleloader.c: Likewise.
5351 * loader/i386/ieee1275/linux.c: Likewise.
5352 * loader/i386/pc/chainloader.c: Likewise.
5353 * loader/i386/pc/linux.c: Likewise.
5354 * loader/i386/pc/multiboot2.c: Likewise.
5355 * loader/ieee1275/multiboot2.c: Likewise.
5356 * loader/multiboot2.c: Likewise.
5357 * loader/multiboot_loader.c: Likewise.
5358 * loader/powerpc/ieee1275/linux.c: Likewise.
5359 * normal/completion.c: Likewise.
5360 * normal/menu_entry.c: Likewise.
5361 * partmap/apple.c: Likewise.
5362 * util/grub.d/10_hurd.in: Likewise.
5363 * util/hostfs.c: Likewise.
5364 * video/readers/png.c: Likewise.
5366 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5368 * include/grub/misc.h (GNUC_PREREQ): New macro.
5369 (ATTRIBUTE_ERROR): New macro.
5370 * include/grub/list.h (grub_bad_type_cast_real): Use
5373 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5375 * normal/menu_text.c (print_message): Change messages.
5377 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5379 * normal/menu_entry.c (store_completion): Gettextizze.
5381 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5383 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5385 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5387 * po/POTFILES: Sort correctly.
5389 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5391 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5392 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5393 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5395 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5396 summary. Gettextizze the strings.
5397 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5398 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5399 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5401 (GRUB_MOD_INIT): Remove command name from summary.
5402 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5404 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5405 * term/i386/pc/serial.c (options): Add full stops.
5406 (GRUB_MOD_INIT): Remove command name from the summary.
5408 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5410 * commands/acpi.c: Gettextizze help strings and/or options. Include
5411 `grub/i18n.h' if needed.
5412 * commands/blocklist.c: Likewise.
5413 * commands/boot.c: Likewise.
5414 * commands/cat.c: Likewise.
5415 * commands/cmp.c: Likewise.
5416 * commands/configfile.c: Likewise.
5417 * commands/crc.c: Likewise.
5418 * commands/date.c: Likewise.
5419 * commands/echo.c: Likewise.
5420 * commands/efi/fixvideo.c: Likewise.
5421 * commands/efi/loadbios.c: Likewise.
5422 * commands/gptsync.c: Likewise.
5423 * commands/halt.c: Likewise.
5424 * commands/handler.c: Likewise.
5425 * commands/hdparm.c: Likewise.
5426 * commands/hexdump.c: Likewise.
5427 * commands/i386/cpuid.c: Likewise.
5428 * commands/i386/pc/drivemap.c: Likewise.
5429 * commands/i386/pc/halt.c: Likewise.
5430 * commands/i386/pc/pxecmd.c: Likewise.
5431 * commands/i386/pc/vbeinfo.c: Likewise.
5432 * commands/i386/pc/vbetest.c: Likewise.
5433 * commands/ieee1275/suspend.c: Likewise.
5434 * commands/keystatus.c: Likewise.
5435 * commands/loadenv.c: Likewise.
5436 * commands/ls.c: Likewise.
5437 * commands/lsmmap.c: Likewise.
5438 * commands/lspci.c: Likewise.
5439 * commands/memrw.c: Likewise.
5440 * commands/minicmd.c: Likewise.
5441 * commands/parttool.c: Likewise.
5442 * commands/password.c: Likewise.
5443 * commands/probe.c: Likewise.
5444 * commands/read.c: Likewise.
5445 * commands/reboot.c: Likewise.
5446 * commands/search.c: Likewise.
5447 * commands/sleep.c: Likewise.
5448 * commands/test.c: Likewise.
5449 * commands/true.c: Likewise.
5450 * commands/usbtest.c: Likewise.
5451 * commands/videotest.c: Likewise.
5452 * commands/xnu_uuid.c: Likewise.
5453 * disk/loopback.c: Likewise.
5454 * hello/hello.c: Likewise.
5455 * loader/i386/bsd.c: Likewise.
5456 * term/i386/pc/serial.c: Likewise.
5457 * po/POTFILES: Add new files.
5459 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5461 * term/i386/pc/at_keyboard.c
5462 (keyboard_controller_wait_untill_ready): Rename to ...
5463 (keyboard_controller_wait_until_ready): ... this. Update all users.
5465 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5467 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5468 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5469 string using string width.
5470 * normal/menu_text.c (grub_print_message_indented): Use
5471 grub_print_spaces and not print_spaces.
5472 (print_timeout): Likewise.
5473 (print_spaces): Move to...
5474 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5476 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5480 * gnulib/getdelim.c: New file.
5481 * gnulib/getline.c: Likewise.
5483 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5485 * include/grub/list.h (grub_assert_fail): Removed.
5486 (grub_bad_type_cast_real): New function.
5487 (grub_bad_type_cast): New macro.
5488 (GRUB_AS_LIST): Use grub_bad_type_cast.
5489 (GRUB_AS_LIST_P): Likewise.
5490 (GRUB_AS_NAMED_LIST): Likewise.
5491 (GRUB_AS_NAMED_LIST_P): Likewise.
5492 (GRUB_AS_PRIO_LIST): Likewise.
5493 (GRUB_AS_PRIO_LIST_P): Likewise.
5494 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5496 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5498 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5501 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5503 * configure.ac: Check for TARGET_CFLAGS initialization before we
5504 initialize it ourselves (sigh).
5505 Move a few modifications to TARGET_CFLAGS to be unconditional
5506 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5509 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5510 * term/i386/pc/at_keyboard.c
5511 (keyboard_controller_wait_untill_ready): Likewise.
5512 (keyboard_controller_led): Rename `led_status' paramter to avoid
5515 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5517 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5520 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5522 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5524 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5526 * normal/menu_text.c (grub_print_message_indented): Prevent
5527 past-the-end-of-array dereference.
5529 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5531 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5532 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5534 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5536 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5537 * normal/main.c (grub_normal_read_line): Remove a space from the
5540 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5542 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5543 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5544 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5545 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5546 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5547 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5548 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5550 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5552 * video/readers/jpeg.c (cmd): Declare.
5553 (grub_cmd_jpegtest): Use `grub_command_t' type.
5554 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5556 (GRUB_MOD_FINI): Use `cmd' to unregister.
5557 * video/readers/png.c (cmd): Declare.
5558 (grub_cmd_pngtest): Use `grub_command_t' type.
5559 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5561 (GRUB_MOD_FINI): Use `cmd' to unregister.
5562 * video/readers/tga.c (cmd): Declare.
5563 (grub_cmd_tgatest): Use `grub_command_t' type.
5564 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5566 (GRUB_MOD_FINI): Use `cmd' to unregister.
5568 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5570 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5572 * kern/corecmd.c (grub_register_core_commands): Likewise.
5573 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5574 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5575 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5576 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5577 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5578 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5579 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5580 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5581 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5582 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5583 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5584 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5585 * normal/handler.c (insert_handler): Likewise.
5586 * normal/main.c (GRUB_MOD_INIT): Likewise.
5587 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5589 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5591 * commands/help.c (grub_cmd_help): Print the command name before the
5593 (GRUB_MOD_INIT): Remove command name from the summary.
5594 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5596 * lib/arg.c (find_long): Print the command name before the summary.
5597 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5599 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5600 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5601 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5602 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5603 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5604 * commands/date.c (GRUB_MOD_INIT): Likewise.
5605 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5606 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5607 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5608 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5609 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5610 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5611 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5612 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5613 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5614 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5615 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5616 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5617 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5618 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5619 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5620 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5621 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5622 * commands/password.c (GRUB_MOD_INIT): Likewise.
5623 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5624 * commands/read.c (GRUB_MOD_INIT): Likewise.
5625 * commands/search.c (GRUB_MOD_INIT): Likewise.
5626 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5627 * commands/test.c (GRUB_MOD_INIT): Likewise.
5628 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5629 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5630 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5631 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5632 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5633 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5634 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5635 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5636 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5637 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5638 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5639 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5640 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5641 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5643 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5645 Use search command for preliminar UUID search.
5647 * commands/search.c: Split into ...
5648 * commands/search_wrap.c: ...this
5649 * commands/search.c: ...and this.
5650 * commands/search_file.c: New file.
5651 * commands/search_label.c: New file.
5652 * commands/search_uuid.c: New file.
5653 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5654 Add commands/search_wrap.c, commands/search_file.c,
5655 commands/search_label.c and commands/search_uuid.c.
5656 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5657 (search_mod_SOURCES): Set to commands/search_wrap.c.
5658 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5660 (search_fs_file_mod_SOURCES): New variable.
5661 (search_fs_file_mod_CFLAGS): Likewise.
5662 (search_fs_file_mod_LDFLAGS): Likewise.
5663 (search_label_mod_SOURCES): Likewise.
5664 (search_label_mod_CFLAGS): Likewise.
5665 (search_label_mod_LDFLAGS): Likewise.
5666 (search_fs_uuid_mod_SOURCES): New variable.
5667 (search_fs_uuid_mod_CFLAGS): Likewise.
5668 (search_fs_uuid_mod_LDFLAGS): Likewise.
5669 (fs_file_mod_SOURCES): Removed.
5670 (fs_file_mod_CFLAGS): Likewise.
5671 (fs_file_mod_LDFLAGS): Likewise.
5672 (fs_uuid_mod_SOURCES): Removed.
5673 (fs_uuid_mod_CFLAGS): Likewise.
5674 (fs_uuid_mod_LDFLAGS): Likewise.
5675 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5676 Set to util/grub-install.in.
5677 * disk/fs_file.c: Removed.
5678 * disk/fs_uuid.c: Likewise.
5679 * include/grub/search.h: New file.
5680 * util/grub-install.in: Handle sparc64.
5681 Create and use load.cfg.
5682 * util/sparc64/ieee1275/grub-install.in: Removed.
5684 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5686 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5687 Ignore return status if CF is cleared.
5688 (grub_biosdisk_get_diskinfo_standard): Likewise.
5690 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5692 * term/i386/pc/at_keyboard.c
5693 (keyboard_controller_wait_untill_ready): New function.
5694 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5695 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5696 for keyboard polling, rather than duplicate the same loop. This
5697 saves a few bytes in code size.
5699 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5701 Support for (pxe[:server[:gateway]]) syntax and
5702 use environment variable for PXE.
5704 * commands/i386/pc/pxecmd.c (options): Removed.
5705 (print_ip): Removed.
5706 (grub_cmd_pxe): Removed
5707 (grub_cmd_pxe_unload): New function.
5708 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5709 (grub_pxe_your_ip): Made static.
5710 (grub_pxe_default_server_ip): Likewise.
5711 (grub_pxe_default_gateway_ip): Likewise.
5712 (grub_pxe_blksize): Likewise.
5713 (parse_ip): New function.
5714 (grub_pxe_open): Support server and gateway specification.
5715 (grub_pxe_close): Free disk->data.
5716 (grub_pxefs_open): Use disk->data.
5717 (grub_pxefs_read): Likewise.
5718 (grub_env_write_readonly): New function.
5719 (set_mac_env): Likewise.
5720 (set_env_limn_ro): Likewise.
5721 (parse_dhcp_vendor): Likewise.
5722 (grub_pxe_detect): Set the environment variables.
5723 (set_ip_env): New function.
5724 (write_ip_env): Likewise.
5725 (grub_env_write_pxe_default_server): Likewise.
5726 (grub_env_write_pxe_default_gateway): Likewise.
5727 (grub_env_write_pxe_blocksize): Likewise.
5728 (GRUB_MOD_INIT(pxe)): Set environment variables.
5729 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5730 (grub_pxe_mac_addr_t): ... this. All users updated.
5731 (grub_pxe_your_ip): Removed.
5732 (grub_pxe_server_ip): Likewise.
5733 (grub_pxe_gateway_ip): Likewise.
5734 (grub_pxe_blksize): Likewise.
5736 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5738 * commands/help.c: Include `<grub/i18n.h>'.
5739 (grub_cmd_help): Gettextizze.
5740 (GRUB_MOD_INIT): Likewise.
5741 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5742 (GRUB_MOD_INIT): Gettextizze.
5743 * commands/search.c: Include `<grub/i18n.h>'.
5744 (options): Gettextizze.
5745 (GRUB_MOD_INIT): Gettextizze.
5746 * lib/arg.c: Include `<grub/i18n.h>'.
5747 (help_options): Gettextizze.
5748 (find_long): Likewise.
5749 (grub_arg_show_help): Likewise.
5750 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5751 (read_command_list): Gettextizze.
5752 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5753 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5755 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5757 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5758 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5759 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5760 (led_status): New variable.
5761 (keyboard_controller_led): New function.
5762 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5763 update led status for caps lock, num lock and scroll lock.
5765 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5767 * util/hostdisk.c (open_device): Fix a comment.
5769 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5771 * util/grub-install.in (host_os): New variable.
5772 * util/i386/efi/grub-install.in (host_os): Likewise.
5774 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5776 * util/mkisofs/write.c (padblock_write): Abort when given an
5777 excedingly large embed image, instead of silently truncating it.
5779 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5781 * include/multiboot.h: Indentation fixes.
5783 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5785 * include/multiboot.h (struct multiboot_aout_symbol_table)
5786 (struct multiboot_elf_section_header_table): New structure
5787 declarations (stolen from GRUB Legacy).
5788 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5791 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5792 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5795 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5797 * include/multiboot.h: Make comments src2texi-friendly.
5799 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5801 For consistency with [multiboot]/docs/boot.S.
5803 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5804 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5805 (MULTIBOOT_MAGIC2): Rename from this ...
5806 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5808 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5810 * include/multiboot.h: Remove `<grub/types.h>'.
5811 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5812 types. Update all users.
5814 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5816 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5817 `couldn't' and `can not' by `cannot'.
5818 * commands/i386/pc/drivemap.c: Likewise.
5819 * disk/ata.c: Likewise.
5820 * disk/ieee1275/nand.c: Likewise.
5821 * fs/affs.c: Likewise.
5822 * fs/fat.c: Likewise.
5823 * fs/hfs.c: Likewise.
5824 * fs/hfsplus.c: Likewise.
5825 * fs/iso9660.c: Likewise.
5826 * fs/jfs.c: Likewise.
5827 * fs/minix.c: Likewise.
5828 * fs/reiserfs.c: Likewise.
5829 * fs/sfs.c: Likewise.
5830 * fs/udf.c: Likewise.
5831 * fs/ufs.c: Likewise.
5832 * fs/xfs.c: Likewise.
5833 * loader/powerpc/ieee1275/linux.c: Likewise.
5834 * loader/sparc64/ieee1275/linux.c: Likewise.
5835 * util/grub-probe.c: Likewise.
5836 * util/misc.c: Likewise.
5838 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5840 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5842 * commands/acpi.c: Likewise.
5843 * commands/blocklist.c: Likewise.
5844 * commands/efi/loadbios.c: Likewise.
5845 * commands/i386/pc/drivemap.c: Likewise.
5846 * commands/loadenv.c: Likewise.
5847 * commands/memrw.c: Likewise.
5848 * commands/password.c: Likewise.
5849 * commands/videotest.c: Likewise.
5850 * disk/ata.c: Likewise.
5851 * disk/ata_pthru.c: Likewise.
5852 * disk/dmraid_nvidia.c: Likewise.
5853 * disk/ieee1275/nand.c: Likewise.
5854 * disk/ieee1275/ofdisk.c: Likewise.
5855 * disk/loopback.c: Likewise.
5856 * disk/lvm.c: Likewise.
5857 * disk/mdraid_linux.c: Likewise.
5858 * disk/raid.c: Likewise.
5859 * disk/raid6_recover.c: Likewise.
5860 * disk/scsi.c: Likewise.
5861 * efiemu/main.c: Likewise.
5862 * efiemu/mm.c: Likewise.
5863 * efiemu/pnvram.c: Likewise.
5864 * efiemu/symbols.c: Likewise.
5865 * font/font.c: Likewise.
5866 * fs/cpio.c: Likewise.
5867 * fs/hfsplus.c: Likewise.
5868 * fs/iso9660.c: Likewise.
5869 * fs/jfs.c: Likewise.
5870 * fs/minix.c: Likewise.
5871 * fs/ntfs.c: Likewise.
5872 * fs/ntfscomp.c: Likewise.
5873 * fs/reiserfs.c: Likewise.
5874 * fs/ufs.c: Likewise.
5875 * fs/xfs.c: Likewise.
5876 * gettext/gettext.c: Likewise.
5877 * include/grub/auth.h: Likewise.
5878 * kern/elf.c: Likewise.
5879 * kern/file.c: Likewise.
5880 * kern/ieee1275/init.c: Likewise.
5881 * kern/ieee1275/mmap.c: Likewise.
5882 * kern/ieee1275/openfw.c: Likewise.
5883 * kern/powerpc/dl.c: Likewise.
5884 * kern/sparc64/dl.c: Likewise.
5885 * lib/arg.c: Likewise.
5886 * loader/i386/bsd.c: Likewise.
5887 * loader/i386/bsdXX.c: Likewise.
5888 * loader/i386/efi/linux.c: Likewise.
5889 * loader/i386/efi/xnu.c: Likewise.
5890 * loader/i386/ieee1275/linux.c: Likewise.
5891 * loader/i386/linux.c: Likewise.
5892 * loader/i386/multiboot.c: Likewise.
5893 * loader/i386/pc/linux.c: Likewise.
5894 * loader/i386/pc/multiboot2.c: Likewise.
5895 * loader/i386/xnu.c: Likewise.
5896 * loader/ieee1275/multiboot2.c: Likewise.
5897 * loader/macho.c: Likewise.
5898 * loader/machoXX.c: Likewise.
5899 * loader/multiboot2.c: Likewise.
5900 * loader/multiboot_loader.c: Likewise.
5901 * loader/powerpc/ieee1275/linux.c: Likewise.
5902 * loader/sparc64/ieee1275/linux.c: Likewise.
5903 * loader/xnu.c: Likewise.
5904 * loader/xnu_resume.c: Likewise.
5905 * mmap/i386/pc/mmap.c: Likewise.
5906 * normal/menu_viewer.c: Likewise.
5907 * partmap/acorn.c: Likewise.
5908 * partmap/amiga.c: Likewise.
5909 * partmap/apple.c: Likewise.
5910 * script/lexer.c: Likewise.
5911 * term/gfxterm.c: Likewise.
5912 * term/i386/pc/serial.c: Likewise.
5913 * term/i386/pc/vga.c: Likewise.
5914 * term/ieee1275/ofconsole.c: Likewise.
5915 * term/terminfo.c: Likewise.
5916 * video/bitmap.c: Likewise.
5917 * video/efi_gop.c: Likewise.
5918 * video/efi_uga.c: Likewise.
5919 * video/fb/video_fb.c: Likewise.
5920 * video/i386/pc/vbe.c: Likewise.
5921 * video/readers/tga.c: Likewise.
5922 * video/video.c: Likewise.
5924 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5926 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5927 * commands/lspci.c: Likewise.
5928 * commands/probe.c: Likewise.
5929 * commands/xnu_uuid.c: Likewise.
5930 * conf/i386-coreboot.rmk: Likewise.
5931 * conf/i386-efi.rmk: Likewise.
5932 * conf/i386-ieee1275.rmk: Likewise.
5933 * conf/i386-pc.rmk: Likewise.
5934 * conf/powerpc-ieee1275.rmk: Likewise.
5935 * conf/sparc64-ieee1275.rmk: Likewise.
5936 * conf/x86_64-efi.rmk: Likewise.
5937 * fs/i386/pc/pxe.c: Likewise.
5938 * gettext/gettext.c: Likewise.
5939 * include/grub/efi/graphics_output.h: Likewise.
5940 * include/grub/i386/pc/memory.h: Likewise.
5941 * kern/env.c: Likewise.
5942 * kern/i386/qemu/startup.S: Likewise.
5943 * lib/i386/pc/biosnum.c: Likewise.
5944 * lib/i386/relocator.c: Likewise.
5945 * lib/i386/relocator_asm.S: Likewise.
5946 * lib/relocator.c: Likewise.
5947 * loader/i386/bsd.c: Likewise.
5948 * loader/i386/multiboot.c: Likewise.
5949 * loader/i386/pc/chainloader.c: Likewise.
5950 * loader/i386/xnu.c: Likewise.
5951 * loader/xnu.c: Likewise.
5952 * normal/main.c: Likewise.
5953 * normal/menu_text.c: Likewise.
5954 * util/getroot.c: Likewise.
5955 * util/grub-mkconfig_lib.in: Likewise.
5956 * util/grub.d/00_header.in: Likewise.
5957 * util/i386/pc/grub-mkimage.c: Likewise.
5958 * util/mkisofs/eltorito.c: Likewise.
5959 * util/mkisofs/exclude.h: Likewise.
5960 * util/mkisofs/hash.c: Likewise.
5961 * util/mkisofs/iso9660.h: Likewise.
5962 * util/mkisofs/joliet.c: Likewise.
5963 * util/mkisofs/mkisofs.c: Likewise.
5964 * util/mkisofs/mkisofs.h: Likewise.
5965 * util/mkisofs/multi.c: Likewise.
5966 * util/mkisofs/name.c: Likewise.
5967 * util/mkisofs/rock.c: Likewise.
5968 * util/mkisofs/tree.c: Likewise.
5969 * util/mkisofs/write.c: Likewise.
5970 * video/efi_gop.c: Likewise.
5972 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5974 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5977 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5979 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5980 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5982 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5984 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5985 (GRUB_MOD_INIT(memrw)): Update help line.
5987 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5989 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5990 Use grub_extcmd_t. All users updated.
5991 (options): New variable.
5992 (grub_cmd_read): Restructure for readability. Support "-v" option.
5993 (grub_cmd_write): Restructure for readability.
5995 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5997 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5999 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6001 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6002 with the actual contents of the correspondending make variable.
6003 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6004 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6005 specifying `*.lst' and `efiemu??.o'
6007 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6009 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6010 after function name.
6011 Noticed by Rene Engelhard <rene@debian.org>.
6013 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6015 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6016 (options): New variable.
6017 (iospace): Likewise.
6018 (grub_lspci_iter): List IO spaces if "-i" was given.
6019 (grub_cmd_lspci): Parse options.
6020 (GRUB_MOD_INIT(lspci)): Use extcmd.
6021 (GRUB_MOD_FINI(lspci)): Likewise.
6023 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6025 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6027 Patch by Tony Mancill <tmancill@debian.org>.
6029 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6031 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6032 (grub_uhci_portstatus): Likewise.
6033 (grub_uhci_portstatus): Add necessary delay.
6034 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
6036 2009-12-21 Carles Pina i Estany <carles@pina.cat>
6038 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6039 (GRUB_MOD_INIT): Likewise.
6040 * commands/boot.c (GRUB_MOD_INIT): Likewise.
6041 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6042 * commands/echo.c (options): Fix capitalizations and/or full stops.
6043 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6044 (enable_rom_area): Likewise.
6045 (GRUB_MOD_INIT): Likewise.
6046 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6047 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6048 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6049 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6050 * commands/hexdump.c (options): Likewise.
6051 * commands/i386/cpuid.c (options): Likewise.
6052 (GRUB_MOD_INIT): Likewise.
6053 * commands/i386/pc/drivemap.c (options): Likewise.
6054 (GRUB_MOD_INIT): Likewise.
6055 * commands/i386/pc/halt (options): Likewise.
6056 (GRUB_MOD_INIT): Likewise.
6057 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6058 * commands/i386/pc/pxecmd.c (options): Likewise.
6059 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6060 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6061 * commands/keystatus.c (options): Likewise.
6062 (GRUB_MOD_INIT): Likewise.
6063 * commands/loadenv.c (options): Likewise.
6064 * commands/ls.c (options): Likewise.
6065 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6066 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6067 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6068 * commands/parttool.c (helpmsg): Likewise.
6069 * commands/probe.c (options): Likewise.
6070 * commands/read.c (GRUB_MOD_INIT): Likewise.
6071 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6072 * commands/search.c (options): Likewise.
6073 * commands/sleep.c (options): Likewise.
6074 * commands/test.c (GRUB_MOD_INIT): Likewise.
6075 * commands/true.c (GRUB_MOD_INIT): Likewise.
6076 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6077 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6078 * lib/arg.c (help_options): Likewise.
6079 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6081 * po/POTFILES: Add `commands/loadenv.c'.
6083 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6085 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6086 instead of specifying them explicit.
6088 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6090 * NEWS: Add grub-probe support for GNU/Hurd.
6092 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6094 * NEWS: gettext was added after 1.97.
6096 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6098 * util/mkisofs/msdos_partition.h: New file (based on
6099 include/grub/msdos_partition.h).
6100 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6101 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6102 (ld_options, main): Recognize --protective-msdos-label.
6103 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6104 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6105 (padblock_write): If `use_protective_msdos_label' is set, patch a
6106 protective DOS-style label in the output image.
6108 * util/grub-mkrescue.in: Use --protective-msdos-label.
6110 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6112 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6115 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6117 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6119 (ld_options, main): Recognize `--embedded-boot'.
6120 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6122 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6123 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6124 (padblock_write): Likewise. Rewrite to support embedded boot image.
6126 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6127 for BIOS-based disk boot instead of only ElTorito.
6129 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6131 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6132 build (not needed for bootstrap).
6134 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6136 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6137 from i386-pc build (not needed for bootstrap).
6138 Rewrite a pair of strings.
6140 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6142 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6144 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6146 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6148 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6150 * kern/env.c (grub_env_context_open): Mark exported variable for
6153 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6155 * kern/env.c (grub_env_export): Create nonexistent variables before
6158 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6160 * include/grub/auth.h: Include `<grub/i18n.h>'.
6161 (GRUB_GET_PASSWORD): Gettextizze string.
6162 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6164 (grub_utf8_to_ucs4_alloc): Fix indentation.
6165 (grub_print_ucs4): Likewise.
6166 (grub_getstringwidth): Likewise.
6167 (print_message_indented): New declaration.
6168 * normal/auth.c: Include `<grub/i18n.h>'.
6169 (grub_auth_check_authentication): Gettexttize string.
6170 * normal/cmdline.c: Include `<grub/i18n.h>'.
6171 (grub_cmdline_get): Gettextizze.
6172 * normal/color.c: Include `<grub/i18n.h>'.
6173 (grub_parse_color_name_pair): Gettexttize strings.
6174 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6175 string (use `print_message_indented').
6176 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6177 `include/grub/normal.h'.
6178 (print_message_indented): Renamed to ...
6179 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6180 used in normal/main.c).
6181 (print_message): Use `grub_print_message_indented' instead of
6182 `print_message_indented'.
6183 (print_timeout): Likewise.
6184 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6185 (grub_normal_print_device_info): Gettexttize strings.
6186 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6188 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6190 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6191 of arguments. Return number of tokens and not arguments. All users
6194 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6196 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6197 non-MSDOS paritions.
6199 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6201 * include/grub/types.h (UNUSED): Removed since it conflicts with
6202 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6203 Reported by Grégoire Sutre.
6205 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6207 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6208 (grub_print_ucs4_alloc): Likewise.
6209 (grub_getstringwidth): Likewise.
6210 * normal/main.c (grub_normal_init_page): Gettextize version string.
6211 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6212 (getstringwidth): Renamed to ...
6213 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6214 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6215 (grub_print_ucs4): Remove `static' qualifer (now used in
6217 * po/POTFILES: Add normal/main.c.
6219 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6221 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6222 (print_message_indented): Add `margin_left' and `margin_right'
6224 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6226 (print_timeout): Use `print_message_indented' to print the message.
6227 Deletes `second_stage' parameter.
6228 (run_menu): Update `print_timeout' calls.
6230 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6232 Fix console palette on OpenFirmware.
6234 * term/ieee1275/ofconsole.c (MAX): Removed.
6235 (colors): Redone based on VGA palette.
6236 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6237 colors are supported.
6238 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6240 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6242 Fix potential EfiEmu double prepare.
6244 * efiemu/main.c (prepared): New variable
6245 (grub_efiemu_unload): Set prepare to '0'.
6246 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6248 set_virtual_address_map support.
6250 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6252 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6254 (grub_efiemu_crc32): Likewise.
6255 (grub_efiemu_crc64): Likewise.
6256 (grub_efiemu_set_virtual_address_map): Likewise.
6257 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6259 (grub_autoefi_set_virtual_address_map): Likewise.
6260 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6261 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6262 Restructure flow to accomodate it.
6263 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6264 (grub_efiemu_crc): Recompute CRC32.
6265 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6266 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6267 * efiemu/symbols.c (relocated_handle): New variable.
6268 (grub_efiemu_free_syms): Free relocated_handle.
6269 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6270 (grub_efiemu_write_sym_markers): New function.
6271 (grub_efiemu_set_virtual_address_map): Likewise.
6273 Newer XNU parameters.
6275 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6276 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6277 (grub_xnu_fill_devicetree): New prototype.
6278 (grub_xnu_heap_real_start): New variable.
6279 * loader/xnu.c (get_name_ptr): New function.
6280 (grub_xnu_load_driver): Fill namelen and name.
6284 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6285 and 'loader/macho64.c'.
6286 * conf/i386-pc.rmk: Likewise.
6287 * conf/x86_64-efi.rmk: Likewise.
6288 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6289 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6290 * include/grub/macho.h (grub_macho_segment64): New structure.
6291 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6292 (grub_macho_size32): ... to this.
6293 (grub_macho32_get_entry_point): Renamed from ...
6294 (grub_macho_get_entry_point32): ... to this.
6295 (grub_macho_contains_macho64): New prototype.
6296 (grub_macho_size64): Likewise.
6297 (grub_macho_get_entry_point64): Likewise.
6298 (grub_macho32_load): Renamed from ...
6299 (grub_macho_load32): ... to this.
6300 (grub_macho32_filesize): Renamed from ...
6301 (grub_macho_filesize32): ... to this.
6302 (grub_macho32_readfile): Renamed from ...
6303 (grub_macho_readfile32): ... to this.
6304 (grub_macho_filesize64): New prototype.
6305 (grub_macho_readfile64): Likewise.
6306 (grub_macho_parse32): Likewise.
6307 (grub_macho_parse64): Likewise.
6308 * loader/macho.c: Split into ...
6309 * loader/machoXX.c: ... and this. Replace 32 with XX.
6310 * loader/macho32.c: New file.
6311 * loader/macho64.c: Likewise.
6312 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6313 (grub_cmd_xnu_kernel): Make 32-bit only.
6314 (grub_cmd_xnu_kernel64): New function.
6315 (grub_xnu_load_driver): Support Mach-O 64.
6316 (grub_cmd_xnu_mkext): Likewise.
6317 * util/grub.d/30_os-prober.in (osx_entry): New function.
6318 Generate entries for 64-bit boot too.
6320 Eliminate ad-hoc tree format in XNU and EfiEmu.
6322 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6323 * efiemu/pnvram.c: Rewritten to use environment variables.
6326 Inline utf16_to_utf8.
6328 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6329 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6331 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6333 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6334 * commands/usbtest.c (grub_usb_get_string): ... move here.
6335 (usb_print_str): Fix error handling.
6336 * include/grub/usb.h (grub_usb_get_string): Remove.
6338 UTF-8 to UTF-16 transformation.
6340 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6341 (charset_mod_SOURCES): New variable.
6342 (charset_mod_CFLAGS): Likewise.
6343 (charset_mod_LDFLAGS): Likewise.
6344 * include/grub/utf.h: New file.
6345 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6347 Support for device properties.
6349 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6350 (grub_xnu_devprop_device_header): Likewise.
6351 (grub_xnu_devprop_device_descriptor): Likewise.
6352 (grub_xnu_devprop_add_device): New prototype.
6353 (grub_xnu_devprop_remove_device): Likewise.
6354 (grub_xnu_devprop_remove_property): Likewise.
6355 (grub_xnu_devprop_add_property_utf8): Likewise.
6356 (grub_xnu_devprop_add_property_utf16): Likewise.
6357 (grub_cpu_xnu_init): Likewise.
6358 (grub_cpu_xnu_fini): Likewise.
6359 (grub_cpu_xnu_unload): Likewise.
6360 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6361 (property_descriptor): Likewise.
6362 (devices): New variable.
6363 (grub_xnu_devprop_remove_property): New function.
6364 (grub_xnu_devprop_add_device): Likewise.
6365 (grub_xnu_devprop_remove_device): Likewise.
6366 (grub_xnu_devprop_add_property): Likewise.
6367 (grub_xnu_devprop_add_property_utf8): Likewise.
6368 (grub_xnu_devprop_add_property_utf16): Likewise.
6369 (hextoval): Likewise.
6370 (grub_cpu_xnu_fill_devprop): Likewise.
6371 (grub_cmd_devprop_load): Likewise.
6372 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6373 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6374 (cmd_devprop_load): New variable.
6375 (grub_cpu_xnu_init): New function.
6376 (grub_cpu_xnu_fini): Likewise.
6377 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6378 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6379 (grub_cmd_xnu_devtree): Likewise.
6380 (hextoval): New function.
6381 (unescape): Likewise.
6382 (grub_xnu_fill_devicetree): Likewise.
6384 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6385 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6387 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6389 Workaround for broken ATI VBE.
6391 * video/i386/pc/vbe.c (last_set_mode): New variable.
6392 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6393 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6394 (grub_video_vbe_setup): Don't check for reserved flag.
6396 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6398 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6401 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6403 UUID support for HFS.
6405 * fs/hfs.c (grub_hfs_uuid): New function.
6406 (grub_hfs_fs): New value .uuid.
6407 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6409 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6411 Fix a segfault with parsing unknown long options.
6413 * util/grub-mkrelpath.c (options): Zero terminate it.
6415 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6417 * include/grub/misc.h (grub_puts): New declaration.
6418 (grub_puts_): Likewise.
6419 * kern/misc.c (grub_puts): New definition.
6420 (grub_puts_): Likewise.
6422 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6424 * util/grub-probe.c (probe): Improve error message.
6426 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6428 * loader/i386/multiboot_elfxx.c
6429 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6432 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6436 * loader/i386/xnu_helper.S: Removed. All users updated.
6437 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6438 (relocator_mod_SOURCES): New variable.
6439 (relocator_mod_CFLAGS): Likewise.
6440 (relocator_mod_LDFLAGS): Likewise.
6441 (relocator_mod_ASFLAGS): Likewise.
6442 * conf/x86_64.rmk: Likewise.
6443 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6444 (grub_multiboot_payload_entry_offset): Likewise.
6445 (grub_multiboot_forward_relocator): Likewise.
6446 (grub_multiboot_forward_relocator_end): Likewise.
6447 (grub_multiboot_backward_relocator): Likewise.
6448 (grub_multiboot_backward_relocator_end): Likewise.
6449 (grub_multiboot_payload_eip): New variable.
6450 (grub_multiboot_payload_orig): Likewise.
6451 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6452 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6453 * include/grub/i386/memory.h
6454 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6455 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6456 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6457 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6458 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6459 * include/grub/i386/relocator.h: New file.
6460 * include/grub/x86_64/relocator.h: Likewise.
6461 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6462 (XNU_RELOCATOR): New macro.
6463 (grub_xnu_launcher_start): Remove.
6464 (grub_xnu_launcher_end): Likewise.
6465 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6466 (grub_xnu_heap_real_start): Remove.
6467 (grub_xnu_heap_start): Change to void *. All users updated.
6468 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6469 * lib/i386/relocator.c: New file.
6470 * lib/i386/relocator_asm.S: Likewise.
6471 * lib/i386/relocator_backward.S: Likewise.
6472 * lib/mips/relocator.c: Likewise.
6473 * lib/mips/relocator_asm.S: Likewise.
6474 * lib/relocator.c: Likewise.
6475 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6477 (playground): Likewise.
6478 (grub_multiboot_payload_orig): New variable.
6479 (grub_multiboot_payload_dest): Likewise.
6480 (grub_multiboot_payload_size): Likewise.
6481 (grub_multiboot_payload_eip): Likewise.
6482 (grub_multiboot_payload_esp): Likewise.
6483 (grub_multiboot_boot): Use grub_relocator32_boot.
6484 (grub_multiboot_unload): Free relocators.
6485 (grub_multiboot): Setup stack. Use relocators.
6486 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6487 (grub_multiboot_load_elfXX): Use relocators.
6488 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6489 (grub_multiboot_payload_size): Likewise.
6490 (grub_multiboot_payload_dest): Likewise.
6491 (grub_multiboot_payload_entry_offset): Likewise.
6492 (grub_multiboot_forward_relocator): Likewise.
6493 (grub_multiboot_backward_relocator): Likewise.
6494 (grub_multiboot_real_boot): Likewise.
6495 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6496 (grub_xnu_entry_point): Likewise.
6497 (grub_xnu_arg1): Likewise.
6498 (grub_xnu_stack): Likewise.
6499 (grub_xnu_launch): Removed.
6500 (grub_xnu_boot_resume): New function.
6501 (grub_xnu_boot): Use relocators.
6502 * loader/i386/xnu_helper.S: Removed.
6503 * loader/xnu.c (grub_xnu_heap_start): New variable.
6504 (grub_xnu_heap_size): Likewise.
6505 (grub_xnu_heap_malloc): Use relocators.
6506 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6508 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6510 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6513 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6515 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6516 GRUB_ERR_NONE before calling grub_env_set.
6518 2009-12-12 Robert Millan <rmh@aybabtu.com>
6520 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6521 * genmk.rb (video): New variable.
6522 (CLEANFILES, VIDEOFILES): Add #{video}.
6523 (#{video}): New target rule.
6524 * genvideolist.sh: New file.
6525 * Makefile.in (pkglib_DATA): Add video.lst.
6526 (video.lst): New target rule.
6527 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6529 * util/grub.d/30_os-prober.in: Replace `vbe' with
6530 ${GRUB_VIDEO_BACKEND}.
6532 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6534 * THANKS: Add David Miller.
6536 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6538 libpciaccess support.
6540 * Makefile.in (LIBPCIACCESS): New variable.
6541 (enable_grub_emu_pci): Likewise.
6542 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6543 util/pci.c and commands/lspci.c.
6544 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6545 * configure.ac (grub-emu-pci): New option.
6546 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6547 (grub_pci_device_unmap_range): Likewise.
6548 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6549 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6550 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6551 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6552 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6553 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6554 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6555 * include/grub/pciutils.h: New file.
6556 * util/pci.c: Likewise.
6558 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6560 * util/misc.c: Don't include <errno.h> twice.
6562 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6564 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6565 name in an error message.
6566 (grub_biosdisk_rw): Likewise.
6568 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6570 Eliminate NTFS 4Gib barrier.
6572 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6573 (read_run_data): Likewise.
6574 (grub_ntfs_read_run_list): Likewise.
6575 (grub_ntfs_read_block): Likewise.
6576 (grub_ntfs_iterate_dir): Likewise.
6577 (read_mft): Likewise.
6578 (read_data): Likewise.
6580 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6581 to avoid 64-bit division
6582 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6583 (grub_ntfs_rlst): Use grub_disk_addr_t.
6585 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6587 Eliminate grub-fstest 4Gib barrier.
6589 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6590 (read_file): Fix error reporting.
6592 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6594 Eliminate hexdump 4Gib barrier.
6596 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6597 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6599 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6601 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6604 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6606 Remove miscellaneous files in distclean target.
6608 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6610 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6612 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6613 if they're already set. This resolves the conflict between my
6614 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6615 fixing the --grub-probe option again.
6616 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6617 change on 2009-10-06, so that we now once again source
6618 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6620 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6622 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6623 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6626 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6628 * include/grub/misc.h (grub_printf_): New declaration.
6629 * kern/misc.c (grub_printf_): New definition.
6630 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6631 instead of `grub_printf' and `_'.
6632 * normal/menu_entry.c (store_completion): Likewise.
6634 (grub_menu_entry_run): Likewise.
6635 * normal/menu_text.c (grub_wait_after_message): Likewise.
6636 (notify_booting): Likewise.
6637 (notify_fallback): Likewise.
6638 (notify_execution_failure): Likewise.
6640 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6642 * configure.ac: Check for vasprintf.
6643 * util/misc.c (asprintf): Move allocation from here ...
6644 (vasprintf): ... to here. New function.
6645 (xasprintf): New function.
6646 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6648 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6649 * util/grub-mkfont.c (write_font): Likewise.
6650 * util/grub-probe.c (probe): Likewise.
6651 * util/hostdisk.c (make_device_name): Likewise.
6653 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6655 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6656 anything even prefixed with 'cdrom' as a cdrom.
6658 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6660 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6663 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6665 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6666 grub_gettext_msg_list.
6667 (grub_gettext_gettranslation_from_position): Return const char *
6669 (grub_gettext_translate): Add the translated strings into a list,
6670 returns from the list if existing there.
6671 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6672 (grub_gettext_delete_list): Delete the list.
6673 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6674 lang environment variable is changed.
6675 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6677 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6679 Rename kernel.mod to kernel.img.
6681 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6682 (kernel_mod_EXPORTS): Rename to ...
6683 (kernel_img_EXPORTS): ... this.
6684 (kernel_mod_SOURCES): Rename to ...
6685 (kernel_img_SOURCES): ... this.
6686 (kernel_mod_HEADERS): Rename to ...
6687 (kernel_img_HEADERS): ... this. All users updated.
6688 (kernel_mod_CFLAGS): Rename to ...
6689 (kernel_img_CFLAGS): ... this.
6690 (kernel_mod_ASFLAGS): Rename to ...
6691 (kernel_img_ASFLAGS): ... this.
6692 (kernel_mod_LDFLAGS): Rename to ...
6693 (kernel_img_LDFLAGS): ... this.
6694 * conf/x86_64-efi.rmk: Likewise.
6695 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6696 (read_kernel_image): ... this. All users updated.
6697 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6699 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6701 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6702 (print_spaces): New function.
6703 (grub_print_ucs4): New function.
6704 (getstringwidth): New function.
6705 (print_message_indented): New function.
6706 (print_message): Gettexttize strings using print_message_indented.
6707 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6709 (get_entry_number): Gettextize and uses dynamic terminal width.
6710 (notify_booting, notify_fallback, notify_execution_failure):
6712 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6715 (grub_menu_entry_run): Likewise.
6716 * PO/POTFILES: Add normal/menu_entry.c.
6718 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6720 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6722 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6724 * util/grub-install.in: Install gettext .mo files.
6725 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6727 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6729 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6732 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6734 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6735 non-firmware-dependant one in realmode.S takes precedence.
6737 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6739 * commands/halt.c: Replace misc arch-specific headers with
6741 * commands/reboot.c: Likewise.
6742 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6744 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6745 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6746 (kernel_img_SOURCES): ... to here.
6748 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6749 * include/grub/i386/pc/init.h: Likewise.
6750 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6751 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6753 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6755 * include/grub/i386/halt.h: Remove.
6756 * include/grub/i386/reboot.h: Likewise.
6758 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6760 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6762 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6763 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6764 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6766 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6767 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6768 (usage): Add missing comma in printf.
6770 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6772 Use the same reboot approach on i386 coreboot and qemu as we do on
6775 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6776 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6777 * kern/i386/reboot.c: Remove.
6778 * include/grub/i386/reboot.h (grub_reboot): Export function.
6779 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6780 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6781 0xf000:0xfff0 instead of 0xffff:0x0000.
6782 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6783 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6785 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6787 Fix $srcdir != $objdir build.
6789 * Makefile.in (po/%.po): Rewrite as ...
6790 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6792 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6794 Fix GNU/Hurd grub-install crash.
6795 * util/grub-probe.c (probe): Try to access `path' only when it is not
6798 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6800 Correct module naming.
6802 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6803 (GRUB_MOD_INIT(efi_uga)): ... to this
6804 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6805 (GRUB_MOD_FINI(efi_uga)): ... to this
6806 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6807 (GRUB_MOD_INIT(efi_gop)): ... to this
6808 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6809 (GRUB_MOD_FINI(efi_gop)): ... to this
6811 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6813 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6815 (usage): Translate `arg' strings using gettext().
6816 Thanks to Jordi Mallach for the suggestion.
6818 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6820 GOP support. Based on patch from Bean
6821 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6823 * video/efi_gop.c: New file.
6824 * include/grub/efi/graphics_output.h: Likewise.
6825 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6826 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6828 * conf/x86_64-efi.rmk: Likewise.
6830 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6832 Rename efi_fb to efi_uga.
6834 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6836 (efi_fb_mod_SOURCES): Rename this ...
6837 (efi_uga_mod_SOURCES): ... to this.
6838 (efi_fb_mod_CFLAGS): Rename this ...
6839 (efi_uga_mod_CFLAGS): ... to this.
6840 (efi_fb_mod_LDFLAGS): Rename this ...
6841 (efi_uga_mod_LDFLAGS): ... to this.
6842 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6844 (efi_fb_mod_SOURCES): Rename this ...
6845 (efi_uga_mod_SOURCES): ... to this.
6846 (efi_fb_mod_CFLAGS): Rename this ...
6847 (efi_uga_mod_CFLAGS): ... to this.
6848 (efi_fb_mod_LDFLAGS): Rename this ...
6849 (efi_uga_mod_LDFLAGS): ... to this.
6850 * video/efi_fb.c: Move this ...
6851 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6853 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6855 * po/README: New file. Explain our PO file workflow.
6857 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6859 * po/ChangeLog: Remove. Move relevant entries back to ...
6860 * ChangeLog: ... here.
6861 * po/ca.po: Remove (now handled by TLP).
6862 * po/id.po: Likewise.
6863 * po/zh_CN.po: Likewise.
6864 * Makefile.in (LINGUAS): Initialize in a way that supports
6867 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6869 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6870 reliing on po/LINGUAS.
6871 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6872 (po/%.po): ... this.
6874 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6876 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6877 (main): Use `program_name' instead of nonexistent `progname'.
6879 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6881 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6882 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6884 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6886 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6888 * conf/i386-efi.rmk: Likewise.
6889 * conf/i386-ieee1275.rmk: Likewise.
6890 * conf/powerpc-ieee1275.rmk: Likewise.
6891 * conf/sparc64-ieee1275.rmk: Likewise.
6892 * conf/x86_64-efi.rmk: Likewise.
6894 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6896 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6898 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6900 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6902 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6904 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6905 (grub_mkdevicemap_SOURCES): New variable.
6906 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6907 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6908 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6909 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6910 (grub_mkdevicemap_SOURCES): Remove.
6911 * conf/i386-efi.rmk: Likewise.
6912 * conf/i386-ieee1275.rmk: Likewise.
6913 * conf/i386-pc.rmk: Likewise.
6914 * conf/powerpc-ieee1275.rmk: Likewise.
6915 * conf/sparc64-ieee1275.rmk: Likewise.
6916 * conf/x86_64-efi.rmk: Likewise.
6917 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6918 (usage): Fix strings to use `program_name'.
6919 (main): Initialize gettext.
6920 * util/grub-editenv.c: Likewise.
6921 * util/grub-emu.c: Likewise.
6922 * util/grub-fstest.c: Likewise.
6923 * util/grub-mkdevicemap.c: Likewise.
6924 * util/grub-mkfont.c: Likewise.
6925 * util/grub-mkrelpath.c: Likewise.
6926 * util/grub-pe2elf.c: Likewise.
6927 * util/grub-probe.c: Likewise.
6928 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6929 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6930 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6932 * util/misc.c: Include `"progname.h"'.
6933 (progname): Remove variable.
6934 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6936 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6938 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6939 printf and print a newline after the menuentry header line.
6940 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6942 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6944 autoconf >= 2.60 support $(localedir).
6946 * INSTALL: Note that autoconf 2.60 is required.
6947 * configure.ac (AC_PREREQ): Bump to 2.60.
6948 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6949 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6951 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6953 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6956 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6958 * normal/main.c (grub_normal_read_line): Fix off-by-one
6961 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6963 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6964 "parser.grub" in grub_command_execute() call.
6966 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6968 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6969 * conf/i386-efi.rmk: Likewise.
6970 * conf/i386-ieee1275.rmk: Likewise.
6971 * conf/i386-pc.rmk: Likewise.
6972 * conf/powerpc-ieee1275.rmk: Likewise.
6973 * conf/sparc64-ieee1275.rmk: Likewise.
6974 * conf/x86_64-efi.rmk: Likewise.
6975 * gettext/gettex.c: Include <grub/i18n.h>.
6976 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6978 * include/grub/i18n.h: ... to here
6979 * include/grub/i18n.h: ... to here.
6980 * kern/misc.c: Include <grub/i18n.h>
6981 (grub_gettext_dummy): Move above user.
6983 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6985 * util/Makefile.in (install-local): Convert a `for' into a normal
6988 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6990 * autogen.sh: Add automake call.
6991 * config.guess: Remove.
6992 * config.sub: Likewise.
6993 * install-sh: Likewise.
6995 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6997 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6999 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7001 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7002 function to a normal shell `for'.
7004 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7006 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7008 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7010 * util/grub-mkrelpath.c: New file.
7011 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7012 (grub_mkrelpath_SOURCES): New variable.
7013 * include/grub/util/misc.h: New function prototype.
7014 * util/misc.c (make_system_path_relative_to_its_root): New function.
7016 * util/grub-mkconfig_lib.in (bindir): New variable.
7017 (grub_mkrelpath): Likewise.
7018 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7020 * util/probe.c (probe): Make the file path relative to its root.
7021 Change a info message to use the GRUB path. Enable again the
7022 check if we can read the file with GRUB facilities.
7024 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7027 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7029 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7032 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7034 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7037 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7039 * util/getroot.c (grub_util_is_dmraid): New function.
7040 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7041 devices as normal ones, not as LVM.
7043 2009-11-23 Carles Pina i Estany <carles@pina.cat>
7045 * conf/common.rmk: Add grub-gettext_lib target and updates
7046 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7048 * gettext/gettext.c: New file. (Reads mo files).
7049 * include/grub/file.h (grub_file_pread): New prototype.
7050 * include/grub/i18n.h (_): New prototype.
7051 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7053 * kern/misc.c (grub_gettext_dummy): New function.
7054 * normal/menu_text.c: Include <grub/i18n.h>.
7055 * normal/menu_text.c (print_timeout): Gettexttize string.
7056 * normal/menu_text.c (print_message): Gettexttize string.
7057 * po/POTFILES: Add `normal/menu_text.c'.
7058 * po/ca.po: Add new translations.
7059 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7060 gettext module and defines locale_dir and lang in grub.cfg.
7061 * NEWS: Add gettext support.
7063 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7065 * util/hostdisk.c: Include `<grub/i18n.h>'.
7066 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7067 (make_device_name): Rewrite using asprintf.
7068 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7069 (find_system_device): If a device is not found, generate one just
7070 by reusing the OS path name.
7071 (read_device_map): Make it permissible for device.map not to exist.
7073 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7075 * script/sh/execute.c: Move from here ...
7076 * script/execute.c: ... to here. Update all users.
7077 * script/sh/function.c: Move from here ...
7078 * script/function.c: ... to here. Update all users.
7079 * script/sh/lexer.c: Move from here ...
7080 * script/lexer.c: ... to here. Update all users.
7081 * script/sh/main.c: Move from here ...
7082 * script/main.c: ... to here. Update all users.
7083 * script/sh/parser.y: Move from here ...
7084 * script/parser.y: ... to here. Update all users.
7085 * script/sh/script.c: Move from here ...
7086 * script/script.c: ... to here. Update all users.
7088 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7090 * configure.ac: Detect all `emu' platforms. Define
7091 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7092 --enable-grub-emu logic. Disable include/grub/machine
7093 symlink on `emu' platforms.
7095 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7096 * gensymlist.sh.in: Likewise.
7098 * include/grub/i386/coreboot/machine.h: Remove file.
7099 * include/grub/i386/efi/machine.h: Likewise.
7100 * include/grub/i386/ieee1275/machine.h: Likewise.
7101 * include/grub/i386/pc/machine.h: Likewise.
7102 * include/grub/i386/qemu/machine.h: Likewise.
7103 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7104 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7105 * include/grub/x86_64/efi/machine.h: Likewise.
7107 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7108 * commands/halt.c: Likewise.
7109 * commands/reboot.c: Likewise.
7110 * include/grub/autoefi.h: Likewise.
7111 * include/grub/i386/at_keyboard.h: Likewise.
7112 * include/grub/i386/kernel.h: Likewise.
7113 * include/grub/i386/loader.h: Likewise.
7114 * include/grub/i386/pc/memory.h: Likewise.
7115 * kern/dl.c: Likewise.
7116 * kern/i386/coreboot/init.c: Likewise.
7117 * loader/i386/bsd.c: Likewise.
7118 * loader/i386/linux.c: Likewise.
7119 * loader/multiboot_loader.c: Likewise.
7120 * term/i386/pc/serial.c: Likewise.
7121 * term/usb_keyboard.c: Likewise.
7123 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7124 `<grub/machine/machine.h>'
7125 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7126 * util/misc.c: Remove `<grub/machine/machine.h>' and
7127 `<grub/machine/time.h>'.
7129 * Makefile.in (enable_grub_emu): Remove variable.
7130 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7132 * conf/any-emu.rmk: New file.
7133 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7134 (grub_emu_init.c): Move from here ...
7135 * conf/any-emu.rmk: ... to here.
7137 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7138 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7139 * conf/any-emu.rmk: ... to here.
7141 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7143 * include/grub/parser.h (grub_parser_register): Document need
7144 of `name' parameter.
7145 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7146 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7149 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7151 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7153 * include/grub/i18n.h (N_): New macro.
7154 * util/mkisofs/mkisofs.h: Likewise.
7155 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7157 (usage): Use gettext() to translate help strings when printing them.
7159 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7161 Based on patch from Bean
7162 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7164 * video/efi_fb.c: New file.
7165 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7166 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7168 * conf/x86_64-efi.rmk: Likewise.
7170 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7172 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7173 * util/i386/pc/grub-setup.c: Likewise.
7175 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7177 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7179 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7180 file_get_storage_info to implement grub_guess_root_device.
7182 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7184 * Makefile.in (target): Use make's builtin $(shell) function
7185 instead of calling directly $(SHELL) to create the locale directories,
7186 inside the $(foreach) function.
7188 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7190 * util/grub-mkrescue.in: Print an error and usage if output option
7193 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7195 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7196 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7197 root and /boot are on different devices.
7199 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7201 Fix build for srcdir != objdir.
7203 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7204 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7206 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7207 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7208 reference for input.
7210 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7212 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7213 or hardlinking it). Remove -J option, Joliet is not compatible with
7214 multiple source directories.
7216 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7217 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7219 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7220 (process_input_dir): New function. Process an arbitrary input
7222 Misc adjustments to support both "override mode" and system-wide mode.
7224 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7226 * configure.ac (UNIFONT_BDF): Rename to ...
7227 (FONT_SOURCE): ... this. Update all users.
7229 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7231 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7232 to the list of unifont files to look for.
7234 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7236 Patch from Joe Auricchio <jauricchio@gmail.com>
7237 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7238 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7239 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7241 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7243 * Makefile.in (install-local): Add a missing backslash.
7245 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7247 * include/grub/x86_64/io.h: New file.
7249 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7251 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7252 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7253 Include `"progname.h"'.
7254 (main): Initialize gettext.
7255 * util/i386/pc/grub-setup.c: Gettexttize.
7256 * util/i386/pc/grub-mkimage.c: Likewise.
7258 * Makefile.in (po/*.po): Redefine as ...
7259 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7261 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7263 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7265 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7266 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7267 (program_name): Remove.
7268 (main): Initialize gettext support.
7269 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7270 Include `<libintl.h>'.
7273 * util/mkisofs/eltorito.c: Gettexttize.
7274 * util/mkisofs/joliet.c: Likewise.
7275 * util/mkisofs/mkisofs.c: Likewise.
7276 * util/mkisofs/multi.c: Likewise.
7277 * util/mkisofs/rock.c: Likewise.
7278 * util/mkisofs/tree.c: Likewise.
7279 * util/mkisofs/write.c: Likewise.
7281 * po/POTFILES: Update with new files.
7283 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7285 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7286 * util/mkisofs/iso9660.h: Likewise.
7287 * util/mkisofs/joliet.c: Likewise.
7288 * util/mkisofs/mkisofs.c: Likewise.
7289 * util/mkisofs/mkisofs.h: Likewise.
7290 * util/mkisofs/rock.c: Likewise.
7291 * util/mkisofs/tree.c: Likewise.
7292 * util/mkisofs/write.c: Likewise.
7294 * util/mkisofs/eltorito.c (rcsid): Remove.
7295 * util/mkisofs/hash.c: Likewise.
7296 * util/mkisofs/joliet.c: Likewise.
7297 * util/mkisofs/name.c: Likewise.
7298 * util/mkisofs/rock.c: Likewise.
7299 * util/mkisofs/tree.c: Likewise.
7300 * util/mkisofs/write.c: Likewise.
7302 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7304 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7305 instead of static allocation.
7306 * util/mkisofs/match.h: Likewise.
7308 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7310 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7311 and `util/grub.d/10_linux.in'.
7312 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7313 translatable Shell files.
7315 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7317 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7319 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7321 * INSTALL: Document Automake is needed for bootstrap.
7322 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7323 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7324 Add gettext initialization.
7325 (kfreebsd_entry): Make menuentry output translatable.
7327 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7329 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7330 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7331 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7332 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7333 (LINGUAS): Auto-generate using `po/LINGUAS'.
7334 * po/LINGUAS: New file.
7336 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7338 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7340 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7341 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7342 bindtextdomain() calls for gettext initialization.
7344 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7346 * gnulib/progname.c: New file (imported from Gnulib).
7347 * gnulib/progname.h: Likewise.
7348 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7349 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7350 (usage): Replace `progname' with `program_name'.
7351 (main): Use set_program_name() for program name initialization.
7353 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7355 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7357 * Makefile.in (CPPFLAGS): ... to here.
7359 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7361 * aclocal.m4: Move from here ...
7362 * acinclude.m4: ... to here.
7363 * autogen.sh: Add call to `aclocal'.
7364 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7366 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7368 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7369 (LINGUAS): New variable.
7370 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7371 (install-local): Install MO files.
7372 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7373 * include/grub/i18n.h: New file.
7374 * po/POTFILES: New file.
7375 * po/ca.po: New file.
7376 * util/grub.d/10_linux.in (bindir): New variable.
7377 Add gettext initialization.
7378 (linux_entry): Make menuentry output translatable.
7379 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7380 (usage): Make --help output translatable.
7381 (main): Initialize gettext.
7383 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7385 * import_gcry.py: New file (written by Vladimir with minor
7387 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7389 * INSTALL: Document that Python is required for bootstrap.
7391 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7393 Import ciphers from libgcrypt 1.4.4.
7395 * lib/libgcrypt/cipher/ChangeLog
7396 * lib/libgcrypt/cipher/ac.c
7397 * lib/libgcrypt/cipher/arcfour.c
7398 * lib/libgcrypt/cipher/bithelp.h
7399 * lib/libgcrypt/cipher/blowfish.c
7400 * lib/libgcrypt/cipher/camellia-glue.c
7401 * lib/libgcrypt/cipher/camellia.c
7402 * lib/libgcrypt/cipher/camellia.h
7403 * lib/libgcrypt/cipher/cast5.c
7404 * lib/libgcrypt/cipher/cipher.c
7405 * lib/libgcrypt/cipher/crc.c
7406 * lib/libgcrypt/cipher/des.c
7407 * lib/libgcrypt/cipher/dsa.c
7408 * lib/libgcrypt/cipher/ecc.c
7409 * lib/libgcrypt/cipher/elgamal.c
7410 * lib/libgcrypt/cipher/hash-common.c
7411 * lib/libgcrypt/cipher/hash-common.h
7412 * lib/libgcrypt/cipher/hmac-tests.c
7413 * lib/libgcrypt/cipher/md.c
7414 * lib/libgcrypt/cipher/md4.c
7415 * lib/libgcrypt/cipher/md5.c
7416 * lib/libgcrypt/cipher/primegen.c
7417 * lib/libgcrypt/cipher/pubkey.c
7418 * lib/libgcrypt/cipher/rfc2268.c
7419 * lib/libgcrypt/cipher/rijndael-tables.h
7420 * lib/libgcrypt/cipher/rijndael.c
7421 * lib/libgcrypt/cipher/rmd.h
7422 * lib/libgcrypt/cipher/rmd160.c
7423 * lib/libgcrypt/cipher/rsa.c
7424 * lib/libgcrypt/cipher/seed.c
7425 * lib/libgcrypt/cipher/serpent.c
7426 * lib/libgcrypt/cipher/sha1.c
7427 * lib/libgcrypt/cipher/sha256.c
7428 * lib/libgcrypt/cipher/sha512.c
7429 * lib/libgcrypt/cipher/tiger.c
7430 * lib/libgcrypt/cipher/twofish.c
7431 * lib/libgcrypt/cipher/whirlpool.c
7433 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7435 Fix build for systems without error().
7437 * gnulib/error.c: New file (imported from Gnulib).
7438 * gnulib/error.h: Likewise.
7439 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7440 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7441 (this variable is now used by error()).
7443 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7445 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7446 instead of relying that char is signed.
7448 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7450 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7451 blocksize different from specified.
7452 (grub_pxefs_read): Likewise.
7454 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7456 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7458 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7459 (grub_ata_readwrite): Likewise. Update 2 format strings.
7460 (grub_atapi_read): Likewise.
7462 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7463 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7464 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7465 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7466 (ata_mod_LDFLAGS): Move from here ...
7467 * conf/i386.rmk: ... to here ...
7468 * conf/x86_64-efi.rmk: ... and here.
7469 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7470 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7472 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7474 Relicense multiboot.h, with RMS' blessing.
7476 * include/multiboot.h: Change to X11 license.
7478 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7480 Support --version in grub-mkisofs.
7482 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7483 (OPTION_VERSION): New macro.
7484 (ld_options): Recognize --version.
7485 (usage): Move `program_name' from here ...
7486 (program_name): ... to here. Add `static' qualifier.
7487 (main): Recognize `OPTION_VERSION'.
7489 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7491 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7492 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7494 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7496 Fix help2man generation for mkisofs.
7498 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7499 (usage): Send output to stdout (rather than stderr).
7501 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7503 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7504 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7505 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7506 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7507 (bin_SCRIPTS): Add `grub-mkfloppy'.
7508 (grub_mkfloppy_SOURCES): New variable.
7510 * util/grub-mkrescue.in: New file.
7511 * util/i386/pc/grub-mkfloppy.in: New file.
7513 * util/i386/coreboot/grub-mkrescue.in: Remove.
7514 * util/i386/pc/grub-mkrescue.in: Remove.
7516 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7518 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7520 * include/multiboot.h (struct multiboot_header): ... to here. Update
7522 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7524 * include/multiboot.h (struct multiboot_info): ... to here. Update
7526 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7528 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7530 * include/grub/multiboot.h (struct grub_mod_list): Move
7532 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7535 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7537 * include/multiboot2.h (multiboot_word): Rename from this ...
7538 (multiboot2_word): ... to this. Update all users.
7539 (multiboot_header): Rename from this ...
7540 (multiboot2_header): ... to this. Update all users.
7541 (multiboot_tag_header): Rename from this ...
7542 (multiboot2_tag_header): ... to this. Update all users.
7543 (multiboot_tag_start): Rename from this ...
7544 (multiboot2_tag_start): ... to this. Update all users.
7545 (multiboot_tag_name): Rename from this ...
7546 (multiboot2_tag_name): ... to this. Update all users.
7547 (multiboot_tag_module): Rename from this ...
7548 (multiboot2_tag_module): ... to this. Update all users.
7549 (multiboot_tag_memory): Rename from this ...
7550 (multiboot2_tag_memory): ... to this. Update all users.
7551 (multiboot_tag_unused): Rename from this ...
7552 (multiboot2_tag_unused): ... to this. Update all users.
7553 (multiboot_tag_end): Rename from this ...
7554 (multiboot2_tag_end): ... to this. Update all users.
7556 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7558 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7559 this platform we should support Multiboot1 first.
7561 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7562 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7563 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7565 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7567 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7568 of write calls (converting them to fwrite() if they aren't already).
7569 (get_torito_desc): Likewise.
7570 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7572 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7574 * util/i386/pc/grub-install.in: Move from here ...
7575 * util/grub-install.in: ... to here. Update all users.
7577 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7579 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7581 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7583 Support for El Torito without floppy emulation.
7585 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7586 (init_boot_catalog): Improve error handling.
7587 (get_torito_desc): Don't use floppy emulation unless requested by
7588 user. Patch boot information table when requested via
7590 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7591 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7592 (use_boot_info_table): New variables.
7593 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7594 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7595 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7596 `--eltorito-emul-floppy'.
7597 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7598 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7599 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7600 (use_boot_info_table, get_731): New prototypes.
7601 * util/mkisofs/write.c (get_731): New function.
7603 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7605 Fix the generation of the man page.
7607 * util/pc/i386/grub-install.in: Source
7608 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7610 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7612 Large file support for grub-mkisofs.
7614 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7615 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7616 (session_start): Upgrade type to `uint64_t'. Update all users.
7617 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7618 (struct directory_entry): Upgrade type of `starting_block' and
7619 `size' to `uint64_t'. Update all users.
7620 (struct deferred): Remove unused structure.
7621 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7623 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7624 file is larger than `UINT32_MAX'.
7625 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7626 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7628 (struct deferred_write): Upgrade type of `extent' and `size' to
7629 `uint64_t'. Update all users.
7630 (last_extent_written): Upgrade type to `uint64_t'. Update all
7632 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7633 Update all users. Upgrade type of `remain' to `int64_t' and
7634 `use' to `size_t'. Use error() to handle fread() errors.
7635 (write_files): Rely on write_one_file() rather than calling
7638 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7640 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7642 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7644 * util/mkisofs/fnmatch.c: Remove.
7645 * util/mkisofs/getopt1.c: Likewise.
7646 * util/mkisofs/getopt.c: Likewise.
7647 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7648 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7649 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7650 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7651 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7653 * configure.ac: Detect `mingw32msvc' host_os.
7654 Check for lstat(), getuid() and getgid().
7656 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7657 instances of `u_char' with `uint8_t'.
7659 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7660 [!HAVE_GETUID] (getuid): New function (stub).
7661 [!HAVE_GETGID] (getgid): Likewise.
7662 [!HAVE_LSTAT] (lstat): Likewise.
7663 [!S_IROTH] (S_IROTH): New macro (dummy).
7664 [!S_IRGRP] (S_IRGRP): Likewise.
7666 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7668 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7669 conditional expression).
7671 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7675 * gnulib/fnmatch.c: New file.
7676 * gnulib/fnmatch.h: Likewise.
7677 * gnulib/fnmatch_loop.c: Likewise.
7678 * gnulib/getopt.c: Likewise.
7679 * gnulib/getopt.h: Likewise.
7680 * gnulib/getopt1.c: Likewise.
7681 * gnulib/getopt_int.h: Likewise.
7682 * gnulib/gettext.h: Likewise.
7684 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7686 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7687 * normal/handler.c (read_handler_list): Likewise.
7689 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7693 * kern/command.c (grub_register_command_prio): Use
7694 grub_zalloc() instead of explicitly zeroing data.
7695 * kern/list.c: Include `<grub/mm.h>'.
7696 (grub_named_list_find): Replace `0' with `NULL'.
7697 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7698 (fs_module_list): Change type to `grub_named_list_t'. Update all
7700 * normal/dyncmd.c (read_command_list): Add space between function
7701 call and parenthesis.
7702 * normal/handler.c (read_handler_list): Likewise.
7704 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7706 * normal/auth.c (punishment_delay): Moved from here ...
7707 (grub_auth_strcmp): ... to here (inside function).
7709 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7711 * include/grub/list.h (struct grub_named_list): Remove `const'
7712 qualifier from `name'.
7713 (struct grub_prio_list): Likewise.
7715 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7717 * normal/auth.c: Include `<grub/time.h>'.
7718 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7720 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7722 * normal/auth.c (punishment_delay): New variable.
7723 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7724 (grub_auth_check_authentication): Punish failed login attempts with
7725 an incremental (2^N) delay.
7727 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7729 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7730 path with $(srcdir).
7732 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7734 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7736 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7738 * util/i386/coreboot/grub-mkrescue.in: New file.
7739 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7742 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7743 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7744 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7746 * util/mkisofs/defaults.h: New file.
7747 * util/mkisofs/eltorito.c: Likewise.
7748 * util/mkisofs/exclude.h: Likewise.
7749 * util/mkisofs/fnmatch.c: Likewise.
7750 * util/mkisofs/getopt.c: Likewise.
7751 * util/mkisofs/getopt1.c: Likewise.
7752 * util/mkisofs/hash.c: Likewise.
7753 * util/mkisofs/include/fctldefs.h: Likewise.
7754 * util/mkisofs/include/mconfig.h: Likewise.
7755 * util/mkisofs/include/prototyp.h: Likewise.
7756 * util/mkisofs/include/statdefs.h: Likewise.
7757 * util/mkisofs/iso9660.h: Likewise.
7758 * util/mkisofs/joliet.c: Likewise.
7759 * util/mkisofs/match.c: Likewise.
7760 * util/mkisofs/match.h: Likewise.
7761 * util/mkisofs/mkisofs.c: Likewise.
7762 * util/mkisofs/mkisofs.h: Likewise.
7763 * util/mkisofs/multi.c: Likewise.
7764 * util/mkisofs/name.c: Likewise.
7765 * util/mkisofs/rock.c: Likewise.
7766 * util/mkisofs/tree.c: Likewise.
7767 * util/mkisofs/write.c: Likewise.
7769 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7771 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7774 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7776 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7777 `grub-mkimage' (and use $0 when possible).
7779 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7781 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7782 error message for excessively large memory map.
7784 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7786 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7789 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7791 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7792 message for coreboot users.
7794 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7796 Fix build with GNU gold.
7798 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7799 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7800 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7802 * aclocal.m4: Likewise.
7804 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7806 * configure.ac (AC_PREREQ): Bump to 2.59d.
7807 * INSTALL: Make it more clear when Autoconf and Ruby are
7808 needed and when to run `./autogen.sh'.
7810 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7812 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7815 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7817 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7819 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7821 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7822 giving it to GNU Mach.
7824 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7826 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7827 GNU partition number to get internal GRUB partition number.
7829 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7831 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7832 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7834 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7836 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7837 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7840 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7842 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7844 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7848 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7849 `-isystem=$(srcdir)/include'.
7851 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7853 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7854 checked (grub-install doesn't currently rely on it).
7856 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7860 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7861 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7862 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7863 * conf/i386-ieee1275.rmk: Likewise.
7864 * conf/i386-pc.rmk: Likewise.
7865 * conf/powerpc-ieee1275.rmk: Likewise.
7866 * conf/sparc64-ieee1275.rmk: Likewise.
7867 * conf/x86_64-efi.rmk: Likewise.
7869 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7871 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7873 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7875 * include/grub/misc.h: Stop checking for APPLE_CC.
7877 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7879 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7880 doesn't cause an infinite call loop.
7882 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7884 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7887 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7889 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7891 * Makefile.in: Likewise.
7893 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7895 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7897 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7899 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7901 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7903 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7905 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7907 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7909 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7911 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7913 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7914 in $(MAKEINFO) invocation. This makes it clear in output that
7915 errors are being ignored.
7917 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7919 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7921 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7922 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7923 * conf/i386-ieee1275.rmk: Likewise.
7924 * conf/i386-pc.rmk: Likewise.
7925 * conf/powerpc-ieee1275.rmk: Likewise.
7926 * conf/sparc64-ieee1275.rmk: Likewise.
7927 * conf/x86_64-efi.rmk: Likewise.
7929 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7931 * util/grub-editenv.c (main): If only a command is given, use
7932 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7933 (usage): FILENAME is now optional and has a default.
7935 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7937 Improve grub-mkconfig performance when there are several menu
7938 entries on a single filesystem.
7940 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7941 prepare_grub_to_access_device.
7942 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7943 * util/grub.d/30_os-prober.in: Likewise.
7945 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7947 * util/grub.d/10_freebsd.in: Remove.
7948 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7949 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7951 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7953 * docs/grub.cfg: Fix example usage of *BSD loaders.
7955 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7957 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7958 grub_util_error() call.
7960 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7962 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7963 `reserved_first_sector' member.
7964 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7965 `reserved_first_sector' to 1.
7966 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7967 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7968 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7969 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7970 filesystems which begin at first sector.
7971 (options): New option --skip-fs-probe.
7972 (main): Handle --skip-fs-probe and pass it to setup().
7974 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7976 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7977 (memset): Fix function prototype.
7979 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7980 2009-10-25 Vasily Averin <vvs@parallels.com>
7982 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7983 `dirent.direntlen == 0'.
7985 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7987 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7989 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7991 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7993 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7994 `__trampoline_setup' and `__ucmpdi2'.
7995 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7996 that libgcc provides.
7998 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8000 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8001 * include/grub/sparc64/libgcc.h (memset): Likewise.
8002 * include/grub/misc.h (memset, memcmp): New function prototypes.
8004 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8006 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8008 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8010 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8012 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8013 * docs/grub.cfg: Compensate for recent change in multiboot
8014 loader (since 2009-08-14 it won't pass filename to payload).
8015 * util/grub.d/10_hurd.in: Likewise.
8017 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
8019 * config.guess: Update to latest version from config git
8021 * config.sub: Likewise.
8023 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8025 Fix build on sparc64.
8027 * configure.ac: Perform checks for libgcc symbols before
8028 adding `-nostdlib' to LDFLAGS.
8030 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8032 Let user specify OpenBSD root device.
8034 * loader/i386/bsd.c (openbsd_root): New variable.
8035 (openbsd_opts): New option 'root'.
8036 (OPENBSD_ROOT_ARG): New macro.
8037 (grub_openbsd_boot): Use 'openbsd_root'.
8038 (grub_cmd_openbsd): Fill 'openbsd_root'.
8040 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8042 * NEWS: Misc adjustments.
8044 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8046 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8048 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8050 * configure.ac: Bump version to 1.97.
8052 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
8054 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8055 -mno-3dnow on x86 architectures. Some toolchains enable these
8056 features by default, but they rely on registers that aren't enabled
8057 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8059 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8061 Make entry text a bit more readable.
8063 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8065 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8067 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8069 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8071 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8074 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8076 * configure.ac: Add missing dollar.
8078 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8080 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8082 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8083 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8085 * include/grub/sparc64/libgcc.h: Likewise. Use
8086 preprocessor conditionals.
8088 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8090 * conf/common.rmk (grub-dumpbios): Remove rule.
8091 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8092 * util/grub-dumpbios.in: Remove file.
8094 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8096 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8097 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8099 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8100 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8103 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8104 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8105 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8106 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8109 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8111 * term/tparm.c: Switch to GPLv3.
8113 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8115 * include/grub/i386/cpuid.h: Add header protection.
8117 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8119 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8121 * include/grub/i386/cpuid.h: New file.
8122 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8123 (has_longmode): Rename to ...
8124 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8126 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8127 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8128 on a CPU that doesn't implement AMD64 instruction set.
8130 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8132 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8133 that version.texi is rebuilt on version number changes.
8135 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8137 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8140 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8142 * util/i386/pc/grub-install.in: Source
8143 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8144 that the --grub-probe option will work.
8145 * util/sparc64/ieee1275/grub-install.in: Likewise.
8147 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8149 * configure.ac: Bump version to 1.97~beta4.
8151 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8153 Resync grub-mkdevicemap in x86_64-efi.
8155 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8156 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8159 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8161 * util/grub-editenv.c (create_envblk_file): Write new block with a
8162 .new suffix and then rename it into place, to ensure atomic
8165 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8167 Do not automatically install headers.
8169 * Makefile.in (include_DATA): Remove. Update all users.
8171 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8173 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8174 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8176 * util/osdetect.lua: Remove.
8177 * script/lua/lauxlib.c: Likewise.
8178 * script/lua/ldebug.c: Likewise.
8179 * script/lua/grub_main.c: Likewise.
8180 * script/lua/lauxlib.h: Likewise.
8181 * script/lua/ldebug.h: Likewise.
8182 * script/lua/ltablib.c: Likewise.
8183 * script/lua/liolib.c: Likewise.
8184 * script/lua/lstrlib.c: Likewise.
8185 * script/lua/lualib.h: Likewise.
8186 * script/lua/ldo.c: Likewise.
8187 * script/lua/ldump.c: Likewise.
8188 * script/lua/ldo.h: Likewise.
8189 * script/lua/loslib.c: Likewise.
8190 * script/lua/lundump.c: Likewise.
8191 * script/lua/grub_lib.c: Likewise.
8192 * script/lua/ldblib.c: Likewise.
8193 * script/lua/lundump.h: Likewise.
8194 * script/lua/lmem.c: Likewise.
8195 * script/lua/grub_lib.h: Likewise.
8196 * script/lua/lmathlib.c: Likewise.
8197 * script/lua/lstate.c: Likewise.
8198 * script/lua/ltm.c: Likewise.
8199 * script/lua/lvm.c: Likewise.
8200 * script/lua/lmem.h: Likewise.
8201 * script/lua/lstate.h: Likewise.
8202 * script/lua/ltm.h: Likewise.
8203 * script/lua/ltable.c: Likewise.
8204 * script/lua/lvm.h: Likewise.
8205 * script/lua/llex.c: Likewise.
8206 * script/lua/lgc.c: Likewise.
8207 * script/lua/grub_lua.h: Likewise.
8208 * script/lua/loadlib.c: Likewise.
8209 * script/lua/lfunc.c: Likewise.
8210 * script/lua/lopcodes.c: Likewise.
8211 * script/lua/lparser.c: Likewise.
8212 * script/lua/ltable.h: Likewise.
8213 * script/lua/llex.h: Likewise.
8214 * script/lua/lgc.h: Likewise.
8215 * script/lua/lfunc.h: Likewise.
8216 * script/lua/lbaselib.c: Likewise.
8217 * script/lua/lopcodes.h: Likewise.
8218 * script/lua/lparser.h: Likewise.
8219 * script/lua/lzio.c: Likewise.
8220 * script/lua/linit.c: Likewise.
8221 * script/lua/lobject.c: Likewise.
8222 * script/lua/llimits.h: Likewise.
8223 * script/lua/lstring.c: Likewise.
8224 * script/lua/lzio.h: Likewise.
8225 * script/lua/lapi.c: Likewise.
8226 * script/lua/lcode.c: Likewise.
8227 * script/lua/lua.h: Likewise.
8228 * script/lua/lobject.h: Likewise.
8229 * script/lua/lstring.h: Likewise.
8230 * script/lua/lapi.h: Likewise.
8231 * script/lua/lcode.h: Likewise.
8232 * script/lua/luaconf.h: Likewise.
8234 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8236 * docs/grub.texi (Command-line and menu entry commands): Document
8237 date and echo commands.
8239 2009-09-24 Pavel Roskin <proski@gnu.org>
8241 * include/grub/kernel.h (struct grub_module_header): Remove
8242 `grub_module_header_types'. Make `type' unsigned. Make `size'
8243 32-bit on all platforms.
8244 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8245 8-bit field. Use grub_host_to_target32() for `size'.
8246 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8247 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8248 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8250 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8252 Fix "lost keypress" bug in at_keyboard.
8254 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8255 Checks for readyness of input buffer (without flushing it).
8256 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8257 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8259 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8261 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8262 size check within GRUB_MACHINE_PCBIOS section.
8264 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8266 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8268 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8269 KEYBOARD_ISREADY check.
8270 (grub_at_keyboard_checkkey): Rename to ...
8271 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8272 Remove gratuitous cast.
8274 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8276 * configure.ac: Call AC_PROG_MKDIR_P.
8277 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8278 version.texi in $(builddir) rather than $(srcdir).
8279 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8280 to makeinfo's @include search path.
8282 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8284 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8286 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8288 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8291 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8293 Build info documentation. Some code borrowed from Automake.
8295 * configure.ac: Check for makeinfo.
8296 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8297 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8299 (MOSTLYCLEANFILES): Add vti.tmp.
8300 (docs/version.texi, docs/stamp-vti): Update automatically.
8301 (docs/grub.info): Build info documentation. Use --force and ignore
8303 (all-local): Add $(INFOS).
8304 (install-local): Install info files.
8305 (uninstall): Uninstall info files.
8306 * docs/version.texi: Remove from revision control. This file is
8307 automatically generated on build now.
8308 * gendistlist.sh: Add `*.info'.
8310 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8312 * kern/term.c: Fix indentation.
8314 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8316 * util/hostdisk.c: Fix a comment.
8318 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8320 Fix regression introduced in r2539.
8322 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8325 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8327 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8328 os-prober. Under normal operation, it does not print anything to
8329 stderr; if it does, we need to debug it, and throwing away stderr
8330 makes that excessively difficult.
8332 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8334 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8336 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8338 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8339 AC_LANG_PROGRAM from autoconf.
8340 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8341 prototypes (fixes warning).
8343 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8344 `--disable-werror' was used.
8346 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8348 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8349 uninitialized `lastaddr'.
8351 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8353 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8355 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8357 * commands/test.c (get_fileinfo): Return immediately if
8358 grub_fs_probe fails.
8360 2009-09-14 José Martínez <xosemp@gmail.com>
8362 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8364 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8366 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8369 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8371 * configure.ac: Remove --enable-grub-pe2elf. Only build
8372 grub-pe2elf when needed by the build system itself.
8373 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8375 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8377 * configure.ac: Bump version to 1.97~beta3.
8378 * docs/version.texi: Likewise.
8380 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8382 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8383 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8385 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8386 (grub_linux_setup_video): ... to here (with some adjustments).
8388 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8390 Fix memory corruption issue (spotted by Colin Watson).
8392 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8393 causing returned size to be stored in an incorrect memory location.
8394 Fix use of uninitialized value when storing the returned size.
8396 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8398 Change clean rules to properly remove files
8400 * genmk.rb: add new clean rules
8401 * Makefile.in (clean): add the new targets
8402 (mostlyclean): likewise
8404 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8406 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8408 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8411 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8413 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8416 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8418 * util/grub-mkconfig.in: Make the created config mode 400 and
8419 print a warning if it fails.
8421 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8423 * util/grub.d/40_custom.in: Ask user to type custom entries below
8424 comment, rather than below 'exec tail' line.
8426 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8428 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8429 visible in grub.cfg.
8431 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8433 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8436 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8438 * docs/grub.cfg: Add an example menu entry for memtest86+.
8440 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8442 * config.guess: Update to latest version from config git.
8443 * config.sub: Likewise.
8445 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8447 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8448 unknown-command case. Fixes bug #27320.
8450 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8452 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8453 `help' if the command exists.
8455 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8457 * INSTALL: Require GCC 4.1.3 or later.
8459 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8461 * Makefile.in (RMKFILES): add i386-qemu.rmk
8462 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8463 $(srcdir)/stamp-h.in
8465 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8467 * util/grub-probe.c (probe): Comment out buggy codepath, which
8468 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8469 should be re-enabled after 1.97.
8471 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8473 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8476 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8478 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8479 unnecessary calls to grub_error.
8481 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8483 * NEWS: Mention `keystatus' and Unicode fonts.
8485 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8487 * configure.ac: Bump version to 1.97~beta2.
8488 * docs/version.texi: Likewise.
8490 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8492 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8493 containing unwind information in some cases where it previously did
8494 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8495 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8498 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8500 Embedding loadenv module into grub-emu
8502 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8504 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8505 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8506 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8507 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8508 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8509 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8511 2009-09-03 Magnus Granberg <zorry@ume.nu>
8513 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8514 include -fPIE in the default specs.
8515 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8518 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8520 * INSTALL: Note that GNU Bison 2.3 or later is required.
8522 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8524 * kern/i386/pc/startup.S: Fix typo.
8526 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8528 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8531 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8533 * docs/grub.texi (Naming convention): Describe one-based partition
8535 (Device syntax): Likewise.
8536 (File name syntax): Likewise.
8537 (Block list syntax): Likewise.
8538 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8540 (File name syntax): Likewise.
8541 (Command-line and menu entry commands): Document acpi, blocklist,
8542 crc, export, insmod, keystatus, ls, set, and unset commands.
8544 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8546 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8547 to avoid implying that only one of --shift, --ctrl, or --alt may be
8550 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8552 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8553 rather than comparing against S_IFREG, which will almost never work.
8555 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8557 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8558 (write_blocklists): Likewise.
8560 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8562 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8563 argument to grub_printf.
8565 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8567 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8570 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8572 * kern/file.c (grub_file_read): Spelling fix
8574 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8576 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8577 loading of headers in some cases.
8579 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8581 * configure.ac: Bump version to 1.97~beta1.
8582 * docs/version.texi: Likewise.
8584 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8586 * include/grub/i386/xnu.h: Add license header.
8587 include grub/err.h explicitly.
8589 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8591 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8592 to `ufs' in the vfs.root.mountfrom kernel parameter.
8594 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8596 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8598 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8599 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8601 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8604 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8606 * kern/file.c (grub_file_read): Check offset.
8607 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8608 * fs/jfs.c (grub_jfs_read_file): Likewise.
8609 * fs/ntfs.c (grub_ntfs_read): Likewise.
8610 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8611 * fs/minix.c (grub_minix_read_file): Correct offset check.
8612 * fs/ufs.c (grub_ufs_read_file): Likewise.
8614 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8616 * term/i386/pc/console.c (bios_data_area): Cast
8617 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8619 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8621 1-bit optimised blitters.
8623 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8625 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8626 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8627 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8628 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8629 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8630 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8631 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8633 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8634 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8635 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8636 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8637 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8638 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8639 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8641 * video/video.c (grub_video_get_blit_format): Return
8642 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8644 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8646 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8647 the first argument to grub_printf.
8649 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8650 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8652 Add `getkeystatus' terminal method. Add a new `keystatus' command
8655 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8656 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8657 modifier key bitmasks.
8658 (struct grub_term_input): Add `getkeystatus' member.
8659 (grub_getkeystatus): Add prototype.
8660 * kern/term.c (grub_getkeystatus): New function.
8662 * include/grub/i386/pc/memory.h
8663 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8664 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8666 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8667 (grub_console_term_input): Set `getkeystatus' member.
8668 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8670 (grub_usb_keyboard_getreport): Likewise.
8671 (grub_usb_keyboard_checkkey): Likewise.
8672 (grub_usb_keyboard_getkeystatus): New function.
8673 (grub_usb_keyboard_term): Set `getkeystatus' member.
8675 * commands/keystatus.c: New file.
8676 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8677 (keystatus_mod_SOURCES): New variable.
8678 (keystatus_mod_CFLAGS): Likewise.
8679 (keystatus_mod_LDFLAGS): Likewise.
8680 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8681 commands/keystatus.c.
8682 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8683 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8684 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8686 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8687 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8689 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8691 Split befs.mod and afs.mod into *_be.mod and *.mod
8693 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8694 (grub_fstest_SOURCES): Likewise.
8695 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8696 (afs_be_mod_SOURCES): New variable.
8697 (afs_be_mod_CFLAGS): Likewise.
8698 (afs_be_mod_LDFLAGS): Likewise.
8699 (befs_be_mod_SOURCES): Likewise.
8700 (befs_be_mod_CFLAGS): Likewise.
8701 (befs_be_mod_LDFLAGS): Likewise.
8702 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8703 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8704 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8705 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8706 (grub_emu_SOURCES): Likewise.
8707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8708 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8709 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8710 * fs/afs_be.c: New file.
8711 * fs/befs_be.c: New file.
8712 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8713 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8714 (U16): Replaced with ...
8715 (grub_afs_to_cpu16): ...this. All users updated.
8716 (U32): Replaced with ...
8717 (grub_afs_to_cpu32): ...this. All users updated.
8718 (U64): Replaced with ...
8719 (grub_afs_to_cpu64): ...this. All users updated.
8720 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8721 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8722 (grub_afs_validate_sblock): Check only one endianness.
8723 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8724 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8725 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8726 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8727 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8728 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8729 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8730 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8732 2009-08-26 Bean <bean123ch@gmail.com>
8734 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8736 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8737 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8738 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8740 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8742 NetBSD memory map support.
8744 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8745 (grub_netbsd_btinfo_mmap_header): New structure.
8746 (grub_netbsd_btinfo_mmap_entry): Likewise.
8747 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8749 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8751 Enable bsd.mod on coreboot.
8753 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8754 (bsd_mod_SOURCES): New variable.
8755 (bsd_mod_CFLAGS): Likewise.
8756 (bsd_mod_LDFLAGS): Likewise.
8757 (bsd_mod_ASFLAGS): Likewise.
8758 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8759 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8761 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8763 Cleanup NetBSD root support.
8765 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8766 grub_bsd_get_device.
8769 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8771 * util/grub.d/00_header.in: Move check for the video backend of
8772 gfxterm from here ...
8773 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8774 a suitable video backend.
8776 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8778 Fix breakage in grub-setup.
8780 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8781 "msdos_partition_map".
8783 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8785 Fix breakage in normal/auth.c.
8787 * normal/auth.c (grub_iswordseparator): New function.
8789 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8791 Authentication support.
8793 * commands/password.c: New file.
8794 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8795 (password_mod_SOURCES): New variable.
8796 (password_mod_CFLAGS): Likewise.
8797 (password_mod_LDFLAGS): Likewise.
8798 (normal_mod_SOURCES): Add normal/auth.c.
8799 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8801 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8802 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8803 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8805 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8806 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8807 * include/grub/auth.h: New file.
8808 * include/grub/err.h (grub_err_t): New enum value
8809 GRUB_ERR_ACCESS_DENIED.
8810 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8812 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8813 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8815 * normal/auth.c: New file.
8816 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8817 (grub_cmdline_run): Don't allow to go to command line without
8819 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8820 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8821 menuentry without superuser rights.
8822 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8823 user isn't a superuser.
8825 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8827 Save space by inlining misc.c functions.
8829 * kern/misc.c (grub_iswordseparator): Made static.
8830 * kern/misc.c (grub_strcat): Moved from here ...
8831 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8832 * kern/misc.c (grub_strncat): Moved from here ...
8833 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8834 * kern/misc.c (grub_strcasecmp): Moved from here ...
8835 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8836 * kern/misc.c (grub_strncasecmp): Moved from here ...
8837 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8838 * kern/misc.c (grub_isalpha): Moved from here ...
8839 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8840 * kern/misc.c (grub_isdigit): Moved from here ...
8841 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8842 * kern/misc.c (grub_isgraph): Moved from here ...
8843 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8844 * kern/misc.c (grub_tolower): Moved from here ...
8845 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8847 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8849 * script/sh/function.c (grub_script_function_find): Cut error message
8850 not to flood terminal.
8851 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8853 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8855 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8857 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8858 `report' grub_uint8_t *.
8859 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8860 Use a 50-millisecond timeout rather than just repeating
8861 grub_usb_keyboard_getreport 50 times.
8862 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8864 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8866 Rename *_partition_map to part_*
8868 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8869 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8870 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8871 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8873 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8875 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8876 * util/grub-probe.c (probe_partmap): Don't transform partition name
8879 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8881 Fix OpenBSD and NetBSD support.
8883 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8884 memory address conflict.
8885 (OPENBSD_MMAP_ACPI): New definition.
8886 (OPENBSD_MMAP_NVS): Likewise.
8887 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8888 and OPENBSD_MMAP_NVS.
8889 Add memory map terminator
8890 Explicit cast when calling grub_unix_real_boot.
8891 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8893 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8895 Let user specify NetBSD root device.
8897 * loader/i386/bsd.c (netbsd_root): New variable.
8898 (netbsd_opts): New option 'root'.
8899 (NETBSD_ROOT_ARG): New macro.
8900 (grub_netbsd_boot): Use 'netbsd_root'.
8901 (grub_bsd_unload): Free 'netbsd_root'.
8902 (grub_cmd_netbsd): Fill 'netbsd_root'.
8904 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8906 Support for 64-bit NetBSD.
8908 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8909 point when booting non-FreeBSD.
8911 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8913 Support --no-smp and --no-acpi for NetBSD.
8915 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8916 (NETBSD_AB_NOACPI): Likewise.
8917 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8918 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8920 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8922 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8924 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8925 errors. Call grub_error when needed.
8927 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8929 * commands/search.c (search_fs): Try searching without autoload first.
8930 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8931 filesystem module explicitly for faster booting.
8933 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8935 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8937 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8939 * util/grub.d/30_os-prober.in: Disable os-prober if
8940 `GRUB_DISABLE_OS_PROBER' was set to true.
8942 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8944 * partmap/pc.c: Rename to ...
8945 * partmap/msdos.c: ... this. Update all users.
8946 (grub_pc_partition_map): Rename to ...
8947 (grub_msdos_partition_map): ... this. Update all users.
8949 * parttool/pcpart.c: Rename to ...
8950 * parttool/msdospart.c: ... this. Update all users.
8952 * include/grub/pc_partition.h: Rename to ...
8953 * include/grub/msdos_partition.h: ... this. Update all users.
8954 (grub_pc_partition_bsd_entry): Rename to ...
8955 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8956 (grub_pc_partition_disk_label): Rename to ...
8957 (grub_msdos_partition_disk_label): ... this. Update all users.
8958 (grub_pc_partition_entry): Rename to ...
8959 (grub_msdos_partition_entry): ... this. Update all users.
8960 (grub_pc_partition_mbr): Rename to ...
8961 (grub_msdos_partition_mbr): ... this. Update all users.
8962 (grub_pc_partition): Rename to ...
8963 (grub_msdos_partition): ... this. Update all users.
8964 (grub_pc_partition_is_empty): Rename to ...
8965 (grub_msdos_partition_is_empty): ... this. Update all users.
8966 (grub_pc_partition_is_extended): Rename to ...
8967 (grub_msdos_partition_is_extended): ... this. Update all users.
8968 (grub_pc_partition_is_bsd): Rename to ...
8969 (grub_msdos_partition_is_bsd): ... this. Update all users.
8971 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8972 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8973 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8974 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8975 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8976 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8977 (gpt_mod_LDFLAGS): Rename to ...
8978 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8979 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8980 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8981 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8982 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8983 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8984 (part_gpt_mod_LDFLAGS): ... this.
8985 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8986 `pcpart.mod' to `msdospart.mod'.
8987 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8989 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8990 (msdospart_mod_LDFLAGS): ... this.
8992 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8994 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8995 (openbsd_opts): Likewise.
8996 (netbsd_opts): Likewise.
8997 (freebsd_flags): Added 0 terminator.
8998 (openbsd_flags): Likewise.
8999 (netbsd_flags): Likewise.
9000 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9001 (grub_cmd_freebsd): Transformed into extended command.
9002 (grub_cmd_openbsd): Likewise.
9003 (grub_cmd_netbsd): Likewise.
9004 (cmd_freebsd): Changed type to grub_extcmd_t.
9005 (cmd_openbsd): Likewise.
9006 (cmd_netbsd): Likewise.
9007 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9008 grub_cmd_openbsd as extended commands.
9009 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9010 cmd_netbsd and cmd_openbsd
9012 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9014 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9016 2009-08-21 Pavel Roskin <proski@gnu.org>
9018 * Makefile.in (install-local): When checking if a file is in the
9019 build directory, use "test -e" to detect symlinks.
9021 * Makefile.in (install-local): Remove all files in
9022 $(DESTDIR)$(pkglibdir) before installing new files there.
9024 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9026 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9029 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9031 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9032 explicitly specified by the user.
9034 2009-08-18 Pavel Roskin <proski@gnu.org>
9036 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9037 grub_uint8_t pointer for data.
9038 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9040 * video/fb/fbutil.c: Remove unnecessary casts.
9042 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9046 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9047 (grub_vbe_set_video_mode): Save active mode info
9048 only after setting the mode.
9049 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9052 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9054 Rename variables for clarity.
9056 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9057 (active_vbe_mode_info): ... this. All users updated.
9058 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9060 (initial_mode): Rename to ...
9061 (initial_vbe_mode): ... this. All users updated.
9062 (mode_in_use): Rename to ..
9063 (vbe_mode_in_use): ... this. All users updated.
9064 (mode_list): Rename to ..
9065 (vbe_mode_list): ... this. All users updated.
9066 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9067 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9068 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9069 'mode_list_size' to 'vbe_mode_list_size'.
9070 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9071 'best_mode_info' to 'best_vbe_mode_info' and
9072 'best_mode' to 'best_vbe_mode'
9074 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9076 Remove duplicate grub_video_fb_get_video_ptr.
9078 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9079 (grub_video_fb_get_video_ptr): ... this.
9080 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9081 * video/fb/fbutil.c: Add comment about addressing.
9082 (get_data_ptr): Rename to ...
9083 (grub_video_fb_get_video_ptr): ... this. All users updated.
9084 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9086 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9088 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9089 grub_dprintf() that was just added.
9091 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9093 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9094 (DEFAULT_VIDEO_MODE): Remove macros.
9095 (grub_linux_boot): Remove assumption that Linux has FB support,
9096 and use "text" as default video mode.
9098 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9100 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9102 * fs/fat.c (grub_fat_read_data): Likewise.
9104 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9106 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9108 (grub_module): Likewise.
9110 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9112 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9113 mbi->cmdline but free playground.
9115 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9117 Handle group offset on UFS1.
9119 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9120 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9122 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9124 Split ufs.mod into ufs1.mod and ufs2.mod.
9126 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9127 (grub_fstest_SOURCES): Likewise.
9128 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9129 (ufs_mod_SOURCES): Remove.
9130 (ufs_mod_CFLAGS): Likewise.
9131 (ufs_mod_LDFLAGS): Likewise.
9132 (ufs1_mod_SOURCES): New variable.
9133 (ufs1_mod_CFLAGS): Likewise.
9134 (ufs1_mod_LDFLAGS): Likewise.
9135 (ufs2_mod_SOURCES): New variable.
9136 (ufs2_mod_CFLAGS): Likewise.
9137 (ufs2_mod_LDFLAGS): Likewise.
9138 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9139 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9141 (grub_emu_SOURCES): Likewise.
9142 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9143 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9144 (grub_setup_SOURCES): Likewise.
9145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9146 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9147 (grub_setup_SOURCES): Likewise.
9148 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9150 * fs/ufs2.c: New file.
9151 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9153 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9157 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9158 subsystem at the end.
9159 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9160 (video_fb_mod_SOURCES): New variable.
9161 (video_fb_mod_CFLAGS): Likewise.
9162 (video_fb_mod_LDFLAGS): Likewise.
9163 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9164 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9165 * video/i386/pc/vbeblit.c: Moved from here ...
9166 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9167 * video/i386/pc/vbefill.c: Moved from here ...
9168 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9169 * video/i386/pc/vbeutil.c: Moved from here ...
9170 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9171 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9172 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9173 * include/grub/i386/pc/vbefill.h: Moved from here ...
9174 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9175 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9176 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9177 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9178 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9179 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9180 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9181 (grub_video_adapter): Added 'get_info_and_fini'.
9182 (grub_video_get_info_and_fini): New prototype.
9183 (grub_video_set_mode): make modestring const char *.
9184 * loader/i386/linux.c (grub_linux_setup_video): Use
9185 grub_video_get_info_and_fini.
9186 (grub_linux_boot): Move modesetting just before booting.
9187 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9188 grub_video_get_info_and_fini.
9189 * video/i386/pc/vbe.c: Moved framebuffer part ...
9190 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9191 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9192 grub_video_fbstd_colors and grub_video_fb_set_palette.
9193 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9195 (grub_video_vbe_fini): Use grub_video_fb_fini.
9196 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9197 render_target and use grub_video_fb_set_active_render_target and
9198 grub_video_fb_set_palette.
9199 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9200 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9201 (grub_video_vbe_adapter): Use framebuffer.
9202 * video/video.c (grub_video_get_info_and_fini): New function.
9203 (grub_video_set_mode): Make modestring const char *.
9204 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9205 values are already initialised.
9207 2009-08-14 Pavel Roskin <proski@gnu.org>
9209 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9211 * boot/i386/pc/diskboot.S: Likewise.
9212 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9213 sectors allow compilation on MacOSX.
9214 * conf/i386-pc.rmk: Enable unconditional compilation of
9217 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9219 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9220 * util/grub.d/00_header.in: Enter interruptible sleep if
9221 GRUB_HIDDEN_TIMEOUT is set.
9223 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9225 * include/grub/symbol.h: Add the LOCAL macro.
9226 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9229 2009-08-13 Pavel Roskin <proski@gnu.org>
9231 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9232 any modern compilers we support.
9234 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9235 Use local labels starting with "L_" so that Apple assembler
9236 knows they are local.
9238 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9240 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9241 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9242 (bsd_kernel_types): ... this enum.
9244 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9245 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9246 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9248 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9249 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9250 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9253 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9255 * util/grub-dumpdevtree: Moved from here ...
9256 * util/i386/efi/grub-dumpdevtree: ... to here.
9257 (hexify): New function. Converts a string to its hex version.
9258 Generate hex versions of "efi" and "device-properties" by calling
9259 hexify() on the ASCII strings rather than by hardcoding numbers.
9261 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9263 * fs/jfs.c: Update copyright year.
9265 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9267 * util/grub.d/00_header.in: Fix a comment.
9268 * util/grub.d/10_linux.in: Likewise.
9269 * util/grub.d/10_windows.in: Likewise.
9270 * util/grub.d/10_hurd.in: Likewise.
9272 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9274 * util/grub-mkconfig.in: Allow the user to specify the used font
9277 2009-08-08 Pavel Roskin <proski@gnu.org>
9279 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9280 available, xfs.mod needs it now.
9282 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9283 the "g" modifier in sed when the intention is to strip something
9284 once. This fixes comparison of kernels with multiple dashes.
9286 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9287 on it. Add missing space before closing bracket. Fix
9288 misleading formatting.
9290 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9292 * docs/grub.texi: Major overhaul. Remove all sections that are
9293 specific to GRUB Legacy, or mostly composed of Legacy-specific
9296 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9298 * docs/version.texi: New file. Provides version information for
9301 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9303 * docs/grub.texi: Update CVS information to SVN.
9304 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9306 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9308 * util/grub-mkconfig.in: Remove a wrong `fi'.
9310 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9312 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9313 (grub_jfs_uuid): New function.
9314 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9316 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9318 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9320 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9321 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9323 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9325 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9326 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9329 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9330 not just "vmlinu[zx]".
9332 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9335 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9336 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9339 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9341 * util/grub.d/10_freebsd.in: Use an absolute device path for
9342 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9344 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9346 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9347 handling of multiple abstraction modules.
9349 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9351 Fix a bug resulting in black screen when loading Linux using a
9354 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9357 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9358 (grub_vbe_bios_getset_dac_palette_width): New function.
9359 (grub_vbe_bios_get_dac_palette_width)
9360 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9361 grub_vbe_bios_getset_dac_palette_width()).
9363 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9364 check for return status.
9365 (grub_vbe_get_video_mode_info): When getting information for a packed
9366 mode (<= 8 bpp), obtain DAC palette width using
9367 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9368 {red,green,blue}_mark_size.
9370 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9372 * commands/search.c (options): Fix help output to match actual code.
9374 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9376 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9379 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9381 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9384 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9386 Support Apple partition map with sector size different from 512 bytes.
9388 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9389 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9390 and 'apart.partmap_size'.
9392 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9393 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9397 * commands/i386/cpuid.c (options): New variable.
9398 (grub_cmd_cpuid): Return real error.
9399 (GRUB_MOD_INIT(cpuid)): Declare options.
9401 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9403 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9406 2009-07-31 Bean <bean123ch@gmail.com>
9408 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9410 (grub_fshelp_node): Move inode field to the end.
9411 (grub_xfs_data): Remove inode field.
9412 (grub_xfs_inode_block): Calculate inode size using sblock.
9413 (grub_xfs_inode_offset): Likewise.
9414 (grub_xfs_read_inode): Calculate inode size using sblock.
9415 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9416 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9417 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9418 to match inode size.
9419 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9420 not accessible when data is null.
9421 (grub_xfs_open): Likewise.
9423 2009-07-31 Bean <bean123ch@gmail.com>
9425 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9426 Don't change pv->disk if it's already set.
9428 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9429 (grub_raid_register): ... here.
9430 (grub_raid_rescan): Removed.
9432 * include/grub/raid.h (grub_raid_rescan): Removed.
9434 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9435 (fstest): Replace grub_raid_rescan with module fini function followed
9438 * util/grub-probe.c: Add include file <grub/raid.h>.
9439 (probe_raid_level): New function.
9440 (probe): Detect abstraction by walking the disk device, support two
9441 level of abstraction (LVM on RAID) when detecting partition map.
9443 2009-07-31 Pavel Roskin <proski@gnu.org>
9445 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9446 to grub_zalloc(), it was erroneous.
9447 Reported by Bean <bean123ch@gmail.com>
9449 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9451 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9452 embedding zone, not only the first one.
9454 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9456 * term/gfxterm.c (clear_char): New function.
9457 (grub_virtual_screen_setup): Use clear_char.
9458 (scroll_up): Likewise.
9459 (grub_virtual_screen_cls): Likewise.
9461 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9463 * util/deviceiter.c (get_acceleraid_disk_name): New static
9465 (grub_util_iterate_devices): Handle Accelraid devices.
9466 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9468 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9470 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9471 separator for the suggested gfxpayload string (';' collides with the
9472 parser and needs escaping).
9474 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9476 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9477 Clear direction flag before jumping to OS.
9478 (grub_multiboot2_real_boot): Likewise.
9480 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9482 * util/i386/pc/grub-install: Fix parsing of --disk-module
9485 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9487 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9490 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9492 * util/grub-mkconfig.in (package_version): New variable.
9493 Use it do display the version.
9495 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9497 * kern/file.c (grub_file_open): Revert to previous check with
9500 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9502 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9503 from help line. It's out of sync with code.
9505 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9507 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9508 entries on failed boot.
9510 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9512 * kern/file.c (grub_file_open): Fix an error check.
9514 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9516 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9517 partition map couldn't be identified.
9519 2009-07-23 Pavel Roskin <proski@gnu.org>
9521 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9522 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9523 case of little endian words becomes just an optimization.
9524 Respect const modifier.
9525 (md5_final): Use code that doesn't depend on endianness.
9527 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9528 to avoid loss of upper bits if align is unsigned and shorter
9531 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9533 UUID support for UFS
9535 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9536 (grub_ufs_uuid): New function.
9537 (grub_ufs_fs): add .uuid
9539 2009-07-21 Pavel Roskin <proski@gnu.org>
9541 * kern/dl.c (grub_dl_check_header): Make static.
9543 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9545 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9546 add drivemap for Vista. It breaks Windows 7.
9548 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9550 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9553 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9557 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9558 (grub_fstest_SOURCES): Likewise.
9559 (pkglib_MODULES): Add befs.mod.
9560 (befs_mod_SOURCES): New variable.
9561 (befs_mod_CFLAGS): Likewise.
9562 (befs_mod_LDFLAGS): Likewise.
9563 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9564 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9565 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9566 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9567 (grub_setup_SOURCES): Likewise.
9568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9569 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9570 (grub_setup_SOURCES): Likewise.
9571 * fs/befs.c: New file.
9572 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9573 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9574 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9575 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9576 (B_KEY_INDEX_ALIGN): New declaration.
9577 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9578 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9579 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9580 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9581 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9582 (grub_afs_mount) [MODE_BFS]: Likewise.
9583 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9584 (grub_afs_fs): Use GRUB_AFS_FSNAME
9585 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9586 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9587 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9588 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9590 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9592 * util/getroot.c (find_root_device): Add support for MacOSX.
9593 * util/hostdisk.c: Likewise.
9595 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9597 * font/font.c (find_glyph): Check whether a font is present to avoid
9600 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9602 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9604 2009-07-20 Pavel Roskin <proski@gnu.org>
9606 * configure.ac: Trim excessively wordy excuses.
9608 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9610 Add symlink, mtime and label support to AtheFS.
9612 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9613 (grub_afs_iterate_dir): Handle symlinks.
9614 (grub_afs_open): Use grub_afs_read_symlink.
9615 (grub_afs_dir): Likewise.
9617 (grub_afs_label): New function.
9618 (grub_afs_fs): Add grub_afs_label.
9619 (grub_afs_read_symlink): New function.
9621 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9625 * fs/afs.c: Fix comments style.
9626 (grub_afs_blockrun): Declare as packed.
9627 (grub_afs_datastream): Likewise.
9628 (grub_afs_bnode): Likewise.
9629 (grub_afs_btree): Likewise.
9630 (grub_afs_sblock): Likewise.
9631 Declare `name' as char.
9632 (grub_afs_inode): Declare as packed.
9633 Change void *vnode to grub_uint32_t unused.
9634 (grub_afs_iterate_dir): Check that key_size is positive.
9635 (grub_afs_mount): Don't read superblock twice.
9636 (grub_afs_dir): Don't free node in case of error,
9637 grub_fshelp_find_file already handles this.
9638 (grub_afs_open): Likewise.
9640 2009-07-19 Pavel Roskin <proski@gnu.org>
9642 * Makefile.in: Remove LIBLZO and enable_lzo.
9643 * conf/i386-pc.rmk: Remove lzo support.
9644 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9645 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9647 * kern/i386/pc/lzo1x.S: Remove.
9648 * kern/i386/pc/startup.S: Remove lzo support.
9649 * util/i386/pc/grub-mkimage.c: Likewise.
9651 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9653 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9654 * fs/xfs.c (grub_xfs_dir): Likewise.
9655 * fs/afs.c (grub_afs_dir): Likewise.
9656 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9657 (grub_iso9660_open): Likewise.
9658 * fs/jfs.c (grub_jfs_open): Likewise.
9659 * fs/ext2.c (grub_ext2_dir): Likewise.
9660 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9661 * script/sh/lexer.c (grub_script_yylex): Likewise.
9663 2009-07-16 Pavel Roskin <proski@gnu.org>
9665 * configure.ac: Never add "-c" to CFLAGS.
9667 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9669 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9670 grub_cv_cc_efiemu should be used.
9672 * configure.ac: Typo fixes.
9674 * kern/mm.c (grub_zalloc): New function.
9675 (grub_debug_zalloc): Likewise.
9676 * include/grub/mm.h: Declare grub_zalloc() and
9677 grub_debug_zalloc().
9678 * util/misc.c (grub_zalloc): New function.
9679 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9680 instead of grub_malloc(), remove unneeded initializations.
9681 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9682 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9683 * commands/parttool.c (grub_cmd_parttool): Likewise.
9684 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9685 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9686 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9687 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9688 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9689 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9690 (grub_cmd_efiemu_pnvram): Likewise.
9691 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9692 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9693 (grub_iso9660_iterate_dir): Likewise.
9694 * fs/jfs.c (grub_jfs_opendir): Likewise.
9695 * fs/ntfs.c (list_file): Likewise.
9696 (grub_ntfs_mount): Likewise.
9697 * kern/disk.c (grub_disk_open): Likewise.
9698 * kern/dl.c (grub_dl_load_core): Likewise.
9699 * kern/elf.c (grub_elf_file): Likewise.
9700 * kern/env.c (grub_env_context_open): Likewise.
9701 (grub_env_set): Likewise.
9702 (grub_env_set_data_slot): Likewise.
9703 * kern/file.c (grub_file_open): Likewise.
9704 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9705 * loader/i386/multiboot.c (grub_module): Likewise.
9706 * loader/xnu.c (grub_xnu_create_key): Likewise.
9707 (grub_xnu_create_value): Likewise.
9708 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9709 (read_config_file): Likewise.
9710 * normal/menu_entry.c (make_screen): Likewise.
9711 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9712 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9713 * script/sh/script.c (grub_script_parse): Likewise.
9714 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9715 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9716 * video/readers/png.c (grub_png_output_byte): Likewise.
9717 (grub_video_reader_png): Likewise.
9719 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9721 Enable all targets that can be built by default
9723 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9724 grub-mkfont and grub-fstest if they can be built
9726 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9728 Fix hang and segmentation fault in grub-emu-usb
9730 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9731 * util/usb.c (grub_libusb_devices): likewise
9732 (grub_libusb_init): rename to ...
9733 (GRUB_MOD_INIT (libusb)):...this
9734 (grub_libusb_fini): rename to ..
9735 (GRUB_MOD_FINI (libusb)):...this
9736 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9737 * include/grub/disk.h (grub_raid_init): removed, it's useless
9738 (grub_raid_fini): likewise
9739 (grub_lvm_init): likewise
9740 (grub_lvm_fini): likewise
9741 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9744 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9748 * Makefile.in (LIBUSB): new macro
9749 * genmk.rb (Utility/print_tail): new method
9750 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9751 (top level): call util.print_tail at the end.
9753 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9755 Make FreeBSD accept zpool.cache
9757 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9758 type is /boot/zfs/zpool.cache
9760 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9764 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9765 correct wrong typedef
9766 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9768 2009-07-15 Pavel Roskin <proski@gnu.org>
9770 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9771 * kern/disk.c (struct grub_disk_cache): Likewise.
9773 * commands/probe.c (options): Typo fix.
9775 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9776 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9778 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9780 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9781 the end of "Error" to make the message more readable.
9783 * boot/i386/pc/boot.S (kernel_segment): Remove.
9784 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9787 * boot/i386/pc/boot.S (boot_version): Remove.
9788 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9791 * include/grub/i386/pc/boot.h: Sort all offsets.
9792 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9793 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9794 * boot/i386/pc/boot.S: Assert location of every offset listed in
9795 include/grub/i386/pc/boot.h.
9797 2009-07-13 Pavel Roskin <proski@gnu.org>
9799 * include/grub/i386/coreboot/machine.h: Rename
9800 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9801 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9802 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9804 * kern/dl.c: Force native word size to suppress warnings when
9807 * kern/device.c (grub_device_iterate): Change struct part_ent to
9808 hold the name, not a pointer to it. Use one grub_malloc() per
9809 partition, not two. Free partition_name if grub_malloc() fails.
9810 Set ents to NULL only before grub_partition_iterate() is called.
9812 2009-07-11 Bean <bean123ch@gmail.com>
9814 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9817 2009-07-10 Bean <bean123ch@gmail.com>
9818 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9820 * kern/ieee1275/openfw.c (grub_children_iterate)
9821 (grub_devalias_iterate): Fix size evaluation for property or path
9822 strings, which was broken since r2132.
9824 2009-07-07 Pavel Roskin <proski@gnu.org>
9826 * commands/search.c (search_file): Merge into ...
9827 (search_fs): ... this. Accept search type as argument.
9828 (grub_cmd_search): Pass search type to search_fs().
9830 * include/grub/util/console.h: New file.
9831 * util/console.c: Use it instead of grub/machine/console.h.
9832 * util/grub-emu.c: Likewise.
9834 * lib/arg.c (find_long_option): Remove.
9835 (find_long): Add `len' argument, make `s' const char *.
9836 (grub_arg_parse): Parse long options in place, not in a
9839 2009-07-06 Pavel Roskin <proski@gnu.org>
9841 * commands/search.c (search_fs): Fix potential NULL pointer
9844 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9847 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9849 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9852 2009-07-05 Pavel Roskin <proski@gnu.org>
9854 * include/grub/i386/linux.h (struct linux_kernel_params):
9855 Restore padding3, it's still needed.
9857 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9859 * util/osdetect.lua: Likewise.
9861 2009-07-05 Bean <bean123ch@gmail.com>
9863 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9865 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9866 (grub_lua_getenv): Likewise.
9867 (grub_lua_setenv): Likewise.
9868 (save_errno): New function.
9869 (push_result): Likewise.
9870 (grub_lua_enum_device): Likewise.
9871 (grub_lua_enum_file): Likewise.
9872 (grub_lua_file_open): Likewise.
9873 (grub_lua_file_close): Likewise.
9874 (grub_lua_file_seek): Likewise.
9875 (grub_lua_file_read): Likewise.
9876 (grub_lua_file_getline): Likewise.
9877 (grub_lua_file_getsize): Likewise.
9878 (grub_lua_file_getpos): Likewise.
9879 (grub_lua_file_eof): Likewise.
9880 (grub_lua_file_exist): Likewise.
9881 (grub_lua_add_menu): Likewise.
9883 * script/lua/grub_lua.h (isupper): New inline function.
9884 (islower): Likewise.
9885 (ispunct): Likewise.
9886 (isxdigit): Likewise.
9887 (strcspn): Change to normal function.
9888 (strpbkr): New function declaration.
9891 * script/lua/grub_main.c (scan_str): New function.
9892 (strcspn): Likewise.
9893 (strpbrk): Likewise.
9896 * script/lua/linit.c (lualibs): Enable the string library.
9898 * util/osdetect.lua: New file.
9900 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9902 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9903 `capabilities' member.
9905 2009-07-02 Pavel Roskin <proski@gnu.org>
9907 * genparttoollist.sh: Add missing newline at the end.
9909 2009-07-01 Pavel Roskin <proski@gnu.org>
9911 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9913 * util/hostdisk.c (open_device): Remove `const' from
9914 `sysctl_size', as sysctlbyname() can change it (in this case it
9915 doesn't actually happen).
9917 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9918 using signed long int constants.
9920 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9921 constant to avoid a warning on FreeBSD.
9923 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9926 * Makefile.in: Install include/grub/machine symlink.
9928 * Makefile.in: When installing symlinks, use "cp -fR", which
9929 works on FreeBSD and MacOSX.
9930 From Yves Blusseau <cl7m42e02@sneakemail.com>
9932 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9933 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9935 * util/misc.c: Move grub_reboot() and grub_halt() ...
9936 * util/grub-emu.c: ... here. Make main_env static.
9937 * include/grub/util/misc.h: Remove main_env.
9939 * kern/mm.c: Use correct format to print size_t.
9941 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9942 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9943 * kern/powerpc/dl.c: Likewise.
9944 * kern/sparc64/dl.c: Likewise.
9945 * kern/x86_64/dl.c: Likewise.
9947 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9949 Fix grub-emu build on sparc64-ieee1275.
9951 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9954 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9956 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9957 (grub_reboot, grub_halt): New functions.
9959 * util/i386/pc/misc.c: Delete. Update all users.
9960 * util/sparc64/ieee1275/misc.c: Likewise.
9961 * util/powerpc/ieee1275/misc.c: Likewise.
9963 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9965 * conf/i386.rmk (setjmp_mod_SOURCES)
9966 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9967 * conf/common.rmk (setjmp_mod_SOURCES)
9968 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9969 to use $(target_cpu).
9970 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9971 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9972 * conf/powerpc-ieee1275.rmk: Likewise.
9973 * conf/sparc64-ieee1275.rmk: Likewise.
9975 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9976 $(target_cpu) for kern/$(target_cpu)/dl.c.
9977 * conf/i386-efi.rmk: Likewise.
9978 * conf/i386-ieee1275.rmk: Likewise.
9979 * conf/x86_64-efi.rmk: Likewise.
9980 * conf/i386-coreboot.rmk: Likewise.
9981 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9982 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9983 kern/$(target_cpu)/cache.S.
9984 * conf/sparc64-ieee1275.rmk: Likewise.
9986 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9988 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9989 type to `grub_uint8_t', and adjust `padding9' accordingly.
9991 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9993 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9995 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9996 assembly in final jump, using register constraints.
9998 (grub_linux_boot): For text mode, initialize `have_vga' using
9999 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10001 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10002 right before the final jump.
10004 Set `video_mode' to 0x3.
10006 Document initialization of `video_page', `video_mode' and
10009 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10011 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10012 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
10013 and set GRUB_LINUX_FLAG_QUIET appropriately.
10015 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10017 Fix build on Debian / sparc.
10019 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10021 2009-06-28 Pavel Roskin <proski@gnu.org>
10023 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10026 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10028 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10030 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10033 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10037 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10038 file can't be opened. grub_file_open() is already supposed to set
10039 grub_errno / grub_errmsg appropriately.
10040 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10042 2009-06-27 Pavel Roskin <proski@gnu.org>
10043 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10045 * include/grub/dl.h: Include grub/elf.h.
10046 (struct grub_dl): Add symtab field.
10047 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10048 GRUB_MODULES_MACHINE_READONLY.
10049 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10050 of the header for read-only modules.
10051 (grub_dl_unload): Free mod->symtab for read-only modules.
10052 * kern/i386/dl.c: Use mod->symtab.
10053 * kern/powerpc/dl.c: Likewise.
10054 * kern/sparc64/dl.c: Likewise.
10055 * kern/x86_64/dl.c: Likewise.
10057 * conf/i386-qemu.rmk: New file.
10058 * kern/i386/qemu/startup.S: Likewise.
10059 * kern/i386/qemu/mmap.c: Likewise.
10060 * boot/i386/qemu/boot.S: Likewise.
10061 * include/grub/i386/qemu/time.h: Likewise.
10062 * include/grub/i386/qemu/serial.h: Likewise.
10063 * include/grub/i386/qemu/kernel.h: Likewise.
10064 * include/grub/i386/qemu/console.h: Likewise.
10065 * include/grub/i386/qemu/boot.h: Likewise.
10066 * include/grub/i386/qemu/init.h: Likewise.
10067 * include/grub/i386/qemu/machine.h: Likewise.
10068 * include/grub/i386/qemu/loader.h: Likewise.
10069 * include/grub/i386/qemu/memory.h: Likewise.
10071 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10072 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10073 [qemu] (pkglib_IMAGES): Add `boot.img'.
10074 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10075 [qemu] (boot_img_FORMAT): New variables.
10076 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10077 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10078 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10079 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10080 [qemu] (kernel_img_FORMAT): New variables.
10082 * configure.ac: Recognise `i386-qemu'.
10084 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10085 (for no compression).
10086 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10087 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10088 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10089 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10092 2009-06-27 Pavel Roskin <proski@gnu.org>
10094 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10096 * efiemu/prepare32.c: Likewise.
10097 * efiemu/prepare64.c: Likewise.
10099 2009-06-26 Pavel Roskin <proski@gnu.org>
10101 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10102 * include/grub/elf.h: Define symbols without "32" or "64" based
10103 on GRUB_TARGET_WORDSIZE.
10104 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10105 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10107 * efiemu/loadcore64.c: Likewise.
10108 * loader/i386/bsd32.c: Likewise.
10109 * loader/i386/bsd64.c: Likewise.
10110 * kern/dl.c: Remove own ELF definitions.
10111 * util/i386/efi/grub-mkimage.c: Likewise.
10113 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10115 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10116 segment 0x0 unconditionally, because the reference generated by
10117 GAS is an absolute address.
10119 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10121 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10122 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10124 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10126 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10127 indexes. Check for -f explicitly.
10128 (search_file): Improve error message.
10129 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10131 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10133 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10134 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10136 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10138 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10139 * conf/i386-ieee1275.rmk: Likewise.
10140 * conf/i386-coreboot.rmk: Likewise.
10142 * kern/i386/pc/startup.S (grub_stop): Remove function.
10143 * kern/i386/ieee1275/startup.S: Likewise.
10144 * kern/i386/coreboot/startup.S: Likewise.
10145 * kern/i386/misc.S (grub_stop): New function.
10147 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10149 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10150 * kern/i386/realmode.S (real_to_prot): ... to here.
10152 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10154 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10156 (kernel_elf_SOURCES): Rename to ...
10157 (kernel_img_SOURCES): ... this.
10158 (kernel_elf_HEADERS): Rename to ...
10159 (kernel_img_HEADERS): ... this. Update all users.
10160 (kernel_elf_ASFLAGS): Rename to ...
10161 (kernel_img_ASFLAGS): ... this.
10162 (kernel_elf_CFLAGS): Rename to ...
10163 (kernel_img_CFLAGS): ... this.
10164 (kernel_elf_LDFLAGS): Rename to ...
10165 (kernel_img_LDFLAGS): ... this.
10166 * conf/i386-coreboot.rmk: Likewise.
10167 * conf/powerpc-ieee1275.rmk: Likewise.
10169 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10172 2009-06-21 Pavel Roskin <proski@gnu.org>
10174 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10175 to match nested functions.
10176 * loader/sparc64/ieee1275/linux.c: Likewise.
10178 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10180 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10182 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10183 all i386 platforms.
10185 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10187 Fix asm file handling on ELF, and remove workarounds.
10189 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10190 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10191 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10192 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10194 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10196 Load BSD ELF modules
10198 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10199 and loader/i386/bsd64.c
10200 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10201 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10202 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10203 (grub_freebsd_load_elfmodule32): New declaration
10204 (grub_freebsd_load_elfmoduleobj64): Likewise
10205 (grub_freebsd_load_elf_meta32): Likewise
10206 (grub_freebsd_load_elf_meta64): Likewise
10207 (grub_freebsd_add_meta): Likewise
10208 (grub_freebsd_add_meta_module): Likewise
10209 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10210 (grub_freebsd_add_meta_module): Likewise and move module-specific
10211 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10212 (grub_cmd_freebsd): Add elf-kernel specific parts
10213 based on grub_freebsd_add_meta_module
10214 (grub_cmd_freebsd_module): Add type parsing moved from
10215 grub_freebsd_add_meta_module
10216 (grub_cmd_freebsd_module_elf): New function
10217 (cmd_freebsd_module_elf): New variable
10218 (GRUB_MOD_INIT): Register freebsd_module_elf
10219 * loader/i386/bsd32.c: New file
10220 * loader/i386/bsd64.c: Likewise
10221 * loader/i386/bsdXX.c: Likewise
10222 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10223 (grub_elf64_load): Likewise
10224 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10226 (grub_elf64_load_hook_t): Likewise
10228 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10230 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10232 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10233 don't write a menu entry for recovery mode.
10235 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10237 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10238 after it's no longer needed.
10240 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10242 * include/grub/i386/loader.h (grub_linux_prot_size)
10243 (grub_linux_tmp_addr, grub_linux_real_addr)
10244 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10245 GRUB_MACHINE_PCBIOS.
10246 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10247 common grub_util_info() call to ...
10248 (generate_image): ... here.
10249 Fix use of uninitialized memory, comparison of signed with
10250 unsigned integers and memory leak.
10251 Remove bogus module address message.
10253 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10255 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10257 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10259 2009-06-19 Pavel Roskin <proski@gnu.org>
10261 * configure.ac: Remove stray AC_MSG_CHECKING.
10263 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10265 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10267 2009-06-18 Pavel Roskin <proski@gnu.org>
10269 * conf/common.rmk: Add fs_file.mod.
10270 * disk/fs_file.c: New file.
10271 * include/grub/disk.h (enum grub_disk_dev_id): Add
10272 GRUB_DISK_DEVICE_FILE_ID.
10274 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10276 Fix build with Apple's toolchain. Part 2
10278 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10281 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10283 Fix build with Apple's toolchain. Part 1
10285 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10287 * configure.ac: remove a leftover AC_MSG_RESULT
10288 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10291 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10295 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10296 (decomp_block): initialize ch
10297 use grub_memcpy instead of memcpy
10299 2009-06-17 Pavel Roskin <proski@gnu.org>
10301 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10302 version, use declarations needed to use vga_text as the startup
10305 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10306 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10308 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10309 and grub_at_keyboard_fini(), it's done on module load and
10312 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10314 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10315 file can't be found.
10316 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10318 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10320 Fix newline handling
10322 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10323 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10324 (grub_script_yylex): don't segfault on unterminated script
10325 newline terminates command and variable
10327 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10329 avoid double grub_adjust_range call. Bug reported by David Simner
10331 * kern/disk.c (grub_disk_write): change to raw disk access before
10334 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10336 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10337 spaces, for the benefit of help2man.
10338 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10340 2009-06-16 Pavel Roskin <proski@gnu.org>
10342 * kern/i386/halt.c: Include grub/machine/init.h.
10343 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10345 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10347 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10348 drivemap menuentry.
10350 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10352 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10355 2009-06-16 Pavel Roskin <proski@gnu.org>
10357 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10358 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10359 save %dx, we only need %dl and we never change it.
10360 * boot/i386/pc/cdboot.S: Don't set the root drive.
10361 * boot/i386/pc/pxeboot.S: Likewise.
10362 * include/grub/i386/pc/boot.h: Remove
10363 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10364 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10365 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10366 * kern/i386/pc/init.c (make_install_device): Remove references
10367 to grub_root_drive.
10368 * kern/i386/pc/startup.S: Likewise.
10369 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10371 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10375 * commands/xnu_uuid.c: new file
10376 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10377 (xnu_uuid_mod_SOURCES): new variable
10378 (xnu_uuid_mod_CFLAGS): likewise
10379 (xnu_uuid_mod_LDFLAGS): likewise
10380 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10381 * conf/i386-ieee1275.rmk: likewise
10382 * conf/i386-pc.rmk: likewise
10383 * conf/powerpc-ieee1275.rmk: likewise
10384 * conf/sparc64-ieee1275.rmk: likewise
10385 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10387 2009-06-16 Pavel Roskin <proski@gnu.org>
10389 * configure.ac: Avoid '==' in test command, it's not portable.
10391 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10395 * commands/probe.c: new file
10396 * conf/common.rmk (pkglib_MODULES): add probe.mod
10397 (probe_mod_SOURCES): new variable
10398 (probe_mod_CFLAGS): likewise
10399 (probe_mod_LDFLAGS): likewise
10400 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10401 * conf/i386-ieee1275.rmk: likewise
10402 * conf/i386-pc.rmk: likewise
10403 * conf/powerpc-ieee1275.rmk: likewise
10404 * conf/sparc64-ieee1275.rmk: likewise
10406 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10408 Fix handling of string like \"hello\" and "a
10411 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10412 (grub_script_yylex): fix parsing of quoting, escaping and newline
10414 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10416 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10419 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10421 * util/grub-mkconfig.in: Fix parsing of --output option.
10423 2009-06-12 Pavel Roskin <proski@gnu.org>
10425 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10426 genmk.rb don't need to be generated or installed.
10428 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10430 * commands/i386/pc/drivemap_int13h.S: add more comments
10432 2009-06-11 Pavel Roskin <proski@gnu.org>
10434 * Makefile.in (uninstall): Uninstall manuals.
10436 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10437 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10438 and update-grub_lib in two places.
10439 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10441 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10442 a compiler warning.
10444 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10445 `entry_lo' to fix variable shadowing.
10447 2009-06-11 Christian Franke <franke@computer.org>
10449 * kern/misc.c (__enable_execute_stack): Add missing return type
10450 to prevent gcc warning.
10452 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10454 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10456 2009-06-11 Pavel Roskin <proski@gnu.org>
10458 * Makefile.in: Don't rely on any scripts being executable.
10459 Always use $(SHELL) to run shell scripts.
10461 * configure.ac: Always define ___main if using -nostdlib. This
10462 fixes tests on Cygwin.
10464 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10468 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10469 is in bytes and not in blocks
10471 2009-06-11 Pavel Roskin <proski@gnu.org>
10473 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10476 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10478 * util/grub.d/30_os-prober.in: Fix a comment. Source
10479 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10480 to set the root device. Place drivemap command in the generated
10483 2009-06-11 Pavel Roskin <proski@gnu.org>
10485 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10486 have long been resolved.
10488 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10490 * util/grub.d/10_linux.in: Capitalise "Linux".
10492 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10494 2009-06-11 Pavel Roskin <proski@gnu.org>
10496 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10497 fix a gcc warning and ensure that the function won't ever exit.
10499 * kern/i386/ieee1275/init.c: Add missing prototype for
10500 grub_stop_floppy().
10502 * loader/ieee1275/multiboot2.c [__i386__]: Include
10503 grub/cpu/multiboot.h.
10505 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10506 casts to short - they are not portable and cause warnings. Fix
10507 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10509 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10513 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10515 (grub_get_root_biosnumber_saved): new variable
10516 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10517 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10518 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10519 %dx after the call if necessary
10520 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10521 (boot_mod_SOURCES): remove
10522 (boot_mod_CFLAGS): remove
10523 (boot_mod_LDFLAGS): remove
10524 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10525 (boot_mod_SOURCES): new variable
10526 (boot_mod_CFLAGS): likewise
10527 (boot_mod_LDFLAGS): likewise
10528 * conf/i386-efi.rmk: likewise
10529 * conf/i386-ieee1275.rmk: likewise
10530 * conf/i386-pc.rmk: likewise
10531 * conf/powerpc-ieee1275.rmk: likewise
10532 * conf/sparc64-ieee1275.rmk: likewise
10533 * conf/x86_64-efi.rmk: likewise
10534 * include/grub/i386/pc/biosnum.h: new file
10535 * lib/i386/pc/biosnum.c: likewise
10536 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10537 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10538 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10540 2009-06-10 Pavel Roskin <proski@gnu.org>
10542 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10543 Use separate variables. Read only the file size at the end, but
10544 not the checksum that we don't use.
10546 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10547 Adjust all callers.
10549 * kern/ieee1275/openfw.c: Remove libc includes.
10550 * kern/ieee1275/cmain.c: Likewise.
10551 * include/grub/ieee1275/ieee1275.h: Likewise.
10553 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10556 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10558 * Makefile.in: Remove all trailing whitespace.
10559 * conf/i386-pc.rmk: Likewise.
10560 * conf/powerpc-ieee1275.rmk: Likewise.
10561 * conf/sparc64-ieee1275.rmk: Likewise.
10562 * docs/grub.texi: Likewise.
10563 * docs/texinfo.tex: Likewise.
10564 * disk/fs_uuid.c: Likewise.
10565 * disk/lvm.c: Likewise.
10566 * disk/scsi.c: Likewise.
10567 * disk/ata.c: Likewise.
10568 * disk/ieee1275/ofdisk.c: Likewise.
10569 * disk/i386/pc/biosdisk.c: Likewise.
10570 * disk/host.c: Likewise.
10571 * disk/raid.c: Likewise.
10572 * disk/efi/efidisk.c: Likewise.
10573 * disk/usbms.c: Likewise.
10574 * disk/memdisk.c: Likewise.
10575 * disk/loopback.c: Likewise.
10576 * kern/powerpc/dl.c: Likewise.
10577 * kern/device.c: Likewise.
10578 * kern/dl.c: Likewise.
10579 * kern/sparc64/dl.c: Likewise.
10580 * kern/ieee1275/ieee1275.c: Likewise.
10581 * kern/term.c: Likewise.
10582 * kern/fs.c: Likewise.
10583 * kern/i386/dl.c: Likewise.
10584 * kern/i386/pc/startup.S: Likewise.
10585 * kern/i386/pc/init.c: Likewise.
10586 * kern/i386/pc/mmap.c: Likewise.
10587 * kern/i386/pc/lzo1x.S: Likewise.
10588 * kern/i386/ieee1275/init.c: Likewise.
10589 * kern/i386/realmode.S: Likewise.
10590 * kern/i386/tsc.c: Likewise.
10591 * kern/partition.c: Likewise.
10592 * kern/corecmd.c: Likewise.
10593 * kern/file.c: Likewise.
10594 * kern/efi/efi.c: Likewise.
10595 * kern/efi/init.c: Likewise.
10596 * kern/efi/mm.c: Likewise.
10597 * kern/main.c: Likewise.
10598 * kern/err.c: Likewise.
10599 * kern/env.c: Likewise.
10600 * kern/disk.c: Likewise.
10601 * kern/generic/millisleep.c: Likewise.
10602 * kern/generic/rtc_get_time_ms.c: Likewise.
10603 * kern/misc.c: Likewise.
10604 * kern/parser.c: Likewise.
10605 * genmk.rb: Likewise.
10606 * configure.ac: Likewise.
10607 * boot/i386/pc/diskboot.S: Likewise.
10608 * boot/i386/pc/pxeboot.S: Likewise.
10609 * boot/i386/pc/boot.S: Likewise.
10610 * boot/i386/pc/lnxboot.S: Likewise.
10611 * boot/i386/pc/cdboot.S: Likewise.
10612 * parttool/pcpart.c: Likewise.
10613 * video/readers/tga.c: Likewise.
10614 * video/video.c: Likewise.
10615 * video/bitmap.c: Likewise.
10616 * lib/envblk.c: Likewise.
10617 * lib/i386/setjmp.S: Likewise.
10618 * fs/xfs.c: Likewise.
10619 * fs/afs.c: Likewise.
10620 * fs/fat.c: Likewise.
10621 * fs/ntfs.c: Likewise.
10622 * fs/udf.c: Likewise.
10623 * fs/affs.c: Likewise.
10624 * fs/iso9660.c: Likewise.
10625 * fs/hfs.c: Likewise.
10626 * fs/fshelp.c: Likewise.
10627 * fs/ext2.c: Likewise.
10628 * fs/jfs.c: Likewise.
10629 * fs/reiserfs.c: Likewise.
10630 * fs/hfsplus.c: Likewise.
10631 * fs/minix.c: Likewise.
10632 * fs/cpio.c: Likewise.
10633 * fs/sfs.c: Likewise.
10634 * fs/ufs.c: Likewise.
10635 * efiemu/prepare.c: Likewise.
10636 * efiemu/loadcore_common.c: Likewise.
10637 * efiemu/runtime/efiemu.sh: Likewise.
10638 * efiemu/runtime/efiemu.S: Likewise.
10639 * efiemu/runtime/efiemu.c: Likewise.
10640 * efiemu/pnvram.c: Likewise.
10641 * efiemu/main.c: Likewise.
10642 * efiemu/i386/pc/cfgtables.c: Likewise.
10643 * efiemu/i386/loadcore64.c: Likewise.
10644 * efiemu/i386/loadcore32.c: Likewise.
10645 * efiemu/loadcore.c: Likewise.
10646 * efiemu/symbols.c: Likewise.
10647 * efiemu/mm.c: Likewise.
10648 * include/grub/autoefi.h: Likewise.
10649 * include/grub/datetime.h: Likewise.
10650 * include/grub/term.h: Likewise.
10651 * include/grub/hfs.h: Likewise.
10652 * include/grub/lvm.h: Likewise.
10653 * include/grub/i386/tsc.h: Likewise.
10654 * include/grub/i386/linux.h: Likewise.
10655 * include/grub/i386/xnu.h: Likewise.
10656 * include/grub/i386/efiemu.h: Likewise.
10657 * include/grub/i386/pc/biosdisk.h: Likewise.
10658 * include/grub/i386/pc/memory.h: Likewise.
10659 * include/grub/i386/pc/vbe.h: Likewise.
10660 * include/grub/parttool.h: Likewise.
10661 * include/grub/video.h: Likewise.
10662 * include/grub/memory.h: Likewise.
10663 * include/grub/fs.h: Likewise.
10664 * include/grub/partition.h: Likewise.
10665 * include/grub/xnu.h: Likewise.
10666 * include/grub/efi/api.h: Likewise.
10667 * include/grub/efi/pe32.h: Likewise.
10668 * include/grub/efi/memory.h: Likewise.
10669 * include/grub/multiboot.h: Likewise.
10670 * include/grub/usbdesc.h: Likewise.
10671 * include/grub/multiboot2.h: Likewise.
10672 * include/grub/acpi.h: Likewise.
10673 * include/grub/efiemu/efiemu.h: Likewise.
10674 * include/grub/disk.h: Likewise.
10675 * include/grub/ieee1275/ieee1275.h: Likewise.
10676 * include/grub/net.h: Likewise.
10677 * include/grub/machoload.h: Likewise.
10678 * include/grub/macho.h: Likewise.
10679 * include/multiboot.h: Likewise.
10680 * genmoddep.awk: Likewise.
10681 * normal/main.c: Likewise.
10682 * normal/menu_entry.c: Likewise.
10683 * normal/menu_viewer.c: Likewise.
10684 * normal/completion.c: Likewise.
10685 * normal/cmdline.c: Likewise.
10686 * normal/misc.c: Likewise.
10687 * normal/datetime.c: Likewise.
10688 * bus/usb/usbtrans.c: Likewise.
10689 * bus/usb/ohci.c: Likewise.
10690 * bus/usb/uhci.c: Likewise.
10691 * bus/usb/usb.c: Likewise.
10692 * mmap/efi/mmap.c: Likewise.
10693 * mmap/i386/pc/mmap_helper.S: Likewise.
10694 * mmap/i386/pc/mmap.c: Likewise.
10695 * mmap/i386/mmap.c: Likewise.
10696 * mmap/i386/uppermem.c: Likewise.
10697 * mmap/mmap.c: Likewise.
10698 * commands/acpi.c: Likewise.
10699 * commands/echo.c: Likewise.
10700 * commands/blocklist.c: Likewise.
10701 * commands/loadenv.c: Likewise.
10702 * commands/usbtest.c: Likewise.
10703 * commands/boot.c: Likewise.
10704 * commands/parttool.c: Likewise.
10705 * commands/search.c: Likewise.
10706 * commands/cat.c: Likewise.
10707 * commands/i386/pc/play.c: Likewise.
10708 * commands/i386/pc/drivemap.c: Likewise.
10709 * commands/i386/pc/vbeinfo.c: Likewise.
10710 * commands/i386/pc/acpi.c: Likewise.
10711 * commands/i386/pc/vbetest.c: Likewise.
10712 * commands/ls.c: Likewise.
10713 * commands/cmp.c: Likewise.
10714 * commands/test.c: Likewise.
10715 * commands/efi/acpi.c: Likewise.
10716 * commands/gptsync.c: Likewise.
10717 * commands/help.c: Likewise.
10718 * partmap/amiga.c: Likewise.
10719 * partmap/apple.c: Likewise.
10720 * partmap/acorn.c: Likewise.
10721 * partmap/pc.c: Likewise.
10722 * partmap/sun.c: Likewise.
10723 * partmap/gpt.c: Likewise.
10724 * script/sh/lexer.c: Likewise.
10725 * script/sh/function.c: Likewise.
10726 * font/font.c: Likewise.
10727 * font/font_cmd.c: Likewise.
10728 * loader/powerpc/ieee1275/linux.c: Likewise.
10729 * loader/efi/chainloader.c: Likewise.
10730 * loader/multiboot_loader.c: Likewise.
10731 * loader/macho.c: Likewise.
10732 * loader/i386/multiboot.c: Likewise.
10733 * loader/i386/linux.c: Likewise.
10734 * loader/i386/pc/linux.c: Likewise.
10735 * loader/i386/pc/multiboot2.c: Likewise.
10736 * loader/i386/pc/chainloader.c: Likewise.
10737 * loader/i386/pc/xnu.c: Likewise.
10738 * loader/i386/bsd_trampoline.S: Likewise.
10739 * loader/i386/efi/linux.c: Likewise.
10740 * loader/i386/multiboot_elfxx.c: Likewise.
10741 * loader/i386/bsd_helper.S: Likewise.
10742 * loader/i386/bsd.c: Likewise.
10743 * loader/i386/linux_trampoline.S: Likewise.
10744 * loader/i386/xnu_helper.S: Likewise.
10745 * loader/i386/xnu.c: Likewise.
10746 * loader/i386/bsd_pagetable.c: Likewise.
10747 * loader/i386/multiboot_helper.S: Likewise.
10748 * loader/xnu.c: Likewise.
10749 * loader/xnu_resume.c: Likewise.
10750 * io/gzio.c: Likewise.
10751 * term/efi/console.c: Likewise.
10752 * term/terminfo.c: Likewise.
10753 * term/ieee1275/ofconsole.c: Likewise.
10754 * term/i386/pc/serial.c: Likewise.
10755 * term/i386/pc/vesafb.c: Likewise.
10756 * term/i386/pc/vga.c: Likewise.
10757 * term/usb_keyboard.c: Likewise.
10758 * term/gfxterm.c: Likewise.
10759 * aclocal.m4: Likewise.
10760 * util/lvm.c: Likewise.
10761 * util/grub.d/30_os-prober.in: Likewise.
10762 * util/grub.d/10_hurd.in: Likewise.
10763 * util/console.c: Likewise.
10764 * util/grub-macho2img.c: Likewise.
10765 * util/grub-probe.c: Likewise.
10766 * util/hostfs.c: Likewise.
10767 * util/i386/pc/grub-mkimage.c: Likewise.
10768 * util/i386/pc/grub-setup.c: Likewise.
10769 * util/i386/efi/grub-mkimage.c: Likewise.
10770 * util/grub-mkconfig.in: Likewise.
10771 * util/raid.c: Likewise.
10772 * util/resolve.c: Likewise.
10773 * util/grub-mkdevicemap.c: Likewise.
10774 * util/grub-emu.c: Likewise.
10775 * util/getroot.c: Likewise.
10776 * util/hostdisk.c: Likewise.
10777 * util/usb.c: Likewise.
10778 * util/grub-editenv.c: Likewise.
10779 * util/misc.c: Likewise.
10781 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10783 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10784 `genparttoollist.sh'.
10785 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10786 Add `*.sh' to the list find searches for and change `mdate.sh'
10789 2009-06-10 Pavel Roskin <proski@gnu.org>
10791 * include/grub/multiboot2.h: Provide compatibility defines for
10793 * include/multiboot2.h: Include stdint.h only if needed, using
10795 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10797 * loader/ieee1275/multiboot2.c: Likewise.
10798 * loader/multiboot2.c: Likewise.
10799 * loader/multiboot_loader.c: Likewise.
10801 * configure.ac: Use -nostdlib when probing for the target. It
10802 should not be required to have libc for the target.
10804 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10805 they fail without libc headers for the target.
10806 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10808 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10809 preprocessor conditionals.
10811 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10812 build system doesn't need to be aware of the tar.c internals.
10814 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10816 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10818 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10820 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10821 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10823 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10825 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10826 aren't available if ata.mod gets used.
10828 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10830 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10831 initialising controller.
10832 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10834 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10836 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10837 to choose between ata and biosdisk module on i386-pc.
10839 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10841 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10842 Subclass and Programming Interface fields in terms of the 3 byte
10843 Class Code register.
10844 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10846 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10847 interface is OHCI. Add grub_dprintf for symmetry with
10849 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10850 interface is UHCI. Add interf variable for programming
10851 interface. Print interface with class/subclass.
10853 * bus/usb/ohci.c: Set interf with correct field.
10855 * bus/usb/uhci.c: Remove unneeded doubled lines.
10856 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10857 Remove whitespace inside comment.
10859 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10861 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10862 as fallback an equivalent option without depth.
10864 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10866 Not fail if unable to retrieve C/H/S on LBA disks
10868 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10869 if unable to retrieve C/H/S on LBA disks
10871 2009-06-08 Pavel Roskin <proski@gnu.org>
10873 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10876 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10878 * Makefile.in (uninstall): Remove all $lib_DATA files.
10880 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10882 Bugfix: install on partitionless device
10884 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10887 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10889 * Makefile.in (uninstall): Remove all $include_DATA files.
10891 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10893 * commands/true.c: New file. Implement the true and false commands.
10894 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10895 (true_mod_SOURCES): New variable.
10896 (true_mod_CFLAGS): Likewise.
10897 (true_mod_LDFLAGS): Likewise.
10899 2009-06-05 Colin D Bennett <colin@gibibit.com>
10901 Optimized font character lookup using binary search instead of linear
10902 search. Fonts now are required to have the character index ordered by
10905 * font/font.c (load_font_index): Verify that fonts have ordered
10907 (find_glyph): Use binary search instead of linear search to find a
10908 character in a font.
10910 2009-06-05 Michael Scherer <misc@mandriva.org>
10912 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10913 uses case sensitive btree.
10914 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10915 only for case insensitive filesystems.
10917 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10919 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10920 * conf/common.rmk (search_mod_CFLAGS): likewise
10922 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10924 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10925 compensate a compiler bug
10927 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10929 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10932 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10934 Definitions for creating asm symbols with Apple's CC
10936 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10937 [APPLE_CC] (VARIABLE): likewise
10939 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10941 Disable lnxboot.img when compiled
10944 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10945 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10946 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10947 [! APPLE_CC] (CODE_LENG): skip
10948 [! APPLE_CC] (setup_sects): likewise
10949 [! APPLE_CC]: skip filling
10951 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10953 Address in trampolines based on 32-bit registers when compiled
10956 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10958 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10960 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10962 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10964 * kern/misc.c [APPLE_CC] (memcpy): new function
10965 [APPLE_CC] (memmove): likewise
10966 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10967 (memcpy): define alias conditionally on !APPLE_CC
10970 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10971 APPLE_CC are defined
10972 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10973 (grub_assert_fail): make prototype conditional
10975 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10977 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10979 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10981 (CLEANFILES): add grub-macho2img
10982 (grub_macho2img_SOURCES): new variable
10983 * kern/i386/pc/startup.S (bss_start): new variable
10984 (bss_end): likewise
10985 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10986 * util/grub-macho2img.c: new file
10988 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10990 Use objconv when compiling with Apple's CC
10992 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10993 (efiemu64.o): likewise
10994 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10995 when compiling with Apple's CC
10996 (efiemu64_s.o): likewise
10997 * configure.ac: check for objconv when compiling with Apple's CC
10998 * genmk.rb: use objconv for modules when compiled with Apple's CC
11000 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11002 Define segment as well as section when compiling with
11005 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11006 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11007 (efiemu_convert_pointer): likewise
11008 (efiemu_set_virtual_address_map): likewise
11009 (efiemu_convert_pointer): likewise
11010 (efiemu_getcrc32): likewise
11011 (init_crc32_table): likewise
11012 (reflect): likewise
11013 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11014 (GRUB_MOD_DEP): likewise
11016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11018 Allow a compilation without -mcmodel=large
11020 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11021 when compiled without -mcmodel=large
11022 (filter_memory_map): remove memory post 4 GiB when compiled
11023 without -mcmodel=large
11024 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
11025 TARGET_CFLAGS when -mcmodel=large isn't supported
11027 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11029 Remove nested functions in efiemu core
11031 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
11033 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11035 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11037 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11039 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11041 (grub_cpu_is_tsc_supported): likewise
11042 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
11044 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11046 Absolute addressing through constant with Apple's cc
11048 * kern/i386/pc/startup.S: Define necessary constants
11049 and address through it when using ABS with Apple's CC
11050 * boot/i386/pc/diskboot.S: likewise
11051 * boot/i386/pc/boot.S: likewise
11052 * boot/i386/pc/lnxboot.S: likewise
11053 * boot/i386/pc/cdboot.S: likewise
11054 * mmap/i386/pc/mmap_helper.S: likewise
11055 * commands/i386/pc/drivemap_int13h.S: likewise
11057 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11059 Check if compiler is apple cc
11061 * Makefile.in (ASFLAGS): new variable
11062 (TARGET_ASFLAGS): likewise
11063 (TARGET_MODULE_FORMAT): likewise
11064 (TARGET_APPLE_CC): likewise
11065 (OBJCONV): likewise
11066 (TARGET_IMG_CFLAGS): likewise
11067 (TARGET_CPPFLAGS): add includedir
11068 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11069 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11070 Check for linker script only if compiler isn't Apple's CC
11071 (TARGET_MODULE_FORMAT): set
11072 (TARGET_APPLE_CC): likewise
11073 (TARGET_ASFLAGS): likewise
11074 (ASFLAGS): likewise
11075 Check for objcopy only if compiler isn't Apple's CC
11076 Check for BSS symbol only if compiler isn't Apple's CC
11077 * genmk.rb: adapt nm options if we use Apple's utils
11078 * aclocal.m4 (grub_apple_cc): new test
11079 (grub_apple_target_cc): likewise
11081 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11083 Simplify sed expressions and improve awk
11085 * Makefile.in (install-local): simplify sed expression
11086 * gencmdlist.sh: likewise
11087 * genmoddep.awk: avoid adding module as a dependency of itself
11089 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11091 Add missing start symbols
11093 * boot/i386/pc/boot.S: add start
11094 * boot/i386/pc/pxeboot.S: likewise
11096 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11098 Fix wrong assumptions with grub-mkimage on EFI
11100 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11101 (relocate_addresses): consider both r_addend and value at offset
11102 (make_mods_section): zerofill modinfo and header
11103 (convert_elf): write prefix here
11105 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11107 Use .asciz instead of .string
11109 * i386/pc/diskboot.S: use .asciz instead of .string
11110 * i386/pc/boot.S: likewise
11111 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11112 (GRUB_MOD_NAME): likewise
11114 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11118 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11119 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11120 (grub_video_setup): remove
11121 (grub_video_set_mode): new prototype
11122 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11124 (linux_vesafb_res): compile only on PCBIOS
11125 (grub_linux_boot): support gfxpayload
11126 * loader/i386/pc/xnu.c (video_hook): new function
11127 (grub_xnu_set_video): support gfxpayload
11128 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11129 (DEFAULT_VIDEO_HEIGHT): likewise
11130 (DEFAULT_VIDEO_FLAGS): likewise
11131 (DEFAULT_VIDEO_MODE): new definition
11132 (video_hook): new function
11133 (grub_gfxterm_init): use grub_video_set_mode
11134 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11136 * video/video.c (grub_video_setup): removed
11137 (grub_video_set_mode): new function based on grub_gfxterm_init and
11140 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11142 Avoid calling biosdisk in drivemap
11144 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11145 (revparse_biosdisk): likewise
11146 (list_mappings): derive name from id directly
11147 (grub_cmd_drivemap): use tryparse_diskstring
11149 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11153 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11154 (grub_lexer_param): add tokenonhold
11155 (grub_script_create_cmdline): remove cmdline. All callers updated
11156 (grub_script_function_create): make functionname
11157 grub_script_arg. All callers updated
11158 (grub_script_execute_argument_to_string): new prototype
11159 * kern/parser.c (state_transitions): reorder
11160 (grub_parser_cmdline_state): fix a bug and make more compact
11161 * script/sh/execute.c (grub_script_execute_argument_to_string):
11163 (grub_script_execute_cmdline): use new format
11164 * script/sh/function.c (grub_script_function_create): make functionname
11165 grub_script_arg. All callers updated
11166 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11167 (grub_script_yylex): remove
11168 (grub_script_yylex2): renamed to ...
11169 (grub_script_yylex): ...renamed
11170 parse the expressions like a${b}c
11171 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11172 (GRUB_PARSER_TOKEN_VAR): remove
11173 (GRUB_PARSER_TOKEN_NAME): likewise
11174 ("if"): declare as typeless
11175 ("while"): likewise
11176 ("function"): likewise
11181 (argument): likewise
11182 (script): accept empty scripts and make exit on error
11183 (arguments): use GRUB_PARSER_TOKEN_ARG
11184 (function): likewise
11185 (command): move error handling to script
11186 (menuentry): move grub_script_lexer_ref before
11187 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11188 argument. All callers updated
11190 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11192 Prevent GRUB from probing floppies during boot.
11194 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11195 * commands/search.c (options): Add --no-floppy.
11196 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11197 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11198 --no-floppy when searching for UUIDs.
11200 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11202 Simplify the code duplication in commands/search.c.
11204 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11205 (search_fs): ... this. Update all users.
11207 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11209 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11211 2009-05-28 Pavel Roskin <proski@gnu.org>
11213 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11214 Remove the original symlink explicitly.
11216 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11217 just one slash. That's how grub_fshelp_find_file() does it.
11219 2009-05-26 Pavel Roskin <proski@gnu.org>
11221 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11224 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11227 2009-05-25 Christian Franke <franke@computer.org>
11229 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11231 (grub_atapi_identify): Add wait after drive select.
11232 (grub_ata_identify): Do more strict status register check before
11233 calling grub_atapi_identify (). Suppress error message if status
11234 register is 0x00 after command failure. Add status register
11235 check after PIO read to avoid bogus identify due to stuck DRQ.
11236 Thanks to Pavel Roskin for testing.
11237 (grub_device_initialize): Remove unsafe status register check.
11238 Thanks to 'phcoder' for problem report and patch.
11239 Prevent sign extension in debug message.
11241 2009-05-23 Colin D Bennett <colin@gibibit.com>
11243 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11244 definition file, and functions defined in `normal/menu.c' have had
11245 their prototypes moved to `include/grub/menu.h' for consistency.
11247 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11249 (grub_menu_get_entry): Likewise.
11250 (grub_menu_get_timeout): Likewise.
11251 (grub_menu_set_timeout): Likewise.
11252 (grub_menu_execute_entry): Likewise.
11253 (grub_menu_execute_with_fallback): Likewise.
11254 (grub_menu_entry_run): Likewise.
11256 * include/grub/normal.h: Re-ordered and grouped function
11257 prototypes by file that the function is defined in.
11258 (grub_menu_execute_callback): Removed; moved to menu.h.
11259 (grub_menu_get_entry): Likewise.
11260 (grub_menu_get_timeout): Likewise.
11261 (grub_menu_set_timeout): Likewise.
11262 (grub_menu_execute_entry): Likewise.
11263 (grub_menu_execute_with_fallback): Likewise.
11264 (grub_menu_entry_run): Likewise.
11265 (grub_menu_addentry): Renamed from this ...
11266 (grub_normal_add_menu_entry): ... to this.
11268 * normal/main.c (grub_menu_addentry): Renamed from this ...
11269 (grub_normal_add_menu_entry): ... to this.
11271 * script/sh/execute.c (grub_script_execute_menuentry): Update
11272 reference to renamed grub_menu_addentry function.
11274 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11276 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11278 2009-05-22 Pavel Roskin <proski@gnu.org>
11280 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11281 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11282 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11283 compiling for the i386 targets, but not for the utilities.
11285 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11287 (grub_root_drive): Likewise.
11288 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11290 (grub_root_drive): Change size to byte.
11291 (grub_start_addr): Remove.
11292 (grub_end_addr): Likewise.
11293 (grub_apm_bios_info): Likewise.
11295 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11297 * normal/i386: Remove.
11298 * normal/powerpc: Likewise.
11299 * normal/sparc64: Likewise.
11300 * normal/x86_64: Likewise.
11302 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11304 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11305 * loader/i386/linux_trampoline.S: Fix indentation
11306 * loader/i386/xnu_helper.S: Likewise
11308 2009-05-18 Colin D Bennett <colin@gibibit.com>
11310 Display error messages when parsing a Lua statement fails.
11311 Previously, executing a syntactically invalid statement like
11312 ")foo" or "bar;" would silently fail.
11314 * script/lua/grub_main.c (handle_lua_error): New function.
11315 (grub_lua_parse_line): Improved reporting of Lua parser and
11318 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11320 Remove -Werror which causes build to fail on some systems
11322 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11323 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11324 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11326 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11328 trampoline for linux on 64-bit platform
11330 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11331 loader/i386/efi/linux_trampoline.S
11332 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11334 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11336 * loader/i386/linux_trampoline.S: moved here
11337 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11339 (jumpvector): removed
11340 (grub_linux_trampoline_start): new declaration
11341 (grub_linux_trampoline_end): likewise
11342 (grub_linux_boot): use trampoline when on 64-bit platform
11343 * loader/i386/linux.c: likewise
11345 2009-05-16 Pavel Roskin <proski@gnu.org>
11347 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11348 const to avoid a warning.
11349 (grub_lua_setenv): Likewise.
11350 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11351 lmsg to fix a warning.
11353 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11355 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11356 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11357 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11358 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11359 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11360 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11361 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11362 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11364 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11366 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11368 2009-05-16 Bean <bean123ch@gmail.com>
11370 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11371 (lua_mod_SOURCES): New variable.
11372 (lua_mod_CFLAGS): Likewise.
11373 (lua_mod_LDFLAGS): Likewise.
11375 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11376 (setjmp_mod_SOURCES): New variable.
11377 (setjmp_mod_CFLAGS): Likewise.
11378 (setjmp_LDFLAGS): Likewise.
11380 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11381 (setjmp_mod_SOURCES): New variable.
11382 (setjmp_mod_CFLAGS): Likewise.
11383 (setjmp_LDFLAGS): Likewise.
11385 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11386 (setjmp_mod_SOURCES): New variable.
11387 (setjmp_mod_CFLAGS): Likewise.
11388 (setjmp_LDFLAGS): Likewise.
11390 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11391 (setjmp_mod_SOURCES): New variable.
11392 (setjmp_mod_CFLAGS): Likewise.
11393 (setjmp_LDFLAGS): Likewise.
11395 * normal/i386/setjmp.S: Moved from here ...
11396 * lib/i386/setjmp.S: ... Moved here
11397 * normal/x86_64/setjmp.S: Moved from here ...
11398 * lib/x86_64/setjmp.S: ... Moved here
11399 * normal/powerpc/setjmp.S: Moved from here ...
11400 * lib/powerpc/setjmp.S: ... Moved here
11401 * normal/sparc64/setjmp.S: Moved from here ...
11402 * lib/sparc64/setjmp.S: ... Moved here
11404 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11405 returns_twice in mingw.
11407 * script/lua/grub_lib.c: New file.
11408 * script/lua/grub_lib.h: Likewise.
11409 * script/lua/grub_lua.h: Likewise.
11410 * script/lua/grub_main.c: Likewise.
11411 * script/lua/lapi.c: Likewise.
11412 * script/lua/lapi.h: Likewise.
11413 * script/lua/lauxlib.c: Likewise.
11414 * script/lua/lauxlib.h: Likewise.
11415 * script/lua/lbaselib.c: Likewise.
11416 * script/lua/lcode.c: Likewise.
11417 * script/lua/lcode.h: Likewise.
11418 * script/lua/ldblib.c: Likewise.
11419 * script/lua/ldebug.c: Likewise.
11420 * script/lua/ldebug.h: Likewise.
11421 * script/lua/ldo.c: Likewise.
11422 * script/lua/ldo.h: Likewise.
11423 * script/lua/ldump.c: Likewise.
11424 * script/lua/lfunc.c: Likewise.
11425 * script/lua/lfunc.h: Likewise.
11426 * script/lua/lgc.c: Likewise.
11427 * script/lua/lgc.h: Likewise.
11428 * script/lua/linit.c: Likewise.
11429 * script/lua/liolib.c: Likewise.
11430 * script/lua/llex.c: Likewise.
11431 * script/lua/llex.h: Likewise.
11432 * script/lua/llimits.h: Likewise.
11433 * script/lua/lmathlib.c: Likewise.
11434 * script/lua/lmem.c: Likewise.
11435 * script/lua/lmem.h: Likewise.
11436 * script/lua/loadlib.c: Likewise.
11437 * script/lua/lobject.c: Likewise.
11438 * script/lua/lobject.h: Likewise.
11439 * script/lua/lopcodes.c: Likewise.
11440 * script/lua/lopcodes.h: Likewise.
11441 * script/lua/loslib.c: Likewise.
11442 * script/lua/lparser.c: Likewise.
11443 * script/lua/lparser.h: Likewise.
11444 * script/lua/lstate.c: Likewise.
11445 * script/lua/lstate.h: Likewise.
11446 * script/lua/lstring.c: Likewise.
11447 * script/lua/lstring.h: Likewise.
11448 * script/lua/lstrlib.c: Likewise.
11449 * script/lua/ltable.c: Likewise.
11450 * script/lua/ltable.h: Likewise.
11451 * script/lua/ltablib.c: Likewise.
11452 * script/lua/ltm.c: Likewise.
11453 * script/lua/ltm.h: Likewise.
11454 * script/lua/lua.h: Likewise.
11455 * script/lua/luaconf.h: Likewise.
11456 * script/lua/lualib.h: Likewise.
11457 * script/lua/lundump.c: Likewise.
11458 * script/lua/lundump.h: Likewise.
11459 * script/lua/lvm.c: Likewise.
11460 * script/lua/lvm.h: Likewise.
11461 * script/lua/lzio.c: Likewise.
11462 * script/lua/lzio.h: Likewise.
11464 2009-05-16 Bean <bean123ch@gmail.com>
11466 * include/grub/kernel.h (grub_module_header_types): Add type
11469 * kern/main.c (grub_load_config): New function.
11470 (grub_main): Call grub_load_config to read boot config.
11472 * grub-mkimage (generate_image): New parameter config_path.
11473 (options): New option --config.
11474 (main): Parse --config option, and pass it to generate_image.
11476 2009-05-14 Christian Franke <franke@computer.org>
11478 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11479 This fixes build on Cygwin.
11481 2009-05-14 Pavel Roskin <proski@gnu.org>
11483 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11484 jump. This saves two bytes, so the typical case of 2 swapped
11485 drives would fit 32 bytes.
11487 2009-05-13 Pavel Roskin <proski@gnu.org>
11489 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11490 grub_uint32_t to avoid a warning.
11492 * loader/i386/linux.c (allocate_pages): When assigning
11493 real_mode_mem, cast through grub_size_t to fix a warning. The
11494 code already makes sure that the value would fit a pointer.
11495 (grub_linux_setup_video): Cast render_target->data to
11496 grub_size_t to fix a warning.
11498 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11500 * commands/i386/pc/drivemap.c: New file - implement drivemap
11502 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11503 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11505 2009-05-13 Pavel Roskin <proski@gnu.org>
11507 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11508 embedding_area_exists.
11510 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11512 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11513 it easier to understand / work with.
11514 Improve warning messages for cases where there's no embedding area,
11515 or when it is too small (or core.img too large).
11517 2009-05-13 Pavel Roskin <proski@gnu.org>
11519 * loader/i386/pc/multiboot2.c: Add necessary includes for
11520 grub_multiboot2_real_boot().
11522 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11523 PX record is always little-endian. We only need the lower 2
11526 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11527 facilitate code reuse.
11528 (grub_cpio_mount): Use "struct head", not a char buffer. This
11529 fixes a warning reported by gcc 4.4.
11531 * kernel/disk.c (grub_disk_read): Use void pointer for the
11533 (grub_disk_write): Use const void pointer for the buffer.
11534 Adjust all callers. Remove unnecessary casts.
11536 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11538 * util/i386/pc/grub-install.in: Update copyright year.
11540 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11544 * commands/gptsync.c: new file
11545 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11546 (gptsync_mod_SOURCES): new variable
11547 (gptsync_mod_CFLAGS): likewise
11548 (gptsync_mod_LDFLAGS): likewise
11549 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11551 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11552 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11553 * conf/i386-ieee1275.rmk: likewise
11554 * conf/i386-pc.rmk: likewise
11555 * conf/powerpc-ieee1275.rmk: likewise
11557 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11561 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11562 (grub_dl_ref): likewise
11564 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11566 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11567 split in two functions (one for msdos and one for gpt).
11569 2009-05-08 Pavel Roskin <proski@gnu.org>
11571 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11574 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11575 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11576 Initialize them with -1. Add sanity check for bad1. Eliminate
11579 2009-05-08 David S. Miller <davem@davemloft.net>
11581 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11583 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11585 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11588 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11591 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11593 2009-05-05 David S. Miller <davem@davemloft.net>
11595 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11597 2009-05-05 Pavel Roskin <proski@gnu.org>
11599 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11600 of grub_dl_ref() and grub_dl_unref().
11601 * commands/parttool.c: Remove preprocessor conditionals around
11602 grub_dl_ref() and grub_dl_unref().
11603 * fs/affs.c: Likewise.
11604 * fs/afs.c: Likewise.
11605 * fs/cpio.c: Likewise.
11606 * fs/ext2.c: Likewise.
11607 * fs/fat.c: Likewise.
11608 * fs/hfs.c: Likewise.
11609 * fs/hfsplus.c: Likewise.
11610 * fs/iso9660.c: Likewise.
11611 * fs/jfs.c: Likewise.
11612 * fs/minix.c: Likewise.
11613 * fs/ntfs.c: Likewise.
11614 * fs/reiserfs.c: Likewise.
11615 * fs/sfs.c: Likewise.
11616 * fs/udf.c: Likewise.
11617 * fs/ufs.c: Likewise.
11618 * fs/xfs.c: Likewise.
11619 * include/grub/dl.h: Likewise.
11620 * loader/xnu.c: Likewise.
11622 2009-05-04 Pavel Roskin <proski@gnu.org>
11624 * commands/acpi.c: Remove unused variable my_mod.
11625 * partmap/amiga.c: Likewise.
11626 * partmap/apple.c: Likewise.
11627 * partmap/gpt.c: Likewise.
11628 * partmap/pc.c: Likewise.
11629 * partmap/sun.c: Likewise.
11630 * term/gfxterm.c: Likewise.
11631 * term/i386/pc/vesafb.c: Likewise.
11632 * term/i386/pc/vga.c: Likewise.
11634 2009-05-04 David S. Miller <davem@davemloft.net>
11636 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11637 pointer args to grub_ieee1275_get_property().
11639 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11641 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11642 devices, and do not traverse down under controller nodes.
11644 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11645 (grub_ofdisk_open): Use it to un-escape "," characters.
11646 * kern/disk.c (find_part_sep): New.
11647 (grub_disk_open): Use it to find the first non-escaped ','
11648 character in the disk name.
11649 * util/ieee1275/devicemap.c (escape_of_path): New.
11650 (grub_util_emit_devicemap_entry): Use it.
11651 * util/sparc64/ieee1275/grub-install.in: Update script to
11652 strip partition specifiers properly by not triggering on
11653 '\' escaped ',' characters.
11655 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11657 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11659 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11661 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11662 on documentation from Wikipedia).
11664 2009-05-04 Pavel Roskin <proski@gnu.org>
11666 * disk/ata.c: Spelling fixes.
11667 * disk/raid.c: Likewise.
11668 * disk/usbms.c: Likewise.
11669 * disk/dmraid_nvidia.c: Likewise.
11670 * kern/ieee1275/openfw.c: Likewise.
11671 * kern/ieee1275/init.c: Likewise.
11672 * kern/ieee1275/cmain.c: Likewise.
11673 * boot/i386/pc/cdboot.S: Likewise.
11674 * video/readers/png.c: Likewise.
11675 * video/i386/pc/vbe.c: Likewise.
11676 * fs/udf.c: Likewise.
11677 * fs/hfs.c: Likewise.
11678 * fs/reiserfs.c: Likewise.
11679 * efiemu/runtime/efiemu.c: Likewise.
11680 * efiemu/main.c: Likewise.
11681 * efiemu/mm.c: Likewise.
11682 * include/grub/elf.h: Likewise.
11683 * include/grub/xnu.h: Likewise.
11684 * include/grub/usbdesc.h: Likewise.
11685 * include/grub/usb.h: Likewise.
11686 * include/grub/script_sh.h: Likewise.
11687 * include/grub/lib/LzmaEnc.h: Likewise.
11688 * include/grub/efiemu/efiemu.h: Likewise.
11689 * include/grub/command.h: Likewise.
11690 * normal/menu.c: Likewise.
11691 * normal/main.c: Likewise.
11692 * normal/datetime.c: Likewise.
11693 * bus/usb/uhci.c: Likewise.
11694 * mmap/i386/uppermem.c: Likewise.
11695 * mmap/mmap.c: Likewise.
11696 * commands/acpi.c: Likewise.
11697 * commands/test.c: Likewise.
11698 * partmap/apple.c: Likewise.
11699 * font/font.c: Likewise.
11700 * loader/sparc64/ieee1275/linux.c: Likewise.
11701 * loader/macho.c: Likewise.
11702 * loader/i386/bsd_trampoline.S: Likewise.
11703 * loader/i386/bsd.c: Likewise.
11704 * loader/xnu.c: Likewise.
11705 * term/i386/pc/vesafb.c: Likewise.
11706 * term/usb_keyboard.c: Likewise.
11707 * util/resolve.c: Likewise.
11708 * util/getroot.c: Likewise.
11710 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11712 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11714 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11716 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11719 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11721 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11722 parameter only available on BIOS.
11724 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11726 Removed wrong semicolon in declaration
11728 * grub/misc.h (grub_dprintf): remove semicolon
11730 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11732 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11733 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11734 is done by grub_cmd_linux() now).
11735 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11736 restore video to text mode.
11737 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11738 indicates lack of "vga=" parameter. "vga=0" is mapped to
11739 `GRUB_LINUX_VID_MODE_NORMAL'.
11741 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11743 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11744 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11745 and `normal/script.c'. Add `kern/rescue_reader.c',
11746 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11747 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11748 `grub_script.tab.c'.
11750 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11751 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11754 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11756 * Makefile.in: Remove duplicated 2008 in Copyright line.
11758 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11760 * util/misc.c (grub_util_warn): New function. Emits a warning
11762 * include/grub/util/misc.h (grub_util_warn): New declaration.
11764 * util/i386/pc/grub-install.in: Understand --force and pass it down
11767 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11769 (setup): Improve error messages and add warnings when requested to
11770 install in odd layouts. Refuse to install using blocklists unless
11773 2009-05-04 martin f. krafft <madduck@madduck.net>
11775 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11777 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11779 Updated copyright year
11781 * fs/hfsplus.c: updated copyright year
11783 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11787 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11788 in the space previously used by unused3
11789 (grub_hfsplus_uuid): new function
11790 (grub_hfsplus_fs): added uuid field
11792 2009-05-03 Pavel Roskin <proski@gnu.org>
11794 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11795 suppress warnings. It's no longer needed.
11796 * disk/host.c: Likewise.
11797 * disk/ata_pthru.c: Likewise.
11798 * disk/loopback.c: Likewise.
11799 * hook/datehook.c: Likewise.
11800 * parttool/pcpart.c: Likewise.
11801 * fs/i386/pc/pxe.c: Likewise.
11802 * fs/ntfscomp.c: Likewise.
11803 * efiemu/main.c: Likewise.
11804 * mmap/mmap.c: Likewise.
11805 * commands/crc.c: Likewise.
11806 * commands/hexdump.c: Likewise.
11807 * commands/hdparm.c: Likewise.
11808 * commands/acpi.c: Likewise.
11809 * commands/echo.c: Likewise.
11810 * commands/minicmd.c: Likewise.
11811 * commands/blocklist.c: Likewise.
11812 * commands/memrw.c: Likewise.
11813 * commands/loadenv.c: Likewise.
11814 * commands/usbtest.c: Likewise.
11815 * commands/lsmmap.c: Likewise.
11816 * commands/boot.c: Likewise.
11817 * commands/parttool.c: Likewise.
11818 * commands/configfile.c: Likewise.
11819 * commands/search.c: Likewise.
11820 * commands/ieee1275/suspend.c: Likewise.
11821 * commands/cat.c: Likewise.
11822 * commands/i386/pc/pxecmd.c: Likewise.
11823 * commands/i386/pc/play.c: Likewise.
11824 * commands/i386/pc/halt.c: Likewise.
11825 * commands/i386/pc/vbeinfo.c: Likewise.
11826 * commands/i386/pc/vbetest.c: Likewise.
11827 * commands/lspci.c: Likewise.
11828 * commands/date.c: Likewise.
11829 * commands/handler.c: Likewise.
11830 * commands/ls.c: Likewise.
11831 * commands/test.c: Likewise.
11832 * commands/cmp.c: Likewise.
11833 * commands/efi/loadbios.c: Likewise.
11834 * commands/efi/fixvideo.c: Likewise.
11835 * commands/halt.c: Likewise.
11836 * commands/help.c: Likewise.
11837 * commands/reboot.c: Likewise.
11838 * hello/hello.c: Likewise.
11839 * script/sh/main.c: Likewise.
11840 * loader/xnu.c: Likewise.
11841 * term/terminfo.c: Likewise.
11842 * term/i386/pc/serial.c: Likewise.
11843 * term/usb_keyboard.c: Likewise.
11845 2009-05-03 David S. Miller <davem@davemloft.net>
11847 * normal/menu.c: Include grub/parser.h
11849 2009-05-03 Pavel Roskin <proski@gnu.org>
11851 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11853 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11854 Suggested by Javier Martín <lordhabbit@gmail.com>
11856 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11857 efiemu??.o doesn't exist.
11858 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11861 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11863 FreeBSD 64-bit support
11865 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11866 and loader/i386/bsd_trampoline.S
11867 (bsd_mod_ASFLAGS): new variable
11868 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11869 (FREEBSD_MODTYPE_KERNEL64): likewise
11870 (grub_bsd64_trampoline_start): likewise
11871 (grub_bsd64_trampoline_end): likewise
11872 (grub_bsd64_trampoline_selfjump): likewise
11873 (grub_bsd64_trampoline_gdt): likewise
11874 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11875 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11876 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11877 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11878 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11880 * loader/i386/bsd_pagetable.c: new file
11881 * loader/i386/bsd_trampoline.S: likewise
11882 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11883 (ALIGN_VAR): likewise
11884 (entry_hi): new variable
11885 (kern_end_mdofs): likewise
11886 (is_64bit): likewise
11887 (grub_freebsd_add_meta): use ALIGN_VAR
11888 (grub_e820_mmap): new declaration
11889 (grub_freebsd_add_mmap): new function
11890 (grub_freebsd_add_meta_module): support 64 bit kernels
11891 (grub_freebsd_list_modules): use ALIGN_VAR
11892 (gdt_descriptor): new declaration
11893 (grub_freebsd_boot): support 64 bit kernels
11894 (grub_bsd_elf64_hook): new function
11895 (grub_bsd_load_elf): support elf64
11897 2009-05-03 Bean <bean123ch@gmail.com>
11899 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11900 after we get the result of if statement.
11902 2009-05-03 Bean <bean123ch@gmail.com>
11904 * Makefile.in (enable_efiemu): New variable.
11906 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11908 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11910 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11911 path, add -mno-red-zone option.
11912 (efiemu64_s.o): Likewise.
11913 (efiemu64.o): Use macro $^ for source file.
11915 * configure.ac (--enable-efiemu): New option.
11917 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11921 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11922 (pkglib_MODULES): add xnu.mod
11923 (xnu_mod_SOURCES): new variable
11924 (xnu_mod_CFLAGS): likewise
11925 (xnu_mod_LDFLAGS): likewise
11926 (xnu_mod_ASFLAGS): likewise
11927 * conf/i386-pc.rmk: likewise
11928 * conf/x86_64-efi.rmk: likewise
11929 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11931 * include/grub/i386/macho.h: new file
11932 * include/grub/i386/xnu.h: likewise
11933 * include/grub/macho.h: likewise
11934 * include/grub/machoload.h: likewise
11935 * include/grub/x86_64/macho.h: likewise
11936 * include/grub/x86_64/xnu.h: likewise
11937 * include/grub/xnu.h: likewise
11938 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11939 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11940 * loader/i386/efi/xnu.c: new file
11941 * loader/i386/pc/xnu.c: likewise
11942 * loader/i386/xnu.c: likewise
11943 * loader/i386/xnu_helper.S: likewise
11944 * loader/macho.c: likewise
11945 * loader/xnu.c: likewise
11946 * loader/xnu_resume.c: likewise
11947 * util/grub-dumpdevtree: likewise
11948 * include/grub/i386/pit.h: include grub/err.h
11949 (grub_pit_wait): export
11950 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11952 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11956 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11957 _linux_efi, linux_efi.
11958 new files in grub-emu
11959 new targets efiemu32.o and efiemu64.o
11960 * loader/linux_normal_efiemu.c: likewise
11961 * loader/i386/efi/linux.c: added preliminary efiemu support
11962 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11964 * include/grub/autoefi.h: new file
11965 * include/grub/i386/efiemu.h: likewise
11966 * include/grub/i386/pc/efiemu.h: likewise
11967 * include/grub/efi/api.h: add LL suffix when necessary
11968 new definitions relating to tables
11969 * include/grub/efiemu/efiemu.h: new file
11970 * include/grub/efiemu/runtime.h: likewise
11971 * efiemu/prepare.c: likewise
11972 * efiemu/loadcore_common.c: likewise
11973 * efiemu/loadcore64.c: likewise
11974 * efiemu/runtime/efiemu.sh: likewise
11975 * efiemu/runtime/efiemu.S: likewise
11976 * efiemu/runtime/efiemu.c: likewise
11977 * efiemu/runtime/config.h: likewise
11978 * efiemu/prepare32.c: likewise
11979 * efiemu/main.c: likewise
11980 * efiemu/modules/pnvram.c: likewise
11981 * efiemu/modules/i386: likewise
11982 * efiemu/modules/i386/pc: likewise
11983 * efiemu/modules/acpi.c: likewise
11984 * efiemu/i386/pc/cfgtables.c: likewise
11985 * efiemu/i386/loadcore64.c: likewise
11986 * efiemu/i386/loadcore32.c: likewise
11987 * efiemu/prepare64.c: likewise
11988 * efiemu/loadcore.c: likewise
11989 * efiemu/symbols.c: likewise
11990 * efiemu/mm.c: likewise
11991 * efiemu/loadcore32.c: likewise
11993 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11997 * commands/acpi.c: new file
11998 * commands/i386/pc/acpi.c: likewise
11999 * commands/efi/acpi.c: likewise
12000 * include/grub/acpi.h: likewise
12001 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12002 (acpi_mod_SOURCES): new variable
12003 (acpi_mod_CFLAGS): likewise
12004 (acpi_mod_LDFLAGS): likewise
12005 * conf/i386-efi.rmk: likewise
12006 * conf/x86_64-efi.rmk: likewise
12008 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12010 Missing part from mmap patch
12012 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12013 (grub_mmap_unregister)
12014 (grub_mmap_free_and_unregister): use grub_mmap_register
12016 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12020 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12021 * loader/i386/linux.c (find_mmap_size): likewise
12022 (allocate_pages): likewise
12023 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12024 (grub_fill_multiboot_mmap): likewise
12025 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12026 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12027 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12028 (OPENBSD_MMAP_RESERVED): likewise
12029 * include/grub/i386/pc/memory.h: include grub/memory.h
12030 (grub_lower_mem): removed
12031 (grub_upper_mem): likewise
12032 (GRUB_MACHINE_MEMORY_ACPI): new definition
12033 (GRUB_MACHINE_MEMORY_NVS): likewise
12034 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12035 (GRUB_MACHINE_MEMORY_HOLE): likewise
12036 (grub_machine_mmap_register): likewise
12037 (grub_machine_mmap_unregister): likewise
12038 (grub_machine_get_upper): likewise
12039 (grub_machine_get_lower): likewise
12040 (grub_machine_get_post64): likewise
12041 * include/grub/i386/efi/memory.h: new file
12042 * include/grub/x86_64/efi/memory.h: likewise
12043 * include/grub/efi/memory.h: likewise
12044 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12045 (mmap_mod_SOURCES): new variable
12046 (mmap_mod_LDFLAGS): likewise
12047 (mmap_mod_ASFLAGS): likewise
12048 * conf/i386-coreboot.rmk: likewise
12049 * conf/i386-ieee1275.rmk: likewise
12050 * conf/i386-efi.rmk: likewise
12051 * conf/x86_64-efi.rmk: likewise
12052 * include/grub/types.h (UINT_TO_PTR): new macro
12053 (PTR_TO_UINT32): likewise
12054 (PTR_TO_UINT64): likewise
12055 * include/grub/memory.h: new file
12056 * mmap/i386/pc/mmap.c: likewise
12057 * mmap/i386/pc/mmap_helper.S: likewise
12058 * mmap/i386/uppermem.c: likewise
12059 * mmap/mmap.c: likewise
12060 * mmap/efi/mmap.c: likewise
12061 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12063 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12064 (grub_upper_mem): likewise
12065 (grub_machine_init): don't use grub_upper_mem,
12066 make grub_lower_mem local
12067 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12068 grub_mmap_iterate and grub_mmap_get_upper
12069 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12071 2009-05-02 Bean <bean123ch@gmail.com>
12073 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12074 script/sh/parser.y.
12075 (pkglib_MODULES): Add normal.mod and sh.mod.
12076 (normal_SOURCES): New variable.
12077 (normal_mod_CFLAGS): Likewise.
12078 (normal_mod_LDFLAGS): Likewise.
12079 (sh_mod_SOURCES): Likewise.
12080 (sh_mod_CFLAGS): Likewise.
12081 (sh_mod_LDFLAGS): Likewise.
12083 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12084 script/sh/lexer.c_DEPENDENCIES.
12085 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12086 kern/rescue_reader.c and kern/rescue_parser.c.
12087 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12088 (grub_emu_SOURCES): Change source files.
12089 (pkglib_MODULES): Remove normal.mod.
12090 (normal_SOURCES): Removed.
12091 (normal_mod_CFLAGS): Likewise.
12092 (normal_mod_LDFLAGS): Likewise.
12093 * conf/i386-coreboot.rmk: Likewise.
12094 * conf/i386-efi.rmk: Likewise.
12095 * conf/i386-ieee1276.rmk: Likewise.
12096 * conf/powerpc-ieee1275.rmk: Likewise.
12097 * conf/sparc64-ieee1275.rmk: Likewise.
12098 * conf/x86_64-efi.rmk: Likewise.
12100 * include/grub/command.h (grub_command_execute): New inline function.
12102 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12104 * include/grub/normal.h: Remove <grub/setjmp.h>.
12105 (grub_fs_module_list): Moved to normal/autofs.c.
12106 (grub_exit_env): Removed.
12107 (grub_command_execute): Likewise.
12108 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12110 (read_command_list): New function declaration.
12111 (read_fs_list): Likewise.
12113 * include/parser.h: Include <grub/reader.h>.
12114 (grub_parser_split_cmdline): Change type of getline parameter.
12115 (grub_parser): New structure.
12116 (grub_parser_class): New variable.
12117 (grub_parser_execute): New function declaration.
12118 (grub_register_rescue_parser): Likewise.
12119 (grub_parser_register): New inline function.
12120 (grub_parser_unregister): Likewise.
12121 (grub_parser_get_current): Likewise.
12122 (grub_parser_set_current): Likewise.
12124 * include/grub/reader.h: New file.
12125 * kern/reader.c: Likewise.
12126 * kern/rescue_parser.c: Likewise.
12127 * kern/rescue_reader.c: Likewise.
12128 * normal/autofs.c: Likewise.
12129 * normal/dyncmd.c: Likewise.
12131 * include/grub/rescue.h: Removed.
12132 * normal/command.h: Likewise.
12134 * include/grub/script.h: Moved to ...
12135 * include/grub/script_sh.h: ... Moved here.
12136 * normal/execute.c: Moved to ...
12137 * script/sh/execute.c: ... Moved here.
12138 * normal/function.c: Moved to ...
12139 * script/sh/function.c: ... Moved here.
12140 * normal/lexer.c: Moved to ...
12141 * script/sh/lexer.c: ... Moved here.
12142 * normal/parser.y: Moved to ...
12143 * script/sh/parser.y: ... Moved here.
12144 * normal/script.c: Moved to ...
12145 * script/sh/script.c: ... Moved here.
12147 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12149 (grub_exit_env): Removed.
12150 (fs_module_list): Moved to normal/autofs.c.
12151 (grub_file_getline): Don't handle comment here.
12152 (free_menu): Skip removed field entry->commands.
12153 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12155 (read_config_file): Removed nested parameter, change getline function.
12156 (grub_enter_normal_mode): Removed.
12157 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12158 (read_command_list): Likewise.
12159 (autoload_fs_module): Moved to normal/autofs.c.
12160 (read_fs_list): Likewise.
12161 (reader_nested): New variable.
12162 (grub_normal_execute): Run parser.sh to switch to sh parser.
12163 (grub_cmd_rescue): Removed.
12164 (cmd_normal): Removed.
12165 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12167 (grub_cmdline_run): New function.
12168 (grub_normal_reader_init): Likewise.
12169 (grub_normal_read_line): Likewise.
12170 (grub_env_write_pager): Likewise.
12171 (cmdline): New variable.
12172 (grub_normal_reader): Likewise.
12173 (GRUB_MOD_INIT): Register normal reader and set as current, register
12174 pager hook, register normal command with grub_register_command_prio,
12175 so that it won't show up in command.lst.
12176 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12177 grub_fs_autoload_hook.
12179 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12180 (grub_menu_execute_entry): Replace grub_script_execute with
12181 grub_parser_execute, change parameter to grub_command_execute.
12183 * normal/menu_text.c: Remove <grub/script.h>.
12185 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12186 and <grub/parser.h>.
12187 (run): Change editor_getline to use new parser interface. Change
12188 parameter to grub_command_execute.
12190 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12191 <grub/reader.h> and <grub/parser.h>.
12192 (grub_load_normal_mode): Execute normal command.
12193 (grub_main): Call grub_register_core_commands,
12194 grub_register_rescue_parser and grub_register_rescue_reader, use
12195 grub_reader_loop to enter input loop.
12197 * kern/parser.c (grub_parser_split_cmdline): Change type of
12199 (grub_parser_class): New variable.
12200 (grub_parser_execute): New function.
12202 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12203 * loader/multiboot2.c: Likewise.
12204 * loader/sparc64/ieee1275/linux.c: Likewise.
12206 * util/grub-emu.c (read_command_list): New dummy function.
12208 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12210 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12211 count to 16 for CCISS and IDA.
12213 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12215 * normal/menu_text.c (grub_wait_after_message): Print a newline
12216 after waiting for user input.
12218 * loader/i386/linux.c: Include `<grub/normal.h>'.
12219 (grub_cmd_linux): Improve the error message about `ask' mode, by
12220 waiting for user input so it's not missed (we can do this, since
12221 user requested interaction).
12223 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12225 Added missing lst to grub-mkrescue
12227 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12228 and ${input_dir}/parttool.lst
12230 2009-04-30 David S. Miller <davem@davemloft.net>
12232 * util/hostdisk.c (device_is_wholedisk): New function.
12233 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12234 zero only if device_is_wholedisk() returns true.
12236 * util/hostdisk.c (convert_system_partition_to_system_disk):
12237 Handle virtual disk devices named /dev/vdiskX as found on sparc
12240 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12241 lettered partition specifier is found, convert to numbered.
12243 2009-04-29 David S. Miller <davem@davemloft.net>
12245 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12246 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12248 * normal/command.c: Add missing newline at end of file.
12250 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12252 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12253 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12254 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12255 ihandles have a 32-bit type but need to be stored in a "void *".
12257 2009-04-28 Pavel Roskin <proski@gnu.org>
12259 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12260 not disk. Adjust all dependencies.
12261 (grub_fs_uuid_close): Use grub_device_close(), not
12264 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12265 parent's partition, don't copy it by reference, as it gets freed
12268 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12270 Preboot hooks support
12272 * commands/boot.c (struct grub_preboot_t): new declaration
12273 (preboots_head): new variable
12274 (preboots_tail): likewise
12275 (grub_loader_register_preboot_hook): new function
12276 (grub_loader_unregister_preboot_hook): likewise
12277 (grub_loader_set): launch preboot hooks
12278 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12279 (grub_loader_register_preboot_hook): new declaration
12280 (grub_loader_unregister_preboot_hook): likewise
12282 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12286 * disk/scsi.c (grub_scsi_open): added missing cast when
12287 calling grub_dprintf
12289 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12291 Bug and warning fixes
12293 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12295 * commands/test.c (test_parse): fixed bug with file tests and corrected
12296 declaration of find_file
12298 2009-04-26 Pavel Roskin <proski@gnu.org>
12300 * Makefile.in: Don't install empty manual pages if help2man is
12301 missing. Use help2man option for output, not shell redirection.
12303 2009-04-26 David S. Miller <davem@davemloft.net>
12305 * util/grub-mkdevicemap.c (make_device_map): Add missing
12306 NESTED_FUNC_ATTR to process_device().
12308 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12312 * commands/test.c: rewritten to use bash-like test
12314 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12316 Parttool autoloading and improvements
12318 * Makefile.in (pkglib_DATA): add parttool.lst
12319 (parttool.lst): new target
12320 * genmk.rb: generate parttool-*
12321 (CLEANFILES): add #{parttool}
12322 (PARTTOOLFILES): new variable
12323 * genparttoollist.sh: new file
12324 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12325 (grub_pcpart_type): likewise
12326 * commands/parttool.c (helpmsg): new variable
12327 (grub_cmd_parttool): output help if not enough arguments are supplied
12329 (GRUB_MOD_INIT(parttool)): use helpmsg
12331 2009-04-24 David S. Miller <davem@davemloft.net>
12333 Avoiding opening same device multiple times in device iterator.
12335 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12336 and use it to build a list of partitions in iterate_disk() and
12337 iterate_partition().
12339 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12342 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12343 grub_devalias_iterate() result instead of unconditional 0.
12344 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12345 Also, capture hook return value, either directly or via
12346 grub_children_iterate(), and propagate to caller.
12347 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12348 grub_children_iterate): Return value is now 'int' instead of
12350 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12351 like a proper iterator, stopping when hooks return non-zero.
12352 (grub_devalias_iterate): Likewise.
12354 2009-04-23 David S. Miller <davem@davemloft.net>
12356 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12358 2009-04-22 David S. Miller <davem@davemloft.net>
12360 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12361 is larger than address_cells, use that value for address_cells too.
12363 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12364 IEEE1275_MAX_PATH_LEN): Define.
12365 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12366 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12367 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12368 'devtype'. Explicitly NULL terminate devalias expansion.
12370 * util/sparc64/ieee1275/misc.c: New file.
12371 * util/sparc64/ieee1275/grub-setup.c: New file.
12372 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12373 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12374 * util/sparc64/ieee1275/grub-install.in: New file.
12375 * util/ieee1275/ofpath.c: New file.
12376 * util/ieee1275/devicemap.c: New file.
12377 * util/devicemap.c: New file.
12378 * util/deviceiter.c: New file.
12379 * kern/sparc64/ieee1275/init.c: New file.
12380 * include/grub/util/ofpath.h: New file.
12381 * include/grub/util/deviceiter.h: New file.
12382 * util/grub-mkdevicemap.c: Include deviceiter.h.
12383 Implement using grub_util_emit_devicemap_entry and
12384 grub_util_iterate_devices.
12385 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12386 util/devicemap.c into grub-mkdevicemap
12387 * conf/i386-efi.rmk: Likewise.
12388 * conf/i386-ieee1275.rmk: Likewise.
12389 * conf/i386-pc.rmk: Likewise.
12390 * conf/powerpc-ieee1275.rmk: Likewise.
12391 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12392 images and installation utilities. Build kernel as image
12393 instead of as elf binary. Use common rules as much as possible.
12395 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12397 Correct GPT definition
12399 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12402 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12404 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12406 2009-04-19 David S. Miller <davem@davemloft.net>
12408 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12409 (grub_rescue_cmd_linux): Rename to...
12410 (grub_cmd_linux): and fix prototype.
12411 (grub_rescue_cmd_initrd): Rename to...
12412 (grub_cmd_initrd): and fix prototype.
12413 (cmd_linux, cmd_initrd): New.
12414 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12415 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12417 2009-04-17 Pavel Roskin <proski@gnu.org>
12419 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12421 (grub_ohci_transfer): Likewise.
12423 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12425 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12426 return without a value. Fix inconsistent indentation.
12428 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12429 match struct grub_fs.
12431 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12432 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12433 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12434 * commands/lspci.c (grub_lspci_iter): Likewise.
12436 2009-04-16 Bean <bean123ch@gmail.com>
12438 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12441 2009-04-15 Pavel Roskin <proski@gnu.org>
12443 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12444 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12445 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12448 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12450 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12451 that no multiple data or metadata areas are supported and `Unknown
12454 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12456 Move loader out of the kernel
12458 * kern/loader.c: moved to ...
12459 * commands/boot.c: ... moved here
12460 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12461 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12462 * include/grub/kernel.h (grub_machine_fini): export
12463 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12464 (grub_loader_set): likewise
12465 (grub_loader_unset): likewise
12466 (grub_loader_boot): likewise
12467 * conf/common.rmk: new module boot.mod
12468 (pkglib_MODULES): add boot.mod
12469 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12470 (grub_emu_SOURCES): likewise
12471 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12472 (grub_emu_SOURCES): likewise
12473 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12474 (grub_emu_SOURCES): likewise
12475 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12476 (grub_emu_SOURCES): likewise
12477 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12478 (grub_emu_SOURCES): likewise
12479 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12480 (grub_emu_SOURCES): likewise
12481 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12482 (grub_emu_SOURCES): likewise
12484 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12486 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12488 * kern/misc.c (grub_itoa): Removed function
12489 (grub_ltoa): likewise
12490 (grub_vsprintf): use grub_lltoa
12492 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12496 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12497 * conf/i386-coreboot.rmk: likewise
12498 * conf/i386-ieee1275.rmk: likewise
12499 * conf/powerpc-ieee1275.rmk: likewise
12501 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12503 * INSTALL: Add that `./autogen.sh' needs to be run before
12506 2009-04-14 Bean <bean123ch@gmail.com>
12508 * Makefile.in (pkglib_DATA): Add handler.lst.
12509 (handler.lst): New rule.
12511 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12512 * conf/i386-coreboot.rmk: Likewise.
12513 * conf/i386-ieee1275.rmk: Likewise.
12514 * conf/i386-efi.rmk: Likewise.
12515 * conf/x86_64-efi.rmk: Likewise.
12516 * conf/powerpc-ieee1275.rmk: Likewise.
12517 * conf/sparc64-ieee1275.rmk: Likewise.
12519 * genhandlerlist.sh: New file.
12521 * genmk.rb: Add rules to generate handler.lst.
12523 * include/grub/normal.h (grub_file_getline): New function definition.
12524 (read_handler_list): Likewise.
12525 (free_handler_list): Likewise.
12527 * include/grub/term.h (grub_term_register_input): Add name parameter
12528 for auto generation of handler.lst.
12529 (grub_term_register_output): Likewise.
12531 * normal/handler.c: New file.
12533 * normal/main.c (get_line): Renamed to grub_file_getline.
12534 (read_config_file): Use the newly renamed grub_file_getline.
12535 (read_command_list): Likewise.
12536 (read_fs_list): Likewise.
12537 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12538 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12540 * term/efi/console.c (grub_console_init): Add name parameter for auto
12541 generation of handler.lst.
12542 * term/gfxterm.c: Likewise.
12543 * term/i386/pc/at_keyboard.c: Likewise.
12544 * term/i386/pc/console.c: Likewise.
12545 * term/i386/pc/serial.c: Likewise.
12546 * term/i386/pc/vesafb.c: Likewise.
12547 * term/i386/pc/vga.c: Likewise.
12548 * term/i386/pc/vga_text.c: Likewise.
12549 * term/ieee1275/ofconsole.c: Likewise.
12550 * term/usb_keyboard.c: Likewise.
12552 2009-04-14 Bean <bean123ch@gmail.com>
12554 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12555 properly with null character.
12557 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12559 * configure: Remove.
12560 * config.h.in: Likewise.
12561 * stamp-h.in: Likewise.
12562 * DISTLIST: Likewise.
12563 * conf/common.mk: Likewise.
12564 * conf/i386-coreboot.mk: Likewise.
12565 * conf/i386-efi.mk: Likewise.
12566 * conf/i386-ieee1275.mk: Likewise.
12567 * conf/i386.mk: Likewise.
12568 * conf/i386-pc.mk: Likewise.
12569 * conf/powerpc-ieee1275.mk: Likewise.
12570 * conf/sparc64-ieee1275.mk: Likewise.
12571 * conf/x86_64-efi.mk: Likewise.
12573 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12576 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12577 David S. Miller <davem@davemloft.net>
12579 * util/hostdisk.c (make_device_name): Fix buffer length
12582 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12584 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12585 <sys/param.h> and <sys/sysctl.h>.
12586 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12587 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12588 opening the device and reset them afterwards.
12590 2009-04-13 Pavel Roskin <proski@gnu.org>
12592 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12593 Reported by John Stanley <jpsinthemix@verizon.net>
12595 2009-04-13 Robert Millan <rmh@aybabtu.com>
12597 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12598 that name for menuentries when appropriate.
12600 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12602 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12604 2009-04-13 Robert Millan <rmh@aybabtu.com>
12606 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12607 to Linux, simply abort telling the user it's no longer supported.
12609 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12611 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12612 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12613 `freebsd_loadenv' only when devices.hints exist.
12615 2009-04-13 Pavel Roskin <proski@gnu.org>
12617 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12619 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12621 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12623 (grub_drive): Likewise.
12625 2009-04-13 David S. Miller <davem@davemloft.net>
12627 * kern/sparc64/ieee1275/ieee1275.c: New file.
12628 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12629 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12630 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12631 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12632 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12633 grub_ieee1275_alloc_physmem): Declare new exported functions.
12635 * include/grub/sparc64/ieee1275/loader.h: New file.
12636 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12637 * include/grub/sparc64/kernel.h: Likewise.
12638 * loader/sparc64/ieee1275/linux.c: Likewise.
12640 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12641 (grub_fstest_SOURCES): Likewise.
12643 * util/hostdisk.c (make_device_name): Do not make any assumptions
12644 about the length of drive names.
12646 * kern/dl.c (grub_dl_load_file): Close file immediately when
12647 we are done using it.
12649 2009-04-12 David S. Miller <davem@davemloft.net>
12651 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12652 values. Noticed by Pavel Roskin.
12654 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12657 * genmk.rb: Add more flexible image type specification, also
12658 pass --strip-unneeded to objcopy.
12659 * conf/i386-pc.rmk: Use *_FORMAT.
12660 * conf/i386-pc.mk: Rebuilt.
12662 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12663 (OFDISK_HASH_SZ): Define.
12664 (ofdisk_hash): New hash table.
12665 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12666 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12667 instead of device phandle which is not unique.
12669 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12670 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12671 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12672 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12673 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12674 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12675 GRUB_KERNEL_MACHINE_DATA_END): Define.
12676 (grub_kernel_image_size, grub_total_module_size): Declare.
12678 2009-04-12 Pavel Roskin <proski@gnu.org>
12680 * configure.ac: Change the logic when we check for target tools.
12681 Do it when the target is specified and it's different from the
12682 specified value of the host.
12684 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12686 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12687 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12688 GNU/kFreeBSD. Check if a device is a character device. Use
12689 DIOCGMEDIASIZE to get the size.
12690 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12691 support for GNU/kFreeBSD.
12692 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12693 is a character device instead of a block device. Add support for
12694 FreeBSD device names.
12696 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12697 is a character device instead of a block device.
12699 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12700 is a character device instead of a block device.
12702 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12704 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12705 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12706 FreeBSD. Check if a device is a character device. Use
12707 DIOCGMEDIASIZE to get the size.
12708 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12709 support for FreeBSD.
12710 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12711 is a character device instead of a block device. Add support for
12712 FreeBSD device names.
12714 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12715 a character device instead of a block device.
12716 (grub_util_check_char_device): New function.
12718 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12719 a character device instead of a block device.
12721 * include/grub/util/getroot.h (grub_util_check_char_device): New
12724 2009-04-11 David S. Miller <davem@davemloft.net>
12726 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12728 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12729 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12730 function, if present.
12731 (__bswapdi2): Likewise.
12733 * include/grub/sparc64/ieee1275/boot.h: New file.
12734 * boot/sparc64/ieee1275/boot.S: Likewise.
12735 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12737 * kern/misc.c (grub_ltoa): New function.
12738 (grub_vsprintf): Use it to format 'long' integers.
12740 2009-04-10 David S. Miller <davem@davemloft.net>
12742 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12743 slots are of type grub_ieee1275_cell_t.
12744 (grub_nand_read): Likewise.
12745 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12746 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12747 macros are used to compare values in arg/ret block of the call.
12748 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12749 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12750 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12751 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12752 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12753 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12754 grub_ieee1275_close, grub_ieee1275_set_property,
12755 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12756 grub_ieee1275_cell_t.
12757 * kern/ieee1275/openfw.c (grub_map): Likewise.
12758 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12759 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12761 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12762 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12763 (grub_devalias_iterate): Likewise.
12765 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12769 * fs/ufs.c (INODE_NBLOCKS): new definition
12770 (struct grub_ufs_dirent): added fields for non-BSD dirents
12771 (grub_ufs_get_file_block): fixed double indirect handling
12772 (grub_ufs_lookup_symlink): use more robust way to determine whether
12774 (grub_ufs_find_file): support for non-BSD dirents
12775 (grub_ufs_dir): support for non-BSD dirents
12777 2009-04-10 Bean <bean123ch@gnail.com>
12779 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12780 attribute, otherwise the size would be wrong for i386 platform.
12782 * include/grub/pci.h (grub_pci_read_word): New inline function.
12783 (grub_pci_read_byte): Likewise.
12784 (grub_pci_write): Likewise.
12785 (grub_pci_write_word): Likewise.
12786 (grub_pci_write_byte): Likewise.
12788 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12790 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12791 (find_framebuf): Scan pci to locate the frame buffer address.
12793 * commands/efi/fixvideo.c: New file.
12795 * commands/efi/loadbios.c: Likewise.
12797 * commands/memrw.c: Likewise.
12799 * util/grub-dumpbios.in: Likewise.
12801 * conf/common.rmk (grub-dumpbios): New utility.
12802 (pkglib_MODULES): New module memrw.mod.
12803 (memrw_mod_SOURCE): New macro.
12804 (memrw_mod_CFLAGS): Likewise.
12805 (memrw_mod_LDFLAGS): Likewise.
12807 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12809 (loadbios_mod_SOURCE): New macro.
12810 (loadbios_mod_CFLAGS): Likewise.
12811 (loadbios_mod_LDFLAGS): Likewise.
12812 (fixvideo_mod_SOURCE): Likewise.
12813 (fixvideo_mod_CFLAGS): Likewise.
12814 (fixvideo_mod_LDFLAGS): Likewise.
12816 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12818 (loadbios_mod_SOURCE): New macro.
12819 (loadbios_mod_CFLAGS): Likewise.
12820 (loadbios_mod_LDFLAGS): Likewise.
12821 (fixvideo_mod_SOURCE): Likewise.
12822 (fixvideo_mod_CFLAGS): Likewise.
12823 (fixvideo_mod_LDFLAGS): Likewise.
12825 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12827 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12829 2009-04-07 David S. Miller <davem@davemloft.net>
12831 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12832 support for R_SPARC_OLO10 relocations. Fix compile warning for
12833 R_SPARC_WDISP30 case.
12834 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12836 2009-04-06 Pavel Roskin <proski@gnu.org>
12838 * include/grub/misc.h (ARRAY_SIZE): New macro.
12839 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12841 * loader/i386/linux.c (allocate_pages): Use free_pages().
12842 (grub_linux_unload): Don't use free_pages().
12843 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12844 wrong index. Treat all other modes as text modes.
12845 (grub_cmd_linux): Initialize vid_mode unconditionally to
12846 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12848 * commands/help.c (print_command_help): Use cmd->prio, not
12849 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12851 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12855 * parttool/pcpart.c: new file
12856 * commands/parttool.c: likewise
12857 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12858 (parttool_mod_SOURCES): new variable
12859 (parttool_mod_CFLAGS): likewise
12860 (parttool_mod_LDFLAGS): likewise
12861 (pcpart_mod_SOURCES): likewise
12862 (pcpart_mod_CFLAGS): likewise
12863 (pcpart_mod_LDFLAGS): likewise
12864 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12865 and parttool/pcpart.c
12866 * conf/i386-efi.rmk: likewise
12867 * conf/i386-ieee1275.rmk: likewise
12868 * conf/i386-pc.rmk: likewise
12869 * conf/powerpc-ieee1275.rmk: likewise
12870 * conf/sparc64-ieee1275.rmk: likewise
12871 * conf/x86_64-ieee1275.rmk: likewise
12873 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12875 Support for mtime and further expandability of dir command
12877 * include/grub/lib/datetime.h: moved to ...
12878 * include/grub/datetime.h: ... moved here and added
12879 declaration of grub_unixtime2datetime. All users updated
12880 * include/grub/fs.h: new syntax for dir and mtime functions in
12882 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12883 and GRUB_FSHELP_FLAGS_MASK
12884 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12885 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12886 (grub_ext2_mtime): new function
12887 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12888 (grub_hfsplus_mtime): new function
12889 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12890 (GRUB_UFS_ATTR_FILE): likewise
12891 (GRUB_UFS_ATTR_LNK): likewise
12892 (struct grub_ufs_sblock): new fields mtime
12893 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12895 (grub_ufs_dir): mtime support
12896 (grub_ufs_mtime): new function
12897 * fs/affs.c (grub_affs_dir): use new dir syntax
12898 * fs/afs.c (grub_afs_dir): likewise
12899 * fs/cpio.c (grub_cpio_dir): likewise
12900 * fs/fat.c (grub_fat_find_dir): likewise
12901 * fs/hfs.c (grub_hfs_dir): likewise
12902 * fs/iso9660.c (grub_iso9660_dir): likewise
12903 * fs/jfs.c (grub_jfs_dir): likewise
12904 * fs/minix.c (grub_minix_dir): likewise
12905 * fs/ntfs.c (grub_ntfs_dir): likewise
12906 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12907 * fs/sfs.c (grub_sfs_dir): likewise
12908 * fs/xfs.c (grub_xfs_dir): likewise
12909 * util/hostfs.c (grub_hostfs_dir): likewise
12910 * lib/datetime.c: moved to ...
12911 * normal/datetime.c: ... moved here
12912 (grub_unixtime2datetime): new function
12913 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12914 * normal/completion.c (iterate_dir): use new dir syntax
12915 * normal/misc.c (grub_normal_print_device_info): tell the
12916 last modification time of a volume
12917 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12918 * conf/common.rmk: added lib/datetime.c to ls.mod
12919 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12920 (normal_mod_SOURCES): likewise
12921 (datetime_mod_SOURCES): Removed lib/datetime.c
12922 * conf/i386-efi.rmk: likewise
12923 * conf/i386-ieee1275.rmk: likewise
12924 * conf/i386-pc.rmk: likewise
12925 * conf/powerpc-ieee1275.rmk: likewise
12926 * conf/sparc64-ieee1275.rmk: likewise
12927 * conf/x86_64-efi.rmk: likewise
12929 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12931 Trim trailing spaces in FAT label and support mtools-like labels
12933 * fs/fat.c (grub_fat_iterate_dir): New function based
12934 on grub_fat_find_dir
12935 (grub_fat_find_dir): use grub_fat_iterate_dir
12936 (grub_fat_label): likewise
12938 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12940 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12942 remove extraneous kernel_elf_HEADERS
12944 2009-04-04 Bean <bean123ch@gnail.com>
12946 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12948 * util/misc.c: Likewise.
12950 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12952 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12953 instead of grub_printf.
12955 2009-04-03 Robert Millan <rmh@aybabtu.com>
12957 * loader/i386/linux.c (grub_linux_setup_video): Fill
12958 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12959 values from `mode info' structure instead of hardcoded
12962 2009-04-01 Pavel Roskin <proski@gnu.org>
12964 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12966 * genmk.rb: Likewise.
12967 * configure.ac: Likewise.
12969 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12971 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12972 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12974 2009-04-01 David S. Miller <davem@davemloft.net>
12976 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12977 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12978 (grub_setjmp): Mark with 'returns_twice' attribute.
12979 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12980 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12981 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12983 2009-04-01 Robert Millan <rmh@aybabtu.com>
12985 Reapply fix from 2008-07-28 which was accidentally reverted; also
12986 perform the same fix to a similar check in same function.
12988 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12989 with the same number are found, just use issue a warning with
12990 grub_dprintf(), as this error has been reported to be non-fatal.
12992 2009-03-31 Pavel Roskin <proski@gnu.org>
12994 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12995 for cross-compilation.
12997 2009-03-30 Robert Millan <rmh@aybabtu.com>
12999 Fix i386-ieee1275 build.
13001 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13002 Remove declaration.
13004 2009-03-30 Pavel Roskin <proski@gnu.org>
13006 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13007 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13008 zero-terminated, rely only on the strlen value. Fix comparison
13009 of strings differing in length.
13011 2009-03-30 Robert Millan <rmh@aybabtu.com>
13013 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13014 checking for abi version. Improve error messages on BIOS to notify
13015 user about `linux16' command.
13017 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13021 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13022 in case of collision
13023 * disk/scsi.c (grub_scsi_open): free scsi in case of error
13025 2009-03-29 Robert Millan <rmh@aybabtu.com>
13027 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13028 set `vid_mode' accordingly.
13029 (grub_linux_boot): Process `vid_mode' and set video mode.
13031 2009-03-29 Robert Millan <rmh@aybabtu.com>
13033 * util/grub.d/10_linux.in (linux_entry): New function.
13034 Factorize generation of Linux boot entries.
13036 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13038 Make the format of Environment Block plain text. The boot loader
13039 part is not tested well yet.
13041 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13043 (envblk): Likewise.
13044 (usage): Remove "info" and "clear". Add "unset". Update the
13045 description of "set", as this does not delete variables any
13047 (create_envblk_file): Complete rewrite.
13048 (open_envblk_file): Likewise.
13049 (cmd_info): Removed.
13050 (cmd_list): Likewise.
13051 (cmd_set): Likewise.
13052 (cmd_clear): Likewise.
13053 (list_variables): New function.
13054 (write_envblk): Likewise.
13055 (set_variables): Likewise.
13056 (unset_variables): Likewise.
13057 (main): Complete rewrite.
13059 * commands/loadenv.c (buffer): Removed.
13060 (envblk): Likewise.
13061 (open_envblk_file): New function.
13062 (read_envblk_file): Complete rewrite.
13063 (grub_cmd_load_env): Likewise.
13064 (grub_cmd_list_env): Likewise.
13065 (struct blocklist): New struct.
13066 (free_blocklists): New function.
13067 (check_blocklists): Likewise.
13068 (write_blocklists): Likewise.
13069 (grub_cmd_save_env): Complete rewrite.
13071 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13072 a plain text signature.
13073 (GRUB_ENVBLK_MAXLEN): Removed.
13074 (struct grub_envblk): Complete rewrite.
13075 (grub_envblk_find): Removed.
13076 (grub_envblk_insert): Likewise.
13077 (grub_envblk_open): New prototype.
13078 (grub_envblk_set): Likewise.
13079 (grub_envblk_delete): Put const to VALUE.
13080 (grub_envblk_iterate): Put const to NAME and VALUE.
13081 (grub_envblk_close): New prototype.
13082 (grub_envblk_buffer): New inline function.
13083 (grub_envblk_size): Likewise.
13085 * lib/envblk.c: Include grub/mm.h.
13086 (grub_env_find): Removed.
13087 (grub_envblk_open): New function.
13088 (grub_envblk_close): Likewise.
13089 (escaped_value_len): Likewise.
13090 (find_next_line): Likewise.
13091 (grub_envblk_insert): Removed.
13092 (grub_envblk_set): New function.
13093 (grub_envblk_delete): Complete rewrite.
13094 (grub_envblk_iterate): Likewise.
13096 2009-03-28 Robert Millan <rmh@aybabtu.com>
13098 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13099 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13100 variables. Use 16-bit loader.
13101 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13103 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13104 (grub_linux16_boot): ... this. Update all users.
13105 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13106 (grub_linux_boot): ... this. Update all users.
13108 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13109 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13110 commands to `linux16' and `initrd16'.
13111 (GRUB_MOD_FINI(linux)): Rename to ...
13112 (GRUB_MOD_FINI(linux16)): ... this.
13114 2009-03-24 Pavel Roskin <proski@gnu.org>
13116 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13117 not just for compilation.
13119 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13121 Move multiboot helper out of kernel
13123 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13124 `loader/i386/multiboot_helper.S'.
13125 * conf/i386-coreboot.rmk: Likewise
13126 * conf/i386-ieee1275.rmk: Likewise
13128 * kern/i386/loader.S: Move multiboot helpers from here...
13129 * loader/i386/multiboot_helper.S: ...moved here
13130 * include/grub/i386/loader.h: Move declarations of multiboot
13131 helpers from here...
13132 * include/grub/i386/multiboot.h: ...moved here
13133 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13135 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13137 * kern/env.c (grub_env_context_open): Added an argument to specify
13138 whether a new context inherits exported variables from current
13139 one. This is useful when making a sandbox to interpret a config
13141 All callers updated.
13143 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13145 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13147 * kern/env.c (grub_env_context_close): Fix memory leaks.
13149 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13151 * normal/main.c (grub_normal_execute): Added an argument
13152 BATCH to specify if an interactive interface should be provided
13153 after reading a config file.
13154 All callers updated.
13155 (read_command_list): Prevent being executed twice.
13156 (read_fs_list): Likewise.
13158 * include/grub/normal.h (grub_normal_execute): Updated the
13161 2009-03-22 Pavel Roskin <proski@gno.org>
13163 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13165 * kern/i386/pc/startup.S: Likewise.
13166 * kern/i386/efi/startup.S: Likewise.
13167 * kern/i386/ieee1275/startup.S: Likewise.
13168 * kern/i386/coreboot/startup.S: Likewise.
13169 * kern/x86_64/efi/startup.S: Likewise.
13171 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13172 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13173 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13175 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13177 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13179 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13181 Use vaddr of correct segment for entry_point.
13183 2009-03-21 Bean <bean123ch@gmail.com>
13185 * commands/blocklist.c: Add include file <grub/command.h>, remove
13186 <grub/normal.h> and <grub/arg.h>.
13187 (grub_cmd_blocklist): Use the new command interface.
13188 (GRUB_MOD_INIT): Likewise.
13189 (GRUB_MOD_FINI): Likewise.
13190 * commands/boot.c: Likewise.
13191 * commands/cat.c: Likewise.
13192 * commands/cmp.c: Likewise.
13193 * commands/configfile.c: Likewise.
13194 * commands/crc.c: Likewise.
13195 * commands/echo.c: Likewise.
13196 * commands/halt.c: Likewise.
13197 * commands/handler.c: Likewise.
13198 * commands/hdparm.c: Likewise.
13199 * commands/help.c: Likewise.
13200 * commands/hexdump.c: Likewise.
13201 * commands/loadenv.c: Likewise.
13202 * commands/ls.c: Likewise.
13203 * commands/lsmmap.c: Likewise.
13204 * commands/lspci.c: Likewise.
13205 * commands/loadenv.c: Likewise.
13206 * commands/read.c: Likewise.
13207 * commands/reboot.c: Likewise.
13208 * commands/search.c: Likewise.
13209 * commands/sleep.c: Likewise.
13210 * commands/test.c: Likewise.
13211 * commands/usbtest.c: Likewise.
13212 * commands/videotest.c: Likewise.
13213 * commands/i386/cpuid.c: Likewise.
13214 * commands/i386/pc/halt.c: Likewise.
13215 * commands/i386/pc/play.c: Likewise.
13216 * commands/i386/pc/pxecmd.c: Likewise.
13217 * commands/i386/pc/vbeinfo.c: Likewise.
13218 * commands/i386/pc/vbetest.c: Likewise.
13219 * commands/ieee1275/suspend.c: Likewise.
13220 * disk/loopback.c: Likewise.
13221 * font/font_cmd.c: Likewise.
13222 * hello/hello.c: Likewise.
13223 * loader/efi/appleloader.c: Likewise.
13224 * loader/efi/chainloader.c: Likewise.
13225 * loader/i386/bsd.c: Likewise.
13226 * loader/i386/efi/linux.c: Likewise.
13227 * loader/i386/ieee1275/linux.c: Likewise.
13228 * loader/i386/linux.c: Likewise.
13229 * loader/i386/pc/chainloader.c: Likewise.
13230 * loader/i386/pc/linux.c: Likewise.
13231 * loader/powerpc/ieee1275/linux.c: Likewise.
13232 * loader/multiboot_loader.c: Likewise.
13233 * term/gfxterm.c: Likewise.
13234 * term/i386/pc/serial.c: Likewise.
13235 * term/terminfo.c: Likewise.
13237 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13238 * term/i386/pc/vga.c: Likewise.
13239 * video/readers/jpeg.c: Likewise.
13240 * video/readers/png.c: Likewise.
13241 * video/readers/tga.c: Likewise.
13243 * util/grub-fstest (cmd_loopback): Removed.
13244 (cmd_blocklist): Likewise.
13245 (cmd_ls): Likewise.
13246 (grub_register_command): Likewise.
13247 (grub_unregister_command): Likewise.
13248 (execute_command): Use grub_command_find to locate command and execute
13251 * include/grub/efi/chainloader.h: Removed.
13252 * loader/efi/chainloader_normal.c: Likewise.
13253 * loader/i386/bsd_normal.c: Likewise.
13254 * loader/i386/pc/chainloader_normal.c: Likewise.
13255 * loader/i386/pc/multiboot_normal.c: Likewise.
13256 * loader/linux_normal.c: Likewise.
13257 * loader/multiboot_loader_normal.c: Likewise.
13258 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13260 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13261 and grub_register_command_p1.
13263 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13264 kern/command.c, lib/arg.c and commands/extcmd.c.
13265 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13266 (minicmd_mod_SOURCES): New variable.
13267 (minicmd_mod_CFLAGS): Likewise.
13268 (minicmd_mod_LDFLAGS): Likewise.
13269 (extcmd_mod_SOURCES): Likewise.
13270 (extcmd_mod_CFLAGS): Likewise.
13271 (extcmd_mod_LDFLAGS): Likewise.
13272 (boot_mod_SOURCES): Removed.
13273 (boot_mod_CFLAGS): Likewise.
13274 (boot_mod_LDFLAGS): Likewise.
13276 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13278 (kernel_img_HEADERS): Add command.h.
13279 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13280 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13282 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13283 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13284 remove the corresponding normal mode command.
13285 (normal_mod_SOURCES): Remove normal/arg.c.
13286 * conf/i386-coreboot.rmk: Likewise.
13287 * conf/i386-efi.rmk: Likewise.
13288 * conf/i386-ieee1275.rmk: Likewise.
13289 * conf/powerpc-ieee1275.rmk: Likewise.
13290 * conf/x86_64-efi.rmk: Likewise.
13292 * include/grub/arg.h: Move from here ...
13293 * include/grub/lib/arg.h: ... to here.
13295 * normal/arg.c: Move from here ...
13296 * lib/arg.c: ... to here.
13298 * commands/extcmd.c: New file.
13299 * commands/minicmd.c: Likewise.
13300 * include/grub/command.h: Likewise.
13301 * include/grub/extcmd.h: Likewise.
13302 * kern/command.c: Likewise.
13303 * kern/corecmd.c: Likewise.
13305 * kern/list.c (grub_list_iterate): Return int instead of void.
13306 (grub_list_insert): New function.
13307 (grub_prio_list_insert): Likewise.
13309 * kern/rescue.c (grub_rescue_command): Removed.
13310 (grub_rescue_command_list): Likewise.
13311 (grub_rescue_register_command): Likewise.
13312 (grub_rescue_unregister_command): Likewise.
13313 (grub_rescue_cmd_boot): Move to minicmd.c
13314 (grub_rescue_cmd_help): Likewise.
13315 (grub_rescue_cmd_info): Likewise.
13316 (grub_rescue_cmd_boot): Likewise.
13317 (grub_rescue_cmd_testload): Likewise.
13318 (grub_rescue_cmd_dump): Likewise.
13319 (grub_rescue_cmd_rmmod): Likewise.
13320 (grub_rescue_cmd_lsmod): Likewise.
13321 (grub_rescue_cmd_exit): Likewise.
13322 (grub_rescue_print_devices): Moved to corecmd.c.
13323 (grub_rescue_print_files): Likewise.
13324 (grub_rescue_cmd_ls): Likewise.
13325 (grub_rescue_cmd_insmod): Likewise.
13326 (grub_rescue_cmd_set): Likewise.
13327 (grub_rescue_cmd_unset): Likewise.
13328 (attempt_normal_mode): Use grub_command_find to get normal module.
13329 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13330 commands, remove grub_rescue_register_command calls.
13332 * normal/command.c (grub_register_command): Removed.
13333 (grub_unregister_command): Likewise.
13334 (grub_command_find): Likewise.
13335 (grub_iterate_commands): Likewise.
13336 (rescue_command): Likewise.
13337 (export_command): Moved to corecmd.c.
13338 (set_command): Removed.
13339 (unset_command): Likewise.
13340 (insmod_command): Likewise.
13341 (rmmod_command): Likewise.
13342 (lsmod_command): Likewise.
13343 (grub_command_init): Likewise.
13345 * normal/completion.c (iterate_command): Use cmd->prio to check for
13347 (complete_arguments): Use grub_extcmd_t structure to find options.
13348 (grub_normal_do_completion): Change function grub_iterate_commands to
13349 grub_command_iterate.
13351 * normal/execute.c (grub_script_execute_cmd): No need to parse
13354 * normal/main.c (grub_dyncmd_dispatcher): New function.
13355 (read_command_list): Register unload commands as dyncmd.
13356 (grub_cmd_normal): Use new command interface, register rescue,
13357 unregister normal at entry, register normal, unregister rescue at exit.
13359 * include/grub/list.h (grub_list_test_t): New type.
13360 (grub_list_iterate): Return int instead of void.
13361 (grub_list_insert): New function.
13362 (GRUB_AS_NAMED_LIST_P): New macro.
13363 (GRUB_AS_PRIO_LIST): Likewise.
13364 (GRUB_AS_PRIO_LIST_P): Likewise.
13365 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13366 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13367 (grub_prio_list): New structure.
13368 (grub_prio_list_insert): New function.
13369 (grub_prio_list_remove): New inline function.
13371 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13372 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13373 (GRUB_COMMAND_FLAG_MENU): Likewise.
13374 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13375 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13376 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13377 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13378 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13379 (grub_command): Likewise.
13380 (grub_register_command): Likewise.
13381 (grub_command_find): Likewise.
13382 (grub_iterate_commands): Likewise.
13383 (grub_command_init): Likewise.
13384 (grub_arg_parse): Likewise.
13385 (grub_arg_show_help): Likewise.
13387 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13388 (grub_rescue_unregister_command): Likewise.
13390 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13391 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13392 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13394 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13395 grub_rescue_cmd_initrd.
13396 * include/grub/i386/loader.h: Likewise.
13397 * include/grub/x86_64/loader.h: Likewise.
13399 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13401 2009-03-21 Bean <bean123ch@gmail.com>
13403 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13404 instead of stat in mingw environment.
13406 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13408 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13410 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13413 2009-03-21 Bean <bean123ch@gmail.com>
13415 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13416 out of range error.
13418 2009-03-18 Michel Dänzer <michel@daenzer.net>
13420 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13421 checking inode flags for EXT4_EXTENTS_FLAG.
13423 2009-03-18 Robert Millan <rmh@aybabtu.com>
13425 * loader/i386/linux.c: Include `<grub/video.h>' and
13426 `<grub/i386/pc/vbe.h>'..
13427 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13428 (grub_linux32_boot): Attempt to configure video settings with
13429 grub_linux_setup_video().
13430 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13431 to avoid grub_console_fini() which would step out of graphical mode
13434 2009-03-14 Robert Millan <rmh@aybabtu.com>
13436 Fix build on powerpc.
13437 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13439 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13441 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13442 background image command.
13444 2009-03-12 Colin D Bennett <colin@gibibit.com>
13446 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13447 (grub_gfxterm_putchar): Extract pairs of identical calls to
13448 draw_cursor out of conditional blocks.
13450 2009-03-11 Pavel Roskin <proski@gnu.org>
13452 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13453 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13455 2009-03-11 Robert Millan <rmh@aybabtu.com>
13457 * loader/i386/multiboot_elfxx.c
13458 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13460 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13462 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13465 2009-03-11 Robert Millan <rmh@aybabtu.com>
13467 * loader/i386/multiboot.c (code_size): New variable.
13468 (grub_multiboot): Define offsets by adding to `code_size' rather
13469 than subtracting from `grub_multiboot_payload_size'. Provide
13470 4-byte alignment to MBI and others by increasing
13471 `boot_loader_name_length' appropriately.
13473 * loader/i386/multiboot_elfxx.c
13474 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13476 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13478 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13481 2009-03-08 Robert Millan <rmh@aybabtu.com>
13483 Make loader/i386/linux.c usable on i386-pc again.
13485 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13487 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13490 2009-03-07 Bean <bean123ch@gmail.com>
13492 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13495 2009-03-06 Robert Millan <rmh@aybabtu.com>
13497 Fix display issue on terminals with screen size other than 80x25
13498 (e.g. gfxterm with resolution higher than 640x480).
13500 * normal/main.c (grub_normal_init_page): Display title text in a
13501 position relative to the center of the terminal instead of relying
13502 on a hardcoded offset.
13504 2009-03-04 Robert Millan <rmh@aybabtu.com>
13506 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13509 * Makefile.in (host_kernel): New variable.
13510 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13511 scripts instead of just the windows one.
13512 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13514 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13516 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13518 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13519 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13520 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13521 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13522 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13523 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13525 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13527 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13528 or if there's no space for the disk label and print the partition number on a
13531 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13533 * util/misc.c: Include <time.h>.
13534 (grub_millisleep): New function.
13536 2009-03-04 Bean <bean123ch@gmail.com>
13538 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13539 another option -mno-red-zone.
13541 * commands/handler.c: Change module description.
13543 * kern/handler.c: Add missing space at the end of description line.
13545 * kern/list.c: Likewise.
13547 2009-03-03 Robert Millan <rmh@aybabtu.com>
13549 Move more components to the relocation area, and fix mbi pointer
13550 handling to use the destination rather than the origin (thanks to
13551 Vladimir Serbinenko for spotting).
13553 * loader/i386/multiboot.c (mbi_dest): New variable.
13554 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13555 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13558 2009-03-01 Bean <bean123ch@gmail.com>
13560 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13561 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13562 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13563 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13565 * loader/i386/efi/linux.c (acpi_guid): New variable.
13566 (acpi_guid): Likewise.
13567 (EBDA_SEG_ADDR): New constant.
13568 (LOW_MEM_ADDR): Likewise.
13569 (FAKE_EBDA_SEG): Likewise.
13570 (fake_bios_data): New function.
13571 (grub_linux_boot): Call fake_bios_data.
13573 2009-03-01 Bean <bean123ch@gmail.com>
13575 * commands/terminal.c: Removed.
13577 * commands/handler.c: New file.
13579 * include/grub/list.h: Likewise.
13581 * include/grub/handler.h: Likewise.
13583 * kern/list.c: Likewise.
13585 * kern/handler.c: Likewise.
13587 * kern/term.h: Include header file <grub/handler.h>.
13588 (grub_term_input): Move next field to the beginning.
13589 (grub_term_output): Likewise.
13590 (grub_term_input_class): New variable.
13591 (grub_term_output_class): Likewise.
13592 (grub_term_register_input): Changed to inline function.
13593 (grub_term_register_output): Likewise.
13594 (grub_term_unregister_input): Likewise.
13595 (grub_term_unregister_output): Likewise.
13596 (grub_term_set_current_input): Likewise.
13597 (grub_term_set_current_output): Likewise.
13598 (grub_term_get_current_input): Likewise.
13599 (grub_term_get_current_output): Likewise.
13600 (grub_term_iterate_input): Removed.
13601 (grub_term_iterate_output): Likewise.
13603 * kern/term.c (grub_term_list_input): Removed.
13604 (grub_term_list_output): Likewise.
13605 (grub_term_input_class): New variable.
13606 (grub_term_output_class): Likewise.
13607 (grub_cur_term_input): Change variable as macro.
13608 (grub_cur_term_output): Likewise.
13609 (grub_term_register_input): Removed.
13610 (grub_term_register_output): Likewise.
13611 (grub_term_unregister_input): Likewise.
13612 (grub_term_unregister_output): Likewise.
13613 (grub_term_set_current_input): Likewise.
13614 (grub_term_set_current_output): Likewise.
13615 (grub_term_iterate_input): Likewise.
13616 (grub_term_iterate_output): Likewise.
13617 (grub_term_get_current_input): Likewise.
13618 (grub_term_get_current_output): Likewise.
13620 * util/grub-editenv.c: Include header file <grub/handler.h>.
13621 (grub_term_get_current_input): Removed.
13622 (grub_term_get_current_output): Likewise.
13623 (grub_term_input_class): New variable.
13624 (grub_term_output_class): Likewise.
13626 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13627 (grub_term_get_current_output): Likewise.
13628 (grub_term_input_class): New variable.
13629 (grub_term_output_class): Likewise.
13631 * util/grub-probe.c (grub_term_get_current_input): Removed.
13632 (grub_term_get_current_output): Likewise.
13633 (grub_term_input_class): New variable.
13634 (grub_term_output_class): Likewise.
13636 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13637 (grub_term_get_current_output): Likewise.
13638 (grub_term_input_class): New variable.
13639 (grub_term_output_class): Likewise.
13641 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13642 (terminal_mod_SOURCES): Likewise.
13643 (terminal_mod_CFLAGS): Likewise.
13644 (terminal_mod_LDFLAGS): Likewise.
13646 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13648 (kernel_img_SOURCES): Add list.c and handler.c.
13649 (kernel_img_HEADERS): Add list.h and handler.h.
13651 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13653 (kernel_mod_SOURCES): Add list.c and handler.c.
13654 (kernel_mod_HEADERS): Add list.h and handler.h.
13656 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13658 (kernel_elf_SOURCES): Add list.c and handler.c.
13659 (kernel_elf_HEADERS): Add list.h and handler.h.
13661 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13663 (kernel_elf_SOURCES): Add list.c and handler.c.
13664 (kernel_elf_HEADERS): Add list.h and handler.h.
13666 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13668 (kernel_mod_SOURCES): Add list.c and handler.c.
13669 (kernel_mod_HEADERS): Add list.h and handler.h.
13671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13673 (kernel_elf_SOURCES): Add list.c and handler.c.
13674 (kernel_elf_HEADERS): Add list.h and handler.h.
13676 2009-02-27 Robert Millan <rmh@aybabtu.com>
13678 Factorize elf32 / elf64 code in Multiboot loader. This will
13679 prevent it from getting out of sync again.
13681 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13682 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13683 grub_multiboot_load_elf64): Move from here ...
13684 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13685 grub_multiboot_load_elf): ... to here (new file).
13687 2009-02-27 Robert Millan <rmh@aybabtu.com>
13689 * util/grub.d/10_linux.in: Rename "single-user mode" to
13692 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13694 Don't leak in SCSI code.
13695 * disk/scsi.c (grub_scsi_close): free `scsi'.
13697 2009-02-27 Robert Millan <rmh@aybabtu.com>
13699 * loader/i386/pc/multiboot.c: Move from here ...
13700 * loader/i386/multiboot.c: ... to here. Update all users.
13702 2009-02-27 Robert Millan <rmh@aybabtu.com>
13704 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13705 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13707 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13709 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13712 2009-02-27 Robert Millan <rmh@aybabtu.com>
13714 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13715 `0x' qualifier as 0 when base is specified as parameter).
13717 2009-02-24 Bean <bean123ch@gmail.com>
13719 * configure.ac: Check for -mcmodel=large in x86_64 target.
13721 * include/grub/efi/api.h (efi_call_10): New macro.
13722 (efi_wrap_10): New function.
13724 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13725 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13726 (GRUB_PE32_REL_BASED_LOW): Likewise.
13727 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13728 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13729 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13730 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13731 (GRUB_PE32_REL_BASED_REL): Likewise.
13732 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13733 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13734 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13736 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13739 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13740 (efi_wrap_10): New function.
13742 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13744 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13745 MB/MBP model (NV chipset).
13746 (devdata_devs): Add devpath_5 to the list.
13748 * load/i386/efi/linux.c (video_base): Remove variable.
13749 (RGB_MASK): New macro.
13750 (RGB_MAGIC): Likewise.
13751 (LINE_MIN): Likewise.
13752 (LINE_MAX): Likewise.
13753 (FBTEST_STEP): Likewise.
13754 (FBTEST_COUNT): Likewise.
13755 (fb_list): New variable.
13756 (grub_find_video_card): Remove function.
13757 (find_framebuf): New function.
13758 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13761 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13762 problem for x86_64.
13764 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13766 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13768 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13771 2009-02-22 Robert Millan <rmh@aybabtu.com>
13773 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13774 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13775 in our relocation, instead of using it directly from heap. Also
13776 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13778 2009-02-21 Robert Millan <rmh@aybabtu.com>
13780 Implement USB keyboard support (based on patch by Marco Gerards)
13782 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13783 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13784 (usb_keyboard_mod_LDFLAGS): New variables.
13786 * term/usb_keyboard.c: New file.
13788 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13790 Corrected wrong declaration
13792 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13794 2009-02-14 Christian Franke <franke@computer.org>
13796 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13797 (grub_lspci_iter): Print class code and programming interface byte.
13799 2009-02-14 Christian Franke <franke@computer.org>
13801 * gendistlist.sh: Ignore `.svn' directories.
13803 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13805 * fs/fat.c: Add 2009 to Copyright line.
13807 2009-02-14 Christian Franke <franke@computer.org>
13809 * commands/hdparm.c: New file. Provides `hdparm' command
13810 which sends ATA commands via grub_disk_ata_pass_through ().
13812 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13814 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13815 and <grub/cpu/io.h> to include/grub/ata.h.
13816 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13817 (GRUB_CDROM_SECTOR_SIZE): Remove.
13818 (GRUB_ATA_*): Move to include/grub/ata.h.
13819 (GRUB_ATAPI_*): Likewise.
13820 (enum grub_ata_commands): Likewise.
13821 (enum grub_ata_timeout_milliseconds): Likewise.
13822 (struct grub_ata_device): Likewise.
13823 (grub_ata_regset): Likewise.
13824 (grub_ata_regget): Likewise.
13825 (grub_ata_regset2): Likewise.
13826 (grub_ata_regget2): Likewise.
13827 (grub_ata_check_ready): Likewise.
13828 (grub_ata_wait_not_busy): Remove static, exported in
13829 include/grub/ata.h.
13830 (grub_ata_wait_drq): Likewise.
13831 (grub_ata_pio_read): Likewise.
13833 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13834 function for hdparm.mod.
13836 * include/grub/ata.h: New file, contains declarations from
13838 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13840 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13841 (grub_disk_ata_pass_through): New exported variable.
13843 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13845 2009-02-13 Colin D Bennett <colin@gibibit.com>
13847 Support multiple fallback entries, and provide an API to support
13848 executing default+fallback menu entries. Renamed the `terminal' menu
13851 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13852 variable declaration.
13853 (grub_menu_execute_callback): New structure declaration.
13854 (grub_menu_execute_callback_t): New typedef.
13855 (grub_menu_execute_with_fallback): New function declaration.
13856 (grub_menu_get_entry): Likewise.
13857 (grub_menu_get_timeout): Likewise.
13858 (grub_menu_set_timeout): Likewise.
13860 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13862 * normal/menu.c (grub_wait_after_message): Moved to
13863 `normal/menu_text.c'.
13864 (draw_border): Likewise.
13865 (print_message): Likewise.
13866 (print_entry): Likewise.
13867 (print_entries): Likewise.
13868 (grub_menu_init_page): Likewise.
13869 (get_entry_number): Likewise.
13870 (print_timeout): Likewise.
13871 (run_menu): Likewise.
13872 (grub_menu_execute_entry): Likewise.
13873 (show_text_menu): Likewise.
13874 (get_and_remove_first_entry_number): New function.
13875 (grub_menu_execute_with_fallback): Likewise.
13876 (get_entry): Renamed to ...
13877 (grub_menu_get_entry): .. this and made it global.
13878 (get_timeout): Renamed to ...
13879 (grub_menu_get_timeout): ... this and made it global.
13880 (set_timeout): Renamed to ...
13881 (grub_menu_set_timeout): ... this and made it global.
13882 (grub_normal_terminal_menu_viewer): Renamed to ...
13883 (grub_normal_text_menu_viewer): ... this.
13885 * normal/menu_text.c: New file. Extracted text-menu-specific code
13886 from normal/menu.c.
13888 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13889 (normal_mod_SOURCES): Likewise.
13891 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13892 (normal_mod_SOURCES): Likewise.
13894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13895 (normal_mod_SOURCES): Likewise.
13897 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13898 (normal_mod_SOURCES): Likewise.
13900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13901 (normal_mod_SOURCES): Likewise.
13903 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13904 (normal_mod_SOURCES): Likewise.
13906 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13907 (normal_mod_SOURCES): Likewise.
13909 2009-02-11 Robert Millan <rmh@aybabtu.com>
13911 * util/grub.d/00_header.in: Update old reference to `font' command.
13913 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13915 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13917 Based on patch from Javier Martín.
13919 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13921 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13922 to avoid false positives with FAT.
13923 (grub_fstest_SOURCES): Likewise.
13924 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13925 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13927 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13928 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13929 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13931 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13933 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13934 bpb.version_specific.fat12_or_fat16.fstype and
13935 bpb.version_specific.fat32.fstype.
13937 2009-02-08 Robert Millan <rmh@aybabtu.com>
13939 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13941 2009-02-08 Robert Millan <rmh@aybabtu.com>
13943 * Makefile.in (host_os, host_cpu): New variables.
13944 (target_os): Remove. Update all users.
13946 2009-02-08 Marco Gerards <marco@gnu.org>
13948 * Makefile.in (enable_grub_emu_usb): New variable.
13949 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13950 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13951 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13952 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13953 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13954 `usbtest.mod' and `usbms.mod'.
13955 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13956 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13957 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13958 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13959 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13962 * disk/usbms.c: New file.
13964 * include/grub/usb.h: Likewise.
13966 * include/grub/usbtrans.h: Likewise.
13968 * include/grub/usbdesc.h: Likewise.
13970 * bus/usb/usbtrans.c: Likewise.
13972 * bus/usb/ohci.c: Likewise.
13974 * bus/usb/uhci.c: Likewise.
13976 * bus/usb/usbhub.c: Likewise.
13978 * bus/usb/usb.c: Likewise.
13980 * commands/usbtest.c: Likewise.
13982 * util/usb.c: Likewise.
13984 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13986 * configure.ac: Test for libusb presence.
13988 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13990 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13992 * kern/mm.c: Add more comments.
13994 2009-02-08 Robert Millan <rmh@aybabtu.com>
13996 Patch from Javier Martín.
13997 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13998 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14000 2009-02-08 Robert Millan <rmh@aybabtu.com>
14002 * fs/cpio.c: Split tar functionality to ...
14003 * fs/tar.c: ... here (new file). Update all users.
14005 2009-02-07 Robert Millan <rmh@aybabtu.com>
14007 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14008 backward-incompatible features.
14010 Based on patch from Javier Martín, with some adjustments.
14012 2009-02-07 Michael Scherer <misc@mandriva.org>
14014 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14016 2009-02-07 Robert Millan <rmh@aybabtu.com>
14018 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14019 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14020 after the RAID stuff.
14022 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14024 Fixes problem when running vbetest command as reported by
14025 Vladimir Serbinenko <phcoder@gmail.com>.
14027 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14029 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
14031 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14032 /dev/md/NpN style mdraid devices.
14034 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14036 * util/unifont2pff.rb: Remove.
14038 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14040 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14043 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14045 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14046 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14047 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14048 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14050 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14051 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14053 2009-02-02 Christian Franke <franke@computer.org>
14055 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14057 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
14059 * INSTALL: Note that we now require at least autoconf 2.59 and
14060 that LZO is optional.
14062 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14064 Base on patch on bug #24154 created by Tomas Tintera
14065 <trosos@seznam.cz>.
14067 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14069 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14071 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14072 <bero@arklinux.org>.
14074 * normal/parser.y (script_init): Add missing semicolon.
14076 2009-01-31 Colin D Bennett <colin@gibibit.com>
14078 * normal/main.c: Add include to grub/menu_viewer.h.
14079 (free_menu_entry_classes): Added.
14080 (grub_normal_menu_addentry): Added class property handling.
14081 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14082 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14084 * normal/menu_viewer.c: New file.
14086 * normal/menu.c (run_menu_entry): Renamed to ...
14087 (grub_menu_execute_entry): ... this and made it as global.
14088 (grub_menu_run): Renamed to ...
14089 (show_text_menu): ... this and made it local.
14090 (show_text_menu): Adapt to new function names.
14091 (grub_normal_terminal_menu_viewer): New global variable.
14093 * include/grub/menu.h: New file.
14095 * include/grub/menu_viewer.h: New file.
14097 * include/grub/normal.h: Added include to grub/menu.h.
14098 (grub_menu_entry): Moved to include/grub/menu.h.
14099 (grub_menu_entry_t): Likewise.
14100 (grub_menu): Likewise.
14101 (grub_menu_t): Likewise.
14102 (grub_normal_terminal_menu_viewer): Added.
14103 (grub_menu_execute_entry): Likewise.
14104 (grub_menu_run): Removed.
14106 * DISTLIST: Added include/grub/menu.h.
14107 Added include/grub/menu_viewer.h.
14108 Added normal/menu_viewer.c.
14110 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14112 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14113 arglist for menutitle arguments.
14115 * normal/main.c (grub_normal_menu_addentry): Likewise.
14117 * normal/parser.y (menuentry): Likewise.
14119 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14121 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14122 (grub_script_create_cmdmenu): Likewise.
14124 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14126 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14129 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14131 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14133 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14135 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14137 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14139 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14141 2009-01-30 Christian Franke <franke@computer.org>
14143 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14144 in option help text.
14146 2009-01-27 Pavel Roskin <proski@gnu.org>
14148 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14150 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14152 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14154 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14156 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14157 unregister function.
14159 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14161 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14163 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14165 * util/grub-mkfont.c (usage): Fix typo.
14167 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14169 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14171 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14173 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14175 * kern/misc.c (grub_strcasecmp): New function.
14176 (grub_strcasecmp): Use grub_size_t instead of int for length.
14178 * include/grub/misc.h: Update function prototypes.
14180 2009-01-26 Robert Millan <rmh@aybabtu.com>
14182 * configure.ac: Fix cross-compilation check.
14184 2009-01-22 Christian Franke <franke@computer.org>
14186 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14187 (precision) digit string. Allow `.format2' without `format1' (width).
14188 Limit input chars for `%s' output to `format2' if specified. This is
14189 compatible with standard printf ().
14191 2009-01-22 Christian Franke <franke@computer.org>
14193 * disk/ata.c (grub_ata_wait_status): Replace by ...
14194 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14195 other status bits may be invalid while BSY is asserted.
14196 (grub_ata_check_ready): New function.
14197 (grub_ata_cmd): Removed.
14198 (grub_ata_wait_drq): New function.
14199 (grub_ata_strncpy): Remove inline.
14200 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14201 and error check now done by grub_ata_wait_drq ().
14202 (grub_ata_pio_write): Likewise.
14203 (grub_atapi_identify): Set DEV before check for !BSY. Use
14204 grub_ata_wait_drq () to wait for data.
14205 (grub_ata_device_initialize): Add status register check to
14206 detect missing SATA slave devices. Add debug messages.
14207 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14208 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14209 transfer loop by grub_ata_pio_write ().
14210 (grub_ata_identify): Set DEV before check for !BSY. Use
14211 grub_ata_wait_drq () to wait for data.
14212 (grub_ata_setaddress): Set DEV before check for !BSY.
14213 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14214 read/write in one loop. Fix invalid command on write. Fix incomplete
14215 command on (size % batch) == 0. Add missing error check after write of
14216 last block. Add debug messages.
14217 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14219 2009-01-19 Christian Franke <franke@computer.org>
14221 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14222 (GRUB_ATAPI_IREASON_*): Likewise.
14223 (grub_ata_pio_write): Fix timeout error return.
14224 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14225 (grub_atapi_wait_drq): New function.
14226 (grub_atapi_packet): New parameter `size'.
14227 Use grub_atapi_wait_drq () and direct write instead of
14228 grub_ata_pio_write ().
14229 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14230 reads the number of bytes requested by the device for each DRQ
14232 (grub_atapi_write): Remove old implementation, return not
14233 implemented instead.
14235 2009-01-19 Christian Franke <franke@computer.org>
14237 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14238 of 512 to calculate data size.
14239 (grub_scsi_read12): Likewise.
14240 (grub_scsi_write10): Likewise.
14241 (grub_scsi_write12): Likewise.
14242 (grub_scsi_read): Adjust size according to blocksize.
14243 Add checks for invalid blocksize and unaligned transfer.
14245 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14247 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14249 * term/gfxterm.c (write_char): Fix background rendering for wide
14252 2009-01-19 Robert Millan <rmh@aybabtu.com>
14254 * config.guess: Update to latest version from config git.
14255 * config.sub: Likewise.
14257 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14259 * Makefile.in: Change font compilation to use new grub-mkfont instead
14262 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14263 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14264 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14265 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14266 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14267 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14268 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14269 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14270 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14272 2009-01-16 Christian Franke <franke@computer.org>
14274 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14275 (enum grub_ata_timeout_milliseconds): New enum.
14276 (grub_ata_wait_status): Add parameter milliseconds.
14277 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14278 recovery from timed-out commands.
14279 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14280 return grub_errno instead of REG_ERROR.
14281 (grub_ata_pio_write): Add parameter milliseconds.
14282 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14283 Pass milliseconds to grub_ata_wait_status () and
14284 grub_ata_pio_read ().
14285 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14286 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14287 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14288 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14289 It is not suitable for device detection, because DEV bit is ignored,
14290 the command may run too long, and not all devices set the signature
14292 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14293 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14294 Fix device selection, DEV bit must be set first to address the registers
14295 of the correct device.
14296 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14297 grub_ata_pio_read/write ().
14298 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14299 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14301 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14303 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14305 2009-01-13 Bean <bean123ch@gmail.com>
14307 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14309 2009-01-13 Bean <bean123ch@gmail.com>
14311 * Makefile.in: (enable_grub_mkfont): New variable.
14312 (freetype_cflags): Likewise.
14313 (freetype_libs): Likewise.
14315 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14316 (grub_mkfont_SOURCES): New variable.
14317 (grub_mkfont_CFLAGS): Likewise.
14318 (grub_mkfont_LDFLAGS): Likewise.
14320 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14321 library if `--enable-grub-mkfont' is requested.
14322 (enable_grub_mkfont): New variable.
14323 (freetype_cflags): Likewise.
14324 (freetype_libs): Likewise.
14326 * util/grub-mkfont.c: New file.
14328 2009-01-12 Christian Franke <franke@computer.org>
14330 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14331 mode check. Fix setting of compat_use[].
14333 2009-01-10 Robert Millan <rmh@aybabtu.com>
14335 Update a few copyright years which we forgot to do in 2008 (only for
14336 files whose changes made in 2008 were copyright-significant)
14338 * Makefile.in: Add 2008 to Copyright line.
14339 * disk/ieee1275/ofdisk.c: Likewise.
14340 * disk/efi/efidisk.c: Likewise.
14341 * kern/dl.c: Likewise.
14342 * kern/sparc64/ieee1275/init.c: Likewise.
14343 * kern/mm.c: Likewise.
14344 * kern/efi/mm.c: Likewise.
14345 * boot/i386/pc/boot.S: Likewise.
14346 * genfslist.sh: Likewise.
14347 * fs/iso9660.c: Likewise.
14348 * fs/hfs.c: Likewise.
14349 * fs/jfs.c: Likewise.
14350 * fs/minix.c: Likewise.
14351 * fs/ufs.c: Likewise.
14352 * gensymlist.sh.in: Likewise.
14353 * genkernsyms.sh.in: Likewise.
14354 * include/grub/misc.h: Likewise.
14355 * include/grub/types.h: Likewise.
14356 * include/grub/symbol.h: Likewise.
14357 * include/grub/elf.h: Likewise.
14358 * include/grub/kernel.h: Likewise.
14359 * include/grub/disk.h: Likewise.
14360 * include/grub/dl.h: Likewise.
14361 * include/grub/i386/linux.h: Likewise.
14362 * include/grub/i386/pc/biosdisk.h: Likewise.
14363 * include/grub/efi/api.h: Likewise.
14364 * include/grub/efi/pe32.h: Likewise.
14365 * include/grub/util/misc.h: Likewise.
14366 * normal/execute.c: Likewise.
14367 * normal/arg.c: Likewise.
14368 * normal/completion.c: Likewise.
14369 * normal/lexer.c: Likewise.
14370 * normal/parser.y: Likewise.
14371 * normal/misc.c: Likewise.
14372 * commands/i386/pc/vbeinfo.c: Likewise.
14373 * commands/hexdump.c: Likewise.
14374 * commands/terminal.c: Likewise.
14375 * commands/ls.c: Likewise.
14376 * commands/help.c: Likewise.
14377 * partmap/pc.c: Likewise.
14378 * loader/efi/chainloader.c: Likewise.
14379 * loader/multiboot_loader.c: Likewise.
14380 * loader/i386/pc/multiboot2.c: Likewise.
14381 * term/efi/console.c: Likewise.
14382 * term/i386/pc/serial.c: Likewise.
14383 * util/lvm.c: Likewise.
14384 * util/console.c: Likewise.
14385 * util/i386/efi/grub-mkimage.c: Likewise.
14386 * util/raid.c: Likewise.
14388 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14390 * commands/videotest.c: Removed include to grub/machine/memory.h.
14392 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14393 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14394 (video_mod_SOURCES): Removed.
14395 (video_mod_CFLAGS): Likewise.
14396 (video_mod_LDFLAGS): Likewise.
14397 (gfxterm_mod_SOURCES): Likewise.
14398 (gfxterm_mod_CFLAGS): Likewise.
14399 (gfxterm_mod_LDFLAGS): Likewise.
14400 (videotest_mod_SOURCES): Likewise.
14401 (videotest_mod_CFLAGS): Likewise.
14402 (videotest_mod_LDFLAGS): Likewise.
14403 (bitmap_mod_SOURCES): Likewise.
14404 (bitmap_mod_CFLAGS): Likewise.
14405 (bitmap_mod_LDFLAGS): Likewise.
14406 (tga_mod_SOURCES): Likewise.
14407 (tga_mod_CFLAGS): Likewise.
14408 (tga_mod_LDFLAGS): Likewise.
14409 (jpeg_mod_SOURCES): Likewise.
14410 (jpeg_mod_CFLAGS): Likewise.
14411 (jpeg_mod_LDFLAGS): Likewise.
14412 (png_mod_SOURCES): Likewise.
14413 (png_mod_CFLAGS): Likewise.
14414 (png_mod_LDFLAGS): Likewise.
14416 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14417 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14418 (video_mod_SOURCES): Added.
14419 (video_mod_CFLAGS): Likewise.
14420 (video_mod_LDFLAGS): Likewise.
14421 (videotest_mod_SOURCES): Likewise.
14422 (videotest_mod_CFLAGS): Likewise.
14423 (videotest_mod_LDFLAGS): Likewise.
14424 (bitmap_mod_SOURCES): Likewise.
14425 (bitmap_mod_CFLAGS): Likewise.
14426 (bitmap_mod_LDFLAGS): Likewise.
14427 (tga_mod_SOURCES): Likewise.
14428 (tga_mod_CFLAGS): Likewise.
14429 (tga_mod_LDFLAGS): Likewise.
14430 (jpeg_mod_SOURCES): Likewise.
14431 (jpeg_mod_CFLAGS): Likewise.
14432 (jpeg_mod_LDFLAGS): Likewise.
14433 (png_mod_SOURCES): Likewise.
14434 (png_mod_CFLAGS): Likewise.
14435 (png_mod_LDFLAGS): Likewise.
14436 (gfxterm_mod_SOURCES): Likewise.
14437 (gfxterm_mod_CFLAGS): Likewise.
14438 (gfxterm_mod_LDFLAGS): Likewise.
14440 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14441 grub/machine/console.h.
14443 2009-01-04 Jerone Young <jerone@gmail.com>
14445 Make on screen instructions clearer
14447 Based on patch created by Jidanni <jidanni@jidanni.org>
14449 * normal/menu.c: print clearer instructions on the screen
14451 2009-01-02 Colin D Bennett <colin@gibibit.com>
14455 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14456 build system and fixed gfxterm.c to work with different sized fonts.
14458 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14460 * configure: Re-generated.
14462 * DISTLIST: Removed font/manager.c.
14464 Added font/font_cmd.c.
14466 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14469 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14471 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14473 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14475 * normal/menu.c: Likewise.
14477 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14478 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14480 * include/grub/font.h: Replaced with new file.
14482 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14483 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14484 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14485 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14486 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14487 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14488 fg_red, fg_green, fg_blue, fg_alpha.
14489 (grub_video_adapter): Removed blit_glyph.
14490 (grub_video_blit_glyph): Removed.
14492 * font/manager.c: Removed file.
14494 * font/font.c: New file.
14496 * font/font_cmd.c: Likewise.
14498 * video/video.c (grub_video_blit_glyph): Removed.
14500 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14501 (grub_video_vbe_map_rgba): Likewise.
14502 (grub_video_vbe_unmap_color_int): Likewise.
14503 (grub_video_vbe_blit_glyph): Removed.
14504 (grub_video_vbe_adapter): Removed blit_glyph.
14506 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14507 (get_pixel): Likewise.
14508 (set_pixel): Likewise.
14510 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14512 * term/gfxterm.c: Adapted to new font engine.
14514 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14516 * term/i386/pc/vga.c: Likewise.
14518 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14520 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14522 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14524 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14526 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14528 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14530 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14532 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14534 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14536 * util/grub.d/00_header.in: Changed to use new loadfont command.
14538 * util/grub-mkconfig_lib.in: Changed font extension.
14540 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14542 * util/getroot.c (grub_util_get_grub_dev): Add support for
14543 /dev/md/dNNpNN style partitionable mdraid devices.
14545 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14547 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14548 at a time limit of the PXE TFTP API correctly.
14549 (grub_pxefs_close): Likewise.
14551 2008-11-29 Robert Millan <rmh@aybabtu.com>
14553 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14554 grub_ata_device_initialize() calls.
14556 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14558 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14560 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14562 2008-11-28 Robert Millan <rmh@aybabtu.com>
14564 Fix build on powerpc-ieee1275. Based on patch created by
14565 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14566 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14567 `kern/ieee1275/mmap.c'.
14568 * include/grub/powerpc/ieee1275/memory.h: New file.
14570 Provide grub-install on coreboot.
14571 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14572 (grub_install_SOURCES): New variable.
14573 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14574 usable on coreboot.
14576 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14578 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14579 to `grub_term_input_t'.
14580 (grub_term_get_current_output): Change return type to
14581 `grub_term_output_t'.
14583 2008-11-22 Robert Millan <rmh@aybabtu.com>
14585 Fix breakage on coreboot due to declaration mismatch.
14586 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14587 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14588 grub_vga_text_cls().
14590 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14591 comments. Avoid copying one more byte than necessary (just in case).
14593 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14594 to 0x200000 (avoids trouble with some OFW implementations, and matches
14595 with the one in Yaboot).
14596 Reported by Manoel Abranches
14598 2008-11-20 Robert Millan <rmh@aybabtu.com>
14600 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14601 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14603 * util/grub-mkconfig_lib.in (grub_warn): New function.
14604 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14605 warnings, to obtain consistent formatting.
14606 * util/grub.d/00_header.in: Likewise.
14607 * util/update-grub_lib.in: Likewise.
14609 * loader/i386/linux.c (allocate_pages): Fix a warning.
14610 Move comment text to `#error' stanza.
14612 Harmonize ieee1275's grub_available_iterate() with the generic
14613 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14614 build problem on i386-ieee1275):
14615 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14616 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14617 parameter `type'. Update all users of this function.
14618 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14619 `kern/ieee1275/mmap.c'.
14620 * kern/ieee1275/init.c
14621 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14623 (grub_machine_mmap_iterate): ... this.
14624 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14625 return type to `grub_err_t'. Update all implementations of this
14626 function prototype.
14627 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14630 Add `lsmmap' command (lists firmware-provided memory map):
14631 * commands/lsmmap.c: New file.
14632 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14633 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14635 * conf/powerpc-ieee1275.rmk: Likewise.
14636 * conf/i386-coreboot.rmk: Likewise.
14637 * conf/i386-ieee1275.rmk: Likewise.
14639 2008-11-19 Robert Millan <rmh@aybabtu.com>
14641 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14642 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14643 constraints to initrd allocation (based on code from
14644 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14645 for Linux to find it.
14647 2008-11-14 Robert Millan <rmh@aybabtu.com>
14649 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14650 order to cope with duplicate slashes.
14652 2008-11-14 Robert Millan <rmh@aybabtu.com>
14654 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14655 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14656 don't want to mess with lower memory, because it is used in the Linux
14659 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14660 an appropriate place in lower memory, between 0x10000 and 0x90000,
14661 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14662 is in our heap (probably as a result of it being corrupted during
14663 decompression). Add #error instance with comment to explain why this
14664 loader isn't currently usable on PC/BIOS.
14666 2008-11-14 Robert Millan <rmh@aybabtu.com>
14668 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14669 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14671 2008-11-12 Robert Millan <rmh@aybabtu.com>
14673 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14675 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14676 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14678 * include/grub/i386/pc/memory.h: ... to here.
14680 2008-11-12 Robert Millan <rmh@aybabtu.com>
14682 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14685 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14686 (grub_console_cur_color, grub_console_real_putchar)
14687 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14688 (grub_console_setcolorstate, grub_console_setcolor)
14689 (grub_console_getcolor): Move from here ...
14690 * include/grub/i386/vga_common.h: ... to here (new file).
14692 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14693 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14694 `<grub/i386/io.h>'.
14695 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14696 `<grub/i386/vga_common.h>'.
14698 2008-11-12 Robert Millan <rmh@aybabtu.com>
14700 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14701 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14702 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14704 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14705 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14707 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14708 grub_console_init() with call to grub_vga_text_init().
14709 (grub_machine_fini): Replace call to
14710 grub_console_fini() with call to grub_vga_text_fini() and
14711 grub_at_keyboard_fini().
14713 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14714 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14715 (grub_console_setcolorstate, grub_console_setcolor)
14716 (grub_console_getcolor): New function prototypes.
14718 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14719 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14720 (grub_vga_text_setcursor): Static-ize.
14721 (grub_vga_text_term): New structure.
14722 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14724 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14725 (grub_console_cur_color, grub_console_standard_color)
14726 (grub_console_normal_color, grub_console_highlight_color)
14727 (map_char, grub_console_putchar, grub_console_getcharwidth)
14728 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14729 (grub_console_getcolor): Move from here ...
14730 * term/i386/vga_common.c: ... to here (same function names).
14732 2008-11-12 Robert Millan <rmh@aybabtu.com>
14734 Use newly-added Multiboot support in coreboot.
14736 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14737 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14739 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14740 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14741 (codestart): Store the MBI in `startup_multiboot_info' when we're
14742 being loaded using Multiboot.
14744 * kern/i386/coreboot/init.c (grub_machine_init): Move
14745 grub_at_keyboard_init() call to beginning of function (useful for
14746 debugging). Call grub_machine_mmap_init() before attempting to use
14747 grub_machine_mmap_iterate().
14748 (grub_lower_mem, grub_upper_mem): Move from here ...
14749 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14752 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14753 function prototype.
14755 2008-11-12 Robert Millan <rmh@aybabtu.com>
14757 Fix a regression introduced by the at_keyboard.mod split. Because
14758 some terminals are default on some platforms and non-default on
14759 others, the first terminal being registered determines which is
14760 going to be default.
14762 * kern/term.c (grub_term_register_input): If this is the first
14763 terminal being registered, set it as the current one.
14764 (grub_term_register_output): Likewise.
14766 * term/efi/console.c (grub_console_init): Do not call
14767 grub_term_set_current_output() or grub_term_set_current_input().
14768 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14769 * term/i386/pc/console.c (grub_console_init): Likewise.
14770 (grub_console_fini): Do not call grub_term_set_current_input()
14771 (but leave grub_term_set_current_output() to restore text mode).
14773 2008-11-10 Robert Millan <rmh@aybabtu.com>
14775 * util/grub.d/00_header.in: Add backward compatibility check for
14776 versions of terminal.mod that don't understand `terminal_input' or
14779 2008-11-09 Robert Millan <rmh@aybabtu.com>
14781 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14782 `terminal_input' / `terminal_output', not `terminal'.
14784 2008-11-08 Robert Millan <rmh@aybabtu.com>
14786 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14787 (DISTCLEANFILES): Add `build_env.mk'.
14789 2008-11-08 Robert Millan <rmh@aybabtu.com>
14791 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14792 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14793 members. Update all users.
14794 * util/console.c (grub_ncurses_term): Split in ...
14795 (grub_ncurses_term_input): ... this, and ...
14796 (grub_ncurses_term_output): ... this. Update all users.
14797 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14799 2008-11-08 Robert Millan <rmh@aybabtu.com>
14801 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14802 (PKGDATA): Add $(pkgdata_SRCDIR).
14803 (pkglib_BUILDDIR): New variable.
14804 (pkgdata_SRCDIR): New variable.
14805 (build_env.mk): New target.
14806 (include_DATA): New variable.
14807 (install-local): Install $(include_DATA) files in $(includedir).
14809 2008-11-07 Pavel Roskin <proski@gnu.org>
14811 * gendistlist.sh: Use C locale for sorting to ensure consistent
14812 output on all systems.
14814 * util/grub.d/00_header.in: Remove incorrect space before
14817 2008-11-07 Robert Millan <rmh@aybabtu.com>
14819 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14821 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14822 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14823 (based on find_multi_boot1_header).
14824 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14825 using find_multi_boot2_header(), and abort if neither Multiboot or
14826 Multiboot headers were found.
14828 2008-11-07 Robert Millan <rmh@aybabtu.com>
14830 Modularize at_keyboard.mod:
14832 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14833 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14834 (at_keyboard_mod_LDFLAGS): New variables.
14836 Actual terminal split:
14838 * include/grub/term.h (struct grub_term): Split in ...
14839 (struct grub_term_input): ... this, and ...
14840 (struct grub_term_output): ... this. Update all users.
14841 (grub_term_set_current): Split in ...
14842 (grub_term_set_current_input): ... this, and ...
14843 (grub_term_set_current_output): ... this.
14844 (grub_term_get_current): Split in ...
14845 (grub_term_get_current_input): ... this, and ...
14846 (grub_term_get_current_output): ... this.
14847 (grub_term_register): Split in ...
14848 (grub_term_register_input): ... this, and ...
14849 (grub_term_register_output): ... this.
14850 (grub_term_unregister): Split in ...
14851 (grub_term_unregister_input): ... this, and ...
14852 (grub_term_unregister_output): ... this.
14853 (grub_term_iterate): Split in ...
14854 (grub_term_iterate_input): ... this, and ...
14855 (grub_term_iterate_output): ... this.
14857 * kern/term.c (grub_term_list): Split in ...
14858 (grub_term_list_input): ... this, and ...
14859 (grub_term_list_output): ... this. Update all users.
14860 (grub_cur_term): Split in ...
14861 (grub_cur_term_input): ... this, and ...
14862 (grub_cur_term_output): ... this. Update all users.
14863 (grub_term_set_current): Split in ...
14864 (grub_term_set_current_input): ... this, and ...
14865 (grub_term_set_current_output): ... this.
14866 (grub_term_get_current): Split in ...
14867 (grub_term_get_current_input): ... this, and ...
14868 (grub_term_get_current_output): ... this.
14869 (grub_term_register): Split in ...
14870 (grub_term_register_input): ... this, and ...
14871 (grub_term_register_output): ... this.
14872 (grub_term_unregister): Split in ...
14873 (grub_term_unregister_input): ... this, and ...
14874 (grub_term_unregister_output): ... this.
14875 (grub_term_iterate): Split in ...
14876 (grub_term_iterate_input): ... this, and ...
14877 (grub_term_iterate_output): ... this.
14879 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14880 a check for input and one for output (and only attempt to get keys
14881 from user when input works).
14883 * util/grub-probe.c (grub_term_get_current): Split in ...
14884 (grub_term_get_current_input): ... this, and ...
14885 (grub_term_get_current_output): ... this.
14886 * util/grub-fstest.c: Likewise.
14887 * util/i386/pc/grub-setup.c: Likewise.
14888 * util/grub-editenv.c: Likewise.
14890 Portability adjustments:
14892 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14893 `term/i386/pc/at_keyboard.c'.
14894 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14895 grub_keyboard_controller_init() (now handled by terminal .init).
14896 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14897 grub_at_keyboard_init().
14898 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14899 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14900 at_keyboard.mod via input terminal interface).
14901 * include/grub/i386/coreboot/console.h: Convert into a stub for
14902 `<grub/i386/pc/console.h>'.
14904 Migrate full terminals to new API:
14906 * term/efi/console.c (grub_console_term): Split into ...
14907 (grub_console_term_input): ... this, and ...
14908 (grub_console_term_output): ... this. Update all users.
14909 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14910 (grub_ofconsole_init): Split into ...
14911 (grub_ofconsole_init_input): ... this, and ...
14912 (grub_ofconsole_init_output): ... this.
14913 (grub_ofconsole_term): Split into ...
14914 (grub_ofconsole_term_input): ... this, and ...
14915 (grub_ofconsole_term_output): ... this. Update all users.
14916 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14917 (grub_serial_term_input): ... this, and ...
14918 (grub_serial_term_output): ... this. Update all users.
14919 * term/i386/pc/console.c (grub_console_term): Split into ...
14920 (grub_console_term_input): ... this, and ...
14921 (grub_console_term_output): ... this. Update all users.
14922 (grub_console_term_input): Only enable it on PC/BIOS platform.
14923 (grub_console_init): Remove grub_keyboard_controller_init() call.
14925 Migrate input terminals to new API:
14927 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14928 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14929 i386-specific anyway).
14930 (grub_console_checkkey): Rename to ...
14931 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14933 (grub_keyboard_controller_orig): New variable.
14934 (grub_console_getkey): Rename to ...
14935 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14937 (grub_keyboard_controller_init): Static-ize. Save original
14938 controller value so that it can be restored ...
14939 (grub_keyboard_controller_fini): ... here (new function).
14940 (grub_at_keyboard_term): New structure.
14941 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14944 Migrate output terminals to new API:
14946 * term/i386/pc/vga.c (grub_vga_term): Change type to
14947 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14948 members. Update all users.
14949 * term/gfxterm.c (grub_video_term): Change type to
14950 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14951 members. Update all users.
14952 * include/grub/i386/pc/console.h (grub_console_checkkey)
14953 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14956 Migrate `terminal' command and userland tools to new API:
14958 * commands/terminal.c (grub_cmd_terminal): Split into ...
14959 (grub_cmd_terminal_input): ... this, and ...
14960 (grub_cmd_terminal_output): ... this.
14961 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14962 `terminal_input' and `terminal_output'.
14963 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14964 `terminal_input' / `terminal_output' API.
14965 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14966 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14967 provided ${GRUB_TERMINAL}, convert it).
14969 2008-11-04 Robert Millan <rmh@aybabtu.com>
14971 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14973 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14975 2008-11-03 Bean <bean123ch@gmail.com>
14977 * kern/elf.c (grub_elf32_load): Revert to previous code.
14978 (grub_elf64_load): Likewise.
14980 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14982 2008-11-01 Robert Millan <rmh@aybabtu.com>
14984 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14985 (TARGET_CPPFLAGS): Likewise.
14986 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14988 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14990 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14992 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14994 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14995 addition of objects until the code is not going to be able to fail.
14997 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14999 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15000 (add a missing NULL check, and correct them by moving the pointer
15001 operations after the actual check).
15003 2008-10-29 Robert Millan <rmh@aybabtu.com>
15005 * util/i386/pc/grub-install.in: Handle empty string as output from
15006 make_system_path_relative_to_its_root().
15008 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15010 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15011 circular metadata worst case scenario. If the metadata is circular
15012 then copy the wrap in place.
15013 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15014 project lib/format_text/layout.h
15015 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15017 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15019 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
15021 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15023 * util/update-grub_lib.in: Mention filename in warning message.
15025 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15027 * NEWS: Update for rename of update-grub to grub-mkconfig.
15029 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15031 * util/update-grub_lib.in: Copy to ...
15032 * util/grub-mkconfig_lib.in: ... this. Update all users.
15033 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
15034 * util/update-grub.in: Rename to ...
15035 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15036 option. Add `--output' option to allow users to specify the generated
15037 configuration file. Default to stdout.
15038 (update_grub_dir): Rename to ...
15039 (grub_mkconfig_dir): ... this.
15040 (grub_cfg): Default to an empty string.
15041 * conf/common.rmk (update-grub): Rename to ...
15042 (grub-mkconfig): ... this.
15043 (update-grub_lib): Copy to ...
15044 (grub-mkconfig_lib): ... this.
15045 (update-grub_SCRIPTS): Copy to ...
15046 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15047 (update-grub_DATA): Rename to ...
15048 (grub-mkconfig_DATA): ... this.
15050 2008-09-28 Robert Millan <rmh@aybabtu.com>
15052 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15053 to `modified'. Add the real `created' field.
15054 (grub_iso9660_uuid): Use `modified' rather than `created' for
15055 constructing the UUID.
15057 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
15059 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15060 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15062 2008-09-28 Bean <bean123ch@gmail.com>
15064 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15065 Thanks to Christian Franke for finding this bug.
15067 2008-09-25 Robert Millan <rmh@aybabtu.com>
15069 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15070 instances of grub_util_get_disk_name() (see previous commit).
15072 2008-09-25 Robert Millan <rmh@aybabtu.com>
15074 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15075 `util/i386/get_disk_name.c'.
15076 * conf/i386-efi.rmk: Likewise.
15077 * conf/x86_64-efi.rmk: Likewise.
15078 * conf/i386-coreboot.rmk: Likewise.
15079 * conf/i386-ieee1275.rmk: Likewise.
15080 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15081 `util/ieee1275/get_disk_name.c'.
15082 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15083 * util/ieee1275/get_disk_name.c: Remove file.
15084 * util/i386/get_disk_name.c: Remove file.
15085 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15086 "hd%d" for device.map entries, rather than using
15087 grub_util_get_disk_name().
15089 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15091 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15093 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15095 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15097 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15099 (GRUB_TERM_PPAGE): Changed to 0x4900.
15101 2008-09-24 Robert Millan <rmh@aybabtu.com>
15103 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15104 macros (they were i386-pc specific).
15105 * include/grub/sparc64/ieee1275/console.h: Likewise.
15106 * include/grub/efi/console.h: Likewise.
15108 2008-09-22 Bean <bean123ch@gmail.com>
15110 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15111 resident and in attribute list.
15113 * include/grub/ntfs.h (BMP_LEN): Removed.
15115 2008-09-22 Bean <bean123ch@gmail.com>
15117 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15118 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15120 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15121 error occurs, as grub_disk_open will call grub_disk_close, which will
15122 call p->close (scsi).
15124 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15126 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15127 (AC_PREREQ): Bumped to 2.59.
15128 (AC_TRY_COMPILE): Replace obsolete macro with ...
15129 (AC_COMPILE_IFELSE): ... this.
15130 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15131 (AC_LINK_IFELSE): ... this.
15133 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15135 * autogen.sh: Add a call to `gendistlist.sh'.
15137 2008-09-19 Christian Franke <franke@computer.org>
15139 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15140 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15141 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15142 Export __enable_execute_stack() to modules.
15143 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15146 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15148 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15151 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15153 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15154 #include <grub/util/hostdisk.h>.
15156 2008-09-08 Robert Millan <rmh@aybabtu.com>
15158 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15159 segments when their filesz is zero (grub_file_read() interprets
15160 zero-size as "read until EOF", which results in memory corruption).
15161 Use `lowest_segment' rather than 0 for calculating the current
15162 segment load address.
15164 2008-09-08 Robert Millan <rmh@aybabtu.com>
15166 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15167 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15168 clobbered useful information.
15170 2008-09-08 Robert Millan <rmh@aybabtu.com>
15172 * include/grub/util/biosdisk.h: Move to ...
15173 * include/grub/util/hostdisk.h: ... here. Update all users.
15174 * util/biosdisk.c: Move to ...
15175 * util/hostdisk.c: ... here. Update all users.
15177 2008-09-07 Robert Millan <rmh@aybabtu.com>
15179 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15181 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15182 and length can be stored directly in the `mbi->mmap_addr' and
15183 `mbi->mmap_length' struct fields.
15185 2008-09-07 Robert Millan <rmh@aybabtu.com>
15187 * conf/i386.rmk: New file. Provides declaration for building
15189 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15190 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15192 Include `conf/i386.mk'.
15193 * conf/i386-efi.rmk: Likewise.
15194 * conf/x86_64-efi.rmk: Likewise.
15195 * conf/i386-coreboot.rmk: Likewise.
15196 * conf/i386-ieee1275.rmk: Likewise.
15198 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15200 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15201 Adds optimization support for BGR based modes.
15203 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15204 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15205 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15206 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15207 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15208 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15209 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15210 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15211 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15212 (grub_video_i386_vbeblit_index_index): Likewise.
15213 (grub_video_i386_vbeblit_replace_directN): Added.
15214 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15215 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15216 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15217 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15218 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15219 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15220 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15221 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15222 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15223 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15224 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15225 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15226 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15228 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15229 (grub_video_i386_vbefill_R8G8B8): Likewise.
15230 (grub_video_i386_vbefill_index): Likewise.
15231 (grub_video_i386_vbefill_direct32): Added.
15232 (grub_video_i386_vbefill_direct24): Likewise.
15233 (grub_video_i386_vbefill_direct16): Likewise.
15234 (grub_video_i386_vbefill_direct8): Likewise.
15236 * include/grub/video.h (grub_video_blit_format): Removed
15237 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15238 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15239 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15240 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15241 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15243 * video/video.c (grub_video_get_blit_format): Updated to use new
15244 blit formats. Added handling for 16 bit color modes.
15246 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15248 (common_blitter): Updated to use new blitters.
15250 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15252 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15253 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15254 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15255 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15256 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15257 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15258 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15259 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15260 (grub_video_i386_vbeblit_index_index): Likewise.
15261 (grub_video_i386_vbeblit_replace_directN): Added.
15262 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15263 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15264 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15265 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15266 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15267 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15268 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15269 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15270 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15271 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15272 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15273 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15274 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15276 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15277 (grub_video_i386_vbefill_R8G8B8): Likewise.
15278 (grub_video_i386_vbefill_index): Likewise.
15279 (grub_video_i386_vbefill_direct32): Added.
15280 (grub_video_i386_vbefill_direct24): Likewise.
15281 (grub_video_i386_vbefill_direct16): Likewise.
15282 (grub_video_i386_vbefill_direct8): Likewise.
15284 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15287 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15290 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15293 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15296 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15298 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15301 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15303 * fs/iso9660.c (grub_iso9660_date): New structure.
15304 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15305 (grub_iso9660_uuid): New function.
15307 2008-09-05 Bean <bean123ch@gmail.com>
15309 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15311 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15312 insensitive bit for names in Win32 and Win32 & DOS namespace.
15314 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15316 * include/grub/types.h (LONG_MAX): Likewise.
15318 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15320 * util/getroot.c: Include <config.h>.
15321 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15322 add support for /dev/md/N devices and handle LVM double dash escaping.
15324 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15326 * config.guess: Update to latest version from config git.
15327 * config.sub: Likewise.
15329 2008-09-03 Robert Millan <rmh@aybabtu.com>
15331 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15332 `disk->total_sectors'.
15334 2008-09-01 Colin D Bennett <colin@gibibit.com>
15336 * include/grub/normal.h: Fixed incorrect comment for
15337 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15339 2008-09-01 Colin D Bennett <colin@gibibit.com>
15341 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15342 values with defines.
15344 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15345 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15346 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15347 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15348 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15349 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15350 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15351 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15352 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15353 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15354 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15355 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15356 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15357 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15358 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15359 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15360 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15361 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15362 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15364 2008-08-31 Robert Millan <rmh@aybabtu.com>
15366 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15368 (grub_multiboot): Fix a few warnings.
15370 2008-08-31 Robert Millan <rmh@aybabtu.com>
15372 * loader/i386/pc/multiboot.c: Update comment not to say that
15373 boot_device support is unimplemented.
15375 2008-08-31 Robert Millan <rmh@aybabtu.com>
15377 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15378 or memory map support are unimplemented.
15380 2008-08-31 Colin D Bennett <colin@gibibit.com>
15382 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15384 2008-08-31 Colin D Bennett <colin@gibibit.com>
15386 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15387 total video memory in 'vbeinfo' output; show color format details for
15390 2008-08-30 Pavel Roskin <proski@gnu.org>
15392 * util/genmoddep.c: Remove for real this time.
15393 * DISTLIST: Remove util/genmoddep.c.
15395 2008-08-30 Robert Millan <rmh@aybabtu.com>
15397 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15398 as required by Multiboot spec (it was already 4-byte aligned, but
15401 2008-08-29 Pavel Roskin <proski@gnu.org>
15403 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15404 * kern/powerpc/ieee1275/startup.S: ... this.
15405 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15406 * DISTLIST: Likewise.
15408 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15409 grub/cpu/kernel.h. Add start label for consistency with other
15410 platforms. Add grub_prefix immediately after start. Add jump
15411 to the code after grub_prefix.
15412 * include/grub/powerpc/kernel.h: Provide valid values for
15413 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15415 2008-08-29 Bean <bean123ch@gmail.com>
15417 * configure.ac: Change host_os to cygwin for mingw.
15418 (asprintf): New check for function.
15420 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15421 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15423 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15424 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15425 sync, sleep and grub_util_get_disk_size for mingw.
15427 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15428 to get size in mingw.
15429 (open_device): Use flag O_BINARY if it's defined.
15430 (find_root_device): Add dummy code for mingw.
15432 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15433 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15434 (get_scsi_disk_name): Return 0 for mingw.
15436 * util/hostfs.c: #include <grub/util/misc.h>.
15437 (grub_hostfs_open): Use "rb" flag to open file, use
15438 grub_util_get_disk_size to get disk size for mingw.
15440 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15441 (asprintf): New function if HAVE_ASPRINTF is not set.
15442 (sync): New function for mingw.
15444 (grub_util_get_disk_size): Likewise.
15446 2008-08-28 Pavel Roskin <proski@gnu.org>
15448 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15451 2008-08-28 Robert Millan <rmh@aybabtu.com>
15453 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15455 2008-08-28 Robert Millan <rmh@aybabtu.com>
15457 Change find_grub_drive() syntax so it doesn't prevent it from
15458 detecting NULL names as errors.
15460 * util/biosdisk.c (find_grub_drive): Move free slot search code
15462 (find_free_slot): ... to here.
15463 (read_device_map): Use find_free_slot() to search for free slots.
15465 2008-08-27 Marco Gerards <marco@gnu.org>
15467 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15468 (scsi_mod_SOURCES): New variable.
15469 (scsi_mod_CFLAGS): Likewise
15470 (scsi_mod_LDFLAGS): Likewise.
15472 * disk/scsi.c: New file.
15474 * include/grub/scsi.h: Likewise.
15476 * include/grub/scsicmd.h: Likewise.
15478 * disk/ata.c: Include <grub/scsi.h>.
15479 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15481 (grub_ata_iterate): Skip ATAPI devices.
15482 (grub_ata_open): Only handle ATAPI devices.
15483 (struct grub_atapi_read): Removed.
15484 (grub_atapi_readsector): Likewise.
15485 (grub_ata_read): No longer handle ATAPI devices.
15486 (grub_ata_write): Likewise.
15487 (grub_atapi_iterate): New function.
15488 (grub_atapi_read): Likewise.
15489 (grub_atapi_write): Likewise.
15490 (grub_atapi_open): Likewise.
15491 (grub_atapi_close): Likewise.
15492 (grub_atapi_dev): New variable.
15493 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15494 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15496 * include/grub/disk.h (enum grub_disk_dev_id): Add
15497 `GRUB_DISK_DEVICE_SCSI_ID'.
15499 2008-08-26 Robert Millan <rmh@aybabtu.com>
15501 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15502 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15505 2008-08-23 Bean <bean123ch@gmail.com>
15507 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15508 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15509 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15510 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15512 (raid5rec_mod_SOURCES): New macro.
15513 (raid5rec_mod_CFLAGS): Likewise.
15514 (raid5rec_mod_LDFLAGS): Likewise.
15515 (raid6rec_mod_SOURCES): Likewise.
15516 (raid6rec_mod_CFLAGS): Likewise.
15517 (raid6rec_mod_LDFLAGS): Likewise.
15518 (mdraid_mod_SOURCES): Likewise.
15519 (mdraid_mod_CFLAGS): Likewise.
15520 (mdraid_mod_LDFLAGS): Likewise.
15521 (dm_nv_mod_SOURCES): Likewise.
15522 (dm_nv_mod_CFLAGS): Likewise.
15523 (dm_nv_mod_LDFLAGS): Likewise.
15525 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15526 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15527 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15529 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15530 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15532 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15534 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15536 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15540 * disk/raid5_recover.c: New file.
15542 * disk/raid6_recover.c: Likewise.
15544 * disk/mdraid_linux.c: Likewise.
15546 * disk/dmraid_nvidia.c: Likewise.
15548 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15551 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15552 calculate the size of raid device.
15553 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15554 different layout of raid5.
15555 (grub_raid_scan_device): Remove code specific to mdraid.
15556 (grub_raid_list): New variable.
15557 (free_array): New function.
15558 (grub_raid_register): Likewise.
15559 (grub_raid_unregister): Likewise.
15560 (grub_raid_rescan): Likewise.
15561 (GRUB_MOD_INIT): Don't iterate device here.
15562 (GRUB_MOD_FINI): Use free_array to release resource.
15564 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15565 (grub_raid5_recover_func_t): New function variable type.
15566 (grub_raid6_recover_func_t): Likewise.
15567 (grub_raid5_recover_func): New variable.
15568 (grub_raid6_recover_func): Likewise.
15569 (grub_raid_register): New function.
15570 (grub_raid_unregister): Likewise.
15571 (grub_raid_rescan): Likewise.
15572 (grub_raid_block_xor): Likewise.
15574 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15575 (CMD_CRC): New macro.
15577 (read_file): Handle device as well as file.
15578 (cmd_crc): New function.
15579 (fstest): Handle multiple disks.
15580 (options): Remove part, raw and long, add root and diskcount.
15581 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15582 (main): Find the first non option entry and ignore subsequent options,
15583 add handling for the new options, support multiple disks.
15585 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15587 2008-08-23 Bean <bean123ch@gmail.com>
15589 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15591 * genfslist.sh: Ignore kernel.mod.
15593 * genpartmaplist.sh: Likewise.
15595 2008-08-23 Robert Millan <rmh@aybabtu.com>
15597 * util/getroot.c (find_root_device): Skip anything that starts with
15598 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15600 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15602 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15603 * util/grub.d/00_header.in: Allow the administrator to change default
15604 gfxmode via ${GRUB_GFXMODE}.
15606 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15608 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15610 2008-08-21 Robert Millan <rmh@aybabtu.com>
15612 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15614 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15615 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15617 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15619 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15620 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15622 2008-08-19 Robert Millan <rmh@aybabtu.com>
15624 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15625 (struct grub_virtual_screen): Remove `cursor_color'.
15626 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15628 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15630 2008-08-18 Robert Millan <rmh@aybabtu.com>
15632 Unify (identical) linux_normal.c files.
15633 * loader/i386/efi/linux_normal.c: Move from here ...
15634 * loader/linux_normal.c: ... to here. Update all users.
15635 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15636 * loader/i386/ieee1275/linux_normal.c: Likewise.
15638 2008-08-18 Robert Millan <rmh@aybabtu.com>
15640 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15641 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15642 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15643 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15644 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15646 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15647 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15648 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15649 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15650 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15651 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15652 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15653 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15654 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15655 portably using grub_getxy().
15656 Replace `-EFI' with `-bzImage' in boot message.
15658 2008-08-17 Robert Millan <rmh@aybabtu.com>
15660 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15662 2008-08-17 Robert Millan <rmh@aybabtu.com>
15664 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15666 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15667 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15668 (grub_machine_mmap_iterate): New function declaration.
15669 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15671 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15674 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15675 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15676 Move e820 parsing from here ...
15677 * kern/i386/pc/mmap.c: New file.
15678 (grub_machine_mmap_iterate): ... to here.
15680 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15681 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15682 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15683 (grub_available_iterate): Redeclare to return `void', and redeclare
15684 its hook to use grub_uint64_t as addr and size parameters, and rename
15686 (grub_machine_mmap_iterate): ... this. Update all users.
15688 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15689 to make it more readable. Rename to ...
15690 (grub_machine_mmap_iterate): ... this.
15692 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15693 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15694 (grub_multiboot): Allocate an extra region after the payload, and fill
15695 it with a Multiboot memory map. Adjust a.out loader to calculate size
15696 with the extra space.
15697 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15698 with the extra space.
15700 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15702 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15704 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15706 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15707 mdate-sh to the list `find' searches for.
15708 * DISTLIST: Regenerated.
15710 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15712 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15713 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15714 genmoddep.awk, gensymlist.sh.in.
15715 (DISTDIRS): Add bus, docs, hook, lib.
15716 * DISTLIST: Regenerated.
15717 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15719 2008-08-16 Robert Millan <rmh@aybabtu.com>
15721 * disk/raid.c (grub_raid_init): Handle/report errors set by
15722 grub_device_iterate().
15723 * disk/lvm.c (grub_lvm_init): Likewise.
15725 2008-08-15 Bean <bean123ch@gmail.com>
15727 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15729 (datetime_mod_SOURCES): New macro.
15730 (datetime_mod_CFLAGS): Likewise.
15731 (datetime_mod_LDFLAGS): Likewise.
15732 (date_mod_SOURCES): Likewise.
15733 (date_mod_CFLAGS): Likewise.
15734 (date_mod_LDFLAGS): Likewise.
15735 (datehook_mod_SOURCES): Likewise.
15736 (datehook_mod_CFLAGS): Likewise.
15737 (datehook_mod_LDFLAGS): Likewise.
15739 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15741 (datetime_mod_SOURCES): New macro.
15742 (datetime_mod_CFLAGS): Likewise.
15743 (datetime_mod_LDFLAGS): Likewise.
15744 (date_mod_SOURCES): Likewise.
15745 (date_mod_CFLAGS): Likewise.
15746 (date_mod_LDFLAGS): Likewise.
15747 (datehook_mod_SOURCES): Likewise.
15748 (datehook_mod_CFLAGS): Likewise.
15749 (datehook_mod_LDFLAGS): Likewise.
15751 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15753 (datetime_mod_SOURCES): New macro.
15754 (datetime_mod_CFLAGS): Likewise.
15755 (datetime_mod_LDFLAGS): Likewise.
15756 (date_mod_SOURCES): Likewise.
15757 (date_mod_CFLAGS): Likewise.
15758 (date_mod_LDFLAGS): Likewise.
15759 (datehook_mod_SOURCES): Likewise.
15760 (datehook_mod_CFLAGS): Likewise.
15761 (datehook_mod_LDFLAGS): Likewise.
15763 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15765 (datetime_mod_SOURCES): New macro.
15766 (datetime_mod_CFLAGS): Likewise.
15767 (datetime_mod_LDFLAGS): Likewise.
15768 (date_mod_SOURCES): Likewise.
15769 (date_mod_CFLAGS): Likewise.
15770 (date_mod_LDFLAGS): Likewise.
15771 (datehook_mod_SOURCES): Likewise.
15772 (datehook_mod_CFLAGS): Likewise.
15773 (datehook_mod_LDFLAGS): Likewise.
15775 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15777 (datetime_mod_SOURCES): New macro.
15778 (datetime_mod_CFLAGS): Likewise.
15779 (datetime_mod_LDFLAGS): Likewise.
15780 (date_mod_SOURCES): Likewise.
15781 (date_mod_CFLAGS): Likewise.
15782 (date_mod_LDFLAGS): Likewise.
15783 (datehook_mod_SOURCES): Likewise.
15784 (datehook_mod_CFLAGS): Likewise.
15785 (datehook_mod_LDFLAGS): Likewise.
15787 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15789 * commands/date.c: New file.
15791 * hook/datehook.c: Likewise.
15793 * include/grub/lib/datetime.h: Likewise.
15795 * include/grub/i386/cmos.h: Likewise.
15797 * lib/datetime.c: Likewise.
15799 * lib/i386/datetime.c: Likewise.
15801 * lib/efi/datetime.c: Likewise.
15803 2008-08-14 Robert Millan <rmh@aybabtu.com>
15805 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15806 (grub_mkelfimage_SOURCES): New variable.
15807 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15809 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15810 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15811 * conf/powerpc-ieee1275.rmk: Likewise.
15812 * conf/i386-ieee1275.rmk: Likewise.
15814 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15815 * kern/i386/coreboot/init.c: Likewise.
15817 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15818 with `<grub/cpu/kernel.h>'.
15819 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15821 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15822 * kern/i386/coreboot/startup.S: Likewise.
15824 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15825 (GRUB_MOD_GAP): Remove.
15826 * include/grub/powerpc/kernel.h: New file.
15827 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15828 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15829 * include/grub/i386/kernel.h: New file.
15830 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15831 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15832 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15834 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15836 Use --directory when invoking grub_mkimage.
15838 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15839 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15840 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15841 and GRUB_KERNEL_CPU_PREFIX.
15843 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15845 * include/grub/err.h (grub_err_printf): New function prototype.
15846 * util/misc.c (grub_err_printf): New function.
15847 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15849 * kern/err.c (grub_print_error): Use grub_err_printf.
15851 2008-08-13 Robert Millan <rmh@aybabtu.com>
15853 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15855 2008-08-13 Robert Millan <rmh@aybabtu.com>
15857 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15860 2008-08-12 Robert Millan <rmh@aybabtu.com>
15862 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15863 of the relocation code from here ...
15864 (grub_multiboot): ... to here.
15865 (forward_relocator, backward_relocator): Move from here ...
15866 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15867 (grub_multiboot_backward_relocator): ... to here.
15868 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15869 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15870 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15871 (grub_multiboot_forward_relocator_end)
15872 (grub_multiboot_backward_relocator)
15873 (grub_multiboot_backward_relocator_end): New variables.
15875 2008-08-12 Bean <bean123ch@gmail.com>
15877 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15879 2008-08-11 Robert Millan <rmh@aybabtu.com>
15881 * kern/i386/linuxbios/startup.S: Move from here ...
15882 * kern/i386/coreboot/startup.S: ... to here.
15884 * kern/i386/linuxbios/init.c: Move from here ...
15885 * kern/i386/coreboot/init.c: ... to here.
15887 * kern/i386/linuxbios/table.c: Move from here ...
15888 * kern/i386/coreboot/mmap.c: ... to here.
15890 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15892 2008-08-11 Robert Millan <rmh@aybabtu.com>
15894 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15895 errors. Leave it to the upper layer to handle them.
15897 2008-08-09 Christian Franke <franke@computer.org>
15899 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15900 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15901 Install `grub.d/10_windows' only on Cygwin.
15902 * configure.ac: Add subst of `target_os'.
15903 Check `target_os' also before setting TARGET_OBJ2ELF.
15904 Add `--enable-grub-pe2elf'.
15906 2008-08-08 Robert Millan <rmh@aybabtu.com>
15908 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15909 (grub_last_time): Change type to grub_uint64_t.
15910 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15911 (grub_disk_close): Likewise.
15913 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15914 (run_menu): Migrate code from to using grub_get_time_ms().
15916 * util/misc.c (grub_get_time_ms): New function.
15918 2008-08-08 Marco Gerards <marco@gnu.org>
15920 * disk/ata.c (grub_ata_regget): Change return type to
15922 (grub_ata_regget2): Likewise.
15923 (grub_ata_wait_status): New function.
15924 (grub_ata_wait_busy): Removed function, updated all users to use
15925 `grub_ata_wait_status'.
15926 (grub_ata_wait_drq): Likewise.
15927 (grub_ata_cmd): New function.
15928 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15930 (grub_ata_pio_write): Add error handling.
15931 (grub_atapi_identify): Likewise.
15932 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15934 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15935 handling. Actually use the detected registers. Reorder the
15936 detection logic such that it is easier to read.
15937 (grub_ata_pciinit): Do not assign the same ID to each controller.
15938 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15940 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15942 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15944 2008-08-08 Marco Gerards <marco@gnu.org>
15948 2008-08-07 Bean <bean123ch@gmail.com>
15950 * include/grub/x86_64/pci.h: New file.
15952 2008-08-07 Christian Franke <franke@computer.org>
15954 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15955 (TIMER2_GATE): Likewise.
15956 (grub_pit_wait): Add enable/disable of the timer2 gate
15957 bit of port 0x61. This fixes a possible infinite loop.
15959 2008-08-07 Bean <bean123ch@gmail.com>
15961 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15962 kern/i386/tsc.c and kern/i386/pit.c.
15964 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15967 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15970 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15972 2008-08-07 Bean <bean123ch@gmail.com>
15974 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15976 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15978 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15979 multiple inclusion. Add #include <grub/types.h>.
15981 2008-08-06 Christian Franke <franke@computer.org>
15983 * conf/common.rmk: Build and install `10_windows'.
15984 * util/grub.d/10_windows.in: New script.
15986 2008-08-06 Pavel Roskin <proski@gnu.org>
15988 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15990 2008-08-06 Robert Millan <rmh@aybabtu.com>
15992 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15993 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15995 2008-08-06 Bean <bean123ch@gmail.com>
15997 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15998 (grub_pxefs_fs_int): Remove dummy definition.
15999 (grub_pxefs_open): Use data->block_size to store the current block
16001 (grub_pxefs_read): Use block size stored in data->block_size. As the
16002 value of grub_pxe_blksize can be changed after the file is opened.
16004 2008-08-06 Bean <bean123ch@gmail.com>
16006 * fs/i386/pc/pxe.c (curr_file): new variable.
16007 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16008 require the dummy internal file system anymore.
16009 (grub_pxefs_read): Removed.
16010 (grub_pxefs_close): Likewise.
16011 (grub_pxefs_fs_int): Likewise.
16012 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16013 connection when we switch file.
16014 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16016 2008-08-06 Robert Millan <rmh@aybabtu.com>
16018 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16020 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16021 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16023 * kern/i386/halt.c: New file.
16024 * kern/i386/reboot.c: Likewise.
16025 * include/grub/i386/reboot.h: Likewise.
16026 * include/grub/i386/halt.h: Likewise.
16028 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16029 Include `<grub/cpu/halt.h>'.
16030 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16031 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16033 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16034 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16035 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16036 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16037 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16038 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16040 * include/grub/i386/at_keyboard.h: ... to here.
16042 2008-08-05 Robert Millan <rmh@aybabtu.com>
16044 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16045 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16046 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16047 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16048 `kern/generic/millisleep.c'.
16050 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16051 instead of grub_get_rtc().
16052 (grub_tsc_init): Initialize `tsc_boot_time'.
16054 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16055 (grub_machine_init): Use grub_tsc_init() rather than
16056 installing an RTC-based handler via grub_install_get_time_ms().
16058 * kern/i386/pit.c: New file.
16059 * include/grub/i386/pit.h: Likewise.
16061 2008-08-05 Bean <bean123ch@gmail.com>
16063 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16065 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16066 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16067 (pxe_mod_SOURCES): New macro.
16068 (pxe_mod_CFLAGS): Likewise.
16069 (pxe_mod_LDFLAGS): Likewise.
16070 (pxecmd_mod_SOURCES): Likewise.
16071 (pxecmd_mod_CFLAGS): Likewise.
16072 (pxecmd_mod_LDFLAGS): Likewise.
16074 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16075 (grub_pxe_call): Likewise.
16077 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16079 * commands/i386/pc/pxecmd.c: New file.
16081 * fs/i386/pc/pxe.c: Likewise.
16083 * include/grub/i386/pc/pxe.h: Likewise.
16085 2008-08-05 Bean <bean123ch@gmail.com>
16087 * util/console.c (grub_console_cur_color): New variable.
16088 (grub_console_standard_color): Likewise.
16089 (grub_console_normal_color): Likewise.
16090 (grub_console_highlight_color): Likewise.
16091 (color_map): Likewise.
16092 (use_color): Likewise.
16093 (NUM_COLORS): New macro.
16094 (grub_ncurses_setcolorstate): Handle color properly.
16095 (grub_ncurses_setcolor): Don't change color here, just remember the
16096 settings, color will be set in grub_ncurses_setcolorstate.
16097 (grub_ncurses_getcolor): New function.
16098 (grub_ncurses_init): Initialize color pairs.
16099 (grub_ncurses_term): New member grub_ncurses_getcolor.
16101 2008-08-05 Colin D Bennett <colin@gibibit.com>
16103 High resolution timer support. Implemented for x86 CPUs using TSC.
16104 Extracted generic grub_millisleep() so it's linked in only as needed.
16105 This requires a Pentium compatible CPU; if the RDTSC instruction is
16106 not supported, then it falls back on the generic grub_get_time_ms()
16107 implementation that uses the machine's RTC.
16109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16110 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16111 `kern/generic/millisleep.c'.
16113 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16114 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16116 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16117 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16119 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16121 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16122 `kern/generic/millisleep.c'.
16124 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16126 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16128 * kern/generic/rtc_get_time_ms.c: New file.
16130 * kern/generic/millisleep.c: New file.
16132 * kern/misc.c: Don't include
16133 <kern/time.h> anymore.
16134 (grub_millisleep_generic): Removed.
16136 * commands/sleep.c (grub_interruptible_millisleep): Uses
16137 grub_get_time_ms() instead of grub_get_rtc().
16139 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16141 (grub_cpu_is_cpuid_supported): New inline function.
16142 (grub_cpu_is_tsc_supported): New inline function.
16143 (grub_tsc_init): New function prototype.
16144 (grub_tsc_get_time_ms): New function prototype.
16146 * kern/i386/tsc.c (grub_get_time_ms): New file.
16148 * include/grub/time.h: Include <grub/types.h.
16149 (grub_millisleep_generic): Removed.
16150 (grub_get_time_ms): New prototype.
16151 (grub_install_get_time_ms): New prototype.
16152 (grub_rtc_get_time_ms): New prototype.
16154 * kern/time.c (grub_get_time_ms): New function.
16155 (grub_install_get_time_ms): New function.
16157 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16158 <grub/time.h> anymore.
16159 (grub_millisleep): Removed.
16160 (grub_machine_init): Call grub_tsc_init.
16162 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16163 get_time_ms() implementation.
16165 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16166 (ieee1275_get_time_ms): New function.
16167 (grub_machine_init): Install get_time_ms() implementation.
16169 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16170 (grub_machine_init): Call grub_tsc_init().
16171 (grub_millisleep): Removed.
16173 * kern/ieee1275/init.c (grub_millisleep): Removed.
16174 (grub_machine_init): Install ieee1275_get_time_ms()
16176 (ieee1275_get_time_ms): New function.
16177 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16180 2008-08-05 Marco Gerards <marco@gnu.org>
16182 * disk/ata.c: Include <grub/pci.h>.
16183 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16184 (grub_ata_initialize): Rewritten.
16185 (grub_ata_device_initialize): New function.
16187 2008-08-04 Pavel Roskin <proski@gnu.org>
16189 * kern/main.c: Include grub/mm.h.
16191 2008-08-04 Robert Millan <rmh@aybabtu.com>
16193 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16194 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16195 corruption problem).
16197 2008-08-04 Robert Millan <rmh@aybabtu.com>
16199 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16200 warnings introduced in my last commit.
16202 2008-08-03 Robert Millan <rmh@aybabtu.com>
16204 Make PCI available on all i386 architectures.
16206 * include/grub/i386/pc/pci.h: Move from here ...
16207 * include/grub/i386/pci.h: ... to here.
16209 * include/grub/i386/pc/pci.h: Remove.
16210 * include/grub/i386/efi/pci.h: Remove.
16211 * include/grub/x86_64/efi/pci.h: Remove.
16213 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16214 `<grub/cpu/pci.h>'.
16216 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16217 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16218 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16220 * conf/i386-ieee1275.rmk: Likewise.
16222 2008-08-03 Robert Millan <rmh@aybabtu.com>
16224 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16225 (grub_console_setcursor): Make it possible to set cursor off.
16227 2008-08-03 Robert Millan <rmh@aybabtu.com>
16229 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16230 of modules instead of assuming which platform provides what.
16231 * util/update-grub.in: Likewise.
16233 2008-08-03 Robert Millan <rmh@aybabtu.com>
16235 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16236 instead of `grub_install_dos_part' to determine whether a drive needs
16237 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16238 because it can be overridden when loading GRUB via Multiboot).
16240 2008-08-02 Robert Millan <rmh@aybabtu.com>
16242 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16244 2008-08-02 Robert Millan <rmh@aybabtu.com>
16246 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16247 of informational grub_dprintf() calls.
16249 2008-08-02 Robert Millan <rmh@aybabtu.com>
16251 * disk/memdisk.c (memdisk_size): Don't initialize.
16252 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16254 * include/grub/i386/pc/kernel.h
16255 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16256 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16257 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16258 (grub_arch_memdisk_size): Remove.
16260 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16261 field (was only used to transfer a constant). Add `type' field to
16262 support multiple module types.
16263 (grub_module_iterate): New function.
16265 * kern/device.c (grub_device_open): Do not hide error messages
16266 when grub_disk_open() fails. Use grub_print_error() instead.
16268 * kern/i386/pc/init.c (grub_arch_modules_addr)
16269 (grub_arch_memdisk_size): Remove functions.
16270 (grub_arch_modules_addr): Return the module address in high memory
16271 (now that it isn't copied anymore).
16273 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16274 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16275 decompression routine (grub_total_module_size already includes that
16276 now). Don't copy modules back to low memory.
16278 * kern/main.c: Include `<grub/mm.h>'.
16279 (grub_load_modules): Split out (and use) ...
16280 (grub_module_iterate): ... this function, which iterates through
16281 module objects and runs a hook.
16282 Comment out grub_mm_init_region() call, as it would cause non-ELF
16283 modules to be overwritten.
16285 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16286 the memdisk image in its own region, make it part of the module list.
16287 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16288 (main): Parse --memdisk|-m option, and pass user-provided path as
16289 parameter to generate_image().
16290 (add_segments): Pass `memdisk_path' down to load_modules().
16291 (load_modules): Embed memdisk image in module section when requested.
16292 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16293 `header.type' instead of `header.offset'.
16295 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16296 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16297 (memdisk_mod_LDFLAGS): New variables.
16298 * conf/i386-coreboot.rmk: Likewise.
16299 * conf/i386-ieee1275.rmk: Likewise.
16301 2008-08-02 Robert Millan <rmh@aybabtu.com>
16303 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16304 (backward_relocator): New variables. Used to allocate and relocate
16305 the payload, respectively.
16306 (grub_multiboot_load_elf32): Load into heap instead of requested
16307 address, install the appropriate relocator code in each bound of
16308 the payload, and set the entry point such that
16309 grub_multiboot_real_boot() will jump to one of them.
16311 * kern/i386/loader.S (grub_multiboot_payload_size)
16312 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16313 (grub_multiboot_payload_entry_offset): New variables.
16314 (grub_multiboot_real_boot): Set cpu context to what the relocator
16315 expects, and jump to the relocator instead of the payload.
16317 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16318 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16319 (grub_multiboot_payload_entry_offset): Export.
16321 2008-08-01 Bean <bean123ch@gmail.com>
16323 * normal/menu_entry.c (editor_getline): Don't return the original
16324 string as result, as it will be released by lexer once it has done
16327 2008-08-01 Robert Millan <rmh@aybabtu.com>
16329 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16330 within menuentries, not before them.
16331 util/grub.d/10_hurd.in: Likewise.
16333 2008-08-01 Bean <bean123ch@gmail.com>
16335 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16336 (bufio_mod_SOURCES): New macro.
16337 (bufio_mod_CFLAGS): Likewise.
16338 (bufio_mod_LDFLAGS): Likewise.
16340 * include/grub/bufio.h: New file.
16342 * io/bufio.c: Likewise.
16344 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16345 (grub_video_reader_png): Use grub_buffile_open to open file.
16347 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16348 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16350 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16351 (grub_video_reader_tga): Use grub_buffile_open to open file.
16353 * font/manager.c: Include <grub/bufio.h>.
16354 (add_font): Use grub_buffile_open to open file.
16356 2008-07-31 Robert Millan <rmh@aybabtu.com>
16358 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16359 ELF segments, use a macro for arbitrarily accessing any of them instead
16360 of preparing a pointer that allows access to one at a time.
16361 (grub_multiboot_load_elf64): Likewise.
16363 2008-07-31 Bean <bean123ch@gmail.com>
16365 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16366 GRUB_KERNEL_MACHINE_DATA_END.
16368 2008-07-30 Robert Millan <rmh@aybabtu.com>
16370 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16371 Increase from 0x50 to 0x60.
16372 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16373 use UUIDs to identify the root drive for them. If that's not
16375 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16376 check, for cross-disk installs.
16378 2008-07-30 Robert Millan <rmh@aybabtu.com>
16380 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16381 is non-empty, use it to set the `prefix' environment variable instead
16382 of the usual approach.
16383 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16384 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16385 environment variable instead of dummy make_install_device().
16387 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16388 (start): Insert a data section, with `grub_prefix' variable.
16389 * kern/i386/linuxbios/startup.S: Likewise.
16391 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16392 New variable reference.
16393 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16394 New macro. Defines offset of `grub_prefix' within startup.S (relative
16396 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16397 section within startup.S (relative to `start').
16398 * include/grub/i386/coreboot/kernel.h: Likewise.
16400 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16401 Overwrite grub_prefix with its contents, at the beginning of the
16403 (main): Understand -p|--prefix.
16405 2008-07-30 Robert Millan <rmh@aybabtu.com>
16407 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16409 2008-07-30 Robert Millan <rmh@aybabtu.com>
16411 * term/i386/pc/vga_text.c (grub_console_cls): Use
16412 grub_console_gotoxy() to go back to beginning of the screen.
16413 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16415 2008-07-29 Christian Franke <franke@computer.org>
16417 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16418 Add conversion of emulated mount points on Cygwin.
16420 2008-07-29 Christian Franke <franke@computer.org>
16422 * util/update-grub.in: Add a check for admin
16424 Remove old `grub.cfg.new' before creation.
16425 Add `-f' to `mv' to handle the different filesystem
16426 semantics of Windows.
16428 2008-07-29 Bean <bean123ch@gmail.com>
16430 * normal/main.c (get_line): Fix buffer overflow bug.
16432 2008-07-28 Robert Millan <rmh@aybabtu.com>
16434 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16435 (struct grub_apple_header): New struct. Describes the layout of
16436 the partmap header.
16437 (apple_partition_map_iterate): Check the header magic as well as the
16438 partition magic (which was already being checked).
16440 2008-07-28 Pavel Roskin <proski@gnu.org>
16442 * genmk.rb: Add a warning to the beginning of the output that
16443 it's a generated file and should not be edited.
16445 2008-07-28 Robert Millan <rmh@aybabtu.com>
16447 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16448 with the same number are found, just use issue a warning with
16449 grub_dprintf(), as this error has been reported to be non-fatal.
16451 2008-07-27 Robert Millan <rmh@aybabtu.com>
16453 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16456 2008-07-27 Bean <bean123ch@gmail.com>
16458 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16459 (grub_fat_find_dir): Ignore case when comparing filename.
16461 2008-07-27 Bean <bean123ch@gmail.com>
16463 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16464 smallino, as it's more descriptive, and i8count can be confused with
16465 the other field count.
16466 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16469 2008-07-27 Bean <bean123ch@gmail.com>
16471 * commands/crc.c: New file.
16473 * lib/crc.c: Likewise.
16475 * include/grub/lib/crc.h: Likewise.
16477 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16479 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16480 (hexdump): Move this function to ...
16482 * lib/hexdump.c: ... here.
16484 * include/grub/hexdump.h: Renamed to ...
16486 * include/grub/lib/hexdump.h: ... this.
16488 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16490 * util/grub-editenv.c: Likewise.
16492 * include/envblk.h: Renamed to ...
16494 * include/lib/envblk.h: ... this.
16496 * util/envblk.c: Renamed to ...
16498 * lib/envblk.c: ... this.
16500 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16502 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16503 (pkglib_MODULES): Add crc.mod.
16504 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16505 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16506 (crc_mod_SOURCES): New macro.
16507 (crc_mod_CFLAGS): Likewise.
16508 (crc_mod_LDFLAGS): Likewise.
16510 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16512 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16514 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16518 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16520 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16522 * commands/help.c: Include <grub/term.h>.
16523 (TERM_WIDTH): Removed. Updated all users.
16525 2008-07-27 Pavel Roskin <proski@gnu.org>
16527 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16528 spurious warnings about a comment within a comment.
16530 2008-07-25 Robert Millan <rmh@aybabtu.com>
16532 * util/getroot.c (find_root_device): Skip devices that match
16533 /dev/dm-[0-9]. This lets the real device be found for any type of
16534 abstraction (LVM, EVMS, RAID..).
16535 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16536 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16537 device is found first, find_root_device() will now skip it.
16539 2008-07-24 Pavel Roskin <proski@gnu.org>
16541 * include/grub/types.h: Use __builtin_bswap32() and
16542 __builtin_bswap64() with gcc 4.3 and newer.
16544 2008-07-24 Christian Franke <franke@computer.org>
16546 * util/i386/pc/grub-install.in: If `--debug' is specified,
16547 pass `--verbose' to grub-setup.
16548 Abort script if make_system_path_relative_to_its_root() fails.
16550 2008-07-24 Bean <bean123ch@gmail.com>
16552 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16553 variable `target_platform' should be `platform'.
16555 2008-07-24 Bean <bean123ch@gmail.com>
16557 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16558 (grub_png_init_fixed_block): New function.
16559 (grub_png_decode_image_data): Handle fixed huffman code compression.
16561 2008-07-24 Bean <bean123ch@gmail.com>
16563 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16564 (grub_pe2elf_SOURCES): New macro.
16565 (CLEANFILES): Add grub-pe2elf.
16567 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16568 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16569 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16570 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16571 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16572 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16573 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16574 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16575 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16576 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16577 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16578 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16579 (GRUB_PE32_DT_FUNCTION): Likewise.
16580 (GRUB_PE32_REL_I386_DIR32): Likewise.
16581 (GRUB_PE32_REL_I386_REL32): Likewise.
16582 (grub_pe32_symbol): New structure.
16583 (grub_pe32_reloc): Likewise.
16585 * util/grub-pe2elf.c: New file.
16587 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16588 start symbol in non pc platform.
16590 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16592 The following patches are from Christian Franke.
16594 * include/grub/dl.h: Remove .previous, gas supports this only
16597 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16598 Remove .type, gas supports this only for ELF format.
16600 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16601 nullbytes in symbol table. This fixes an infinite loop if table is
16604 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16605 TARGET_IMG_LDFLAGS and EXEEXT.
16607 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16608 TARGET_IMG_LDFLAGS_AC.
16609 (grub_CHECK_STACK_ARG_PROBE): New function.
16611 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16613 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16615 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16616 to set TARGET_IMG_LD* accordingly.
16617 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16618 Add call to grub_CHECK_STACK_ARG_PROBE.
16619 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16621 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16623 * genmk.rb: Add EXEEXT to CLEANFILES.
16625 2008-07-23 Robert Millan <rmh@aybabtu.com>
16627 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16628 define the codes for arrows and lines used for the menu).
16629 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16632 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16633 fonts, because the latter are too slow.
16635 2008-07-21 Bean <bean123ch@gmail.com>
16637 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16638 a20. Run keyboard test last, as it will cause macbook to halt.
16640 2008-07-18 Pavel Roskin <proski@gnu.org>
16642 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16643 load foreign architecture modules correctly anyway. Keep
16644 support for loading host architecture modules, whether we
16645 compile them or not.
16647 2008-07-17 Pavel Roskin <proski@gnu.org>
16649 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16650 change target_cpu. The compiler default can mismatch target_cpu
16653 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16654 * kern/efi/efi.c: Likewise.
16656 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16657 target compiler is functional.
16658 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16661 * configure.ac: Default to efi platform for x86_64-apple. Allow
16662 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16663 adjustments from the rest, only do them if target is not
16664 explicitly given. Merge other adjustments with the final sanity
16665 check. Remove an extraneous check for supported CPU. Be
16666 specific which CPU and which platform is not supported.
16668 * configure.ac: Default to pc platform for x86_64.
16670 2008-07-17 Robert Millan <rmh@aybabtu.com>
16672 Partial LinuxBIOS -> Coreboot rename.
16674 * conf/i386-linuxbios.rmk: Renamed to ...
16675 * conf/i386-coreboot.rmk: ... this.
16676 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16677 * configure.ac: Accept "coreboot" as input platform (but maintain
16678 compatibility with "linuxbios").
16679 * include/grub/i386/linuxbios: Renamed to ...
16680 * include/grub/i386/coreboot: ... this.
16682 2008-07-17 Bean <bean123ch@gmail.com>
16684 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16685 (appleldr_mod_SOURCE): New variable.
16686 (appleldr_mod_CFLAGS): Likewise.
16687 (appleldr_mod_LDFLAGS): Likewise.
16688 (pci_mod_SOURCES): Likewise.
16689 (pci_mod_CFLAGS): Likewise.
16690 (pci_mod_LDFLAGS): Likewise.
16691 (lspci_mod_SOURCES): Likewise.
16692 (lspci_mod_CFLAGS): Likewise.
16693 (lspci_mod_LDFLAGS): Likewise.
16695 * conf/x86_64-efi.rmk: New file.
16697 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16699 (grub_efidisk_write): Likewise.
16701 * include/efi/api.h (efi_call_0): New macro.
16702 (efi_call_1): Likewise.
16703 (efi_call_2): Likewise.
16704 (efi_call_3): Likewise.
16705 (efi_call_4): Likewise.
16706 (efi_call_5): Likewise.
16707 (efi_call_6): Likewise.
16709 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16710 grub_rescue_cmd_chainloader.
16712 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16713 (grub_pe32_optional_header): Change some fields based on i386 or
16715 (GRUB_PE32_PE32_MAGIC): Likewise.
16717 * include/grub/efi/uga_draw.h: New file.
16719 * include/grub/elf.h (STN_ABS): New constant.
16720 (R_X86_64_NONE): Relocation constant for x86_64.
16721 (R_X86_64_64): Likewise.
16722 (R_X86_64_PC32): Likewise.
16723 (R_X86_64_GOT32): Likewise.
16724 (R_X86_64_PLT32): Likewise.
16725 (R_X86_64_COPY): Likewise.
16726 (R_X86_64_GLOB_DAT): Likewise.
16727 (R_X86_64_JUMP_SLOT): Likewise.
16728 (R_X86_64_RELATIVE): Likewise.
16729 (R_X86_64_GOTPCREL): Likewise.
16730 (R_X86_64_32): Likewise.
16731 (R_X86_64_32S): Likewise.
16732 (R_X86_64_16): Likewise.
16733 (R_X86_64_PC16): Likewise.
16734 (R_X86_64_8): Likewise.
16735 (R_X86_64_PC8): Likewise.
16737 * include/grub/i386/efi/pci.h: New file.
16739 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16740 Change it value based on platform.
16741 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16742 (GRUB_E820_RAM): Likewise.
16743 (GRUB_E820_RESERVED): Likewise.
16744 (GRUB_E820_ACPI): Likewise.
16745 (GRUB_E820_NVS): Likewise.
16746 (GRUB_E820_EXEC_CODE): Likewise.
16747 (GRUB_E820_MAX_ENTRY): Likewise.
16748 (grub_e820_mmap): New structure.
16749 (linux_kernel_header): Change the efi field according to different
16750 kernel version, also field from linux_kernel_header.
16752 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16754 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16755 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16756 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16757 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16758 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16759 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16760 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16761 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16762 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16763 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16765 * include/grub/x86_64/efi/kernel.h: New file.
16767 * include/grub/x86_64/efi/loader.h: Likewise.
16769 * include/grub/x86_64/efi/machine.h: Likewise.
16771 * include/grub/x86_64/efi/pci.h: Likewise.
16773 * include/grub/x86_64/efi/time.h: Likewise.
16775 * include/grub/x86_64/linux.h: Likewise.
16777 * include/grub/x86_64/setjmp.h: Likewise.
16779 * include/grub/x86_64/time.h: Likewise.
16781 * include/grub/x86_64/types.h: Likewise.
16783 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16784 GRUB_TARGET_SIZEOF_VOID_P.
16786 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16787 (grub_efi_locate_handle): Likewise.
16788 (grub_efi_open_protocol): Likewise.
16789 (grub_efi_set_text_mode): Likewise.
16790 (grub_efi_stall): Likewise.
16791 (grub_exit): Likewise.
16792 (grub_reboot): Likewise.
16793 (grub_halt): Likewise.
16794 (grub_efi_exit_boot_services): Likewise.
16795 (grub_get_rtc): Likewise.
16797 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16798 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16799 (grub_efi_allocate_pages): Wrap efi calls.
16800 (grub_efi_free_pages): Wrap efi calls.
16801 (grub_efi_get_memory_map): Wrap efi calls.
16803 * kern/x86_64/dl.c: New file.
16805 * kern/x86_64/efi/callwrap.S: Likewise.
16807 * kern/x86_64/efi/startup.S: Likewise.
16809 * loader/efi/appleloader.c: Likewise.
16811 * loader/efi/chainloader.c (cmdline): New variable.
16812 (grub_chainloader_unload): Wrap efi calls.
16813 (grub_chainloader_boot): Likewise.
16814 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16817 * loader/efi/chainloader_normal.c (chainloader_command):
16818 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16821 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16823 (grub_e820_add_region): New function.
16824 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16826 (grub_find_video_card): New function.
16827 (grub_linux_setup_video): New function.
16828 (grub_rescue_cmd_linux): Probe for video information.
16830 * normal/x86_64/setjmp.S: New file.
16832 * term/efi/console.c (map_char): New function.
16833 (grub_console_putchar): Map unicode char.
16834 (grub_console_checkkey): Wrap efi calls.
16835 (grub_console_getkey): Likewise.
16836 (grub_console_getwh): Likewise.
16837 (grub_console_gotoxy): Likewise.
16838 (grub_console_cls): Likewise.
16839 (grub_console_setcolorstate): Likewise.
16840 (grub_console_setcursor): Likewise.
16842 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16844 2008-07-16 Pavel Roskin <proski@gnu.org>
16846 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16849 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16850 pointer, not an integer. This fixes a warning and prevents
16851 precision loss on 64-bit systems.
16852 (relocate_addresses): Remove unneeded cast.
16854 2008-07-15 Pavel Roskin <proski@gnu.org>
16856 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16858 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16860 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16861 Fix comparison between signed and unsigned.
16863 * include/grub/i386/ieee1275/console.h: Declare
16864 grub_console_init() and grub_console_fini().
16866 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16867 It's empty and unused.
16869 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16870 beginning to avoid warnings with some compilers.
16872 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16873 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16875 2008-07-14 Pavel Roskin <proski@gnu.org>
16877 * kern/env.c (grub_register_variable_hook): Don't copy empty
16878 string, it leaks memory. Pass "" to grub_env_set(), it should
16879 handle constant strings.
16881 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16882 * commands/cmp.c (grub_cmd_cmp): Likewise.
16883 * kern/dl.c (grub_dl_flush_cache): Likewise.
16884 (grub_dl_load_core): Likewise.
16885 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16886 (grub_elf64_load_phdrs): Likewise.
16888 2008-07-13 Pavel Roskin <proski@gnu.org>
16890 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16891 between signed and unsigned.
16892 (LzmaEnc_Finish): Fix warning about an unused parameter.
16894 2008-07-13 Bean <bean123ch@gmail.com>
16896 * Makefile.in (enable_lzo): New rule.
16898 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16900 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16902 * boot/i386/pc/lnxboot.S: #include <config.h>.
16904 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16905 its value according to the compression algorithm used, lzo or lzma.
16907 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16908 compression algorithm according to configure macro.
16910 * kern/i386/pc/startup.S (codestart): Likewise.
16912 * kern/i386/pc/lzma_decode.S: New file.
16914 * include/grub/lib/LzFind.h: Likewise.
16916 * include/grub/lib/LzHash.h: Likewise.
16918 * include/grub/lib/LzmaDec.h: Likewise.
16920 * include/grub/lib/LzmaEnc.h: Likewise.
16922 * include/grub/lib/LzmaTypes.h: Likewise.
16924 * lib/LzFind.c: Likewise.
16926 * lib/LzmaDec.c: Likewise.
16928 * lib/LzmaEnc.c: Likewise.
16930 2008-07-13 Bean <bean123ch@gmail.com>
16932 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16933 (grub_ext4_extent_header): New structure.
16934 (grub_ext4_extent): Likewise.
16935 (grub_ext4_extent_idx): Likewise.
16936 (grub_ext4_find_leaf): New function.
16937 (grub_ext2_read_block): Handle extents.
16939 2008-07-12 Robert Millan <rmh@aybabtu.com>
16941 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16943 2008-07-11 Robert Millan <rmh@aybabtu.com>
16945 * util/grub.d/40_custom.in: New file. Example on how to add custom
16946 entries to /etc/grub.d.
16947 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16948 40_custom (implicitly, by merging all the grub.d rules).
16950 2008-07-11 Pavel Roskin <proski@gnu.org>
16952 * commands/read.c (grub_getline): Fix invalid memory access.
16953 Don't add newline to the variable value.
16955 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16956 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16957 (serial_hw_get_port): Check validity of the port number.
16958 (grub_cmd_serial): Check return value of serial_hw_get_port().
16960 2008-07-07 Pavel Roskin <proski@gnu.org>
16962 * boot/i386/pc/diskboot.S (notification_string): Replace
16963 "Loading kernel" with just "loading". This is shorter, less
16964 confusing and saves a few bytes for possible future changes.
16966 2008-07-05 Pavel Roskin <proski@gnu.org>
16968 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16969 size for ATAPI devices, they are undefined. Output sector
16970 number in decimal form.
16972 * disk/ata.c: Use named constants for status bits.
16974 2008-07-04 Pavel Roskin <proski@gnu.org>
16976 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16977 grub_addr_t before casting it to the void pointer to fix a
16978 warning. Non-addressable regions are discarded earlier.
16979 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16980 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16981 (check_signature): Don't shadow table_header.
16982 (grub_linuxbios_table_iterate): Cast numeric constants to
16983 grub_linuxbios_table_header_t.
16984 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16987 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16990 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16991 pointer, which can cause warnings. Support 64-bit addresses.
16993 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16994 of sizeof(long). This fixes PowerPC image generation on x86_64.
16996 2008-07-04 Robert Millan <rmh@aybabtu.com>
16998 This fixes a performance issue when pc & gpt partmap iterators
16999 didn't abort iteration even after our hook found what it was
17000 looking for (often causing expensive probes of non-existent drives).
17002 Some callers relied on previous buggy behaviour, since they would
17003 raise an error when their own hooks caused early abortion of its
17006 * kern/device.c (grub_device_open): Improve error message.
17007 * disk/lvm.c (grub_lvm_open): Likewise.
17008 * disk/raid.c (grub_raid_open): Likewise.
17010 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17011 when hook requests it, independently of grub_errno.
17012 (pc_partition_map_probe): Do not fail when find_func() caused
17013 early abortion of pc_partition_map_iterate().
17015 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17016 when hook requests it, independently of grub_errno.
17017 (gpt_partition_map_probe): Do not fail when find_func() caused
17018 early abortion of gpt_partition_map_iterate().
17020 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17021 when hook requests it, independently of grub_errno. Do not fail when
17022 part_map_iterate_hook() caused early abortion of p->iterate().
17024 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17025 when grub_partition_iterate() returned with non-zero.
17027 2008-07-03 Pavel Roskin <proski@gnu.org>
17029 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17030 like we do in grub_ata_pio_read().
17031 (grub_ata_readwrite): Always write individual sectors. Fix the
17032 sector count for the remainder.
17033 (grub_ata_write): Enable writing to ATA devices. Correctly
17034 report error for ATAPI devices.
17036 2008-07-02 Pavel Roskin <proski@gnu.org>
17038 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17041 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17042 for every read sector, we already increment it for the whole
17043 batch. This fixes reading more than 256 sectors at once.
17045 * util/grub-editenv.c (cmd_info): Cast argument to long
17046 explicitly. ptrdiff_t reduces to int on i386.
17048 * util/grub-editenv.c (main): Be specific which parameter is
17051 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17052 (memdisk): Make memdisk_orig_addr a pointer.
17054 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17055 for file offsets, use grub_off_t instead. Fix printf format
17058 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17059 there. Real unexpected warnings should not drown in the noise
17060 about known problems.
17062 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17063 grub_disk_addr_t for memory addresses.
17065 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17066 explicitly to fix a warning.
17068 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17070 * Makefile.in (MODULE_LDFLAGS): New variable.
17071 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17072 the linker accepts --build-id=none.
17073 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17075 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17077 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17078 those in Linux XFS code. Provide a way to access 64-bit parent
17080 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17081 the end of struct grub_xfs_dir_header.
17083 2008-07-02 Bean <bean123ch@gmail.com>
17085 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17086 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17087 and GRUB_IEEE1275_FLAG_NO_ANSI.
17089 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17090 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17091 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17093 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17094 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17096 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17097 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17099 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17100 esc sequence on non ANSI terminal.
17101 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17103 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17106 2008-07-02 Bean <bean123ch@gmail.com>
17108 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17109 (grub_editenv_SOURCES): New variable.
17110 (pkglib_MODULES): Add loadenv.mod.
17111 (loadenv_mod_SOURCES): New variable.
17112 (loadenv_mod_CFLAGS): Likewise.
17113 (loadenv_mod_LDFLAGS): Likewise.
17115 * include/grub/envblk.h: New file.
17117 * util/envblk.c: New file.
17119 * util/grub-editenv.c: New file.
17121 * commands/loadenv.c: New file.
17123 2008-07-01 Pavel Roskin <proski@gnu.org>
17125 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17126 not unsigned char. This fixes warnings and is consistent with
17129 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17131 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17133 * term/tparm.c (analyze): Always set *popcount.
17135 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17136 cast to fix a warning.
17138 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17139 cast to suppress a warning.
17141 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17142 grub_fshelp_read_file() expects.
17144 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17145 write uuid as a 32-bit value in CPU byte order, so declare and
17148 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17149 long if the format specifier expects it.
17150 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17151 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17152 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17153 long to fix a warning.
17154 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17155 grub_dprintf() arguments to fix warnings.
17157 2008-06-30 Pavel Roskin <proski@gnu.org>
17159 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17160 install_bsd_part immediately before core.img is embedded or
17161 modified on disk. This fixes core.img verification if core.img
17162 cannot be embedded.
17164 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17165 core_path to calculate the blocklist.
17166 Patch from Javier Martín <lordhabbit@gmail.com>
17168 2008-06-29 Robert Millan <rmh@aybabtu.com>
17170 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17171 block to disk block.
17172 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17173 Patch from Niels Böhm <bitbucket@arcor.de>
17175 2008-06-29 Robert Millan <rmh@aybabtu.com>
17177 * util/update-grub_lib.in (font_path): Search for fonts in
17178 /boot/grub first, which is more likely to be readable (we aren't
17179 deciding where fonts live, just looking for them).
17181 2008-06-26 Pavel Roskin <proski@gnu.org>
17183 * util/biosdisk.c (read_device_map): Don't leave dead map
17184 entries for devices failing stat() check.
17186 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17187 core_path_dev for the core.img path on the target device.
17189 2008-06-26 Robert Millan <rmh@aybabtu.com>
17191 * disk/fs_uuid.c: New file.
17192 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17193 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17194 (fs_uuid_mod_LDFLAGS): New variables.
17195 * include/grub/disk.h (grub_disk_dev_id): Add
17196 `GRUB_DISK_DEVICE_UUID_ID'.
17197 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17198 implement iterate().
17200 2008-06-26 Robert Millan <rmh@aybabtu.com>
17202 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17203 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17204 Linux image includes no initrd.
17206 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17208 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17209 call to resolve the core image location that effectively appended the
17212 2008-06-21 Robert Millan <rmh@aybabtu.com>
17214 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17217 * util/grub.d/10_hurd.in: ... to here ...
17218 * util/grub.d/10_linux.in: ... and here.
17220 2008-06-19 Robert Millan <rmh@aybabtu.com>
17222 * kern/main.c (grub_main): Export `prefix' variable immediately
17223 after it has been set by grub_machine_set_prefix().
17225 2008-06-19 Robert Millan <rmh@aybabtu.com>
17227 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17228 search result when not saving to variable, not the other way around.
17229 When saving to variable, abort iteration as soon as a match is found.
17231 2008-06-19 Robert Millan <rmh@aybabtu.com>
17233 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17234 check for partition that provides /boot/grub. Its logic is flawed,
17235 as it prevents prepare_grub_to_access_device() from being called
17238 2008-06-19 Robert Millan <rmh@aybabtu.com>
17240 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17241 "insmod" command directly when abstraction modules are needed,
17242 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17243 since it had already been processed).
17245 2008-06-19 Pavel Roskin <proski@gnu.org>
17247 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17248 changed. This is needed in case GRUB_LIBDIR changes.
17249 * conf/i386-ieee1275.rmk: Likewise.
17250 * conf/i386-linuxbios.rmk: Likewise.
17251 * conf/i386-pc.rmk: Likewise.
17252 * conf/powerpc-ieee1275.rmk: Likewise.
17254 2008-06-18 Pavel Roskin <proski@gnu.org>
17256 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17257 kernel_elf_symlist.c to symlist.c for consistency with other
17258 architectures. Update all users.
17259 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17261 2008-06-18 Robert Millan <rmh@aybabtu.com>
17263 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17266 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17267 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17268 a RAID device, run setup() for all members independently on whether
17269 LVM abstraction is being used.
17270 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17271 If grub-mkimage has set `*install_dos_part == -2', don't override this
17273 Perform *install_dos_part adjustments independently on whether
17274 we're embedding or not.
17275 Clarify error message when image is too big for embedding.
17276 Remove duplicate *install_dos_part stanza.
17278 2008-06-17 Robert Millan <rmh@aybabtu.com>
17280 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17281 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17283 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17284 values in grub_ofconsole_normal_color and
17285 grub_ofconsole_highlight_color (they're not directly related to
17286 background and foreground).
17287 (grub_ofconsole_setcolorstate): Extract background and foreground
17288 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17290 2008-06-17 Robert Millan <rmh@aybabtu.com>
17292 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17293 /boot/grub for the check in last commit, not /boot (they could be
17294 different partitions).
17296 2008-06-16 Robert Millan <rmh@aybabtu.com>
17298 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17299 asked to setup access for the same partition that provides /boot,
17300 don't bother using UUIDs since our root already has the value we
17303 2008-06-16 Robert Millan <rmh@aybabtu.com>
17305 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17307 Patch from Sven Mueller <sven@debian.org>.
17309 2008-06-16 Robert Millan <rmh@aybabtu.com>
17311 * util/update-grub.in: Check for $EUID instead of $UID.
17312 Reported by Vincent Zweije.
17314 2008-06-16 Bean <bean123ch@gmail.com>
17316 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17317 (grub_ext2_read_block): Likewise.
17318 (grub_ext2_read_inode): Likewise.
17319 (grub_ext2_mount): Likewise.
17320 (grub_ext2_close): Likewise.
17321 (grub_ext3_get_journal): Removed.
17323 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17324 (grub_reiserfs_read_symlink): Likewise.
17325 (grub_reiserfs_mount): Likewise.
17326 (grub_reiserfs_open): Likewise.
17327 (grub_reiserfs_read): Likewise.
17328 (grub_reiserfs_close): Likewise.
17329 (grub_reiserfs_get_journal): Removed.
17331 * fs/fshelp.c (grub_fshelp_read): Removed.
17332 (grub_fshelp_map_block): Likewise.
17334 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17335 (grub_fshelp_journal): Likewise.
17336 (grub_fshelp_read): Likewise.
17337 (grub_fshelp_map_block): Likewise.
17339 2008-06-16 Pavel Roskin <proski@gnu.org>
17341 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17342 floating point anymore.
17343 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17345 2008-06-15 Pavel Roskin <proski@gnu.org>
17347 * commands/ls.c (grub_ls_list_files): Use integer calculations
17348 for human readable format, avoid floating point use.
17349 * kern/misc.c (grub_ftoa): Remove.
17350 (grub_vsprintf): Remove floating point support.
17352 2008-06-15 Robert Millan <rmh@aybabtu.com>
17354 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17356 Reported by Max Vozeler.
17358 2008-06-15 Robert Millan <rmh@aybabtu.com>
17360 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17361 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17363 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17364 the beginning of the prefix.
17366 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17367 It is assumed that if we have a memdisk, grub-mkimage has set
17368 grub_prefix to include the "(memdisk)" drive in it.
17370 2008-06-15 Robert Millan <rmh@aybabtu.com>
17372 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17373 Initialize keyboard controller after registering the terminal, so that
17374 grub_printf() can be called from grub_keyboard_controller_init().
17376 2008-06-15 Robert Millan <rmh@aybabtu.com>
17378 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17379 extent-btree which is written as big endian on disk.
17380 Reported by Alain Greppin <al@chilibi.org>.
17382 2008-06-14 Robert Millan <rmh@aybabtu.com>
17384 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17385 * util/i386/pc/grub-install.in (modules): Likewise.
17387 2008-06-13 Pavel Roskin <proski@gnu.org>
17389 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17391 2008-06-13 Bean <bean123ch@gmail.com>
17393 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17395 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17397 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17398 to indicate sparse block.
17400 2008-06-12 Pavel Roskin <proski@gnu.org>
17402 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17403 number, grub_fshelp_read() does it for us.
17405 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17406 linear disk read with journal translation.
17407 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17408 * include/grub/fshelp.h: Declare grub_fshelp_read().
17410 2008-06-09 Pavel Roskin <proski@gnu.org>
17412 * fs/minix.c (grub_minix_mount): Handle error reading
17415 2008-06-08 Robert Millan <rmh@aybabtu.com>
17417 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17418 don't append the RAID prefix afterwards.
17419 Reported by Clint Adams.
17421 2008-06-08 Robert Millan <rmh@aybabtu.com>
17423 Based on description from Pavel:
17424 * kern/disk.c (grub_disk_check_range): Rename to ...
17425 (grub_disk_adjust_range): ... this. Add a comment explaining the
17426 tasks performed by this function.
17428 2008-06-08 Robert Millan <rmh@aybabtu.com>
17430 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17431 `num_serial' (for consistency with other variables).
17432 (struct grub_ntfs_data): Add `uuid' member.
17433 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17434 (grub_ntfs_uuid): New function.
17435 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17437 2008-06-07 Pavel Roskin <proski@gnu.org>
17439 * util/biosdisk.c (open_device): Revert last change to the
17440 function, it broke installation. The sector needs to be
17441 different dependent on which device is opened.
17443 2008-06-06 Robert Millan <rmh@aybabtu.com>
17445 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17446 rest of GRUB, and breakage doesn't happen if its value were modified.
17448 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17449 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17450 a constant (same value).
17451 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17452 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17454 2008-06-06 Robert Millan <rmh@aybabtu.com>
17456 * util/biosdisk.c (open_device): Do not modify sector offset when
17457 accessing a partition. kern/disk.c already handles this for us.
17459 2008-06-06 Robert Millan <rmh@aybabtu.com>
17461 * util/grub-emu.c (grub_machine_init): Move code in this function from
17463 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17464 segfault in case grub_printf() is called).
17466 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17467 grub_probe. Update all users not to explicitly add it again.
17468 (grub_device): New variable; contains corresponding device for grubdir.
17469 (fs_module, partmap_module, devabstraction_module): Pass
17470 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17473 2008-06-05 Robert Millan <rmh@aybabtu.com>
17475 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17476 is found, print it (same layout as with labels).
17478 2008-06-04 Robert Millan <rmh@aybabtu.com>
17480 * util/biosdisk.c (get_drive): Rename to ...
17481 (find_grub_drive): ... this. Update all users.
17483 (get_os_disk): Rename to ...
17484 (convert_system_partition_to_system_disk): ... this. Update all users.
17486 (find_drive): Rename to ...
17487 (find_system_device): ... this. Update all users.
17489 2008-06-04 Robert Millan <rmh@aybabtu.com>
17491 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17492 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17493 (make_device_map): Likewise.
17495 2008-06-01 Robert Millan <rmh@aybabtu.com>
17497 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17498 before dereferencing it.
17500 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17501 union with fat12/fat16-specific ones. Add some new fields, including
17502 `num_serial' for both versions.
17503 (struct grub_fat_data): Add `uuid' member.
17504 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17505 names. Initialize `data->uuid' using `num_serial'.
17506 (grub_fat_uuid): New function.
17507 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17509 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17510 (grub_reiserfs_uuid): New function.
17511 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17514 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17515 (grub_xfs_uuid): New function.
17516 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17518 2008-06-01 Robert Millan <rmh@aybabtu.com>
17520 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17521 code that is backward compatible with pre-uuid search command.
17523 2008-05-31 Robert Millan <rmh@aybabtu.com>
17525 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17526 floppies after everything else, to ensure floppy drive isn't accessed
17527 unnecessarily (patch from Bean).
17529 2008-05-31 Robert Millan <rmh@aybabtu.com>
17531 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17532 not print device names when we were asked to set a variable.
17534 2008-05-31 Robert Millan <rmh@aybabtu.com>
17536 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17537 using "cursor-on" and "cursor-off" commands (understood at least by
17538 the Open Firmware flavour on OLPC).
17540 2008-05-31 Michael Gorven <michael@gorven.za.net>
17542 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17543 on and off sequences.
17545 2008-05-31 Robert Millan <rmh@aybabtu.com>
17547 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17548 * util/update-grub.in: Likewise.
17550 2008-05-30 Pavel Roskin <proski@gnu.org>
17552 * util/biosdisk.c (linux_find_partition): Simplify logic and
17553 make the code more universal. Keep special processing for
17554 devfs, but use a simple rule for all other devices. If the
17555 device ends with a number, append 'p' and the partition number.
17556 Otherwise, append only the partition number.
17558 2008-05-30 Robert Millan <rmh@aybabtu.com>
17560 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17561 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17562 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17563 the `root' parameter to Linux.
17565 2008-05-30 Robert Millan <rmh@aybabtu.com>
17567 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17568 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17569 --fs_uuid with --fs-uuid.
17570 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17571 all filesystems support them).
17573 2008-05-30 Robert Millan <rmh@aybabtu.com>
17575 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17576 grub_printf() flags, since we're printing in units of 2 bytes.
17578 2008-05-30 Robert Millan <rmh@aybabtu.com>
17580 * util/grub.d/00_header.in: Remove obsolete comment referencing
17581 convert_system_path_to_grub_path().
17582 * util/update-grub.in: Likewise.
17583 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17584 (convert_system_path_to_grub_path): Add a warning message explaining
17585 that this function is deprecated. Rely on is_path_readable_by_grub()
17586 for the readability checks.
17587 (font_path): Use is_path_readable_by_grub() for the readability
17588 check rather than convert_system_path_to_grub_path().
17590 2008-05-30 Robert Millan <rmh@aybabtu.com>
17592 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17593 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17594 converting it first.
17595 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17596 grub.cfg for access to font file, and afterwards call it again to set
17599 2008-05-30 Robert Millan <rmh@aybabtu.com>
17601 * commands/search.c (options): Add --fs_uuid option.
17602 (search_fs_uuid): New function.
17603 (grub_cmd_search): Fix --set argument passing.
17604 Use search_fs_uuid() when requested via --fs_uuid.
17605 (grub_search_init): Update help message.
17606 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17607 and redeclare it as an array of 16-bit words.
17608 (grub_ext2_uuid): New function.
17609 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17610 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17611 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17612 (GRUB_DEVICE_BOOT_UUID): New variables.
17613 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17614 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17616 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17617 just assume `root' variable has the right value.
17618 * util/grub.d/10_linux.in: Likewise.
17619 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17621 (main): Recognise `-t fs_uuid' argument.
17623 2008-05-30 Robert Millan <rmh@aybabtu.com>
17625 * util/biosdisk.c (map): Redefine structure to hold information
17626 about GRUB drive name.
17627 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17629 (call_hook): Remove.
17630 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17631 member. Assume drive has partitions.
17632 (grub_util_biosdisk_open): Access device names via `.device' struct
17634 (open_device): Likewise.
17635 (find_drive): Likewise.
17636 (read_device_map): Adjust map[] usage to match the new struct
17637 definition. Don't check for duplicates (still possible, but not cheap
17639 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17640 (make_device_name): Remove assumption of BIOS-like drive names.
17642 2008-05-30 Pavel Roskin <proski@gnu.org>
17644 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17645 compiling execute.c doesn't need grub_script.tab.h anymore.
17646 (normal/command.c_DEPENDENCIES): Likewise.
17647 (normal/function.c_DEPENDENCIES): Likewise.
17648 * conf/i386-ieee1275.rmk: Likewise.
17649 * conf/i386-linuxbios.rmk: Likewise.
17650 * conf/i386-pc.rmk: Likewise.
17651 * conf/powerpc-ieee1275.rmk: Likewise.
17652 * conf/sparc64-ieee1275.rmk: Likewise.
17654 2008-05-29 Pavel Roskin <proski@gnu.org>
17656 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17657 when scanning metadata for volume group name.
17659 * include/grub/script.h: Don't include grub_script.tab.h. It's
17660 a generated file, which may only be included from the files with
17661 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17662 use union YYSTYPE, as the later allows forward declaration.
17663 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17665 2008-05-29 Robert Millan <rmh@aybabtu.com>
17667 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17668 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17669 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17670 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17673 2008-05-29 Robert Millan <rmh@aybabtu.com>
17675 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17676 control key combinations.
17678 2008-05-29 Robert Millan <rmh@aybabtu.com>
17680 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17681 * util/ieee1275/grub-install.in: ... to here.
17682 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17683 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17684 (grub_install_SOURCES): Likewise.
17686 2008-05-29 Robert Millan <rmh@aybabtu.com>
17688 * fs/affs.c: Update copyright year.
17689 * fs/ext2.c: Likewise.
17690 * fs/fshelp.c: Likewise.
17691 * fs/hfsplus.c: Likewise.
17692 * fs/ntfs.c: Likewise.
17693 * fs/xfs.c: Likewise.
17694 * include/grub/fshelp.h: Likewise.
17695 * util/grub-mkdevicemap.c: Likewise.
17697 2008-05-28 Robert Millan <rmh@aybabtu.com>
17699 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17700 might need to be fatfs to support some firmware implementations
17703 2008-05-28 Robert Millan <rmh@aybabtu.com>
17705 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17707 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17708 (make_device_map): Likewise.
17710 2008-05-20 Bean <bean123ch@gmail.com>
17712 * fs/fshelp.c (grub_fshelp_map_block): New function.
17713 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17714 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17716 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17717 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17718 (grub_fshelp_journal): New structure.
17719 (grub_fshelp_map_block): New function prototype.
17720 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17721 (grub_fshelp_map_block): Likewise.
17723 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17724 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17725 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17726 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17727 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17728 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17729 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17730 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17731 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17732 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17733 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17734 (grub_ext2_sblock): New members for journal support.
17735 (grub_ext3_journal_header): New structure.
17736 (grub_ext3_journal_revoke_header): Likewise.
17737 (grub_ext3_journal_block_tag): Likewise.
17738 (grub_ext3_journal_sblock): Likewise.
17739 (grub_fshelp_node): New members logfile and journal.
17740 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17741 grub_fshelp_map_block to get real block number.
17742 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17744 (grub_ext2_read_inode): Likewise.
17745 (grub_ext3_get_journal): New function.
17746 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17747 (grub_ext2_close): Release memory used by journal.
17749 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17750 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17751 (grub_reiserfs_transaction_header): Renamed to
17752 grub_reiserfs_description_block, replace field data with real_blocks.
17753 (grub_reiserfs_commit_block): New structure.
17754 (grub_reiserfs_data): New member journal.
17755 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17757 (grub_reiserfs_read_symlink): Likewise.
17758 (grub_reiserfs_iterate_dir): Likewise.
17759 (grub_reiserfs_open): Likewise.
17760 (grub_reiserfs_read): Likewise.
17761 (grub_reiserfs_get_journal): New function.
17762 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17763 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17764 using grub_reiserfs_get_journal.
17765 (grub_reiserfs_close): Release memory used by journal.
17767 * fs/affs.c (grub_affs_read_block): Change block type to
17768 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17770 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17772 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17774 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17776 * fs/udf.c (grub_udf_read_block): Change block type to
17777 grub_disk_addr_t. Use type cast to avoid warning.
17779 * fs/xfs.c (grub_xfs_read_block): Likewise.
17781 2008-05-16 Christian Franke <franke@computer.org>
17783 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17784 to ensure that break with ESC will always work.
17785 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17786 Remove ESC from keyboard queue.
17788 2008-05-16 Christian Franke <franke@computer.org>
17790 * util/biosdisk.c: [__CYGWIN__] Add includes.
17791 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17792 (get_os_disk): Move variable declarations to OS specific
17793 parts to avoid warning.
17794 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17795 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17796 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17798 * util/getroot.c: [__CYGWIN__] Add includes.
17799 (strip_extra_slashes): Fix "/" case.
17800 [__CYGWIN__] (get_win32_path): New function.
17801 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17802 [__CYGWIN__] (find_root_device): Disable.
17803 [__CYGWIN__] (get_bootsec_serial): New function.
17804 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17805 [__linux__] (grub_guess_root_device): Add early returns to simplify
17807 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17808 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17809 check for Linux only.
17811 2008-05-15 Bean <bean123ch@gmail.com>
17813 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17814 keyboard hang problem in apple's intel mac.
17816 2008-05-09 Robert Millan <rmh@aybabtu.com>
17818 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17820 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17821 (make_device_map): Likewise.
17822 Reported by Aurelien Jarno <aurel32@debian.org>
17824 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17826 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17827 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17828 (make_device_map): Output entries for xvd type disks.
17830 2008-05-07 Robert Millan <rmh@aybabtu.com>
17832 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17834 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17835 (make_device_map): Likewise.
17836 Reported by Roland Dreier <rdreier@cisco.com>
17838 2008-05-07 Robert Millan <rmh@aybabtu.com>
17840 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17841 grub_strstr() call. Correct a few mistakes in failure path handling.
17843 2008-05-06 Robert Millan <rmh@aybabtu.com>
17845 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17846 Do not print a trailing slash (therefore, the root directory is an
17848 (convert_system_path_to_grub_path): Do not remove trailing slash
17849 from make_system_path_relative_to_its_root() output.
17851 * util/i386/pc/grub-install.in: Add trailing slash to output from
17852 make_system_path_relative_to_its_root().
17854 2008-05-06 Robert Millan <rmh@aybabtu.com>
17856 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17857 ensures that output lines aren't intermangled with those sent to
17858 stderr (via grub_util_info()).
17859 * util/grub-probe.c (grub_refresh): Likewise.
17860 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17862 2008-05-05 Christian Franke <franke@computer.org>
17864 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17865 Add Cygwin device names.
17866 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17867 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17868 (check_device): Return error instead of success on empty name.
17869 (make_device_map): Move label inside linux specific code to
17870 prevent compiler warning.
17872 2008-04-30 Robert Millan <rmh@aybabtu.com>
17874 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17875 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17877 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17879 2008-04-29 Robert Millan <rmh@aybabtu.com>
17881 * docs/grub.cfg: New file (example GRUB configuration).
17883 2008-04-26 Robert Millan <rmh@aybabtu.com>
17885 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17886 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17887 and `disk/ieee1275/nand.c'.
17889 2008-04-25 Bean <bean123ch@gmail.com>
17891 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17894 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17895 change the buffer size to 4096 for cdrom device.
17897 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17899 (_linux_mod_SOURCES): New variable.
17900 (_linux_mod_CFLAGS): Likewise.
17901 (_linux_mod_LDFLAGS): Likewise.
17902 (linux_mod_SOURCES): Likewise.
17903 (linux_mod_CFLAGS): Likewise.
17904 (linux_mod_LDFLAGS): Likewise.
17905 (nand_mod_SOURCES): Likewise.
17906 (nand_mod_CFLAGS): Likewise.
17907 (nand_mod_LDFLAGS): Likewise.
17909 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17910 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17911 type property. (nand device in olpc don't have this property)
17913 * include/grub/disk.h (grub_disk_dev_id): New macro
17914 GRUB_DISK_DEVICE_NAND_ID.
17916 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17917 function prototype.
17918 (grub_rescue_cmd_initrd): Likewise.
17920 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17921 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17922 ofw_cif_handler and ofw_idt, adjust padding number.
17924 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17925 GRUB_MACHINE_IEEE1275 is defined.
17927 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17928 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17930 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17931 on nested function heap_init.
17932 (grub_upper_mem): New variable for i386-ieee1275.
17933 (grub_get_extended_memory): New function for i386-ieee1275.
17934 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17936 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17937 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17940 * loader/i386/ieee1275/linux.c: New file.
17942 * loader/i386/ieee1275/linux_normal.c: New file.
17944 * disk/ieee1275/nand.c: New file.
17946 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17948 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17950 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17952 2008-04-18 Robert Millan <rmh@aybabtu.com>
17954 Restructures early code path on ieee1275 to unify grub_main() as
17955 the first C function that is executed in every platform.
17957 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17958 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17960 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17961 * kern/ieee1275/cmain.c (cmain): Rename to ...
17962 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17963 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17966 2008-04-18 Robert Millan <rmh@aybabtu.com>
17968 * util/update-grub.in: Fix syntax error when setting
17969 `GRUB_PRELOAD_MODULES'.
17970 Reported by Stephane Chazelas <stephane@artesyncp.com>
17972 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17974 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17975 section into account, newer toolchains generate unique build ids
17976 * configure.ac: remove the test for --build-id=none acceptance,
17977 we want build ids to be preserved
17978 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17979 far from other sections don't cause the raw binary images grow
17982 2008-04-15 Robert Millan <rmh@aybabtu.com>
17984 * disk/lvm.c: Update copyright year.
17985 * kern/misc.c: Likewise.
17987 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17989 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17990 there is no memory left for physical volume name.
17992 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17994 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17995 volume name mapping to support bigger than 9 character names properly.
17997 2008-04-13 Robert Millan <rmh@aybabtu.com>
17999 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18000 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18002 2008-04-13 Christian Franke <franke@computer.org>
18004 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18005 to create a floppy emulation boot CD when non emulation mode
18007 Enable Joliet CD filesystem extension.
18009 2008-04-13 Robert Millan <rmh@aybabtu.com>
18011 * kern/misc.c (grub_strncat): Fix off-by-one error.
18012 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18014 * kern/env.c (grub_env_context_close): Clear current context, not
18016 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18018 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18020 2008-04-13 Robert Millan <rmh@aybabtu.com>
18022 Improve robustness when handling LVM.
18024 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
18025 (and leave `*p' unmodified).
18026 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18028 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18029 iterating through it.
18030 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18032 (grub_lvm_scan_device): Check the return value (and fail gracefully
18033 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18034 Don't assume `vg->pvs != NULL' when iterating through it.
18036 2008-04-13 Robert Millan <rmh@aybabtu.com>
18038 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18039 * genmk.rb (partmap): New variable.
18040 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18041 (#{partmap}): New target rule.
18042 * genpartmaplist.sh: New file.
18043 * Makefile.in (pkglib_DATA): Add partmap.lst.
18044 (partmap.lst): New target rule.
18045 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18046 modules (including all partition maps), instead of preloading them.
18048 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18050 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18051 `linux-boot-prober' (if installed) to detect other operating
18052 systems which are installed on the computer and add them to
18054 * conf/common.rmk: Build and install 30_os-prober.
18056 2008-04-12 Robert Millan <rmh@aybabtu.com>
18058 * kern/powerpc/ieee1275/init.c: Move from here ...
18059 * kern/ieee1275/init.c: ... to here. Update all users.
18061 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18062 * kern/ieee1275/cmain.c: ... to here. Update all users.
18064 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18065 * kern/ieee1275/openfw.c: ... to here. Update all users.
18067 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18068 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18070 2008-04-10 Pavel Roskin <proski@gnu.org>
18072 * configure.ac: Always use "_cv_" in cache variables for
18073 compatibility with Autoconf 2.62.
18075 2008-04-07 Robert Millan <rmh@aybabtu.com>
18077 Revert grub/machine/init.h addition by Pavel (since it breaks on
18078 i386-ieee1275 and others):
18079 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18080 * util/powerpc/ieee1275/misc.c: Likewise.
18082 2008-04-07 Robert Millan <rmh@aybabtu.com>
18084 * util/grub-probe.c (probe): Improve error message.
18086 2008-04-07 Robert Millan <rmh@aybabtu.com>
18088 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18089 (this prevents the presence of a bogus entry from ruining the whole
18092 2008-04-06 Pavel Roskin <proski@gnu.org>
18094 * util/biosdisk.c: Include grub/util/biosdisk.h.
18095 * util/grub-fstest.c (execute_command): Make static.
18096 * util/grub-mkdevicemap.c (check_device): Likewise.
18097 * util/i386/pc/misc.c: Include grub/machine/init.h.
18098 * util/powerpc/ieee1275/misc.c: Likewise.
18099 * util/lvm.c: Include grub/util/lvm.h.
18100 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18102 * util/raid.c: Include grub/util/raid.h.
18103 (grub_util_getdiskname): Make static.
18105 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18106 grub_hostfs_fini(), as they are called from grub_init_all() and
18107 grub_fini_all() respectively. This fixes an infinite loop in
18108 grub-fstest due to double registration of hostfs.
18109 Reported by Christian Franke <Christian.Franke@t-online.de>
18111 2008-04-05 Pavel Roskin <proski@gnu.org>
18113 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18114 all 8 functions. Otherwise, probe function 0 only.
18116 2008-04-04 Pavel Roskin <proski@gnu.org>
18118 * commands/lspci.c (grub_lspci_iter): Print the bus number
18121 * commands/lspci.c (grub_pci_classes): Fix typos.
18122 (grub_lspci_iter): Don't print func twice. Print vendor ID
18123 before device ID, as it's normally done.
18125 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18126 Fix signedness warnings.
18127 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18129 * util/ieee1275/get_disk_name.c: Include config.h so that
18130 _GNU_SOURCE is defined and getline() is declared. Mark an
18131 unused argument as such. Fix a signedness warning.
18133 2008-04-02 Pavel Roskin <proski@gnu.org>
18135 * genkernsyms.sh.in: Use more robust assignments for CC and
18136 srcdir. Quote srcdir.
18137 * gensymlist.sh.in: Likewise. Assert at the compile time that
18138 the symbol table is not empty.
18140 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18141 * fs/cpio.c (grub_cpio_read): Likewise.
18143 2008-04-01 Pavel Roskin <proski@gnu.org>
18145 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18146 * disk/host.c (grub_host_open): Likewise.
18147 * disk/loopback.c (grub_loopback_open): Likewise.
18148 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18149 disk->id as in disk/host.c, not a multi-character constant.
18151 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18152 later is obsolete, potentially dangerous and sets a bad example.
18153 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18154 * util/misc.c (grub_util_get_image_size): Likewise.
18156 * disk/loopback.c (options): Improve help for "--partitions".
18158 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18159 options to align them with the short options, e.g. "echo -e".
18161 2008-03-31 Bean <bean123ch@gmail.com>
18163 * video/reader/png.c (grub_png_data): New member is_16bit and
18165 (grub_png_decode_image_header): Detect 16 bit png image.
18166 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18167 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18168 (grub_video_reader_png): Release memory occupied by image_data.
18170 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18172 (grub_nfs_mount): Skip the test for sector per cluster.
18174 * include/grub/ntfs.h (MAX_SPC): Removed.
18176 2008-03-31 Bean <bean123ch@gmail.com>
18178 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18179 (grub_probe_SOURCES): Add fs/afs.c.
18180 (grub_fstest_SOURCES): Likewise.
18181 (afs_mod_SOURCES): New variable.
18182 (afs_mod_CFLAGS): Likewise.
18183 (afs_mod_LDFLAGS): Likewise.
18185 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18186 (grub_emu_SOURCES): Likewise.
18188 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18192 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18196 * fs/afs.c: New file.
18198 2008-03-30 Pavel Roskin <proski@gnu.org>
18200 * disk/host.c: Include grub/misc.h to fix a warning.
18201 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18202 warnings about implicit declarations.
18204 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18206 * include/grub/i386/loader.h: Change declaration of
18207 grub_linux_boot() to match what grub_loader_set() expects.
18208 * util/getroot.c (grub_guess_root_device): Return const char* to
18210 * util/grub-probe.c (probe): Fix a warning about uninitialized
18211 abstraction_name variable.
18212 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18213 second argument as unused to fix a warning.
18215 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18216 missing grub_error() call.
18218 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18219 2.60 and newer uses it to define datadir.
18221 * commands/sleep.c: Fix warning about implicit declaration.
18222 * disk/memdisk.c: Likewise.
18223 * loader/aout.c: Likewise.
18224 * loader/i386/bsd_normal.c: Likewise.
18225 * util/grub-probe.c: Likewise.
18227 * commands/i386/cpuid.c (has_longmode): Make static.
18228 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18229 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18231 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18232 GDT. This is more robust, as %ds can change.
18233 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18234 calling real_to_prot().
18235 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18237 2008-03-28 Pavel Roskin <proski@gnu.org>
18239 * kern/i386/pc/startup.S: Assert that uncompressed functions
18240 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18241 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18242 code, as they push parts of the code (error handlers) beyond
18243 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18244 code as correctness and size.
18246 2008-03-28 Pavel Roskin <proski@gnu.org>
18248 * kern/i386/pc/startup.S
18249 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18250 data block address to the real mode, keep offset minimal. This
18251 works around a bug in AWARD BIOS on old Athlon systems, which
18252 makes CD detection hang.
18254 2008-03-26 Pavel Roskin <proski@gnu.org>
18256 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18258 * include/grub/normal.h: Add grub_parse_color_name_pair()
18261 2008-03-24 Bean <bean123ch@gmail.com>
18263 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18264 (cd_count): Removed.
18265 (cd_drive): New variable.
18266 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18267 (grub_biosdisk_call_hook): Likewise.
18268 (grub_biosdisk_iterate): Change cdrom detection method.
18269 (grub_biosdisk_open): Replace cd_start with cd_drive.
18270 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18271 detect cdrom device.
18273 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18275 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18276 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18277 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18278 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18279 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18280 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18281 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18282 (grub_biosdisk_cdrp): New structure.
18283 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18285 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18287 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18290 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18293 2008-03-20 Robert Millan <rmh@aybabtu.com>
18295 Remove 2 TiB limit in ata.mod.
18296 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18297 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18298 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18299 grub_uint64_t instead of grub_uint32_t.
18301 2008-03-05 Bean <bean123ch@gmail.com>
18303 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18304 (grub_multiboot): Set boot device.
18306 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18308 2008-03-02 Bean <bean123ch@gmail.com>
18310 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18313 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18315 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18318 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18321 * docs/fdl.texi: New file.
18323 * docs/mdate-sh: New file. Copied from gnulib.
18324 * docs/texinfo.tex: Likewise.
18326 * config.guess: Updated from gnulib.
18327 * install-sh: Likewise.
18329 2008-02-28 Robert Millan <rmh@aybabtu.com>
18331 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18332 (aout_mod_SOURCES): New variable.
18333 (aout_mod_CFLAGS): Likewise.
18334 (aout_mod_LDFLAGS): Likewise.
18336 * conf/i386-ieee1275.rmk: Likewise.
18338 2008-02-28 Robert Millan <rmh@aybabtu.com>
18340 * util/update-grub.in: Reorganise terminal validity check. Accept
18341 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18342 Based on suggestion by Franklin PIAT.
18344 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18346 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18348 * util/getroot.c (grub_util_check_block_device): New function that
18349 returns the given argument if it is a block device and returns NULL else.
18350 * util/grub-probe.c (argument_is_device): New variable.
18351 (probe): Promote device_name from a variable to an argument. Receive
18352 device_name from grub_util_check_block_device() if path is NULL and from
18353 grub_guess_root_device() else. Do not free() device_name anymore.
18354 (options): Introduce new parameter '-d, --device'.
18355 (main): Add description of the new parameter to the help screen.
18356 Rename path variable to argument. Set argument_is_device if the '-d'
18357 option is given. Pass argument to probe() depending on
18358 argument_is_device.
18360 2008-02-24 Bean <bean123ch@gmail.com>
18362 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18363 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18364 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18365 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18366 (GRUB_ISO9660_VOLDESC_END): Likewise.
18367 (grub_iso9660_primary_voldesc): New member escape.
18368 (grub_iso9660_data): New member joliet.
18369 (grub_iso9660_convert_string): New function.
18370 (grub_iso9660_mount): Detect joliet extension.
18371 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18372 (grub_iso9660_iso9660_label): Likewise.
18374 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18375 (grub_setup_SOURCES): Add fs/udf.c.
18376 (grub_fstest_SOURCES): Likewise.
18377 (udf_mod_SOURCES): New variable.
18378 (udf_mod_CFLAGS): Likewise.
18379 (udf_mod_LDFLAGS): Likewise.
18381 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18382 (grub_emu_SOURCES): Likewise.
18384 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18386 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18388 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18392 * fs/udf.c: New file.
18394 2008-02-24 Robert Millan <rmh@aybabtu.com>
18396 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18397 (normal/lexer.c_DEPENDENCIES): New variables.
18398 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18399 (normal/lexer.c_DEPENDENCIES): Likewise.
18400 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18401 (normal/lexer.c_DEPENDENCIES): Likewise.
18402 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18403 (normal/lexer.c_DEPENDENCIES): Likewise.
18404 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18405 (normal/lexer.c_DEPENDENCIES): Likewise.
18406 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18407 (normal/lexer.c_DEPENDENCIES): Likewise.
18409 2008-02-23 Robert Millan <rmh@aybabtu.com>
18411 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18412 since they were intended to be in hex. This didn't break previously
18413 because of a bug in gpt_partition_map_iterate() (see below).
18415 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18416 when checking the validity of GPT header.
18417 Remove `partno', since it always provides the same information as `i'.
18419 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18421 * include/grub/efi/time.h: Fix a wrong comment.
18423 2008-02-19 Pavel Roskin <proski@gnu.org>
18425 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18428 2008-02-19 Bean <bean123ch@gmail.com>
18430 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18431 (aout_mod_SOURCES): New variable.
18432 (aout_mod_CFLAGS): Likewise.
18433 (aout_mod_LDFLAGS): Likewise.
18434 (_bsd_mod_SOURCES): New variable.
18435 (_bsd_mod_CFLAGS): Likewise.
18436 (_bsd_mod_LDFLAGS): Likewise.
18437 (bsd_mod_SOURCES): New variable.
18438 (bsd_mod_CFLAGS): Likewise.
18439 (bsd_mod_LDFLAGS): Likewise.
18441 * include/grub/aout.h: New file.
18443 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18445 * include/grub/i386/bsd.h: New file.
18447 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18450 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18451 function is called, so that it's possible to change it inside the hook.
18452 (grub_elf64_load): Likewise.
18453 (grub_elf_file): Don't close the file if elf header is not found.
18454 (grub_elf_close): Close the file if grub_elf_file fails (The new
18455 grub_elf_file won't close it).
18456 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18457 (grub_elf64_size): Likewise.
18459 * kern/i386/loader.S (grub_unix_real_boot): New function.
18461 * loader/aout.c: New file.
18463 * loader/i386/bsd.c: New file.
18465 * loader/i386/bsd_normal.c: New file.
18467 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18469 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18470 can test other formats.
18472 2008-02-19 Robert Millan <rmh@aybabtu.com>
18474 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18475 (grub_gpt_partition_type_empty): Redefine with macro from
18476 `<grub/gpt_partition.h>'.
18477 (gpt_partition_map_iterate): Adjust partition type comparison.
18479 Export `entry' as partmap-specific `part.data' struct.
18480 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18482 * include/grub/gpt_partition.h (grub_gpt_header)
18483 (grub_gpt_partentry): ... to here (new file).
18485 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18487 (grub_gpt_partition_type_bios_boot): New const variable, defined
18488 with macro from `<grub/gpt_partition.h>'.
18490 (setup): Replace `first_start' with `embed_region', which keeps
18491 track of the embed region (and is partmap-agnostic).
18493 Replace find_first_partition_start() with find_usable_region(),
18494 which finds a usable region for embedding using partmap-specific
18495 knowledge (supports PC/MSDOS and GPT).
18497 Fix all assumptions that the embed region start at sector 1, using
18498 `embed_region.start' from now on. Similarly, use `embed_region.end'
18499 rather than `first_start' to calculate available size.
18501 In grub_util_info() message, replace "into after the MBR" with an
18502 indication of the specific sector our embed region starts at.
18504 2008-02-19 Robert Millan <rmh@aybabtu.com>
18506 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18507 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18508 `commands/reboot.c'.
18509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18510 (halt_mod_SOURCES): Likewise.
18511 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18512 (halt_mod_SOURCES): Likewise.
18514 2008-02-17 Christian Franke <franke@computer.org>
18516 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18518 2008-02-17 Robert Millan <rmh@aybabtu.com>
18520 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18521 set `first_start' to 0 for non-PC/MSDOS partition maps.
18523 2008-02-16 Robert Millan <rmh@aybabtu.com>
18525 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18526 do not assume partition map is PC/MSDOS before performing checks that
18527 are specific to that layout.
18529 2008-02-13 Robert Millan <rmh@aybabtu.com>
18531 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18532 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18533 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18535 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18537 * configure.ac: Only a cosmetic change on the handling of
18538 -fno-stack-protector.
18540 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18542 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18543 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18545 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18546 (halt_mod_SOURCES): New variable.
18547 (halt_mod_CFLAGS): Likewise.
18548 (halt_mod_LDFLAGS): Likewise.
18549 (reboot_mod_SOURCES): Likewise.
18550 (reboot_mod_CFLAGS): Likewise.
18551 (reboot_mod_LDFLAGS): Likewise.
18553 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18554 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18556 (halt_mod_SOURCES): Likewise.
18557 (reboot_mod_SOURCES): Likewise.
18559 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18560 commands/i386/pc/reboot.c by commands/reboot.c.
18561 (reboot_mod_SOURCES): Likewise.
18563 * commands/i386/pc/reboot.c: merge this file ...
18565 * commands/ieee1275/reboot.c: ... and this file ...
18567 * commands/reboot.c: ... to this file.
18568 Add some precompiler directive to include the correct header for
18571 * commands/ieee1275/halt.c: move this file ...
18573 * commands/halt.c: ... to here.
18574 Add some precompiler directive to include the correct header for
18577 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18578 (grub_halt): Likewise.
18580 * kern/efi/efi.c (grub_reboot): New function.
18581 (grub_halt): Likewise.
18583 2008-02-12 Robert Millan <rmh@aybabtu.com>
18585 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18586 /dev (like it is done for /dev/mapper). This doesn't provide support
18587 for EVMS, but at least it is now easy to identify the problem when it
18590 2008-02-11 Robert Millan <rmh@aybabtu.com>
18592 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18593 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18594 comparing it with -1, not 0.
18596 2008-02-10 Robert Millan <rmh@aybabtu.com>
18598 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18601 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18603 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18604 `disk/lvm.c' to the end of the list.
18605 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18606 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18608 2008-02-10 Robert Millan <rmh@aybabtu.com>
18610 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18611 grub_print_error() instead. This will let user know why we're entering
18613 Based on suggestions from Sam Morris.
18615 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18617 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18618 on remaining N args, instead of "--" arg N times.
18620 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18622 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18623 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18624 pattern for unknown glyphs.
18626 2008-02-09 Robert Millan <rmh@aybabtu.com>
18628 * configure.ac: Probe for `help2man'.
18629 * Makefile.in (builddir): New variable.
18630 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18631 or otherwise add a few flags/options to it.
18632 (install-local): For every executable utility or script that is
18633 installed, invoke $(HELP2MAN) to install a manpage based on --help
18636 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18637 that it doesn't prevent --help from working in build tree.
18639 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18640 with `bug-grub@gnu.org'.
18641 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18642 * util/update-grub.in (usage): New function.
18643 Implement proper argument check, with support for --help and --version
18644 (as well as existing -y).
18646 2008-02-09 Christian Franke <franke@computer.org>
18648 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18649 avoid overwriting previous output.
18650 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18652 2008-02-09 Robert Millan <rmh@aybabtu.com>
18654 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18657 2008-02-09 Robert Millan <rmh@aybabtu.com>
18659 * commands/sleep.c: New file.
18660 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18661 (sleep_mod_SOURCES): New variable.
18662 (sleep_mod_CFLAGS): Likewise.
18663 (sleep_mod_LDFLAGS): Likewise.
18665 2008-02-09 Robert Millan <rmh@aybabtu.com>
18667 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18668 situations in which we can deduce the RAID size and the superblock
18671 2008-02-09 Robert Millan <rmh@aybabtu.com>
18673 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18674 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18675 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18677 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18678 and return a grub_diskmemberlist_t composed of physical array members.
18679 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18681 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18683 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18684 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18685 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18687 * util/grub-probe.c (probe): Move partmap probing code from here ...
18688 (probe_partmap): ... to here.
18689 (probe): Use probe_partmap() once for the disk we're probing, and
18690 additionally, when such disk contains a memberlist() struct member,
18691 once for each disk that is contained in the structure returned by
18694 2008-02-09 Robert Millan <rmh@aybabtu.com>
18696 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18697 environment variable to 'all' in order to obtain debug output from
18699 * util/i386/pc/grub-setup.c (main): Likewise.
18701 2008-02-08 Robert Millan <rmh@aybabtu.com>
18703 * disk/raid.c (grub_raid_scan_device): Check for
18704 `array->device[sb.this_disk.number]' rather than for
18705 `array->device[sb.this_disk.number]->name', since the latter is not
18706 guaranteed to be accessible.
18708 2008-02-08 Robert Millan <rmh@aybabtu.com>
18710 * disk/raid.c: Update copyright.
18711 * fs/cpio.c: Likewise.
18712 * include/grub/raid.h: Likewise.
18713 * loader/i386/pc/multiboot.c: Likewise.
18714 * util/hostfs.c: Likewise.
18716 2008-02-08 Robert Millan <rmh@aybabtu.com>
18718 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18719 to a grub_disk_t array.
18720 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18722 (grub_raid_scan_device): Replace `device[x].name' accesses with
18723 `device[x]->name'. Simplify initialization of `array->device[x]'.
18725 2008-02-08 Robert Millan <rmh@aybabtu.com>
18727 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18728 grub_dprintf() calls.
18729 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18732 2008-02-07 Christian Franke <franke@computer.org>
18734 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18735 instead of fseek and ftell to support large files.
18736 (grub_hostfs_read): Likewise.
18738 2008-02-07 Robert Millan <rmh@aybabtu.com>
18740 Patch from Jeroen Dekkers.
18741 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18742 failure, since successfully reading all array members might not be
18745 2008-02-06 Robert Millan <rmh@aybabtu.com>
18747 * util/grub-probe.c (probe): Simplify partmap probing (with the
18748 assumption that the first word up to the underscore equals to
18751 2008-02-06 Christian Franke <franke@computer.org>
18753 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18754 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18755 last block of a cpio or tar stream.
18756 Check for "TRAILER!!!" instead of any empty data
18757 block to detect last block of a cpio stream.
18758 (grub_cpio_dir): Fix constness of variable np.
18759 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18760 cpio or tar trailer is detected. This fixes a crash
18761 on open of a non existing file.
18763 2008-02-05 Bean <bean123ch@gmail.com>
18765 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18767 (grub_multiboot_load_elf64): Likewise.
18768 (grub_multiboot): Initialize mbi structure.
18770 * util/grub-fstest.c: Don't include unused header file script.h.
18772 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18774 (grub_fstest_SOURCES): Likewise.
18776 2008-02-05 Robert Millan <rmh@aybabtu.com>
18778 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18779 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18780 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18781 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18783 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18784 (translation_table): Replace hardcoded values with macros
18785 provided by `<grub/term.h>'.
18787 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18788 (keyboard_map): Correct/add a few values, with macros provided
18789 by `<grub/term.h>'.
18790 (keyboard_map_shift): Zero values that don't differ from their
18791 `keyboard_map' equivalents.
18792 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18793 Discard the second scan code that is always sent by Caps lock.
18794 Only use `keyboard_map_shift' when it provides a non-zero value,
18795 otherwise fallback to `keyboard_map'.
18797 2008-02-04 Bean <bean123ch@gmail.com>
18799 * Makefile.in (enable_grub_fstest): New variable.
18801 * conf/common.rmk (grub_fstest_init.lst): New rule.
18802 (grub_fstest_init.h): Likewise.
18803 (grub_fstest_init.c): Likewise.
18804 (util/grub-fstest.c_DEPENDENCIES): New variable.
18805 (grub_fstest_SOURCES): Likewise.
18807 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18809 * util/grub-fstest.c: New file.
18811 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18813 Make grub-setup handle a separate root device.
18815 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18816 so that the root device can be compared with the destination
18818 When embedding the core image, if the root and destination devices
18819 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18821 When not embedding, set ROOT_DRIVE to 0xFF.
18823 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18825 Add support for having a grub directory in a different drive. This
18826 is still only the data handling part.
18828 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18829 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18830 (grub_root_drive): New variable.
18832 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18833 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18834 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18837 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18839 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18841 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18843 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18844 is bogus, because PXE booting does not specify any drive
18847 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18848 am not sure if this is really correct.
18850 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18851 is always identical to the boot drive when booting from a CD.
18853 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18855 (root_drive): New variable.
18856 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18857 (setup_sectors): Push %dx right after popping it, because %dh will
18859 (copy_buffer): Restore %dx.
18861 2008-02-03 Robert Millan <rmh@aybabtu.com>
18863 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18864 use `cdboot.img' for cdrom images.
18866 2008-02-03 Robert Millan <rmh@aybabtu.com>
18868 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18869 only setup gfxterm when `font' command has succeeded.
18871 2008-02-03 Robert Millan <rmh@aybabtu.com>
18873 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18874 (grub_rescue_cmd_multiboot_loader)
18875 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18877 2008-02-03 Pavel Roskin <proski@gnu.org>
18879 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18880 %edx and %esi from stack only after grub_gate_a20() is called.
18881 grub_gate_a20() clobbers %edx.
18883 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18885 * configure.ac (AC_INIT): Bumped to 1.96.
18887 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18888 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18889 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18890 video/readers/png.c.
18892 2008-02-03 Bean <bean123ch@gmail.com>
18894 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18895 (cdboot_img_SOURCES): New variable.
18896 (cdboot_img_ASFLAGS): New variable.
18897 (cdboot_img_LDFLAGS): New variable.
18899 * boot/i386/pc/cdboot.S: New file.
18901 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18902 (cd_count): Likewise.
18903 (grub_biosdisk_get_drive): Add support for cd device.
18904 (grub_biosdisk_call_hook): Likewise.
18905 (grub_biosdisk_iterate): Likewise.
18906 (grub_biosdisk_open): Likewise.
18907 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18908 (grub_biosdisk_rw): Support reading from cd device.
18909 (GRUB_MOD_INIT): Iterate cd devices.
18911 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18912 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18913 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18915 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18917 2008-02-02 Robert Millan <rmh@aybabtu.com>
18919 * commands/read.c: New file.
18920 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18921 (read_mod_SOURCES): New variable.
18922 (read_mod_CFLAGS): Likewise.
18923 (read_mod_LDFLAGS): Likewise.
18925 2008-02-02 Robert Millan <rmh@aybabtu.com>
18927 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18928 determining whether menu has to be displayed.
18930 2008-02-02 Marco Gerards <marco@gnu.org>
18932 * bus/pci.c: New file.
18934 * include/grub/pci.h: Likewise.
18936 * include/grub/i386/pc/pci.h: Likewise.
18938 * commands/lspci.c: Likewise.
18940 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18942 (pci_mod_SOURCES): New variable.
18943 (pci_mod_CFLAGS): Likewise.
18944 (pci_mod_LDFLAGS): Likewise.
18945 (lspci_mod_SOURCES): Likewise.
18946 (lspci_mod_CFLAGS): Likewise.
18947 (lspci_mod_LDFLAGS): Likewise.
18949 2008-02-02 Bean <bean123ch@gmail.com>
18951 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18952 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18954 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18955 (grub_xfs_btree_node): New structure.
18956 (grub_xfs_btree_root): New structure.
18957 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18958 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18959 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18960 (GRUB_XFS_EXTENT_SIZE): Likewise.
18961 (grub_xfs_read_block): Support btree format type.
18962 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18963 Use directory block as basic unit.
18965 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18967 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18968 __attribute__ ((__regparm__ (1))).
18970 2008-02-01 Robert Millan <rmh@aybabtu.com>
18972 Correct a mistake in previous commit.
18974 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18976 (normal/command.c_DEPENDENCIES): New variable.
18978 2008-02-01 Robert Millan <rmh@aybabtu.com>
18980 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18982 (normal/command.c_DEPENDENCIES): New variable.
18983 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18984 * conf/i386-ieee1275.rmk: Likewise.
18985 * conf/i386-linuxbios.rmk: Likewise.
18986 * conf/i386-pc.rmk: Likewise.
18987 * conf/sparc64-ieee1275.rmk: Likewise.
18988 * conf/powerpc-ieee1275.rmk: Likewise.
18989 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18991 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18993 2008-02-01 Robert Millan <rmh@aybabtu.com>
18995 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18996 call at beginning of function.
18998 2008-01-31 Pavel Roskin <proski@gnu.org>
19000 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
19001 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19002 (grub_mkrescue_SOURCES): Likewise.
19003 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19005 2008-01-30 Robert Millan <rmh@aybabtu.com>
19007 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19008 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19009 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19010 (grub_probe_SOURCES): ... to here.
19012 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19013 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19014 * conf/i386-ieee1275.rmk: Likewise.
19015 * conf/i386-linuxbios.rmk: Likewise.
19016 * conf/powerpc-ieee1275.rmk: Likewise.
19018 2008-01-30 Tristan Gingold <gingold@free.fr>
19020 * kern/rescue.c: Silently accept empty lines.
19022 2008-01-29 Bean <bean123ch@gmail.com>
19024 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19025 (real_code_2): Code cleanup and change comment style.
19026 (move_memory): Avoid using 32-bit address mode.
19028 2008-01-29 Bean <bean123ch@gmail.com>
19030 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19031 (png_mod_SOURCES): New variable.
19032 (png_mod_CFLAGS): Likewise.
19033 (png_mod_LDFLAGS): Likewise.
19035 * video/readers/png.c: New file.
19037 2008-01-28 Robert Millan <rmh@aybabtu.com>
19039 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19040 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19041 `ifndef GRUB_MOD_GAP' hack.
19042 * util/elf/grub-mkimage.c (add_segments): Likewise.
19044 2008-01-27 Robert Millan <rmh@aybabtu.com>
19046 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19047 `GRUB_MOD_GAP' for platforms in which it's not defined.
19048 * util/elf/grub-mkimage.c (add_segments): Likewise.
19050 2008-01-27 Robert Millan <rmh@aybabtu.com>
19052 Get grub-emu to build again (including parallel builds).
19054 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19056 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19057 (normal/execute.c_DEPENDENCIES): ... this, ...
19058 (grub-emu_DEPENDENCIES): ... and this.
19060 * conf/i386-efi.rmk: Likewise.
19061 * conf/i386-linuxbios.rmk: Likewise.
19062 * conf/i386-ieee1275.rmk: Likewise.
19063 * conf/powerpc-ieee1275.rmk: Likewise.
19064 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19066 2008-01-27 Robert Millan <rmh@aybabtu.com>
19068 * NEWS: Add a few items.
19070 2008-01-27 Robert Millan <rmh@aybabtu.com>
19072 Fix parallel builds with grub-emu. Based on earlier commit for
19073 grub-probe and grub-setup.
19075 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19076 (util/grub-emu.c_DEPENDENCIES): ... this.
19077 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19078 (util/grub-emu.c_DEPENDENCIES): ... this.
19079 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19080 (util/grub-emu.c_DEPENDENCIES): ... this.
19081 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19082 (util/grub-emu.c_DEPENDENCIES): ... this.
19083 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19084 (util/grub-emu.c_DEPENDENCIES): ... this.
19086 2008-01-27 Pavel Roskin <proski@gnu.org>
19088 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19089 to create a gap between _end and the modules added to the image
19090 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19091 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19092 * util/elf/grub-mkimage.c (add_segments): Likewise.
19094 2008-01-26 Pavel Roskin <proski@gnu.org>
19096 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19097 just return an error.
19099 2008-01-26 Bean <bean123ch@gmail.com>
19101 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19102 (grub_reiserfs_get_item): Save offset of the next item.
19103 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19105 2008-01-25 Robert Millan <rmh@aybabtu.com>
19107 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19108 make all filesystem sources appear together (possibly fixing omissions
19110 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19111 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19112 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19115 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19117 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19118 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19119 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19120 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19122 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19123 (probe): Add a sanity check to make sure of our ability to read
19124 requested files when probing for filesystem type.
19126 * genmk.rb: Update copyright year (2007).
19128 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19129 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19130 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19131 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19132 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19133 : Remove function prototypes.
19135 2008-01-25 Robert Millan <rmh@aybabtu.com>
19137 Revert my previous commits (based on wrong assumption of how grub_errno
19140 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19141 * kern/file.c (grub_file_open): Likewise.
19143 2008-01-24 Pavel Roskin <proski@gnu.org>
19145 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19146 that hang if GRUB tries to setup colors.
19147 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19148 colors for firmwares that don't support it.
19149 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19150 Recognize Open Hack'Ware, set flags to work around its
19153 2008-01-24 Robert Millan <rmh@aybabtu.com>
19155 * kern/file.c (grub_file_open): Do not account previous failures of
19156 unrelated functions when grub_errno is checked for.
19157 Reported by Oleg Strikov.
19159 2008-01-24 Bean <bean123ch@gmail.com>
19161 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19162 (grub_ufs_sblock): New member volume name.
19163 (grub_ufs_find_file): Fix string copy bug.
19164 (grub_ufs_label): Implement this function properly.
19166 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19167 (grub_hfs_iterate_records): Use the correct file number for extents
19168 and catalog file. Fix problem in next index calculation.
19169 (grub_hfs_find_node): Replace recursive function call with loop.
19170 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19172 2008-01-23 Robert Millan <rmh@aybabtu.com>
19174 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19175 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19176 (grub_multiboot2_real_boot): New function prototype.
19178 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19179 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19181 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19182 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19184 2008-01-23 Robert Millan <rmh@aybabtu.com>
19186 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19187 #ifdef'ed out grub_printf().
19189 2008-01-23 Robert Millan <rmh@aybabtu.com>
19191 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19192 grub_dprintf calls, since they make "debug=all" mode unusable.
19193 (grub_console_checkkey): Likewise.
19195 2008-01-23 Robert Millan <rmh@aybabtu.com>
19197 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19198 `term/i386/pc/at_keyboard.c'.
19199 (pkglib_MODULES): Add `serial.mod'.
19200 (serial_mod_SOURCES): New variable.
19201 (serial_mod_CFLAGS): Likewise.
19202 (serial_mod_LDFLAGS): Likewise.
19204 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19205 `<grub/powerpc/ieee1275/console.h>'.
19206 (grub_keyboard_controller_init): New function prototype.
19207 (grub_console_checkkey): Likewise.
19208 (grub_console_getkey): Likewise.
19210 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19213 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19214 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19216 2008-01-23 Robert Millan <rmh@aybabtu.com>
19218 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19219 present, "(memdisk)/boot/grub" becomes the default prefix.
19221 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19222 a memdisk tarball with all the modules. Add --overlay=DIR option that
19223 allows users to overlay additional files into the image.
19225 2008-01-23 Robert Millan <rmh@aybabtu.com>
19227 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19228 and `machine/memory.h'.
19229 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19230 (_multiboot_mod_SOURCES): New variable.
19231 (_multiboot_mod_CFLAGS): Likewise.
19232 (_multiboot_mod_LDFLAGS): Likewise.
19233 (multiboot_mod_SOURCES): Likewise.
19234 (multiboot_mod_CFLAGS): Likewise.
19235 (multiboot_mod_LDFLAGS): Likewise.
19237 * include/grub/i386/ieee1275/loader.h: New file.
19239 * include/grub/i386/ieee1275/machine.h: Likewise.
19241 * include/grub/i386/ieee1275/memory.h: Likewise.
19243 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19244 variable declaration.
19245 (grub_os_area_size): Likewise.
19247 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19248 (grub_lower_mem, grub_upper_mem): New variables.
19249 (grub_stop_floppy): New function (just to make
19250 grub_multiboot2_real_boot() happy).
19252 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19253 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19254 (grub_stop): New function.
19255 Include `"../realmode.S"' and `"../loader.S"'.
19257 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19258 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19260 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19261 rely on grub_multiboot2_real_boot() for final boot.
19263 2008-01-22 Robert Millan <rmh@aybabtu.com>
19265 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19266 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19267 device that doesn't look like an SD card.
19268 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19269 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19270 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19271 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19274 2008-01-22 Robert Millan <rmh@aybabtu.com>
19276 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19277 avoid claiming over our own code.
19279 2008-01-22 Bean <bean123ch@gmail.com>
19281 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19282 (jpeg_mod_SOURCES): New variable.
19283 (jpeg_mod_CFLAGS): Likewise.
19284 (jpeg_mod_LDFLAGS): Likewise.
19286 * video/readers/jpeg.c : New file.
19288 2008-01-22 Bean <bean123ch@gmail.com>
19290 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19291 there are no more items.
19293 2008-01-21 Robert Millan <rmh@aybabtu.com>
19295 * kern/mm.c (grub_mm_init_region): Improve debug message.
19297 2008-01-21 Robert Millan <rmh@aybabtu.com>
19299 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19300 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19302 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19304 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19305 Indicates start of upper memory.
19306 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19307 (generate_image): Abort when image size is big enough to corrupt
19310 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19311 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19312 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19313 instead of hardcoding 0xA0000.
19314 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19315 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19316 instead of hardcoding 0xA0000.
19318 2008-01-21 Robert Millan <rmh@aybabtu.com>
19320 * disk/memdisk.c (memdisk_size): New variable.
19321 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19323 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19324 image to dynamic memory.
19325 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19326 `memdisk_size'. Free memdisk block.
19328 2008-01-21 Robert Millan <rmh@aybabtu.com>
19330 Fix detection of very small filesystems (like tar).
19332 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19333 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19334 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19335 a problem with this disk).
19337 2008-01-21 Robert Millan <rmh@aybabtu.com>
19339 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19340 on grub_biosdisk_rw_standard() error.
19342 2008-01-21 Robert Millan <rmh@aybabtu.com>
19344 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19346 * kern/elf.c: Likewise.
19347 * kern/ieee1275/ieee1275.c: Likewise.
19348 * kern/powerpc/ieee1275/openfw.c: Likewise.
19349 * term/ieee1275/ofconsole.c: Likewise.
19351 2008-01-21 Robert Millan <rmh@aybabtu.com>
19353 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19355 * include/grub/kernel.h (grub_arch_memdisk_addr)
19356 (grub_arch_memdisk_size): Moved from here ...
19358 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19359 (grub_arch_memdisk_size): ... to here.
19361 2008-01-21 Robert Millan <rmh@aybabtu.com>
19363 Mostly based on bugfix from Bean.
19365 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19366 attribute with hook() parameter.
19367 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19369 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19370 attribute with hook() parameter.
19371 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19374 2008-01-21 Robert Millan <rmh@aybabtu.com>
19376 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19377 (pkglib_MODULES): Add `memdisk.mod'.
19378 (memdisk_mod_SOURCES): New variable.
19379 (memdisk_mod_CFLAGS): Likewise.
19380 (memdisk_mod_LDFLAGS): Likewise.
19382 * disk/memdisk.c: New file.
19384 * include/grub/disk.h (grub_disk_dev_id): Add
19385 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19387 * include/grub/i386/pc/kernel.h
19388 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19389 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19390 (grub_kernel_image_size): New variable declaration.
19391 (grub_total_module_size): Likewise.
19392 (grub_memdisk_image_size): Likewise.
19394 * include/grub/i386/pc/memory.h
19395 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19397 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19398 (grub_arch_memdisk_addr): New variable declaration.
19399 (grub_arch_memdisk_size): Likewise.
19401 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19402 (grub_arch_memdisk_size): Likewise.
19404 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19405 (codestart): Replace hardcoded `0x100000' with
19406 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19408 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19409 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19410 not NULL, append the contents of the file it refers to, at the end of
19411 the compressed kernel image. Initialize `grub_memdisk_image_size'
19412 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19413 (options): Add "memdisk"|'m' option.
19414 (main): Parse --memdisk|-m option, and pass user-provided path as
19415 parameter to generate_image().
19417 2008-01-20 Robert Millan <rmh@aybabtu.com>
19419 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19420 grub_dprintf() calls from here ...
19421 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19423 2008-01-20 Robert Millan <rmh@aybabtu.com>
19425 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19427 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19429 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19430 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19431 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19432 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19434 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19435 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19437 2008-01-19 Robert Millan <rmh@aybabtu.com>
19439 Get rid of confusing function (superseded by
19440 `grub_ieee1275_get_integer_property')
19441 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19443 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19445 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19446 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19447 in native endianness from grub_ieee1275_get_integer_property().
19449 2008-01-19 Robert Millan <rmh@aybabtu.com>
19451 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19452 command after "shut-down", since implementations differ on which
19453 the command for halt is.
19455 2008-01-19 Robert Millan <rmh@aybabtu.com>
19457 * include/grub/i386/linuxbios/console.h: Add header protection.
19458 (grub_keyboard_controller_init): New function prototype.
19459 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19460 (KEYBOARD_COMMAND_READ): Likewise.
19461 (KEYBOARD_COMMAND_WRITE): Likewise.
19462 (KEYBOARD_SCANCODE_SET1): Likewise.
19463 (grub_keyboard_controller_write): New function.
19464 (grub_keyboard_controller_read): Likewise.
19465 (grub_keyboard_controller_init): Likewise.
19467 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19468 (grub_console_init): On coreboot/LinuxBIOS, call
19469 grub_keyboard_controller_init().
19471 2008-01-19 Robert Millan <rmh@aybabtu.com>
19473 PowerPC changes provided by Pavel Roskin.
19475 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19476 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19477 don't rely on cmain() doing it.
19478 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19479 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19481 2008-01-16 Robert Millan <rmh@aybabtu.com>
19483 * include/grub/i386/linuxbios/memory.h
19484 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19485 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19486 receive `table_header' as argument. Instead, probe for it in the
19487 known memory ranges where it can be present.
19488 (grub_available_iterate): Do not pass a fixed `table_header' address
19489 to grub_linuxbios_table_iterate().
19491 2008-01-15 Robert Millan <rmh@aybabtu.com>
19493 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19494 * conf/i386-ieee1275.rmk: New file.
19495 * include/grub/i386/ieee1275/console.h: Likewise.
19496 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19497 * include/grub/i386/ieee1275/kernel.h: Likewise.
19498 * include/grub/i386/ieee1275/time.h: Likewise.
19499 * kern/i386/ieee1275/init.c: Likewise.
19500 * kern/i386/ieee1275/startup.S: Likewise.
19502 2008-01-15 Robert Millan <rmh@aybabtu.com>
19504 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19505 when pointers are 32-bit (but still do set it to one when they are
19508 2008-01-15 Robert Millan <rmh@aybabtu.com>
19510 * include/grub/ieee1275/ieee1275.h
19511 (grub_ieee1275_get_integer_property): New function prototype.
19513 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19514 (grub_ieee1275_get_integer_property): New function. Wraps around
19515 grub_ieee1275_get_property() to handle endianness.
19517 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19518 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19520 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19521 (grub_map): Likewise.
19522 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19524 2008-01-15 Bean <bean123ch@gmail.com>
19526 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19527 (grub_script_execute_cmdline): Reset grub_errno.
19529 * normal/main.c (read_config_file): Reset grub_errno.
19531 * normal/parse.y (script_init): New.
19532 (script): Move function and menuentry here.
19534 (command): Add delimiter at the end of command.
19535 (commands): Adjust to match the new command.
19536 (commandblock): Remove grub_script_lexer_record_start.
19537 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19538 (if): Use the new commands.
19540 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19542 2008-01-15 Robert Millan <rmh@aybabtu.com>
19544 * normal/menu.c (run_menu): Move timeout message from here ...
19545 (print_timeout): ... to here.
19546 (run_menu): Use print_timeout() once during initial draw to print
19547 the whole message, and again in every clock tick to update only
19548 the number of seconds.
19550 2008-01-15 Robert Millan <rmh@aybabtu.com>
19552 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19553 actual size of `available' from grub_ieee1275_get_property(), and
19554 restrict parsing to that bound.
19556 2008-01-15 Christian Franke <franke@computer.org>
19558 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19559 (argp_program_version): Remove variable.
19560 (argp_program_bug_address): Likewise.
19561 (options): Convert from struct argp_option to struct option.
19562 (struct arguments): Remove.
19563 (parse_opt): Remove.
19564 (usage): New function.
19565 (main): Replace struct args members by simple variables.
19566 Replace argp_parse() by getopt_long().
19567 Add switch to evaluate options.
19568 Add missing "(...)" around root_dev in prefix string.
19570 2008-01-14 Robert Millan <rmh@aybabtu.com>
19572 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19573 for grub_ieee1275_exit(), in order to improve portability.
19575 2008-01-14 Robert Millan <rmh@aybabtu.com>
19577 * util/grub.d/10_linux.in (prefix): Define.
19578 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19580 2008-01-13 Pavel Roskin <proski@gnu.org>
19582 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19583 grub_errno if no errors have been detected.
19585 2008-01-12 Robert Millan <rmh@aybabtu.com>
19587 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19588 (grub_util_get_dev_abstraction): New function prototype.
19590 * util/getroot.c: Include `<grub/util/getroot.h>'
19591 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19592 (grub_util_get_dev_abstraction): ... here (new function).
19594 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19595 `PRINT_ABSTRACTION'.
19596 (probe): Probe for abstraction type when requested.
19597 (main): Understand `--target=abstraction'.
19599 * util/i386/efi/grub-install.in: Add abstraction module to core
19600 image when it is found to be necessary.
19601 * util/i386/pc/grub-install.in: Likewise.
19602 * util/powerpc/ieee1275/grub-install.in: Likewise.
19604 * util/update-grub_lib.in (font_path): Return system path without
19605 converting to GRUB path.
19606 * util/update-grub.in: Convert system path returned by font_path()
19607 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19608 abstraction module is needed for loading fonts (if any). Export
19609 that as `GRUB_PRELOAD_MODULES'.
19610 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19613 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19615 Remove some unused code from reiserfs.
19617 * fs/reiserfs.c (struct grub_reiserfs_key)
19618 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19619 (struct grub_reiserfs_node_body): Removed.
19620 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19622 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19624 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19626 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19628 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19630 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19632 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19633 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19634 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19636 2008-01-10 Robert Millan <rmh@aybabtu.com>
19638 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19639 Determines if a file is garbage left by packaging systems, etc.
19640 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19641 for processing /etc/grub.d scripts.
19642 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19643 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19644 as a condition for processing Linux images.
19646 2008-01-10 Pavel Roskin <proski@gnu.org>
19648 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19649 to compile reiserfs.c on PowerPC.
19651 2008-01-10 Robert Millan <rmh@aybabtu.com>
19653 * kern/device.c (grub_device_iterate): Do not abort device iteration
19654 when one of the devices cannot be opened.
19655 * kern/disk.c (grub_disk_open): Do not account previous failures of
19656 unrelated functions when grub_errno is checked for.
19658 2008-01-08 Robert Millan <rmh@aybabtu.com>
19660 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19661 `! grub_linux_is_bzimage', change order of address comparison to make
19662 it more intuitive, and improve "too big zImage" error message.
19664 2008-01-08 Robert Millan <rmh@aybabtu.com>
19666 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19667 `$(update-grub_DATA)'.
19668 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19671 2008-01-07 Robert Millan <rmh@aybabtu.com>
19673 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19674 which instruction is modified by grub-setup during installation
19675 (since it wasn't obvious by only looking at this file).
19677 2008-01-07 Robert Millan <rmh@aybabtu.com>
19679 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19680 listing actual TODO items.
19682 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19684 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19686 (grub_reiserfs_get_key_offset): Likewise.
19687 (grub_reiserfs_set_key_offset): Likewise.
19688 (grub_reiserfs_set_key_type): Likewise.
19689 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19691 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19692 better to remove the bitfield version completely.
19694 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19696 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19697 allocated from the heap, due to the fshelp implementation.
19698 (grub_reiserfs_dir): Free NODE, due to the same reason.
19700 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19702 Mostly from Vincent Pelletier:
19704 * fs/reiserfs.c: New file.
19706 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19707 (reiserfs_mod_SOURCES): New variable.
19708 (reiserfs_mod_CFLAGS): Likewise.
19709 (reiserfs_mod_LDFLAGS): Likewise.
19711 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19712 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19713 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19716 2008-01-06 Robert Millan <rmh@aybabtu.com>
19718 * normal/color.c: Remove `<grub/env.h>'.
19720 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19722 * include/grub/normal.h: Include <grub/env.h>.
19724 2008-01-05 Robert Millan <rmh@aybabtu.com>
19726 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19727 usage example with `(hd0,1)'.
19728 Reported by Samuel Thibault.
19730 2008-01-05 Robert Millan <rmh@aybabtu.com>
19732 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19733 (grub_linux_boot_zimage): Rename to ...
19734 (grub_linux_boot): ... this.
19735 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19736 (grub_linux_boot_zimage): Conditionalize zImage copy.
19738 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19739 (grub_linux_boot_bzimage): Remove prototype.
19740 (grub_linux_boot_zimage): Rename to ...
19741 (grub_linux_boot): ... this.
19743 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19744 (grub_linux_boot): Remove function.
19746 2008-01-05 Robert Millan <rmh@aybabtu.com>
19748 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19749 (grub_env_write_color_highlight): Likewise.
19750 (grub_wait_after_message): Likewise.
19752 * normal/color.c: New file.
19754 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19755 (normal_mod_DEPENDENCIES): Likewise.
19757 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19758 (normal_mod_DEPENDENCIES): Likewise.
19760 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19761 (normal_mod_DEPENDENCIES): Likewise.
19763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19764 (normal_mod_DEPENDENCIES): Likewise.
19766 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19767 for waiting after a message is printed.
19768 * normal/main.c (read_config_file): Likewise.
19769 (grub_normal_init): Register grub_env_write_color_normal() and
19770 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19771 `color_highlight' variables as global.
19773 * normal/menu.c (grub_wait_after_message): New function.
19774 (grub_color_menu_normal): New variable. Replaces ...
19775 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19776 (grub_color_menu_highlight): New variable. Replaces ...
19777 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19778 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19779 `GRUB_TERM_COLOR_STANDARD'.
19780 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19781 `normal_code' and `highlight_code' to `old_color_normal' and
19782 `old_color_highlight', respectively.
19783 (grub_menu_init_page): Update colors when drawing the menu, based on
19784 `menu_color_normal' and `menu_color_highlight' variables.
19785 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19786 a message is printed.
19788 2008-01-05 Robert Millan <rmh@aybabtu.com>
19790 * kern/env.c (grub_env_context_open): Propagate hooks for global
19791 variables to new context.
19793 * kern/main.c (grub_set_root_dev): Export `root' variable.
19795 2008-01-05 Robert Millan <rmh@aybabtu.com>
19797 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19798 discs unconditionally, since udev and others have options to provide
19801 2008-01-05 Robert Millan <rmh@aybabtu.com>
19803 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19805 2008-01-04 Christian Franke <franke@computer.org>
19807 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19810 2008-01-03 Pavel Roskin <proski@gnu.org>
19812 * kern/i386/linuxbios/init.c: Put "void" to all function
19813 declarations with no arguments.
19814 * kern/powerpc/ieee1275/init.c: Likewise.
19815 * term/i386/pc/at_keyboard.c: Likewise.
19816 * term/i386/pc/vga_text.c: Likewise.
19817 * util/grub-mkdevicemap.c: Likewise.
19819 2008-01-02 Robert Millan <rmh@aybabtu.com>
19821 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19822 message when loaded image is out of bounds.
19823 (grub_multiboot_load_elf64): Likewise.
19825 2008-01-02 Pavel Roskin <proski@gnu.org>
19827 * util/grub.d/10_linux.in: Try version without ".old" when
19828 looking for initrd. It's better to use initrd from the newer
19829 kernel of the same version than no initrd at all.
19831 2008-01-01 Robert Millan <rmh@aybabtu.com>
19833 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19835 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19837 * include/grub/video.h: Added grub_video_unmap_color and
19838 grub_video_get_active_render_target.
19839 (grub_video_adapter): Added unmap_color and get_active_render_target.
19841 * video/video.c: Added grub_video_unmap_color and
19842 grub_video_get_active_render_target.
19843 (grub_video_get_info): Changed method to accept NULL pointer as an
19844 argument to allow detection of active video adapter.
19846 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19847 grub_video_vbe_unmap_color_int.
19848 Added grub_video_vbe_unmap_color and
19849 grub_video_vbe_get_active_render_target.
19850 (grub_video_vbe_adapter): Added unmap_color and
19851 get_active_render_target.
19853 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19854 with grub_video_vbe_unmap_color_int.
19856 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19857 (DEFAULT_NORMAL_COLOR): Likewise.
19858 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19859 (DEFAULT_FG_COLOR): Removed.
19860 (DEFAULT_BG_COLOR): Likewise.
19861 (DEFAULT_CURSOR_COLOR): Changed value.
19862 (grub_virtual_screen): Added standard_color_setting,
19863 normal_color_setting, highlight_color_setting and term_color.
19864 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19865 (bitmap_width): Added.
19866 (bitmap_height): Likewise.
19867 (bitmap): Likewise.
19868 (set_term_color): Likewise.
19869 (grub_virtual_screen_setup): Changed to use new terminal coloring
19871 (grub_gfxterm_init): Added init for bitmap.
19872 (grub_gfxterm_fini): Added destroy for bitmap.
19873 (redraw_screen_rect): Updated to use background bitmap and new
19875 (scroll_up): Added optimization for case when there is no bitmap.
19876 (grub_gfxterm_cls): Fixed to use correct background color.
19877 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19879 (grub_virtual_screen_setcolor): Likewise.
19880 (grub_virtual_screen_getcolor): Added.
19881 (grub_gfxterm_background_image_cmd): Likewise.
19882 (grub_video_term): Added setcolor and getcolor.
19883 (MOD_INIT): Added registration of background_image command.
19884 (MOD_TERM): Added unregistration for background_image command.
19886 2007-12-30 Pavel Roskin <proski@gnu.org>
19888 * loader/multiboot_loader.c: Fix multiboot command
19889 unregistration. Fix all typos in the word "multiboot".
19891 2007-12-29 Pavel Roskin <proski@gnu.org>
19893 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19894 support for initrd names used in Fedora.
19896 2007-12-26 Bean <bean123ch@gmail.com>
19898 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19899 (cpio_mod_SOURCES): New variable.
19900 (cpio_mod_CFLAGS): Likewise.
19901 (cpio_mod_LDFLAGS): Likewise.
19903 * fs/cpio.c: New file.
19905 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19907 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19909 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19913 2007-12-25 Robert Millan <rmh@aybabtu.com>
19915 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19916 (grub_getcolor): New function.
19918 * kern/term.c (grub_getcolor): New function.
19919 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19920 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19921 (print_entry): Set normal and highlight colors to
19922 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19923 respectively, before printing and restore them to old
19925 (grub_menu_init_page): Likewise. Fill an additional colored space
19926 that would otherwise be left blank.
19928 * term/efi/console.c (grub_console_getcolor): New function.
19929 (struct grub_console_term.getcolor): New variable.
19930 * term/i386/pc/console.c (grub_console_getcolor): New function.
19931 (struct grub_console_term.getcolor): New variable.
19932 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19933 (struct grub_console_term.getcolor): New variable.
19935 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19936 (struct grub_console_term.setcolor): Remove variable.
19937 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19938 (struct grub_console_term.setcolor): Remove variable.
19939 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19940 (struct grub_console_term.setcolor): Remove variable.
19941 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19942 (struct grub_console_term.setcolor): Remove variable.
19944 2007-12-25 Robert Millan <rmh@aybabtu.com>
19946 * configure.ac: Search for possible unifont.hex locations, and
19947 define UNIFONT_HEX if found.
19949 * Makefile.in (UNIFONT_HEX): Define variable.
19950 (DATA): Rename to ...
19951 (PKGLIB): ... this. Update all users.
19952 (PKGDATA): New variable.
19953 (pkgdata_IMAGES): Rename to ...
19954 (pkglib_IMAGES): ... this. Update all users.
19955 (pkgdata_MODULES): Rename to ...
19956 (pkglib_MODULES): ... this. Update all users.
19957 (pkgdata_PROGRAMS): Rename to ...
19958 (pkglib_PROGRAMS): ... this. Update all users.
19959 (pkgdata_DATA): Rename to ...
19960 (pkglib_DATA): ... this. Update all users.
19961 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19962 (unicode.pff, ascii.pff): New rules.
19963 (all-local): Add `$(PKGDATA)' dependency.
19964 (install-local): Process `$(PKGDATA)'.
19966 * util/update-grub_lib.in (font_path): Search for *.pff files in
19967 a few more locations, including `${pkgdata}'.
19969 2007-12-23 Robert Millan <rmh@aybabtu.com>
19971 Patch from Bean <bean123ch@gmail.com>:
19972 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19975 2007-12-21 Bean <bean123ch@gmail.com>
19977 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19978 (ntfscomp_mod_SOURCES): New variable.
19979 (ntfscomp_mod_CFLAGS): Likewise.
19980 (ntfscomp_mod_LDFLAGS): Likewise.
19982 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19983 (grub_probe_SOURCES): Likewise.
19984 (grub_emu_SOURCES): Likewise.
19986 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19987 (grub_emu_SOURCES): Likewise.
19989 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19990 (grub_emu_SOURCES): Likewise.
19992 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19993 (grub_emu_SOURCES): Likewise.
19995 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19996 (read_run_list): Renamed to grub_ntfs_read_run_list.
19997 (decomp_nextvcn): Moved to ntfscomp.c.
19998 (decomp_getch): Likewise.
19999 (decomp_get16): Likewise.
20000 (decomp_block): Likewise.
20001 (read_block): Likewise.
20002 (read_data): Partially moved to ntfscomp.c.
20003 (fixup): Change unsigned to grub_uint16_t.
20004 (read_mft): Change unsigned long to grub_uint32_t.
20005 (read_attr): Likewise.
20006 (read_data): Likewise.
20007 (read_run_data): Likewise.
20008 (read_run_list): Likewise.
20009 (read_mft): Likewise.
20011 * fs/ntfscomp.c: New file.
20013 * include/grub/ntfs.h: New file.
20015 2007-12-16 Robert Millan <rmh@aybabtu.com>
20017 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20018 IDE disk check, since Linux is known to support 20 IDE disks.
20019 Reported by Colin Watson.
20021 2007-12-15 Bean <bean123ch@gmail.com>
20023 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20024 (lnxboot_img_SOURCES): New variable.
20025 (lnxboot_img_ASFLAGS): Likewise.
20026 (lnxboot_img_LDFLAGS): Likewise.
20028 * boot/i386/pc/lnxboot.S: New file.
20030 2007-11-24 Pavel Roskin <proski@gnu.org>
20032 * configure.ac: Test if '--build-id=none' is supported by the
20033 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20034 objcopy to generate incorrect binary files (binutils
20035 2.17.50.0.18-1 as shipped by Fedora 8).
20036 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20037 linking, so that build ID doesn't break the test.
20039 2007-11-24 Pavel Roskin <proski@gnu.org>
20041 * include/grub/i386/time.h: use "void" in the argument list
20042 of grub_cpu_idle().
20043 * include/grub/powerpc/time.h: Likewise.
20044 * include/grub/sparc64/time.h: Likewise.
20046 2007-11-18 Christian Franke <franke@computer.org>
20048 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20049 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20050 This fixes the problem that function keys did not work in grub-emu.
20052 2007-11-18 Christian Franke <franke@computer.org>
20054 * disk/host.c (grub_host_open): Remove attribute unused from
20055 name parameter. Add check for "host". This fixes the problem
20056 that grub-emu does not find partitions.
20058 2007-11-18 Christian Franke <franke@computer.org>
20060 * util/hostfs.c (is_dir): New function.
20061 (grub_hostfs_dir): Handle missing dirent.d_type case.
20062 (grub_hostfs_read): Add missing fseek().
20063 (grub_hostfs_label): Clear label pointer. This fixes a crash
20064 of grub-emu on "ls (host)".
20066 2007-11-18 Christian Franke <franke@computer.org>
20068 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20069 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20070 to 64 bit boundary by default.
20072 2007-11-18 Bean <bean123ch@gmail.com>
20074 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20075 (hexdump_mod_SOURCES): New variable.
20076 (hexdump_mod_CFLAGS): Likewise.
20077 (hexdump_mod_LDFLAGS): Likewise.
20079 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20081 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20083 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20087 * include/grub/hexdump.h: New file.
20089 * commands/hexdump.c: New file.
20091 2007-11-10 Robert Millan <rmh@aybabtu.com>
20093 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20094 in grub_outb() calls.
20095 (beep_on): Likewise.
20097 2007-11-10 Christian Franke <franke@computer.org>
20099 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20100 (grub_menu_run): Likewise.
20102 2007-11-10 Robert Millan <rmh@aybabtu.com>
20104 * include/grub/i386/efi/machine.h: New file.
20105 * include/grub/i386/linuxbios/machine.h: Likewise.
20106 * include/grub/i386/pc/machine.h: Likewise.
20107 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20108 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20110 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20111 (serial_hw_io_addr): New variable.
20112 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20113 instead of `(unsigned short *) 0x400'.
20115 2007-11-10 Bean <bean123ch@gmail.com>
20117 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20119 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20121 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20122 (vga_mod_SOURCES): Added.
20123 (vga_mod_CFLAGS): Likewise.
20124 (vga_mod_LDFLAGS): Likewise.
20126 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20128 (set_map_mask): Likewise.
20129 (set_read_map): Likewise.
20130 (set_read_address): Likewise.
20131 (vga_font): Removed variable.
20132 (get_vga_glyph): Removed function.
20133 (invalidate_char): Likewise.
20134 (write_char): Changed to use grub_font_get_glyph() for font
20136 (grub_vga_putchar): Likewise.
20137 (grub_vga_getcharwidth): Likewise.
20139 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20141 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20143 (pxeboot_img_LDFLAGS): Likewise.
20144 (diskboot_img_LDFLAGS): Likewise.
20145 (kernel_img_LDFLAGS): Likewise.
20147 2007-11-06 Robert Millan <rmh@aybabtu.com>
20149 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20150 in grub_outb() calls.
20151 (serial_hw_init): Likewise.
20153 2007-11-05 Robert Millan <rmh@aybabtu.com>
20155 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20156 spaces. Skip non-regular files.
20158 2007-11-05 Robert Millan <rmh@aybabtu.com>
20160 * kern/disk.c (grub_disk_firmware_fini)
20161 (grub_disk_firmware_is_tainted): New variables.
20163 * include/grub/disk.h (grub_disk_firmware_fini)
20164 (grub_disk_firmware_is_tainted): Likewise.
20166 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20167 (grub_disk_biosdisk_fini): ... to here.
20168 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20169 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20170 is set. Register grub_disk_biosdisk_fini() in
20171 `grub_disk_firmware_fini'.
20173 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20174 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20175 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20176 to finish existing firmware disk interface.
20178 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20179 (ata_mod_SOURCES): New variable.
20180 (ata_mod_CFLAGS): Likewise.
20181 (ata_mod_LDFLAGS): Likewise.
20183 2007-11-05 Robert Millan <rmh@aybabtu.com>
20185 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20186 (grub_ata_wait): Reimplement using grub_millisleep().
20188 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20189 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20191 2007-11-03 Marco Gerards <marco@gnu.org>
20193 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20194 (CRTC_ADDR_PORT): New macro.
20195 (CRTC_DATA_PORT): Likewise.
20196 (CRTC_CURSOR): Likewise.
20197 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20198 (CRTC_CURSOR_ADDR_LOW): Likewise.
20199 (update_cursor): New function.
20200 (grub_console_real_putchar): Call `update_cursor'.
20201 (grub_console_gotoxy): Likewise.
20202 (grub_console_cls): Set the default color when clearing the
20204 (grub_console_setcursor): Implemented.
20206 2007-11-03 Marco Gerards <marco@gnu.org>
20208 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20210 (grub_ata_pio_write): Likewise.
20212 (grub_atapi_identify): Wait after issuing an ATA command.
20213 (grub_atapi_packet): Likewise.
20214 (grub_ata_identify): Likewise.
20215 (grub_ata_readwrite): Likewise.
20217 2007-11-03 Marco Gerards <marco@gnu.org>
20219 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20220 (grub_ata_pio_write): Likewise.
20221 (grub_ata_readwrite): Use `grub_error', instead of
20222 returning `grub_errno'.
20224 2007-11-03 Marco Gerards <marco@gnu.org>
20226 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20227 grub_ata_pio_write once for every single sector, instead of for
20230 2007-10-31 Robert Millan <rmh@aybabtu.com>
20232 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20234 * conf/i386-linuxbios.rmk: New file.
20236 * kern/i386/pc/hardware.c: Likewise.
20237 * term/i386/pc/at_keyboard.c: Likewise.
20238 * term/i386/pc/vga_text.c: Likewise.
20240 * include/grub/i386/linuxbios/boot.h: Likewise.
20241 * include/grub/i386/linuxbios/console.h: Likewise.
20242 * include/grub/i386/linuxbios/init.h: Likewise.
20243 * include/grub/i386/linuxbios/kernel.h: Likewise.
20244 * include/grub/i386/linuxbios/loader.h: Likewise.
20245 * include/grub/i386/linuxbios/memory.h: Likewise.
20246 * include/grub/i386/linuxbios/serial.h: Likewise.
20247 * include/grub/i386/linuxbios/time.h: Likewise.
20249 * kern/i386/linuxbios/init.c: Likewise.
20250 * kern/i386/linuxbios/startup.S: Likewise.
20251 * kern/i386/linuxbios/table.c: Likewise.
20253 2007-10-31 Marco Gerards <marco@gnu.org>
20255 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20256 (ata_mod_SOURCES): New variable.
20257 (ata_mod_CFLAGS): Likewise.
20258 (ata_mod_LDFLAGS): Likewise.
20260 * disk/ata.c: New file.
20262 * include/grub/disk.h (grub_disk_dev_id): Add
20263 `GRUB_DISK_DEV_ATA_ID'.
20265 2007-10-31 Robert Millan <rmh@aybabtu.com>
20267 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20268 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20270 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20271 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20273 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20276 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20278 2007-10-27 Robert Millan <rmh@aybabtu.com>
20280 * include/grub/types.h (ULONG_MAX): Define macro.
20282 2007-10-22 Robert Millan <rmh@aybabtu.com>
20284 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20286 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20288 2007-10-22 Robert Millan <rmh@aybabtu.com>
20290 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20291 (pkgdata_MODULES): Add `biosdisk.mod'.
20292 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20295 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20296 (grub_biosdisk_init): Replace with ...
20297 (GRUB_MOD_INIT(biosdisk)): ... this.
20298 (grub_biosdisk_fini): Replace with ...
20299 (GRUB_MOD_FINI(biosdisk)): ... this.
20301 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20302 (grub_machine_init): Remove call to grub_biosdisk_init().
20303 (grub_machine_fini): Remove call to grub_machine_fini().
20305 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20307 2007-10-22 Robert Millan <rmh@aybabtu.com>
20309 * include/grub/time.h: New file.
20310 * include/grub/i386/time.h: Likewise.
20311 * include/grub/powerpc/time.h: Likewise.
20312 * include/grub/sparc64/time.h: Likewise.
20314 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20316 (KERNEL_MACHINE_TIME_HEADER): ... this.
20317 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20319 (KERNEL_MACHINE_TIME_HEADER): ... this.
20320 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20322 (KERNEL_MACHINE_TIME_HEADER): ... this.
20324 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20325 (grub_millisleep): New function.
20326 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20327 (grub_millisleep): New function.
20328 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20329 Remove `grub/machine/time.h' include.
20330 (grub_millisleep): New function.
20331 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20332 Remove `grub/machine/time.h' include.
20333 (grub_millisleep): New function.
20335 * include/grub/misc.h (grub_div_roundup): New function.
20337 * kern/misc.c: Include `<grub/time.h>'.
20338 (grub_millisleep_generic): New function.
20340 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20342 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20344 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20345 `machine/time.h'. Add `time.h'.
20346 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20348 2007-10-21 Robert Millan <rmh@aybabtu.com>
20350 * include/grub/misc.h (grub_max): New function.
20352 2007-10-21 Robert Millan <rmh@aybabtu.com>
20354 * util/misc.c (grub_util_info): Call fflush() before returning.
20356 2007-10-20 Robert Millan <rmh@aybabtu.com>
20358 * genmk.rb (Image): Copy `extra_flags' from here ...
20359 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20361 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20362 to `argc' and `args' arguments.
20364 2007-10-17 Robert Millan <rmh@aybabtu.com>
20366 * kern/i386/loader.S: New file.
20368 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20369 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20370 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20371 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20372 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20373 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20374 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20375 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20376 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20377 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20378 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20379 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20380 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20381 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20383 * kern/i386/realmode.S: New file.
20385 * kern/i386/pc/startup.S (protstack): Moved from here ...
20386 * kern/i386/realmode.S (protstack)... to here.
20387 * kern/i386/pc/startup.S (gdt): Moved from here ...
20388 * kern/i386/realmode.S (gdt)... to here.
20389 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20390 * kern/i386/realmode.S (prot_to_real)... to here.
20392 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20393 `kern/i386/realmode.S'.
20395 2007-10-17 Robert Millan <rmh@aybabtu.com>
20397 * include/grub/i386/loader.h: New file.
20399 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20400 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20401 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20402 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20403 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20404 * include/grub/i386/loader.h (grub_linux_prot_size)
20405 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20406 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20407 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20408 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20410 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20412 2007-10-15 Robert Millan <rmh@aybabtu.com>
20414 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20415 filesystem when dev->disk is unset.
20416 Do probe for filesystem even when dev->disk->has_partitions is set.
20417 In case a filesystem is found, always report it.
20418 In case it isn't, if dev->disk->has_partitions is set, report that
20419 a partition table was found instead of reporting that no filesystem
20420 could be identified.
20422 2007-10-12 Robert Millan <rmh@aybabtu.com>
20424 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20425 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20427 * include/grub/types.h (grub_host_to_target16): New macro.
20428 (grub_host_to_target32): Likewise.
20429 (grub_host_to_target64): Likewise.
20430 (grub_target_to_host16): Likewise.
20431 (grub_target_to_host32): Likewise.
20432 (grub_target_to_host64): Likewise.
20434 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20435 Renamed from to ...
20436 (GRUB_MOD_ALIGN): ...this. Update all users.
20438 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20439 grub_host_to_target32.
20440 Replace grub_be_to_cpu32 with grub_target_to_host32.
20441 (load_modules): Likewise.
20442 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20443 Replace grub_be_to_cpu32 with grub_target_to_host32.
20444 Replace grub_cpu_to_be16 with grub_host_to_target16.
20445 Replace grub_cpu_to_be32 grub_host_to_target32.
20447 2007-10-12 Robert Millan <rmh@aybabtu.com>
20449 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20450 * util/elf/grub-mkimage.c: ... here.
20452 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20453 `util/powerpc/ieee1275/grub-mkimage.c'.
20455 2007-10-07 Robert Millan <rmh@aybabtu.com>
20457 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20458 and make it easier to figure out.
20459 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20460 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20461 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20462 leave us with less than HEAP_MIN_SIZE total heap.
20463 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20465 2007-10-03 Robert Millan <rmh@aybabtu.com>
20467 * include/grub/i386/io.h: New file.
20468 * commands/i386/pc/play.c (inb): Removed.
20470 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20472 * term/i386/pc/serial.c (inb): Removed.
20474 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20476 * term/i386/pc/vga.c (inb): Removed.
20478 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20481 2007-10-02 Robert Millan <rmh@aybabtu.com>
20483 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20485 Reported by Marcin Kurek.
20487 2007-09-07 Robert Millan <rmh@aybabtu.com>
20489 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20490 SmartFirmware version updates (as released by Sven Luther), and avoid
20491 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20492 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20495 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20497 From Hitoshi Ozeki:
20498 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20499 when merging two regions.
20501 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20503 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20504 * normal/completion.c (grub_normal_do_completion): Likewise.
20505 Reported by Hitoshi Ozeki.
20507 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20509 Do not use devices at boot in chainloading.
20511 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20512 (boot_part_addr): Likewise.
20513 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20514 with BOOT_DRIVE and BOOT_PART_ADDR.
20515 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20516 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20518 2007-08-29 Robert Millan <rmh@aybabtu.com>
20520 Patch from Simon Peter <dn.tlp@gmx.net>:
20521 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20522 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20523 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20524 util/i386/pc/grub-setup.c_DEPENDENCIES.
20525 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20526 util/grub-probe.c_DEPENDENCIES.
20527 * conf/powerpc-ieee1275.rmk: Likewise.
20529 2007-08-28 Robert Millan <rmh@aybabtu.com>
20531 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20532 to tell grub-mkdevicemap how to name devices.
20533 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20536 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20537 util/i386/get_disk_name.c.
20538 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20539 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20540 util/ieee1275/get_disk_name.c.
20542 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20544 * DISTLIST: Add util/i386/get_disk_name.c and
20545 util/ieee1275/get_disk_name.c.
20547 * util/grub-mkdevicemap.c: Replace device naming logic with
20548 grub_util_get_disk_name() calls.
20550 2007-08-20 Robert Millan <rmh@aybabtu.com>
20552 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20553 (so that it works for both plural and singular quantities).
20555 2007-08-05 Robert Millan <rmh@aybabtu.com>
20557 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20558 so that [xz] isn't taken into account when determining order.
20560 2007-08-02 Marco Gerards <marco@gnu.org>
20562 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20563 `include/multiboot2.h', `include/grub/elfload.h',
20564 `include/multiboot.h', `include/grub/multiboot.h',
20565 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20566 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20567 `kern/elf.c', `loader/multiboot_loader.c',
20568 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20569 `loader/i386/pc/multiboot2.c',
20570 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20571 `util/i386/pc/grub-mkrescue.in'. Remove
20572 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20573 `include/grub/i386/pc/util/biosdisk.h' and
20574 `include/grub/powerpc/ieee1275/multiboot.h'.
20576 2007-08-02 Bean <bean123ch@gmail.com>
20578 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20579 (ntfs_mod_SOURCES): New variable.
20580 (ntfs_mod_CFLAGS): Likewise.
20581 (ntfs_mod_LDFLAGS): Likewise.
20583 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20584 (grub_probe_SOURCES): Likewise.
20585 (grub_emu_SOURCES): Likewise.
20587 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20588 (grub_emu_SOURCES): Likewise.
20590 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20591 (grub_emu_SOURCES): Likewise.
20593 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20595 * fs/ntfs.c: New file.
20597 2007-08-02 Bean <bean123ch@gmail.com>
20599 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20601 * file.h (grub_file): Likewise.
20603 * fshelp.h (grub_fshelp_read_file): Likewise.
20605 * util/i386/pc/grub-setup.c (setup): Likewise.
20606 (save_first_sector): Likewise.
20607 (save_blocklists): Likewise.
20609 * fs/affs.c (grub_affs_read_file): Likewise.
20611 * fs/ext2.c (grub_ext2_read_file): Likewise.
20613 * fs/fat.c (grub_fat_read_data): Likewise.
20615 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20617 * fs/hfs.c (grub_hfs_read_file): Likewise.
20619 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20621 * fs/jfs.c (grub_jfs_read_file): Likewise.
20623 * fs/minix.c (grub_minix_read_file): Likewise.
20625 * fs/sfs.c (grub_sfs_read_file): Likewise.
20627 * fs/ufs.c (grub_ufs_read_file): Likewise.
20629 * fs/xfs.c (grub_xfs_read_file): Likewise.
20631 * command/blocklist.c (read_blocklist): Likewise.
20632 (print_blocklist): Likewise.
20634 2007-08-02 Marco Gerards <marco@gnu.org>
20636 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20639 * disk/host.c: New file.
20641 * util/hostfs.c: Likewise.
20643 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20644 return `GRUB_ERR_BAD_FS'.
20645 * fs/sfs.c (grub_sfs_mount): Likewise.
20646 * fs/xfs.c (grub_xfs_mount): Likewise.
20648 * include/grub/disk.h (enum grub_disk_dev_id): Add
20649 `GRUB_DISK_DEVICE_HOST_ID'.
20651 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20653 2007-07-24 Jerone Young <jerone@gmail.com>
20655 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20656 modules for compilation.
20657 * conf/powerpc-ieee1275.rmk: Likewise.
20659 * include/multiboot.h: Move multiboot definitions to one file. Rename
20660 many definitions to not get grub specific.
20661 * include/multiboot2.h: Create header with multiboot 2 definitions.
20662 * include/grub/multiboot.h: Header for grub specific function
20663 prototypes and definitions.
20664 * include/grub/multiboot2.h: Likewise.
20665 * include/grub/multiboot_loader.h: Likewise.
20666 * include/grub/i386/pc/multiboot.h: Removed.
20667 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20669 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20670 and 2 to allow for one multiboot and module commands.
20671 * loader/multiboot2.c: Add multiboot2 functionality.
20672 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20673 and definition names.
20674 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20676 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20677 ieee1275 specific multiboot2 code.
20679 * kern/i386/pc/startup.S: Change headers and definition names for
20680 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20682 2007-07-22 Robert Millan <rmh@aybabtu.com>
20684 * geninitheader.sh: Process file specified in first parameter rather
20685 than hardcoding grub_modules_init.lst.
20686 * geninit.sh: Likewise. Also, construct header name dynamically rather
20687 than hardcoding grub_modules_init.h.
20689 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20690 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20691 grub_probe_init.[ch] and grub_setup_init.[ch].
20693 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20694 grub_modules_init.h with grub_emu_init.h.
20695 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20696 grub_probe_init.[ch] files.
20697 * conf/i386-efi.rmk: Likewise.
20698 * conf/i386-pc.rmk: Likewise.
20699 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20700 grub_setup_init.[ch] files.
20702 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20703 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20704 to initialize modules rather than a list of hardcoded functions.
20705 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20706 grub_init_all() to initialize modules rather than a list of hardcoded
20709 2007-07-22 Robert Millan <rmh@aybabtu.com>
20711 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20712 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20714 2007-07-22 Robert Millan <rmh@aybabtu.com>
20716 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20717 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20718 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20719 flag when running on SmartFirmware.
20720 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20721 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20724 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20725 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20726 rather than decreasing it.
20728 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20729 there's not enough space to do it, fail in the same way as when it
20730 can't be done because there are no partitions.
20732 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20733 when nvsetenv failed.
20735 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20737 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20738 because this rule is automatically generated.
20739 (grub-mkrescue): Removed for the same reason as above.
20741 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20743 Migrate to GNU General Public License Version 3.
20745 * COPYING: Replaced with the plain text version of GPLv3.
20747 * config.guess: Updated from gnulib.
20748 * config.sub: Likewise.
20750 * geninit.sh: Output a GPLv3 copyright notice.
20751 * geninitheader.sh: Likewise.
20752 * genmodsrc.sh: Likewise.
20753 * gensymlist.sh.in: Likewise.
20755 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20756 * boot/i386/pc/diskboot.S: Likewise.
20757 * boot/i386/pc/pxeboot.S: Likewise.
20758 * commands/blocklist.c: Likewise.
20759 * commands/boot.c: Likewise.
20760 * commands/cat.c: Likewise.
20761 * commands/cmp.c: Likewise.
20762 * commands/configfile.c: Likewise.
20763 * commands/echo.c: Likewise.
20764 * commands/help.c: Likewise.
20765 * commands/ls.c: Likewise.
20766 * commands/search.c: Likewise.
20767 * commands/terminal.c: Likewise.
20768 * commands/test.c: Likewise.
20769 * commands/videotest.c: Likewise.
20770 * commands/i386/cpuid.c: Likewise.
20771 * commands/i386/pc/halt.c: Likewise.
20772 * commands/i386/pc/play.c: Likewise.
20773 * commands/i386/pc/reboot.c: Likewise.
20774 * commands/i386/pc/vbeinfo.c: Likewise.
20775 * commands/i386/pc/vbetest.c: Likewise.
20776 * commands/ieee1275/halt.c: Likewise.
20777 * commands/ieee1275/reboot.c: Likewise.
20778 * commands/ieee1275/suspend.c: Likewise.
20779 * disk/loopback.c: Likewise.
20780 * disk/lvm.c: Likewise.
20781 * disk/raid.c: Likewise.
20782 * disk/efi/efidisk.c: Likewise.
20783 * disk/i386/pc/biosdisk.c: Likewise.
20784 * disk/ieee1275/ofdisk.c: Likewise.
20785 * font/manager.c: Likewise.
20786 * fs/affs.c: Likewise.
20787 * fs/ext2.c: Likewise.
20788 * fs/fat.c: Likewise.
20789 * fs/fshelp.c: Likewise.
20790 * fs/hfs.c: Likewise.
20791 * fs/hfsplus.c: Likewise.
20792 * fs/iso9660.c: Likewise.
20793 * fs/jfs.c: Likewise.
20794 * fs/minix.c: Likewise.
20795 * fs/sfs.c: Likewise.
20796 * fs/ufs.c: Likewise.
20797 * fs/xfs.c: Likewise.
20798 * hello/hello.c: Likewise.
20799 * include/grub/acorn_filecore.h: Likewise.
20800 * include/grub/arg.h: Likewise.
20801 * include/grub/bitmap.h: Likewise.
20802 * include/grub/boot.h: Likewise.
20803 * include/grub/cache.h: Likewise.
20804 * include/grub/device.h: Likewise.
20805 * include/grub/disk.h: Likewise.
20806 * include/grub/dl.h: Likewise.
20807 * include/grub/elfload.h: Likewise.
20808 * include/grub/env.h: Likewise.
20809 * include/grub/err.h: Likewise.
20810 * include/grub/file.h: Likewise.
20811 * include/grub/font.h: Likewise.
20812 * include/grub/fs.h: Likewise.
20813 * include/grub/fshelp.h: Likewise.
20814 * include/grub/gzio.h: Likewise.
20815 * include/grub/hfs.h: Likewise.
20816 * include/grub/kernel.h: Likewise.
20817 * include/grub/loader.h: Likewise.
20818 * include/grub/lvm.h: Likewise.
20819 * include/grub/misc.h: Likewise.
20820 * include/grub/mm.h: Likewise.
20821 * include/grub/net.h: Likewise.
20822 * include/grub/normal.h: Likewise.
20823 * include/grub/parser.h: Likewise.
20824 * include/grub/partition.h: Likewise.
20825 * include/grub/pc_partition.h: Likewise.
20826 * include/grub/raid.h: Likewise.
20827 * include/grub/rescue.h: Likewise.
20828 * include/grub/script.h: Likewise.
20829 * include/grub/setjmp.h: Likewise.
20830 * include/grub/symbol.h: Likewise.
20831 * include/grub/term.h: Likewise.
20832 * include/grub/terminfo.h: Likewise.
20833 * include/grub/tparm.h: Likewise.
20834 * include/grub/types.h: Likewise.
20835 * include/grub/video.h: Likewise.
20836 * include/grub/efi/api.h: Likewise.
20837 * include/grub/efi/chainloader.h: Likewise.
20838 * include/grub/efi/console.h: Likewise.
20839 * include/grub/efi/console_control.h: Likewise.
20840 * include/grub/efi/disk.h: Likewise.
20841 * include/grub/efi/efi.h: Likewise.
20842 * include/grub/efi/pe32.h: Likewise.
20843 * include/grub/efi/time.h: Likewise.
20844 * include/grub/i386/linux.h: Likewise.
20845 * include/grub/i386/setjmp.h: Likewise.
20846 * include/grub/i386/types.h: Likewise.
20847 * include/grub/i386/efi/kernel.h: Likewise.
20848 * include/grub/i386/efi/loader.h: Likewise.
20849 * include/grub/i386/efi/time.h: Likewise.
20850 * include/grub/i386/pc/biosdisk.h: Likewise.
20851 * include/grub/i386/pc/boot.h: Likewise.
20852 * include/grub/i386/pc/chainloader.h: Likewise.
20853 * include/grub/i386/pc/console.h: Likewise.
20854 * include/grub/i386/pc/init.h: Likewise.
20855 * include/grub/i386/pc/kernel.h: Likewise.
20856 * include/grub/i386/pc/loader.h: Likewise.
20857 * include/grub/i386/pc/memory.h: Likewise.
20858 * include/grub/i386/pc/multiboot.h: Likewise.
20859 * include/grub/i386/pc/serial.h: Likewise.
20860 * include/grub/i386/pc/time.h: Likewise.
20861 * include/grub/i386/pc/vbe.h: Likewise.
20862 * include/grub/i386/pc/vbeblit.h: Likewise.
20863 * include/grub/i386/pc/vbefill.h: Likewise.
20864 * include/grub/i386/pc/vbeutil.h: Likewise.
20865 * include/grub/i386/pc/vga.h: Likewise.
20866 * include/grub/ieee1275/ieee1275.h: Likewise.
20867 * include/grub/ieee1275/ofdisk.h: Likewise.
20868 * include/grub/powerpc/libgcc.h: Likewise.
20869 * include/grub/powerpc/setjmp.h: Likewise.
20870 * include/grub/powerpc/types.h: Likewise.
20871 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20872 * include/grub/powerpc/ieee1275/console.h: Likewise.
20873 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20874 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20875 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20876 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20877 * include/grub/powerpc/ieee1275/time.h: Likewise.
20878 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20879 * include/grub/sparc64/libgcc.h: Likewise.
20880 * include/grub/sparc64/setjmp.h: Likewise.
20881 * include/grub/sparc64/types.h: Likewise.
20882 * include/grub/sparc64/ieee1275/console.h: Likewise.
20883 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20884 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20885 * include/grub/sparc64/ieee1275/time.h: Likewise.
20886 * include/grub/util/biosdisk.h: Likewise.
20887 * include/grub/util/getroot.h: Likewise.
20888 * include/grub/util/lvm.h: Likewise.
20889 * include/grub/util/misc.h: Likewise.
20890 * include/grub/util/raid.h: Likewise.
20891 * include/grub/util/resolve.h: Likewise.
20892 * io/gzio.c: Likewise.
20893 * kern/device.c: Likewise.
20894 * kern/disk.c: Likewise.
20895 * kern/dl.c: Likewise.
20896 * kern/elf.c: Likewise.
20897 * kern/env.c: Likewise.
20898 * kern/err.c: Likewise.
20899 * kern/file.c: Likewise.
20900 * kern/fs.c: Likewise.
20901 * kern/loader.c: Likewise.
20902 * kern/main.c: Likewise.
20903 * kern/misc.c: Likewise.
20904 * kern/mm.c: Likewise.
20905 * kern/parser.c: Likewise.
20906 * kern/partition.c: Likewise.
20907 * kern/rescue.c: Likewise.
20908 * kern/term.c: Likewise.
20909 * kern/efi/efi.c: Likewise.
20910 * kern/efi/init.c: Likewise.
20911 * kern/efi/mm.c: Likewise.
20912 * kern/i386/dl.c: Likewise.
20913 * kern/i386/efi/init.c: Likewise.
20914 * kern/i386/efi/startup.S: Likewise.
20915 * kern/i386/pc/init.c: Likewise.
20916 * kern/i386/pc/lzo1x.S: Likewise.
20917 * kern/i386/pc/startup.S: Likewise.
20918 * kern/ieee1275/ieee1275.c: Likewise.
20919 * kern/powerpc/cache.S: Likewise.
20920 * kern/powerpc/dl.c: Likewise.
20921 * kern/powerpc/ieee1275/cmain.c: Likewise.
20922 * kern/powerpc/ieee1275/crt0.S: Likewise.
20923 * kern/powerpc/ieee1275/init.c: Likewise.
20924 * kern/powerpc/ieee1275/openfw.c: Likewise.
20925 * kern/sparc64/cache.S: Likewise.
20926 * kern/sparc64/dl.c: Likewise.
20927 * kern/sparc64/ieee1275/init.c: Likewise.
20928 * kern/sparc64/ieee1275/openfw.c: Likewise.
20929 * loader/efi/chainloader.c: Likewise.
20930 * loader/efi/chainloader_normal.c: Likewise.
20931 * loader/i386/efi/linux.c: Likewise.
20932 * loader/i386/efi/linux_normal.c: Likewise.
20933 * loader/i386/pc/chainloader.c: Likewise.
20934 * loader/i386/pc/chainloader_normal.c: Likewise.
20935 * loader/i386/pc/linux.c: Likewise.
20936 * loader/i386/pc/linux_normal.c: Likewise.
20937 * loader/i386/pc/multiboot.c: Likewise.
20938 * loader/i386/pc/multiboot_normal.c: Likewise.
20939 * loader/powerpc/ieee1275/linux.c: Likewise.
20940 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20941 * normal/arg.c: Likewise.
20942 * normal/cmdline.c: Likewise.
20943 * normal/command.c: Likewise.
20944 * normal/completion.c: Likewise.
20945 * normal/execute.c: Likewise.
20946 * normal/function.c: Likewise.
20947 * normal/lexer.c: Likewise.
20948 * normal/main.c: Likewise.
20949 * normal/menu.c: Likewise.
20950 * normal/menu_entry.c: Likewise.
20951 * normal/misc.c: Likewise.
20952 * normal/parser.y: Likewise.
20953 * normal/script.c: Likewise.
20954 * normal/i386/setjmp.S: Likewise.
20955 * normal/powerpc/setjmp.S: Likewise.
20956 * normal/sparc64/setjmp.S: Likewise.
20957 * partmap/acorn.c: Likewise.
20958 * partmap/amiga.c: Likewise.
20959 * partmap/apple.c: Likewise.
20960 * partmap/gpt.c: Likewise.
20961 * partmap/pc.c: Likewise.
20962 * partmap/sun.c: Likewise.
20963 * term/gfxterm.c: Likewise.
20964 * term/terminfo.c: Likewise.
20965 * term/efi/console.c: Likewise.
20966 * term/i386/pc/console.c: Likewise.
20967 * term/i386/pc/serial.c: Likewise.
20968 * term/i386/pc/vesafb.c: Likewise.
20969 * term/i386/pc/vga.c: Likewise.
20970 * term/ieee1275/ofconsole.c: Likewise.
20971 * util/biosdisk.c: Likewise.
20972 * util/console.c: Likewise.
20973 * util/genmoddep.c: Likewise.
20974 * util/getroot.c: Likewise.
20975 * util/grub-emu.c: Likewise.
20976 * util/grub-mkdevicemap.c: Likewise.
20977 * util/grub-probe.c: Likewise.
20978 * util/lvm.c: Likewise.
20979 * util/misc.c: Likewise.
20980 * util/raid.c: Likewise.
20981 * util/resolve.c: Likewise.
20982 * util/update-grub.in: Likewise.
20983 * util/update-grub_lib.in: Likewise.
20984 * util/grub.d/00_header.in: Likewise.
20985 * util/grub.d/10_hurd.in: Likewise.
20986 * util/grub.d/10_linux.in: Likewise.
20987 * util/i386/efi/grub-install.in: Likewise.
20988 * util/i386/efi/grub-mkimage.c: Likewise.
20989 * util/i386/pc/grub-install.in: Likewise.
20990 * util/i386/pc/grub-mkimage.c: Likewise.
20991 * util/i386/pc/grub-mkrescue.in: Likewise.
20992 * util/i386/pc/grub-setup.c: Likewise.
20993 * util/i386/pc/misc.c: Likewise.
20994 * util/powerpc/ieee1275/grub-install.in: Likewise.
20995 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20996 * util/powerpc/ieee1275/misc.c: Likewise.
20997 * video/bitmap.c: Likewise.
20998 * video/video.c: Likewise.
20999 * video/i386/pc/vbe.c: Likewise.
21000 * video/i386/pc/vbeblit.c: Likewise.
21001 * video/i386/pc/vbefill.c: Likewise.
21002 * video/i386/pc/vbeutil.c: Likewise.
21003 * video/readers/tga.c: Likewise.
21005 2007-07-02 Robert Millan <rmh@aybabtu.com>
21007 * conf/i386-efi.rmk: Replace obsolete reference to
21008 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21009 with util/getroot.c.
21010 * conf/powerpc-ieee1275.rmk: Likewise.
21011 * conf/sparc64-ieee1275.rmk: Likewise.
21013 * util/grub-emu.c (main): Fix unchecked pointer handling.
21015 2007-07-02 Robert Millan <rmh@aybabtu.com>
21017 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21018 invocation to fail, in order to support partition-less media.
21020 * util/i386/pc/grub-install.in: Likewise.
21022 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21023 which fs or partmap modules are needed (akin to its sister scripts).
21025 Also use grub-probe to get rid of unportable /proc/mounts check.
21027 Print the same informational message that the other scripts do, before
21030 2007-06-23 Robert Millan <rmh@aybabtu.com>
21032 * util/update-grub_lib.in (font_path): New function. Determine whether
21033 a font file can be found and, if so, echo the GRUB path to it.
21035 * util/update-grub.in: Handle multiple terminals depending on user
21036 input, platform availability and font file presence. Propagate
21037 variables of our findings to /etc/grub.d/ children.
21039 * util/grub.d/00_header.in: Handle multiple terminals, based on
21040 environment setup by update-grub.
21042 2007-06-23 Robert Millan <rmh@aybabtu.com>
21044 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
21046 2007-06-21 Robert Millan <rmh@aybabtu.com>
21048 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21049 indicate end of data section in kernel image.
21050 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21051 GRUB_KERNEL_MACHINE_DATA_END.
21053 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21055 * kern/i386/efi/startup.S: Likewise.
21057 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21058 during image generation. Implement --prefix option to override this
21060 * util/i386/efi/grub-mkimage.c: Likewise.
21062 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21063 code to make path relative to its root into a separate function.
21065 * util/i386/pc/grub-install.in: Use newly provided
21066 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21067 pass the result to grub-install --prefix.
21069 2007-06-13 Robert Millan <rmh@aybabtu.com>
21071 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21072 DEFAULT_DEVICE_MAP.
21073 * util/grub-emu.c: Use above definitions from misc.h instead of
21075 * util/grub-mkdevicemap.c: Likewise.
21076 * util/i386/pc/grub-setup.c: Likewise.
21077 * util/grub-probe.c: Likewise.
21078 (probe): Abort with grub_util_error() when either
21079 grub_guess_root_device or grub_util_get_grub_dev fails.
21081 2007-06-12 Robert Millan <rmh@aybabtu.com>
21083 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21084 "pager" assignment.
21085 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21087 * util/grub-probe.c (probe): Likewise for "drive_name".
21089 2007-06-11 Robert Millan <rmh@aybabtu.com>
21091 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21092 not just the cdrom one.
21094 2007-06-11 Robert Millan <rmh@aybabtu.com>
21096 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21097 Add --pkglibdir=DIR option to override pkglibdir.
21098 Mention --image-type=TYPE in help output.
21099 Fix --grub-mkimage (it was a no-op).
21100 Abort gracefully when no parameter is given.
21102 2007-06-11 Robert Millan <rmh@aybabtu.com>
21104 * util/i386/pc/grub-mkrescue.in: New file.
21105 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21106 * Makefile.in: Handle bin_SCRIPTS.
21108 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21110 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21111 list of video modes.
21113 2007-06-06 Robert Millan <rmh@aybabtu.com>
21115 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21116 file doesn't exist, or if it is in a filesystem grub can't read.
21118 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21119 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21120 header comment to fit in 80 columns when the variables are resolved.
21122 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21123 could be identified by update-grub. Remove redundant check for
21124 unifont.pff existence (since convert_system_path_to_grub_path now
21127 2007-06-04 Robert Millan <rmh@aybabtu.com>
21129 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21131 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21133 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21135 2007-06-04 Robert Millan <rmh@aybabtu.com>
21137 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21139 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21140 grub_apple_partition_map_fini.
21143 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21144 to access >2 TiB disks).
21146 Print disk->total_sectors with %llu instead of %lu, since this
21147 variable is always 64-bit (prevents wrong disk size from being displayed
21148 on either >2 TiB disk or big-endian CPU).
21150 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21151 into a generic case that supports all (sane) partition maps.
21153 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21156 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21157 and grub_apple_partition_map_fini() after that.
21159 2007-06-01 Robert Millan <rmh@aybabtu.com>
21161 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21163 * util/grub.d/00_header.in: Only enable gfxterm when
21164 convert_system_path_to_grub_path() succeeds.
21166 2007-05-20 Robert Millan <rmh@aybabtu.com>
21168 * util/update-grub_lib.in: New file.
21169 * DISTLIST: Add update-grub_lib.in.
21170 * conf/common.rmk: Generate update-grub_lib and install it in
21172 * Makefile.in: Add install routine for $(lib_DATA).
21174 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21175 function provided by update-grub_lib to support arbitrary paths of
21177 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21178 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21180 2007-05-19 Robert Millan <rmh@aybabtu.com>
21182 * commands/i386/cpuid.c: New module.
21183 * DISTLIST: Add it.
21184 * conf/i386-efi.rmk: Enable cpuid.mod.
21185 * conf/i386-pc.rmk: Likewise.
21187 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21189 * kern/disk.c (grub_disk_read): Check return value of
21192 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21194 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21196 * disk/raid.c (grub_raid_open): Likewise.
21198 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21200 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21201 stack instead of on the heap.
21203 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21204 before doing a read on it.
21206 * configure.ac: Only use -fno-stack-protector for the target
21209 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21211 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21212 __attribute_ ((unused)) to mode_type argument.
21214 * util/getroot.c (grub_guess_root_device): Fix #endif.
21216 * kern/misc.c (memcmp): Fix prototype.
21218 * include/grub/partition.h [GRUB_UTIL]
21219 (grub_gpt_partition_map_init): Add prototype.
21220 (grub_gpt_partition_map_fini): Likewise.
21222 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21223 at the right place.
21225 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21226 (grub_fat_read_data): Likewise.
21227 (grub_fat_find_dir): Likewise.
21229 * font/manager.c (find_glyph): Make table a const.
21230 (grub_font_get_glyph): Remove bitmap from if statement.
21232 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21234 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21235 code, first search for device in /dev/mapper, then in /dev.
21236 (grub_util_get_grub_dev): New function.
21237 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21239 * util/grub-probe.c (probe): Remove check for RAID, call
21240 grub_util_get_grub_dev() instead of
21241 grub_util_biosdisk_get_grub_dev().
21242 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21243 grub_util_biosdisk_get_grub_dev().
21244 * util/i386/pc/grub-setup.c (main): Likewise.
21246 2007-05-16 Robert Millan <rmh@aybabtu.com>
21248 * DISTLIST: Update for the latest changes.
21249 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21250 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21251 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21252 grub/util/biosdisk.h.
21253 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21254 grub/util/biosdisk.h.
21256 2007-05-16 Robert Millan <rmh@aybabtu.com>
21258 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21260 2007-05-16 Robert Millan <rmh@aybabtu.com>
21262 * util/i386/efi/grub-install.in: New.
21263 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21264 newly added grub-install.
21265 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21267 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21268 grub/util/biosdisk.h.
21269 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21270 grub/util/biosdisk.h.
21272 2007-05-16 Robert Millan <rmh@aybabtu.com>
21274 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21275 * include/grub/util/biosdisk.h: ... here.
21276 * util/i386/pc/biosdisk.c: Moved to ...
21277 * util/biosdisk.c: ... here.
21278 * util/i386/pc/getroot.c: Moved to ...
21279 * util/getroot.c: ... here.
21280 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21281 * util/grub-mkdevicemap.c: ... here.
21282 * util/i386/pc/grub-probe.c: Moved to ...
21283 * util/grub-probe.c: ... here.
21285 2007-05-15 Robert Millan <rmh@aybabtu.com>
21287 * util/update-grub.in: Remove duplicated line in grub.cfg header
21290 2007-05-13 Robert Millan <rmh@aybabtu.com>
21292 * util/update-grub.in: Fix a few assumptions about the devices holding
21293 /, /boot and /boot/grub being the same.
21294 * util/grub.d/00_header.in: Likewise.
21295 * util/grub.d/10_hurd.in: Likewise.
21296 * util/grub.d/10_linux.in: Likewise.
21298 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21299 patterns. Use that to define the `.old' suffix as older than `'.
21301 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21303 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21304 the grub.cfg header message.
21306 2007-05-11 Robert Millan <rmh@aybabtu.com>
21308 * util/update-grub.in: Create device.map if it doesn't already exist,
21309 before attempting to run grub-probe.
21310 Check for grub-probe and grub-mkdevicemap with the same code
21311 grub-install is using.
21314 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21316 * Makefile.in: Add the datarootdir autoconf variable.
21318 2007-05-09 Robert Millan <rmh@aybabtu.com>
21320 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21321 fail gracefully if dev->disk->partition == NULL.
21323 2007-05-07 Robert Millan <rmh@aybabtu.com>
21325 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21326 determine partition map module.
21327 * util/i386/pc/grub-install.in: Use this feature to decide which
21328 partition module to load, instead of hardcoding pc and gpt.
21330 2007-05-07 Robert Millan <rmh@aybabtu.com>
21332 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21333 source directory differs from build directory.
21335 2007-05-05 Robert Millan <rmh@aybabtu.com>
21337 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21340 2007-05-05 Robert Millan <rmh@aybabtu.com>
21342 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21344 2007-05-05 Robert Millan <rmh@aybabtu.com>
21346 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21347 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21349 2007-05-05 Robert Millan <rmh@aybabtu.com>
21351 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21352 (grub_probe_SOURCES): Likewise.
21353 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21354 GPT and initialize dos_part and bsd_part accordingly.
21355 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21357 (main): Activate gpt module for use during partition identification,
21358 and deactivate it afterwards.
21359 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21360 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21361 partition identification, and deactivate it afterwards.
21363 2007-05-05 Robert Millan <rmh@aybabtu.com>
21365 * term/i386/pc/console.c (grub_console_fini): Call
21366 grub_term_set_current() before grub_term_unregister().
21368 2007-05-04 Robert Millan <rmh@aybabtu.com>
21370 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21371 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21372 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21373 and update-grub_DATA.
21374 * conf/common.rmk: Build and install update-grub components.
21375 * conf/common.mk: Regenerate.
21376 * util/update-grub.in: New. Core of update-grub.
21377 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21378 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21379 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21380 * util/grub.d/README: New. Document grub.d directory layout.
21382 2007-05-01 Robert Millan <rmh@aybabtu.com>
21384 * util/grub-emu.c: Move initialization functions
21385 grub_util_biosdisk_init() and grub_init_all() before
21386 grub_util_biosdisk_get_grub_dev(), which relies on them.
21388 2007-04-19 Robert Millan <rmh@aybabtu.com>
21390 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21393 2007-04-18 Jerone Young <jerone@gmail.com>
21395 * kernel/elf.c: Add missing parenthesis for conditional statement
21398 2007-04-10 Jerone Young <jerone@gmail.com>
21400 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21401 continue on and look for device node with real device name.
21403 2007-04-10 Jerone Young <jerone@gmail.com>
21405 * configure.ac: Add argument for autoconf to use transformation
21407 * Makefile.in: Add autoconf package transformation code.
21408 * util/i386/pc/grub-install.in: Likewise.
21409 * util/powerpc/ieee1275/grub-install.in: Likewise.
21411 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21413 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21414 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21415 (EXT2_REVISION): Likewise.
21416 (EXT2_INODE_SIZE): Likewise.
21417 (struct grub_ext2_block_group): Added a missing member
21419 (grub_ext2_read_inode): Divide by the inode size in a superblock
21420 instead of 128 to obtain INODES_PER_BLOCK.
21421 Use the macro EXT2_INODE_SIZE instead of directly using
21422 SBLOCK->INODE_SIZE.
21424 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21426 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21427 superblock instead of the structure size to compute an
21428 offset. This fixes the problem that GRUB could not read a
21429 filesystem when inode size is different from 128-byte.
21431 2007-03-05 Marco Gerards <marco@gnu.org>
21433 * normal/main.c (read_config_file): When "menu" is not set, create
21434 an initial context.
21436 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21438 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21439 (HEAP_LIMIT): New macro.
21440 (grub_claim_heap): Claim memory up to `heaplimit'.
21442 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21444 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21445 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21446 (_start): Likewise.
21447 (grub_arch_modules_addr): Return address after `_end'.
21448 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21449 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21450 (add_segments): Calculate `_end' from phdr size and location.
21451 (ALIGN_UP): Moved to ...
21452 * include/grub/misc.h: here.
21453 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21455 (GRUB_IEEE1275_MODULE_BASE): Removed.
21457 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21459 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21462 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21464 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21466 (grub_elf64_load_hook_t): Likewise.
21467 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21470 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21472 * kern/mm.c: Update copyright.
21473 (grub_mm_debug): Correct syntax error.
21474 (grub_mm_dump_free): New function.
21475 (grub_debug_free): Call `grub_free'.
21476 * include/grub/mm.h: Update copyright.
21477 (grub_mm_dump_free): Add declaration.
21479 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21481 * include/grub/ieee1275/ieee1275.h: Update copyright.
21482 * kern/powerpc/ieee1275/init.c: Likewise.
21483 * kern/powerpc/ieee1275/openfw.c: Likewise.
21485 * loader/powerpc/ieee1275/linux.c: Likewise.
21486 * include/grub/elfload.h: Likewise.
21487 * kern/elf.c: Likewise.
21488 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21490 (grub_elf64_load): Likewise.
21491 (grub_elf32_load_segment): Move to a nested function.
21492 (grub_elf64_load_segment): Likewise.
21494 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21496 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21498 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21499 (grub_heap_len): Likewise.
21500 (HEAP_SIZE): New macro.
21501 (grub_claim_heap): New function.
21502 (grub_machine_init): Don't claim heap directly. Call
21504 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21505 (grub_available_iterate): New function.
21507 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21509 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21510 * configure.ac: Use it for testing the HOST and TARGET compilers.
21512 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21514 * Makefile.in (enable_grub_emu): New variable.
21515 * configure.ac (--enable-grub-emu): New option.
21516 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21517 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21518 * conf/i386-pc.rmk: Likewise.
21519 * conf/powerpc-ieee1275.rmk: Likewise.
21520 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21522 2006-12-12 Marco Gerards <marco@gnu.org>
21524 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21526 * kern/env.c (grub_env_unset): Don't free the member `value' when
21527 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21530 * normal/main.c (current_menu): Removed.
21531 (free_menu): Unset the `menu' environment variable.
21532 (grub_normal_menu_addentry): Make use of the environment variable
21533 `menu', instead of using the global `current_menu'. Allocate
21534 memory for the sourcecode of this entry.
21535 (read_config_file): New argument `nested', changed all callers.
21536 Only in the case of a new context, initialize a new menu. Set the
21537 `menu' environment variable.
21538 (grub_normal_execute): Don't set and unset the environment
21539 variable `menu' here anymore. Only free the menu when leaving the
21542 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21545 2006-12-11 Marco Gerards <marco@gnu.org>
21547 * normal/menu_entry.c (run): Fix off by one bug so the last line
21548 is executed. Move the loader check to outside the loop.
21550 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21552 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21554 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21556 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21557 the number of sectors. Reported by Andrey Shuvikov
21558 <mr_hyro@yahoo.com>.
21560 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21562 * kern/disk.c (grub_disk_read): When there is a read error, always
21563 try to read only the necessary data.
21565 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21567 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21569 [GRUB_UTIL] (grub_raid_fini): Likewise.
21570 [GRUB_UTIL] (grub_lvm_init): Likewise.
21571 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21572 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21573 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21574 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21575 and grub_raid_fini().
21577 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21579 * include/grub/types.h (__unused): Rename to UNUSED.
21580 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21581 (grub_elf64_size): Likewise.
21583 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21585 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21586 grub_error_push and grub_error_pop in the error-handling path.
21587 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21590 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21592 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21593 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21595 (kernel_elf_SOURCES): Likewise.
21596 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21597 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21598 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21599 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21600 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21601 (elf_mod_SOURCES): New variable.
21602 (elf_mod_CFLAGS): Likewise.
21603 (elf_mod_LDFLAGS): Likewise.
21604 * include/grub/types.h (__unused): New macro.
21605 * include/grub/elfload.h: New file.
21606 * kern/elf.c: Likewise.
21607 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21608 (ELF32_LOADMASK): New macro.
21609 (ELF64_LOADMASK): Likewise.
21610 (vmlinux): Removed.
21611 (grub_linux_load32): New function.
21612 (grub_linux_load64): Likewise.
21613 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21614 Use grub_elf_t instead of grub_file_t.
21616 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21618 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21619 `catch_result' to struct set_color_args.
21621 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21623 * normal/menu.c: Include grub/script.h.
21624 * normal/menu_entry.c: Likewise.
21625 * include/grub/normal.h: Do not include grub/script.h.
21627 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21629 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21631 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21633 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21635 (grub_disk_close): Print debug messages when closing a disk.
21636 (grub_disk_read): Print debug messages when disk read fails.
21637 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21639 * kern/partition.c: Include misc.h.
21640 (grub_partition_iterate): Print debug messages when detecting
21643 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21645 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21647 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21649 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21651 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21652 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21654 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21656 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21657 instead of sizeof(lv). Patch by Michael Guntsche.
21659 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21661 * disk/lvm.c: Rename VGS to VG_LIST.
21662 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21663 (grub_lvm_open): Likewise.
21664 Thanks to Michael Guntsche for finding this bug.
21666 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21668 * configure.ac (AC_INIT): Bumped to 1.95.
21670 2006-10-14 Robert Millan <rmh@aybabtu.com>
21672 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21673 with "/dev/.static/dev/md".
21675 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21677 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21678 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21679 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21680 DRIVE_NAME are always freed.
21682 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21683 DOS_PART, as a DOS partition is counted from one instead of zero
21684 now. Reported by Robert Millan.
21686 2006-10-14 Robert Millan <rmh@aybabtu.com>
21688 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21689 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21690 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21691 string returned by grub_guess_root_device.
21692 * util/i386/pc/grub-setup.c: Likewise.
21693 * util/i386/pc/grub-probefs.c: Likewise.
21695 * util/i386/pc/grub-probefs.c: Rename to ...
21696 * util/i386/pc/grub-probe.c: ... this.
21697 * DISTLIST: Remove grub-probefs, add grub-probe.
21698 * conf/i386-efi.rmk: Likewise.
21699 * conf/i386-pc.rmk: Likewise.
21700 * util/i386/pc/grub-install.in: Likewise.
21702 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21703 choose which information we want to print.
21705 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21707 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21708 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21709 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21710 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21711 video/readers/tga.c and video/i386/pc/vbeutil.c.
21713 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21715 Added support for RAID and LVM.
21717 * disk/lvm.c: New file.
21718 * disk/raid.c: Likewise.
21719 * include/grub/lvm.h: Likewise.
21720 * include/grub/raid.h: Likewise.
21721 * include/grub/util/lvm.h: Likewise.
21722 * include/grub/util/raid.h: Likewise.
21723 * util/lvm.c: Likewise.
21724 * util/raid.c: Likewise.
21726 * include/grub/disk.h (grub_disk_dev_id): Add
21727 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21728 (grub_disk_get_size): New prototype.
21729 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21730 returns a partition.
21731 (grub_disk_get_size): New function.
21733 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21734 verbatim if grub_install_dos_part is -2.
21736 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21739 * util/i386/pc/grub-setup.c (setup): New argument
21740 MUST_EMBED. Force embedding of GRUB when the argument is
21741 true. Close FILE before returning.
21742 (main): Add support for RAID and LVM.
21744 * conf/common.rmk: Add RAID and LVM modules.
21745 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21747 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21749 * kern/misc.c (grub_strstr): New function.
21750 * include/grub/misc.h (grub_strstr): New prototype.
21752 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21754 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21756 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21758 * kern/misc.c (grub_strtoull): Guess the base only if not
21761 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21763 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21766 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21768 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21770 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21771 Remove `flags' argument. All callers changed.
21772 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21773 (IEEE1275_IHANDLE_INVALID): New variable.
21774 (IEEE1275_CELL_INVALID): New variable.
21775 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21776 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21777 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21778 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21779 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21780 codes from Open Firmware. All callers updated.
21781 (grub_ieee1275_next_property): Directly return Open Firmware return
21783 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21784 Standardize error checking from `grub_ieee1275_get_property'.
21785 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21786 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21788 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21790 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21791 `instance_to_package_args' to `instance_to_path_args'.
21793 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21794 `grub_ieee1275_chosen'.
21796 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21797 `grub_ieee1275_interpret'.
21799 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21801 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21803 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21805 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21806 (__cmpdi): Likewise.
21808 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21809 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21812 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21814 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21815 to type `grub_ssize_t'.
21816 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21818 2006-09-22 Marco Gerards <marco@gnu.org>
21820 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21823 2006-09-22 Marco Gerards <marco@gnu.org>
21825 * commands/echo.c: New file.
21827 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21829 * conf/common.rmk (echo_mod_SOURCES): New variable.
21830 (echo_mod_CFLAGS): Likewise.
21831 (echo_mod_LDFLAGS): Likewise.
21833 2006-09-22 Marco Gerards <marco@gnu.org>
21835 * normal/main.c (get_line): Malloc memory instead of using
21836 preallocated memory. Removed the arguments `cmdline' and
21837 `max_len'. Updated all callers.
21839 2006-09-22 Marco Gerards <marco@gnu.org>
21841 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21842 (normal_mod_DEPENDENCIES): Likewise.
21844 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21845 (normal_mod_DEPENDENCIES): Likewise.
21847 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21849 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21851 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21853 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21854 (normal_mod_DEPENDENCIES): Likewise.
21855 * conf/i386-pc.mk: Regenerate.
21856 * conf/i386-efi.mk: Likewise
21857 * conf/common.mk: Likewise.
21858 * conf/powerpc-ieee1275.mk: Likewise.
21859 * conf/sparc64-ieee1275.mk: Likewise.
21861 2006-09-22 Robert Millan <rmh@aybabtu.com>
21863 Sync with i386 version.
21864 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21865 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21867 2006-09-21 Robert Millan <rmh@aybabtu.com>
21869 Import from GRUB Legacy (lib/device.c):
21870 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21871 (init_device_map) [__linux__]: Add support for I2O devices.
21873 2006-09-14 Marco Gerards <marco@gnu.org>
21875 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21878 2006-09-14 Robert Millan <rmh@aybabtu.com>
21880 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21883 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21885 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21886 before adding it to device.map.
21888 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21890 * genmk.rb: Let GCC generate dependencies the first time it
21891 compiles a file; using the -MD option.
21892 * conf/common.mk: Regenerate.
21893 * conf/i386-pc.mk: Likewise.
21894 * conf/i386-efi.mk: Likewise.
21895 * conf/powerpc-ieee1275.mk: Likewise.
21896 * conf/sparc64-ieee1275.mk: Likewise.
21898 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21900 Move the prototypes of grub_setjmp and grub_longjmp to
21901 cpu/setjmp.h, so that each architecture may specify different
21904 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21905 (grub_longjmp): Likewise.
21906 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21907 (grub_longjmp): Likewise.
21908 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21909 (grub_longjmp): Likewise.
21911 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21912 [!GRUB_UTIL] (grub_longjmp): Removed.
21914 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21916 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21917 "color!" method does not return any value.
21919 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21921 * include/grub/bitmap.h: New file.
21923 * include/grub/i386/pc/vbeutil.h: Likewise.
21925 * video/bitmap.c: Likewise.
21927 * video/readers/tga.c: Likewise.
21929 * video/i386/pc/vbeutil.c: Likewise.
21931 * commands/videotest.c: Code cleanup and updated to reflect to new
21934 * term/gfxterm.c: Likewise.
21936 * video/video.c: Likewise.
21938 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21939 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21940 (bitmap_mod_SOURCES): New entry.
21941 (bitmap_mod_CFLAGS): Likewise.
21942 (bitmap_mod_LDFLAGS): Likewise.
21943 (tga_mod_SOURCES): Likewise.
21944 (tga_mod_CFLAGS): Likewise.
21945 (tga_mod_LDFLAGS): Likewise.
21947 * include/grub/video.h (grub_video_blit_operators): New enum type.
21948 (grub_video_render_target): Changed as forward declaration and moved
21949 actual definition to be video driver specific.
21950 (grub_video_adapter.blit_bitmap): Added blitting operator.
21951 (grub_video_adapter.blit_render_target): Likewise.
21952 (grub_video_blit_bitmap): Likewise.
21953 (grub_video_blit_render_target): Likewise.
21955 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21956 driver specific render target definition.
21957 (grub_video_vbe_map_rgba): Added driver internal helper.
21958 (grub_video_vbe_unmap_color): Updated to use
21959 grub_video_i386_vbeblit_info.
21960 (grub_video_vbe_get_video_ptr): Likewise.
21962 * include/grub/i386/pc/vbeblit.h
21963 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21964 grub_video_i386_vbeblit_info.
21965 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21966 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21967 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21968 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21969 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21970 (grub_video_i386_vbeblit_index_index): Likewise.
21971 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21972 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21973 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21974 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21976 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21979 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21980 include/grub/i386/pc/vbeblit.h.
21982 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21983 Updated to use grub_video_i386_vbeblit_info.
21984 (grub_video_i386_vbefill_R8G8B8): Likewise.
21985 (grub_video_i386_vbefill_index): Likewise.
21986 (grub_video_i386_vbefill): Added generic filler.
21988 * video/i386/pc/vbefill.c: Updated to reflect changes on
21989 include/grub/i386/pc/vbefill.h.
21991 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21992 grub_video_i386_vbeblit_info.
21993 (grub_video_vbe_unmap_color): Likewise.
21994 (grub_video_vbe_blit_glyph): Likewise.
21995 (grub_video_vbe_scroll): Likewise.
21996 (grub_video_vbe_draw_pixel): Removed function.
21997 (grub_video_vbe_get_pixel): Likewise.
21998 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21999 updated code to use it.
22000 (common_blitter): Added common blitter for render target and bitmap.
22001 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22002 (grub_video_vbe_blit_render_target): Likewise.
22004 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
22006 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22007 is in text mode if there is no console control protocol instance
22010 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22012 * include/grub/video.h: Code cleanup.
22014 * include/grub/i386/pc/vbe.h: Likewise.
22016 * video/i386/pc/vbe.c: Likewise.
22018 * video/i386/pc/vbeblit.c: Likewise.
22020 * video/i386/pc/vbefill.c: Likewise.
22022 * video/video.c: Likewise. Also added more comments.
22024 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22026 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22027 (struct grub_biosdisk_dap): Likewise.
22029 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22030 linkage settings for all functions.
22032 2006-07-12 Marco Gerards <marco@gnu.org>
22034 * configure.ac (--enable-mm-debug): Fix typo.
22036 * genkernsyms.sh.in: Use proper quoting for `CC'.
22038 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22040 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22041 (normal_mod_ASFLAGS): Remove "-m32".
22043 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22045 * util/misc.c: Include config.h.
22046 [!HAVE_MEMALIGN]: Do not include malloc.h.
22047 (grub_memalign): Use posix_memalign, if present. Then, use
22048 memalign, if present. Otherwise, emit an error.
22050 * util/grub-emu.c: Do not include malloc.h.
22052 * include/grub/util/misc.h: Include unistd.h. This is required for
22053 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22054 D. Eades III <hde@foobar-qux.org>.
22056 * configure.ac (AC_GNU_SOURCE): Added.
22057 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22060 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22062 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22063 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22065 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22067 * include/grub/types.h (grub_host_addr_t): Rename to
22068 grub_target_addr_t.
22069 (grub_host_off_t): Rename to grub_target_off_t.
22070 (grub_host_size_t): Rename to grub_target_size_t.
22071 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22072 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22074 * include/grub/kernel.h (struct grub_module_header): Change type
22075 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22076 (grub_module_info): Likewise.
22078 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22080 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22081 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22082 Velazquez <jesus.velazquez@gmail.com>.
22084 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22086 Count partitions from 1 instead of 0 in the string representation
22087 of partitions. Still use 0-based internally.
22089 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22090 (sun_partition_map_iterate): Use grub_partition_t instead of
22091 struct grub_partition *. Cast DESC->START_CYLINDER to
22092 grub_uint64_t after converting the endian.
22093 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22094 (sun_partition_map_get_name): Add 1 to P->INDEX.
22096 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22098 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22100 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22101 zero instead of one.
22102 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22103 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22105 * partmap/apple.c (apple_partition_map_iterate): Change the type
22106 of POS to unsigned.
22107 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22108 (apple_partition_map_get_name): Add 1 into P->INDEX.
22110 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22111 of POS to unsigned.
22112 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22113 calculate the offset of a partition.
22114 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22115 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22117 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22118 SECTOR to grub_disk_addr_t.
22119 (acorn_partition_map_iterate): Likewise.
22120 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22121 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22123 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22125 * kern/i386/pc/init.c (make_install_device): Add 1 into
22126 GRUB_INSTALL_DOS_PART.
22128 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22131 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22133 Clean up the code to support 64-bit addressing in disks and
22134 files. This change is not enough for filesystems yet.
22136 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22137 type of "start" to grub_uint64_t.
22138 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22139 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22140 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22143 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22144 to grub_disk_addr_t.
22146 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22149 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22151 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22154 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22156 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22158 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22160 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22161 to grub_off_t, to detect an error from grub_file_seek.
22162 (grub_multiboot_load_elf32): Likewise.
22164 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22165 maximum unsigned long value when an overflow is detected.
22166 (grub_strtoull): New function.
22167 (grub_divmod64): Likewise.
22168 (grub_lltoa): use grub_divmod64.
22170 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22172 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22173 the pointer to next character. Use grub_strtoull instead of
22175 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22176 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22179 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22180 return value is signed.
22181 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22182 test if OFFSET is less than zero, as OFFSET is unsigned now.
22184 * kern/disk.c (struct grub_disk_cache): Change the type of
22185 "sector" to grub_disk_addr_t.
22186 (grub_disk_cache_get_index): Change the type of SECTOR to
22187 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22188 unsigned after shifting.
22189 (grub_disk_cache_invalidate): Change the type of SECTOR to
22191 (grub_disk_cache_unlock): Likewise.
22192 (grub_disk_cache_store): Likewise.
22193 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22194 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22195 grub_disk_addr_t and grub_uint64_t, respectively.
22196 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22197 body, as the value of OFFSET is tweaked by
22198 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22199 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22201 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22202 body, as the value of OFFSET is tweaked by
22203 grub_disk_check_range. Change the types of LEN and N to
22206 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22207 and "saved_offset" to grub_off_t.
22208 (test_header): Cast BUF to char *.
22209 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22211 (grub_gzio_read): Change the types of OFFSET and SIZE to
22212 grub_off_t and grub_size_t, respectively.
22214 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22216 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22217 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22218 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22219 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22220 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22222 * include/grub/types.h (grub_off_t): Unconditionally set to
22224 (grub_disk_addr_t): Changed to grub_uint64_t.
22226 * include/grub/partition.h (struct grub_partition): Change the
22227 types of "start", "len" and "offset" to grub_disk_addr_t,
22228 grub_uint64_t and grub_disk_addr_t, respectively.
22229 (grub_partition_get_start): Return grub_disk_addr_t.
22230 (grub_partition_get_len): Return grub_uint64_t.
22232 * include/grub/misc.h (grub_strtoull): New prototype.
22233 (grub_divmod64): Likewise.
22235 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22236 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22237 grub_off_t, respectively.
22238 All callers and references changed.
22240 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22241 grub_size_t in "read".
22242 All callers and references changed.
22244 * include/grub/file.h (struct grub_file): Change the types of
22245 "offset" and "size" to grub_off_t and grub_off_t,
22246 respectively. Change the type of SECTOR to grub_disk_addr_t in
22248 (grub_file_read): Change the type of LEN to grub_size_t.
22249 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22251 (grub_file_size): Return grub_off_t.
22252 (grub_file_tell): Likewise.
22253 All callers and references changed.
22255 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22256 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22258 (struct grub_disk): Change the type of "total_sectors" to
22259 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22261 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22262 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22263 (grub_disk_write): Likewise.
22264 All callers and references changed.
22266 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22267 char * for grub_strncmp to silence gcc.
22268 (grub_iso9660_mount): Likewise.
22269 (grub_iso9660_mount): Likewise.
22270 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22272 (grub_iso9660_iterate_dir): Likewise.
22273 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22275 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22276 LEN to grub_disk_addr_t and grub_size_t, respectively.
22278 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22280 * fs/jfs.c (grub_jfs_read_file): Likewise.
22282 * fs/minix.c (grub_jfs_read_file): Likewise.
22284 * fs/sfs.c (grub_jfs_read_file): Likewise.
22286 * fs/ufs.c (grub_jfs_read_file): Likewise.
22288 * fs/xfs.c (grub_jfs_read_file): Likewise.
22290 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22291 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22294 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22295 BLKNR to -1 instead of returning GRUB_ERRNO.
22296 (grub_ext2_read_file): Change the types of SECTOR and
22297 LEN to grub_disk_addr_t and grub_size_t, respectively.
22299 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22300 LEN to grub_disk_addr_t and grub_size_t, respectively.
22302 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22305 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22306 string. Do not cast SECTOR explicitly.
22308 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22309 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22310 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22311 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22312 over 2TB and LBA mode is not supported, raise an error.
22313 (get_safe_sectors): New function.
22314 (grub_biosdisk_read): Use get_safe_sectors.
22315 (grub_biosdisk_write): Likewise.
22317 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22318 (grub_efidisk_write): Likewise.
22320 * disk/loopback.c (delete_loopback): Cosmetic changes.
22321 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22323 (grub_loopback_open): Likewise.
22324 (grub_loopback_read): Likewise. Also, change the type of POS to
22325 grub_off_t, and fix the usage of grub_memset.
22327 * commands/i386/pc/play.c: Include grub/machine/time.h.
22329 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22332 * commands/configfile.c: Include grub/env.h.
22334 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22335 GRUB_ERRNO directly instead. Change the type of POS to
22336 grub_off_t. Follow the coding standard.
22338 * commands/blocklist.c: Include grub/partition.h.
22339 (grub_cmd_blocklist): Return an error if the underlying device is
22340 not a disk. Take the starting sector of a partition into account,
22341 if a partition is used.
22343 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22345 (lba_mode): Support 64-bit addresses.
22346 (chs_mode): Likewise.
22347 (copy_buffer): Adapted to the new offsets of a length field and a
22349 (blocklist_default_start): Allocate 64-bit space.
22351 * boot/i386/pc/boot.S (force_lba): Removed.
22352 (boot_drive): Moved to under KERNEL_SECTOR.
22353 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22355 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22357 (lba_mode): Refactored to support a 64-bit address. More size
22359 (setup_sectors): Likewise.
22361 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22363 * DISTLIST: Added include/grub/i386/linux.h. Removed
22364 include/grub/i386/pc/linux.h
22366 * configure.ac (AC_INIT): Bumped to 1.94.
22368 * config.guess: Updated from gnulib.
22369 * config.sub: Likewise.
22370 * install-sh: Likewise.
22371 * mkinstalldirs: Likewise.
22373 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22375 * conf/common.rmk (grub_modules_init.lst): Depended on
22376 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22379 * genmk.rb (PModule::rule): Reverted the previous change.
22381 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22383 * conf/common.rmk (grub_modules_init.lst): Depends on
22384 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22385 that the target does not exist before producing.
22386 (grub_modules_init.h): Remove the target before generating.
22387 (grub_emu_init.c): Likewise.
22389 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22391 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22393 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22394 for the target-specific tests. Make sure that we also have the
22395 up-to-date target variables for those tests.
22397 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22399 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22400 (PModule::rule): Likewise.
22402 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22404 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22405 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22406 target-specific flags should be prefixed.
22407 (PModule::rule): Likewise.
22409 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22411 * configure.ac (CMP): Check if cmp is available explicitly.
22413 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22415 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22416 (target_cpu): New variable.
22417 (pkglibdir): Use target_cpu instead of host_cpu.
22419 * util/i386/pc/grub-install.in (host_cpu): Removed.
22420 (target_cpu): New variable.
22421 (pkglibdir): Use target_cpu instead of host_cpu.
22423 * util/genmoddep.c: Removed.
22425 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22426 instead of GRUB_HOST_SIZEOF_VOID_P.
22427 * kern/dl.c: Likewise.
22429 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22431 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22432 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22433 (GRUB_TARGET_SIZEOF_LONG): ... this.
22434 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22435 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22436 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22438 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22439 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22440 (GRUB_TARGET_SIZEOF_LONG): ... this.
22441 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22442 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22443 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22445 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22446 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22447 (GRUB_TARGET_SIZEOF_LONG): ... this.
22448 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22449 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22451 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22452 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22453 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22454 instead of GRUB_HOST_SIZEOF_LONG.
22455 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22456 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22457 GRUB_CPU_WORDS_BIGENDIAN.
22458 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22459 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22462 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22463 (genmoddep_SOURCES): Likewise.
22464 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22465 (genmoddep_SOURCES): Likewise.
22466 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22467 (genmoddep_SOURCES): Likewise.
22468 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22470 (genmoddep_SOURCES): Likewise.
22472 * genmoddep.awk: New file.
22474 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22475 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22476 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22477 (PModule::rule): Likewise.
22478 (Program::rule): Likewise.
22479 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22480 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22483 * configure.ac: Rewritten intensively to use host and target
22484 instead of build and host, respectively.
22486 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22487 (host_cpu): Removed.
22488 (target_cpu): New variable.
22489 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22490 (BUILD_CC): Removed.
22491 (BUILD_CFLAGS): Likewise.
22492 (BUILD_CPPFLAGS): Likewise.
22493 (TARGET_CC): New variable.
22494 (TARGET_CFLAGS): Likewise.
22495 (TARGET_CPPFLAGS): Likewise.
22496 (TARGET_LDFLAGS): Likewise.
22498 (include): Use target_cpu instead of host_cpu.
22499 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22501 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22503 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22505 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22506 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22507 field 'false' to 'exec_on_false'.
22508 (grub_script_create_cmdif): Renamed argument names to reflect above
22511 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22513 * normal/script.c (grub_script_create_cmdif): Likewise.
22515 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22517 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22519 (grub_hfsplus_btree_recptr): Likewise.
22520 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22521 FILEBLOCK both to pass a block number and store next block
22523 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22524 overflow file correctly. Specify errors appropriately, because
22525 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22526 grub_hfsplus_btree_recptr to get the pointer to a found key.
22527 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22530 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22532 (_linux_mod_SOURCES): New variable.
22533 (_linux_mod_CFLAGS): Likewise.
22534 (_linux_mod_LDFLAGS): Likewise.
22535 (linux_mod_SOURCES): Likewise.
22536 (linux_mod_CFLAGS): Likewise.
22537 (linux_mod_LDFLAGS): Likewise.
22539 * DISTLIST: Added loader/i386/efi/linux.c,
22540 loader/i386/efi/linux_normal.c and
22541 include/grub/i386/efi/loader.h.
22543 * loader/i386/efi/linux.c: New file.
22544 * loader/i386/efi/linux_normal.c: Likewise.
22545 * include/grub/i386/efi/loader.h: Likewise.
22547 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22549 * commands/blocklist.c: New file.
22551 * DISTLIST: Added commands/blocklist.c.
22553 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22554 color for the background, and a darker color for the foreground.
22555 (grub_console_checkkey): Return READ_KEY.
22556 (grub_console_cls): Set the background to
22557 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22559 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22561 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22562 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22564 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22567 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22568 BG. The spec is wrong again.
22570 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22572 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22574 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22575 commands/blocklist.c.
22576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22578 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22579 (blocklist_mod_SOURCES): New variable.
22580 (blocklist_mod_CFLAGS): Likewise.
22581 (blocklist_mod_LDFLAGS): Likewise.
22583 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22585 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22587 (lba_mode): Use %eax more intensively to reduce the code size.
22589 2006-05-20 Marco Gerards <marco@gnu.org>
22591 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22593 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22595 (script): Accept leading newlines.
22596 (newlines): New rule to describe 0 or more newlines.
22597 (commands): Accept `command' with trailing newline. Fixed the
22598 order in which arguments were passed to `grub_script_add_cmd'.
22599 Accept commands separated by newlines.
22600 (function): Changed to accept newlines.
22601 (menuentry) Rewritten.
22603 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22604 front of the list, instead of to the end.
22606 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22608 * util/i386/pc/grub-install.in (bindir): New variable.
22609 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22610 Shaver <lbgwjl@gmail.com>.
22612 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22614 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22615 grub/machine/linux.h
22616 * loader/i386/pc/linux.c: Likewise.
22618 * include/grub/i386/pc/linux.h: Moved to ...
22619 * include/grub/i386/linux.h: ... here.
22621 * include/grub/i386/linux.h (struct linux_kernel_params): New
22624 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22626 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22628 (grub_video_vbe_blit_glyph): Likewise.
22629 (grub_video_vbe_blit_bitmap): Likewise.
22630 (grub_video_vbe_blit_render_target): Likewise.
22632 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22634 * configure.ac (--with-platform): Properly quote the square
22637 2006-05-08 Marco Gerards <marco@gnu.org>
22639 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22641 (kernel_elf_HEADERS): ...to this. Updated all users.
22642 (grubof_symlist.c): Renamed from this...
22643 (kernel_elf_symlist.c): ...to this. Updated all users.
22644 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22645 (grubof_SOURCES): Renamed from this...
22646 (kernel_elf_SOURCES): ...to this.
22647 (grubof_HEADERS): Renamed from this...
22648 (kernel_elf_HEADERS): ...to this.
22649 (grubof_CFLAGS): Renamed from this...
22650 (kernel_elf_CFLAGS): ...to this.
22651 (grubof_ASFLAGS): Renamed from this...
22652 (kernel_elf_ASFLAGS): ...to this.
22653 (grubof_LDFLAGS): Renamed from this...
22654 (kernel_elf_LDFLAGS): ...to this.
22656 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22658 (kernel_elf_HEADERS): ...to this. Updated all users.
22659 (grubof_symlist.c): Renamed from this...
22660 (kernel_elf_symlist.c): ...to this. Updated all users.
22661 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22662 (grubof_SOURCES): Renamed from this...
22663 (kernel_elf_SOURCES): ...to this.
22664 (grubof_HEADERS): Renamed from this...
22665 (kernel_elf_HEADERS): ...to this.
22666 (grubof_CFLAGS): Renamed from this...
22667 (kernel_elf_CFLAGS): ...to this.
22668 (grubof_ASFLAGS): Renamed from this...
22669 (kernel_elf_ASFLAGS): ...to this.
22670 (grubof_LDFLAGS): Renamed from this...
22671 (kernel_elf_LDFLAGS): ...to this.
22673 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22674 `kernel.elf' instead of `grubof'.
22676 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22678 Add --with-platform to configure. Use pkglibdir instead of
22679 pkgdatadir. This is reported by Roger Leigh.
22681 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22682 (host_vendor): Likewise.
22683 (host_os): Likewise.
22684 (pkgdatadir): Likewise.
22685 (platform): New variable.
22686 (pkglibdir): Likewise.
22687 Use PKGLIBDIR instead of PKGDATADIR.
22689 * util/i386/pc/grub-install.in (datadir): Removed.
22690 (host_vendor): Likewise.
22691 (host_os): Likewise.
22692 (pkgdatadir): Likewise.
22693 (platform): New variable.
22694 (pkglibdir): Likewise.
22695 Use PKGLIBDIR instead of PKGDATADIR.
22697 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22698 instead of GRUB_DATADIR.
22700 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22702 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22705 * configure.ac (--with-platform): New option.
22706 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22708 * Makefile.in: Include a makefile based on PLATFORM instead of
22710 (pkgdatadir): Not appended by the machine type.
22711 (pkglibdir): Appended by the machine type.
22712 (host_vendor): Removed.
22713 (platform): New variable.
22714 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22715 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22716 (uninstall): Likewise.
22718 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22720 Use the environment context in the menu. Remove the commands
22721 "default" and "timeout", and use variables instead.
22723 * normal/menu.c: Include grub/env.h.
22724 (print_entry): Cast TITLE to silence gcc.
22725 (get_timeout): New function.
22726 (set_timeout): Likewise.
22727 (get_entry_number): Likewise.
22728 (run_menu): Use a default entry, a fallback entry and a timeout
22729 in the environment variables "default", "fallback" and
22730 "timeout". Also, tweak the default entry if it is not within the
22731 current menu entries.
22732 (grub_menu_run): Use a fallback entry in the environment variable
22735 * normal/main.c (read_config_file): Do not initialize
22736 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22738 (grub_normal_execute): Use a data slot to store the menu.
22740 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22741 fallback_entry and timeout.
22742 (struct grub_menu_list): Removed.
22743 (grub_menu_list_t): Likewise.
22744 (struct grub_context): Likewise.
22745 (grub_context_t): Likewise.
22746 (grub_context_get): Likewise.
22747 (grub_context_get_current_menu): Likewise.
22748 (grub_context_push_menu): Likewise.
22749 (grub_context_pop_menu): Likewise.
22750 (grub_default_init): Likewise.
22751 (grub_default_fini): Likewise.
22752 (grub_timeout_init): Likewise.
22753 (grub_timeout_fini): Likewise.
22755 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22757 (normal_mod_SOURCES): Removed normal/context.c.
22759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22760 commands/default.c, commands/timeout.c and normal/context.c.
22761 (normal_mod_SOURCES): Removed normal/context.c.
22763 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22764 commands/timeout.c and normal/context.c.
22765 (normal_mod_SOURCES): Removed normal/context.c.
22767 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22768 commands/default.c, commands/timeout.c and normal/context.c.
22769 (normal_mod_SOURCES): Removed normal/context.c.
22771 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22773 (default_mod_SOURCES): Removed.
22774 (default_mod_CFLAGS): Likewise.
22775 (default_mod_LDFLAGS): Likewise.
22776 (timeout_mod_SOURCES): Removed.
22777 (timeout_mod_CFLAGS): Likewise.
22778 (timeout_mod_LDFLAGS): Likewise.
22780 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22783 * commands/default.c: Removed.
22784 * commands/timeout.c: Likewise.
22785 * normal/context.c: Likewise.
22787 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22789 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22791 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22793 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22794 "next" to "prev" for readability.
22795 (struct grub_env_sorted_var): New struct.
22796 (grub_env_context): Renamed to ...
22797 (initial_context): ... this.
22798 (grub_env_var_context): Renamed to ...
22799 (current_context): ... this.
22800 (grub_env_find): Look only at CURRENT_CONTEXT.
22801 (grub_env_context_open): Rewritten to copy exported variables from
22803 (grub_env_context_close): Rewritten according to the new
22804 scheme. Also, add an assertion to prevent the initial context from
22806 (grub_env_insert): Removed the code for the sorted list.
22807 (grub_env_remove): Likewise.
22808 (grub_env_export): Simply mark the variable with
22809 GRUB_ENV_VAR_GLOBAL.
22810 (grub_env_set): A cosmetic change for naming consistency.
22811 (grub_env_get): Likewise.
22812 (grub_env_unset): Likewise.
22813 (grub_env_iterate): Rewritten to sort variables within this
22815 (grub_register_variable_hook): Fixed for naming consistency. Call
22816 grub_env_find again, only if NAME is not found at the first time.
22817 (mangle_data_slot_name): New function.
22818 (grub_env_set_data_slot): Likewise.
22819 (grub_env_get_data_slot): Likewise.
22820 (grub_env_unset_data_slot): Likewise.
22822 * include/grub/env.h (grub_env_var_type): New enum.
22823 (GRUB_ENV_VAR_LOCAL): New constant.
22824 (GRUB_ENV_VAR_GLOBAL): Likewise.
22825 (GRUB_ENV_VAR_DATA): Likewise.
22826 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22828 (grub_env_set): Replace VAR with NAME for consistency.
22829 (grub_register_variable_hook): Likewise.
22830 (grub_env_export): Specify the name of the argument.
22831 (grub_env_set_data_slot): New prototype.
22832 (grub_env_get_data_slot): Likewise.
22833 (grub_env_unset_data_slot): Likewise.
22835 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22837 Extend the loader so that GRUB can accept a loader which comes
22838 back to GRUB when a loaded image exits. Also, this change adds
22839 support for a chainloader on EFI.
22841 * term/efi/console.c: Include grub/misc.h.
22842 (grub_console_checkkey): Display a scan code on the top for
22843 debugging. This will be removed once the EFI port gets stable.
22844 Correct the scan code mapping.
22846 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22847 allocate memory from larger regions, in order to reduce the number
22848 of allocated regions. Otherwise, the MacOSX loader panics.
22849 (filter_memory_map): Avoid less than 1MB for compatibility with
22851 (add_memory_regions): Allocate from the tail of a region, if
22852 possible, to avoid allocating a region near to 1MB, for the MacOSX
22855 * kern/efi/init.c (grub_efi_set_prefix): Specify
22856 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22858 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22859 argument IMAGE_HANDLE and specify it to get a loaded image.
22860 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22861 grub_efi_get_loaded_image.
22862 (grub_efi_get_filename): Divide the length by the size of
22864 (grub_efi_get_device_path): New function.
22865 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22866 the length by the size of grub_efi_char16_t for a file path device
22869 * kern/loader.c (grub_loader_noreturn): New variable.
22870 (grub_loader_set): Accept a new argument NORETURN. Set
22871 GRUB_LOADER_NORETURN to NORETURN.
22872 All callers changed.
22873 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22876 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22878 (grub_efi_get_loaded_image): Take an argument to specify an image
22881 * include/grub/loader.h (grub_loader_set): Added one more argument
22884 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22885 instead of grub_efi_open_protocol.
22886 (grub_efidisk_get_device_name): Likewise.
22887 (grub_efidisk_close): Print a newline.
22888 (grub_efidisk_get_device_handle): Fixed to use
22889 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22890 GRUB_EFI_DEVICE_PATH_TYPE.
22892 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22893 * kern/efi/efi.c (device_path_guid): ... here.
22895 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22897 (kernel_mod_HEADERS): Added efi/disk.h.
22898 (_chain_mod_SOURCES): New variable.
22899 (_chain_mod_CFLAGS): Likewise.
22900 (_chain_mod_LDFLAGS): Likewise.
22901 (chain_mod_SOURCES): Likewise.
22902 (chain_mod_CFLAGS): Likewise.
22903 (chain_mod_LDFLAGS): Likewise.
22905 * DISTLIST: Added include/grub/efi/chainloader.h,
22906 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22908 * include/grub/efi/chainloader.h: New file.
22909 * loader/efi/chainloader.c: Likewise.
22910 * loader/efi/chainloader_normal.c: Likewise.
22912 2006-04-30 Marco Gerards <marco@gnu.org>
22914 * commands/configfile.c (grub_cmd_source): New function.
22915 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22916 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22918 2006-04-30 Marco Gerards <marco@gnu.org>
22920 * normal/execute.c (grub_script_execute_cmd): Change the return
22921 type to `grub_err_t'. Correctly return the error.
22922 (grub_script_execute_cmdline): In case a command line is not a
22923 command or a function, try to interpret it as an assignment.
22925 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22927 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22928 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22929 skip a node whose name is obviously invalid as UTF-16,
22930 i.e. contains a NUL character. Stop the iteration when the last
22931 directory entry is found. Instead of using the return value of
22932 grub_hfsplus_btree_iterate_node, store the value in RET and use
22933 it, because the iterator can be stopped by the last directory
22936 2006-04-30 Marco Gerards <marco@gnu.org>
22938 * include/grub/env.h (grub_env_export): New prototype. Reported
22939 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22941 2006-04-30 Marco Gerards <marco@gnu.org>
22943 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22944 size of the extents in a catalog file record.
22946 2006-04-29 Marco Gerards <marco@gnu.org>
22948 * commands/configfile.c (grub_cmd_configfile): Execute the
22949 configfile within its own context.
22951 * include/grub/env.h (grub_env_context_open): New prototype.
22952 (grub_env_context_close): Likewise.
22954 * kern/env.c (grub_env): Removed.
22955 (grub_env_sorted): Likewise.
22956 (grub_env_context): New variable.
22957 (grub_env_var_context): Likewise.
22958 (grub_env_find): Search both the active context and the global
22960 (grub_env_context_open): New function.
22961 (grub_env_context_close): Likewise.
22962 (grub_env_insert): Likewise.
22963 (grub_env_remove): Likewise.
22964 (grub_env_export): Likewise.
22965 (grub_env_set): Changed to use helper functions to avoid code
22967 (grub_env_iterate): Rewritten so both the current context and the
22968 global context are being used.
22970 * normal/command.c (export_command): New function.
22971 (grub_command_init): Register the `export' function.
22973 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22975 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22976 explicitly to suppress gcc's warnings.
22977 * fs/fat.c (grub_fat_find_dir): Likewise.
22978 (grub_fat_label): Likewise.
22979 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22980 (grub_xfs_mount): Likewise.
22981 (grub_xfs_label): Likewise.
22982 * fs/affs.c (grub_affs_mount): Likewise.
22983 (grub_affs_label): Likewise.
22984 (grub_affs_iterate_dir): Likewise.
22985 * fs/sfs.c (grub_sfs_mount): Likewise.
22986 (grub_sfs_iterate_dir): Likewise.
22987 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22988 * fs/hfs.c (grub_hfs_mount): Likewise.
22989 (grub_hfs_cmp_catkeys): Likewise.
22990 (grub_hfs_find_dir): Likewise.
22991 (grub_hfs_dir): Likewise.
22992 (grub_hfs_label): Likewise.
22993 * fs/jfs.c (grub_jfs_mount): Likewise.
22994 (grub_jfs_opendir): Likewise.
22995 (grub_jfs_getent): Likewise.
22996 (grub_jfs_lookup_symlink): Likewise.
22997 (grub_jfs_label): Likewise.
22998 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22999 (grub_hfsplus_iterate_dir): Likewise.
23000 (grub_hfsplus_btree_iterate_node): Made static.
23002 * util/grub-emu.c (prefix): New variable.
23003 (grub_machine_set_prefix): New function.
23004 (main): Do not set the environment variable "prefix" here. Only
23005 set PREFIX, which is used later by grub_machine_set_prefix.
23007 * include/grub/video.h: Do not include grub/symbol.h.
23008 (grub_video_register): Not exported. This symbol is not defined in
23010 (grub_video_unregister): Likewise.
23011 (grub_video_iterate): Likewise.
23012 (grub_video_setup): Likewise.
23013 (grub_video_restore): Likewise.
23014 (grub_video_get_info): Likewise.
23015 (grub_video_get_blit_format): Likewise.
23016 (grub_video_set_palette): Likewise.
23017 (grub_video_get_palette): Likewise.
23018 (grub_video_set_viewport): Likewise.
23019 (grub_video_get_viewport): Likewise.
23020 (grub_video_map_color): Likewise.
23021 (grub_video_map_rgb): Likewise.
23022 (grub_video_map_rgba): Likewise.
23023 (grub_video_fill_rect): Likewise.
23024 (grub_video_blit_glyph): Likewise.
23025 (grub_video_blit_bitmap): Likewise.
23026 (grub_video_blit_render_target): Likewise.
23027 (grub_video_scroll): Likewise.
23028 (grub_video_swap_buffers): Likewise.
23029 (grub_video_create_render_target): Likewise.
23030 (grub_video_delete_render_target): Likewise.
23031 (grub_video_set_active_render_target): Likewise.
23033 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23035 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23037 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23038 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23039 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23040 instead of $(srcdir)/genkernsyms.sh.
23042 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23043 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23044 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23045 instead of $(srcdir)/genkernsyms.sh.
23047 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23048 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23049 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23050 instead of $(srcdir)/genkernsyms.sh.
23052 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23053 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23054 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23055 instead of $(srcdir)/genkernsyms.sh.
23057 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23060 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23062 (gensymlist.sh): New target.
23063 (genkernsyms.sh): Likewise.
23065 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23066 genkernsyms.sh.in and gensymlist.sh.in.
23068 * genkernsyms.sh: Removed.
23069 * gensymlist.sh: Likewise.
23071 * genkernsyms.sh.in: New file.
23072 * gensymlist.sh.in: Likewise.
23074 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23076 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23077 clobber "prefix", since we may have already set it manually.
23079 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23081 * kern/misc.c (abort): New alias for grub_abort.
23083 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23085 A new machine-specific function "grub_machine_set_prefix" is
23086 defined. This is called after loading modules, so that a prefix
23087 initialization can use modules. Also, this change adds an
23088 intensive debugging feature for the memory manager via the
23089 configure option "--enable-mm-debug".
23091 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23094 * kern/sparc64/ieee1275/init.c (abort): Removed.
23095 (grub_stop): Likewise.
23096 (grub_exit): New function.
23097 (grub_set_prefix): Renamed to ...
23098 (grub_machine_set_prefix): ... this.
23099 (grub_machine_init): Do not call grub_set_prefix.
23101 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23102 (grub_machine_set_prefix): ... this.
23103 (grub_machine_init): Do not call grub_set_prefix.
23105 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23106 (grub_machine_init): Do not set the prefix here.
23108 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23110 * kern/efi/init.c: Include grub/mm.h.
23111 (grub_efi_set_prefix): New function.
23113 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23114 (grub_efi_get_filename): New function.
23115 (grub_print_device_path): Renamed to ...
23116 (grub_efi_print_device_path): ... this.
23118 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23119 [MM_DEBUG] (grub_realloc): Likewise.
23120 [MM_DEBUG] (grub_free): Likewise.
23121 [MM_DEBUG] (grub_memalign): Likewise.
23122 [MM_DEBUG] (grub_mm_debug): New variable.
23123 [MM_DEBUG] (grub_debug_malloc): New function.
23124 [MM_DEBUG] (grub_debug_free): New function.
23125 [MM_DEBUG] (grub_debug_realloc): New function.
23126 [MM_DEBUG] (grub_debug_memalign): New function.
23128 * kern/misc.c (grub_abort): Print a newline to distinguish
23131 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23132 grub_set_root_dev after loading modules. This is necessary when
23133 setting a prefix depends on modules.
23135 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23136 (grub_efi_print_device_path): ... this.
23137 (grub_efi_get_filename): New prototype.
23138 (grub_efi_set_prefix): Likewise.
23140 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23142 (grub_efidisk_get_device_handle): New prototype.
23143 (grub_efidisk_get_device_name): Likewise.
23145 * include/grub/mm.h: Include config.h.
23146 (MM_DEBUG): Removed.
23147 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23148 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23149 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23150 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23151 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23152 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23153 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23154 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23155 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23157 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23159 * disk/efi/efidisk.c: Include grub/partition.h.
23160 (iterate_child_devices): New function.
23161 (add_device): First, compare only last device path nodes, so that
23162 devices are sorted by the types.
23163 (grub_efidisk_get_device_handle): New function.
23164 (grub_efidisk_get_device_name): Likewise.
23166 * configure.ac (--enable-mm-debug): New option to enable the
23167 memory manager debugging feature. This makes the binary much
23168 bigger, so is disabled by default.
23170 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23172 Use grub_abort instead of grub_stop, and grub_exit must be
23173 define in each architecture now. Also, this change adds support
23176 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23177 (grub_getkey): New function.
23178 (grub_term_get_current): Likewise.
23180 * util/i386/pc/grub-setup.c: Include grub/term.h.
23181 (grub_getkey): New function.
23182 (grub_term_get_current): Likewise.
23184 * util/misc.c (grub_stop): Renamed to ...
23185 (grub_exit): ... this.
23187 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23188 (grub_exit): ... this.
23189 (grub_machine_init): Use grub_abort instead of abort.
23190 (grub_stop): Removed.
23192 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23195 * kern/i386/pc/startup.S (grub_exit): New function.
23196 (cold_reboot): New label.
23198 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23199 (grub_efi_init): Call grub_efidisk_init.
23200 (grub_efi_fini): Call grub_efidisk_fini.
23202 * kern/efi/efi.c: Include grub/mm.h.
23203 (grub_efi_console_control_guid): Renamed to ...
23204 (console_control_guid): ... this.
23205 (grub_efi_loaded_image_guid): Renamed to ...
23206 (loaded_image_guid): ... this.
23207 (grub_efi_locate_handle): New function.
23208 (grub_efi_open_protocol): Likewise.
23209 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23210 GRUB_EFI_CONSOLE_CONTROL_GUID.
23211 (grub_efi_exit): Removed.
23212 (grub_stop): Likewise.
23213 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23214 (grub_exit): New function.
23215 (grub_print_device_path): Likewise.
23217 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23218 (grub_enter_rescue_mode): Register "exit".
23220 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23221 (grub_abort): New function.
23223 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23225 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23227 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23229 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23230 (grub_print_device_path): New prototype.
23231 (grub_efi_locate_handle): Likewise.
23232 (grub_efi_open_protocol): Likewise.
23234 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23235 * disk/efi/efidisk.c: Likewise.
23237 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23239 * include/grub/efi/console_control.h
23240 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23242 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23243 last 8 bytes as an array.
23244 (GRUB_EFI_DISK_IO_GUID): New macro.
23245 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23246 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23247 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23249 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23250 (struct grub_efi_device_path): Rename the member "sub_type" to
23252 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23253 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23254 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23255 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23256 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23257 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23258 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23259 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23260 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23261 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23262 (struct grub_efi_pci_device_path): New structure.
23263 (grub_efi_pci_device_path_t): New type.
23264 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23265 (struct grub_efi_pccard_device_path): New structure.
23266 (grub_efi_pccard_device_path_t): New type.
23267 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23268 (struct grub_efi_memory_mapped_device_path): New structure.
23269 (grub_efi_memory_mapped_device_path_t): New type.
23270 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23271 (struct grub_efi_vendor_device_path): New structure.
23272 (grub_efi_vendor_device_path_t): New type.
23273 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23274 (struct grub_efi_controller_device_path): New structure.
23275 (grub_efi_controller_device_path_t): New type.
23276 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23277 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23278 (struct grub_efi_acpi_device_path): New structure.
23279 (grub_efi_acpi_device_path_t): New type.
23280 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23281 (struct grub_efi_expanded_acpi_device_path): New structure.
23282 (grub_efi_expanded_acpi_device_path_t): New type.
23283 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23284 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23285 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23286 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23287 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23288 (struct grub_efi_atapi_device_path): New structure.
23289 (grub_efi_atapi_device_path_t): New type.
23290 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23291 (struct grub_efi_fibre_channel_device_path): New structure.
23292 (grub_efi_fibre_channel_device_path_t): New type.
23293 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23294 (struct grub_efi_1394_device_path): New structure.
23295 (grub_efi_1394_device_path_t): New type.
23296 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23297 (struct grub_efi_usb_device_path): New structure.
23298 (grub_efi_usb_device_path_t): New type.
23299 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23300 (struct grub_efi_usb_class_device_path): New structure.
23301 (grub_efi_usb_class_device_path_t): New type.
23302 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23303 (struct grub_efi_i2o_device_path): New structure.
23304 (grub_efi_i2o_device_path_t): New type.
23305 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23306 (struct grub_efi_mac_address_device_path): New structure.
23307 (grub_efi_mac_address_device_path_t): New type.
23308 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23309 (struct grub_efi_ipv4_device_path): New structure.
23310 (grub_efi_ipv4_device_path_t): New type.
23311 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23312 (struct grub_efi_ipv6_device_path): New structure.
23313 (grub_efi_ipv6_device_path_t): New type.
23314 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23315 (struct grub_efi_infiniband_device_path): New structure.
23316 (grub_efi_infiniband_device_path_t): New type.
23317 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23318 (struct grub_efi_uart_device_path): New structure.
23319 (grub_efi_uart_device_path_t): New type.
23320 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23321 (struct grub_efi_vendor_messaging_device_path): New structure.
23322 (grub_efi_vendor_messaging_device_path_t): New type.
23323 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23324 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23325 (struct grub_efi_hard_drive_device_path): New structure.
23326 (grub_efi_hard_drive_device_path_t): New type.
23327 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23328 (struct grub_efi_cdrom_device_path): New structure.
23329 (grub_efi_cdrom_device_path_t): New type.
23330 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23331 (struct grub_efi_vendor_media_device_path): New structure.
23332 (grub_efi_vendor_media_device_path_t): New type.
23333 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23334 (struct grub_efi_file_path_device_path): New structure.
23335 (grub_efi_file_path_device_path_t): New type.
23336 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23337 (struct grub_efi_protocol_device_path): New structure.
23338 (grub_efi_protocol_device_path_t): New type.
23339 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23340 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23341 (struct grub_efi_bios_device_path): New structure.
23342 (grub_efi_bios_device_path_t): New type.
23343 (struct grub_efi_disk_io): New structure.
23344 (grub_efi_disk_io_t): New type.
23345 (struct grub_efi_block_io_media): New structure.
23346 (grub_efi_block_io_media_t): New type.
23347 (struct grub_efi_block_io): New structure.
23348 (grub_efi_block_io_t): New type.
23350 * include/grub/misc.h (grub_stop): Removed.
23351 (grub_exit): New prototype.
23352 (grub_abort): Likewise.
23354 * include/grub/disk.h (enum grub_disk_dev_id): Added
23355 GRUB_DISK_DEVICE_EFIDISK_ID.
23357 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23358 disk/efi/efidisk.c.
23359 (kernel_syms.lst): Remove the target if an error occurs.
23361 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23363 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23364 as it was simply too buggy.
23366 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23368 * kern/misc.c (grub_lltoa): New function.
23369 (grub_vsprintf): Added support for the long long suffix,
23372 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23374 * Makefile.in (LDFLAGS): Add variable.
23375 (LD): Remove variable.
23376 * configure.ac: Add -m32 to LDFLAGS.
23377 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23378 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23379 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23380 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23381 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23383 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23384 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23385 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23387 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23389 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23390 length for unknown glyph.
23392 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23394 Add support for pre-loaded modules into the EFI port.
23396 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23397 completely. Accept one more argument DIR. The caller has changed.
23399 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23401 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23402 (grub_efi_loaded_image_guid): New variable.
23403 (grub_efi_get_loaded_image): New function.
23404 (grub_arch_modules_addr): Likewise.
23406 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23409 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23410 (struct grub_efi_loaded_image): New structure.
23411 (grub_efi_loaded_image_t): New type.
23413 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23415 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23416 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23417 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23419 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23421 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23423 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23425 * DISTLIST: Added include/grub/efi/console.h,
23426 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23427 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23429 * include/grub/efi/console.h: New file.
23430 * include/grub/efi/time.h: Likewise.
23431 * include/grub/i386/efi/kernel.h: Likewise.
23432 * kern/efi/init.c: Likewise.
23433 * kern/efi/mm.c: Likewise.
23434 * term/efi/console.c: Likewise.
23436 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23437 (grub_stop): Removed.
23438 (grub_get_rtc): Likewise.
23439 (grub_machine_init): Simply call grub_efi_init.
23440 (grub_machine_fini): Call grub_efi_fini.
23442 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23443 (grub_efi_output_string): Removed.
23444 (grub_efi_stall): New function.
23445 (grub_stop): Likewise.
23446 (grub_get_rtc): Likewise.
23448 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23449 (grub_efi_stall): New prototype.
23450 (grub_efi_allocate_pages): Likewise.
23451 (grub_efi_free_pages): Likewise.
23452 (grub_efi_get_memory_map): Likewise.
23453 (grub_efi_mm_init): Likewise.
23454 (grub_efi_mm_fini): Likewise.
23455 (grub_efi_init): Likewise.
23456 (grub_efi_fini): Likewise.
23458 * include/grub/i386/efi/time.h: Do not include
23459 grub/symbol.h. Include grub/efi/time.h.
23460 (GRUB_TICKS_PER_SECOND): Removed.
23461 (grub_get_rtc): Likewise.
23463 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23464 Added padding. The EFI spec is buggy.
23465 (GRUB_EFI_BLACK): New macro.
23466 (GRUB_EFI_BLUE): Likewise.
23467 (GRUB_EFI_GREEN): Likewise.
23468 (GRUB_EFI_CYAN): Likewise.
23469 (GRUB_EFI_RED): Likewise.
23470 (GRUB_EFI_MAGENTA): Likewise.
23471 (GRUB_EFI_BROWN): Likewise.
23472 (GRUB_EFI_LIGHTGRAY): Likewise.
23473 (GRUB_EFI_BRIGHT): Likewise.
23474 (GRUB_EFI_DARKGRAY): Likewise.
23475 (GRUB_EFI_LIGHTBLUE): Likewise.
23476 (GRUB_EFI_LIGHTGREEN): Likewise.
23477 (GRUB_EFI_LIGHTCYAN): Likewise.
23478 (GRUB_EFI_LIGHTRED): Likewise.
23479 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23480 (GRUB_EFI_YELLOW): Likewise.
23481 (GRUB_EFI_WHITE): Likewise.
23482 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23483 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23484 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23485 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23486 (GRUB_EFI_BACKGROUND_RED): Likewise.
23487 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23488 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23489 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23490 (GRUB_EFI_TEXT_ATTR): Likewise.
23492 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23493 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23494 (kernel_mod_HEADERS): Added efi/time.h.
23496 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23498 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23499 include/grub/efi/api.h, include/grub/efi/console_control.h,
23500 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23501 include/grub/i386/efi/time.h, kern/efi/efi.c,
23502 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23503 and util/i386/efi/grub-mkimage.c.
23505 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23507 * genmk.rb (PModule#rule): Do not export symbols if
23508 #{prefix}_EXPORTS is set to "no".
23510 * conf/i386-efi.mk: New file.
23511 * conf/i386-efi.rmk: Likewise.
23512 * include/grub/efi/api.h: Likewise.
23513 * include/grub/efi/console_control.h: Likewise.
23514 * include/grub/efi/efi.h: Likewise.
23515 * include/grub/efi/pe32.h: Likewise.
23516 * include/grub/i386/efi/time.h: Likewise.
23517 * kern/efi/efi.c: Likewise.
23518 * kern/i386/efi/init.c: Likewise.
23519 * kern/i386/efi/startup.S: Likewise.
23520 * util/i386/efi/grub-mkimage.c: Likewise.
23522 2006-04-17 Marco Gerards <marco@gnu.org>
23524 * include/grub/script.h: Include <grub/parser.h> and
23525 "grub_script.tab.h".
23526 (struct grub_lexer_param): New struct.
23527 (struct grub_parser_param): Likewise.
23528 (grub_script_create_arglist): Pass the state in an argument.
23529 (grub_script_add_arglist): Likewise.
23530 (grub_script_create_cmdline): Likewise.
23531 (grub_script_create_cmdblock): Likewise.
23532 (grub_script_create_cmdif): Likewise.
23533 (grub_script_create_cmdmenu): Likewise.
23534 (grub_script_add_cmd): Likewise.
23535 (grub_script_arg_add): Likewise.
23536 (grub_script_lexer_ref): Likewise.
23537 (grub_script_lexer_deref): Likewise.
23538 (grub_script_lexer_record_start): Likewise.
23539 (grub_script_lexer_record_stop): Likewise.
23540 (grub_script_mem_record): Likewise.
23541 (grub_script_mem_record_stop): Likewise.
23542 (grub_script_malloc): Likewise.
23543 (grub_script_yylex): Likewise.
23544 (grub_script_yyparse): Likewise.
23545 (grub_script_yyerror): Likewise.
23546 (grub_script_yylex): Likewise.
23547 (grub_script_lexer_init): Return the state.
23549 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23550 (grub_script_lexer_done): Likewise.
23551 (grub_script_lexer_getline): Likewise.
23552 (grub_script_lexer_refs): Likewise.
23553 (script): Likewise.
23554 (newscript): Likewise.
23555 (record): Likewise.
23556 (recording): Likewise.
23557 (recordpos): Likewise.
23558 (recordlen): Likewise.
23559 (grub_script_lexer_init): Return the state instead of setting
23561 (grub_script_lexer_ref): Use the newly added argument for state
23562 instead of globals.
23563 (grub_script_lexer_deref): Likewise.
23564 (grub_script_lexer_record_start): Likewise.
23565 (grub_script_lexer_record_stop): Likewise.
23566 (recordchar): Likewise.
23567 (nextchar): Likewise.
23568 (grub_script_yylex2): Likewise.
23569 (grub_script_yylex): Likewise.
23570 (grub_script_yyerror): Likewise.
23572 * normal/parser.y (func_mem): Removed variable.
23573 (menu_entry): Likewise.
23575 (%lex-param): New parser option.
23576 (%parse-param): Likewise.
23577 (script): Always return the AST.
23578 (argument): Pass the state around.
23579 (arguments): Likewise.
23580 (grubcmd): Likewise.
23581 (commands): Likewise.
23582 (function): Likewise.
23583 (menuentry): Likewise.
23584 (if_statement): Likewise.
23587 * normal/script.c (grub_script_memused): Removed variable.
23588 (grub_script_parsed): Likewise.
23589 (grub_script_malloc): Added a state argument. Use that instead of
23591 (grub_script_mem_record): Likewise.
23592 (grub_script_mem_record_stop): Likewise.
23593 (grub_script_arg_add): Likewise.
23594 (grub_script_add_arglist): Likewise.
23595 (grub_script_create_cmdline): Likewise.
23596 (grub_script_create_cmdif): Likewise.
23597 (grub_script_create_cmdmenu): Likewise.
23598 (grub_script_add_cmd): Likewise.
23599 (grub_script_parse): Setup the state before calling the parser.
23601 2006-04-16 Marco Gerards <marco@gnu.org>
23603 * normal/command.c (grub_command_init): Remove the title command.
23605 * normal/lexer.c (grub_script_yylex): Renamed from this...
23606 (grub_script_yylex2): ... to this.
23607 (grub_script_yylex): New function. Temporary
23608 introduced to filter some tokens.
23609 (grub_script_yyerror): Print a newline.
23611 * normal/main.c (read_config_file): Output information about the
23612 lines that contain errors. Wait for a key after all lines have
23613 been processed. Don't return an empty menu.
23615 * normal/parser.y (func_mem): Don't initialize.
23616 (menu_entry): Likewise.
23617 (err): New variable.
23618 (script): Don't return anything when an error was encountered.
23619 (ws, returns): Removed rules.
23620 (argument): Disabled concatenated variable support.
23621 (arguments): Remove explicit separators.
23622 (grubcmd): Likewise.
23623 (function): Likewise.
23624 (menuentry): Likewise.
23626 (commands): Likewise. Add error handling.
23628 * normal/script.c (grub_script_create_cmdline): If
23629 `grub_script_parsed' is 0, assume the parser encountered an error.
23631 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23633 * configure.ac: Add support for EFI. Fix the typo
23634 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23636 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23638 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23639 foreign multibyte characters should be shown correctly.
23641 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23643 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23645 (read_config_file): Made it to close file before returning.
23647 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23649 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23650 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23651 video/i386/pc/vbefill.c.
23653 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23654 video/i386/pc/vbefill.c.
23656 * include/grub/video.h (grub_video_blit_format): New enum.
23657 (grub_video_mode_info): Added new member blit_format.
23658 (grub_video_get_blit_format): New function prototype.
23660 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23661 function prototype.
23662 (grub_video_vbe_map_rgb): Likewise.
23663 (grub_video_vbe_unmap_color): Likewise.
23665 * include/grub/i386/pc/vbeblit.h: New file.
23667 * include/grub/i386/pc/vbefill.h: New file.
23669 * video/video.c (grub_video_get_blit_format): New function.
23670 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23671 (grub_video_vbe_map_rgb): Likewise.
23672 (grub_video_vbe_unmap_color): Likewise.
23674 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23676 (grub_video_vbe_blit_render_target): Changed to use more optimized
23678 (grub_video_vbe_setup): Added detection for optimized settings.
23679 (grub_video_vbe_create_render_target): Likewise.
23681 * video/i386/pc/vbeblit.c: New file.
23683 * video/i386/pc/vbefill.c: New file.
23685 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23687 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23690 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23691 parsing to support both hex and dec ranges. If filename was missing
23692 show usage information.
23694 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23696 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23697 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23699 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23700 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23701 (video_mod_SOURCES): Added.
23702 (video_mod_CFLAGS): Likewise.
23703 (video_mod_LDFLAGS): Likewise.
23704 (gfxterm_mod_SOURCES): Likewise.
23705 (gfxterm_mod_CFLAGS): Likewise.
23706 (gfxterm_mod_LDFLAGS): Likewise.
23707 (videotest_mod_SOURCES): Likewise.
23708 (videotest_mod_CFLAGS): Likewise.
23709 (videotest_mod_LDFLAGS): Likewise.
23710 (vesafb_mod_SOURCES): Removed.
23711 (vesafb_mod_CFLAGS): Likewise.
23712 (vesafb_mod_LDFLAGS): Likewise.
23713 (vga_mod_SOURCES): Likewise.
23714 (vga_mod_CFLAGS): Likewise.
23715 (vga_mod_LDFLAGS): Likewise.
23717 * commands/videotest.c: New file.
23719 * font/manager.c (fill_with_default_glyph): Modified to use
23721 (grub_font_get_glyph): Likewise.
23722 (fontmanager): Renamed from this...
23723 (font_manager): ... to this.
23725 * include/grub/font.h (grub_font_glyph): Added new structure.
23726 (grub_font_get_glyph): Modified to use grub_font_glyph.
23728 * include/grub/misc.h (grub_abs): Added as inline function.
23730 * include/grub/video.h: New file.
23732 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23733 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23734 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23735 (grub_vbe_get_controller_info): Renamed from this...
23736 (grub_vbe_bios_get_controller_info): ... to this.
23737 (grub_vbe_get_mode_info): Renamed from this...
23738 (grub_vbe_bios_get_mode_info): ... to this.
23739 (grub_vbe_set_mode): Renamed from this...
23740 (grub_vbe_bios_set_mode): ... to this.
23741 (grub_vbe_get_mode): Renamed from this...
23742 (grub_vbe_bios_get_mode): ... to this.
23743 (grub_vbe_set_memory_window): Renamed from this...
23744 (grub_vbe_bios_set_memory_window): ... to this.
23745 (grub_vbe_get_memory_window): Renamed from this...
23746 (grub_vbe_bios_get_memory_window): ... to this.
23747 (grub_vbe_set_scanline_length): Renamed from this...
23748 (grub_vbe_set_scanline_length): ... to this.
23749 (grub_vbe_get_scanline_length): Renamed from this...
23750 (grub_vbe_bios_get_scanline_length): ... to this.
23751 (grub_vbe_set_display_start): Renamed from this...
23752 (grub_vbe_bios_set_display_start): ... to this.
23753 (grub_vbe_get_display_start): Renamed from this...
23754 (grub_vbe_bios_get_display_start): ... to this.
23755 (grub_vbe_set_palette_data): Renamed from this...
23756 (grub_vbe_bios_set_palette_data): ... to this.
23757 (grub_vbe_set_pixel_rgb): Removed.
23758 (grub_vbe_set_pixel_index): Likewise.
23760 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23762 (grub_vbe_bios_get_controller_info): ... to this.
23763 (grub_vbe_get_mode_info): Renamed from this...
23764 (grub_vbe_bios_get_mode_info): ... to this.
23765 (grub_vbe_set_mode): Renamed from this...
23766 (grub_vbe_bios_set_mode): ... to this.
23767 (grub_vbe_get_mode): Renamed from this...
23768 (grub_vbe_bios_get_mode): ... to this.
23769 (grub_vbe_set_memory_window): Renamed from this...
23770 (grub_vbe_bios_set_memory_window): ... to this.
23771 (grub_vbe_get_memory_window): Renamed from this...
23772 (grub_vbe_bios_get_memory_window): ... to this.
23773 (grub_vbe_set_scanline_length): Renamed from this...
23774 (grub_vbe_set_scanline_length): ... to this.
23775 (grub_vbe_get_scanline_length): Renamed from this...
23776 (grub_vbe_bios_get_scanline_length): ... to this.
23777 (grub_vbe_set_display_start): Renamed from this...
23778 (grub_vbe_bios_set_display_start): ... to this.
23779 (grub_vbe_get_display_start): Renamed from this...
23780 (grub_vbe_bios_get_display_start): ... to this.
23781 (grub_vbe_set_palette_data): Renamed from this...
23782 (grub_vbe_bios_set_palette_data): ... to this.
23783 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23784 getting corrupted after calling it. Added more pushes and pops.
23785 (grub_vbe_bios_set_mode): Likewise.
23786 (grub_vbe_bios_get_mode): Likewise.
23787 (grub_vbe_bios_get_memory_window): Likewise.
23788 (grub_vbe_bios_set_scanline_length): Likewise.
23789 (grub_vbe_bios_get_scanline_length): Likewise.
23790 (grub_vbe_bios_get_display_start): Likewise.
23791 (grub_vbe_bios_set_palette_data): Likewise.
23793 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23794 (cl_insert): Likewise.
23795 (cl_delete): Likewise.
23797 * term/gfxterm.c: New file.
23799 * term/i386/pc/vesafb.c: Removed file.
23801 * video/video.c: New file.
23803 * video/i386/pc/vbe.c (real2pm): Added new function.
23804 (grub_video_vbe_draw_pixel): Likewise.
23805 (grub_video_vbe_get_video_ptr): Likewise.
23806 (grub_video_vbe_get_pixel): Likewise
23807 (grub_video_vbe_init): Likewise.
23808 (grub_video_vbe_fini): Likewise.
23809 (grub_video_vbe_setup): Likewise.
23810 (grub_video_vbe_get_info): Likewise.
23811 (grub_video_vbe_set_palette): Likewise.
23812 (grub_video_vbe_get_palette): Likewise.
23813 (grub_video_vbe_set_viewport): Likewise.
23814 (grub_video_vbe_get_viewport): Likewise.
23815 (grub_video_vbe_map_color): Likewise.
23816 (grub_video_vbe_map_rgb): Likewise.
23817 (grub_video_vbe_map_rgba): Likewise.
23818 (grub_video_vbe_unmap_color): Likewise.
23819 (grub_video_vbe_fill_rect): Likewise.
23820 (grub_video_vbe_blit_glyph): Likewise.
23821 (grub_video_vbe_blit_bitmap): Likewise.
23822 (grub_video_vbe_blit_render_target): Likewise.
23823 (grub_video_vbe_scroll): Likewise.
23824 (grub_video_vbe_swap_buffers): Likewise.
23825 (grub_video_vbe_create_render_target): Likewise.
23826 (grub_video_vbe_delete_render_target): Likewise.
23827 (grub_video_vbe_set_active_render_target): Likewise.
23828 (grub_vbe_set_pixel_rgb): Remove function.
23829 (grub_vbe_set_pixel_index): Likewise.
23830 (index_color_mode): Remove static variable.
23831 (active_mode): Likewise.
23832 (framebuffer): Likewise.
23833 (bytes_per_scan_line): Likewise.
23834 (grub_video_vbe_adapter): Added new static variable.
23835 (framebuffer): Likewise.
23836 (render_target): Likewise.
23837 (initial_mode): Likewise.
23838 (mode_in_use): Likewise.
23839 (mode_list): Likewise.
23841 2006-03-10 Marco Gerards <marco@gnu.org>
23843 * configure.ac (AC_INIT): Bumped to 1.93.
23845 * DISTLIST: Added `include/grub/hfs.h'.
23847 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23849 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23850 18H, which might help the BIOS falling back to next boot media.
23852 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23854 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23855 Poe Chen <poe.poechen@gmail.com>.
23857 2006-01-17 Marco Gerards <marco@gnu.org>
23859 * include/grub/normal.h: Include <grub/script.h>.
23860 (grub_command_list): Removed struct.
23861 (grub_command_list_t): Removed type.
23862 (grub_menu_entry): Remove members `num' and `command_list'. Add
23863 members `commands' and `sourcecode'.
23864 * include/grub/script.h: Add inclusion guards.
23865 (grub_script_cmd_menuentry): New struct.
23866 (grub_script_execute_menuentry): New prototype.
23867 (grub_script_lexer_record_start): Likewise.
23868 (grub_script_lexer_record_stop): Likewise.
23869 * normal/execute.c (grub_script_execute_menuentry): New function.
23870 * normal/lexer.c (record, recording, recordpos, recordlen): New
23872 (grub_script_lexer_record_start): New function.
23873 (grub_script_lexer_record_stop): Likewise.
23874 (recordchar): Likewise.
23875 (nextchar): Likewise.
23876 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23877 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23878 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23879 (current_menu): New variable.
23880 (free_menu): Mainly rewritten.
23881 (grub_normal_menu_addentry): New function.
23882 (read_config_file): Rewritten.
23883 * normal/menu.c (run_menu_entry): Mainly rewritten.
23884 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23886 (run): Mainly rewritten.
23887 * normal/parser.y (menu_entry): New variable.
23888 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23889 (menuentry): New rule.
23890 (command): Add `menuentry'.
23891 (if_statement): Allow additional returns before `fi'.
23892 * normal/script.c (grub_script_create_cmdmenu): New function.
23894 2006-01-03 Marco Gerards <marco@gnu.org>
23896 * INSTALL: GNU Bison is required.
23897 * configure.ac: Rewritten the test to detect Bison.
23898 * Makefile.in (YACC): New variable. Reported by Xun Sun
23899 <xun.sun.cn@gmail.com>.
23901 2006-01-03 Marco Gerards <marco@gnu.org>
23903 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23904 the HFS+ filesystem to filesystem blocks.
23905 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23906 GCC warning is silenced.
23908 2006-01-03 Marco Gerards <marco@gnu.org>
23910 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23911 read from disk from big endian to host byte order.
23913 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23915 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23917 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23918 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23919 embedded HFS+ filesystem.
23920 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23921 (grub_hfs_sblock): Move from here...
23922 * include/grub/hfs.h: To here... New file.
23923 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23925 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23927 (grub_hfsplus_volheader): Change type of member `magic' to
23929 (grub_hfsplus_data): Add new member `embedded_offset'.
23930 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23932 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23933 Calculate the offset.
23935 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23937 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23939 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23941 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23943 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23944 ENV->NAME is NULL after allocating ENV->VALUE.
23946 2005-12-25 Marco Gerards <marco@gnu.org>
23948 * kern/env.c (grub_env_set): Rewritten the error handling code.
23950 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23952 * geninit.sh: Made more robust, and more portable.
23954 2005-12-25 Marco Gerards <marco@gnu.org>
23956 Add support for Apple HFS+ filesystems.
23958 * fs/hfsplus.c: New file.
23960 * DISTLIST: Added `fs/hfsplus.c'.
23962 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23963 (hfsplus_mod_SOURCES): New variable.
23964 (hfsplus_mod_CFLAGS): Likewise.
23965 (hfsplus_mod_LDFLAGS): Likewise.
23966 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23967 (grub_setup_SOURCES): Likewise.
23968 (grub_mkdevicemap_SOURCES): Likewise.
23969 (grub_emu_SOURCES): Likewise.
23970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23972 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23974 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23976 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23978 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23979 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23980 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23981 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23982 normal/lexer.c, normal/parser.y, normal/script.c, and
23984 Removed kern/sparc64/cache.c.
23986 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23987 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23990 * configure.ac (AC_INIT): Bumped to 1.92.
23992 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23994 * kern/err.c (grub_error_push): Added new function to support error
23996 (grub_error_pop): Likewise.
23997 (grub_error_stack_items): New local variable to support error stacks.
23998 (grub_error_stack_pos): Likewise.
23999 (grub_error_stack_assert): Likewise.
24000 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24002 (grub_print_error): Added support to print errors from error stack.
24004 * include/grub/err.h (grub_error_push): Added function prototype.
24005 (grub_error_pop): Likewise.
24007 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24009 * configure.ac: Accept `powerpc64' as host_cpu.
24010 (amd64): Rename to `biarch32'.
24012 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24013 non-cacheline-aligned addresses.
24015 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24016 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24017 if `size' is non-zero.
24019 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
24021 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24022 and `cd' to make sure the filename is not prefixed with a
24024 (pkgdata_MODULES): Add `gpt.mod'.
24025 (gpt_mod_SOURCES): New variable.
24026 (gpt_mod_CFLAGS): Likewise.
24027 (gpt_mod_LDFLAGS): Likewise.
24029 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24031 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24034 * partmap/gpt.c: New file.
24036 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24037 GPT partition map is detected.
24039 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24041 * commands/i386/pc/play.c: New file.
24042 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24043 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24046 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
24048 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24049 ((unused))' to silence gcc warning.
24051 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24053 * configure.ac: Correct `AC_PROG_YACC' test.
24055 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24057 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24058 check before installing files.
24060 2005-11-22 Mike Small <smallm@panix.com>
24062 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24063 number regex so multidigit numbers are recognized correctly.
24065 2005-11-22 Mike Small <smallm@panix.com>
24067 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24068 debugging message before attempting to claim memory.
24069 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24070 multiple addresses in case of failure.
24072 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24074 * term/tparm.c (get_space): Remove empty `if' statement.
24076 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24078 * kern/parser.c (check_varstate): Rename `state' to 's'.
24080 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24082 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24083 variable definitions to the beginning of each function. Sort stack
24085 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24086 `buf' argument to `char *'.
24088 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24090 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24091 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24092 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24093 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24094 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24095 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24096 configfile.mod, search.mod, gzio.mod and test.mod.
24097 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24098 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24099 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24100 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24101 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24102 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24103 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24104 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24105 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24106 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24107 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24108 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24109 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24110 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24111 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24112 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24113 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24114 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24115 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24116 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24117 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24118 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24119 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24121 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24123 (pkgdata_MODULES): Add test.mod.
24125 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24127 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24128 appending to variables with "+=".
24129 (PModule): Use full pathname to generate *.lst filenames.
24131 * Makefile.in: Fixed list rules moved from genmk.rb.
24132 (.DELETE_ON_ERROR): New special target.
24133 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24135 * conf/i386-pc.rmk: Include conf/common.mk.
24136 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24137 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24138 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24139 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24140 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24141 configfile.mod, search.mod, gzio.mod and test.mod.
24142 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24143 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24144 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24145 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24146 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24147 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24148 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24149 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24150 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24151 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24152 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24153 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24154 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24155 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24156 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24157 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24158 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24159 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24160 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24161 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24162 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24163 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24164 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24166 * conf/common.rmk: ... to here. New file.
24168 * conf/common.mk: New file.
24170 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24172 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24173 (grub_script.tab.c): ... here.
24175 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24176 (grub_script.tab.c): ... here.
24178 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24179 (grub_script.tab.c): ... here.
24181 * normal/command.c (grub_command_find): Fixed a memory leak of
24182 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24184 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24186 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24187 "@" which marks the start of a comment on ARM.
24188 (VARIABLE): Likewise.
24190 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24192 Add support for Linux/ADFS partition tables.
24194 * partmap/acorn.c: New file.
24196 * include/grub/acorn_filecore.h: Likewise.
24198 * DISTLIST: Added `partmap/acorn.c' and
24199 `include/grub/acorn_filecore.h'.
24201 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24203 (pkgdata_MODULES): Add `acorn.mod'.
24204 (acorn_mod_SOURCES): New variable.
24205 (acorn_mod_CFLAGS): Likewise.
24207 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24209 (pkgdata_MODULES): Add `acorn.mod'.
24210 (acorn_mod_SOURCES): New variable.
24211 (acorn_mod_CFLAGS): Likewise.
24213 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24214 (pkgdata_MODULES): Add `acorn.mod'.
24215 (acorn_mod_SOURCES): New variable.
24216 (acorn_mod_CFLAGS): Likewise.
24217 (acorn_mod_LDFLAGS): Likewise.
24219 * include/types.h (grub_disk_addr_t): New typedef.
24221 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24223 * geninit.sh: New file.
24225 * geninitheader.sh: Likewise.
24227 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24228 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24229 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24230 * commands/configfile.c (grub_configfile_init)
24231 (grub_configfile_fini): Likewise.
24232 * commands/default.c (grub_default_init, grub_default_fini):
24234 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24235 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24236 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24237 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24239 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24240 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24242 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24243 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24245 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24247 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24249 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24250 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24251 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24252 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24253 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24254 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24255 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24256 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24257 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24258 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24259 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24260 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24261 * partmap/amiga.c (grub_amiga_partition_map_init)
24262 (grub_amiga_partition_map_fini): Likewise.
24263 * partmap/apple.c (grub_apple_partition_map_init)
24264 (grub_apple_partition_map_fini): Likewise.
24265 * partmap/pc.c (grub_pc_partition_map_init)
24266 (grub_pc_partition_map_fini): Likewise.
24267 * partmap/sun.c (grub_sun_partition_map_init,
24268 grub_sun_partition_map_fini): Likewise.
24269 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24272 * util/grub-emu.c: Include <grub_modules_init.h>.
24273 (main): Don't initialize and de-initialize any modules directly,
24274 use `grub_init_all' and `grub_fini_all' instead.
24276 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24277 `grub_vesafb_mod_init'.
24278 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24280 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24281 `grub_vga_mod_init'. Updated all users.
24282 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24284 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24285 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24288 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24289 Generate a function to initialize the module in utilities.
24290 Updated all callers.
24291 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24292 initialize the module in utilities. Updated all callers.
24294 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24296 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24297 escape sequence and a literal ^L to clear the screen.
24299 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24300 when returning from Open Firmware.
24302 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24304 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24305 (grub_ofconsole_height): Likewise.
24306 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24307 manually insert a '\n'.
24308 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24309 `grub_ofconsole_height'. Return early if these are already set.
24311 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24313 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24314 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24315 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24316 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24317 and `normal/script.c'.
24318 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24319 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24320 (test_mod_SOURCES): New variable.
24321 (test_mod_CFLAGS): Likewise.
24322 (test_mod_LDFLAGS): Likewise.
24323 (pkgdata_MODULES): Add `test.mod'.
24324 (grub_script.tab.c): New rule.
24325 (grub_script.tab.h): Likewise.
24327 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24330 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24331 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24332 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24333 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24334 (test_mod_SOURCES): New variable.
24335 (test_mod_CFLAGS): Likewise.
24336 (pkgdata_MODULES): Add `test.mod'.
24337 (grub_script.tab.c): New rule.
24338 (grub_script.tab.h): Likewise.
24340 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24342 Add initial scripting support.
24344 * commands/test.c: New file.
24345 * include/grub/script.h: Likewise.
24346 * normal/execute.c: Likewise.
24347 * normal/function.c: Likewise.
24348 * normal/lexer.c: Likewise.
24349 * normal/parser.y: Likewise.
24350 * normal/script.c: Likewise.
24352 * configure.ac: Add `AC_PROG_YACC' test.
24354 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24355 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24356 `normal/function.c' and `normal/script.c'.
24357 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24358 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24359 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24361 (pkgdata_MODULES): Add `test.mod'.
24362 (grub_script.tab.c): New rule.
24363 (grub_script.tab.h): Likewise.
24365 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24367 * include/grub/normal.h (grub_test_init): New prototype.
24368 (grub_test_fini): Likewise.
24370 * normal/command.c: Include <grub/script.h>.
24371 (grub_command_execute): Rewritten.
24373 * util/grub-emu.c (main): Call `grub_test_init' and
24376 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24378 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24380 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24381 there are no pending characters.
24383 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24385 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24386 `grub_strndup' to drop device arguments. Replace unnecessary
24387 `grub_strndup' with `grub_strdup'.
24389 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24391 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24392 `debug' environment variable has been set.
24394 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24396 * Makefile.in (install-local): Use $(DATA).
24397 (uninstall): Likewise.
24398 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24399 (sbin_UTILITIES): ... to here.
24400 (sbin_SCRIPTS): New variable.
24401 (grub_install_SOURCES): New variable.
24402 * util/powerpc/ieee1275/grub-install.in: New file.
24403 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24405 (add_segments): Call `grub_util_get_path'.
24407 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24409 From Timothy Baldwin:
24410 * commands/ls.c (grub_ls_list_files): Close FILE with
24412 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24414 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24416 * include/grub/parser.h: New file.
24418 * kern/parser.c: Likewise.
24420 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24421 (grub_setup_SOURCES): Likewise.
24422 (grub_probefs_SOURCES): Likewise.
24423 (grub_emu_SOURCES): Likewise.
24424 (kernel_img_HEADERS): Add `parser.h'.
24426 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24427 (grub_emu_SOURCES): Add `kern/parser.c'.
24428 (grubof_SOURCES): Likewise.
24430 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24431 (grubof_SOURCES): Add `kern/parser.c'.
24433 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24435 * kern/misc.c (grub_split_cmdline): Removed function.
24437 * kern/rescue.c: Include <grub/parser.h>.
24438 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24439 of `grub_split_cmdline'.
24441 * normal/command.c: Include <grub/parser.h>.
24442 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24443 of `grub_split_cmdline'.
24445 * normal/completion.c: Include <grub/parser.h>.
24446 (cmdline_state): New variable.
24447 (iterate_dir): End the filename with a quote depending on the
24448 command line state.
24449 (get_state): new function.
24450 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24451 split the arguments and determine the current argument. When the
24452 argument string is not quoted, escape all spaces.
24454 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24456 * normal/sparc64/setjmp.S: New file.
24458 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24460 * include/grub/sparc64/libgcc.h: New file.
24461 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24462 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24463 normal/sparc64/setjmp.c.
24465 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24467 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24468 * kern/sparc64/cache.S: New file.
24469 * kern/sparc64/cache.c: Removed.
24470 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24471 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24473 (COMMON_LDFLAGS): Add -melf64_sparc.
24474 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24475 (grubof_SOURCES): Use cache.S instead of cache.c.
24476 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24477 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24478 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24480 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24481 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24482 (linux_mod_CFLAGS): Commented out.
24483 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24484 out because module isn't built.
24485 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24486 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24487 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24488 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24489 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24490 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24491 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24492 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24493 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24494 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24495 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24496 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24497 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24498 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24500 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24502 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24503 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24504 longer, because HFS should not be used on PC.
24506 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24508 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24509 consistently within the loop.
24511 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24513 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24514 directory can not be read.
24516 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24518 * configure.ac (AC_INIT): Increase the version number to 1.91.
24520 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24521 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24522 term/i386/pc/serial.c.
24524 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24526 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24527 file size must be permitted.
24529 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24530 between %ah and %al.
24532 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24534 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24536 Call the hook with a NUL-terminated filename.
24537 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24540 * kern/term.c (cursor_state): New variable.
24541 (grub_term_set_current): Reset the cursor state on a new
24543 (grub_setcursor): Rewritten to use CURSOR_STATE.
24544 (grub_getcursor): New function.
24546 * include/grub/term.h (grub_getcursor): New prototype.
24548 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24549 integers on ARM. Reported by Timothy Baldwin
24550 <T.E.Baldwin99@members.leeds.ac.uk>.
24552 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24554 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24556 (grub_sfs_dir): Likewise.
24558 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24560 Add support for the SFS filesystem.
24562 * fs/sfs.c: New file.
24564 * DISTLIST: Added `fs/sfs.c'.
24566 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24567 (grub_probefs_SOURCES): Likewise.
24568 (grub_emu_SOURCES): Likewise.
24569 (pkgdata_MODULES): Add `sfs.mod'.
24570 (sfs_mod_SOURCES): New variable.
24571 (sfs_mod_CFLAGS): Likewise.
24572 (sfs_mod_LDFLAGS): Likewise.
24574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24575 (pkgdata_MODULES): Add `sfs.mod'.
24576 (sfs_mod_SOURCES): New variable.
24577 (sfs_mod_CFLAGS): Likewise.
24579 * util/grub-emu.c (main): Call `grub_sfs_init' and
24582 * include/grub/fs.h (grub_sfs_init): New prototype.
24583 (grub_sfs_fini): Likewise.
24585 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24587 Add support for the AFFS filesystem.
24589 * fs/affs.c: New file.
24591 * DISTLIST: Added `fs/affs.c'.
24593 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24594 (grub_probefs_SOURCES): Likewise.
24595 (grub_emu_SOURCES): Likewise.
24596 (pkgdata_MODULES): Add `affs.mod'.
24597 (affs_mod_SOURCES): New variable.
24598 (affs_mod_CFLAGS): Likewise.
24599 (affs_mod_LDFLAGS): Likewise.
24601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24602 (pkgdata_MODULES): Add `affs.mod'.
24603 (affs_mod_SOURCES): New variable.
24604 (affs_mod_CFLAGS): Likewise.
24606 * util/grub-emu.c (main): Call `grub_affs_init' and
24609 * include/grub/fs.h (grub_affs_init): New prototype.
24610 (grub_affs_fini): Likewise.
24612 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24614 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24616 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24618 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24621 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24624 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24625 (COMMON_LDFLAGS): New variable.
24626 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24627 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24628 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24629 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24630 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24631 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24632 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24633 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24634 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24635 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24636 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24637 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24638 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24639 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24640 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24642 (normal_mod_ASFLAGS): Add `-m32'.
24644 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24645 (grub_host_size_t, grub_host_ssize_t): New types.
24646 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24647 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24648 `GRUB_HOST_SIZEOF_VOID_P'.
24650 * include/grub/kernel.h (struct grub_module_header): Type of
24651 member offset changed to `grub_host_off_t'. Type of member size
24652 changed to `grub_host_size_t'.
24653 (struct grub_module_info): Type of member offset changed to
24654 `grub_host_off_t'. Type of member size changed to
24655 `grub_host_size_t'.
24657 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24659 Make GRUB's kernel compliant to Multiboot Specification.
24661 * kern/i386/pc/startup.S (multiboot_header): New label.
24662 (multiboot_entry): Likewise.
24663 (multiboot_trampoline): Likewise.
24665 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24666 Increased to 0x4A0.
24668 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24669 put parentheses after a question mark.
24670 [!GRUB_UTIL] (my_mod): New variable.
24672 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24674 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24676 Adds support for the XFS filesystem. Btrees are not supported
24679 * fs/xfs.c: New file.
24681 * DISTLIST: Added `fs/xfs.c'.
24683 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24684 (grub_probefs_SOURCES): Likewise.
24685 (grub_emu_SOURCES): Likewise.
24686 (pkgdata_MODULES): Add `xfs.mod'.
24687 (xfs_mod_SOURCES): New variable.
24688 (xfs_mod_CFLAGS): Likewise.
24690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24691 (pkgdata_MODULES): Add `xfs.mod'.
24692 (xfs_mod_SOURCES): New variable.
24693 (xfs_mod_CFLAGS): Likewise.
24695 * util/grub-emu.c (main): Call `grub_xfs_init' and
24698 * include/grub/fs.h (grub_xfs_init): New prototype.
24699 (grub_xfs_fini): Likewise.
24702 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24704 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24705 color modes, allow greater than 16 colors to be configured as
24708 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24710 * normal/completion.c (complete_arguments): Add the qualifier
24711 const into OPTIONS.
24713 From Omniflux <omniflux+lists@omniflux.com>:
24714 * include/grub/terminfo.h: New file.
24715 * include/grub/tparm.h: Likewise.
24716 * include/grub/i386/pc/serial.h: Likewise.
24717 * term/terminfo.c: Likewise.
24718 * term/tparm.c: Likewise.
24719 * term/i386/pc/serial.c: Likewise.
24720 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24722 (terminfo_mod_SOURCES): New variable.
24723 (terminfo_mod_CFLAGS): Likewise.
24724 (serial_mod_SOURCES): Likewise.
24725 (serial_mod_CFLAGS): Likewise.
24727 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24729 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24730 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24731 and kern/powerpc/ieee1275/cmain.c, respectively.
24733 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24734 * kern/powerpc/ieee1275/crt0.S: ... here.
24736 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24737 * kern/powerpc/ieee1275/cmain.c: ... here.
24739 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24740 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24741 instead of boot/powerpc/ieee1275/crt0.S and
24742 boot/powerpc/ieee1275/cmain.c, respectively.
24744 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24745 sectors. It was not used anyway.
24747 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24749 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24750 `unused parameter' warning.
24752 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24754 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24756 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24759 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24761 * include/grub/normal.h (enum grub_completion_type): Added
24762 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24764 * normal/cmdline.c (print_completion): Handle
24765 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24766 * normal/menu_entry.c (store_completion): Likewise.
24768 * normal/completion.c (complete_arguments): New function.
24769 (grub_normal_do_completion): Call `complete_arguments' when the
24770 current words start with a dash.
24772 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24774 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24775 `gzio.mod' instead of `io.mod').
24777 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24779 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24780 (DISTDIRS): Added io and video.
24781 Rewrite the search routine to make an output consistently.
24783 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24784 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24785 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24786 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24787 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24788 util/powerpc/ieee1275/misc.c.
24790 * include/grub/gzio.h: New file.
24791 * io/gzio.c: Likewise.
24793 * kern/file.c (grub_file_close): Call grub_device_close only if
24794 FILE->DEVICE is not NULL.
24796 * include/grub/mm.h [!NULL] (NULL): New macro.
24798 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24801 (pkgdata_MODULES): Added gzio.mod.
24802 (gzio_mod_SOURCES): New variable.
24803 (gzio_mod_CFLAGS): Likewise.
24805 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24806 (pkgdata_MODULES): Added gzio.mod.
24807 (gzio_mod_SOURCES): New variable.
24808 (gzio_mod_CFLAGS): Likewise.
24810 * commands/cat.c: Include grub/gzio.h.
24811 (grub_cmd_cat): Use grub_gzfile_open instead of
24814 * commands/cmp.c: Include grub/gzio.h.
24815 (grub_cmd_cmp): Use grub_gzfile_open instead of
24818 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24819 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24821 (grub_rescue_cmd_module): Likewise.
24823 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24825 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24826 kern/sparc64/ieee1275/init.c because it contains _start.
24827 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24829 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24831 * configure.ac: Add support for sparc64 host with ieee1275
24833 * configure: Generated from configure.ac.
24834 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24836 (grub_ofdisk_read): Likewise.
24837 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24838 pointers as (void *) to remove a warning.
24839 (grub_ofdisk_close): Likewise.
24840 (grub_ofdisk_read): Likewise.
24841 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24842 returns, so make it return void to remove a warning.
24843 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24844 Corresponding prototype change.
24845 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24846 values, and cast the pointers as (void *) to remove a warning.
24847 (grub_mm_dump): Likewise.
24848 * conf/sparc64-ieee1275.mk: New file.
24849 * conf/sparc64-ieee1275.rmk: Likewise.
24850 * include/grub/sparc64/setjmp.h: Likewise.
24851 * include/grub/sparc64/types.h: Likewise.
24852 * include/grub/sparc64/ieee1275/console.h: Likewise.
24853 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24854 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24855 * include/grub/sparc64/ieee1275/time.h: Likewise.
24856 * kern/sparc64/cache.c: Likewise.
24857 * kern/sparc64/dl.c: Likewise.
24858 * kern/sparc64/ieee1275/init.c: Likewise.
24859 * kern/sparc64/ieee1275/openfw.c: Likewise.
24861 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24863 * util/console.c (grub_ncurses_putchar): If C is greater than
24864 0x7f, set C to a question mark.
24865 (grub_ncurses_getcharwidth): New function.
24866 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24869 * normal/menu.c (print_entry): Made aware of Unicode. First,
24870 convert TITLE to UCS-4, and predict the cursor position by
24873 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24875 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24877 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24879 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24880 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24883 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24884 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24885 grub_strcpy and grub_strlen. Take it into account that a space
24886 character is inserted as a delimiter.
24888 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24890 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24891 invalid magic in the error.
24893 * commands/search.c: New file.
24895 * util/grub-emu.c (main): Call grub_search_init and
24898 * kern/rescue.c (grub_rescue_print_disks): Removed.
24899 (grub_rescue_print_devices): New function.
24900 (grub_rescue_cmd_ls): Use grub_device_iterate with
24901 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24902 grub_rescue_print_disks.
24904 * kern/partition.c (grub_partition_iterate): Return the result of
24905 PARTMAP->ITERATE instead of GRUB_ERRNO.
24907 * kern/device.c: Include grub/partition.h.
24908 (grub_device_iterate): New function.
24910 * include/grub/partition.h (grub_partition_iterate): Return int
24911 instead of grub_err_t.
24913 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24915 [GRUB_UTIL] (grub_search_fini): Likewise.
24917 * include/grub/device.h (grub_device_iterate): New prototype.
24919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24921 (pkgdata_MODULES): Added search.mod.
24922 (search_mod_SOURCES): New variable.
24923 (search_mod_CFLAGS): Likewise.
24925 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24926 (pkgdata_MODULES): Added search.mod.
24927 (search_mod_SOURCES): New variable.
24928 (search_mod_CFLAGS): Likewise.
24930 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24931 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24932 All callers changed.
24934 * DISTLIST: Added commands/search.c.
24936 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24938 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24940 (grub_getcharwidth): New function.
24942 * kern/misc.c (grub_utf8_to_ucs4): New function.
24944 * include/grub/term.h (struct grub_term): Added a new member
24946 (grub_getcharwidth): New prototype.
24948 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24950 * term/i386/pc/console.c (map_char): New function. Segregated from
24951 grub_console_putchar.
24952 (grub_console_putchar): Use map_char.
24953 (grub_console_getcharwidth): New function.
24954 (grub_console_term): Specified grub_console_getcharwidth as
24957 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24958 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24960 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24962 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24963 on grub_strtoul completely.
24964 (write_char): Declare local variables in the beginning of the
24966 (grub_vesafb_getcharwidth): New function.
24967 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24970 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24972 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24973 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24974 commands/i386/pc/vbetest.c.
24976 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24977 call grub_vbe_get_controller_info again, because the returned
24978 information is volatile.
24979 (grub_vbe_set_video_mode): Mostly rewritten.
24980 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24981 grub_vbe_status_t correctly.
24982 (grub_vbe_get_video_mode_info): Likewise.
24983 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24984 several if statements.
24986 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24987 * commands/i386/pc/vbeinfo.c: ... this.
24989 * commands/i386/pc/vbe_test.c: Renamed to ...
24990 * commands/i386/pc/vbetest.c: ... this.
24992 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24994 (grub_cmd_vbeinfo): ... this. Save video modes before
24995 iterating. Skip a video mode, if it is not available, not enough
24996 information is given or it is monochrome. Show the memory
24997 model. Leave the interpretation of MODEVAR to grub_strtoul
24999 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25000 (GRUB_MOD_FINI): Likewise.
25002 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25003 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25004 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25005 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25006 grub_strtoul completely.
25007 (real2pm): Removed.
25008 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25009 (GRUB_MOD_FINI): Likewise.
25011 * normal/misc.c: Include grub/mm.h.
25013 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25014 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25015 (vbe_list_modes_mod_SOURCES): Removed.
25016 (vbe_list_modes_mod_CFLAGS): Likewise.
25017 (vbe_test_mod_SOURCES): Likewise.
25018 (vbe_test_mod_CFLAGS): Likewise.
25019 (vbeinfo_mod_SOURCES): New variable.
25020 (vbeinfo_mod_CFLAGS): Likewise.
25021 (vbetest_mod_SOURCES): Likewise.
25022 (vbetest_mod_CFLAGS): Likewise.
25024 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25026 * normal/misc.c: New file.
25028 * DISTLIST: Added normal/misc.c.
25030 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25031 DISK to HOOK. Call HOOK with DISK.
25032 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25033 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25034 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25036 * normal/menu_entry.c (struct screen): Added a new member
25037 "completion_shown".
25038 (completion_buffer): New global variable.
25039 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25040 (store_completion): New function.
25041 (complete): Likewise.
25042 (clear_completions): Likewise.
25043 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25044 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25045 a tab, call complete.
25047 * normal/completion.c (disk_dev): Removed.
25048 (print_simple_completion): Likewise.
25049 (print_partition_completion): Likewise.
25050 (print_func): New global variable.
25051 (add_completion): Do not take the arguments WHAT or PRINT any
25052 longer. Added a new argument TYPE. Instead of printing directly,
25053 call PRINT_FUNC if not NULL.
25054 All callers changed.
25055 (complete_device): Use a local variable DEV instead of
25056 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25057 (grub_normal_do_completion): Take a new argument HOOK. Do not
25058 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25059 empty string, return NULL instead.
25060 All callers changed.
25062 * normal/cmdline.c (print_completion): New function.
25064 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25066 All callers changed.
25068 * kern/disk.c (grub_print_partinfo): Removed.
25070 * include/grub/partition.h (struct grub_partition_map): Add a new
25071 argument DISK into HOOK of ITERATE.
25072 (grub_partition_iterate): Add a new argument DISK to HOOK.
25074 * include/grub/normal.h (enum grub_completion_type): New enum.
25075 (grub_completion_type_t): New type.
25076 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25077 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25078 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25079 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25080 (grub_normal_do_completion): Added a new argument HOOK.
25081 (grub_normal_print_device_info): New prototype.
25083 * include/grub/disk.h (grub_print_partinfo): Removed.
25085 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25086 (normal_mod_SOURCES): Likewise.
25087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25088 (normal_mod_SOURCES): Likewise.
25090 * commands/ls.c (grub_ls_list_disks): Use
25091 grub_normal_print_device_info instead of grub_print_partinfo. Free
25093 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25094 duplicating the code.
25096 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25098 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25099 follow GCS more precisely.
25100 * commands/i386/pc/vbe_test.c: Likewise.
25101 * include/grub/i386/pc/vbe.h: Likewise.
25102 * term/i386/pc/vesafb.c: Likewise.
25103 * video/i386/pc/vbe.c: Likewise.
25105 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25107 * DISTLIST: Added term/i386/pc/vesafb.c
25108 DISTLIST: Added video/i386/pc/vbe.c
25109 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25110 DISTLIST: Added commands/i386/pc/vbe_test.c.
25111 * commands/i386/pc/vbe_list_modes.c: New file.
25112 * commands/i386/pc/vbe_test.c: Likewise.
25113 * term/i386/pc/vesafb.c: Likewise.
25114 * video/i386/pc/vbe.c: Likewise.
25115 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25116 (grub_vbe_probe) Added prototype.
25117 (grub_vbe_set_video_mode) Likewise.
25118 (grub_vbe_get_video_mode) Likewise.
25119 (grub_vbe_get_video_mode_info) Likewise.
25120 (grub_vbe_set_pixel_rgb) Likewise.
25121 (grub_vbe_set_pixel_index) Likewise.
25122 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25123 (pkgdata_MODULES): Added vesafb.mod.
25124 (pkgdata_MODULES): Added vbe_list_modes.mod.
25125 (pkgdata_MODULES): Added vbe_test.mod.
25126 (vbe_mod_SOURCES): Added.
25127 (vbe_mod_CFLAGS): Likewise.
25128 (vesafb_mod_SOURCES): Likewise.
25129 (vesafb_mod_CFLAGS): Likewise.
25130 (vbe_list_modes_mod_SOURCES): Likewise.
25131 (vbe_list_modes_mod_CFLAGS): Likewise.
25132 (vbe_test_mod_SOURCES): Likewise.
25133 (vbe_test_mod_CFLAGS): Likewise.
25135 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25137 * normal/command.c (grub_command_execute): If INTERACTIVE is
25138 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25139 CMDLINE. Disable the pager if INTERACTIVE is true.
25140 All callers are changed.
25142 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25143 before reading a config file.
25144 * normal/main.c (read_config_file): Even if a command is not
25145 found, register it if it is within an entry.
25147 * util/grub-emu.c: Include sys/types.h and unistd.h.
25148 (options): Added --hold.
25149 (struct arguments): Added a new member "hold".
25150 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25152 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25153 cleared by a debugger, if it is not zero.
25155 * include/grub/normal.h (grub_command_execute): Add an argument
25158 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25160 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25162 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25164 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25165 program with another one, because the old one didn't detect a bug
25166 in gcc-3.4. Always use regparm 2, because the new test is still
25167 not enough for gcc-4.0. Someone must investigate a simple test
25168 case which detects a bug in gcc-4.0.
25170 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25172 * DISTLIST: Added normal/completion.c.
25174 * normal/completion.c: New file.
25176 * term/i386/pc/console.c (grub_console_getwh): New function.
25177 (grub_console_term): Assign grub_console_getwh to getwh.
25179 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25180 function is defined in normal/completion.c as
25181 grub_normal_do_completion.
25182 (grub_cmdline_get): Use grub_normal_do_completion instead of
25185 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25186 returns non-zero, otherwise return 0.
25187 (grub_partition_iterate): First, probe the partition map. Then,
25188 call ITERATE only for this partition map.
25190 * kern/misc.c (grub_strncmp): Rewritten.
25192 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25193 returns non-zero. Otherwise return 0.
25195 * include/grub/partition.h (grub_partition_map_iterate): Return
25196 int instead of void.
25198 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25200 * include/grub/misc.h (grub_strncmp): Change the type of N to
25203 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25206 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25207 unsigned explicitly before comparing it with I.
25209 * kern/main.c (grub_env_write_root): Add the attribute unused into
25212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25213 normal/completion.c.
25214 (normal_mod_SOURCES): Likewise.
25215 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25216 (normal_mod_SOURCES): Likewise.
25218 * normal/command.c (grub_iterate_commands): If ITERATE returns
25219 non-zero, return one immediately.
25221 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25223 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25224 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25226 (grub_vbe_get_controller_info): New function.
25227 (grub_vbe_get_mode_info): Likewise.
25228 (grub_vbe_set_mode): Likewise.
25229 (grub_vbe_get_mode): Likewise.
25230 (grub_vbe_set_memory_window): Likewise.
25231 (grub_vbe_get_memory_window): Likewise.
25232 (grub_vbe_set_scanline_length): Likewise.
25233 (grub_vbe_get_scanline_length): Likewise.
25234 (grub_vbe_set_display_start): Likewise.
25235 (grub_vbe_get_display_start): Likewise.
25236 (grub_vbe_set_palette_data): Likewise.
25237 * include/grub/i386/pc/vbe.h: New file.
25239 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25241 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25242 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25243 * DISTLIST: Likewise.
25244 * kern/ieee1275/of.c: Moved to ...
25245 * kern/ieee1275/ieee1275.c: ... here.
25247 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25249 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25250 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25251 Pass 0 as `end' parameter to grub_strtoul().
25253 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25255 * include/grub/powerpc/ieee1275/console.h: Do not include
25256 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25258 (grub_console_cur_color): Remove i386-specific prototype.
25259 (grub_console_real_putchar): Likewise.
25260 (grub_console_checkkey): Likewise.
25261 (grub_console_getkey): Likewise.
25262 (grub_console_getxy): Likewise.
25263 (grub_console_gotoxy): Likewise.
25264 (grub_console_cls): Likewise.
25265 (grub_console_setcursor): Likewise.
25266 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25267 Include <grub/machine/console.h>.
25268 * term/ieee1275/ofconsole.c: Likewise.
25270 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25272 * Makefile.in (LIBLZO): New variable.
25274 * configure.ac: Check for LZO version 2.
25276 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25277 lzo/lzo1x.h instead of lzo1x.h.
25279 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25282 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25283 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25285 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25286 copying the data from PARTITION to P.
25288 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25290 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25291 negative, unload the module.
25293 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25294 map is "pc_partition_map" but not "pc".
25295 (usage): Fix the description. The options are --boot-image and
25296 --core-image but not --boot-file or --core-file.
25297 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25298 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25301 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25302 --core-file. Specify INSTALL_DEVICE as an argument.
25304 * util/console.c: Include config.h.
25305 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25306 [HAVE_NCURSES_H]: Include ncurses.h.
25307 [HAVE_CURSES_H]: Include curses.h.
25308 [!A_NORMAL] (A_NORMAL): Defined as zero.
25309 [!A_STANDOUT] (A_STANDOUT): Likewise.
25311 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25313 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25315 * configure.ac: Check for curses libraries and headers.
25317 * Makefile.in (LIBCURSES): New variable.
25319 * genmk.rb (Script::rule): Set the executable bits.
25321 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25322 name of the PC partition map is "pc_partition_map" but not "pc".
25324 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25326 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25327 (modules): Likewise.
25328 (usage): Added descriptions for --modules and --grub-probefs.
25329 Handle --modules and --grub-probefs. Save the arguments in MODULES
25330 and GRUB_PROBEFS, respectively.
25331 Auto-detect a filesystem module against GRUBDIR. If the result is
25332 empty and modules are not specified explicitly, abort the
25333 installation. Add the result to MODULES.
25335 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25336 disk/powerpc/ieee1275/ofdisk.c,
25337 include/grub/powerpc/ieee1275/init.h and
25338 term/powerpc/ieee1275/ofconsole.c.
25339 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25340 term/ieee1275/ofconsole.c.
25342 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25344 * COPYING: Upgraded to the latest version. Only the address of the
25345 FSF office has changed.
25347 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25349 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25350 kern/ieee1275.c with kern/ieee1275/of.c.
25352 * kern/ieee1275.c: Moved to ...
25353 * kern/ieee1275/of.c: ... here.
25355 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25357 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25360 * config.guess: Updated to the latest version from gnulib.
25361 * config.sub: Likewise.
25362 * install.sh: Likewise.
25363 * mkinstalldirs: Likewise.
25365 * include/grub/console.h: Removed. This file is arch-specific. Do
25366 not put this in include/grub.
25368 * include/grub/i386/pc/console.h: Resurrected.
25370 * util/console.c: Include grub/machine/console.h instead of
25372 * util/grub-emu.c: Likewise.
25374 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25376 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25379 From Vincent Pelletier <subdino2004@yahoo.fr>
25380 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25381 Redefined to use grub_getwh.
25382 (grub_term): New member named getwh.
25383 (grub_getwh): New prototype.
25384 * kern/term.c (grub_getwh): New function.
25385 * term/i386/pc/console.c (grub_console_getwh): New function.
25386 (grub_console_term): New member `getwh'.
25387 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25388 (grub_vga_term): New member `getwh'.
25389 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25391 (grub_ofconsole_getw): New function.
25392 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25393 (grub_ofconsole_term): New field named getwh and new initial
25396 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25398 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25399 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25400 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25401 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25402 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25403 of <grub/machine/ieee1275.h>.
25404 * commands/ieee1275/reboot.c: Likewise.
25405 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25406 * kern/ieee1275.c: ... to here. All users updated. Change all
25407 parameter structs to use new type `grub_ieee1275_cell_t'.
25408 * term/powerpc/ieee1275/ofconsole.c: Move ...
25409 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25410 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25411 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25412 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25414 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25415 Remove unused prototypes. All users updated.
25416 * include/grub/powerpc/ieee1275/console.h: Removed.
25417 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25418 `grub_ieee1275_cell_t'.
25419 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25420 Cast comparisons with -1 to the correct type.
25421 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25422 type to match `grub_ieee1275_entry_fn'.
25424 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25426 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25428 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25429 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25431 (grub_probefs_SOURCES): New variable.
25433 * util/i386/pc/grub-probefs.c: New file.
25435 * util/i386/pc/grub-setup.c (main): Call
25436 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25437 grub_hfs_init and grub_jfs_init to initialize the system. Call
25438 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25439 grub_pc_partition_map_fini to finish the system.
25441 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25443 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25445 (grub_multiboot_load_elf32): Likewise.
25446 (grub_multiboot_is_elf64): Likewise.
25447 (grub_multiboot_load_elf64): Likewise.
25448 (grub_multiboot_load_elf): Likewise.
25449 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25450 an ELF32 or ELF64 file.
25451 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25453 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25454 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25455 NULL before calling FS->LABEL.
25456 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25457 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25458 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25459 before calling FS->LABEL.
25461 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25463 * util/i386/pc/grub-install.in (datadir): New variable.
25465 (pkgdatadir): New variable.
25466 (pkglibdir): Removed.
25468 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25470 * DISTLIST: Added util/i386/pc/grub-install.in.
25472 * util/i386/pc/grub-install.in: New file.
25474 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25475 (grub_install_SOURCES): Likewise.
25477 * genmk.rb: Added support for scripts.
25478 (Script): New class.
25479 (scripts): New variable.
25481 * Makefile.in (install-local): Install sbin_SCRIPTS by
25483 (uninstall): Remove sbin_SCRIPTS.
25485 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25486 device, try to get a GRUB device by
25487 grub_util_biosdisk_get_grub_dev.
25490 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25491 description for --device-map.
25493 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25495 Change the semantics of variable hooks. They now return strings
25496 instead of error values.
25498 * util/i386/pc/grub-setup.c: Include grub/env.h.
25499 (setup): Use grub_device_set_root instead of grub_env_set.
25501 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25502 grub_env_get instead of grub_device_set_root and
25503 grub_device_get_root, respectively.
25505 * kern/main.c (grub_env_write_root): New function.
25506 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25507 grub_env_set instead of grub_device_set_root.
25509 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25511 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25512 rather than calling ENV->WRITE_HOOK afterwards.
25513 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25514 passing a pointer of a pointer.
25515 (grub_register_variable_hook): Change the types of "read_hook" and
25516 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25518 Allocate the default empty string on the heap, because this string
25519 may be freed later.
25521 * kern/device.c: Include grub/env.h.
25522 (grub_device_set_root): Removed.
25523 (grub_device_get_root): Likewise.
25524 (grub_device_open): Use grub_env_get instead of
25525 grub_device_get_root.
25527 * include/grub/env.h (grub_env_read_hook_t): New type.
25528 (grub_env_write_hook_t): Likewise.
25529 (grub_env_var): Change the types of "read_hook" and "write_hook"
25530 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25531 (grub_register_variable_hook): Likewise.
25533 * include/grub/device.h (grub_device_set_root): Removed.
25534 (grub_device_set_root): Likewise.
25536 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25537 make sure that DIRNAME terminates with '/', so that
25538 grub_fat_find_dir will fail if PATH is not a directory.
25540 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25542 Use the qualifier auto for print_files and print_files_long.
25543 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25545 Put a newline only if there is no error.
25546 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25549 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25551 * kern/partition.c (grub_partition_probe): Initialize PART to
25552 NULL. Otherwise, when no partition map is registered, this returns
25555 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25557 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25558 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25561 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25563 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25564 information on each device, if it does not have partitions. Print
25565 "Device" instead of "Disk", because this function is not specific
25568 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25569 static to ensure that it is put on the memory rather than a
25572 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25574 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25575 (grub_cat_init): Likewise.
25576 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25577 (options): Likewise.
25578 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25579 (grub_configfile_init): Likewise.
25580 * font/manager.c (GRUB_MOD_INIT): Likewise.
25581 * commands/help.c (GRUB_MOD_INIT): Likewise.
25582 (grub_help_init): Likewise.
25583 * normal/command.c (grub_command_init): Likewise.
25584 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25585 * disk/loopback.c (grub_loop_init): Likewise.
25586 (GRUB_MOD_INIT): Likewise.
25587 * commands/ls.c (grub_ls_init): Likewise.
25588 (GRUB_MOD_INIT): Likewise.
25589 (options): Likewise.
25590 * commands/boot.c (grub_boot_init): Likewise.
25591 (GRUB_MOD_INIT): Likewise.
25592 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25593 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25594 (GRUB_MOD_INIT): Likewise.
25595 * commands/cmp.c (grub_cmp_init): Likewise.
25596 (GRUB_MOD_INIT): Likewise.
25598 * normal/arg.c: Use <> instead of "" to include header files.
25599 (SHORT_ARG_HELP): New macro.
25600 (SHORT_ARG_USAGE): Likewise.
25601 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25602 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25604 (find_short): Check if C is 'h' or 'u' explicitly.
25605 (grub_arg_show_help): Use space characters instead of tabs. Treat
25606 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25607 are shown with --help and --usage only if they are not used for
25608 the command itself.
25609 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25612 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25613 const into "longarg". Change the type of "shortarg" to int.
25615 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25617 * boot/i386/pc/boot.S (boot_drive_check): New label.
25619 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25622 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25623 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25625 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25627 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25628 When turning off Gate A20, skip the check and return immediately,
25629 because this is not fatal usually.
25631 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25633 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25634 be 0x7C00 instead of 0x8000.
25636 * boot/i386/pc/pxeboot.S: Rewritten.
25638 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25640 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25643 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25645 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25646 robustness. This routine now supports a BIOS call and System
25647 Control Port A to modify the gate A20.
25649 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25650 Increased to 0x440.
25652 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25654 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25655 device path and resulting ihandle.
25656 (grub_ofdisk_close): dprintf the ihandle being closed.
25657 (grub_ofdisk_read): dprintf function parameters.
25658 * kern/mm.c (grub_mm_init_region): Likewise.
25659 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25660 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25661 size, and boot arguments.
25662 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25663 before loading into memory.
25664 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25665 before loading into memory.
25667 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25669 * kern/mm.c: Added much documentation.
25670 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25671 8, set to 5 instead of 8.
25673 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25675 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25677 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25678 (grub_mkdevicemap_SOURCES): New variable.
25680 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25681 lib/device.c of GRUB Legacy.
25683 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25685 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25686 instead of PATH is NULL.
25688 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25690 * commands/cmp.c (BUFFER_SIZE): New macro.
25691 (grub_cmd_cmp): Close the right file at the right time. Compare
25692 only data just read. Don't report files of different size as
25693 identical. Dynamically allocate buffers. Move variable
25694 declarations at the beginning of function.
25696 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25698 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25701 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25703 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25704 when backspace is pressed at beginning of line.
25706 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25708 * DISTLIST: Added genfslist.sh.
25710 * normal/main.c (fs_module_list): New variable.
25711 (autoload_fs_module): New function.
25712 (read_fs_list): Likewise.
25713 (grub_normal_execute): Call read_fs_list.
25715 * kern/fs.c (grub_fs_autoload_hook): New variable.
25716 (grub_fs_probe): Added support for auto-loading.
25718 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25719 (grub_fs_module_list_t): New type.
25721 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25722 (grub_fs_autoload_hook): New prototype.
25724 * genfslist.sh: New file.
25726 * genmk.rb: Added a rule to generate a filesystem list.
25728 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25730 * configure.ac: Fix the test for cross-compiling.
25732 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25733 define GRUB_UTIL anymore.
25735 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25736 so this function works on other systems than just big endian.
25737 (load_modules): Likewise.
25738 (add_segments): Likewise.
25740 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25742 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25743 contains `l' modifier, get a long from va_arg().
25745 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25747 * kern/mm.c (grub_free): If the next free block which is being
25748 merged is the first free block, set the first block to the block
25750 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25752 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25754 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25755 `grub_ieee1275_chosen'.
25757 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25759 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25760 (grub_ieee1275_chosen): New variable.
25761 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25763 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25764 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25765 Rename first argument to `phandle' for consistency.
25766 (grub_ieee1275_get_property_length): Likewise.
25767 (grub_ieee1275_next_property): Likewise. Change type of first argument
25768 to grub_ieee1275_phandle_t.
25769 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25770 Move export next to declaration.
25771 (grub_ieee1275_chosen): New variable.
25772 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25773 Correct cosmetic typo.
25774 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25775 `grub_ieee1275_chosen'.
25776 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25777 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25778 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25779 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25780 `grub_ieee1275_chosen'.
25782 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25784 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25786 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25787 /chosen/bootargs as "variable=value" pairs.
25789 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25791 * include/grub/misc.h (grub_dprintf): New macro.
25792 (grub_real_dprintf): New prototype.
25793 (grub_strword): Likewise.
25794 (grub_iswordseparator): Likewise.
25795 * kern/misc.c (grub_real_dprintf): New function.
25796 (grub_strword): Likewise.
25797 (grub_iswordseparator): Likewise.
25799 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25801 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25802 (roundup): Remove macro.
25803 (grub_ieee1275_flags): Make static.
25804 (grub_ieee1275_realmode): Remove.
25805 (grub_ieee1275_test_flag): New function.
25806 (grub_ieee1275_set_flag): Likewise.
25807 (find_options): Rename to `grub_ieee1275_find_options'; update
25808 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25809 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25810 (cmain): New prototype.
25811 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25812 `grub_ieee1275_flags' directly.
25813 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25814 machine/biosdisk.h.
25815 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25816 Don't include grub/machine/init.h.
25817 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25818 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25820 (grub_ieee1275_realmode): Likewise.
25821 (grub_ieee1275_flag): New enum.
25822 (grub_ieee1275_test_flag): New prototype.
25823 (grub_ieee1275_set_flag): New prototype.
25824 * include/grub/powerpc/ieee1275/init.h: Remove file.
25825 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25826 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25827 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25828 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25830 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25831 `grub_ieee1275_test_flag'.
25832 (grub_ieee1275_encode_devname): Likewise.
25834 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25836 * include/grub/powerpc/ieee1275/ieee1275.h
25837 (grub_ieee1275_encode_devname): New prototype.
25838 (grub_ieee1275_get_filename): Likewise.
25839 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25841 (grub_set_prefix): Likewise.
25842 (grub_machine_init): Call grub_set_prefix.
25843 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25844 (grub_parse_type): New enum.
25845 (grub_ieee1275_get_devargs): New function.
25846 (grub_ieee1275_get_devname): Likewise.
25847 (grub_ieee1275_parse_args): Likewise.
25848 (grub_ieee1275_get_filename): Likewise.
25849 (grub_ieee1275_encode_devname): Likewise.
25851 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25853 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25854 `grub_loader_unset'.
25856 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25858 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25859 instead of grub_ieee1275_interpret.
25860 (grub_halt_init): New function.
25861 (grub_halt_fini): Likewise.
25862 (GRUB_MOD_INIT): Correct message grammar.
25863 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25864 instead of grub_ieee1275_interpret.
25865 (grub_reboot_init): New function.
25866 (grub_reboot_fini): Likewise.
25867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25868 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25869 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25870 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25871 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25873 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25875 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25877 (grub_halt): Likewise.
25878 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25879 (cmain): Remove __attribute__((unused)).
25880 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25881 (grub_heap_len): Likewise.
25882 (grub_machine_fini): New function.
25883 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25884 (grub_halt): Likewise.
25885 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25887 * util/powerpc/ieee1275/misc.c: New file.
25889 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25891 * DISTLIST: New file.
25892 * gendistlist.sh: Likewise.
25894 * Makefile.in (COMMON_DISTFILES): Removed.
25895 (BOOT_DISTFILES): Likewise.
25896 (CONF_DISTFILES): Likewise.
25897 (DISK_DISTFILES): Likewise.
25898 (FS_DISTFILES): Likewise.
25899 (INCLUDE_DISTFILES): Likewise.
25900 (KERN_DISTFILES): Likewise.
25901 (LOADER_DISTFILES): Likewise.
25902 (TERM_DISTFILES): Likewise.
25903 (UTIL_DISTFILES): Likewise.
25904 (DISTFILES): Likewise.
25905 (uninstall): Uninstall files in $(pkgdata_DATA).
25906 (DISTLIST): New target.
25907 (distdir): Use the contents of the file DISTLIST to get a list of
25910 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25912 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25913 descriptor. This is ported from GRUB Legacy.
25915 * gencmdlist.sh: Added an extra semicolon to make it work with
25916 old sed versions. Reported by Robert Bihlmeyer
25917 <robbe@orcus.priv.at>.
25919 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25921 Automatic loading of commands is supported.
25923 * normal/main.c (read_command_list): New function.
25924 (grub_normal_execute): Call read_command_list.
25926 * normal/command.c (grub_register_command): Return zero or CMD.
25927 Allocate CMD->NAME from the heap.
25928 Initialize CMD->MODULE_NAME to zero.
25929 Find the same name as well. If the same command is found and it is
25930 a dummy command, overwrite members. If it is not a dummy command,
25932 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25933 (grub_command_find): If a dummy command is found, load a module
25934 and retry to find a command only once.
25936 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25937 make sure that each command is loaded.
25939 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25941 (struct grub_command): Remove const from the member `name'.
25942 Add a new member `module_name'.
25943 (grub_register_command): Return grub_command_t.
25945 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25946 sure that each command is loaded.
25948 * genmk.rb (PModule::rule): Specify a module name without the
25949 suffix ".mod" to gencmdlist.sh.
25951 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25953 * gencmdlist.sh: New file.
25955 * genmk.rb (PModule::rule): Generate a rule for a command list.
25957 Generate command.lst from $(COMMANDFILES).
25959 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25960 (DATA): Added $(pkgdata_DATA).
25961 (install-local): Install files in $(pkgdata_DATA).
25963 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25965 * term/i386/pc/vga.c (debug_command): Removed.
25966 (GRUB_MOD_INIT): Do not register the command "debug".
25968 From Hollis Blanchard:
25969 * commands/configfile.c: New file.
25970 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25971 commands/configfile.c.
25972 (pkgdata_MODULES): Added configfile.mod.
25973 (configfile_mod_SOURCES): New variable.
25974 (configfile_mod_CFLAGS): Likewise.
25975 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25976 commands/configfile.c.
25977 (pkgdata_MODULES): Added configfile.mod.
25978 (configfile_mod_SOURCES): New variable.
25979 (configfile_mod_CFLAGS): Likewise.
25980 * util/grub-emu.c (main): Call grub_configfile_init and
25981 grub_configfile_fini.
25982 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25984 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25986 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25988 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25991 * commands/help.c (grub_cmd_help): Do not print newlines after
25992 the last command in print_command_help.
25994 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25996 * commands/default.h: New file.
25997 * commands/timeout.h: Likewise.
25998 * normal/context.c: Likewise.
26000 * util/misc.c: Do not include sys/times.h.
26001 Include sys/time.h and grub/machine/time.h.
26002 (grub_get_rtc): Rewritten with gettimeofday.
26004 * util/grub-emu.c (main): Call grub_default_init and
26005 grub_timeout_init before grub_normal_init, and call
26006 grub_timeout_fini and grub_default_fini after grub_main.
26008 * util/console.c (grub_ncurses_checkkey): Return the read
26011 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26014 * normal/main.c (read_config_file): Push MENU. If this fails,
26015 print an error and wait for a user input.
26016 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26017 If a menu is empty or an error occurs, pop MENU.
26018 (grub_normal_execute): Pop and free MENU after grub_menu_run
26021 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26023 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26025 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26027 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26029 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26032 * include/grub/normal.h (struct grub_menu_list): New struct.
26033 (grub_menu_list_t): New type.
26034 (struct grub_context): New struct.
26035 (grub_context_t): New type.
26036 (grub_register_command): Got rid of EXPORT_FUNC.
26037 (grub_unregister_command): Likewise.
26038 (grub_context_get): New prototype.
26039 (grub_context_get_current_menu): Likewise.
26040 (grub_context_push_menu): Likewise.
26041 (grub_context_pop_menu): Likewise.
26042 [GRUB_UTIL] (grub_default_init): Likewise.
26043 [GRUB_UTIL] (grub_default_fini): Likewise.
26044 [GRUB_UTIL] (grub_timeout_init): Likewise.
26045 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26047 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26048 commands/timeout.c and normal/context.c.
26049 (pkgdata_MODULES): Added default.mod and timeout.mod.
26050 (normal_mod_SOURCES): Added normal/context.c.
26051 (default_mod_SOURCES): New variable.
26052 (default_mod_CFLAGS): Likewise.
26053 (timeout_mod_SOURCES): Likewise.
26054 (timeout_mod_CFLAGS): Likewise.
26055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26057 (pkgdata_MODULES): Added default.mod and timeout.mod.
26058 (normal_mod_SOURCES): Added normal/context.c.
26059 (default_mod_SOURCES): New variable.
26060 (default_mod_CFLAGS): Likewise.
26061 (timeout_mod_SOURCES): Likewise.
26062 (timeout_mod_CFLAGS): Likewise.
26064 * Makefile.in (all-local): Added $(MKFILES).
26066 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26068 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26069 (grub_emu_SOURCES): Likewise.
26070 (pkgdata_MODULES): Add `sun.mod'.
26071 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26074 (pkgdata_MODULES): Add `sun.mod'.
26075 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26076 * include/grub/partition.h (grub_sun_partition_map_init): New
26078 (grub_sun_partition_map_fini): Likewise.
26079 * partmap/sun.c: New file.
26080 * util/grub-emu.c (main): Initialize and de-initialize the sun
26081 partitionmap support.
26083 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26085 This implements an Emacs-like menu entry editor.
26087 * normal/menu_entry.c: New file.
26089 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26090 characters to ASCII.
26091 (saved_char): New variable.
26092 (grub_ncurses_checkkey): Rewritten completely.
26093 (grub_ncurses_getkey): Likewise.
26094 (grub_ncurses_init): Call raw instead of cbreak.
26096 * normal/menu.c (print_entry): Do not put a space.
26097 (init_page): Renamed to ...
26098 (grub_menu_init_page): ... this. All callers changed.
26099 (edit_menu_entry): Removed.
26100 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26102 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26104 * kern/misc.c (grub_vprintf): Call grub_refresh.
26106 * normal/menu.c (DISP_LEFT): Renamed to ...
26107 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26108 * normal/menu.c (DISP_UP): Renamed to ...
26109 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26110 * normal/menu.c (DISP_RIGHT): Renamed to ...
26111 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26112 * normal/menu.c (DISP_DOWN): Renamed to ...
26113 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26114 * normal/menu.c (DISP_HLINE): Renamed to ...
26115 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26116 * normal/menu.c (DISP_VLINE): Renamed to ...
26117 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26118 * normal/menu.c (DISP_UL): Renamed to ...
26119 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26120 * normal/menu.c (DISP_UR): Renamed to ...
26121 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26122 * normal/menu.c (DISP_LL): Renamed to ...
26123 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26124 * normal/menu.c (DISP_LR): Renamed to ...
26125 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26126 * normal/menu.c (TERM_WIDTH): Renamed to ...
26127 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26128 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26129 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26130 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26131 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26132 * normal/menu.c (TERM_MARGIN): Renamed to ...
26133 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26134 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26135 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26136 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26137 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26138 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26139 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26140 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26141 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26142 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26143 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26144 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26145 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26146 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26147 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26148 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26149 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26150 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26151 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26152 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26153 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26154 All callers changed.
26156 * include/grub/normal.h: New prototype.
26158 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26159 normal/menu_entry.c.
26160 (normal_mod_SOURCES): Likewise.
26161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26162 (normal_mod_SOURCES): Likewise.
26164 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26166 * include/grub/normal.h (grub_halt_init): New prototype.
26167 (grub_halt_fini): Likewise.
26168 (grub_reboot_init): Likewise.
26169 (grub_reboot_fini): Likewise.
26171 * util/grub-emu.c: Include signal.h.
26172 (main_env): New global variable.
26173 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26175 (grub_machine_fini): New function.
26176 (main): Call grub_halt_init and grub_reboot_init before
26177 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26178 Call setjmp with MAIN_ENV to go back afterwards.
26179 Call grub_machine_fini right before return.
26181 * include/grub/util/misc.h: Include setjmp.h.
26182 (main_env): New prototype.
26184 * include/grub/kernel.h (grub_machine_fini): New prototype.
26185 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26186 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26188 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26189 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26190 * term/i386/pc/console.c (grub_console_fini): Likewise.
26192 * util/i386/pc/misc.c: New file.
26194 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26195 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26196 commands/i386/pc/reboot.c.
26198 2005-02-14 Guillem Jover <guillem@hadrons.org>
26200 * include/grub/dl.h (grub_dl_check_header): New prototype.
26201 (grub_arch_dl_check_header): Change return type to grub_err_t,
26202 remove size parameter and export function. Update all callers.
26203 * kern/dl.c (grub_dl_check_header): New function.
26204 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26205 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26206 are inside the core.
26207 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26208 independent ELF header checks.
26209 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26210 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26211 `grub_dl_check_header' instead of explicit checks. Check for the
26213 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26214 `grub_dl_check_header' instead of explicit checks. Remove arch
26215 specific ELF header checks.
26217 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26220 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26222 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26223 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26225 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26227 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26228 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26229 (part_map_iterate): Clear `grub_errno' and return 0 if
26230 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26231 * partmap/amiga.c (amiga_partition_map_iterate): Return
26232 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26233 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26235 2005-02-01 Guillem Jover <guillem@hadrons.org>
26237 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26240 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26242 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26244 (grub_rescue_cmd_linux): New prototype.
26245 (grub_rescue_cmd_initrd): Likewise.
26246 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26248 (grub_linux_release_mem): Release the memory for the initrd.
26249 (grub_load_linux): Renamed from this...
26250 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26251 Changed `entry' not to be static. Loop over memory regions to
26252 find another one when the default fails.
26253 (grub_rescue_cmd_initrd): New function.
26254 (grub_linux_init): Remove function.
26255 (grub_linux_fini): Likewise.
26256 (GRUB_MOD_INIT): Register `initrd'.
26257 (GRUB_MOD_FINI): Unregister `initrd'.
26258 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26260 (grub_linux_normal_fini): Likewise.
26261 (GRUB_MOD_INIT): Register `initrd'.
26262 (GRUB_MOD_FINI): Unregister `initrd'.
26264 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26266 * commands/help.c: New file.
26267 * normal/arg.c (show_help): Renamed to...
26268 (grub_arg_show_help): ... this.
26269 * commands/i386/pc/halt.c: New file.
26270 * commands/i386/pc/reboot.c: Likewise.
26271 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26272 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26273 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26274 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26276 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26278 (pkgdata_MODULES): Add `help.mod'.
26279 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26280 * grub/i386/pc/init.h (grub_reboot): New prototype.
26281 (grub_halt): Likewise.
26282 * include/grub/normal.h (grub_arg_show_help): New prototype.
26283 (grub_help_init): Likewise.
26284 (grub_help_fini): Likewise.
26285 * util/grub-emu.c (main): Initialize and deinitialize the help
26288 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26290 * normal/command.c (grub_command_init): Fixed the description of
26291 the `set' and `unset' commands.
26293 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26295 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26297 * commands/ieee1275/halt.c: New file.
26298 * commands/ieee1275/reboot.c: Likewise.
26299 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26300 `__attribute__ ((unused))'. Some GCS related fixed.
26301 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26302 (grub_suspend_fini): Likewise.
26303 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26305 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26306 (halt_mod_CFLAGS): New variables.
26307 * include/grub/powerpc/ieee1275/ieee1275.h
26308 (grub_ieee1275_interpret): New prototype.
26310 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26312 * include/grub/misc.h (memmove): New prototype.
26313 (memcpy): Likewise.
26315 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26317 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26318 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26320 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26322 * kern/misc.c (grub_strndup): Function rewritten.
26324 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26326 * normal/menu.c (TERM_WIDTH): Macro redefined.
26327 (TERM_TOP_BORDER_Y): Likewise.
26328 (draw_border): Replaced while-loop by a for-loop. Make the number
26329 of lines consistent with the number of lines displayed in
26330 print_entries. Added a margin below the rectangle.
26331 (print_entry): Make the entry fit in the rectangle.
26332 (print_entries): Display the scroll arrows next to the right
26335 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26337 * fs/minix.c (grub_minix_find_file): Reserve more space for
26338 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26339 `grub_strncpy' to copy `path' into it.
26341 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26343 Add the loopback device, a device via which files can be accessed
26346 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26347 (pkgdata_MODULES): Add loopback.mod.
26348 (loopback_mod_SOURCES): New variable.
26349 (loopback_mod_CFLAGS): Likewise.
26350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26352 (pkgdata_MODULES): Add loopback.mod.
26353 (loopback_mod_SOURCES): New variable.
26354 (loopback_mod_CFLAGS): Likewise.
26355 * disk/loopback.c: new file.
26356 * include/grub/normal.h (grub_loop_init): New prototype.
26357 (grub_loop_fini): New prototype.
26358 * util/grub-emu.c (main): Initialize and de-initialize loopback
26360 * include/grub/disk.h (grub_disk_dev_id): Add
26361 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26363 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26365 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26367 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26368 (suspend_mod_SOURCES): New variable.
26369 (suspend_mod_CFLAGS): Likewise.
26370 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26372 * commands/ieee1275/suspend.c: New file.
26374 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26376 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26377 ((unused))' to `__attribute__ ((used))'.
26378 (GRUB_MOD_FINI): Likewise.
26379 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26380 * genmk.rb (PModule): Assign space to common symbols when linking
26383 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26385 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26386 `unsigned' arguments to `grub_size_t'.
26387 (grub_malloc): Likewise.
26388 (grub_realloc): Likewise.
26389 (grub_memalign): Likewise.
26390 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26391 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26392 * util/misc.c (grub_malloc): Likewise.
26393 (grub_realloc): Likewise.
26394 * kern/mm.c (get_header_from_pointer): Change the casts to
26395 `unsigned' into a cast to `grub_size_t'.
26397 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26398 point to `currnode' when `currnode' is changed.
26400 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26401 Schottelius <nico-linux@schottelius.org>.
26403 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26405 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26406 (note_path): Remove variable.
26407 (GRUB_IEEE1275_NOTE_NAME): New macro.
26408 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26409 (grub_ieee1275_note_hdr): New structure.
26410 (grub_ieee1275_note_desc): Likewise.
26411 (grub_ieee1275_note): Likewise.
26412 (load_note): Remove `dir' argument. All callers updated. Remove
26413 `note_img' and `path'. Do not load a file from `note_path'.
26414 Initialize a struct grub_ieee1275_note and write that to `out'.
26415 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26417 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26419 * util/misc.c (grub_util_read_image): Revert last change. It
26420 called `grub_util_read_at', which seeks from the beginning of the
26423 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26425 * TODO: Add note about endianness in grub-mkimage.
26426 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26428 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26429 (grub_mkimage_SOURCES): New target.
26430 * include/grub/kernel.h (grub_start_addr): Remove variable.
26431 (grub_end_addr): Likewise.
26432 (grub_total_module_size): Likewise.
26433 (grub_kernel_image_size): Likewise.
26434 (GRUB_MODULE_MAGIC): New constant.
26435 (grub_module_info): New structure.
26436 (grub_arch_modules_addr): New prototype.
26437 (grub_get_end_addr): Remove prototype.
26438 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26439 * include/grub/powerpc/ieee1275/kernel.h: New file.
26440 * include/grub/util/misc.h (grub_util_get_fp_size): New
26442 (grub_util_read_at): Likewise.
26443 (grub_util_write_image_at): Likewise.
26444 * kern/main.c (grub_get_end_addr): Remove function.
26445 (grub_load_modules): Call grub_arch_modules_addr instead of using
26446 grub_end_addr. Look for a grub_module_info struct in memory. Use
26447 the grub_module_info fields instead of calling grub_get_end_addr
26448 as loop conditions. Move grub_add_unused_region code here.
26449 (grub_add_unused_region): Remove function.
26450 * kern/i386/pc/init.c: Include grub/cache.h.
26451 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26452 one call to add_mem_region.
26453 (grub_arch_modules_addr): New function.
26454 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26455 (grub_total_module_size): Likewise.
26456 Include grub/machine/kernel.h.
26457 (grub_arch_modules_addr): New function.
26458 * util/grub-emu.c (grub_end_addr): Remove variable.
26459 (grub_total_module_size): Likewise.
26460 (grub_arch_modules_addr): New function.
26461 * util/misc.c: Include unistd.h.
26462 (grub_util_get_fp_size): New function.
26463 (grub_util_read_at): Likewise.
26464 (grub_util_write_image_at): Likewise.
26465 (grub_util_read_image): Call grub_util_read_at.
26466 (grub_util_write_image): Call grub_util_write_image_at.
26467 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26468 additional memory in kernel_img for a struct grub_module_info.
26469 Fill in that grub_module_info.
26470 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26472 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26474 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26476 * include/grub/powerpc/ieee1275/ieee1275.h
26477 (grub_ieee1275_milliseconds): New prototype.
26478 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26480 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26481 grub_ieee1275_milliseconds.
26483 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26485 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26487 (find_options): New function.
26488 (cmain): Call find_options.
26489 * include/grub/powerpc/ieee1275/ieee1275.h
26490 (grub_ieee1275_realmode): New extern variable.
26491 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26492 grub_map if grub_ieee1275_realmode is false.
26494 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26496 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26497 lines are inserted and make it work like readline. Reported by
26498 Vincent Pelletier <subdino2004@yahoo.fr>.
26500 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26502 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26505 `kern/powerpc/cache.S'.
26507 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26509 * genmk.rb: Handle the `Program' class in the main loop. Written
26510 by Johan Rydberg <jrydberg@gnu.org>.
26511 (Program): New class.
26512 (programs): New variable.
26513 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26514 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26515 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26516 (help_arch): Function removed.
26517 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26518 `powerpc/libgcc.h' and `loader.h'.
26519 (pkgdata_PROGRAMS): New variable.
26520 (sbin_UTILITIES): Variable removed.
26521 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26522 (grubof_SOURCES): Variable re-defined so it only includes the
26523 core functionality.
26524 (grubof_CFLAGS): Remove `-DGRUBOF'.
26525 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26526 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26527 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26528 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26529 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26530 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26531 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26532 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26533 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26534 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26535 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26536 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26537 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26538 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26539 (pc_mod_CFLAGS): New variables.
26540 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26541 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26542 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26543 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26545 * include/grub/i386/pc/init.h (grub_os_area_addr)
26546 (rub_os_area_size): ... to here.
26547 * include/grub/powerpc/ieee1275/ieee1275.h
26548 (grub_ieee1275_entry_fn): Export symbol.
26549 * include/grub/powerpc/ieee1275/init.h: New file.
26550 * include/grub/powerpc/libgcc.h: Likewise.
26551 * include/grub/cache.h: Likewise.
26552 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26553 <hollis@penguinppc.org>.
26554 * kern/dl.c: Include <grub/cache.h>.
26555 (grub_dl_flush_cache): New function.
26556 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26558 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26559 (grub_console_init): Removed prototypes.
26560 (grub_machine_init): Don't initialize the modules anymore.
26561 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26563 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26564 Macro undef removed.
26565 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26566 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26567 relocation `R_PPC_REL32'. Return an error when the relocation is
26569 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26570 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26571 * util/misc.c (grub_arch_sync_caches): Likewise.
26573 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26575 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26576 `symlist.c', add `grubof_symlist.c'.
26577 (symlist.c): Variable removed.
26578 (grubof_HEADERS): Variable added.
26579 (grubof_symlist.c): New target.
26580 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26581 `kernel_img_HEADERS'.
26582 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26583 * kern/powerpc/dl.c: New file.
26584 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26586 (grub_arch_dl_relocate_symbols): Likewise.
26587 (grub_register_exported_symbols): Likewise.
26589 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26591 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26592 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26593 to fail instead. Reported by Vincent Pelletier
26594 <subdino2004@yahoo.fr>.
26596 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26597 it is not allocated. Reported by Vincent Pelletier
26598 <subdino2004@yahoo.fr>.
26600 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26601 output so the output looks better.
26603 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26605 Modulize the partition map support and add support for the amiga
26608 * commands/ls.c: Include <grub/partition.h> instead of
26609 <grub/machine/partition.h>.
26610 * kern/disk.c: Likewise.
26611 * kern/rescue.c: Likewise.
26612 * loader/i386/pc/chainloader.c: Likewise.
26613 * normal/cmdline.c: Likewise.
26614 * kern/powerpc/ieee1275/init.c: Likewise.
26615 (grub_machine_init): Call `grub_pc_partition_map_init',
26616 `grub_amiga_partition_map_init' and
26617 `grub_apple_partition_map_init'.
26618 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26619 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26620 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26621 `partition.h' and `pc_partition.h'.
26622 (grub_setup_SOURCES): Remove
26623 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26624 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26625 (grub_emu_SOURCES): Likewise.
26626 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26627 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26628 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26630 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26631 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26632 (grubof_SOURCES): Likewise.
26633 * disk/i386/pc/partition.c: File removed.
26634 * disk/powerpc/ieee1275/partition.c: Likewise.
26635 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26636 * include/grub/i386/pc/partition.h: Likewise.
26637 * kern/partition.c: New file.
26638 * partmap/amiga.c: Likewise.
26639 * partmap/apple.c: Likewise.
26640 * partmap/pc.c: Likewise.
26641 * include/grub/partition.h: Likewise..
26642 * include/grub/pc_partition.h: Likewise.
26643 * util/grub-emu.c: Include <grub/partition.h> instead of
26644 <grub/machine/partition.h>.
26645 (main): Call `grub_pc_partition_map_init',
26646 `grub_amiga_partition_map_init' and
26647 `grub_apple_partition_map_init' and deinitialize afterwards.
26648 * util/i386/pc/biosdisk.c: Include `#include
26649 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26650 `<grub/machine/partition.h>'.
26651 * util/i386/pc/grub-setup.c: Likewise.
26652 * util/i386/pc/biosdisk.c: Likewise.
26653 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26654 partition information in case of a PC partition.
26655 * util/i386/pc/grub-setup.c: Include `#include
26656 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26657 `<grub/machine/partition.h>'.
26658 (setup): Only access the PC specific partition information in case
26661 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26663 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26664 (grub_longjmp): Likewise.
26665 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26667 * normal/powerpc/setjmp.S: New file.
26668 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26669 `normal/powerpc/setjmp.S'.
26670 (grubof_CFLAGS): Add `-DGRUBOF'.
26671 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26672 [GRUB_UTIL && !GRUBOF].
26674 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26676 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26677 property named `name'. Correctly handle the error returned by
26678 `grub_ieee1275_finddevice' if a device can not be opened.
26680 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26682 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26683 `actual' for negativity.
26684 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26687 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26689 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26690 (PAGE_OFFSET): New macro.
26691 (CRTC_ADDR_PORT): Likewise.
26692 (CRTC_DATA_PORT): Likewise.
26693 (START_ADDR_HIGH_REGISTER): Likewise.
26694 (START_ADDR_LOW_REGISTER): Likewise.
26695 (GRAPHICS_ADDR_PORT): Likewise.
26696 (GRAPHICS_DATA_PORT): Likewise.
26697 (READ_MAP_REGISTER): Likewise.
26698 (INPUT_STATUS1_REGISTER): Likewise.
26699 (INPUT_STATUS1_VERTR_BIT): Likewise.
26700 (page): New variable.
26701 (wait_vretrace): New function.
26702 (set_read_map): Likewise.
26703 (set_start_address): Likewise.
26704 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26706 (check_vga_mem): Take the page into account.
26707 (write_char): Likewise.
26708 (write_cursor): Likewise.
26709 (scroll_up): Likewise. Copy the page to the page that is not
26710 shown and switch between both pages.
26711 (grub_vga_putchar): Fix off by one error.
26712 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26715 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26717 Add support for iso9660 (including rockridge).
26719 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26720 (iso9660_mod_SOURCES): New variable.
26721 (iso9660_mod_CFLAGS): Likewise.
26722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26723 * include/grub/fs.h (grub_iso9660_init): New prototype.
26724 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26725 * fs/iso9660.c: New file.
26727 * include/grub/misc.h (grub_strncat): New prototype.
26728 * kern/misc.c (grub_strncat): New function.
26730 * fs/hfs.c (grub_hfs_mount): Translate the error
26731 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26732 * fs/jfs.c (grub_jfs_mount): Likewise.
26733 * fs/ufs.c (grub_ufs_mount): Likewise.
26735 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26737 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26738 which initialized BAT registers.
26739 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26740 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26742 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26743 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26745 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26746 (grub_mapclaim): Likewise.
26747 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26748 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26751 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26753 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26754 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26755 -ffreestanding and -msoft-float.
26757 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26759 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26760 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26761 set in grub_ieee1275_flags.
26763 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26765 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26767 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26768 grub_console_init first.
26769 Change the memory range used for grub_ieee1275_claim and
26770 grub_mm_init_region.
26771 Print an error message if the claim fails.
26772 Include <grub/misc.h>.
26774 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26776 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26777 Call grub_children_iterate for device nodes of type `scsi',
26779 (grub_ofdisk_open): Remove manual device alias resolution.
26780 Fix memory leak when device cannot be opened.
26781 * include/grub/powerpc/ieee1275/ieee1275.h
26782 (grub_children_iterate): New prototype.
26783 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26785 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26786 Return -1 if args.size was -1.
26788 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26790 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26791 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26792 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26793 Open Firmware's memory for it; claim memory from _start to _end.
26794 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26795 (_end): New extern.
26796 (_start): Zero BSS from __bss_start to _end.
26797 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26799 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26801 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26803 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26804 -1 if args.base was -1.
26806 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26808 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26809 escape sequence instead of a literal ^L. Also call
26810 grub_ofconsole_gotoxy.
26812 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26814 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26815 void * arguments to grub_addr_t. All callers updated. Also make
26816 the `result' argument optional.
26817 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26818 All callers updated.
26820 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26822 * commands/ls.c (grub_ls_list_files): Use the string following the
26823 initial ')', if present, as the filesystem path.
26824 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26826 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26828 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26830 Make the source code of the menu interface more readable.
26832 * normal/menu.c: Include grub/mm.h.
26833 (TERM_WIDTH): New macro.
26834 (TERM_HEIGHT): Likewise.
26835 (TERM_INFO_HEIGHT): Likewise.
26836 (TERM_MARGIN): Likewise.
26837 (TERM_SCROLL_WIDTH): Likewise.
26838 (TERM_TOP_BORDER_Y): Likewise.
26839 (TERM_LEFT_BORDER_X): Likewise.
26840 (TERM_BORDER_WIDTH): Likewise.
26841 (TERM_MESSAGE_HEIGHT): Likewise.
26842 (TERM_BORDER_HEIGHT): Likewise.
26843 (TERM_NUM_ENTRIES): Likewise.
26844 (TERM_FIRST_ENTRY_Y): Likewise.
26845 (TERM_ENTRY_WIDTH): Likewise.
26846 (TERM_CURSOR_X): Likewise.
26847 (draw_border): Use macros instead of magic numbers.
26848 (print_entry): Likewise.
26849 (print_entries): Likewise.
26850 (run_menu): Likewise. Also, handle the key 'e'.
26851 (run_menu_entry): Ignore empty command lines.
26852 (print_message): Added a new argument EDIT. If EDIT is true,
26853 print a different message.
26854 (init_page): Likewise.
26855 (edit_menu_entry): New function. Not implemented yet.
26857 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26859 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26860 can be loaded from normal mode.
26862 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26864 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26865 (multiboot_mod_CFLAGS): New variables.
26866 * loader/i386/pc/linux_normal.c: New file.
26867 * loader/i386/pc/multiboot_normal.c: Likewise.
26869 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26870 attribute `unused'.
26872 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26873 `fdiro' to read the mode information from instead of `diro'.
26875 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26876 looking up a symlink.
26878 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26880 * normal/command.c (grub_command_execute): Don't parse the
26881 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26882 flags of the command.
26884 * normal/menu.c (grub_menu_run): Fix typo.
26886 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26888 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26890 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26891 `y + 1' instead of `y - 1'.
26893 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26895 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26897 From Hollis Blanchard <hollis@penguinppc.org>:
26898 * kern/misc.c (memmove): New alias for grub_memmove.
26899 (memcmp): New alias for grub_memcmp.
26900 (memset): New alias for grub_memset.
26901 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26902 Change "int handle" to "grub_ieee1275_phandle_t handle".
26903 * include/grub/powerpc/ieee1275/ieee1275.h
26904 (grub_ieee1275_get_property): Likewise.
26906 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26908 Added normal mode command `chainloader' as module chain.mod, which
26909 depends on normal.mod and _chain.mod.
26911 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26912 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26913 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26915 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26916 but arguments parsing moved to ...
26917 (grub_chainloader_cmd): ... here. New function.
26918 * include/grub/i386/pc/chainloader.h: New file.
26919 * loader/i386/pc/chainloader_normal.c: Likewise.
26921 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26923 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26924 (grub_mkimage_LDFLAGS): Likewise.
26925 (grub_emu_SOURCES): Likewise.
26926 (kernel_img_HEADERS): Added fshelp.h.
26927 * fs/ext2.c: Include <grub/fshelp.h>.
26928 (FILETYPE_REG): New macro.
26929 (FILETYPE_INO_REG): Likewise.
26930 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26932 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26934 (grub_fshelp_node): New struct.
26935 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26937 (grub_ext2_get_file_block): Removed function.
26938 (grub_ext2_read_block): New function.
26939 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26940 This function was written.
26941 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26942 (grub_ext2_find_file): Removed function.
26943 (grub_ext2_read_symlink): New function.
26944 (grub_ext2_iterate_dir): Likewise.
26945 (grub_ext2_open): Rewritten.
26946 (grub_ext2_dir): Rewritten.
26947 * include/grub/fshelp.h: New file.
26948 * fs/fshelp.c: Likewise.
26950 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26952 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26953 (print_message): Add a missing newline.
26954 (run_menu): Added timeout support.
26955 (run_menu_entry): New local function.
26956 (grub_menu_run): Added support for booting.
26958 * kern/loader.c (grub_loader_is_loaded): New function.
26960 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26961 (grub_get_rtc): Exported.
26963 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26964 (grub_get_rtc): Exported.
26966 * include/grub/normal.h (struct grub_command_list): Remove
26967 constant from the member `command'.
26969 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26971 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26973 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26975 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26977 Add support for the JFS filesystem.
26979 * fs/jfs.c: New file.
26980 * include/grub/fs.h (grub_jfs_init): New prototype.
26981 (grub_jfs_fini): New prototype.
26982 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26983 (grub_emu_SOURCES): Likewise.
26984 (pkgdata_MODULES): Add jfs.mod.
26985 (jfs_mod_SOURCES): New variable.
26986 (jfs_mod_CFLAGS): Likewise.
26987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26988 (grubof_SOURCES): Likewise.
26989 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26991 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26992 endian to the host endian.
26993 (grub_fat_utf16_to_utf8): Move function from there...
26994 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26995 the endianness of the source string anymore.
26996 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26998 2004-08-24 Marco Gerards <metgerards@student.han.nl>
27000 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27001 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27002 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27003 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
27005 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27006 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27007 for `node_found' and `it_dir'.
27008 (grub_hfs_dir): Add prototype for `dir_hook'.
27010 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27011 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27012 and `indir32' to silence a gcc warning.
27014 * include/grub/fs.h (grub_hfs_init): New prototype.
27015 (grub_hfs_fini): Likewise.
27018 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27020 Each disk device has its own id now. This is useful to make use
27021 of multiple disk devices.
27023 * include/grub/disk.h (grub_disk_dev_id): New enum.
27024 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27025 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27027 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27028 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27030 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27031 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27033 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27034 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27036 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27037 "id" which is used by the cache manager.
27039 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27042 2004-08-18 Marco Gerards <metgerards@student.han.nl>
27044 * fs/hfs.c: New file.
27045 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27046 (grub_emu_SOURCES): Likewise.
27047 (pkgdata_MODULES): Add hfs.mod.
27048 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27049 (grubof_SOURCES): Likewise.
27050 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27052 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27053 * kern/misc.c (grub_strncasecmp): Add function.
27055 2004-08-14 Marco Gerards <metgerards@student.han.nl>
27057 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27060 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27061 (grub_ext2_dir): In case the directory entry type is unknown, read
27064 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27066 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27067 grub_load_linux instead of grub_rescue_cmd_linux as second
27068 argument of grub_rescue_register_command.
27070 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27072 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27074 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27076 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27077 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27078 `loader/powerpc/ieee1275/linux.c',
27079 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27080 * include/grub/powerpc/ieee1275/ieee1275.h
27081 (grub_ieee1275_release): New prototype.
27082 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27083 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27084 normal, boot, linux and linux_normal.
27085 * loader/powerpc/ieee1275/linux.c: New file.
27086 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27088 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27090 * normal/arg.c (grub_arg_parse): Correct error handling after
27091 reallocating the argumentlist (check if `argl' is not null instead
27092 of checking if `args' is not null).
27093 * kern/mm.c (grub_realloc): Return the same pointer when using the
27094 same region, instead of returning the header address.
27096 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27098 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27099 one block instead of two when looking for the initial partition.
27100 (grub_partition_probe): Initialize the local variable `p' with 0.
27101 Use base 10 for the grub_strtoul call.
27102 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27103 need for one local variable.
27104 (grub_strtoul): Don't add the new value to `num', instead of that
27107 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27109 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27110 (pxeboot_img_SOURCES): New variable.
27111 (pxeboot_img_ASFLAGS): Likewise.
27112 (pxeboot_img_LDFLAGS): Likewise.
27113 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27114 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27115 <lode_leroy@hotmail.com>.
27117 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27119 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27120 there was no input.
27122 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27124 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27125 the history buffer logic.
27127 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27129 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27130 (FILETYPE_INO_SYMLINK): New macros.
27131 (grub_ext2_find_file): Check if the node is a directory using the
27132 inode stat information instead of using the filetype in the
27133 dirent. Exclude the first character of an absolute symlink.
27134 (grub_ext2_dir): Mask out the filetype part of the mode member of
27137 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27139 Add support for UFS version 1 and 2. Add support for the minix
27140 filesystem version 1 and 2, both the variants with 14 and 30 long
27143 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27145 (grub_emu_SOURCES): Likewise.
27146 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27147 (ufs_mod_SOURCES): New variable.
27148 (ufs_mod_CFLAGS): Likewise.
27149 (minix_mod_SOURCES): Likewise.
27150 (minix_mod_CFLAGS): Likewise.
27151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27153 (grubof_SOURCES): Likewise.
27154 * fs/ufs.c: New file.
27155 * fs/minix.c: New file.
27156 * include/grub/fs.h (grub_ufs_init): New prototype.
27157 (grub_ufs_fini): Likewise.
27158 (grub_minix_init): Likewise.
27159 (grub_minix_fini): Likewise.
27160 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27163 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27166 commands/ls.c, commands/terminal.c, commands/boot.c,
27167 commands/cmp.c and commands/cat.c.
27168 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27170 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27173 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27175 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27176 and grub_, respectively. Because the conversion is trivial and
27177 mechanical, I omit the details here. Please refer to the CVS
27178 if you need more information.
27180 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27182 * include/pupa: Renamed to ...
27183 * include/grub: ... this.
27184 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27185 * util/i386/pc/grub-mkimage.c: ... this.
27186 * util/i386/pc/pupa-setup.c: Renamed to ...
27187 * util/i386/pc/grub-setup.c: ... this.
27188 * util/pupa-emu.c: Renamed to ...
27189 * util/grub-emu.c: ... this.
27191 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27193 Add support for the newworld apple macintosh (PPC). This has been
27194 tested on the powerbook 2000 only. It only adds support for
27195 generic ieee1275 functions, console and disk support. This should
27196 be easy to port to other architectures with support for Open
27199 * configure.ac: Accept the powerpc as host_cpu. In the case of
27200 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27201 specific tests are only executed while building for the i386.
27202 Inverse test for crosscompile.
27203 * genmk.rb (Utility): Allow assembler files.
27204 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27205 * conf/powerpc-ieee1275.rmk: New file.
27206 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27207 * disk/powerpc/ieee1275/partition.c: Likewise.
27208 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27209 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27210 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27211 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27212 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27213 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27214 * include/pupa/powerpc/ieee1275/loader.h
27215 * include/pupa/powerpc/setjmp.h: Likewise.
27216 * include/pupa/powerpc/types.h: Likewise.
27217 * kern/powerpc/ieee1275/init.c: Likewise.
27218 * kern/powerpc/ieee1275/openfw.c: Likewise.
27219 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27221 These files were written by Johan Rydberg
27222 (jrydberg@night.trouble.net) and I only modified them slightly.
27224 * boot/powerpc/ieee1275/cmain.c: New file.
27225 * boot/powerpc/ieee1275/crt0.S: Likewise.
27226 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27227 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27229 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27231 * Makefile.in: Update copyright.
27232 * genmodsrc.sh: Likewise.
27233 * gensymlist.sh: Likewise.
27234 * term/i386/pc/vga.c: Indent correctly.
27236 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27237 bugreporting address.
27238 * util/i386/pc/pupa-setup.c (usage): Likewise,
27239 (main): Call pupa_ext2_init and pupa_ext2_fini.
27241 * fs/fat.c (log2): Renamed to ...
27242 (fat_log2): ... this.
27243 All callers changed.
27244 * kern/misc.c (memcpy): Alias to pupa_memmove.
27245 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27247 * util/console.c (pupa_ncurses_fini): Return 0.
27249 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27250 Move fail label here.
27251 [__GNU__]: Don't warn when using stat.
27252 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27253 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27254 long int. Use strtol instead of strtoul.
27256 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27258 * commands/boot.c: New file.
27259 * commands/cat.c: Likewise.
27260 * commands/cmp.c: Likewise.
27261 * commands/ls.c: Likewise.
27262 * commands/terminal.c: Likewise.
27263 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27264 (pupa_register_command): Changed interface to match the new
27266 (pupa_command_execute): Changed (almost rewritten) so it uses
27267 pupa_split_command. Added support for setting variables using the
27269 (rescue_command): Changed to work with the new argument parser.
27270 (terminal_command): Moved from here to commands/terminal.c.
27271 (set_command): New function.
27272 (unset_command): New function.
27273 (insmod_command): New function.
27274 (rmmod_command): New function.
27275 (lsmod_command): New function.
27276 (pupa_command_init): Don't initialize the command terminal
27277 anymore. Initialize the commands set, unset, insmod, rmmod and
27279 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27280 (kernel_img_HEADERS): Add arg.h and env.h.
27281 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27282 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27283 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27285 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27287 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27288 (boot_mod_SOURCES): New variable.
27289 (terminal_mod_SOURCES): Likewise.
27290 (ls_mod_SOURCES): Likewise.
27291 (cmp_mod_SOURCES): Likewise.
27292 (cat_mod_SOURCES): Likewise.
27294 * normal/arg.c: New file.
27295 * kern/env.c: Likewise.
27296 * include/pupa/arg.h: Likewise.
27297 * include/pupa/env.h: Likewise.
27298 * font/manager.c (font_command): Changed to match argument parsing
27300 (PUPA_MOD_INIT): Likewise.
27301 * hello/hello.c (pupa_cmd_hello): Likewise.
27302 (PUPA_MOD_INIT): Likewise.
27303 * include/pupa/disk.h: Include <pupa/device.h>.
27304 (pupa_print_partinfo): New prototype.
27305 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27306 (pupa_dl_get_prefix): Likewise.
27307 * include/pupa/misc.h: Include <pupa/err.h>.
27308 (pupa_isgraph): New prototype.
27309 (pupa_isdigit): Likewise.
27310 (pupa_split_cmdline): Likewise.
27311 * include/pupa/normal.h: Include <pupa/arg.h>.
27312 (pupa_command): Changed the prototype of the member `func' to
27313 match the argument parsing interface. Added member `options'.
27314 (pupa_register_command): Updated to match function.
27315 (pupa_arg_parse): New prototype.
27316 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27317 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27318 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27319 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27320 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27321 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27322 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27323 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27324 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27325 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27326 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27327 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27328 * kern/disk.c: Include <pupa/file.h>.
27329 (pupa_print_partinfo): New function.
27330 * kern/dl.c: Include <pupa/env.h>.
27331 (pupa_dl_dir): Variable removed.
27332 (pupa_dl_load): Use the environment variable `prefix' instead of
27333 the variable pupa_dl_dir.
27334 (pupa_dl_set_prefix): Function removed.
27335 (pupa_dl_get_prefix): Likewise.
27336 * kern/i386/pc/init.c: Include <pupa/env.h>.
27337 (pupa_machine_init): Use the environment variable `prefix' instead of
27338 using pupa_dl_set_prefix to set the prefix.
27339 * kern/main.c: Include <pupa/env.h>.
27340 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27341 using pupa_dl_get_prefix to get the prefix.
27342 * kern/misc.c: Include <pupa/env.h>.
27343 (pupa_isdigit): New function.
27344 (pupa_isgraph): Likewise.
27345 (pupa_ftoa): Likewise.
27346 (pupa_vsprintf): Added support for printing values of the type
27347 `double'. Make it possible to format variable output when using
27348 formatting like `%1.2%f'.
27349 (pupa_split_cmdline): New function.
27350 * kern/rescue.c: Include <pupa/env.h>.
27351 (next_word): Removed function.
27352 (pupa_rescue_cmd_prefix): Likewise.
27353 (pupa_rescue_cmd_set): New function.
27354 (pupa_rescue_cmd_unset): New function.
27355 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27356 split the command line instead of splitting it here. Added
27357 support for setting variables using the syntax `foo=bar'. Don't
27358 initialize the prefix command anymore. Initialized the set and
27360 * normal/cmdline.c: Include <pupa/env.h>.
27361 (pupa_tab_complete): Added prototypes for print_simple_completion,
27362 print_partition_completion, add_completion, iterate_commands,
27363 iterate_dev, iterate_part and iterate_dir. Moved code to print
27364 partition information from here to kern/disk.c.
27365 (pupa_cmdline_run): Don't check if the function exists anymore.
27366 * normal/main.c: Include <pupa/env.h>.
27367 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27368 instead of using pupa_dl_get_prefix to get the prefix.
27369 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27370 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27372 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27373 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27374 ((unused))' to silence a gcc warning.
27375 (pupa_vga_setcolor): Likewise.
27376 (debug_command): Changed to match argument parsing
27378 * util/pupa-emu.c: Include <pupa/env.h>.
27379 (options): Added 0's for unused fields to silence a gcc warning.
27381 (main): Use the environment variable `prefix' instead of using
27382 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27383 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27386 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27387 * util/misc.c: Include <malloc.h>.
27388 (pupa_malloc): Rewritten so errors are correctly reported.
27389 (pupa_realloc): Likewise.
27390 (pupa_memalign): Likewise.
27391 (pupa_mm_init_region): Declare unused variables with
27392 `__attribute__ ((unused))' to silence a gcc warning.
27393 * normal/i386/setjmp.S: Remove tab at the end of the file to
27394 silence a gcc warning.
27395 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27396 variables with `__attribute__ ((unused))' to silence a gcc
27398 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27399 local variable i unsigned to silence a gcc warning.
27401 * kern/term.c: Include <pupa/misc.h>.
27402 (pupa_more_lines): New variable.
27403 (pupa_more): Likewise.
27404 (pupa_putcode): When the pager is active pause at the end of every
27406 (pupa_set_more): New function.
27407 * include/pupa/term.h (pupa_set_more): New prototype.
27410 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27412 Now this project is GRUB 2 rather than PUPA. The location of
27413 the CVS repository was moved to GRUB's.
27415 * configure.ac: Use bug-grub as the reporting address.
27416 Use GRUB instead of PUPA.
27417 Change the version number to 1.90.
27419 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27421 * genkernsyms.sh: Updated copyright information.
27422 * genmk.rb: Likewise.
27423 * genmodsrc.sh: Likewise.
27424 * gensymlist.sh: Likewise.
27425 * boot/i386/pc/boot.S: Likewise.
27426 * boot/i386/pc/diskboot.S: Likewise.
27427 * disk/i386/pc/biosdisk.c: Likewise.
27428 * disk/i386/pc/partition.c: Likewise.
27429 * font/manager.c: Likewise.
27430 * fs/ext2.c: Likewise.
27431 * fs/fat.c: Likewise.
27432 * include/pupa/boot.h: Likewise.
27433 * include/pupa/device.h: Likewise.
27434 * include/pupa/disk.h: Likewise.
27435 * include/pupa/dl.h: Likewise.
27436 * include/pupa/elf.h: Likewise.
27437 * include/pupa/err.h: Likewise.
27438 * include/pupa/file.h: Likewise.
27439 * include/pupa/font.h: Likewise.
27440 * include/pupa/fs.h: Likewise.
27441 * include/pupa/kernel.h: Likewise.
27442 * include/pupa/loader.h: Likewise.
27443 * include/pupa/misc.h: Likewise.
27444 * include/pupa/mm.h: Likewise.
27445 * include/pupa/net.h: Likewise.
27446 * include/pupa/normal.h: Likewise.
27447 * include/pupa/rescue.h: Likewise.
27448 * include/pupa/setjmp.h: Likewise.
27449 * include/pupa/symbol.h: Likewise.
27450 * include/pupa/term.h: Likewise.
27451 * include/pupa/types.h: Likewise.
27452 * include/pupa/i386/setjmp.h: Likewise.
27453 * include/pupa/i386/types.h: Likewise.
27454 * include/pupa/i386/pc/biosdisk.h: Likewise.
27455 * include/pupa/i386/pc/boot.h: Likewise.
27456 * include/pupa/i386/pc/console.h: Likewise.
27457 * include/pupa/i386/pc/init.h: Likewise.
27458 * include/pupa/i386/pc/kernel.h: Likewise.
27459 * include/pupa/i386/pc/linux.h: Likewise.
27460 * include/pupa/i386/pc/loader.h: Likewise.
27461 * include/pupa/i386/pc/memory.h: Likewise.
27462 * include/pupa/i386/pc/multiboot.h: Likewise.
27463 * include/pupa/i386/pc/partition.h: Likewise.
27464 * include/pupa/i386/pc/time.h: Likewise.
27465 * include/pupa/i386/pc/vga.h: Likewise.
27466 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27467 * include/pupa/util/getroot.h: Likewise.
27468 * include/pupa/util/misc.h: Likewise.
27469 * include/pupa/util/resolve.h: Likewise.
27470 * kern/device.c: Likewise.
27471 * kern/disk.c: Likewise.
27472 * kern/dl.c: Likewise.
27473 * kern/err.c: Likewise.
27474 * kern/file.c: Likewise.
27475 * kern/fs.c: Likewise.
27476 * kern/loader.c: Likewise.
27477 * kern/main.c: Likewise.
27478 * kern/misc.c: Likewise.
27479 * kern/mm.c: Likewise.
27480 * kern/rescue.c: Likewise.
27481 * kern/term.c: Likewise.
27482 * kern/i386/dl.c: Likewise.
27483 * kern/i386/pc/init.c: Likewise.
27484 * kern/i386/pc/lzo1x.S: Likewise.
27485 * kern/i386/pc/startup.S: Likewise.
27486 * loader/i386/pc/chainloader.c: Likewise.
27487 * loader/i386/pc/linux.c: Likewise.
27488 * loader/i386/pc/multiboot.c: Likewise.
27489 * normal/cmdline.c: Likewise.
27490 * normal/command.c: Likewise.
27491 * normal/main.c: Likewise.
27492 * normal/menu.c: Likewise.
27493 * normal/i386/setjmp.S: Likewise.
27494 * term/i386/pc/console.c: Likewise.
27495 * term/i386/pc/vga.c: Likewise.
27496 * util/console.c: Likewise.
27497 * util/genmoddep.c: Likewise.
27498 * util/misc.c: Likewise.
27499 * util/pupa-emu.c: Likewise.
27500 * util/resolve.c: Likewise.
27501 * util/unifont2pff.rb: Likewise.
27502 * util/i386/pc/biosdisk.c: Likewise.
27503 * util/i386/pc/getroot.c: Likewise.
27504 * util/i386/pc/pupa-mkimage.c: Likewise.
27505 * util/i386/pc/pupa-setup.c: Likewise.
27507 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27509 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27510 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27511 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27512 reading and reset it after reading.
27513 (pupa_ext2_close): Return PUPA_ERR_NONE.
27515 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27517 (struct linux_kernel_header): Add kernel_version and
27519 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27520 pupa_file_read succeeds.
27521 (pupa_rescue_cmd_initrd): Implement.
27523 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27525 * fs/ext2.c (pupa_ext2_label): New function.
27526 (pupa_ext2_fs): Added label.
27527 * fs/fat.c (pupa_fat_label): New function.
27528 (pupa_fat_fs): Added label.
27529 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27531 * kern/misc.c (pupa_strndup): New function.
27532 * include/pupa/misc.h (pupa_strndup): New prototype.
27534 * include/pupa/normal.h: Include <pupa/err.h>.
27535 (pupa_set_history): New prototype.
27536 (pupa_iterate_commands): New prototype.
27537 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27538 <pupa/disk.h>, <pupa/file.h>.
27539 (hist_size): New variable.
27540 (hist_lines): Likewise.
27541 (hist_end): Likewise.
27542 (hist_used): Likewise.
27543 (pupa_set_history): New function.
27544 (pupa_history_get): Likewise.
27545 (pupa_history_add): Likewise.
27546 (pupa_history_replace): Likewise.
27547 (pupa_tab_complete): Likewise.
27548 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27549 completion shows partitionnames while completing partitions, this
27550 feature was suggested by Jeff Bailey.
27551 * normal/command.c (pupa_iterate_commands): New function.
27552 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27553 (pupa_normal_init): Initialize history buffer.
27554 (PUPA_MOD_INIT): Likewise.
27555 (pupa_normal_fini): Free the history buffer.
27556 (PUPA_MOD_FINI): Likewise.
27558 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27561 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27562 * configure.ac [i386]: Check for regparam bug.
27563 (NESTED_FUNC_ATTR) [! i386]: Defined.
27565 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27567 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27568 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27569 (pupa_emu_SOURCES): New variable.
27570 (pupa_emu_LDFLAGS): Likewise.
27571 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27572 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27573 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27574 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27575 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27576 (pupa_jmp_buf): New typedef.
27577 (pupa_setjmp) [PUPA_UTIL]: New macro.
27578 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27579 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27580 (pupa_refresh): New prototype.
27581 * include/pupa/util/getroot.h: New file.
27582 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27584 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27585 (pupa_rescue_cmd_cat): Likewise.
27586 (pupa_rescue_cmd_ls): Likewise.
27587 (pupa_rescue_cmd_testload): Likewise.
27588 (pupa_rescue_cmd_lsmod): Likewise.
27589 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27590 * normal/menu.c (run_menu): Likewise.
27591 * kern/term.c (pupa_cls): Likewise.
27592 (pupa_refresh): New function.
27593 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27594 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27595 * util/console.c: New file.
27597 * util/i386/pc/getroot.c: New file.
27598 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27599 (pupa_putchar): New function.
27600 (pupa_refresh): Likewise.
27601 (xgetcwd): Function moved to ...
27602 (strip_extra_slashes): Likewise.
27603 (get_prefix): Likewise.
27604 * util/i386/pc/getroot.c: ... here.
27605 (find_root_device): Function moved and renamed to...
27606 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27607 Changed all callers.
27608 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27610 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27611 Changed all callers.
27612 * util/misc.c (pupa_memalign): New function.
27613 (pupa_mm_init_region): Likewise.
27614 (pupa_register_exported_symbols): Likewise.
27615 (pupa_putchar): Function removed.
27616 * util/pupa-emu.c: New file.
27618 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27620 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27621 (_multiboot_mod_SOURCES): New variable.
27622 (_multiboot_mod_CFLAGS): Likewise.
27623 * loader/i386/pc/multiboot.c: New file.
27624 * include/pupa/i386/pc/multiboot.h: Likewise.
27625 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27626 (pupa_multiboot_real_boot): New function.
27627 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27628 (pupa_multiboot_real_boot): New prototype.
27629 (pupa_rescue_cmd_multiboot): Likewise
27630 (pupa_rescue_cmd_module): Likewise.
27632 * kern/loader.c (pupa_loader_set): Continue when
27633 pupa_loader_unload_func() fails.
27634 (pupa_loader_unset): New function.
27635 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27637 * kern/misc.c (pupa_stpcpy): New function.
27638 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27640 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27642 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27643 for available extensions.
27645 * include/pupa/i386/pc/time.h: New file.
27646 * kern/disk.c: Include <pupa/machine/time.h>.
27647 (PUPA_CACHE_TIMEOUT): New macro.
27648 (pupa_last_time): New variable.
27649 (pupa_disk_open): Flush the cache when there was a timeout.
27650 (pupa_disk_close): Reset the timer.
27651 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27653 * util/misc.c: Include <sys/times.h>
27654 (pupa_get_rtc): New function.
27656 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27658 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27660 (pupa_ext2_get_file_block): Use blocks member.
27662 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27663 first block. Return -1 instead of pupa_errno on error.
27665 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27667 * README: In the pupa-mkimage example use _chain instead of chain
27668 and ext2 instead of fat.
27669 * TODO: Replace ext2fs with jfs as an example. Add an item for
27670 adding journal playback for ext2fs.
27671 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27672 (pkgdata_MODULES): Added ext2.mod.
27673 (ext2_mod_SOURCES): New variable.
27674 (ext2_mod_CFLAGS): Likewise.
27675 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27676 * include/pupa/misc.h (pupa_strncpy): New prototype.
27677 (pupa_strcat): Likewise.
27678 (pupa_strncmp): Likewise.
27679 * kern/misc.c (pupa_strcat): Enable function.
27680 (pupa_strncpy): New function.
27681 (pupa_strncmp): Likewise.
27682 * fs/ext2.c: New file.
27684 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27685 when the read failed before retrying.
27686 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27687 (_FILE_OFFSET_BITS): Likewise.
27688 * configure.ac: Added AC_SYS_LARGEFILE.
27690 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27692 * genmk.rb (PModule#rule): Make sure to get only symbol names
27693 from the output of nm.
27694 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27696 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27698 I forgot to check in these changes for a long time. This adds
27699 incomplete support for VGA console, and this is still very
27700 buggy. Also, a lot of consideration is required for I18N,
27701 UNICODE, and VGA font issues. Therefore, assume that this is
27702 such that "better than nothing".
27704 * font/manager.c: New file.
27705 * include/pupa/font.h: Likewise.
27706 * include/pupa/i386/pc/vga.h: Likewise.
27707 * term/i386/pc/vga.c: Likewise.
27708 * util/unifont2pff.rb: Likewise.
27710 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27711 (pkgdata_MODULES): Added vga.mod and font.mod.
27712 (vga_mod_SOURCES): New variables.
27713 (vga_mod_CFLAGS): Likewise.
27714 (font_mod_SOURCES): Likewise.
27715 (font_mod_CFLAGS): Likewise.
27717 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27719 * include/pupa/term.h: Include pupa/err.h.
27720 (struct pupa_term): Added init and fini.
27721 Changed the argument of putchar to pupa_uint32_t.
27723 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27724 (pupa_console_real_putchar): New prototype.
27725 (pupa_console_putchar): Removed.
27726 (pupa_console_checkkey): Exported.
27727 (pupa_console_getkey): Likewise.
27729 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27732 * kern/term.c (pupa_term_set_current): Rewritten.
27733 (pupa_putchar): Likewise.
27734 (pupa_putcode): New function.
27736 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27737 (pupa_console_real_putchar): ... this.
27738 (pupa_vga_set_mode): New function.
27739 (pupa_vga_get_font): Likewise.
27741 * normal/command.c: Include pupa/term.h.
27742 (terminal_command): New function.
27743 (pupa_command_init): Register the command "terminal".
27745 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27746 (DISP_UP): Likewise.
27747 (DISP_RIGHT): Likewise.
27748 (DISP_DOWN): Likewise.
27749 (DISP_HLINE): Likewise.
27750 (DISP_VLINE): Likewise.
27751 (DISP_UL): Likewise.
27752 (DISP_UR): Likewise.
27753 (DISP_LL): Likewise.
27754 (DISP_LR): Likewise.
27756 * term/i386/pc/console.c (pupa_console_putchar): New function.
27758 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27760 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27761 FIX. Reverse the path_list.
27763 * include/pupa/normal.h: Export pupa_register_command and
27764 pupa_unregister_command.
27766 * hello/hello.c (pupa_cmd_hello): New module.
27767 * conf/i386-pc.rmk: Added hello.mod.
27769 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27771 * kern/i386/pc/lzo1x.S: New file.
27773 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27774 (compress_kernel): New variable.
27775 (generate_image): Heavily modified to support compressing a
27776 large part of the core image.
27778 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27780 (pupa_util_load_image): New function.
27782 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27783 (pupa_compressed_size): New variable.
27784 (codestart): Enable Gate A20 here.
27785 Decompress the compressed part of the core image.
27786 Rearrange the code to put functions and variables which are
27787 required for initialization in the non-compressed part.
27790 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27793 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27795 * include/pupa/i386/pc/kernel.h
27796 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27797 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27798 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27799 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27800 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27802 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27804 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27805 (Utility#rule): Likewise.
27807 * configure.ac: Check if LZO is available.
27809 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27811 * include/pupa/normal.h: New file.
27812 * include/pupa/setjmp.h: Likewise.
27813 * include/pupa/i386/setjmp.h: Likewise.
27814 * normal/cmdline.c: Likewise.
27815 * normal/command.c: Likewise.
27816 * normal/main.c: Likewise.
27817 * normal/menu.c: Likewise.
27818 * normal/i386/setjmp.S: Likewise.
27820 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27821 (pupa_rescue_cmd_initrd): Likewise.
27823 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27826 * kern/i386/pc/startup.S (translation_table): New variable.
27827 (translate_keycode): New function.
27828 (pupa_console_getkey): Call translate_keycode.
27830 * kern/rescue.c (attempt_normal_mode): New function.
27831 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27832 it failed, print a message.
27834 * kern/mm.c (pupa_real_malloc): Print more information when a
27835 free magic is broken.
27836 (pupa_free): If the first free header is not free actually, set
27839 * kern/main.c (pupa_load_normal_mode): Just load the module
27841 (pupa_main): Don't print the message
27842 "Entering into rescue mode..." here.
27844 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27846 (pupa_rescue_cmd_initrd): Likewise.
27847 (pupa_rescue_cmd_initrd): Likewise.
27849 * include/pupa/symbol.h (FUNCTION): Specify the type.
27850 (VARIABLE): Likewise.
27852 * include/pupa/err.h (pupa_err_t): Added
27853 PUPA_ERR_UNKNOWN_COMMAND.
27855 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27856 (pupa_dl_get_prefix): Likewise.
27858 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27859 Added _chain.mod and _linux.mod instead of chain.mod and
27861 (chain_mod_SOURCES): Renamed to ...
27862 (_chain_mod_SOURCES): ... this.
27863 (chain_mod_CFLAGS): Renamed to ...
27864 (_chain_mod_CFLAGS): ... this.
27865 (linux_mod_SOURCES): Renamed to ...
27866 (_linux_mod_SOURCES): ... this.
27867 (linux_mod_CFLAGS): Renamed to ...
27868 (_linux_mod_CFLAGS): ... this.
27869 (normal_mod_SOURCES): New variable.
27870 (normal_mod_CFLAGS): Likewise.
27871 (normal_mod_ASFLAGS): Likewise.
27873 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27875 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27878 * kern/dl.c (pupa_dl_ref): Refer depending modules
27880 (pupa_dl_unref): Unrefer depending modules recursively.
27881 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27882 a module is unloaded before one depending on that module is
27884 (pupa_dl_unload): Unload depending modules explicitly,
27887 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27889 * include/pupa/i386/pc/linux.h: New file.
27890 * loader/i386/pc/linux.c: Likewise.
27892 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27894 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27895 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27896 of PUPA_CHAINLOADER_BOOT_SECTOR.
27898 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27899 (pupa_linux_prot_size): New variable.
27900 (pupa_linux_tmp_addr): Likewise.
27901 (pupa_linux_real_addr): Likewise.
27902 (pupa_linux_boot_zimage): New function.
27903 (pupa_linux_boot_bzimage): Likewise.
27905 * kern/i386/pc/init.c (struct mem_region): New structure.
27906 (MAX_REGIONS): New macro.
27907 (mem_regions): New variable.
27908 (num_regions): Likewise.
27909 (pupa_os_area_addr): Likewise.
27910 (pupa_os_area_size): Likewise.
27911 (pupa_lower_mem): Likewise.
27912 (pupa_upper_mem): Likewise.
27913 (add_mem_region): New function.
27914 (compact_mem_regions): Likewise.
27915 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27916 the size of the conventional memory and that of so-called upper
27917 memory (before the first memory hole).
27918 Instead of adding each found region to free memory, use
27919 add_mem_region and add them after removing overlaps.
27920 Also, add only 1/4 of the upper memory to free memory. The rest
27921 is used for loading OS images. Maybe this is ad hoc, but this
27922 makes it much easier to relocate OS images when booting.
27924 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27925 (pupa_enter_rescue_mode): Don't register initrd and module.
27927 * kern/mm.c: Include pupa/dl.h.
27929 * kern/main.c: Include pupa/file.h and pupa/device.h.
27931 * kern/loader.c (pupa_loader_load_module_func): Removed.
27932 (pupa_loader_load_module): Likewise.
27934 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27937 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27938 (pupa_linux_tmp_addr): Likewise.
27939 (pupa_linux_real_addr): Likewise.
27940 (pupa_linux_boot_zimage): Likewise.
27941 (pupa_linux_boot_bzimage): Likewise.
27943 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27944 (pupa_upper_mem): Likewise.
27945 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27946 module is too dangerous.
27948 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27949 (pupa_os_area_size): Likewise.
27950 (pupa_loader_set): Remove the first argument. Loader doesn't
27951 manage modules or initrd any longer.
27952 (pupa_loader_load_module): Removed.
27954 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27955 (linux_mod_SOURCES): New variable.
27956 (linux_mod_CFLAGS): Likewise.
27958 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27960 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27961 the length of a blocklist correctly.
27963 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27964 Use ioctl only if the OS file is a block device.
27965 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27966 not very useful for normal files.
27968 * kern/main.c (pupa_set_root_dev): New function.
27969 (pupa_load_normal_mode): Likewise.
27970 (pupa_main): Call those above.
27972 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27975 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27977 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27979 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27980 (setup): Configure the installed partition information and the
27983 * loader/i386/pc/chainloader.c (my_mod): New variable.
27984 (pupa_chainloader_unload): New function.
27985 (pupa_rescue_cmd_chainloader): Refer itself.
27986 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27988 * kern/i386/pc/startup.S (install_partition): Removed.
27989 (version_string): Likewise.
27990 (config_file): Likewise.
27991 (pupa_install_dos_part): New variable.
27992 (pupa_install_bsd_part): Likewise.
27993 (pupa_prefix): Likewise.
27994 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27996 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27998 (make_install_device): New function.
27999 (pupa_machine_init): Set the dl prefix.
28001 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28002 (buf): Renamed to ...
28003 (linebuf): ... this.
28004 (pupa_rescue_cmd_prefix): New function.
28005 (pupa_rescue_cmd_insmod): Likewise.
28006 (pupa_rescue_cmd_rmmod): Likewise.
28007 (pupa_rescue_cmd_lsmod): Likewise.
28008 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28011 * kern/mm.c (pupa_memalign): If failed even after invalidating
28012 disk caches, unload unneeded modules and retry.
28014 * kern/misc.c (pupa_memmove): New function.
28015 (pupa_memcpy): Removed.
28016 (pupa_strcpy): New function.
28017 (pupa_itoa): Made static.
28019 * kern/dl.c (pupa_dl_iterate): New function.
28020 (pupa_dl_ref): Likewise.
28021 (pupa_dl_unref): Likewise.
28022 (pupa_dl_unload): Return if succeeded or not.
28023 (pupa_dl_unload_unneeded): New function.
28024 (pupa_dl_unload_all): Likewise.
28025 (pupa_dl_init): Renamed to ...
28026 (pupa_dl_set_prefix): ... this.
28027 (pupa_dl_get_prefix): New function.
28029 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28030 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28031 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28032 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28033 (pupa_install_dos_part): Declared.
28034 (pupa_install_bsd_part): Likewise.
28035 (pupa_prefix): Likewise.
28036 (pupa_boot_drive): Likewise.
28038 * include/pupa/types.h: Fix a typo.
28040 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28042 (pupa_memmove): Declared.
28043 (pupa_strcpy): Likewise.
28045 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28046 pupa_mod_init takes one argument, its own module.
28047 (pupa_dl_unload_unneeded): Declared.
28048 (pupa_dl_unload_all): Likewise.
28049 (pupa_dl_ref): Likewise.
28050 (pupa_dl_unref): Likewise.
28051 (pupa_dl_iterate): Likewise.
28052 (pupa_dl_init): Renamed to ...
28053 (pupa_dl_set_prefix): ... this.
28054 (pupa_dl_get_prefix): Declared.
28056 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
28057 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
28059 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28060 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28062 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28063 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28065 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28067 * util/i386/pc/pupa-setup.c (setup): Define the internal
28068 function find_first_partition_start at the top level, because GCC
28069 3.0.x cannot compile internal functions in deeper scopes
28071 (find_root_device): Use lstat instead of stat.
28072 Don't follow symbolic links.
28073 Fix the path-constructing code.
28075 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28076 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28077 by a BLKGETSIZE ioctl first, because block devices don't fill
28078 the member st_mode of the structure stat on Linux.
28079 [__linux__] (linux_find_partition): Use a temporary buffer
28080 REAL_DEV for the working space. Copy it to DEV before returning.
28081 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28082 buffer cache consistent.
28083 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28084 strncmp. The previous value was merely wrong.
28085 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28087 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28088 FAT size is 12. The previous value was merely wrong.
28090 * kern/main.c (pupa_main): Don't split the starting message from
28093 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28094 LF, because BIOS goes crazy about character attributes in this
28097 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28099 * include/i386/pc/util/biosdisk.h: New file.
28100 * util/i386/pc/biosdisk.c: Likewise.
28101 * util/i386/pc/pupa-setup.c: Likewise.
28103 * Makefile.in (INCLUDE_DISTFILES): Added
28104 include/pupa/i386/pc/util/biosdisk.h.
28105 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28106 directory util/i386/pc.
28107 (install-local): Added a rule for sbin_UTILITIES.
28108 (uninstall): Likewise.
28110 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28112 * util/misc.c (xrealloc): New function.
28113 (pupa_malloc): Likewise.
28114 (pupa_free): Likewise.
28115 (pupa_realloc): Likewise.
28116 (pupa_stop): Likewise.
28117 (pupa_putchar): Likewise.
28119 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28121 * include/pupa/util/misc.h (xrealloc): Declared.
28123 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28125 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28126 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28128 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28129 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28131 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28132 way should be implemented.
28133 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28135 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28136 the size of NAME for safety.
28137 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28140 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28141 (pupa_setup_SOURCES): Likewise.
28143 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28145 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28147 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28148 bunch of pushl's from pusha, because this destroys the return
28151 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28153 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28154 This means that any missing prototypes could be fatal. Also, you
28155 must take care when writing assembly code. See the comments at
28156 the beginning of startup.S, for more details.
28158 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28159 compilation mechanism.
28160 (pupa_chainloader_real_boot): Likewise.
28161 (pupa_biosdisk_rw_int13_extensions): Likewise.
28162 (pupa_biosdisk_rw_standard): Likewise.
28163 (pupa_biosdisk_check_int13_extensions): Likewise.
28164 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28165 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28166 (pupa_get_memsize): Likewise.
28167 (pupa_get_mmap_entry): Likewise.
28168 (pupa_console_putchar): Likewise.
28169 (pupa_console_setcursor): Likewise.
28170 (pupa_getrtsecs): Use pushl instead of push.
28172 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28173 memory instead of the stack for a mmap entry, because some
28174 BIOSes may ignore the maximum size and overflow.
28176 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28178 * genmk.rb (PModule#rule): Compile automatically generated
28179 sources with module-specific CFLAGS as well as other sources.
28181 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28183 * configure.ac: Check ld.
28184 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28185 respectively, before checking endianness and sizes.
28187 * Makefile.in (LD): New variable.
28189 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28191 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28193 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28195 * Changelog: New file.