1 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
3 * include/grub/misc.h (grub_reboot): Declare as noreturn.
4 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
7 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
9 (grub_halt): Don't return, even if all of shut-down, power-off, and
12 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
14 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
17 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21 LVM-on-RAID is handled correctly.
23 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
25 * docs/grub.texi (Changes from GRUB Legacy): New section.
28 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
30 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
31 grub.d/README accidentally ends up executable for one reason or
34 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
36 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
37 (gpt_partition_map_iterate): Support non-512B sectors.
39 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
41 * kern/efi/init.c (grub_efi_init): Disable watchdog.
42 Tested by: Seth Goldberg.
44 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
46 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
48 Reported by: Seth Goldberg.
50 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
52 * util/grub-mkrescue.in: Avoid module duplication.
54 2010-07-01 Sean Finney <seanius@seanius.net>
56 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
58 2010-07-01 Sean Finney <seanius@seanius.net>
60 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
62 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
64 * disk/lvm.c (grub_lvm_checkvalue): New function.
65 (grub_lvm_check_flag): Likewise.
67 2010-07-01 Robert Millan <rmh@gnu.org>
69 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
70 Support 'p' as partition separator on kernel of FreeBSD (used
72 (grub_util_biosdisk_get_grub_dev): Likewise.
74 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
76 Yeeloong firmware port.
78 * boot/mips/yeeloong/fwstart.S: New file.
79 * bus/cs5536.c (gpiodump): New const.
80 (set_io_space): New function.
83 (grub_cs5536_init_geode): Likewise.
84 * commands/mips/yeeloong/lsspd.c: New file.
85 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
86 (serial_mod_SOURCES): New variable.
87 (serial_mod_CFLAGS): Likewise.
88 (serial_mod_LDFLAGS): Likewise.
89 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
90 term/terminfo.c and term/tparm.c.
91 (pkglib_IMAGES): Add fwstart.img.
92 (fwstart_img_SOURCES): New variable.
93 (fwstart_img_CFLAGS): Likewise.
94 (fwstart_img_ASFLAGS): Likewise.
95 (fwstart_img_LDFLAGS): Likewise.
96 (fwstart_img_FORMAT): Likewise.
97 (pkglib_MODULES): Add lsspd.mod.
98 (lsspd_mod_SOURCES): New variable.
99 (lsspd_mod_CFLAGS): Likewise.
100 (lsspd_mod_LDFLAGS): Likewise.
101 (pkglib_MODULES): Add halt.mod.
102 (halt_mod_SOURCES): New variable.
103 (halt_mod_CFLAGS): Likewise.
104 (halt_mod_LDFLAGS): Likewise.
105 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
106 (serial_mod_SOURCES): Removed.
107 (serial_mod_CFLAGS): Likewise.
108 (serial_mod_LDFLAGS): Likewise.
109 * disk/ata.c (check_device): New function.
110 (grub_ata_device_initialize): Use check_device.
111 (grub_ata_iterate): Recheck devices.
112 (grub_ata_open): Likewise.
113 (grub_atapi_iterate): Likewise.
114 (grub_atapi_open): Likewise.
115 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
116 (GRUB_ATA_CH1_PORT1): Likewise.
117 (GRUB_ATA_CH0_PORT2): Likewise.
118 (GRUB_ATA_CH1_PORT2): Likewise.
119 * include/grub/mips/loongson.h: New file.
120 * include/grub/mips/yeeloong/ec.h: Likewise.
121 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
122 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
123 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
124 * include/grub/misc.h (grub_halt): Declare as noreturn.
125 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
126 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
127 (UART_ENABLE_FIFO_TRIGGER1): New definition.
128 (UART_ENABLE_DTRRTS): Likewise.
129 (UART_ENABLE_MODEM): Removed.
130 (UART_ENABLE_OUT2): New const.
131 * include/grub/term.h (grub_term_register_input_active): New function.
132 (grub_term_register_output_active): Likewise.
133 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
135 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
136 (init_pci): New function.
137 (grub_machine_init): Execute platform init when firmware. Init serial.
138 (grub_halt): Implement.
139 (grub_exit): Likewise.
140 (grub_reboot): Likewise.
141 * term/serial.c (serial_hw_init): Update macros.
142 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
143 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
144 (image_targets): New target mipsel-yeeloong-flash.
145 (generate_image): Support IMAGE_YEELOONG_FLASH.
146 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
147 (grub_video_sm712_setup): Init card.
148 (grub_video_sm712_set_palette): Removed.
149 * video/sm712_init.c: New file.
151 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
153 * Makefile.in (install-local): Temporarily prepend $(builddir) to
154 PATH when running help2man and then run it on the unadorned
155 executable names, rather than passing $(builddir)/* paths to
156 help2man. This avoids the build directory ending up in generated
159 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
161 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
162 to avoid accidents when debugging with 'sh -x'.
163 * util/grub-mkrescue.in: Likewise.
164 * util/grub.d/00_header.in: Likewise.
165 * util/grub.d/10_hurd.in: Likewise.
166 * util/grub.d/10_kfreebsd.in: Likewise.
167 * util/grub.d/10_linux.in: Likewise.
168 * util/grub.d/10_netbsd.in: Likewise.
169 * util/grub.d/10_windows.in: Likewise.
170 * util/grub.d/20_linux_xen.in: Likewise.
171 * util/grub.d/30_os-prober.in: Likewise.
172 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
174 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
176 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
177 last character in the buffer.
178 Reported by: Vladimir Serbinenko.
180 2010-06-29 Robert Millan <rmh@gnu.org>
182 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
183 (Command-line and menu entry commands): Document `badram' command.
185 2010-06-28 Robert Millan <rmh@gnu.org>
187 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
188 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
189 command using ${GRUB_BADRAM} as parameter.
191 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
193 * docs/grub.texi (Device map): New section.
194 (Themes): New section (stub).
195 * Makefile.in (docs/grub.info): The info documentation now builds
196 without errors. Make sure it stays that way.
198 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
200 Use normal parser for menu entries.
201 Reported by: Thomas Frauendorfer
203 * include/grub/parser.h (grub_parser_execute): Don't export.
204 * normal/menu.c (grub_menu_execute_entry_real): New function.
205 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
207 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
209 * docs/grub.texi (Embedded configuration): New section (replacing
210 old "Preset Menu" stub).
211 (Images): New section.
212 (configfile): Note that any menu entries defined in `file' are shown
215 2010-06-28 Josh Triplett <josh@joshtriplett.org>
217 * mmap/i386/pc/mmap_helper.S: Set CF on return.
219 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
221 * util/grub-install.in: Add --debug-image= option.
223 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
225 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
228 * util/deviceiter.c (check_device): Rename to ...
229 (check_device_readable_unique): ... this. Update all callers.
230 Maintain and check a list of which devices (by canonicalized name)
231 have already been seen.
232 (clear_seen_devices): New function.
233 (compare_file_names) [__linux__]: New function.
234 (grub_util_iterate_devices): Clear the list of seen devices on exit
235 and (just in case) on entry.
236 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
237 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
238 seen-devices list, superseded by general code in check_device.
240 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
242 * commands/cat.c (options): New variable.
243 (grub_cmd_cat): Parse options. If the --dos option is given, print
244 DOS-style "\r\n" line endings as simple newlines (Debian bug
246 (GRUB_MOD_INIT): Use extcmd.
247 (GRUB_MOD_FINI): Likewise.
248 * docs/grub.texi (cat): Document --dos.
250 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
252 XEN with Linux grub-mkconfig support.
254 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
255 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
256 GRUB_CMDLINE_XEN_DEFAULT.
257 * util/grub.d/20_linux_xen.in: New file.
259 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
261 Initialise VGA video on qemu ourselves.
263 * boot/i386/qemu/boot.S: Don't call 0xc000.
264 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
265 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
266 (kernel_img_HEADERS): Add pci.h.
267 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
268 * configure.ac: Force unifont on qemu and yeeloong.
269 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
270 (grub_vga_palette_write): Use correct register.
271 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
272 Call grub_qemu_init_cirrus.
273 * kern/i386/qemu/init.c: New file.
274 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
276 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
278 2010-06-26 Pavel Roskin <proski@gnu.org>
280 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
283 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
285 * docs/grub.texi (Simple configuration): Explain that
286 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
287 set to `true' to disable their respective recovery entries, not
290 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
292 Make the `source' command slightly faster.
294 * normal/main.c (grub_normal_execute): Don't re-read list files when
297 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
299 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
300 field position and mask size to red fields from mode_info, not
302 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
303 Remove redundant tag->common.framebuffer_type assignment.
304 Reported by: Seth Goldberg.
306 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
308 Sync up other versions of the Linux loader with Robert Millan's
309 change of 2010-01-09, "Make loader output a bit more user-friendly".
311 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
313 (grub_cmd_linux): Likewise.
314 (grub_cmd_initrd): Likewise.
315 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
316 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
318 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
320 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
321 larger than MEMORY_MAP_SIZE.
323 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
327 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
329 * script/parser.y: #include grub_script.tab.h header.
331 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
333 Support >3GiB and <16MiB RAM in i386-qemu.
335 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
336 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
337 (grub_lower_mem): Removed.
338 (grub_upper_mem): Likewise.
339 (mem_size): Made static.
340 (above_4g): New variable.
341 (grub_machine_mmap_init): Detect small mem_size and above_4g.
342 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
345 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
347 Cirrus 5446 and Bochs video cards support.
349 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
351 (video_cirrus_mod_SOURCES): New variable.
352 (video_cirrus_mod_CFLAGS): Likewise.
353 (video_cirrus_mod_LDFLAGS): Likewise.
354 (video_bochs_mod_SOURCES): Likewise.
355 (video_bochs_mod_CFLAGS): Likewise.
356 (video_bochs_mod_LDFLAGS): Likewise.
357 * include/grub/vga.h: New file.
358 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
359 (grub_video_fb_set_page_t): New type.
360 (grub_video_fb_setup): New prototype.
361 (grub_video_fb_swap_buffers): Likewise.
362 (grub_video_fb_get_info_and_fini): Likewise.
363 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
364 (CRTC_DATA_PORT): Likewise.
365 (CRTC_CURSOR): Likewise.
366 (CRTC_CURSOR_ADDR_HIGH): Likewise.
367 (CRTC_CURSOR_ADDR_LOW): Likewise.
368 (CRTC_CURSOR_DISABLE): Likewise.
369 (update_cursor): Use grub_vga_cr_write.
370 (grub_vga_text_setcursor): Likewise.
371 * video/bochs.c: New file.
372 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
374 (palette_size): Likewise.
375 (framebuffer): New variable.
376 (grub_video_fb_init): Use 'framebuffer'.
377 (grub_video_fb_fini): Likewise.
378 (grub_video_fb_get_info): Likewise.
379 (grub_video_fb_get_palette): Likewise.
380 (grub_video_fb_set_palette): Likewise.
381 (grub_video_fb_set_viewport): Likewise.
382 (grub_video_fb_get_viewport): Likewise.
383 (grub_video_fb_map_color): Likewise.
384 (grub_video_fb_map_rgb): Likewise.
385 (grub_video_fb_map_rgba): Likewise.
386 (grub_video_fb_unmap_color): Likewise.
387 (grub_video_fb_unmap_color_int): Likewise.
388 (grub_video_fb_fill_rect): Likewise.
389 (grub_video_fb_blit_bitmap): Likewise.
390 (grub_video_fb_blit_render_target): Likewise.
391 (grub_video_fb_scroll): Likewise.
392 (grub_video_fb_create_render_target): Likewise.
393 (grub_video_fb_doublebuf_blit_init): Likewise.
394 (grub_video_fb_set_active_render_target): Handle doublebuffering.
395 (doublebuf_pageflipping_update_screen): New function.
396 (doublebuf_pageflipping_init): Likewise.
397 (grub_video_fb_setup): Likewise.
398 (grub_video_fb_swap_buffers): Likewise.
399 (grub_video_fb_get_info_and_fini): Likewise.
400 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
402 (doublebuf_pageflipping_commit): Restructured into ...
403 (doublebuf_pageflipping_set_page): ... this.
404 (doublebuf_pageflipping_update_screen): Removed.
405 (doublebuf_pageflipping_init): Likewise.
406 (double_buffering_init): Likewise.
407 (grub_video_vbe_setup): Use grub_video_fb_setup.
408 (grub_video_vbe_swap_buffers): Removed.
409 (grub_video_vbe_set_active_render_target): Likewise.
410 (grub_video_vbe_get_active_render_target): Likewise.
411 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
412 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
413 grub_video_fb_set_active_render_target and
414 grub_video_fb_get_active_render_target.
415 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
416 (SEQUENCER_DATA_PORT): Likewise.
417 (MAP_MASK_REGISTER): Likewise.
418 (CRTC_ADDR_PORT): Likewise.
419 (CRTC_DATA_PORT): Likewise.
420 (START_ADDR_HIGH_REGISTER): Likewise.
421 (START_ADDR_LOW_REGISTER): Likewise.
422 (GRAPHICS_ADDR_PORT): Likewise.
423 (GRAPHICS_DATA_PORT): Likewise.
424 (READ_MAP_REGISTER): Likewise.
425 (INPUT_STATUS1_REGISTER): Likewise.
426 (INPUT_STATUS1_VERTR_BIT): Likewise.
427 (get_map_mask): Use grub_vga_sr_read.
428 (set_map_mask): Use grub_vga_sr_write.
429 (set_read_map): Use grub_vga_gr_write.
430 (set_start_address): Use grub_vga_cr_write.
431 * video/sm712.c (framebuffer): Remove leftover fields.
433 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
435 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
436 setting GRUB_VIDEO_BACKEND. Make it available as a user override
437 instead. Replace the gfxterm backend check with a check that
438 ${GRUB_PREFIX}/video.lst is non-empty.
439 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
441 (load_video): New generated function. Call it before loading
442 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
443 * util/grub.d/10_linux.in (linux_entry): Call load_video.
444 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
445 * docs/grub.texi (Simple configuration): Document
448 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
450 Use video functions in linux and xnu loaders.
452 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
453 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
454 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
455 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
456 loader/i386/pc/linux.c.
457 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
458 (find_line_len): Removed.
459 (find_framebuf): Likewise.
460 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
461 * loader/i386/efi/xnu.c: Removed.
462 * loader/i386/pc/xnu.c: Moved from here...
463 * loader/i386/xnu.c: ...here.
465 Enable priorities in video drivers.
467 * include/grub/video.h (grub_video_adapter_prio_t): New type.
468 (grub_video_adapter): New field prio.
469 (grub_video_register): Respect prio when inserting.
470 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
471 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
472 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
473 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
474 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
475 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
476 * video/sm712.c (grub_video_sm712_adapter): Likewise.
480 * include/grub/video.h (grub_video_driver_id_t): New value
481 GRUB_VIDEO_DRIVER_SDL.
482 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
484 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
486 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
488 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
490 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
492 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
493 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
495 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
497 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
498 directly, and recommend grub-install instead.
499 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
501 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
503 Fix i386-pc prefix handling with nested partitions (Debian bug
504 #585068). Note that the case where the core image is booted using
505 multiboot and relocated from its original location still requires
508 * kern/i386/pc/init.c (make_install_device): If the prefix starts
509 with "(,", fill the boot drive in between those two characters, but
510 expect that a full partition specification including partition map
512 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
513 specified, write a prefix without the drive name but including a
514 full partition specification.
516 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
518 * util/grub-mkconfig.in: Ignore non-option arguments, for
519 compatibility with older versions (before 2010-06-12) which did the
520 same. In particular, this makes it easier to ship an update-grub
521 wrapper which is compatible with that used with GRUB Legacy (Debian
524 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
526 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
527 for manual page generation.
529 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
531 * po/POTFILES: Remove leftover commands/handler.c.
533 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
535 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
536 left this script non-functional.
538 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
540 * docs/man/grub-emu.h2m: New file.
542 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
544 * docs/grub.texi (Commands): Document reduced command set in rescue
546 (cpuid): New section.
548 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
550 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
551 new partition naming style.
552 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
554 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
556 Add "-o grub.iso" like cmdline options support.
558 * util/grub-install.in: Improve cmdline option parsing.
559 * util/grub-mkconfig.in: Likewise.
560 * util/grub-mkrescue.in: Likewise.
561 * util/grub-reboot.in: Likewise.
562 * util/grub-set-default.in: Likewise.
563 * util/i386/efi/grub-install.in: Likewise.
564 * util/ieee1275/grub-install.in: Likewise.
565 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
567 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
569 * .bzrignore: Ignore 41_custom.
571 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
573 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
575 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
577 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
578 prototype declarations.
580 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
581 generating fs, partmap, and video lists.
582 * include/grub/fs.h (grub_fs_register): Omit prototype if
583 GRUB_LST_GENERATOR is defined.
584 * include/grub/partition.h (grub_partition_map_register): Likewise.
585 * include/grub/video.h (grub_video_register): Likewise.
587 2010-06-12 Javier Martín <lordhabbit@gmail.com>
589 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
591 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
593 * util/grub-mkrescue.in: Support --xorriso argument.
595 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
597 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
598 Suggested by: Thomas Schmitt.
600 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
602 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
603 Suggested by: Thomas Schmitt.
605 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
609 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
610 * util/grub.d/41_custom.in: New file.
612 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
614 * util/grub-mkrescue.in (make_image): Remove sh module, which has
615 been merged back into normal.
617 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
619 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
620 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
622 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
624 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
625 when generating manual pages.
626 * docs/man/grub-bin2h.h2m: New file.
627 * docs/man/grub-editenv.h2m: New file.
628 * docs/man/grub-fstest.h2m: New file.
629 * docs/man/grub-install.h2m: New file.
630 * docs/man/grub-macho2img.h2m: New file.
631 * docs/man/grub-mkconfig.h2m: New file.
632 * docs/man/grub-mkdevicemap.h2m: New file.
633 * docs/man/grub-mkfont.h2m: New file.
634 * docs/man/grub-mkimage.h2m: New file.
635 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
636 * docs/man/grub-mkrelpath.h2m: New file.
637 * docs/man/grub-mkrescue.h2m: New file.
638 * docs/man/grub-ofpathname.h2m: New file.
639 * docs/man/grub-pe2elf.h2m: New file.
640 * docs/man/grub-probe.h2m: New file.
641 * docs/man/grub-reboot.h2m: New file.
642 * docs/man/grub-script-check.h2m: New file.
643 * docs/man/grub-set-default.h2m: New file.
644 * docs/man/grub-setup.h2m: New file.
646 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
648 Use FOR_* macros instead of *_iterate whenever possible.
650 * commands/handler.c: Removed.
651 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
652 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
653 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
654 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
655 (grub_probe_SOURCES): Remove kern/parser.c.
656 (util/grub-script-check.c_DEPENDENCIES): Removed.
657 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
658 and grub_script_check_init.c.
659 (grub_script_check_init.lst): Removed.
660 (grub_script_check_init.h): Likewise.
661 (grub_script_check_init.c): Likewise.
662 (pkglib_MODULES): Remove handler.mod and sh.mod.
663 (handler_mod_SOURCES): Removed.
664 (handler_mod_CFLAGS): Likewise.
665 (handler_mod_LDFLAGS): Likewise.
666 (normal_mod_SOURCES): Remove normal/handler.c.
667 Add script/main.c, script/script.c, script/execute.c,
668 script/function.c, script/lexer.c, grub_script.tab.c
669 and grub_script.yy.c.
670 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
671 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
672 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
673 (grub_setup_SOURCES): Remove kern/parser.c.
674 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
675 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
676 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
677 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
678 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
679 (grub_setup_SOURCES): Remove kern/parser.c.
680 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
681 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
682 * include/grub/command.h (grub_command_iterate): Removed.
683 (FOR_COMMANDS): New macro.
684 * include/grub/dl.h (grub_dl): New member next.
685 (grub_dl_iterate): Removed.
686 (grub_dl_head): New variable declaration.
687 (FOR_DL_MODULES): New macro.
688 * include/grub/fs.h: Include list.h.
689 (grub_fs): Make next first element.
690 (grub_fs_list): New variable declaration.
691 (grub_fs_register): Make inline.
692 (grub_fs_unregister): Likewise.
693 (grub_fs_iterate): Removed.
694 (FOR_FILESYSTEMS): New macro.
695 * include/grub/handler.h: Removed.
696 * include/grub/list.h (grub_list_hook_t): Removed.
697 (grub_list_test_t): Likewise.
698 (grub_list_pop): Likewise.
699 (grub_list_iterate): Likewise.
700 (grub_list_insert): Likewise.
701 (FOR_LIST_ELEMENTS): New macro.
702 * include/grub/parser.h (grub_parser_class): Removed.
703 (grub_parser_register): Likewise.
704 (grub_parser_unregister): Likewise.
705 (grub_parser_get_current): Likewise.
706 (grub_parser_set_current): Likewise.
707 (grub_register_rescue_parser): Likewise.
708 (grub_rescue_parse_line): New function.
709 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
710 * include/grub/script_sh.h (grub_script_function_list): New variable
712 (FOR_SCRIPT_FUNCTIONS): New macro.
713 (grub_script_function_iterate): Removed.
714 (grub_normal_parse_line): New prototype.
715 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
716 (FOR_DISABLED_TERM_INPUTS): Likewise.
717 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
718 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
719 * include/grub/video.h (grub_video_adapter): Move 'next' to first
721 (grub_video_register): Inline.
722 (grub_video_unregister): Likewise.
723 (grub_video_adapter_list): New variable declaration.
724 (grub_video_iterate): Removed.
725 (FOR_VIDEO_ADAPTERS): New macro.
726 * kern/dl.c (grub_dl_list): Removed. All users updated.
727 (grub_dl_iterate): Removed.
728 * kern/fs.c (grub_fs_list): Make global.
729 (grub_fs_register): Removed.
730 (grub_fs_unregister): Likewise.
731 (grub_fs_iterate): Likewise.
732 * kern/handler.c: Removed.
733 * kern/list.c (grub_list_pop): Removed.
734 (grub_list_iterate): Likewise.
735 (grub_list_insert): Likewise.
736 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
737 (grub_prio_list_insert): Don't use grub_list_insert.
738 * kern/main.c (grub_register_rescue_parser): Don't call
739 grub_register_rescue_parser.
740 * kern/parser.c (grub_parser_class): Removed.
741 (grub_parser_execute): Use grub_rescue_parse_line.
742 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
743 (grub_rescue_parser): Removed.
744 (grub_register_rescue_parser): Likewise.
745 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
746 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
747 (grub_auth_check_authentication): Likewise.
748 * normal/completion.c (iterate_command): Removed.
749 (grub_normal_do_completion): Use FOR_COMMANDS.
750 * normal/handler.c: Removed.
751 * normal/main.c (read_config_file): Remove parser changing.
752 (grub_normal_execute): Don't call read_handler_list.
753 (grub_normal_read_line_real): Statically allocate prompt.
754 (grub_cmdline_run): Use grub_normal_parse_line.
755 (GRUB_MOD_FINI): Don't call free_handler_list.
756 * normal/menu_entry.c (run): Likewise.
757 * script/function.c (grub_script_function_list): Make global.
758 (grub_script_function_iterate): Removed.
759 * script/main.c (grub_normal_parse_line): Make global.
760 (grub_sh_parser): Removed.
761 (GRUB_MOD_INIT): Likewise.
762 (GRUB_MOD_FINI): Likewise.
763 * tests/lib/functional_test.c (grub_functional_test): Use
765 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
766 (grub_test_run): Use FOR_LIST_ELEMENTS.
767 * tests/lib/unit_test.c (main): Likewise.
768 * util/deviceiter.c (grub_util_iterate_devices): Don't use
770 * util/grub-fstest.c (grub_term_input_class): Removed.
771 (grub_term_output_class): Likewise.
772 * util/grub-probe.c: Likewise.
773 * util/i386/pc/grub-setup.c: Likewise.
774 * util/sparc64/ieee1275/grub-setup.c: Likewise.
775 * util/grub-script-check.c (main): Don't call grub_init_all and
777 * video/video.c (grub_video_adapter_list): Make global.
778 (grub_video_register): Removed.
779 (grub_video_unregister): Likewise.
780 (grub_video_iterate): Likewise.
782 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
784 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
785 reported by Henrique Ferreiro.
787 2010-06-09 Robert Millan <rmh@gnu.org>
789 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
790 ones, when both are available.
792 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
794 Make --version uniform and avoid hard-coded program name.
796 * util/grub-mkimage.c (main): Use `program_name' instead of
798 * util/i386/pc/grub-setup.c (main): Likewise.
799 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
800 * util/grub-install.in: Save the basename of $0 in $self, and use the
801 latter in informational messages. Use the same format for --version
802 as the binary programs.
803 * util/grub-mkconfig.in: Likewise.
804 * util/grub-mkrescue.in: Likewise.
805 * util/grub-reboot.in: Likewise.
806 * util/grub-set-default.in: Likewise.
807 * util/i386/efi/grub-install.in: Likewise.
808 * util/ieee1275/grub-install.in: Likewise.
809 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
811 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
813 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
814 embedding area. Use <= instead of == when checking for non-emptiness.
816 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
818 * configure.ac: Add `.' to the directories searched for unifont.
820 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
822 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
825 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
827 * docs/grub.texi (History): Expand to cover GRUB 2.
828 (Serial terminal): Refer to `terminal_input' and `terminal_output'
829 commands, not `terminal'.
831 (terminal_input): New section.
832 (terminal_output): New section.
833 (uppermem): New section (stub).
834 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
836 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
838 * docs/grub.texi (Security): Menu entries are unrestricted by
839 default, not restricted to superusers as I had previously thought.
840 Reword to account for this.
842 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
844 * kern/emu/misc.c (device_mapper_null_log): New function.
845 (grub_device_mapper_supported): New function.
846 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
848 * kern/emu/hostdisk.c (find_partition_start): Check whether
849 device-mapper is supported before trying to use it.
850 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
852 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
854 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
855 (File name syntax): Likewise.
856 (help): --all is no longer supported in GRUB 2. Be more precise
857 about pattern matching.
859 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
861 * normal/completion.c (grub_normal_do_completion): When completing
862 arguments to "set" and the current word contains an equals sign,
863 skip to after the equals sign before starting completion.
865 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
867 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
869 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
871 * docs/grub.texi (Network): New section.
872 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
873 `(nd)' as in GRUB Legacy.
874 (pxe_unload): New section.
876 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
878 * docs/grub.texi (Troubleshooting): `echo' is not usually available
879 in the rescue shell, so recommend using `set' instead. Thanks,
882 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
884 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
885 (password): New section.
886 (password_pbkdf2): New section.
887 (search): New section.
888 (Security): New section.
889 (Troubleshooting): New section, currently very incomplete.
890 (Invoking grub-mkpasswd-pbkdf2): New section.
891 (Internals): New section, currently very incomplete.
893 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
895 * util/grub.d/00_header.in: Add some more quoting (of
896 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
898 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
900 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
902 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
903 to `count', fixing variable shadowing that broke the -c option.
905 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
907 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
908 in case they contain spaces.
910 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
912 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
913 "part_" to partmap module names, in line with grub-install.
914 Reported by: Jindřich Makovička (Debian bug #584426).
916 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
918 * util/grub-mkimage.c: Make target-related error messages slightly
919 more helpful; -O talks about "format". Explicitly point to the use
920 of -O if no target is specified.
921 Reported by: Didier Raboud (Debian bug #584415).
923 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
925 * INSTALL: Document several build requirements for optional features
926 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
928 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
930 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
931 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
932 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
934 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
936 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
937 Thanks to Jordan Uggla for spotting this.
939 2010-06-02 Aleš Nesrsta <starous@volny.cz>
941 Finally make USB usable.
943 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
944 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
945 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
946 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
947 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
948 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
949 (GRUB_OHCI_FSMPS): Likewise.
950 (GRUB_OHCI_PERIODIC_START): Likewise.
951 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
952 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
953 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
954 (GRUB_OHCI_SET_PORT_RESET): Likewise.
955 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
956 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
957 (grub_ohci_transaction): Likewise.
958 (grub_ohci_transfer): Improve condition detection algorithms.
959 Handle toggle property. Program the transactions correctly.
960 Improve error handling. Various important fixups.
961 (grub_ohci_portstatus): Put register writes in right order.
962 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
963 (grub_uhci_transfer): Don't show "failed" message on success.
964 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
966 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
968 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
969 before initialization is completed. Use IN direction for empty
970 transfers. Use last_trans and compute toggle.
971 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
972 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
973 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
974 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
975 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
976 (grub_usb_device): Increase toggle to 256.
977 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
978 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
979 GRUB_USBMS_SUBCLASS_SFF8070.
980 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
981 (grub_scsi_inquiry): New member page and alloc_length.
982 (grub_scsi_request_sense): New structure.
983 (grub_scsi_request_sense_data): Likewise.
984 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
986 * disk/scsi.c (grub_scsi_request_sense): New function.
987 (grub_scsi_test_unit_ready): Likewise.
988 (grub_scsi_inquiry): Fill new fields.
989 (grub_scsi_read_capacity): Likewise.
990 (grub_scsi_read10): Add request sense at the end.
991 (grub_scsi_read12): Likewise.
992 (grub_scsi_write10): Likewise.
993 (grub_scsi_write12): Likewise.
994 (grub_scsi_open): Add Test Unit Ready.
995 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
996 Support additional subclasses. Con't clear halt yet. Activate the
997 proper config. Calculate LUNs correctly.
998 (grub_usbms_transfer): Various important fixups.
1000 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1002 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1003 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1004 (grub_ohci_fini_hw): New function.
1005 (grub_ohci_restore_hw): Likewise.
1006 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1007 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1008 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1010 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1012 Dedicated DMA allocations.
1014 * bus/pci.c (grub_memalign_dma32): New function
1015 (grub_dma_free): Likewise.
1016 (grub_dma_get_virt): Likewise.
1017 (grub_dma_get_phys): Likewise.
1018 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1019 (grub_ohci_pci_iter): Use dma32_alloc.
1020 (grub_ohci_transfer): Likewise.
1021 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1022 (grub_usb_bulk_readwrite): Likewise.
1023 * include/grub/pci.h: Add declarations.
1025 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1029 * bus/cs5536.c: New file.
1030 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1031 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1032 (cs5536_mod_SOURCES): New variable.
1033 (cs5536_mod_CFLAGS): Likewise.
1034 (cs5536_mod_LDFLAGS): Likewise.
1035 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1037 (kernel_img_SOURCES): Add bus/cs5536.c.
1038 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1040 (usb_mod_SOURCES): New variable.
1041 (usb_mod_CFLAGS): New variable.
1042 (usb_mod_LDFLAGS): New variable.
1043 (usbtest_mod_SOURCES): New variable.
1044 (usbtest_mod_CFLAGS): New variable.
1045 (usbtest_mod_LDFLAGS): New variable.
1046 (ohci_mod_SOURCES): New variable.
1047 (ohci_mod_CFLAGS): New variable.
1048 (ohci_mod_LDFLAGS): New variable.
1049 (usbms_mod_SOURCES): New variable.
1050 (usbms_mod_CFLAGS): New variable.
1051 (usbms_mod_LDFLAGS): New variable.
1052 (usb_keyboard_mod_SOURCES): New variable.
1053 (usb_keyboard_mod_CFLAGS): New variable.
1054 (usb_keyboard_mod_LDFLAGS): New variable.
1055 * include/grub/smbus.h: New file.
1056 * include/grub/cs5536.h: New file.
1058 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1060 * util/grub.d/00_header.in: Add safety check to make sure that
1061 ${locale_dir} exists before trying to probe it.
1063 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1065 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1066 per the GNU Coding Standards; this is now too obscure to be worth
1069 (chainloader): Remove cross-reference to `SCO UnixWare'.
1071 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1073 * docs/grub.texi (Chain-loading): New section.
1074 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1075 adjusted for GRUB 2.
1076 (SCO UnixWare): Likewise.
1078 (chainloader): Add reference to `Block list syntax'.
1079 (drivemap): New section.
1080 (parttool): New section.
1082 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1084 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1086 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1087 (Installing GRUB using grub-install): Remove reference to the grub
1088 shell; mention `grub-mkimage' and `grub-setup' instead.
1089 (Invoking grub-install): Likewise.
1090 (Interface): Add reference to `Menu entry editor'.
1091 (serial): Remove `--device' option.
1093 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1095 * docs/grub.texi (Configuration): New section, documenting
1096 configuration file generation using grub-mkconfig. I've left a slot
1097 for documenting the full shell scripting format but have not yet
1098 started on writing that up.
1099 (Invoking grub-mkconfig): New section.
1101 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1103 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1104 (GNU GRUB manual): Likewise.
1105 (General commands): Update description of `terminfo' for GRUB 2.
1107 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1109 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1110 (GRUB_MOD_INIT): Fix capitalisation.
1111 * docs/grub.texi (Command-line and menu entry commands): Document
1112 gettext and gptsync commands.
1114 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1116 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1117 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1119 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1121 Add btrfs probing support, currently only in the single-device case.
1123 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1125 (grub_guess_root_device): Call find_root_device_from_mountinfo
1126 before looking in /dev.
1128 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1130 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1131 GRUB_DISK_SIZE_UNKNOWN.
1132 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1134 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1136 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1137 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1138 corrupted or not synced properly.
1140 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1142 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1143 Reported by: Seth Goldberg.
1145 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1147 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1149 Reported by: Seth Goldberg.
1151 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1153 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1154 Reported by: Seth Goldberg.
1156 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1158 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1159 64-bit address as signed on MIPS.
1161 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1163 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1164 to the empty string.
1166 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1168 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1170 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1171 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1172 * kern/misc.c (__enable_execute_stack): Disable on
1175 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1177 Make grub-probe work with symbolic links under /dev/mapper as well
1178 as with real block devices. The Linux world seems to be (at best)
1179 in transition here, and GRUB shouldn't get caught in the middle.
1181 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1184 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1186 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1187 input files (in which case exit zero).
1189 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1191 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1192 return NULL for various reasons even if it has a maximum-length
1193 buffer: for example, there might be a symlink loop, or the path
1194 might exceed PATH_MAX. If this happens, return NULL.
1196 2010-05-27 Robert Millan <rmh@gnu.org>
1198 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1199 partmap module to handle cross-partmap setups.
1200 Reported by Orestes Mas. Gràcies!
1202 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1204 * util/grub-mkrescue.in: Initialise override_dir rather than
1205 assuming that it's unset or empty in the environment.
1207 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1209 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1210 variable index into p_index to suppress a warning with -Wshadow.
1212 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1214 * INSTALL: Added flex >= 2.5.35 requirement.
1216 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1218 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1220 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1224 * commands/i386/cmostest.c: New file.
1225 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1226 (cmostest_mod_SOURCES): New variable.
1227 (cmostest_mod_CFLAGS): Likewise.
1228 (cmostest_mod_LDFLAGS): Likewise.
1229 * conf/i386-pc.rmk: Likewise.
1230 * docs/grub.texi (Vendor power-on keys): New section.
1231 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1232 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1233 and GRUB_BUTTON_CMOS_ADDRESS.
1234 * util/grub.d/00_header.in: Handle powering-on by separate button.
1236 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1238 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1239 Removed drawing_scrollbar argument. All users updated
1241 Reported by Jo Shields
1243 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1245 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1246 buffer since gfxterm handles double repaint.
1248 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1250 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1251 * term/gfxterm.c (real_scroll): Likewise.
1253 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1255 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1256 before calling BIOS.
1258 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1260 * include/grub/i18n.h: Always enable grub_gettext.
1262 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1264 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1265 partition naming style.
1267 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1269 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1270 not the first option.
1272 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1274 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1276 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1278 * util/misc.c: Move inclusion of <limits.h> to ...
1279 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1281 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1283 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1284 Fix merge error in NetBSD code.
1285 (find_partition_start) [__NetBSD__]: Likewise.
1287 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1289 Fix grub-mkrescue usage unit testing.
1291 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1293 2010-05-18 Christian Franke <franke@computer.org>
1295 * util/grub.d/10_windows.in: Use path names instead of
1296 drive letters to prevent warning from Cygwin 1.7.
1297 Add drivemap command to menuentry if needed.
1299 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1301 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1302 gnumach and gnumach.gz.
1304 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1306 * include/grub/i18n.h (gettext): Inline instead of using #define.
1307 (grub_gettext): Likewise.
1310 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1312 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1313 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1314 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1315 (main): Add a slash after pkglibdirroot.
1317 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1319 * util/grub-install.in: Add missing "in" keyword.
1321 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1323 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1324 Reported by: Seth Goldberg.
1326 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1328 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1330 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1332 * configure.ac: Check for Linux device-mapper support.
1334 * util/hostdisk.c (device_is_mapped): New function.
1335 (find_partition_start): New function, partly broken out from
1336 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1337 device-mapper support added.
1338 (linux_find_partition): Use find_partition_start.
1339 (convert_system_partition_to_system_disk): Add `st' argument.
1340 Support Linux /dev/mapper/* devices if device-mapper support is
1341 available; only DM-RAID devices are understood at present.
1342 (find_system_device): Add `st' argument. Pass it to
1343 convert_system_partition_to_system_disk.
1344 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1345 find_system_device and convert_system_partition_to_system_disk. Use
1346 find_partition_start.
1348 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1349 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1350 * util/deviceiter.c [__linux__]: Define MINOR.
1351 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1352 * util/mkdevicemap.c (grub_putchar): New function.
1353 (grub_getkey): New function.
1354 (grub_refresh): New function.
1355 (main): Set debug=all if -v -v is used.
1357 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1359 Fix build with non-GNU libcs.
1361 * util/misc.c (canonicalize_file_name): Move to ...
1362 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1363 grub_make_system_path_relative_to_its_root.
1365 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1367 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1368 we handle finding grub-mkimage. Default to finding grub-mkimage in
1369 ${bindir} with program_transform_name applied, and provide a
1370 --grub-mkimage option to override this.
1372 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1374 Remove grub-mkisofs.
1376 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1377 (grub_mkisofs_SOURCES): Removed.
1378 (grub_mkisofs_CFLAGS): Removed.
1379 * util/mkisofs/defaults.h: Removed.
1380 * util/mkisofs/eltorito.c: Likewise.
1381 * util/mkisofs/exclude.h: Likewise.
1382 * util/mkisofs/hash.c: Likewise.
1383 * util/mkisofs/include/: Likewise.
1384 * util/mkisofs/include/fctldefs.h: Likewise.
1385 * util/mkisofs/include/mconfig.h: Likewise.
1386 * util/mkisofs/include/prototyp.h: Likewise.
1387 * util/mkisofs/include/statdefs.h: Likewise.
1388 * util/mkisofs/iso9660.h: Likewise.
1389 * util/mkisofs/joliet.c: Likewise.
1390 * util/mkisofs/match.c: Likewise.
1391 * util/mkisofs/match.h: Likewise.
1392 * util/mkisofs/mkisofs.c: Likewise.
1393 * util/mkisofs/mkisofs.h: Likewise.
1394 * util/mkisofs/msdos_partition.h: Likewise.
1395 * util/mkisofs/multi.c: Likewise.
1396 * util/mkisofs/name.c: Likewise.
1397 * util/mkisofs/rock.c: Likewise.
1398 * util/mkisofs/tree.c: Likewise.
1399 * util/mkisofs/write.c: Likewise.
1401 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1403 Unify grub-mkimage accross platforms.
1405 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1406 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1407 (grub_mkelfimage_SOURCES): Removed.
1408 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1409 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1410 (bin_UTILITIES): Add grub-mkimage.
1411 (grub_mkimage_SOURCES): New variable.
1412 (kernel_img_HEADERS): Remove machine/kernel.h.
1413 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1414 (pkglib_PROGRAMS): Add kernel.img.
1415 (kernel_img_HEADERS): Add machine/kernel.h.
1416 (kernel_img_FORMAT): Removed.
1417 (bin_UTILITIES): Remove grub-mkimage.
1418 (grub_mkimage_SOURCES): Removed.
1419 (grub_mkimage_CFLAGS): Likewise.
1420 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1421 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1422 (pkglib_PROGRAMS): Add kernel.img.
1423 (bin_UTILITIES): Remove grub-mkimage.
1424 (grub_mkimage_SOURCES): Removed.
1425 (grub_mkimage_CFLAGS): Likewise.
1426 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1427 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1428 (pkglib_PROGRAMS): Add kernel.img.
1429 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1430 (pkglib_PROGRAMS): Add kernel.img.
1431 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1432 (grub_mkimage_SOURCES): Removed.
1433 (grub_mkimage_CFLAGS): Likewise.
1434 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1435 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1436 (pkglib_PROGRAMS): Add kernel.img.
1437 (bin_UTILITIES): Remove grub-mkimage.
1438 (grub_mkimage_SOURCES): Removed.
1439 (grub_mkimage_CFLAGS): Likewise.
1440 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1441 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1442 (grub_mkimage_SOURCES): Removed.
1443 (grub_mkimage_CFLAGS): Likewise.
1444 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1445 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1446 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1447 (grub_pe32_optional_header): ... this.
1448 (grub_pe64_optional_header): ... and this. All users updated.
1449 (GRUB_PE32_PE32_MAGIC): Split into ..
1450 (GRUB_PE32_PE32_MAGIC): .. this.
1451 (GRUB_PE32_PE64_MAGIC): .. and this.
1452 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1453 * include/grub/elf.h (PT_GNU_STACK): New definition.
1454 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1455 * include/grub/i386/efi/kernel.h: Likewise.
1456 * include/grub/i386/kernel.h: Likewise.
1457 * include/grub/i386/pc/kernel.h: Likewise.
1458 * include/grub/i386/qemu/boot.h: Likewise.
1459 * include/grub/mips/kernel.h: Likewise.
1460 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1461 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1462 * include/grub/powerpc/kernel.h: Likewise.
1463 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1464 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1465 * include/grub/sparc64/kernel.h: Likewise.
1466 * include/grub/x86_64/efi/kernel.h: Likewise.
1467 * include/grub/x86_64/kernel.h: Likewise.
1468 * include/grub/offsets.h: New file.
1469 * include/grub/kernel.h (grub_module_info): Split into ...
1470 (grub_module_info32): ... this.
1471 (grub_module_info64): ... and this.
1472 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1473 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1474 (grub_boot_blocklist): Moved from here ...
1475 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1476 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1477 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1478 * include/grub/types.h (grub_target_to_host16): Removed.
1479 (grub_target_to_host32): Likewise.
1480 (grub_target_to_host64): Likewise.
1481 (grub_host_to_target16): Likewise.
1482 (grub_host_to_target32): Likewise.
1483 (grub_host_to_target64): Likewise.
1484 (grub_host_to_target_addr): Likewise.
1486 Support grub-mkrescue for efi, coreboot and qemu.
1488 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1489 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1490 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1491 * util/grub-mkrawimage.c: Moved from here ...
1492 * util/grub-mkimage.c: ... here. All users updated.
1493 (ALIGN_ADDR): Use image_target.
1494 (TARGET_NO_FIELD): New const.
1495 (image_target_desc): New type.
1496 (image_targets): New array.
1497 (grub_target_to_host64): Use image_target.
1498 (grub_target_to_host32): Likewise.
1499 (grub_target_to_host16): Likewise.
1500 (grub_host_to_target64): Likewise.
1501 (grub_host_to_target32): Likewise.
1502 (grub_host_to_target16): Likewise.
1503 (grub_host_to_target_addr): Likewise.
1504 (generate_image): Handle multiimage.
1505 (main): Require -O parameter. All users updated.
1506 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1507 util/efi/grub-mkimage.c
1508 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1509 New option --rom-directory.
1511 * util/i386/efi/grub-mkimage.c: Removed.
1512 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1513 (grub_target_to_host32): Likewise.
1514 (grub_target_to_host64): Likewise.
1515 (grub_host_to_target16): Likewise.
1516 (grub_host_to_target32): Likewise.
1517 (grub_host_to_target64): Likewise.
1518 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1519 (grub_target_to_host32): Likewise.
1520 (grub_target_to_host64): Likewise.
1521 (grub_host_to_target16): Likewise.
1522 (grub_host_to_target32): Likewise.
1523 (grub_host_to_target64): Likewise.
1525 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1527 Source tree is reorganized for emu build.
1529 * include/grub/util/console.h: Move from here...
1530 * include/grub/emu/console.h: ...to here.
1531 * include/grub/util/getroot.h: Move from here...
1532 * include/grub/emu/getroot.h: ...to here.
1533 * include/grub/util/hostdisk.h: Move from here...
1534 * include/grub/emu/hostdisk.h: ...to here.
1535 * util/console.c: Move from here...
1536 * kern/emu/console.c: ...to here.
1537 * util/getroot.c: Move from here...
1538 * kern/emu/getroot.c: ...to here.
1539 * util/grub-emu.c: Move from here...
1540 * kern/emu/main.c: ...to here.
1541 * util/hostdisk.c: Move from here...
1542 * kern/emu/hostdisk.c: ...to here.
1543 * util/hostfs.c: Move from here...
1544 * kern/emu/hostfs.c: ...to here.
1545 * util/mm.c: Move from here...
1546 * kern/emu/mm.c: ...to here.
1547 * util/pci.c: Move from here...
1548 * bus/emu/pci.c: ...to here.
1549 * util/sdl.c: Move from here...
1550 * video/emu/sdl.c: ...to here.
1551 * util/time.c: Move from here...
1552 * kern/emu/time.c: ...to here.
1553 * util/usb.c: Move from here...
1554 * bus/usb/emu/usb.c: ...to here.
1556 * include/grub/emu/misc.h: New header for grub-emu functions.
1557 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1559 * conf/any-emu.rmk: Rule updates for above renames.
1560 * conf/common.rmk: Likewise.
1561 * conf/i386-pc.rmk: Likewise.
1562 * conf/i386-qemu.rmk: Likewise.
1563 * conf/mips.rmk: Likewise.
1564 * conf/sparc64-ieee1275.rmk: Likewise.
1565 * conf/x86-efi.rmk: Likewise.
1567 * disk/lvm.h: #include updates for above renames.
1568 * util/grub-mkrelpath.c: Likewise.
1569 * util/grub-probe.c: Likewise.
1570 * util/i386/pc/grub-setup.c: Likewise.
1571 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1572 * kern/emu/console.c: Likewise.
1573 * kern/emu/getroot.c: Likewise.
1574 * kern/emu/hostdisk.c: Likewise.
1575 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1577 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1578 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1579 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1580 * util/misc.c: Remove grub-emu functions.
1582 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1585 Reported by: Thorsten Grützmacher.
1587 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1589 (circprog_set_property): Register and unregister timeout hook.
1590 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1591 (label_destroy): Free template. and unregister hook.
1592 (label_set_state): New function.
1593 (label_set_property): Handle templates and hooks.
1594 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1596 (progress_bar_set_property): Register and unregister timeout hook.
1597 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1598 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1599 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1600 (update_timeout_visit): Removed.
1601 (update_timeouts): New function.
1602 (redraw_timeouts): Likewise.
1603 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1604 (grub_gfxmenu_clear_timeout): Likewise.
1605 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1606 (grub_gfxmenu_timeout_notify): Likewise.
1607 (grub_gfxmenu_timeout_notifications): New external variable.
1608 (grub_gfxmenu_timeout_register): New function.
1609 (grub_gfxmenu_timeout_unregister): Likewise.
1611 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1613 Transform (broken) vga terminal into (working) vga video driver.
1615 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1616 video/i386/pc/vga.c.
1617 * include/grub/video.h (grub_video_driver_id):
1618 Add GRUB_VIDEO_DRIVER_VGA.
1619 * term/i386/pc/vga.c: Renamed to ...
1620 * video/i386/pc/vga.c: ...this
1621 (DEBUG_VGA): Removed.
1622 (CHAR_WIDTH): Likewise.
1623 (CHAR_HEIGHT): Likewise.
1624 (TEXT_WIDTH): Likewise.
1625 (TEXT_HEIGHT): Likewise.
1626 (DEFAULT_FG_COLOR): Likewise.
1627 (DEFAULT_BG_COLOR): Likewise.
1628 (colored_char): Likewise.
1631 (cursor_state): Likewise.
1632 (fg_color): Likewise.
1633 (bg_color): Likewise.
1634 (text_buf): Likewise.
1637 (framebuffer): New variable.
1638 (set_read_map): Disabled.
1639 (setup): New variable.
1640 (is_target): Likewise.
1641 (grub_vga_mod_init): Likewise.
1642 (grub_vga_mod_fini): Likewise.
1643 (check_vga_mem): Likewise.
1644 (write_char): Likewise.
1645 (write_cursor): Likewise.
1646 (scroll_up): Likewise.
1647 (grub_vga_putchar): Likewise.
1648 (grub_vga_getcharwidth): Likewise.
1649 (grub_vga_getwh): Likewise.
1650 (grub_vga_getxy): Likewise.
1651 (grub_vga_gotoxy): Likewise.
1652 (grub_vga_cls): Likewise.
1653 (grub_vga_setcolorstate): Likewise.
1654 (grub_vga_setcursor): Likewise.
1655 (grub_video_vga_init): New function.
1656 (grub_video_vga_setup): Likewise.
1657 (grub_video_vga_fini): Likewise.
1658 (update_target): Likewise.
1659 (grub_video_vga_blit_bitmap): Likewise.
1660 (grub_video_vga_blit_render_target): Likewise.
1661 (grub_video_vga_set_active_render_target): Likewise.
1662 (grub_video_vga_get_active_render_target): Likewise.
1663 (grub_video_vga_swap_buffers): Likewise.
1664 (grub_video_vga_set_palette): Likewise.
1665 (grub_video_vga_get_info_and_fini): Likewise.
1666 (grub_vga_term): Removed.
1667 (grub_video_vga_adapter): New variable.
1668 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1669 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1671 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1673 * video/readers/jpeg.c: Indented.
1675 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1677 Various jpeg cleanups.
1679 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1680 (grub_jpeg_decode_quan_table): Use sizeof.
1681 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1683 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1685 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1686 tables. Ignore non-last ac bit.
1687 (grub_jpeg_decode_quan_table): Likewise.
1689 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1691 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1692 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1693 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1694 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1695 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1696 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1698 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1700 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1703 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1705 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1707 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1709 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1712 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1714 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1717 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1719 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1722 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1724 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1726 2010-05-01 Christian Franke <franke@computer.org>
1728 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1729 Remove broken Cygwin path conversion.
1730 * util/misc.c: [__CYGWIN__] Add include and define.
1731 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1733 (make_system_path_relative_to_its_root): Simplify loop, replace early
1735 [__CYGWIN__] Add conversion to win32 path.
1736 Include "/" case in trailing slash removal.
1738 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1740 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1741 Reported by: Seth Goldberg
1743 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1745 * commands/help.c (grub_cmd_help): Fix a typo.
1746 Reported by: Seth Goldberg
1748 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1750 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1752 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1753 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1754 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1755 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1756 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1757 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1758 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1759 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1760 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1761 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1762 * normal/context.c (GRUB_MOD_INIT): Likewise.
1763 * normal/main.c (GRUB_MOD_INIT): Likewise.
1764 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1765 * term/serial.c (GRUB_MOD_INIT): Likewise.
1766 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1768 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1770 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1773 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1775 * commands/iorw.c: New file.
1776 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1777 (iorw_mod_SOURCES): New variable.
1778 (iorw_mod_CFLAGS): Likewise.
1779 (iorw_mod_LDFLAGS): Likewise.
1781 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1785 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1786 * normal/main.c (hotkey_aliases): New variable.
1787 (grub_normal_add_menu_entry): Parse "--hotkey".
1788 * normal/menu_text.c (run_menu): Handle hotkeys.
1790 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1792 * kern/i386/coreboot/init.c (grub_machine_init): Call
1793 grub_machine_mmap_init on qemu.
1795 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1797 * boot/i386/qemu/boot.S: Add a missing .code16.
1799 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1801 Use LBIO on coreboot.
1803 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1804 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1805 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1807 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1808 grub_machine_mmap_init on coreboot.
1809 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1810 GRUB_LINUXBIOS_MEMBER_LINK.
1811 (grub_machine_mmap_iterate): Fix declaration.
1812 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1814 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1816 Split coreboot and multiboot ports.
1818 * conf/i386-multiboot.rmk: New file.
1819 * configure.ac: Add multiboot port.
1820 * include/grub/i386/multiboot/boot.h: New file.
1821 * include/grub/i386/multiboot/console.h: Likewise.
1822 * include/grub/i386/multiboot/init.h: Likewise.
1823 * include/grub/i386/multiboot/kernel.h: Likewise.
1824 * include/grub/i386/multiboot/loader.h: Likewise.
1825 * include/grub/i386/multiboot/memory.h: Likewise.
1826 * include/grub/i386/multiboot/serial.h: Likewise.
1827 * include/grub/i386/multiboot/time.h: Likewise.
1828 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1829 * loader/multiboot.c: Likewise.
1830 * loader/multiboot_mbi2.c: Likewise.
1831 * util/grub-mkrescue.in: Generate multiboot rescue.
1833 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1835 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1837 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1839 Merge handling of input and output terminals. Fix a hang.
1841 * commands/terminal.c (abstract_terminal): New struct.
1842 (handle_command): New function. Based on grub_cmd_terminal_input.
1843 (grub_cmd_terminal_input): Use handle_command.
1844 (grub_cmd_terminal_output): Use handle_command.
1846 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1848 Fix comment handling.
1850 * tests/grub_script_comments.in: New testcase.
1851 * conf/tests.rmk: Rules for new testcase.
1852 * script/yylex.l: Updated flex rules.
1854 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1856 * docs/grub.texi (play): Document that zero pitches produce rests.
1857 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1860 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1862 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1865 2010-04-26 Christian Franke <franke@computer.org>
1867 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1868 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1869 (grub_get_prefix): Remove function.
1870 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1871 make_system_path_relative_to_its_root ().
1872 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1874 2010-04-24 Christian Franke <franke@computer.org>
1876 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1877 (kernel_img_LDFLAGS): Remove -static-libgcc.
1879 2010-04-24 Christian Franke <franke@computer.org>
1881 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1882 and CHECK_END_SYMBOL if grub-emu is built.
1883 Unset TARGET_OBJ2ELF if grub-emu is built
1884 without module support.
1886 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1890 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1891 (grub_fstest_SOURCES): Likewise.
1892 (pkglib_MODULES): Add nilfs2.mod.
1893 (nilfs2_mod_SOURCES): New variable.
1894 (nilfs2_mod_CFLAGS): Likewise.
1895 (nilfs2_mod_LDFLAGS): Likewise.
1896 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1897 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1898 * fs/nilfs2.c: New file.
1900 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1902 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1905 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1907 Add grub-mkconfig support for NetBSD.
1909 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1910 * util/grub-mkconfig.in: export new NetBSD specific variables.
1911 * po/POTFILES-shell: added 10_netbsd.in.
1912 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1914 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1916 Fix emu build with grub-emu-pci and grub-emu-modules.
1918 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1920 * include/grub/libpciaccess.h: New file.
1921 * conf/any-emu.rmk: Update kernel headers for emu build.
1923 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1925 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1927 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1929 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1931 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1933 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1934 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1935 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1936 util/ieee1275/ofpath.c.
1937 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1938 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1939 * include/grub/sparc64/ieee1275/boot.h
1940 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1941 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1942 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1943 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1945 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1946 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1947 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1950 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1952 * util/grub-mkconfig.in: Corrected two == equality tests.
1953 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1954 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1955 expect a number appended to it.
1956 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1957 expects a number appended to it.
1959 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1961 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1963 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1965 * util/hostdisk.c (make_device_name): Change to new partition naming.
1967 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1969 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1971 2010-04-17 Christian Franke <franke@computer.org>
1973 * Makefile.in: Add missing localedir setting.
1975 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1977 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1978 mistake in r2156. Noticed by Anthony Fok.
1980 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1982 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1984 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1986 Fix a spurious, uninitialized variable warning.
1988 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1989 Initialize variable, shdr.
1990 (grub_freebsd_load_elfmodule): Likewise.
1991 (grub_freebsd_load_elf_meta): Likewise.
1993 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1995 Fix for escaped dollar in double quoted strings.
1997 * script/yylex.l: Updated flex rules.
1998 * conf/tests.rmk: Rule for new testcase.
1999 * tests/grub_script_dollar.in: New testcase.
2001 2010-04-13 Carles Pina i Estany <carles@pina.cat>
2002 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
2004 Enclose all translated strings in grub.cfg in single quotes, and
2005 escape them appropriately (Ubuntu bug #552921).
2007 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2008 * util/grub.d/10_hurd.in: Use it.
2009 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2010 * util/grub.d/10_linux.in (linux_entry): Likewise.
2012 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2014 Fix cygwin compilation.
2016 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2017 * include/grub/misc.h (__register_frame_info)
2018 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2019 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2020 * kern/misc.c (__register_frame_info)
2021 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2022 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2024 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2026 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2028 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2030 Unify libgcc processing.
2032 * Makefile.in (kernel_img_LDFLAGS): New variable.
2033 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2034 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2036 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2037 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2038 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2039 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2040 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2041 overwriting. Remove -lgcc and -static-libgcc
2042 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2043 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2044 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2045 (kernel_img_LDFLAGS): Append instead of overwriting.
2046 Remove -lgcc and -static-libgcc
2047 * conf/sparc64-ieee1275.rmk: Likewise.
2048 * include/grub/powerpc/libgcc.h: Move to ...
2049 * include/grub/libgcc.h: .. this.
2050 * include/grub/libgcc.h: Don't export most of the function on x86.
2051 (__bswapsi2): New export.
2052 (__bswapdi2): Likewise.
2053 * include/grub/mips/libgcc.h: Removed.
2054 * include/grub/sparc64/libgcc.h: Likewise.
2056 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2058 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2059 disk_info_msg (conflicts with gettexting into languages with cases).
2061 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2063 Add grub-probe support for NetBSD.
2065 * util/getroot.c (find_root_device): Convert block device to
2066 character device on NetBSD.
2067 * util/probe.c (probe): Require character device on NetBSD.
2068 * util/hostdisk.c: NetBSD specific headers.
2069 (configure_device_driver): new function to tune device driver
2070 parameters (currently only for NetBSD floppy driver).
2071 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2072 via disklabel ioctl).
2073 (open_device): call configure_device_driver on NetBSD.
2074 (convert_system_partition_to_system_disk): NetBSD specific code.
2075 (device_is_wholedisk): Likewise.
2076 (grub_util_biosdisk_get_grub_dev): Likewise.
2077 (make_device_name): Fixed a typo in bsd_part_str.
2078 * configure.ac: check for opendisk() and getrawpartition() on
2079 NetBSD and set LIBUTIL.
2080 * Makefile.in: add LIBUTIL to LIBS.
2082 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2086 * util/grub-script-check.c: Better help message.
2088 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2092 * configure.ac: Flex version check.
2093 * conf/common.rmk: Add -Wno-error to sh.mod.
2094 * script/yylex.l: Remove all #pragma.
2096 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2098 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2100 Reported by: Seth Goldberg.
2102 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2104 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2105 Rename "module" to "module2".
2106 Reported by: Seth Goldberg.
2108 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2110 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2112 Reported by: Seth Goldberg.
2114 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2116 * lib/posix_wrap/locale.h: Add missing file.
2117 Reported by: Seth Goldberg.
2119 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2121 grub-emu module load support.
2123 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2124 NO_DYNAMIC_MODULES switched to this.
2125 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2127 * conf/any-emu.rmk: Generate symlist.
2128 (kernel_img_HEADERS): Add util/datetime.h.
2129 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2130 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2131 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2132 kern/$(target_cpu)/cache.S.
2133 * configure.ac (grub-emu-modules): New option.
2134 * genmk.rb: Handle multiple source lists.
2135 * include/grub/sdl.h: New file.
2136 * include/grub/libusb.h: Likewise.
2137 * util/grub-emu.c (main): Hanle (host) root.
2138 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2139 GRUB_ERR_UNKNOWN_DEVICE.
2140 * util/misc.c: Move mm functions to ...
2141 * util/mm.c: ... here. All users updated.
2143 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2145 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2146 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2148 (maintainer-clean): Remove libgcrypt-grub.
2150 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2152 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2154 2010-04-09 EFI Coder <eficoder@hotmail.com>
2156 * normal/menu_text.c (print_message): Clean up the message and show
2157 the Fn information when on EFI
2158 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2160 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2162 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2164 * normal/crypto.c (read_crypto_list): Likewise.
2165 * normal/dyncmd.c (read_command_list): Likewise.
2166 * normal/term.c (read_terminal_list): Likewise.
2167 * normal/main.c (read_lists): Use explicit prefix.
2168 (read_lists_hook): Use read_lists.
2169 (grub_normal_execute): Likewise.
2171 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2173 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2174 Reported by: Thomas Schmitt.
2175 Add -no-emul-boot to grub-mkisofs parameters.
2177 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2179 * font/font.c: Indented.
2181 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2183 Elif support to GRUB script (by Deepak Vankadaru).
2185 * tests/grub_script_if.in: New testcase.
2186 * conf/tests.rmk: Rule for new testcase.
2187 * script/parser.y: Grammar rules for elif.
2189 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2191 While and until loops support to GRUB script.
2193 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2194 (grub_script_create_cmdwhile): New function prototype.
2195 (grub_script_execute_cmdwhile): New function prototype.
2196 * script/execute.c (grub_script_execute_cmdwhile): New function.
2197 * script/parser.y (command): New commands.
2198 (whilecmd): New grammar rule.
2199 (untilcmd): New grammar rule.
2200 * script/script.c (grub_script_create_cmdwhile): New function.
2201 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2204 * tests/grub_script_while1.in: New testcase.
2205 * conf/tests.rmk: Rule for new testcase.
2207 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2209 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2212 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2214 GRUB_BACKGROUND support.
2216 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2217 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2219 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2221 Load fonts and modules for gfxmenu in grub-mkconfig.
2222 Idea by: Mario Vazquez
2224 * util/grub.d/00_header.in: Load pf2 and image modules.
2226 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2228 grub-mkconfig multiple terminal support.
2230 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2231 * util/grub.d/00_header.in: Likewise.
2233 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2235 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2236 we use cd $(srcdir).
2238 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2240 * util/grub.d/10_linux.in: Only use the first word of
2241 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2242 spaces in GRUB_DISTRIBUTOR.
2243 * util/grub.d/10_kfreebsd.in: Likewise.
2244 * util/grub.d/10_hurd.in: Likewise.
2246 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2248 Fix unit testing framework for Qemu 0.12.
2250 * tests/util/grub-shell.in: Remove -serial stdio option.
2252 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2254 POSIX header file wrappers.
2256 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2258 * lib/posix_wrap/ctype.h: Likewise.
2259 * lib/posix_wrap/errno.h: Likewise.
2260 * lib/posix_wrap/langinfo.h: Likewise.
2261 * lib/posix_wrap/limits.h: Likewise.
2262 * lib/posix_wrap/localcharset.h: Likewise.
2263 * lib/posix_wrap/stdint.h: Likewise.
2264 * lib/posix_wrap/stdio.h: Likewise.
2265 * lib/posix_wrap/stdlib.h: Likewise.
2266 * lib/posix_wrap/string.h: Likewise.
2267 * lib/posix_wrap/sys/types.h: Likewise.
2268 * lib/posix_wrap/unistd.h: Likewise.
2269 * lib/posix_wrap/wchar.h: Likewise.
2270 * lib/posix_wrap/wctype.h: Likewise.
2271 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2272 (grub_script.yy.h): Likewise.
2273 * script/yylex.l: Remove POSIX emulation #defines.
2274 * Makefile.in (POSIX_CFLAGS): New variable.
2275 (GNULIB_UTIL_CFLAGS): Likewise.
2279 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2280 (regexp_mod_SOURCES): New variable.
2281 (regexp_mod_CFLAGS): Likewise.
2282 (regexp_mod_LDFLAGS): Likewise.
2283 * commands/regexp.c: New file.
2284 * gnulib/regcomp.c: New file. Imported from gnulib.
2285 * gnulib/regex.c: Likewise.
2286 * gnulib/regex_internal.c: Likewise.
2287 * gnulib/regex_internal.h: Likewise.
2288 * gnulib/regexec.c: Likewise.
2289 * gnulib/regex.h: Likewise.
2291 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2293 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2294 unsupported video mode types.
2296 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2298 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2300 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2302 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2303 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2305 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2307 Remove unused grub_vga_get_font.
2309 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2310 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2312 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2314 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2315 * include/grub/misc.h: Likewise.
2317 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2319 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2320 for which failure is fatal.
2322 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2324 * util/grub-install.in: Use mkdir -p to create grub directory.
2325 * util/i386/efi/grub-install.in: Likewise.
2326 * util/ieee1275/grub-install.in: Likewise.
2328 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2330 * Makefile.in (LEX): new variable.
2332 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2334 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2335 `=' and added double quotes on operands of this equality test.
2337 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2339 * Makefile.in (uninstall): Remove a leftover debug echo.
2340 Reported by: Grégoire Sutre
2342 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2344 MIPS multiboot2 support.
2346 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2347 (multiboot2_mod_SOURCES): New variable.
2348 (multiboot2_mod_CFLAGS): Likewise.
2349 (multiboot2_mod_LDFLAGS): Likewise.
2350 (multiboot2_mod_ASFLAGS): Likewise.
2351 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2353 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2354 (MULTIBOOT_MBI_REGISTER): Likewise.
2355 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2356 (MULTIBOOT_ELF32_MACHINE): Likewise.
2357 (MULTIBOOT_ELF64_MACHINE): Likewise.
2358 * include/grub/mips/multiboot.h: New file.
2359 * include/grub/video.h (grub_video_driver_id): New type
2360 GRUB_VIDEO_DRIVER_SM712.
2361 (grub_video_get_info_and_fini): Export.
2362 (grub_video_get_palette): Likewise.
2363 (grub_video_get_driver_id): Likewise.
2364 * include/multiboot2.h: Resynced with spec.
2365 * loader/i386/multiboot.c: Moved from here ...
2366 * loader/multiboot.c: ... here. All users updated.
2367 (grub_multiboot_boot): Use platform-specific macros.
2368 * loader/i386/multiboot_elfxx.c: Moved from here ...
2369 * loader/multiboot_elfxx.c: ... here. All users updated.
2370 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2371 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2372 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2374 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2376 Import gnulib argp module.
2378 * gnulib/argp-ba.c: New file.
2379 * gnulib/argp-eexst.c: Likewise.
2380 * gnulib/argp-fmtstream.c: Likewise.
2381 * gnulib/argp-fmtstream.h: Likewise.
2382 * gnulib/argp-fs-xinl.c: Likewise.
2383 * gnulib/argp-help.c: Likewise.
2384 * gnulib/argp-namefrob.h: Likewise.
2385 * gnulib/argp-parse.c: Likewise.
2386 * gnulib/argp-pin.c: Likewise.
2387 * gnulib/argp-pv.c: Likewise.
2388 * gnulib/argp-pvh.c: Likewise.
2389 * gnulib/argp-version-etc.c: Likewise.
2390 * gnulib/argp-version-etc.h: Likewise.
2391 * gnulib/argp-xinl.c: Likewise.
2392 * gnulib/argp.h: Likewise.
2394 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2396 * kern/device.c (grub_device_iterate): Clear errors after failed
2399 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2401 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2402 returned by firmware.
2404 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2406 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2407 compilation on coreboot and qemu
2409 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2411 * include/multiboot2.h: Resync with spec.
2413 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2415 Multiboot2 tag support
2417 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2418 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2419 Remove loader/multiboot_loader.c.
2420 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2421 (grub_multiboot2_real_boot): Likewise.
2422 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2423 (grub_get_multiboot_mmap_count): New proto.
2424 (grub_fill_multiboot_mmap): Likewise.
2425 (grub_multiboot_set_video_mode): Likewise.
2426 (grub_multiboot_set_console): Likewise.
2427 (grub_multiboot_load): Likewise.
2428 (grub_multiboot_load_elf): Likewise.
2429 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2430 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2431 * include/multiboot.h: Resynced with specification.
2432 * include/multiboot2.h: Resynced with specification.
2433 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2434 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2435 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2436 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2438 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2439 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2440 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2442 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2444 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2445 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2447 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2448 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2449 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2451 * loader/i386/multiboot_mbi2.c: New file.
2453 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2457 * Makefile.in (GNULIB_CFLAGS): New variable.
2458 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2459 (grub_script_check_CFLAGS): New variable.
2460 * gnulib/alloca.h: Resync with gnulib.
2461 * gnulib/error.c: Likewise.
2462 * gnulib/error.h: Likewise.
2463 * gnulib/fnmatch.c: Likewise.
2464 * gnulib/fnmatch_loop.c: Likewise.
2465 * gnulib/getdelim.c: Likewise.
2466 * gnulib/getline.c: Likewise.
2467 * gnulib/getopt.c: Likewise.
2468 * gnulib/getopt1.c: Likewise.
2469 * gnulib/getopt_int.h: Likewise.
2470 * gnulib/gettext.h: Likewise.
2471 * gnulib/progname.c: Likewise.
2472 * gnulib/progname.h: Likewise.
2474 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2476 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2477 which is the case with --disabled-nls.
2479 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2480 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2481 * util/misc.c: Likewise.
2482 * util/mkisofs/mkisofs.c: Likewise.
2483 * util/mkisofs/mkisofs.h: Likewise.
2485 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2487 Simplify Apple CC support.
2489 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2490 Add 0 byte at the end not to have a symbol with empty target.
2491 * mmap/i386/pc/mmap_helper.S: Likewise.
2492 * genmk.rb: Ignore errors 2030 and 2050.
2493 * kern/i386/pc/startup.S: Use LOCAL when possible.
2495 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2497 Testcase and the fix for final semicolon on cmdline.
2499 * tests/grub_script_final_semicolon.in: New testcase.
2500 * conf/tests.rmk: Rules for the new testcase.
2501 * script/parser.y: Grammar fix.
2503 2010-03-26 BVK Chaitanya <bvk@localhost>
2505 Blank lines testcase for GRUB script.
2507 * tests/grub_script_blanklines.in: New testcase.
2508 * conf/tests.rmk: Rules for the new testcase.
2510 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2514 * genmk.rb: Add -DGRUB_FILE to all C targets.
2515 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2516 * include/grub/list.h: Likewise.
2517 * include/grub/misc.h: Likewise.
2518 * include/grub/mm.h: Likewise.
2519 * include/grub/test.h: Likewise.
2520 * kern/mm.c: Likewise.
2521 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2523 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2525 Sunpc partitions support.
2527 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2528 (grub_fstest_SOURCES): Likewise.
2529 (pkglib_MODULES): Add part_sunpc.mod.
2530 (part_sunpc_mod_SOURCES): New variable.
2531 (part_sunpc_mod_CFLAGS): Likewise.
2532 (part_sunpc_mod_LDFLAGS): Likewise.
2533 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2534 * partmap/sunpc.c: New file.
2536 2010-03-26 BVK Chaitanya <bvk@localhost>
2538 For loop support to GRUB script.
2540 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2541 (grub_script_create_cmdfor): New function prototype.
2542 (grub_script_execute_cmdfor): New function prototype.
2543 * script/execute.c (grub_script_execute_cmdfor): New function.
2544 * script/parser.y (command): New for command.
2545 (forcmd): New grammar rule.
2546 * script/script.c (grub_script_create_cmdfor): New function.
2547 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2549 * tests/grub_script_for1.in: New testcase.
2550 * conf/tests.rmk: Rules for new testcase.
2552 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2556 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2557 'partition' is NULL, grub_partition_get_start already does that.
2558 * commands/loadenv.c (check_blocklists): Likewise.
2559 (write_blocklists): Likewise.
2560 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2561 (grub_fstest_SOURCES): Likewise.
2562 (pkglib_MODULES): Add part_bsd.mod.
2563 (part_bsd_mod_SOURCES): New variable.
2564 (part_bsd_mod_CFLAGS): Likewise.
2565 (part_bsd_mod_LDFLAGS): Likewise.
2566 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2567 (grub_emu_SOURCES): Likewise.
2568 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2569 * include/grub/bsdlabel.h: New file.
2570 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2572 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2573 (grub_partition_map_list): New variable.
2574 (grub_partition_map_register): Inline.
2575 (grub_partition_map_unregister): Likewise.
2576 (FOR_PARTITION_MAPS): New macro.
2577 (grub_partition_map_iterate): Removed.
2578 (grub_partition_get_start): Handle nested partitions.
2579 * include/grub/msdos_partition.h: Remove bsd-related entries.
2580 (grub_pc_partition): Remove.
2581 * kern/disk.c (grub_disk_close): Free partition data.
2582 (grub_disk_adjust_range): Handle nested partitions.
2583 * kern/partition.c (grub_partition_map_probe): New function.
2584 (grub_partition_probe): Parse name to number, handle subpartitions.
2585 (get_partmap): New function.
2586 (grub_partition_iterate): Handle subpartitions.
2587 (grub_partition_get_name): Likewise.
2588 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2589 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2590 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2591 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2593 (acorn_partition_map_probe): Remove.
2594 (acorn_partition_map_get_name): Likewise.
2595 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2597 Set 'index' to 0 since there can be only one partition entry per sector.
2598 (amiga_partition_map_probe): Remove.
2599 (amiga_partition_map_get_name): Likewise.
2600 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2602 Set 'offset' and 'index' to real positions of partitions.
2603 (apple_partition_map_probe): Remove.
2604 (apple_partition_map_get_name): Likewise.
2605 * partmap/bsdlabel.c: New file.
2606 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2608 Allocate 'data' so it can be correctly freed.
2609 Set 'index' to offset inside sector.
2610 (gpt_partition_map_probe): Remove.
2611 (gpt_partition_map_get_name): Likewise.
2612 * partmap/msdos.c (grub_partition_parse): Remove.
2613 (pc_partition_map_iterate): Don't force raw access.
2615 Make 'ext_offset' a local variable.
2616 (pc_partition_map_probe): Remove.
2617 (pc_partition_map_get_name): Remove.
2618 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2620 (sun_partition_map_probe): Remove.
2621 (sun_partition_map_get_name): Likewise.
2622 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2623 (grub_pcpart_type): Likewise.
2624 * util/hostdisk.c (open_device): Handle new numbering scheme.
2625 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2626 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2627 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2628 * util/grub-install.in: Insert all subpartition modules.
2629 * util/ieee1275/grub-install.in: Likewise.
2631 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2633 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2636 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2638 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2640 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2642 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2643 match where 'make install' puts them.
2644 * util/i386/efi/grub-install.in: Likewise.
2646 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2648 * .bzrignore: Add gentrigtables, grub-script-check,
2649 grub_script_check_init.c, grub_script_check_init.h, and
2652 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2654 * kern/parser.c: Indented.
2656 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2658 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2660 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2662 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2663 alpha_mask_size == 0 case.
2665 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2667 GRUB shell lexer and parser improvements.
2669 * conf/any-emu.rmk: Build rule updates.
2670 * conf/common.rmk: Likewise.
2671 * conf/i386-coreboot.rmk: Likewise.
2672 * conf/i386-efi.rmk: Likewise.
2673 * conf/i386-ieee1275.rmk: Likewise.
2674 * conf/i386-pc.rmk: Likewise.
2675 * conf/powerpc-ieee1275.rmk: Likewise.
2676 * conf/x86_64-efi.rmk: Likewise.
2678 * configure.ac: Configure check for flex.
2680 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2682 (grub_lexer_param): Struct member updates.
2683 (grub_parser_param): Likewise.
2684 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2685 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2686 (grub_script_lexer_init): Prototype update.
2687 (grub_script_lexer_record_start): Likewise.
2688 (grub_script_lexer_record_stop): Likewise.
2689 (grub_script_lexer_yywrap): New function prototype.
2690 (grub_script_lexer_fini): Likewise.
2691 (grub_script_execute_argument_to_string): Removed by...
2692 (grub_script_execute_argument_to_argv): ...better version.
2694 * script/execute.c (ROUND_UPTO): New macro.
2695 (grub_script_execute_cmdline): Out of memory fixes.
2696 (grub_script_execute_menuentry): Likewise.
2697 (grub_script_execute_argument_to_string): Removed. Update all
2699 (grub_script_execute_argument_to_argv): ...better version.
2700 * script/function.c (grub_script_function_create): Use
2701 grub_script_execute_argument_to_argv instead of
2702 grub_script_execute_argument_to_string.
2704 * script/lexer.c (check_varstate): Removed.
2705 (check_textstate): Removed.
2706 (grub_script_lexer_record_start): Likewise.
2707 (grub_script_lexer_record_stop): Likewise.
2708 (recordchar): Replaced with...
2709 (grub_script_lexer_record): ...new function.
2710 (nextchar): Removed.
2711 (grub_script_lexer_init): Rewritten.
2712 (grub_script_yylex): Rewritten.
2713 (append_newline): New function.
2714 (grub_script_lexer_yywrap): New function.
2715 (grub_script_lexer_fini): New function.
2716 (grub_script_yyerror): Sets error flag.
2718 * script/yylex.l: New file.
2719 (grub_lexer_yyfree): Wrapper for flex yyffre.
2720 (grub_lexer_yyalloc): Likewise.
2721 (grub_lexer_yyrealloc): Likewise.
2722 * script/parser.y: Refactored.
2724 * script/script.c (grub_script_arg_add): Out of memory fixes.
2725 (grub_script_add_arglist): Likewise.
2726 (grub_script_create_cmdline): Likewise.
2727 (grub_script_create_cmdmenu): Likewise.
2728 (grub_script_add_cmd): Likewise.
2729 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2730 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2733 * tests/grub_script_echo1.in: New testcase.
2734 * tests/grub_script_vars1.in: New testcase.
2735 * tests/grub_script_echo_keywords.in: New testcase.
2737 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2739 Remove some redundancy in build system.
2741 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2742 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2743 (TARGET_LDFLAGS): Add -nostdlib.
2744 (TARGET_IMG_LDFLAGS): Likewise.
2745 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2746 anything since mmap isn't available.
2747 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2749 (pkglib_MODULES): Remove reboot.mod.
2750 (reboot_mod_SOURCES): Removed.
2751 (reboot_mod_CFLAGS): Likewise.
2752 (reboot_mod_LDFLAGS): Likewise.
2753 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2754 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2755 (DEFSYMFILES): Add kernel_syms.lst.
2756 (kernel_img_HEADERS): Add common headers.
2757 (symlist.c): New target.
2758 (kernel_syms.lst): Likewise.
2759 (pkglib_MODULES): Add memdisk.mod.
2760 (memdisk_mod_SOURCES): New variable.
2761 (memdisk_mod_CFLAGS): Likewise.
2762 (memdisk_mod_LDFLAGS): Likewise.
2763 (pkglib_MODULES): Add reboot.mod.
2764 (reboot_mod_SOURCES): New variable.
2765 (reboot_mod_CFLAGS): Likewise.
2766 (reboot_mod_LDFLAGS): Likewise.
2767 (pkglib_MODULES): Add date.mod.
2768 (date_mod_SOURCES): New variable.
2769 (date_mod_CFLAGS): Likewise.
2770 (date_mod_LDFLAGS): Likewise.
2771 (pkglib_MODULES): Add datehook.mod.
2772 (datehook_mod_SOURCES): New variable.
2773 (datehook_mod_CFLAGS): Likewise.
2774 (datehook_mod_LDFLAGS): Likewise.
2775 (pkglib_MODULES): Add lsmmap.mod.
2776 (lsmmap_mod_SOURCES): New variable.
2777 (lsmmap_mod_CFLAGS): Likewise.
2778 (lsmmap_mod_LDFLAGS): Likewise.
2779 (pkglib_MODULES): Add boot.mod.
2780 (boot_mod_SOURCES): New variable.
2781 (boot_mod_CFLAGS): Likewise.
2782 (boot_mod_LDFLAGS): Likewise.
2783 * conf/i386-coreboot.rmk: Removed redundant parts.
2784 * conf/i386-ieee1275.rmk: Likewise.
2785 * conf/i386-pc.rmk: Likewise.
2786 * conf/mips-yeeloong.rmk: Likewise.
2787 * conf/mips.rmk: Likewise.
2788 * conf/powerpc-ieee1275.rmk: Likewise.
2789 * conf/sparc64-ieee1275.rmk: Likewise.
2790 * conf/x86_64-efi.rmk: Likewise.
2791 * conf/i386-coreboot.rmk: Moved qemu parts ..
2792 * conf/i386-qemu.rmk: ... here
2793 * conf/i386-efi.rmk: Moved common parts to...
2794 * conf/x86-efi.rmk: ... here.
2795 * conf/i386.rmk: Added modules common to all x86 variants.
2796 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2797 * disk/memdisk.c: Remove grub/machine/kernel.h.
2798 * gensymlist.sh.in: Include symbol.h.
2799 * hook/datehook.c: Correct module name.
2800 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2801 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2802 * include/grub/i386/efi/serial.h: New file.
2803 * include/grub/x86_64/efi/serial.h: Likewise.
2804 * util/time.c: Likewise.
2805 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2807 2010-03-14 Colin King <colin.king@ubuntu.com>
2808 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2810 Shrink the pre-partition-table part of boot.img by eight bytes.
2812 * boot/i386/pc/boot.S (ERR): New macro.
2813 (chs_mode): Use ERR.
2814 (geometry_error): Likewise.
2815 (hd_probe_error): Remove. This is only used once, so we wrwite
2817 (read_error): Instead of printing read_error_string, just set up
2818 %si and fall through to ...
2819 (error_message): ... this new function, also used by ERR.
2821 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2823 Speed up consecutive hostdisk operations on the same device.
2825 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2826 (grub_util_biosdisk_open): Initialise disk->data.
2827 (struct linux_partition_cache): New structure.
2828 (linux_find_partition): Cache partition start positions; these are
2829 expensive to compute on every read and write.
2830 (open_device): Cache open file descriptor in disk->data, so that we
2831 don't have to reopen it and flush the buffer cache for consecutive
2832 operations on the same device.
2833 (grub_util_biosdisk_close): New function.
2834 (grub_util_biosdisk_dev): Set `close' member.
2836 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2837 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2838 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2839 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2840 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2842 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2844 Compile parts of grub-emu as modules.
2846 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2847 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2848 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2849 (all-local): Add $(GRUB_EMU).
2850 (install-local): Install $(GRUB_EMU).
2851 (uninstall): Uninstall $(GRUB_EMU).
2852 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2853 * kern/dl.c: Likewise.
2854 * commands/sleep.c: Not include machine/time.h.
2855 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2856 (COMMON_CFLAGS): Likewise.
2857 (sbin_UTILITIES): Remove grub-emu.
2858 (grub_emu_SOURCES): Removed.
2859 (kernel_img_RELOCATABLE): New variable.
2860 (pkglib_PROGRAMS): Add kernel.img.
2861 (kernel_img_SOURCES): New variable
2862 (kernel_img_CFLAGS): Likewise.
2863 (kernel_img_LDFLAGS): Likewise.
2864 (TARGET_NO_STRIP): Likewise.
2865 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2866 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2867 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2868 (grub-emu): New target.
2869 (GRUB_EMU): New variable.
2870 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2871 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2872 * loader/xnu.c: Likewise.
2873 * include/grub/pci.h: Likewise.
2874 * genemuinit.sh: New file.
2875 * genemuinitheader.sh: Likewise.
2876 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2877 Support TARGET_NO_DYNAMIC_MODULES.
2878 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2879 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2880 * disk/loopback.c: Likewise.
2881 * font/font_cmd.c: Likewise.
2882 * partmap/acorn.c: Likewise.
2883 * partmap/amiga.c: Likewise.
2884 * partmap/apple.c: Likewise.
2885 * partmap/gpt.c: Likewise.
2886 * partmap/msdos.c: Likewise.
2887 * partmap/sun.c: Likewise.
2888 * parttool/msdospart.c: Likewise.
2889 * term/gfxterm.c: Likewise.
2890 * video/bitmap.c: Likewise.
2891 * video/readers/jpeg.c: Likewise.
2892 * video/readers/png.c: Likewise.
2893 * video/readers/tga.c: Likewise.
2894 * video/video.c: Likewise.
2895 * util/grub-emu.c (read_command_list): Removed.
2896 (main): Don't call util_init_nls.
2897 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2898 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2900 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2902 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2903 date.mod, datehook.mod.
2904 (datetime_mod_SOURCES): New variable.
2905 (datetime_mod_CFLAGS): Likewise.
2906 (datetime_mod_LDFLAGS): Likewise.
2907 (date_mod_SOURCES): Likewise.
2908 (date_mod_CFLAGS): Likewise.
2909 (date_mod_LDFLAGS): Likewise.
2910 (datehook_mod_SOURCES): Likewise.
2911 (datehook_mod_CFLAGS): Likewise.
2912 (datehook_mod_LDFLAGS): Likewise.
2913 * conf/sparc64-ieee1275.rmk: Likewise.
2914 * lib/ieee1275/datetime.c: New file.
2916 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2918 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2919 (ieee1275_fb_mod_SOURCES): New variable.
2920 (ieee1275_fb_mod_CFLAGS): Likewise.
2921 (ieee1275_fb_mod_LDFLAGS): Likewise.
2922 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2924 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2925 (HEAP_MAX_ADDR): Likewise.
2926 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2928 Correct stop condition.
2929 (grub_ieee1275_devices_iterate): New function.
2930 * video/ieee1275.c: New file.
2932 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2934 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2936 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2938 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2939 SCRATCH_PAD_DISKBOOT as scratch.
2940 (bootit): Pass Openfirmware pointer in %o4.
2941 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2943 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2944 with util/grub-mkrawimage.c.
2945 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2946 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2947 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2948 (grub_aout_load) [GRUB_UTIL]: Likewise.
2949 * include/grub/kernel.h (grub_modules_get_end): New proto.
2950 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2951 (SCRATCH_PAD_BOOT): New definition.
2952 (SCRATCH_PAD_DISKBOOT): Likewise.
2953 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2954 * include/grub/sparc64/ieee1275/ieee1275.h
2955 (grub_ieee1275_original_stack): New variable
2956 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2958 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2959 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2960 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2961 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2962 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2963 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2964 (grub_platform_image_format_t): New type.
2965 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2966 * kern/main.c (grub_modules_get_end)
2967 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2968 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2969 (codestart): Switch stacks.
2970 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2972 (grub_heap_init): Use grub_modules_get_end.
2973 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2975 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2977 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2979 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2981 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2983 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2985 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2988 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2990 * genmoddep.awk: Output all missing symbols and not only first.
2992 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2994 * NEWS: Put the date of 1.98 release.
2996 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2998 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
3001 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3003 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3004 completition in the middle of string.
3006 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3008 * util/grub-mkrescue.in: Use mktemp with explicit template.
3010 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3012 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3014 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3016 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3019 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3021 Fix FreeBSD compilation.
3023 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3024 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3026 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3028 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3030 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3032 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3034 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3036 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3038 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3040 Support relative image path in theme file.
3042 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3043 (image_set_property): Handle theme_dir and relative path.
3045 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3047 * configure.ac: Alias amd64 to x86_64.
3049 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3051 * NEWS: mention multiboot on EFI.
3053 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3055 * kern/main.c (grub_load_modules): Handle errors from init functions of
3058 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3060 * normal/autofs.c (autoload_fs_module): Handle errors.
3062 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3064 Disable linux.mod on qemu-mips since it's not functional and leads
3065 to compilation failure.
3067 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3068 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3069 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3070 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3071 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3072 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3073 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3074 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3075 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3076 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3077 Reported by: BVK Chaitanya
3079 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3081 * INSTALL: Add gettext as a dependency and add qemu to a new section
3082 "Prerequisites for make-check".
3084 2010-03-04 Christian Franke <franke@computer.org>
3086 * util/grub-pe2elf.c: Add missing include "progname.h".
3088 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3090 * normal/crypto.c (read_crypto_list): Fix a typo.
3091 Reported by: Seth Goldberg.
3093 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3095 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3096 Reported by: Seth Goldberg.
3098 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3100 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3103 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3105 * genmk.rb: Remove terminal*.lst in make clean.
3106 Reported by: Seth Goldberg.
3108 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3110 * util/i386/efi/grub-install.in: Copy gettext files.
3112 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3114 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3116 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3118 Wait for user entry basing on presence of output rather than on errors.
3120 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3121 (grub_install_newline_hook): Likewise.
3122 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3123 * normal/menu.c (show_menu): Check line_counter to determine presence
3125 * normal/term.c (grub_normal_line_counter): New variable.
3126 (grub_normal_get_line_counter): New function.
3127 (grub_install_newline_hook): Likewise.
3129 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3131 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3133 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3135 * configure.ac: Update version to 1.98.
3137 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3139 * util/grub.d/10_linux.in (linux_entry): Don't default to
3140 gfxpayload=keep if Linux doesn't support video handover.
3142 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3144 Don't compile video modules on yeeloong since video subsystem is part
3147 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3148 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3149 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3150 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3151 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3152 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3153 * include/grub/bitmap_scale.h: Likewise.
3154 * include/grub/bufio.h: Likewise.
3155 * include/grub/font.h: Likewise.
3156 * include/grub/gfxterm.h: Likewise.
3157 * include/grub/video.h: Likewise.
3158 * include/grub/vbe.h: Don't include video_fb.h.
3159 * video/i386/pc/vbe.c: Include video_fb.h.
3160 * commands/i386/pc/vbetest.c: Include video.h.
3162 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3164 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3165 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3166 default entry if GRUB_SAVEDEFAULT=true. This allows using
3167 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3168 saving a new default on every boot.
3170 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3172 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3173 * normal/term.c (read_terminal_list): Likewise.
3174 * normal/main.c (grub_normal_init_page): Likewise.
3175 (grub_normal_read_line_real): Likewise.
3177 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3179 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3181 Reported by: Seth Goldberg.
3183 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3185 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3186 duplicate declaration of `start'.
3188 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3190 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3192 Reported by: Georgy Buranov
3194 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3196 * util/grub-mkrawimage.c (usage): Change string formatting to
3199 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3201 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3204 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3206 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3207 Reported by: Michael Suchanek.
3209 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3211 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3212 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3214 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3216 Remove any reference to non-free fonts.
3218 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3219 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3220 uses non-free components.
3221 * font/font.c (grub_font_get_name): Remove example name.
3222 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3223 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3224 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3225 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3227 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3229 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3231 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3233 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3235 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3237 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3239 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3241 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3243 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3245 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3246 * docs/grub.texi (Command-line and menu entry commands): Document play
3249 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3251 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3252 parse arguments as inline tempo and notes. Move code for playing notes
3254 (play): ... new function.
3256 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3258 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3259 grub_uint16_t instead of short.
3260 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3261 disk from little endian to cpu endianness.
3263 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3265 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3266 GRUB_TICKS_PER_SECOND instead of 120.
3268 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3270 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3271 escape sequence after \e.
3273 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3275 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3276 non-ASCII characters.
3278 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3280 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3281 set root in single quotes to prevent \, from being unescaped.
3283 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3285 Prevent unknown commands from stopping menuentry execution.
3287 * script/execute.c (grub_script_execute_cmdline): Print error after
3290 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3292 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3293 Reported by: Pavel Pisa.
3295 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3297 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3299 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3301 Merge grub_ieee1275_map_physical into grub_map and rename to
3304 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3305 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3307 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3308 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3310 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3312 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3314 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3315 opening and not after.
3317 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3319 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3322 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3324 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3325 (alloc_phys): Use ALIGN_UP instead of align_addr.
3327 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3329 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3331 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3333 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3335 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3337 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3340 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3342 Fix over-4GiB seek on sparc64.
3344 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3345 Replace pos_i and pos_lo with pos. All users updated.
3346 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3348 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3350 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3353 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3355 * util/grub-mkrawimage.c (main): Call set_program_name.
3357 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3359 Properly align 64-bit targets.
3361 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3362 (generate_image): Use ALIGN_ADDR.
3364 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3366 Properly create cross-endian images.
3368 * include/grub/types.h (grub_host_to_target_addr): New macro
3369 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3371 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3373 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3375 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3377 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3379 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3380 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3381 (grub_linux_boot): Divide by 64K when on VESA.
3383 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3385 Support GRUB_GFXPAYLOAD_LINUX.
3387 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3388 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3390 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3392 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3393 to show messages instead of discarding them.
3394 Process errors after executing command and not before. Keep old method
3397 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3399 * configure.ac: Check for ft2build.h.
3401 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3403 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3405 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3407 * genkernsyms.sh.in: Use TARGET_CC.
3409 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3413 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3415 * include/grub/multiboot2.h: Remove leftover file.
3416 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3417 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3419 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3421 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3423 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3425 Fix warnings in grub-emu when compiling with maximum warning options.
3427 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3428 (grub_arch_modules_addr): Return 0 and not NULL.
3429 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3430 (xstrdup): Use newstr instead of dup.
3431 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3432 of disk to dsk to avoid shadowing.
3433 (find_free_slot): Fix prototype.
3434 * util/getroot.c (grub_util_is_dmraid): Make static.
3435 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3436 Add missing prototype.
3437 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3439 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3441 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3444 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3446 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3449 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3451 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3452 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3453 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3454 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3455 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3456 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3458 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3460 * include/grub/err.h (grub_err_printf): Don't export.
3462 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3464 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3466 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3468 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3469 * kern/misc.c (grub_gettext_dummy): Make static.
3471 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3473 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3475 * kern/term.c (grub_putchar): Likewise.
3477 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3479 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3480 buggy hook call and memory leak.
3482 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3484 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3486 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3488 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3490 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3492 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3494 Return grub_errno on allocation error.
3496 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3498 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3500 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3502 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3503 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3505 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3507 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3509 (grub_pxefs_open): Likewise.
3511 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3513 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3514 * util/grub.d/10_kfreebsd.in: Likewise.
3515 * util/grub.d/10_linux.in: Likewise.
3517 2010-02-06 Colin D Bennett <colin@gibibit.com>
3519 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3520 (gfxmenu_mod_SOURCES): New variable.
3521 (gfxmenu_mod_CFLAGS): Likewise.
3522 (gfxmenu_mod_LDFLAGS): Likewise.
3523 * include/grub/term.h (grub_term_set_current_output): Declare
3525 * docs/gfxmenu-theme-example.txt: New file.
3526 * gfxmenu/gfxmenu.c: Likewise.
3527 * gfxmenu/gui_box.c: Likewise.
3528 * gfxmenu/gui_canvas.c: Likewise.
3529 * gfxmenu/gui_circular_progress.c: Likewise.
3530 * gfxmenu/gui_image.c: Likewise.
3531 * gfxmenu/gui_label.c: Likewise.
3532 * gfxmenu/gui_list.c: Likewise.
3533 * gfxmenu/gui_progress_bar.c: Likewise.
3534 * gfxmenu/gui_string_util.c: Likewise.
3535 * gfxmenu/gui_util.c: Likewise.
3536 * gfxmenu/icon_manager.c: Likewise.
3537 * gfxmenu/model.c: Likewise.
3538 * gfxmenu/named_colors.c: Likewise.
3539 * gfxmenu/theme_loader.c: Likewise.
3540 * gfxmenu/view.c: Likewise.
3541 * gfxmenu/widget-box.c: Likewise.
3542 * include/grub/gfxmenu_model.h: Likewise.
3543 * include/grub/gfxmenu_view.h: Likewise.
3544 * include/grub/gfxwidgets.h: Likewise.
3545 * include/grub/gui.h: Likewise.
3546 * include/grub/gui_string_util.h: Likewise.
3547 * include/grub/icon_manager.h: Likewise.
3549 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3551 Agglomerate scrolling in gfxterm.
3553 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3554 (grub_virtual_screen_setup): Initialise 'total_screen'.
3555 (write_char): Split to ...
3556 (paint_char): ... this ...
3557 (write_char): ... and this.
3558 (paint_char): Handle delayed scrolling.
3559 (draw_cursor): Likewise.
3560 (scroll_up): Split to ...
3561 (real_scroll): ... this ...
3562 (scroll_up): ... and this.
3563 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3565 (grub_gfxterm_refresh): Call real_scroll.
3567 2010-02-06 Colin D Bennett <colin@gibibit.com>
3569 * include/grub/misc.h (grub_iscntrl): New inline function.
3570 (grub_isalnum): Likewise.
3571 (grub_strtol): Likewise.
3573 2010-02-06 Colin D Bennett <colin@gibibit.com>
3575 * normal/menu_text.c (get_entry_number): Move from here ...
3576 * normal/menu.c (get_entry_number): ... moved here.
3577 * include/grub/menu.h (grub_menu_get_default_entry_index):
3579 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3580 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3581 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3582 (grub_menu_viewer_should_return): Likewise.
3583 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3584 * normal/menu_text.c (run_menu): Enable menu switching.
3585 * normal/menu_viewer.c (should_return): New variable.
3586 (menu_viewer_changed): Likewise.
3587 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3588 (grub_menu_viewer_should_return): New function.
3589 (menuviewer_write_hook): Likewise.
3590 (grub_menu_viewer_init): Likewise.
3592 2010-02-06 Colin D Bennet <colin@gibibit.com>
3593 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3595 Support for gfxterm in a window.
3597 * include/grub/gfxterm.h: New file.
3598 * include/grub/video.h (struct grub_video_rect): New declaration.
3599 (grub_video_rect_t): Likewise.
3600 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3601 (refcount): New variable.
3602 (render_target): Likewise.
3604 (repaint_callback): Likewise.
3605 (grub_virtual_screen_setup): Use 'render_target'.
3606 (init_window): New function.
3607 (grub_gfxterm_init_window): Likewise.
3608 (grub_gfxterm_init): Check reference counter.
3610 (destroy_window): New function.
3611 (grub_gfxterm_destroy_window): Likewise.
3612 (grub_gfxterm_fini): Check reference counter.
3614 (redraw_screen_rect): Restore viewport.
3615 Use 'render_target' and 'window'.
3616 Call 'repaint_callback'.
3617 (write_char): Use 'render_target'.
3618 (draw_cursor): Likewise.
3619 (scroll_up): Restore viewport.
3620 Use 'render_target' and 'window'.
3621 Call 'repaint_callback'.
3622 (grub_gfxterm_cls): Likewise.
3623 (grub_gfxterm_refresh): Use 'window'.
3624 (grub_gfxterm_set_repaint_callback): New function.
3625 (grub_gfxterm_background_image_cmd): Use 'window'.
3626 (grub_gfxterm_get_term): New function.
3627 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3629 2010-02-06 Colin D Bennett <colin@gibibit.com>
3631 Bitmap scaling support.
3633 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3634 (bitmap_scale_mod_SOURCES): New variable.
3635 (bitmap_scale_mod_CFLAGS): Likewise.
3636 (bitmap_scale_mod_LDFLAGS): Likewise.
3637 * include/grub/bitmap_scale.h: New file.
3638 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3639 (background_image_cmd_options): New variable.
3640 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3641 (cmd): Rename and change type to ...
3642 (background_image_cmd_handle): ... this. All users updated.
3643 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3644 * video/bitmap_scale.c: New file.
3646 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3650 * Makefile.in (LIBSDL): New variable.
3651 (enable_grub_emu_sdl): Likewise.
3652 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3653 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3654 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3655 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3656 * util/sdl.c: New file.
3658 2010-02-06 Colin D Bennett <colin@gibibit.com>
3659 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3661 Double buffering support.
3663 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3664 * include/grub/video.h: Update comment.
3665 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3667 (grub_video_fb_doublebuf_blit_init): New prototype.
3668 * term/gfxterm.c (scroll_up): Support double buffering.
3669 (grub_gfxterm_refresh): Likewise.
3670 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3671 (grub_video_fb_doublebuf_blit_init): Likewise.
3672 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3673 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3674 'displayed_page', 'render_page' and 'update_screen'.
3675 (grub_video_vbe_fini): Free offscreen buffer.
3676 (doublebuf_pageflipping_commit): New function.
3677 (doublebuf_pageflipping_update_screen): Likewise.
3678 (doublebuf_pageflipping_init): Likewise.
3679 (double_buffering_init): Likewise.
3680 (grub_video_vbe_setup): Enable doublebuffering.
3681 (grub_video_vbe_swap_buffers): Implement.
3682 (grub_video_vbe_set_active_render_target): Handle double buffering.
3683 (grub_video_vbe_get_active_render_target): Likewise.
3684 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3685 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3686 (grub_video_vbe_enable_double_buffering): Likewise.
3687 (grub_video_vbe_swap_buffers): Use update_screen.
3688 (grub_video_set_mode): Use double buffering.
3690 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3692 * maintainance/gentrigtables.py: Remove.
3693 * lib/trig.c: Likewise.
3695 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3697 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3699 (trigtables.c): New rule.
3700 (gentrigtables): Likewise.
3701 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3703 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3705 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3708 2010-02-06 Colin D Bennet <colin@gibibit.com>
3710 Trigonometry support.
3712 * include/grub/trig.h: New file.
3713 * lib/trig.c: Likewise.
3714 * maintainance/gentrigtables.py: Likewise.
3715 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3716 (trig_mod_SOURCES): New variable.
3717 (trig_mod_CFLAGS): Likewise.
3718 (trig_mod_LDFLAGS): Likewise.
3720 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3722 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3725 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3727 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3730 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3732 * util/hostdisk.c (open_device): Don't use partition device when reading
3733 before the partition.
3734 (grub_util_biosdisk_read): Don't read from partition and before the
3735 partition in single operation.
3736 (grub_util_biosdisk_write): Don't write to partition and before the
3737 partition in single operation.
3739 2010-02-03 Torsten Landschoff <torsten@debian.org>
3741 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3744 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3746 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3748 (grub_biosdisk_write): Refuse to write to CDROM.
3750 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3752 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3754 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3756 * font/font.c (find_glyph): Check that bmp_idx is available before
3758 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3759 with (font == NULL).
3761 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3763 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3765 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3767 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3768 * util/grub-script-check.c (getline): Fix empty lines case.
3770 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3772 * Makefile.in (check): Exit with fail status when one of the tests
3774 * tests/example_functional_test.c (example_test): Fix reversed assert.
3775 * tests/example_unit_test.c (example_test): Likewise.
3777 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3779 * util/grub.d/10_linux.in: This script does not use any of the
3780 contents of gettext.sh, only the external command `gettext', so stop
3781 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3782 the same prefix as GRUB.)
3783 * util/grub.d/10_kfreebsd.in: Likewise.
3785 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3787 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3790 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3792 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3795 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3797 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3798 having a 4KiB and not 32KiB buffer size.
3800 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3802 * util/hostfs.c: Include `<errno.h>'.
3803 (grub_hostfs_read): Handle errors from fseeko() and fread().
3805 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3807 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3808 loop when using read hooks on files whose size isn't sector-aligned.
3810 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3812 Remove unused parameter.
3814 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3815 (grub_iso9660_open): Remove initialization of `data->length'.
3817 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3819 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3822 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3824 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3825 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3827 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3829 * util/bin2h.c (usage): Fix warning (space after backslash).
3831 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3833 * font/font.c: Include `grub/fontformat.h.
3834 Remove font file format constants.
3835 (grub_font_load): Use the new macros.
3836 * include/grub/fontformat.h: New file.
3837 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3838 (write_font_pf2): Use the new macros.
3840 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3842 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3845 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3847 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3849 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3850 (_start): Macroify `0x7F'.
3852 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3853 (make_install_device): Use "(pxe)" as fallback prefix when booting
3856 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3858 * configure.ac: Reset LIBS after check for libgcc symbols.
3860 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3862 * util/hostdisk.c (open_device): Add trailing newline to debug
3865 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3867 * configure.ac: Check for `limits.h'.
3868 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3870 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3872 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3873 capitalize error strings.
3875 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3877 * util/grub.d/10_hurd.in: Add a recovery mode.
3879 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3881 * configure.ac: Check for libgcc symbols with -nostdlib.
3883 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3885 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3887 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3889 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3890 stack since heap may be unavailable at that point.
3891 (grub_ofconsole_gotoxy): Likewise.
3893 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3895 * configure.ac: Check for _restgpr_14_x.
3896 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3897 and _savegpr_* prototypes.
3899 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3901 Use generic grub_reboot() for i386-efi.
3903 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3904 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3905 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3907 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3909 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3910 presence of "prefix" variable as it breaks when normal.mod is
3913 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3915 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3916 stack since heap is unavailable at that point.
3918 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3920 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3921 (grub_freebsd_bootinfo): Rewritten.
3922 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3924 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3926 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3928 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3930 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3933 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3935 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3936 around for handling "/" to the correct fix. Fix a memory leak. Use
3937 xstrdup instead of strdup.
3939 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3941 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3943 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3945 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3947 * font/font.c (struct grub_font): New member 'bmp_idx'.
3948 (font_init): Initialise 'bmp_idx'.
3949 (load_font_index): Fill 'bmp_idx'.
3950 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3952 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3954 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3957 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3959 Move context handling out of the kernel.
3961 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3962 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3963 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3964 * conf/i386-efi.rmk: Likewise.
3965 * conf/i386-ieee1275.rmk: Likewise.
3966 * conf/i386-pc.rmk: Likewise.
3967 * conf/powerpc-ieee1275.rmk: Likewise.
3968 * conf/sparc64-ieee1275.rmk: Likewise.
3969 * conf/x86_64-efi.rmk: Likewise.
3970 * include/grub/env.h: Include grub/menu.h.
3971 (grub_env_var_type): Removed.
3972 (grub_env_var): Replaced field 'type' with 'global'.
3973 (grub_env_find): New prototype.
3974 (grub_env_context_open): Remove EXPORT_FUNC.
3975 (grub_env_context_close): Likewise.
3976 (grub_env_export): Likewise.
3977 (grub_env_set_data_slot): Removed.
3978 (grub_env_get_data_slot): Likewise.
3979 (grub_env_unset_data_slot): Likewise.
3980 (grub_env_unset_menu): New prototype.
3981 (grub_env_set_menu): Likewise.
3982 (grub_env_get_menu): Likewise.
3983 * include/grub/env_private.h: New file.
3984 * include/grub/normal.h (grub_context_init): New prototype.
3985 (grub_context_fini): Likewise.
3986 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3987 * normal/context.c (grub_cmd_export): ... to here.
3988 * kern/env.c: Include env_private.h.
3989 (HASHSZ): Moved to include/grub/env_private.h.
3990 (grub_env_context): Likewise.
3991 (grub_env_sorted_var): Likewise.
3992 (current_context): Renamed from this ...
3993 (grub_current_context): ...to this. 'static' removed. All users updated.
3994 (grub_env_find): Removed 'static'.
3995 (grub_env_context_open): Moved to normal/context.c.
3996 (grub_env_context_close): Likewise.
3997 (grub_env_export): Likewise.
3998 (mangle_data_slot_name): Removed.
3999 (grub_env_set_data_slot): Likewise.
4000 (grub_env_get_data_slot): Likewise.
4001 (grub_env_unset_data_slot): Likewise.
4002 * kern/main.c (grub_set_root_dev): Don't export root.
4003 It will be done later.
4004 (grub_main): Don't export prefix.
4005 It will be done later.
4006 * normal/context.c: New file.
4007 * normal/main.c (free_menu): Use grub_env_unset_menu.
4008 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4009 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4010 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4011 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4013 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4017 * commands/setpci.c: New file.
4018 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4019 (setpci_mod_SOURCES): New variable.
4020 (setpci_mod_CFLAGS): Likewise.
4021 (setpci_mod_LDFLAGS): Likewise.
4023 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4025 Byte-addressable PCI configuration space.
4027 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4029 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4030 GRUB_PCI_REG_CACHELINE.
4031 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4032 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4033 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4034 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4035 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4036 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4037 grub_pci_make_address.
4038 (lock_rom_area): Likewise.
4039 * commands/lspci.c (grub_lspci_iter): Use macroses
4040 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4041 of grub_pci_make_address.
4042 * disk/ata.c (grub_ata_pciinit): Likewise.
4043 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4044 (GRUB_PCI_REG_VENDOR): Likewise.
4045 (GRUB_PCI_REG_DEVICE): Likewise.
4046 (GRUB_PCI_REG_COMMAND): Likewise.
4047 (GRUB_PCI_REG_STATUS): Likewise.
4048 (GRUB_PCI_REG_REVISION): Likewise.
4049 (GRUB_PCI_REG_CLASS): Likewise.
4050 (GRUB_PCI_REG_CACHELINE): Likewise.
4051 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4052 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4053 (GRUB_PCI_REG_BIST): Likewise.
4054 (GRUB_PCI_REG_ADDRESSES): Likewise.
4055 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4056 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4057 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4058 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4059 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4060 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4061 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4062 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4063 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4064 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4065 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4066 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4067 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4068 (GRUB_PCI_REG_MIN_GNT): Likewise.
4069 (GRUB_PCI_REG_MAX_LAT): Likewise.
4070 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4071 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4072 * video/efi_uga.c (find_framebuf): Likewise.
4073 * video/sm712.c (grub_video_sm712_setup): Likewise.
4074 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4077 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4079 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4080 can be reliably determined to be supported.
4082 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4084 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4085 that VESA is supported.
4086 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4089 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4091 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4093 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4095 * util/misc.c (make_system_path_relative_to_its_root): Work around
4096 special-casing of "/", as previous incarnation of this routine did.
4098 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4100 Fix any-emu compilation.
4102 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4103 * grub_bin2h_SOURCES: New variable.
4105 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4107 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4109 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4111 * util/grub.d/00_header.in: Fix handling of locale_dir.
4113 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4115 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4116 as possible unifont location (Gentoo).
4117 Reported by: Alexander Brüning
4119 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4121 Don't try to generate lists for kernel.img.
4123 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4124 (pkglib_MODULES): Remove kernel.img.
4125 (kernel_img_EXPORTS): Removed.
4126 (kernel_img_RELOCATABLE): New variable.
4127 * conf/x86_64-efi.rmk: Likewise.
4128 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4130 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4132 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4133 grub_xasprintf or grub_snprintf.
4134 (grub_vsprintf): Likewise.
4135 (grub_snprintf): New proto.
4136 (grub_vsnprintf): Likewise.
4137 (grub_xasprintf): Likewise.
4138 (grub_xvasprintf): Likewise.
4139 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4140 (grub_sprintf): Removed.
4141 (grub_vsnprintf): New function.
4142 (grub_snprintf): Likewise.
4143 (grub_xvasprintf): Likewise.
4144 (grub_xasprintf): Likewise.
4145 (grub_vsprintf): Renamed to ...
4146 (grub_vsnprintf_real): ...this. New argument max_len.
4148 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4150 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4151 fix grub-script-check warning.
4153 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4155 * include/grub/font.h (grub_font_load): Fix prototype.
4157 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4159 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4161 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4163 * include/grub/x86_64/at_keyboard.h: New file.
4165 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4167 * loader/mips/linux.c: Include missing grub/i18n.h.
4169 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4171 * normal/menu.c (notify_execution_failure): Clarify error message.
4173 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4175 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4176 return value (and revert all return statements). Update users.
4178 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4180 * kern/device.c (grub_device_iterate): Allocate new part_ent
4181 structure based on sizeof (*p) rather than sizeof (p->next), to
4182 account for structure padding.
4184 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4185 disk is NULL, which might happen for LVM physical volumes with no
4188 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4190 * loader/mips/linux.c (grub_cmd_initrd)
4191 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4193 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4195 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4196 (grub_video_video_init, grub_video_bitmap_init)
4197 (grub_font_manager_init, grub_term_gfxterm_init)
4198 (grub_at_keyboard_init): New extern declarations.
4199 (grub_machine_init): Initialize gfxterm and at_keyboard.
4201 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4203 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4204 `gfxterm.mod' into core image.
4206 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4207 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4208 (kernel_img_FORMAT): Copy to ...
4210 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4211 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4212 (kernel_img_FORMAT): ... here, and ...
4214 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4215 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4216 (kernel_img_FORMAT): ... here.
4218 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4219 and input (at_keyboard) terminals in kernel.
4220 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4222 (pkglib_MODULES): Remove `pci.mod'.
4223 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4224 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4225 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4226 (at_keyboard_mod_LDFLAGS): Remove variables.
4228 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4230 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4232 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4234 * include/grub/mips/libgcc.h: Only export symbols for functions
4235 that libgcc provides.
4237 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4241 * bus/bonito.c: New file.
4242 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4243 GRUB_PCI_NUM_DEVICES.
4244 * term/i386/pc/serial.c: Move to ...
4245 * term/serial.c: ... here. All users updated.
4246 * util/i386/pc/grub-mkimage.c: Move to ...
4247 * util/grub-mkrawimage.c: ... here. All users updated.
4248 * term/i386/pc/at_keyboard.c: Move to ...
4249 * term/at_keyboard.c: ... here. All users updated.
4250 * conf/mips-qemu-mips.rmk: New file.
4251 * conf/mips-yeeloong.rmk: Likewise.
4252 * conf/mips.rmk: Likewise.
4253 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4255 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4257 (grub_ata_pciinit): Support CS5536.
4258 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4259 * font/font_cmd.c (loadfont_command): Open file before passing it to
4261 (pseudo_file_read): New function.
4262 (pseudo_file_close): Likewise.
4263 (pseudo_fs): New structure.
4264 (load_font_module): New function.
4265 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4266 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4267 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4268 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4269 * include/grub/i386/at_keyboard.h: Split into ...
4270 * include/grub/at_keyboard.h: ... this ...
4271 * include/grub/i386/at_keyboard.h: ... and this.
4272 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4274 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4276 (grub_elf64_size): Likewise.
4277 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4279 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4280 * include/grub/i386/coreboot/serial.h: Rewritten.
4281 * include/grub/i386/ieee1275/serial.h: Include
4282 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4283 * include/grub/i386/pc/serial.h: Moved from here ...
4284 * include/grub/serial.h: ... to here. All users updated.
4285 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4286 (GRUB_PCI_NUM_BUS): Likewise.
4287 (GRUB_PCI_NUM_DEVICES): Likewise.
4288 (grub_pci_device_map_range): Add missing volatile keyword.
4289 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4290 * include/grub/mips/at_keyboard.h: New file.
4291 * include/grub/mips/cache.h: Likewise.
4292 * include/grub/mips/io.h: Likewise.
4293 * include/grub/mips/kernel.h: Likewise.
4294 * include/grub/mips/libgcc.h: Likewise.
4295 * include/grub/mips/pci.h: Likewise.
4296 * include/grub/mips/qemu-mips/boot.h: Likewise.
4297 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4298 * include/grub/mips/qemu-mips/loader.h: Likewise.
4299 * include/grub/mips/qemu-mips/memory.h: Likewise.
4300 * include/grub/mips/qemu-mips/serial.h: Likewise.
4301 * include/grub/mips/qemu-mips/time.h: Likewise.
4302 * include/grub/mips/relocator.h: Likewise.
4303 * include/grub/mips/time.h: Likewise.
4304 * include/grub/mips/types.h: Likewise.
4305 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4306 * include/grub/mips/yeeloong/boot.h: Likewise.
4307 * include/grub/mips/yeeloong/kernel.h: Likewise.
4308 * include/grub/mips/yeeloong/loader.h: Likewise.
4309 * include/grub/mips/yeeloong/memory.h: Likewise.
4310 * include/grub/mips/yeeloong/pci.h: Likewise.
4311 * include/grub/mips/yeeloong/serial.h: Likewise.
4312 * include/grub/mips/yeeloong/time.h: Likewise.
4313 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4314 * kern/elf.c (grub_elf32_size): New parameter. All users
4316 (grub_elf64_size): Likewise.
4317 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4318 Load modules before saying "Welcome to GRUB!".
4319 Call grub_refresh after saying "Welcome to GRUB!".
4320 * kern/mips/cache.S: New file.
4321 * kern/mips/cache_flush.S: Likewise.
4322 * kern/mips/dl.c: Likewise.
4323 * kern/mips/init.c: Likewise.
4324 * kern/mips/qemu-mips/init.c: Likewise.
4325 * kern/mips/startup.S: Likewise.
4326 * kern/mips/yeeloong/init.c: Likewise.
4327 * kern/term.c (grub_putcode): Handle NULL terminal.
4328 (grub_getcharwidth): Likewise.
4329 (grub_getkey): Likewise.
4330 (grub_checkkey): Likewise.
4331 (grub_getkeystatus): Likewise.
4332 (grub_getxy): Likewise.
4333 (grub_getwh): Likewise.
4334 (grub_gotoxy): Likewise.
4335 (grub_cls): Likewise.
4336 (grub_setcolorstate): Likewise.
4337 (grub_setcolor): Likewise.
4338 (grub_getcolor): Likewise.
4339 (grub_refresh): Likewise.
4340 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4341 (write_jump): Add hatch nop.
4342 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4343 * lib/mips/setjmp.S: New file.
4344 * loader/mips/linux.c: Likewise.
4345 * term/i386/pc/at_keyboard.c: Move from here ...
4346 * term/at_keyboard.c: ... to here.
4347 * term/i386/pc/serial.c: Moved from here ...
4348 * term/serial.c: ... to here. All users updated.
4349 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4350 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4351 (serial_translate_key_sequence): Avoid deadlock.
4352 (grub_serial_getkey): Handle backspace.
4353 (grub_serial_putchar): Fix newline handling.
4354 * util/i386/pc/grub-mkimage.c: Move from here ...
4355 * util/grub-mkrawimage.c: ... to here. All users updated.
4356 (generate_image): New parameters 'font_path' and 'format'.
4357 Support embedding font.
4358 Use grub_host_to_target* instead of grub_cpu_to_le*.
4359 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4360 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4361 (options): New option "--font".
4363 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4364 (main): Handle "--font".
4365 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4366 (grub_virtual_screen_setup): Set bg_color_display.
4367 (redraw_screen_rect): Use bg_color_display instead of incorrect
4369 (grub_gfxterm_cls): Likewise.
4370 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4371 Support embedding config file.
4372 (add_segments): Likewise.
4373 (options): New option "--config".
4374 (main): Handle "--config".
4375 * video/sm712.c: New file.
4377 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4379 Fix parallel builds.
4381 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4382 font.c depend on ascii.h).
4384 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4386 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4388 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4390 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4391 By default: disabled.
4392 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4395 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4397 * font/font.c: Update copyright years.
4398 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4400 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4402 * font/font.c: Include `ascii.h'.
4403 (ASCII_BITMAP_SIZE): New macro.
4404 (ascii_font_glyph): Define.
4405 (ascii_glyph_lookup): New function.
4406 (grub_font_get_string_width): Change comment. If glyph not found, use
4408 (grub_font_get_glyph_with_fallback): If glyph not available returns
4410 * util/grub-mkfont.c (file_formats): New enum.
4411 (options): Add `ascii-bitmaps' new option.
4412 (usage): Add `asii-bitmaps' new option.
4413 (write_font_ascii_bitmap): New function.
4414 (write_font): Rename to ...
4415 (write_font_p2): ... this. Remove print_glyphs call.
4416 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4417 used. Call print_glyphs.
4418 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4420 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4422 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4423 (grub_bin2h_SOURCES): New variable.
4424 * util/bin2h.c: New file.
4426 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4428 * include/multiboot.h: Resynced with spec.
4429 * include/multiboot2.h: Likewise.
4430 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4431 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4433 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4435 * include/grub/term.h (grub_term_register_input,
4436 grub_term_register_output): Check return of terminal init()
4437 routines, and abort if errors are raised.
4439 * commands/terminal.c: Update copyright year.
4441 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4443 * commands/terminal.c (grub_cmd_terminal_input)
4444 (grub_cmd_terminal_output): Check return of terminal init()
4445 routines, and abort if errors are raised.
4447 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4449 * include/grub/i386/bsd.h: Fix include pathes.
4451 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4453 Add missing *BSD copyright headers.
4455 * include/grub/aout.h: Add BSD licence.
4456 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4457 * include/grub/i386/freebsd_linker.h: ... here,
4458 * include/grub/i386/freebsd_reboot.h: ... here,
4459 * include/grub/i386/netbsd_bootinfo.h: ... here,
4460 * include/grub/i386/netbsd_reboot.h: ... here,
4461 * include/grub/i386/openbsd_bootarg.h: ... here,
4462 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4463 licence to each file.
4465 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4467 * acinclude.m4: Remove `nop' assembly instruction; it's not
4468 implemented by all architectures.
4470 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4472 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4473 ELILO. This is no longer necessary.
4475 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4477 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4479 * util/grub-script-check.c: grub-script-check tool.
4480 * conf/common.rmk: Make rules for grub-script-check.
4482 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4484 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4485 spotting it back in 2008. Shame on me for forgetting he did.
4487 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4489 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4491 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4492 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4493 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4494 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4495 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4496 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4498 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4500 * include/grub/test.h: Add license header.
4501 * tests/example_functional_test.c: Likewise.
4502 * tests/example_unit_test.c: Likewise.
4503 * tests/lib/functional_test.c: Likewise.
4504 * tests/lib/test.c: Likewise.
4505 * tests/lib/unit_test.c: Likewise.
4507 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4509 Use flag-based instead of hook-based video mode selection and "auto"
4512 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4513 (grub_video_set_mode): Changed prototype. All users updated.
4514 (grub_video_check_mode_flag): New inline function.
4515 * video/video.c (parse_modespec): New function.
4516 (grub_video_set_mode): Parse flags and keywords.
4518 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4520 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4523 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4525 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4527 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4529 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4531 * util/grub-emu.c (usage): Likewise.
4532 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4533 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4534 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4535 * util/i386/pc/grub-setup.c (usage): Likewise.
4537 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4539 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4541 (grub_util_info): Likewise.
4542 (grub_util_error): Likewise.
4543 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4544 and/or new lines in `grub_util_warna', `grub_util_info',
4545 `grub_util_error' calls.
4546 * util/getroot.c: Likewise.
4547 * util/grub-editenv.c: Likewise.
4548 * util/grub-emu.c: Likewise.
4549 * util/grub-fstest.c: Likewise.
4550 * util/grub-mkdevicemap.c: Likewise.
4551 * util/grub-mkfont.c: Likewise.
4552 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4553 * util/grub-mkrelpath.c: Likewise.
4554 * util/grub-pe2elf.c: Likewise.
4555 * util/grub-probe.c: Likewise.
4556 * util/hostdisk.c: Likewise.
4557 * util/i386/efi/grub-mkimage.c: Likewise.
4558 * util/i386/pc/grub-mkimage.c: Likewise.
4559 * util/i386/pc/grub-setup.c: Likewise.
4560 * util/ieee1275/ofpath.c: Likewise.
4561 * util/mkisofs/eltorito.c: Likewise.
4562 * util/mkisofs/rock.c: Likewise.
4563 * util/mkisofs/write.c: Likewise.
4564 * util/raid.c: Likewise.
4565 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4566 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4568 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4570 Enable multiboot on non-pc.
4572 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4573 multiboot.mod and multiboot2.mod to ...
4574 * conf/i386.rmk (pkglib_MODULES): ... here.
4575 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4577 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4578 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4580 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4581 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4583 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4584 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4586 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4587 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4589 (ata_mod_SOURCES): Removed.
4590 (ata_mod_CFLAGS): Likewise.
4591 (ata_mod_LDFLAGS): Likewise.
4592 (relocator_mod_SOURCES): Removed.
4593 (relocator_mod_CFLAGS): Likewise.
4594 (relocator_mod_ASFLAGS): Likewise.
4595 (relocator_mod_LDFLAGS): Likewise.
4597 * include/grub/x86_64/multiboot.h: New file.
4598 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4601 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4603 Video multiboot support.
4605 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4607 * include/multiboot.h: Resynced with multiboot specification.
4608 * include/multiboot2.h: Likewise.
4609 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4610 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4611 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4612 (HAS_VGA_TEXT): Likewise.
4613 (accepts_video): New variable.
4614 (grub_multiboot_set_accepts_video): New function.
4615 (grub_multiboot_get_mbi_size): Account for video structures.
4616 (set_video_mode): New function.
4617 (retrieve_video_parameters): Likewise.
4618 (grub_multiboot_make_mbi): Fill video fields.
4620 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4624 * include/grub/video.h (grub_video_driver_id): New type.
4625 (grub_video_adapter): New member 'id'. All users updated.
4626 (grub_video_get_driver_id): New proto.
4627 * video/video.c (grub_video_get_driver_id): New function.
4629 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4631 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4634 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4636 * normal/cmdline.c (print_completion): Gettextizze.
4638 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4640 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4642 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4644 * gettext/gettext.c (grub_gettext_translate): Push and pop
4646 (grub_gettext_delete_list): Change comment style.
4647 * kern/err.c (grub_error): Gettextizze.
4648 (grub_fatal): Gettextizze.
4650 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4652 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4653 (grub_linux16_real_boot): ... this.
4654 * kern/i386/loader.S: Likewise.
4655 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4656 (grub_linux16_boot): New function. Switches to text mode and calls
4657 grub_linux16_real_boot().
4659 * loader/i386/bsd.c: Include `<grub/video.h>'.
4660 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4661 text mode before calling grub_unix_real_boot().
4663 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4664 (grub_multiboot_boot): Switch to text mode before calling
4665 grub_relocator32_boot().
4667 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4668 (grub_chainloader_boot): Switch to text mode before calling
4669 grub_chainloader_real_boot().
4671 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4672 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4674 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4677 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4678 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4680 * util/grub.d/00_header.in: Define a "savedefault" function for use
4682 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4684 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4685 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4687 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4688 saved_entry if boot_once is unset.
4689 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4690 previous saved entry (i.e. grub-reboot).
4692 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4694 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4696 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4698 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4700 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4702 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4704 * util/grub-reboot.in: Fix --version output.
4705 * util/grub-set-default.in: Likewise.
4707 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4709 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4712 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4714 * util/grub.d/00_header.in: Quote the value assigned to `default',
4715 in case it contains spaces.
4717 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4719 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4720 `save_default_entry' call from the macosx case to the linux case.
4722 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4723 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4725 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4726 in `chosen' environment variable.
4727 * normal/menu_text.c (get_entry_number): Check if the variable
4728 matches the title of a menu entry.
4729 (run_menu): Pass menu to get_entry_number.
4731 * util/grub-reboot.in: New file.
4732 * util/grub-set-default.in: New file.
4733 * conf/common.rmk (grub-reboot): New utility.
4734 (grub-set-default): New utility.
4736 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4737 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4738 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4739 move it to `saved_entry' for the next boot. Load environment on
4741 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4742 * util/grub.d/10_hurd.in: Likewise.
4743 * util/grub.d/10_linux.in (linux_entry): Likewise.
4744 * util/grub.d/10_windows.in: Likewise.
4745 * util/grub.d/30_os-prober.in: Likewise.
4747 * util/grub-install.in: Create environment block.
4748 * util/i386/efi/grub-install.in: Likewise.
4749 * util/ieee1275/grub-install.in: Likewise.
4750 * util/sparc64/ieee1275/grub-install.in: Likewise.
4752 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4754 Unit testing framework for GRUB.
4756 * Makefile.in: Test framework build rules for 'make check'.
4757 * conf/tests.rmk: Build rules for individual tests and framework.
4759 * include/grub/test.h: Header file for whitebox tests.
4760 * tests/lib/functional_test.c: Framework support for whitebox
4762 * tests/lib/test.c: Common whitebox testing code for unit and
4764 * tests/lib/unit_test.c: Framework support for whitebox unit
4767 * tests/util/grub-shell-tester.in: Support utility for grub-script
4769 * tests/util/grub-shell.in: Utility to execute grub-script
4770 commands in a Qemu instance.
4772 * tests/example_functional_test.c: Example whitebox functional
4774 * tests/example_grub_script_test.in: Example grub-script test.
4775 * tests/example_scripted_test.in: Example scripted test.
4776 * tests/example_unit_test.c: Example whitebox unit test.
4778 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4780 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4781 Add loader/i386/multiboot_mbi.c.
4782 (multiboot2_mod_SOURCES): Likewise.
4783 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4784 (multiboot2_mod_SOURCES): Likewise.
4785 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4786 (grub_multiboot_make_mbi): Likewise.
4787 (grub_multiboot_free_mbi): Likewise.
4788 (grub_multiboot_init_mbi): Likewise.
4789 (grub_multiboot_add_module): Likewise.
4790 (grub_multiboot_set_bootdev): Likewise.
4791 * loader/i386/multiboot.c (mbi): Removed.
4792 (mbi_dest): Likewise.
4793 (alloc_mbi): New variable.
4794 (grub_multiboot_payload_size): Removed. All users updated.
4795 (grub_multiboot_pure_size): New variable.
4796 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4797 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4798 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4799 (grub_fill_multiboot_mmap): Likewise.
4800 (grub_multiboot_get_bootdev): Likewise.
4801 (grub_multiboot): Use multiboot_mbi functions.
4802 * loader/i386/multiboot_mbi.c: New file.
4804 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4806 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4807 it would result in module crash.
4809 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4811 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4812 (grub_ofconsole_getwh): Split to ...
4813 (grub_ofconsole_getwh): ... this.
4814 (grub_ofconsole_dimensions): ...and this.
4815 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4817 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4819 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4821 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4823 * loader/i386/pc/multiboot2.c: Removed stalled file.
4825 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4827 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4828 Reported by: Grégoire Sutre
4830 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4832 * util/misc.c (canonicalize_file_name): New function.
4833 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4834 instead of realpath().
4836 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4838 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4839 and make it clearer that it's optional. Based on confusion
4842 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4844 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4845 in premature implicit newline.
4847 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4849 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4850 which resulted in garbled command line at the end of screen.
4852 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4854 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4855 initialization with similar approach as with other Linux loaders.
4857 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4859 Fix i386-ieee1275 build.
4861 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4862 and grub_term_height() for video_{width,height} initialization.
4864 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4868 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4870 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4871 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4873 Support for multiple terminals.
4875 * Makefile.in (pkglib_DATA): terminal.lst.
4876 (terminal.lst): New target.
4877 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4878 (GRUB_MOD_INIT(handler)): Likewise.
4879 (GRUB_MOD_FINI(handler)): Likewise.
4880 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4881 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4882 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4883 (grub_cmd_sleep): Use grub_term_save_pos.
4884 * commands/terminal.c: New file.
4885 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4886 commands/terminal.c and lib/charset.c.
4887 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4888 (pkglib_MODULES): Add terminal.mod.
4889 (terminal_mod_SOURCES): New variable.
4890 (terminal_mod_CFLAGS): Likewise.
4891 (terminal_mod_LDFLAGS): Likewise.
4892 * genhandlerlist.sh: Don't handle terminals.
4893 * genmk.rb: Generate terminal-*.lst.
4894 * genterminallist.sh: New file.
4895 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4896 (grub_is_valid_utf8): Likewise.
4897 (grub_utf8_to_ucs4_alloc): Likewise.
4898 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4899 (grub_menu_register_viewer): Changed argument.
4900 (grub_menu_try_text): New proto.
4901 (grub_gfxmenu_try_hook): New declaration.
4902 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4903 (grub_menu_init_page): Additional argument term.
4904 (grub_normal_init_page): Likewise.
4905 (grub_cmdline_get): Arguments simplified.
4906 (grub_utf8_to_ucs4_alloc): Removed.
4907 (grub_print_ucs4): Additional argument term.
4908 (grub_getstringwidth): Likewise.
4909 (grub_print_message_indented): Likewise.
4910 (grub_menu_text_register_instances): New proto.
4911 (grub_show_menu): Likewise.
4912 (read_terminal_list): Likewise.
4913 (grub_set_more): Likewise.
4914 * include/grub/parser.h: Include handler.h.
4915 * include/grub/reader.h: Rewritten.
4916 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4917 (GRUB_TERM_WIDTH): Changed to function.
4918 (GRUB_TERM_HEIGHT): Likewise.
4919 (GRUB_TERM_BORDER_WIDTH): Likewise.
4920 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4921 (GRUB_TERM_NUM_ENTRIES): Likewise.
4922 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4923 (GRUB_TERM_CURSOR_X): Likewise.
4924 (grub_term_input_class): Likewise.
4925 (grub_term_output_class): Likewise.
4926 (grub_term_outputs_disabled): New declaration.
4927 (grub_term_inputs_disabled): Likewise.
4928 (grub_term_outputs): Likewise.
4929 (grub_term_inputs): Likewise.
4930 (grub_term_register_input): Rewritten.
4931 (grub_term_register_output): Likewise.
4932 (grub_term_unregister_input): Likewise.
4933 (grub_term_unregister_output): Likewise.
4934 (FOR_ACTIVE_TERM_INPUTS): New macro.
4935 (FOR_DISABLED_TERM_INPUTS): Likewise.
4936 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4937 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4938 * include/grub/terminfo.h: Add oterm argument to all protypes.
4939 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4940 Use grub_rescue_run.
4941 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4943 * kern/reader.c: Removed. All users updated.
4944 * kern/rescue_reader.c (grub_rescue_init): Removed.
4945 (grub_rescue_reader): Likewise.
4946 (grub_register_rescue_reader): Likewise.
4947 (grub_rescue_run): New function based on kern/reader.c.
4948 * kern/term.c: Adapted for multiterm.
4949 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4950 (grub_is_valid_utf8): Likewise.
4951 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4952 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4954 * loader/i386/linux.c (grub_linux_boot): Likewise.
4955 * normal/auth.c (grub_username_get): New function.
4956 (grub_auth_check_authentication): Use grub_username_get.
4957 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4958 * normal/color.c: Adapt for multiterm.
4959 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4960 (grub_normal_init_page): Additional argument term.
4961 (read_lists): Call read_terminal_lists.
4962 (grub_enter_normal_mode): Call grub_cmdline_run.
4963 Handle grub_normal_exit_level.
4964 (grub_cmd_normal): Make reentrant.
4965 (grub_cmd_normal_exit): New function.
4966 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4967 * normal/menu.c: Adapt for multiterm.
4968 * normal/menu_entry.c: Likewise.
4969 * normal/menu_text.c: Likewise.
4970 * normal/menu_viewer.c: Removed. All users updated.
4971 * normal/term.c: New file.
4972 * util/console.c: Change order of includes to workaround a bug in
4974 * term/terminfo.c: New argument oterm on all exported functions.
4976 * util/grub-editenv.c (grub_term_input_class): Removed.
4977 (grub_term_output_class): Likewise.
4979 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4981 Make loader output a bit more user-friendly.
4983 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4984 is being loaded. Likewise for the Hurd.
4986 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4987 that kernel of FreeBSD ${version} is being loaded.
4989 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4991 (grub_cmd_initrd): Likewise.
4992 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4993 that Linux ${version} is being loaded. Likewise for initrd.
4995 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4997 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4999 2010-01-08 Carles Pina i Estany <carles@pina.cat>
5001 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5002 (GRUB_MOD_INIT): Gettextizze.
5003 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5004 (GRUB_MOD_INIT): Gettextizze.
5005 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5006 (grub_cmd_linux): Capitalise Linux.
5007 (GRUB_MOD_INIT): Gettextizze.
5008 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5009 (grub_cmd_linux): Capitalise Linux.
5010 (GRUB_MOD_INIT): Gettextizze.
5011 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5012 (grub_cmd_linux): Capitalise Linux.
5013 (GRUB_MOD_INIT): Gettextizze.
5014 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5015 (GRUB_MOD_INIT): Gettextizze.
5016 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5017 (grub_cmd_linux): Capitalise Linux.
5018 (GRUB_MOD_INIT): Gettextizze.
5019 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5020 (grub_cpu_xnu_init): Gettextizze.
5021 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5022 (GRUB_MOD_INIT): Gettextizze.
5023 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5024 (GRUB_MOD_INIT): Gettextizze.
5025 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5026 (grub_linux_load64): Capitalise Linux.
5027 (GRUB_MOD_INIT): Gettextizze.
5028 * loader/xnu.c: Include `<grub/i18n.h>'.
5029 (GRUB_MOD_INIT): Gettextizze.
5030 * po/POTFILES: Add `loader/efi/appleloader.c',
5031 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5032 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5033 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5034 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5035 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5038 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5040 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5042 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5044 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5045 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5046 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5048 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5050 Reset Multiboot 2 support. New loader implements the draft in
5051 /branches/multiboot2 and shares as much code as possible with the
5052 production Multiboot 1 implementation.
5054 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5055 * loader/multiboot2.c: Likewise.
5056 * loader/i386/multiboot_helper.S: Likewise.
5057 * include/multiboot2.h: Replace with latest version from the draft
5058 in /branches/multiboot2.
5060 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5061 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5062 and `loader/multiboot2.c'.
5063 (pkglib_MODULES): Add `multiboot2.mod'.
5064 (multiboot2_mod_SOURCES): New variable.
5065 (multiboot2_mod_LDFLAGS): Likewise.
5066 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5068 * conf/i386-pc.rmk: Likewise.
5070 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5071 (multiboot_mod_SOURCES): Remove variable.
5072 (multiboot_mod_LDFLAGS): Likewise.
5073 (multiboot_mod_CFLAGS): Likewise.
5075 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5076 `<multiboot2.h>' instead of `<multiboot.h>'.
5077 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5078 (MULTIBOOT_HEADER_MAGIC): New macros.
5080 * loader/multiboot_loader.c (module_version_status): Remove variable.
5081 (find_multi_boot2_header): Remove function.
5082 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5083 logic. Always check for the Multiboot version we're compiling for.
5084 (grub_cmd_module_loader): Likewise.
5085 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5086 command instead of `multiboot'.
5088 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5090 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5091 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5094 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5095 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5097 Fix breakage introduced with previous commit.
5099 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5101 * normal/handler.c (read_handler_list): Revert part of previous commit
5102 affecting this file.
5103 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5104 (grub_normal_execute): ... here.
5106 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5108 Merge prefix-redefinition-fix branch.
5110 * normal/autofs.c (read_fs_list): Make function capable of being
5111 run multiple times, gracefuly replacing the previous data
5113 * normal/dyncmd.c (read_command_list): Likewise.
5114 * normal/handler.c (read_handler_list): Likewise.
5115 * normal/main.c (read_lists): New function. Calls all the
5116 list reading functions.
5117 (grub_normal_execute): Use read_lists() instead of calling all
5118 list reading functions explicitly. Register read_lists() as a
5119 variable hook attached to ${prefix}.
5121 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5123 Merge crypto branch.
5125 * Makefile.in (pkglib_DATA): Add crypto.lst.
5126 (crypto.lst): New target.
5127 * commands/hashsum.c: New file.
5128 * commands/password.c (check_password): Use grub_crypto_memcmp.
5129 * commands/password_pbkdf2.c: New file.
5130 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5131 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5132 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5133 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5134 -I$(srcdir)/lib/libgcrypt_wrap.
5135 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5136 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5137 password_pbkdf2.mod.
5138 (crypto_mod_SOURCES): New variable.
5139 (crypto_mod_CFLAGS): Likewise.
5140 (crypto_mod_LDFLAGS): Likewise.
5141 (hashsum_mod_SOURCES): New variable.
5142 (hashsum_mod_CFLAGS): Likewise.
5143 (hashsum_mod_LDFLAGS): Likewise.
5144 (pbkdf2_mod_SOURCES): New variable.
5145 (pbkdf2_mod_CFLAGS): Likewise.
5146 (pbkdf2_mod_LDFLAGS): Likewise.
5147 (password_pbkdf2_mod_SOURCES): New variable.
5148 (password_pbkdf2_mod_CFLAGS): Likewise.
5149 (password_pbkdf2_mod_LDFLAGS): Likewise.
5150 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5151 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5152 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5153 Include conf/gcry.rmk.
5154 * include/grub/auth.h: Rewritten.
5155 * include/grub/crypto.h: New file.
5156 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5157 * include/grub/normal.h (read_crypto_list): New prototype.
5158 * lib/crypto.c: New file.
5159 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5160 * lib/pbkdf2.c: Likewise.
5161 * normal/auth.c (grub_auth_strcmp): Removed.
5162 (grub_iswordseparator): Likewise.
5163 (grub_auth_strword): Likewise.
5164 (is_authenticated): Use grub_strword.
5165 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5166 and grub_strword. Pass entered password to authentication callback.
5167 * normal/crypto.c: New file.
5168 * normal/main.c: Call read_crypto_list.
5169 * util/grub-mkpasswd-pbkdf2.c: New file.
5170 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5172 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5174 Fix descent and ascent calculation.
5176 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5177 (options): New option "asce".
5179 (add_char): Ignore invalid glyphs for descent calculation.
5180 Calculate ascent from actual content.
5181 (print_glyphs): Use 'asce'.
5182 (write_font): Likewise. Allow ascent override.
5183 (main): Handle "asce" option.
5185 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5187 * kern/err.c: Include `<grub/i18n.h>'.
5188 (grub_print_error): Add full stop. Gettextizze.
5189 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5190 (grub_bsd_load_elf): Capitalise ELF.
5191 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5192 (grub_cmd_freebsd_module): Likewise.
5193 (grub_cmd_freebsd_module_elf): Likewise.
5194 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5196 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5198 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5199 * commands/search_file.c (HELP_MESSAGE): New macro.
5200 * commands/search_label.c (HELP_MESSAGE): Likewise.
5201 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5202 * po/POTFILES: Add `commands/search_file.c',
5203 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5204 `commands/search.c'.
5206 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5208 * config.rpath: Update from Gnulib.
5210 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5212 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5214 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5216 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5218 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5220 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5221 arguments to fread so that we get a return value in bytes, rather
5222 than something that will normally be rounded down to 0.
5223 Adjust error handling to avoid producing garbage when size_t is not
5224 the same size as long long.
5226 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5228 * util/mkisofs/write.c (padblock_write): Check return value of
5231 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5233 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5236 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5238 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5240 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5241 instead of manual alignment.
5242 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5243 verbose). Avoid attempts to read past end of the device
5244 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5245 but GRUB_DISK_CACHE_SIZE may exceed that).
5247 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5249 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5250 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5253 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5255 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5257 (grub_efi_piwg_device_path): New structure
5258 (grub_efi_piwg_device_path_t): New type.
5259 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5260 (devpath_1): Transform to a structure. All users updated.
5261 (devpath_2): Likewise.
5262 (devpath_3): Likewise.
5263 (devpath_4): Likewise.
5264 (devpath_5): Likewise.
5266 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5268 * loader/efi/appleloader.c: Restored. Update all users.
5270 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5272 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5274 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5275 (struct boot_blocklist): Move from here ...
5276 * include/grub/i386/pc/boot.h [ASM_FILE]
5277 (struct grub_boot_blocklist): ... to here. Update all users.
5278 (setup): Only initialize `start' member of `first_block'
5279 structure. Add assert() calls to verify the other members.
5281 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5282 (generate_image): Fix broken blocklist length initialization.
5283 Add assert() call to verify blocklist `segment' field.
5285 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5287 * loader/efi/appleloader.c: Remove. Update all users.
5289 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5291 * boot/i386/pc/boot.S: Update copyright year.
5292 * boot/i386/pc/cdboot.S: Likewise.
5293 * boot/i386/pc/diskboot.S: Likewise.
5294 * boot/i386/pc/lnxboot.S: Likewise.
5295 * boot/i386/pc/pxeboot.S: Likewise.
5296 * bus/pci.c: Likewise.
5297 * commands/cmp.c: Likewise.
5298 * commands/help.c: Likewise.
5299 * commands/hexdump.c: Likewise.
5300 * commands/i386/pc/halt.c: Likewise.
5301 * commands/i386/pc/play.c: Likewise.
5302 * commands/i386/pc/vbeinfo.c: Likewise.
5303 * commands/ls.c: Likewise.
5304 * commands/test.c: Likewise.
5305 * disk/dmraid_nvidia.c: Likewise.
5306 * disk/i386/pc/biosdisk.c: Likewise.
5307 * disk/ieee1275/nand.c: Likewise.
5308 * disk/ieee1275/ofdisk.c: Likewise.
5309 * disk/lvm.c: Likewise.
5310 * disk/raid.c: Likewise.
5311 * disk/raid6_recover.c: Likewise.
5312 * disk/scsi.c: Likewise.
5313 * fs/affs.c: Likewise.
5314 * fs/cpio.c: Likewise.
5315 * fs/ext2.c: Likewise.
5316 * fs/hfs.c: Likewise.
5317 * fs/iso9660.c: Likewise.
5318 * fs/ntfs.c: Likewise.
5319 * fs/sfs.c: Likewise.
5320 * fs/udf.c: Likewise.
5321 * fs/ufs.c: Likewise.
5322 * fs/xfs.c: Likewise.
5323 * gencmdlist.sh: Likewise.
5324 * genmk.rb: Likewise.
5325 * include/grub/disk.h: Likewise.
5326 * include/grub/efi/api.h: Likewise.
5327 * include/grub/efi/efi.h: Likewise.
5328 * include/grub/efi/pe32.h: Likewise.
5329 * include/grub/elf.h: Likewise.
5330 * include/grub/fs.h: Likewise.
5331 * include/grub/i386/at_keyboard.h: Likewise.
5332 * include/grub/i386/pc/memory.h: Likewise.
5333 * include/grub/i386/pc/vbe.h: Likewise.
5334 * include/grub/i386/pci.h: Likewise.
5335 * include/grub/i386/tsc.h: Likewise.
5336 * include/grub/ieee1275/ieee1275.h: Likewise.
5337 * include/grub/ntfs.h: Likewise.
5338 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5339 * include/grub/sparc64/libgcc.h: Likewise.
5340 * include/grub/symbol.h: Likewise.
5341 * include/grub/types.h: Likewise.
5342 * include/multiboot2.h: Likewise.
5343 * io/gzio.c: Likewise.
5344 * kern/device.c: Likewise.
5345 * kern/disk.c: Likewise.
5346 * kern/efi/efi.c: Likewise.
5347 * kern/efi/mm.c: Likewise.
5348 * kern/elf.c: Likewise.
5349 * kern/file.c: Likewise.
5350 * kern/i386/dl.c: Likewise.
5351 * kern/i386/pc/init.c: Likewise.
5352 * kern/i386/pc/startup.S: Likewise.
5353 * kern/ieee1275/ieee1275.c: Likewise.
5354 * kern/ieee1275/init.c: Likewise.
5355 * kern/main.c: Likewise.
5356 * kern/mm.c: Likewise.
5357 * kern/powerpc/dl.c: Likewise.
5358 * kern/sparc64/dl.c: Likewise.
5359 * kern/x86_64/dl.c: Likewise.
5360 * lib/hexdump.c: Likewise.
5361 * loader/efi/appleloader.c: Likewise.
5362 * loader/i386/ieee1275/linux.c: Likewise.
5363 * loader/i386/pc/chainloader.c: Likewise.
5364 * loader/i386/pc/linux.c: Likewise.
5365 * loader/i386/pc/multiboot2.c: Likewise.
5366 * loader/ieee1275/multiboot2.c: Likewise.
5367 * loader/multiboot2.c: Likewise.
5368 * loader/multiboot_loader.c: Likewise.
5369 * loader/powerpc/ieee1275/linux.c: Likewise.
5370 * normal/completion.c: Likewise.
5371 * normal/menu_entry.c: Likewise.
5372 * partmap/apple.c: Likewise.
5373 * util/grub.d/10_hurd.in: Likewise.
5374 * util/hostfs.c: Likewise.
5375 * video/readers/png.c: Likewise.
5377 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5379 * include/grub/misc.h (GNUC_PREREQ): New macro.
5380 (ATTRIBUTE_ERROR): New macro.
5381 * include/grub/list.h (grub_bad_type_cast_real): Use
5384 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5386 * normal/menu_text.c (print_message): Change messages.
5388 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5390 * normal/menu_entry.c (store_completion): Gettextizze.
5392 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5394 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5396 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5398 * po/POTFILES: Sort correctly.
5400 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5402 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5403 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5404 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5406 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5407 summary. Gettextizze the strings.
5408 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5409 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5410 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5412 (GRUB_MOD_INIT): Remove command name from summary.
5413 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5415 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5416 * term/i386/pc/serial.c (options): Add full stops.
5417 (GRUB_MOD_INIT): Remove command name from the summary.
5419 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5421 * commands/acpi.c: Gettextizze help strings and/or options. Include
5422 `grub/i18n.h' if needed.
5423 * commands/blocklist.c: Likewise.
5424 * commands/boot.c: Likewise.
5425 * commands/cat.c: Likewise.
5426 * commands/cmp.c: Likewise.
5427 * commands/configfile.c: Likewise.
5428 * commands/crc.c: Likewise.
5429 * commands/date.c: Likewise.
5430 * commands/echo.c: Likewise.
5431 * commands/efi/fixvideo.c: Likewise.
5432 * commands/efi/loadbios.c: Likewise.
5433 * commands/gptsync.c: Likewise.
5434 * commands/halt.c: Likewise.
5435 * commands/handler.c: Likewise.
5436 * commands/hdparm.c: Likewise.
5437 * commands/hexdump.c: Likewise.
5438 * commands/i386/cpuid.c: Likewise.
5439 * commands/i386/pc/drivemap.c: Likewise.
5440 * commands/i386/pc/halt.c: Likewise.
5441 * commands/i386/pc/pxecmd.c: Likewise.
5442 * commands/i386/pc/vbeinfo.c: Likewise.
5443 * commands/i386/pc/vbetest.c: Likewise.
5444 * commands/ieee1275/suspend.c: Likewise.
5445 * commands/keystatus.c: Likewise.
5446 * commands/loadenv.c: Likewise.
5447 * commands/ls.c: Likewise.
5448 * commands/lsmmap.c: Likewise.
5449 * commands/lspci.c: Likewise.
5450 * commands/memrw.c: Likewise.
5451 * commands/minicmd.c: Likewise.
5452 * commands/parttool.c: Likewise.
5453 * commands/password.c: Likewise.
5454 * commands/probe.c: Likewise.
5455 * commands/read.c: Likewise.
5456 * commands/reboot.c: Likewise.
5457 * commands/search.c: Likewise.
5458 * commands/sleep.c: Likewise.
5459 * commands/test.c: Likewise.
5460 * commands/true.c: Likewise.
5461 * commands/usbtest.c: Likewise.
5462 * commands/videotest.c: Likewise.
5463 * commands/xnu_uuid.c: Likewise.
5464 * disk/loopback.c: Likewise.
5465 * hello/hello.c: Likewise.
5466 * loader/i386/bsd.c: Likewise.
5467 * term/i386/pc/serial.c: Likewise.
5468 * po/POTFILES: Add new files.
5470 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5472 * term/i386/pc/at_keyboard.c
5473 (keyboard_controller_wait_untill_ready): Rename to ...
5474 (keyboard_controller_wait_until_ready): ... this. Update all users.
5476 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5478 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5479 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5480 string using string width.
5481 * normal/menu_text.c (grub_print_message_indented): Use
5482 grub_print_spaces and not print_spaces.
5483 (print_timeout): Likewise.
5484 (print_spaces): Move to...
5485 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5487 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5491 * gnulib/getdelim.c: New file.
5492 * gnulib/getline.c: Likewise.
5494 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5496 * include/grub/list.h (grub_assert_fail): Removed.
5497 (grub_bad_type_cast_real): New function.
5498 (grub_bad_type_cast): New macro.
5499 (GRUB_AS_LIST): Use grub_bad_type_cast.
5500 (GRUB_AS_LIST_P): Likewise.
5501 (GRUB_AS_NAMED_LIST): Likewise.
5502 (GRUB_AS_NAMED_LIST_P): Likewise.
5503 (GRUB_AS_PRIO_LIST): Likewise.
5504 (GRUB_AS_PRIO_LIST_P): Likewise.
5505 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5507 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5509 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5512 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5514 * configure.ac: Check for TARGET_CFLAGS initialization before we
5515 initialize it ourselves (sigh).
5516 Move a few modifications to TARGET_CFLAGS to be unconditional
5517 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5520 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5521 * term/i386/pc/at_keyboard.c
5522 (keyboard_controller_wait_untill_ready): Likewise.
5523 (keyboard_controller_led): Rename `led_status' paramter to avoid
5526 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5528 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5531 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5533 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5535 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5537 * normal/menu_text.c (grub_print_message_indented): Prevent
5538 past-the-end-of-array dereference.
5540 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5542 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5543 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5545 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5547 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5548 * normal/main.c (grub_normal_read_line): Remove a space from the
5551 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5553 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5554 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5555 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5556 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5557 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5558 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5559 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5561 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5563 * video/readers/jpeg.c (cmd): Declare.
5564 (grub_cmd_jpegtest): Use `grub_command_t' type.
5565 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5567 (GRUB_MOD_FINI): Use `cmd' to unregister.
5568 * video/readers/png.c (cmd): Declare.
5569 (grub_cmd_pngtest): Use `grub_command_t' type.
5570 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5572 (GRUB_MOD_FINI): Use `cmd' to unregister.
5573 * video/readers/tga.c (cmd): Declare.
5574 (grub_cmd_tgatest): Use `grub_command_t' type.
5575 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5577 (GRUB_MOD_FINI): Use `cmd' to unregister.
5579 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5581 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5583 * kern/corecmd.c (grub_register_core_commands): Likewise.
5584 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5585 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5586 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5587 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5588 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5589 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5590 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5591 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5592 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5593 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5594 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5595 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5596 * normal/handler.c (insert_handler): Likewise.
5597 * normal/main.c (GRUB_MOD_INIT): Likewise.
5598 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5600 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5602 * commands/help.c (grub_cmd_help): Print the command name before the
5604 (GRUB_MOD_INIT): Remove command name from the summary.
5605 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5607 * lib/arg.c (find_long): Print the command name before the summary.
5608 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5610 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5611 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5612 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5613 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5614 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5615 * commands/date.c (GRUB_MOD_INIT): Likewise.
5616 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5617 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5618 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5619 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5620 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5621 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5622 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5623 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5624 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5625 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5626 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5627 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5628 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5629 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5630 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5631 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5632 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5633 * commands/password.c (GRUB_MOD_INIT): Likewise.
5634 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5635 * commands/read.c (GRUB_MOD_INIT): Likewise.
5636 * commands/search.c (GRUB_MOD_INIT): Likewise.
5637 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5638 * commands/test.c (GRUB_MOD_INIT): Likewise.
5639 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5640 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5641 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5642 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5643 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5644 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5645 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5646 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5647 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5648 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5649 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5650 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5651 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5652 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5654 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5656 Use search command for preliminar UUID search.
5658 * commands/search.c: Split into ...
5659 * commands/search_wrap.c: ...this
5660 * commands/search.c: ...and this.
5661 * commands/search_file.c: New file.
5662 * commands/search_label.c: New file.
5663 * commands/search_uuid.c: New file.
5664 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5665 Add commands/search_wrap.c, commands/search_file.c,
5666 commands/search_label.c and commands/search_uuid.c.
5667 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5668 (search_mod_SOURCES): Set to commands/search_wrap.c.
5669 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5671 (search_fs_file_mod_SOURCES): New variable.
5672 (search_fs_file_mod_CFLAGS): Likewise.
5673 (search_fs_file_mod_LDFLAGS): Likewise.
5674 (search_label_mod_SOURCES): Likewise.
5675 (search_label_mod_CFLAGS): Likewise.
5676 (search_label_mod_LDFLAGS): Likewise.
5677 (search_fs_uuid_mod_SOURCES): New variable.
5678 (search_fs_uuid_mod_CFLAGS): Likewise.
5679 (search_fs_uuid_mod_LDFLAGS): Likewise.
5680 (fs_file_mod_SOURCES): Removed.
5681 (fs_file_mod_CFLAGS): Likewise.
5682 (fs_file_mod_LDFLAGS): Likewise.
5683 (fs_uuid_mod_SOURCES): Removed.
5684 (fs_uuid_mod_CFLAGS): Likewise.
5685 (fs_uuid_mod_LDFLAGS): Likewise.
5686 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5687 Set to util/grub-install.in.
5688 * disk/fs_file.c: Removed.
5689 * disk/fs_uuid.c: Likewise.
5690 * include/grub/search.h: New file.
5691 * util/grub-install.in: Handle sparc64.
5692 Create and use load.cfg.
5693 * util/sparc64/ieee1275/grub-install.in: Removed.
5695 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5697 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5698 Ignore return status if CF is cleared.
5699 (grub_biosdisk_get_diskinfo_standard): Likewise.
5701 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5703 * term/i386/pc/at_keyboard.c
5704 (keyboard_controller_wait_untill_ready): New function.
5705 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5706 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5707 for keyboard polling, rather than duplicate the same loop. This
5708 saves a few bytes in code size.
5710 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5712 Support for (pxe[:server[:gateway]]) syntax and
5713 use environment variable for PXE.
5715 * commands/i386/pc/pxecmd.c (options): Removed.
5716 (print_ip): Removed.
5717 (grub_cmd_pxe): Removed
5718 (grub_cmd_pxe_unload): New function.
5719 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5720 (grub_pxe_your_ip): Made static.
5721 (grub_pxe_default_server_ip): Likewise.
5722 (grub_pxe_default_gateway_ip): Likewise.
5723 (grub_pxe_blksize): Likewise.
5724 (parse_ip): New function.
5725 (grub_pxe_open): Support server and gateway specification.
5726 (grub_pxe_close): Free disk->data.
5727 (grub_pxefs_open): Use disk->data.
5728 (grub_pxefs_read): Likewise.
5729 (grub_env_write_readonly): New function.
5730 (set_mac_env): Likewise.
5731 (set_env_limn_ro): Likewise.
5732 (parse_dhcp_vendor): Likewise.
5733 (grub_pxe_detect): Set the environment variables.
5734 (set_ip_env): New function.
5735 (write_ip_env): Likewise.
5736 (grub_env_write_pxe_default_server): Likewise.
5737 (grub_env_write_pxe_default_gateway): Likewise.
5738 (grub_env_write_pxe_blocksize): Likewise.
5739 (GRUB_MOD_INIT(pxe)): Set environment variables.
5740 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5741 (grub_pxe_mac_addr_t): ... this. All users updated.
5742 (grub_pxe_your_ip): Removed.
5743 (grub_pxe_server_ip): Likewise.
5744 (grub_pxe_gateway_ip): Likewise.
5745 (grub_pxe_blksize): Likewise.
5747 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5749 * commands/help.c: Include `<grub/i18n.h>'.
5750 (grub_cmd_help): Gettextizze.
5751 (GRUB_MOD_INIT): Likewise.
5752 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5753 (GRUB_MOD_INIT): Gettextizze.
5754 * commands/search.c: Include `<grub/i18n.h>'.
5755 (options): Gettextizze.
5756 (GRUB_MOD_INIT): Gettextizze.
5757 * lib/arg.c: Include `<grub/i18n.h>'.
5758 (help_options): Gettextizze.
5759 (find_long): Likewise.
5760 (grub_arg_show_help): Likewise.
5761 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5762 (read_command_list): Gettextizze.
5763 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5764 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5766 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5768 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5769 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5770 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5771 (led_status): New variable.
5772 (keyboard_controller_led): New function.
5773 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5774 update led status for caps lock, num lock and scroll lock.
5776 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5778 * util/hostdisk.c (open_device): Fix a comment.
5780 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5782 * util/grub-install.in (host_os): New variable.
5783 * util/i386/efi/grub-install.in (host_os): Likewise.
5785 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5787 * util/mkisofs/write.c (padblock_write): Abort when given an
5788 excedingly large embed image, instead of silently truncating it.
5790 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5792 * include/multiboot.h: Indentation fixes.
5794 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5796 * include/multiboot.h (struct multiboot_aout_symbol_table)
5797 (struct multiboot_elf_section_header_table): New structure
5798 declarations (stolen from GRUB Legacy).
5799 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5802 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5803 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5806 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5808 * include/multiboot.h: Make comments src2texi-friendly.
5810 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5812 For consistency with [multiboot]/docs/boot.S.
5814 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5815 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5816 (MULTIBOOT_MAGIC2): Rename from this ...
5817 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5819 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5821 * include/multiboot.h: Remove `<grub/types.h>'.
5822 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5823 types. Update all users.
5825 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5827 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5828 `couldn't' and `can not' by `cannot'.
5829 * commands/i386/pc/drivemap.c: Likewise.
5830 * disk/ata.c: Likewise.
5831 * disk/ieee1275/nand.c: Likewise.
5832 * fs/affs.c: Likewise.
5833 * fs/fat.c: Likewise.
5834 * fs/hfs.c: Likewise.
5835 * fs/hfsplus.c: Likewise.
5836 * fs/iso9660.c: Likewise.
5837 * fs/jfs.c: Likewise.
5838 * fs/minix.c: Likewise.
5839 * fs/reiserfs.c: Likewise.
5840 * fs/sfs.c: Likewise.
5841 * fs/udf.c: Likewise.
5842 * fs/ufs.c: Likewise.
5843 * fs/xfs.c: Likewise.
5844 * loader/powerpc/ieee1275/linux.c: Likewise.
5845 * loader/sparc64/ieee1275/linux.c: Likewise.
5846 * util/grub-probe.c: Likewise.
5847 * util/misc.c: Likewise.
5849 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5851 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5853 * commands/acpi.c: Likewise.
5854 * commands/blocklist.c: Likewise.
5855 * commands/efi/loadbios.c: Likewise.
5856 * commands/i386/pc/drivemap.c: Likewise.
5857 * commands/loadenv.c: Likewise.
5858 * commands/memrw.c: Likewise.
5859 * commands/password.c: Likewise.
5860 * commands/videotest.c: Likewise.
5861 * disk/ata.c: Likewise.
5862 * disk/ata_pthru.c: Likewise.
5863 * disk/dmraid_nvidia.c: Likewise.
5864 * disk/ieee1275/nand.c: Likewise.
5865 * disk/ieee1275/ofdisk.c: Likewise.
5866 * disk/loopback.c: Likewise.
5867 * disk/lvm.c: Likewise.
5868 * disk/mdraid_linux.c: Likewise.
5869 * disk/raid.c: Likewise.
5870 * disk/raid6_recover.c: Likewise.
5871 * disk/scsi.c: Likewise.
5872 * efiemu/main.c: Likewise.
5873 * efiemu/mm.c: Likewise.
5874 * efiemu/pnvram.c: Likewise.
5875 * efiemu/symbols.c: Likewise.
5876 * font/font.c: Likewise.
5877 * fs/cpio.c: Likewise.
5878 * fs/hfsplus.c: Likewise.
5879 * fs/iso9660.c: Likewise.
5880 * fs/jfs.c: Likewise.
5881 * fs/minix.c: Likewise.
5882 * fs/ntfs.c: Likewise.
5883 * fs/ntfscomp.c: Likewise.
5884 * fs/reiserfs.c: Likewise.
5885 * fs/ufs.c: Likewise.
5886 * fs/xfs.c: Likewise.
5887 * gettext/gettext.c: Likewise.
5888 * include/grub/auth.h: Likewise.
5889 * kern/elf.c: Likewise.
5890 * kern/file.c: Likewise.
5891 * kern/ieee1275/init.c: Likewise.
5892 * kern/ieee1275/mmap.c: Likewise.
5893 * kern/ieee1275/openfw.c: Likewise.
5894 * kern/powerpc/dl.c: Likewise.
5895 * kern/sparc64/dl.c: Likewise.
5896 * lib/arg.c: Likewise.
5897 * loader/i386/bsd.c: Likewise.
5898 * loader/i386/bsdXX.c: Likewise.
5899 * loader/i386/efi/linux.c: Likewise.
5900 * loader/i386/efi/xnu.c: Likewise.
5901 * loader/i386/ieee1275/linux.c: Likewise.
5902 * loader/i386/linux.c: Likewise.
5903 * loader/i386/multiboot.c: Likewise.
5904 * loader/i386/pc/linux.c: Likewise.
5905 * loader/i386/pc/multiboot2.c: Likewise.
5906 * loader/i386/xnu.c: Likewise.
5907 * loader/ieee1275/multiboot2.c: Likewise.
5908 * loader/macho.c: Likewise.
5909 * loader/machoXX.c: Likewise.
5910 * loader/multiboot2.c: Likewise.
5911 * loader/multiboot_loader.c: Likewise.
5912 * loader/powerpc/ieee1275/linux.c: Likewise.
5913 * loader/sparc64/ieee1275/linux.c: Likewise.
5914 * loader/xnu.c: Likewise.
5915 * loader/xnu_resume.c: Likewise.
5916 * mmap/i386/pc/mmap.c: Likewise.
5917 * normal/menu_viewer.c: Likewise.
5918 * partmap/acorn.c: Likewise.
5919 * partmap/amiga.c: Likewise.
5920 * partmap/apple.c: Likewise.
5921 * script/lexer.c: Likewise.
5922 * term/gfxterm.c: Likewise.
5923 * term/i386/pc/serial.c: Likewise.
5924 * term/i386/pc/vga.c: Likewise.
5925 * term/ieee1275/ofconsole.c: Likewise.
5926 * term/terminfo.c: Likewise.
5927 * video/bitmap.c: Likewise.
5928 * video/efi_gop.c: Likewise.
5929 * video/efi_uga.c: Likewise.
5930 * video/fb/video_fb.c: Likewise.
5931 * video/i386/pc/vbe.c: Likewise.
5932 * video/readers/tga.c: Likewise.
5933 * video/video.c: Likewise.
5935 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5937 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5938 * commands/lspci.c: Likewise.
5939 * commands/probe.c: Likewise.
5940 * commands/xnu_uuid.c: Likewise.
5941 * conf/i386-coreboot.rmk: Likewise.
5942 * conf/i386-efi.rmk: Likewise.
5943 * conf/i386-ieee1275.rmk: Likewise.
5944 * conf/i386-pc.rmk: Likewise.
5945 * conf/powerpc-ieee1275.rmk: Likewise.
5946 * conf/sparc64-ieee1275.rmk: Likewise.
5947 * conf/x86_64-efi.rmk: Likewise.
5948 * fs/i386/pc/pxe.c: Likewise.
5949 * gettext/gettext.c: Likewise.
5950 * include/grub/efi/graphics_output.h: Likewise.
5951 * include/grub/i386/pc/memory.h: Likewise.
5952 * kern/env.c: Likewise.
5953 * kern/i386/qemu/startup.S: Likewise.
5954 * lib/i386/pc/biosnum.c: Likewise.
5955 * lib/i386/relocator.c: Likewise.
5956 * lib/i386/relocator_asm.S: Likewise.
5957 * lib/relocator.c: Likewise.
5958 * loader/i386/bsd.c: Likewise.
5959 * loader/i386/multiboot.c: Likewise.
5960 * loader/i386/pc/chainloader.c: Likewise.
5961 * loader/i386/xnu.c: Likewise.
5962 * loader/xnu.c: Likewise.
5963 * normal/main.c: Likewise.
5964 * normal/menu_text.c: Likewise.
5965 * util/getroot.c: Likewise.
5966 * util/grub-mkconfig_lib.in: Likewise.
5967 * util/grub.d/00_header.in: Likewise.
5968 * util/i386/pc/grub-mkimage.c: Likewise.
5969 * util/mkisofs/eltorito.c: Likewise.
5970 * util/mkisofs/exclude.h: Likewise.
5971 * util/mkisofs/hash.c: Likewise.
5972 * util/mkisofs/iso9660.h: Likewise.
5973 * util/mkisofs/joliet.c: Likewise.
5974 * util/mkisofs/mkisofs.c: Likewise.
5975 * util/mkisofs/mkisofs.h: Likewise.
5976 * util/mkisofs/multi.c: Likewise.
5977 * util/mkisofs/name.c: Likewise.
5978 * util/mkisofs/rock.c: Likewise.
5979 * util/mkisofs/tree.c: Likewise.
5980 * util/mkisofs/write.c: Likewise.
5981 * video/efi_gop.c: Likewise.
5983 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5985 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5988 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5990 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5991 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5993 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5995 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5996 (GRUB_MOD_INIT(memrw)): Update help line.
5998 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6000 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6001 Use grub_extcmd_t. All users updated.
6002 (options): New variable.
6003 (grub_cmd_read): Restructure for readability. Support "-v" option.
6004 (grub_cmd_write): Restructure for readability.
6006 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6008 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6010 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6012 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6013 with the actual contents of the correspondending make variable.
6014 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6015 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6016 specifying `*.lst' and `efiemu??.o'
6018 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6020 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6021 after function name.
6022 Noticed by Rene Engelhard <rene@debian.org>.
6024 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6026 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6027 (options): New variable.
6028 (iospace): Likewise.
6029 (grub_lspci_iter): List IO spaces if "-i" was given.
6030 (grub_cmd_lspci): Parse options.
6031 (GRUB_MOD_INIT(lspci)): Use extcmd.
6032 (GRUB_MOD_FINI(lspci)): Likewise.
6034 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6036 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6038 Patch by Tony Mancill <tmancill@debian.org>.
6040 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6042 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6043 (grub_uhci_portstatus): Likewise.
6044 (grub_uhci_portstatus): Add necessary delay.
6045 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
6047 2009-12-21 Carles Pina i Estany <carles@pina.cat>
6049 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6050 (GRUB_MOD_INIT): Likewise.
6051 * commands/boot.c (GRUB_MOD_INIT): Likewise.
6052 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6053 * commands/echo.c (options): Fix capitalizations and/or full stops.
6054 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6055 (enable_rom_area): Likewise.
6056 (GRUB_MOD_INIT): Likewise.
6057 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6058 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6059 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6060 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6061 * commands/hexdump.c (options): Likewise.
6062 * commands/i386/cpuid.c (options): Likewise.
6063 (GRUB_MOD_INIT): Likewise.
6064 * commands/i386/pc/drivemap.c (options): Likewise.
6065 (GRUB_MOD_INIT): Likewise.
6066 * commands/i386/pc/halt (options): Likewise.
6067 (GRUB_MOD_INIT): Likewise.
6068 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6069 * commands/i386/pc/pxecmd.c (options): Likewise.
6070 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6071 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6072 * commands/keystatus.c (options): Likewise.
6073 (GRUB_MOD_INIT): Likewise.
6074 * commands/loadenv.c (options): Likewise.
6075 * commands/ls.c (options): Likewise.
6076 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6077 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6078 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6079 * commands/parttool.c (helpmsg): Likewise.
6080 * commands/probe.c (options): Likewise.
6081 * commands/read.c (GRUB_MOD_INIT): Likewise.
6082 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6083 * commands/search.c (options): Likewise.
6084 * commands/sleep.c (options): Likewise.
6085 * commands/test.c (GRUB_MOD_INIT): Likewise.
6086 * commands/true.c (GRUB_MOD_INIT): Likewise.
6087 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6088 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6089 * lib/arg.c (help_options): Likewise.
6090 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6092 * po/POTFILES: Add `commands/loadenv.c'.
6094 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6096 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6097 instead of specifying them explicit.
6099 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6101 * NEWS: Add grub-probe support for GNU/Hurd.
6103 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6105 * NEWS: gettext was added after 1.97.
6107 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6109 * util/mkisofs/msdos_partition.h: New file (based on
6110 include/grub/msdos_partition.h).
6111 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6112 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6113 (ld_options, main): Recognize --protective-msdos-label.
6114 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6115 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6116 (padblock_write): If `use_protective_msdos_label' is set, patch a
6117 protective DOS-style label in the output image.
6119 * util/grub-mkrescue.in: Use --protective-msdos-label.
6121 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6123 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6126 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6128 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6130 (ld_options, main): Recognize `--embedded-boot'.
6131 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6133 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6134 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6135 (padblock_write): Likewise. Rewrite to support embedded boot image.
6137 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6138 for BIOS-based disk boot instead of only ElTorito.
6140 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6142 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6143 build (not needed for bootstrap).
6145 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6147 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6148 from i386-pc build (not needed for bootstrap).
6149 Rewrite a pair of strings.
6151 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6153 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6155 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6157 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6159 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6161 * kern/env.c (grub_env_context_open): Mark exported variable for
6164 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6166 * kern/env.c (grub_env_export): Create nonexistent variables before
6169 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6171 * include/grub/auth.h: Include `<grub/i18n.h>'.
6172 (GRUB_GET_PASSWORD): Gettextizze string.
6173 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6175 (grub_utf8_to_ucs4_alloc): Fix indentation.
6176 (grub_print_ucs4): Likewise.
6177 (grub_getstringwidth): Likewise.
6178 (print_message_indented): New declaration.
6179 * normal/auth.c: Include `<grub/i18n.h>'.
6180 (grub_auth_check_authentication): Gettexttize string.
6181 * normal/cmdline.c: Include `<grub/i18n.h>'.
6182 (grub_cmdline_get): Gettextizze.
6183 * normal/color.c: Include `<grub/i18n.h>'.
6184 (grub_parse_color_name_pair): Gettexttize strings.
6185 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6186 string (use `print_message_indented').
6187 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6188 `include/grub/normal.h'.
6189 (print_message_indented): Renamed to ...
6190 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6191 used in normal/main.c).
6192 (print_message): Use `grub_print_message_indented' instead of
6193 `print_message_indented'.
6194 (print_timeout): Likewise.
6195 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6196 (grub_normal_print_device_info): Gettexttize strings.
6197 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6199 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6201 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6202 of arguments. Return number of tokens and not arguments. All users
6205 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6207 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6208 non-MSDOS paritions.
6210 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6212 * include/grub/types.h (UNUSED): Removed since it conflicts with
6213 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6214 Reported by Grégoire Sutre.
6216 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6218 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6219 (grub_print_ucs4_alloc): Likewise.
6220 (grub_getstringwidth): Likewise.
6221 * normal/main.c (grub_normal_init_page): Gettextize version string.
6222 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6223 (getstringwidth): Renamed to ...
6224 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6225 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6226 (grub_print_ucs4): Remove `static' qualifer (now used in
6228 * po/POTFILES: Add normal/main.c.
6230 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6232 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6233 (print_message_indented): Add `margin_left' and `margin_right'
6235 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6237 (print_timeout): Use `print_message_indented' to print the message.
6238 Deletes `second_stage' parameter.
6239 (run_menu): Update `print_timeout' calls.
6241 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6243 Fix console palette on OpenFirmware.
6245 * term/ieee1275/ofconsole.c (MAX): Removed.
6246 (colors): Redone based on VGA palette.
6247 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6248 colors are supported.
6249 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6251 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6253 Fix potential EfiEmu double prepare.
6255 * efiemu/main.c (prepared): New variable
6256 (grub_efiemu_unload): Set prepare to '0'.
6257 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6259 set_virtual_address_map support.
6261 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6263 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6265 (grub_efiemu_crc32): Likewise.
6266 (grub_efiemu_crc64): Likewise.
6267 (grub_efiemu_set_virtual_address_map): Likewise.
6268 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6270 (grub_autoefi_set_virtual_address_map): Likewise.
6271 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6272 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6273 Restructure flow to accomodate it.
6274 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6275 (grub_efiemu_crc): Recompute CRC32.
6276 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6277 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6278 * efiemu/symbols.c (relocated_handle): New variable.
6279 (grub_efiemu_free_syms): Free relocated_handle.
6280 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6281 (grub_efiemu_write_sym_markers): New function.
6282 (grub_efiemu_set_virtual_address_map): Likewise.
6284 Newer XNU parameters.
6286 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6287 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6288 (grub_xnu_fill_devicetree): New prototype.
6289 (grub_xnu_heap_real_start): New variable.
6290 * loader/xnu.c (get_name_ptr): New function.
6291 (grub_xnu_load_driver): Fill namelen and name.
6295 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6296 and 'loader/macho64.c'.
6297 * conf/i386-pc.rmk: Likewise.
6298 * conf/x86_64-efi.rmk: Likewise.
6299 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6300 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6301 * include/grub/macho.h (grub_macho_segment64): New structure.
6302 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6303 (grub_macho_size32): ... to this.
6304 (grub_macho32_get_entry_point): Renamed from ...
6305 (grub_macho_get_entry_point32): ... to this.
6306 (grub_macho_contains_macho64): New prototype.
6307 (grub_macho_size64): Likewise.
6308 (grub_macho_get_entry_point64): Likewise.
6309 (grub_macho32_load): Renamed from ...
6310 (grub_macho_load32): ... to this.
6311 (grub_macho32_filesize): Renamed from ...
6312 (grub_macho_filesize32): ... to this.
6313 (grub_macho32_readfile): Renamed from ...
6314 (grub_macho_readfile32): ... to this.
6315 (grub_macho_filesize64): New prototype.
6316 (grub_macho_readfile64): Likewise.
6317 (grub_macho_parse32): Likewise.
6318 (grub_macho_parse64): Likewise.
6319 * loader/macho.c: Split into ...
6320 * loader/machoXX.c: ... and this. Replace 32 with XX.
6321 * loader/macho32.c: New file.
6322 * loader/macho64.c: Likewise.
6323 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6324 (grub_cmd_xnu_kernel): Make 32-bit only.
6325 (grub_cmd_xnu_kernel64): New function.
6326 (grub_xnu_load_driver): Support Mach-O 64.
6327 (grub_cmd_xnu_mkext): Likewise.
6328 * util/grub.d/30_os-prober.in (osx_entry): New function.
6329 Generate entries for 64-bit boot too.
6331 Eliminate ad-hoc tree format in XNU and EfiEmu.
6333 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6334 * efiemu/pnvram.c: Rewritten to use environment variables.
6337 Inline utf16_to_utf8.
6339 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6340 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6342 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6344 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6345 * commands/usbtest.c (grub_usb_get_string): ... move here.
6346 (usb_print_str): Fix error handling.
6347 * include/grub/usb.h (grub_usb_get_string): Remove.
6349 UTF-8 to UTF-16 transformation.
6351 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6352 (charset_mod_SOURCES): New variable.
6353 (charset_mod_CFLAGS): Likewise.
6354 (charset_mod_LDFLAGS): Likewise.
6355 * include/grub/utf.h: New file.
6356 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6358 Support for device properties.
6360 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6361 (grub_xnu_devprop_device_header): Likewise.
6362 (grub_xnu_devprop_device_descriptor): Likewise.
6363 (grub_xnu_devprop_add_device): New prototype.
6364 (grub_xnu_devprop_remove_device): Likewise.
6365 (grub_xnu_devprop_remove_property): Likewise.
6366 (grub_xnu_devprop_add_property_utf8): Likewise.
6367 (grub_xnu_devprop_add_property_utf16): Likewise.
6368 (grub_cpu_xnu_init): Likewise.
6369 (grub_cpu_xnu_fini): Likewise.
6370 (grub_cpu_xnu_unload): Likewise.
6371 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6372 (property_descriptor): Likewise.
6373 (devices): New variable.
6374 (grub_xnu_devprop_remove_property): New function.
6375 (grub_xnu_devprop_add_device): Likewise.
6376 (grub_xnu_devprop_remove_device): Likewise.
6377 (grub_xnu_devprop_add_property): Likewise.
6378 (grub_xnu_devprop_add_property_utf8): Likewise.
6379 (grub_xnu_devprop_add_property_utf16): Likewise.
6380 (hextoval): Likewise.
6381 (grub_cpu_xnu_fill_devprop): Likewise.
6382 (grub_cmd_devprop_load): Likewise.
6383 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6384 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6385 (cmd_devprop_load): New variable.
6386 (grub_cpu_xnu_init): New function.
6387 (grub_cpu_xnu_fini): Likewise.
6388 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6389 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6390 (grub_cmd_xnu_devtree): Likewise.
6391 (hextoval): New function.
6392 (unescape): Likewise.
6393 (grub_xnu_fill_devicetree): Likewise.
6395 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6396 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6398 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6400 Workaround for broken ATI VBE.
6402 * video/i386/pc/vbe.c (last_set_mode): New variable.
6403 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6404 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6405 (grub_video_vbe_setup): Don't check for reserved flag.
6407 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6409 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6412 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6414 UUID support for HFS.
6416 * fs/hfs.c (grub_hfs_uuid): New function.
6417 (grub_hfs_fs): New value .uuid.
6418 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6420 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6422 Fix a segfault with parsing unknown long options.
6424 * util/grub-mkrelpath.c (options): Zero terminate it.
6426 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6428 * include/grub/misc.h (grub_puts): New declaration.
6429 (grub_puts_): Likewise.
6430 * kern/misc.c (grub_puts): New definition.
6431 (grub_puts_): Likewise.
6433 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6435 * util/grub-probe.c (probe): Improve error message.
6437 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6439 * loader/i386/multiboot_elfxx.c
6440 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6443 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6447 * loader/i386/xnu_helper.S: Removed. All users updated.
6448 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6449 (relocator_mod_SOURCES): New variable.
6450 (relocator_mod_CFLAGS): Likewise.
6451 (relocator_mod_LDFLAGS): Likewise.
6452 (relocator_mod_ASFLAGS): Likewise.
6453 * conf/x86_64.rmk: Likewise.
6454 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6455 (grub_multiboot_payload_entry_offset): Likewise.
6456 (grub_multiboot_forward_relocator): Likewise.
6457 (grub_multiboot_forward_relocator_end): Likewise.
6458 (grub_multiboot_backward_relocator): Likewise.
6459 (grub_multiboot_backward_relocator_end): Likewise.
6460 (grub_multiboot_payload_eip): New variable.
6461 (grub_multiboot_payload_orig): Likewise.
6462 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6463 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6464 * include/grub/i386/memory.h
6465 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6466 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6467 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6468 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6469 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6470 * include/grub/i386/relocator.h: New file.
6471 * include/grub/x86_64/relocator.h: Likewise.
6472 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6473 (XNU_RELOCATOR): New macro.
6474 (grub_xnu_launcher_start): Remove.
6475 (grub_xnu_launcher_end): Likewise.
6476 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6477 (grub_xnu_heap_real_start): Remove.
6478 (grub_xnu_heap_start): Change to void *. All users updated.
6479 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6480 * lib/i386/relocator.c: New file.
6481 * lib/i386/relocator_asm.S: Likewise.
6482 * lib/i386/relocator_backward.S: Likewise.
6483 * lib/mips/relocator.c: Likewise.
6484 * lib/mips/relocator_asm.S: Likewise.
6485 * lib/relocator.c: Likewise.
6486 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6488 (playground): Likewise.
6489 (grub_multiboot_payload_orig): New variable.
6490 (grub_multiboot_payload_dest): Likewise.
6491 (grub_multiboot_payload_size): Likewise.
6492 (grub_multiboot_payload_eip): Likewise.
6493 (grub_multiboot_payload_esp): Likewise.
6494 (grub_multiboot_boot): Use grub_relocator32_boot.
6495 (grub_multiboot_unload): Free relocators.
6496 (grub_multiboot): Setup stack. Use relocators.
6497 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6498 (grub_multiboot_load_elfXX): Use relocators.
6499 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6500 (grub_multiboot_payload_size): Likewise.
6501 (grub_multiboot_payload_dest): Likewise.
6502 (grub_multiboot_payload_entry_offset): Likewise.
6503 (grub_multiboot_forward_relocator): Likewise.
6504 (grub_multiboot_backward_relocator): Likewise.
6505 (grub_multiboot_real_boot): Likewise.
6506 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6507 (grub_xnu_entry_point): Likewise.
6508 (grub_xnu_arg1): Likewise.
6509 (grub_xnu_stack): Likewise.
6510 (grub_xnu_launch): Removed.
6511 (grub_xnu_boot_resume): New function.
6512 (grub_xnu_boot): Use relocators.
6513 * loader/i386/xnu_helper.S: Removed.
6514 * loader/xnu.c (grub_xnu_heap_start): New variable.
6515 (grub_xnu_heap_size): Likewise.
6516 (grub_xnu_heap_malloc): Use relocators.
6517 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6519 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6521 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6524 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6526 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6527 GRUB_ERR_NONE before calling grub_env_set.
6529 2009-12-12 Robert Millan <rmh@aybabtu.com>
6531 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6532 * genmk.rb (video): New variable.
6533 (CLEANFILES, VIDEOFILES): Add #{video}.
6534 (#{video}): New target rule.
6535 * genvideolist.sh: New file.
6536 * Makefile.in (pkglib_DATA): Add video.lst.
6537 (video.lst): New target rule.
6538 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6540 * util/grub.d/30_os-prober.in: Replace `vbe' with
6541 ${GRUB_VIDEO_BACKEND}.
6543 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6545 * THANKS: Add David Miller.
6547 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6549 libpciaccess support.
6551 * Makefile.in (LIBPCIACCESS): New variable.
6552 (enable_grub_emu_pci): Likewise.
6553 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6554 util/pci.c and commands/lspci.c.
6555 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6556 * configure.ac (grub-emu-pci): New option.
6557 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6558 (grub_pci_device_unmap_range): Likewise.
6559 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6560 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6561 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6562 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6563 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6564 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6565 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6566 * include/grub/pciutils.h: New file.
6567 * util/pci.c: Likewise.
6569 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6571 * util/misc.c: Don't include <errno.h> twice.
6573 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6575 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6576 name in an error message.
6577 (grub_biosdisk_rw): Likewise.
6579 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6581 Eliminate NTFS 4Gib barrier.
6583 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6584 (read_run_data): Likewise.
6585 (grub_ntfs_read_run_list): Likewise.
6586 (grub_ntfs_read_block): Likewise.
6587 (grub_ntfs_iterate_dir): Likewise.
6588 (read_mft): Likewise.
6589 (read_data): Likewise.
6591 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6592 to avoid 64-bit division
6593 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6594 (grub_ntfs_rlst): Use grub_disk_addr_t.
6596 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6598 Eliminate grub-fstest 4Gib barrier.
6600 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6601 (read_file): Fix error reporting.
6603 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6605 Eliminate hexdump 4Gib barrier.
6607 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6608 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6610 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6612 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6615 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6617 Remove miscellaneous files in distclean target.
6619 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6621 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6623 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6624 if they're already set. This resolves the conflict between my
6625 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6626 fixing the --grub-probe option again.
6627 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6628 change on 2009-10-06, so that we now once again source
6629 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6631 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6633 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6634 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6637 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6639 * include/grub/misc.h (grub_printf_): New declaration.
6640 * kern/misc.c (grub_printf_): New definition.
6641 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6642 instead of `grub_printf' and `_'.
6643 * normal/menu_entry.c (store_completion): Likewise.
6645 (grub_menu_entry_run): Likewise.
6646 * normal/menu_text.c (grub_wait_after_message): Likewise.
6647 (notify_booting): Likewise.
6648 (notify_fallback): Likewise.
6649 (notify_execution_failure): Likewise.
6651 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6653 * configure.ac: Check for vasprintf.
6654 * util/misc.c (asprintf): Move allocation from here ...
6655 (vasprintf): ... to here. New function.
6656 (xasprintf): New function.
6657 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6659 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6660 * util/grub-mkfont.c (write_font): Likewise.
6661 * util/grub-probe.c (probe): Likewise.
6662 * util/hostdisk.c (make_device_name): Likewise.
6664 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6666 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6667 anything even prefixed with 'cdrom' as a cdrom.
6669 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6671 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6674 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6676 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6677 grub_gettext_msg_list.
6678 (grub_gettext_gettranslation_from_position): Return const char *
6680 (grub_gettext_translate): Add the translated strings into a list,
6681 returns from the list if existing there.
6682 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6683 (grub_gettext_delete_list): Delete the list.
6684 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6685 lang environment variable is changed.
6686 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6688 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6690 Rename kernel.mod to kernel.img.
6692 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6693 (kernel_mod_EXPORTS): Rename to ...
6694 (kernel_img_EXPORTS): ... this.
6695 (kernel_mod_SOURCES): Rename to ...
6696 (kernel_img_SOURCES): ... this.
6697 (kernel_mod_HEADERS): Rename to ...
6698 (kernel_img_HEADERS): ... this. All users updated.
6699 (kernel_mod_CFLAGS): Rename to ...
6700 (kernel_img_CFLAGS): ... this.
6701 (kernel_mod_ASFLAGS): Rename to ...
6702 (kernel_img_ASFLAGS): ... this.
6703 (kernel_mod_LDFLAGS): Rename to ...
6704 (kernel_img_LDFLAGS): ... this.
6705 * conf/x86_64-efi.rmk: Likewise.
6706 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6707 (read_kernel_image): ... this. All users updated.
6708 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6710 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6712 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6713 (print_spaces): New function.
6714 (grub_print_ucs4): New function.
6715 (getstringwidth): New function.
6716 (print_message_indented): New function.
6717 (print_message): Gettexttize strings using print_message_indented.
6718 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6720 (get_entry_number): Gettextize and uses dynamic terminal width.
6721 (notify_booting, notify_fallback, notify_execution_failure):
6723 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6726 (grub_menu_entry_run): Likewise.
6727 * PO/POTFILES: Add normal/menu_entry.c.
6729 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6731 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6733 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6735 * util/grub-install.in: Install gettext .mo files.
6736 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6738 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6740 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6743 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6745 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6746 non-firmware-dependant one in realmode.S takes precedence.
6748 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6750 * commands/halt.c: Replace misc arch-specific headers with
6752 * commands/reboot.c: Likewise.
6753 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6755 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6756 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6757 (kernel_img_SOURCES): ... to here.
6759 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6760 * include/grub/i386/pc/init.h: Likewise.
6761 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6762 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6764 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6766 * include/grub/i386/halt.h: Remove.
6767 * include/grub/i386/reboot.h: Likewise.
6769 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6771 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6773 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6774 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6775 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6777 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6778 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6779 (usage): Add missing comma in printf.
6781 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6783 Use the same reboot approach on i386 coreboot and qemu as we do on
6786 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6787 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6788 * kern/i386/reboot.c: Remove.
6789 * include/grub/i386/reboot.h (grub_reboot): Export function.
6790 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6791 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6792 0xf000:0xfff0 instead of 0xffff:0x0000.
6793 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6794 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6796 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6798 Fix $srcdir != $objdir build.
6800 * Makefile.in (po/%.po): Rewrite as ...
6801 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6803 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6805 Fix GNU/Hurd grub-install crash.
6806 * util/grub-probe.c (probe): Try to access `path' only when it is not
6809 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6811 Correct module naming.
6813 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6814 (GRUB_MOD_INIT(efi_uga)): ... to this
6815 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6816 (GRUB_MOD_FINI(efi_uga)): ... to this
6817 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6818 (GRUB_MOD_INIT(efi_gop)): ... to this
6819 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6820 (GRUB_MOD_FINI(efi_gop)): ... to this
6822 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6824 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6826 (usage): Translate `arg' strings using gettext().
6827 Thanks to Jordi Mallach for the suggestion.
6829 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6831 GOP support. Based on patch from Bean
6832 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6834 * video/efi_gop.c: New file.
6835 * include/grub/efi/graphics_output.h: Likewise.
6836 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6837 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6839 * conf/x86_64-efi.rmk: Likewise.
6841 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6843 Rename efi_fb to efi_uga.
6845 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6847 (efi_fb_mod_SOURCES): Rename this ...
6848 (efi_uga_mod_SOURCES): ... to this.
6849 (efi_fb_mod_CFLAGS): Rename this ...
6850 (efi_uga_mod_CFLAGS): ... to this.
6851 (efi_fb_mod_LDFLAGS): Rename this ...
6852 (efi_uga_mod_LDFLAGS): ... to this.
6853 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6855 (efi_fb_mod_SOURCES): Rename this ...
6856 (efi_uga_mod_SOURCES): ... to this.
6857 (efi_fb_mod_CFLAGS): Rename this ...
6858 (efi_uga_mod_CFLAGS): ... to this.
6859 (efi_fb_mod_LDFLAGS): Rename this ...
6860 (efi_uga_mod_LDFLAGS): ... to this.
6861 * video/efi_fb.c: Move this ...
6862 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6864 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6866 * po/README: New file. Explain our PO file workflow.
6868 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6870 * po/ChangeLog: Remove. Move relevant entries back to ...
6871 * ChangeLog: ... here.
6872 * po/ca.po: Remove (now handled by TLP).
6873 * po/id.po: Likewise.
6874 * po/zh_CN.po: Likewise.
6875 * Makefile.in (LINGUAS): Initialize in a way that supports
6878 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6880 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6881 reliing on po/LINGUAS.
6882 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6883 (po/%.po): ... this.
6885 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6887 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6888 (main): Use `program_name' instead of nonexistent `progname'.
6890 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6892 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6893 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6895 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6897 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6899 * conf/i386-efi.rmk: Likewise.
6900 * conf/i386-ieee1275.rmk: Likewise.
6901 * conf/powerpc-ieee1275.rmk: Likewise.
6902 * conf/sparc64-ieee1275.rmk: Likewise.
6903 * conf/x86_64-efi.rmk: Likewise.
6905 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6907 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6909 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6911 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6913 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6915 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6916 (grub_mkdevicemap_SOURCES): New variable.
6917 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6918 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6919 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6920 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6921 (grub_mkdevicemap_SOURCES): Remove.
6922 * conf/i386-efi.rmk: Likewise.
6923 * conf/i386-ieee1275.rmk: Likewise.
6924 * conf/i386-pc.rmk: Likewise.
6925 * conf/powerpc-ieee1275.rmk: Likewise.
6926 * conf/sparc64-ieee1275.rmk: Likewise.
6927 * conf/x86_64-efi.rmk: Likewise.
6928 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6929 (usage): Fix strings to use `program_name'.
6930 (main): Initialize gettext.
6931 * util/grub-editenv.c: Likewise.
6932 * util/grub-emu.c: Likewise.
6933 * util/grub-fstest.c: Likewise.
6934 * util/grub-mkdevicemap.c: Likewise.
6935 * util/grub-mkfont.c: Likewise.
6936 * util/grub-mkrelpath.c: Likewise.
6937 * util/grub-pe2elf.c: Likewise.
6938 * util/grub-probe.c: Likewise.
6939 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6940 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6941 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6943 * util/misc.c: Include `"progname.h"'.
6944 (progname): Remove variable.
6945 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6947 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6949 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6950 printf and print a newline after the menuentry header line.
6951 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6953 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6955 autoconf >= 2.60 support $(localedir).
6957 * INSTALL: Note that autoconf 2.60 is required.
6958 * configure.ac (AC_PREREQ): Bump to 2.60.
6959 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6960 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6962 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6964 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6967 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6969 * normal/main.c (grub_normal_read_line): Fix off-by-one
6972 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6974 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6975 "parser.grub" in grub_command_execute() call.
6977 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6979 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6980 * conf/i386-efi.rmk: Likewise.
6981 * conf/i386-ieee1275.rmk: Likewise.
6982 * conf/i386-pc.rmk: Likewise.
6983 * conf/powerpc-ieee1275.rmk: Likewise.
6984 * conf/sparc64-ieee1275.rmk: Likewise.
6985 * conf/x86_64-efi.rmk: Likewise.
6986 * gettext/gettex.c: Include <grub/i18n.h>.
6987 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6989 * include/grub/i18n.h: ... to here
6990 * include/grub/i18n.h: ... to here.
6991 * kern/misc.c: Include <grub/i18n.h>
6992 (grub_gettext_dummy): Move above user.
6994 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6996 * util/Makefile.in (install-local): Convert a `for' into a normal
6999 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7001 * autogen.sh: Add automake call.
7002 * config.guess: Remove.
7003 * config.sub: Likewise.
7004 * install-sh: Likewise.
7006 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7008 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7010 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7012 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7013 function to a normal shell `for'.
7015 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7017 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7019 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7021 * util/grub-mkrelpath.c: New file.
7022 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7023 (grub_mkrelpath_SOURCES): New variable.
7024 * include/grub/util/misc.h: New function prototype.
7025 * util/misc.c (make_system_path_relative_to_its_root): New function.
7027 * util/grub-mkconfig_lib.in (bindir): New variable.
7028 (grub_mkrelpath): Likewise.
7029 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7031 * util/probe.c (probe): Make the file path relative to its root.
7032 Change a info message to use the GRUB path. Enable again the
7033 check if we can read the file with GRUB facilities.
7035 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7038 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7040 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7043 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7045 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7048 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7050 * util/getroot.c (grub_util_is_dmraid): New function.
7051 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7052 devices as normal ones, not as LVM.
7054 2009-11-23 Carles Pina i Estany <carles@pina.cat>
7056 * conf/common.rmk: Add grub-gettext_lib target and updates
7057 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7059 * gettext/gettext.c: New file. (Reads mo files).
7060 * include/grub/file.h (grub_file_pread): New prototype.
7061 * include/grub/i18n.h (_): New prototype.
7062 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7064 * kern/misc.c (grub_gettext_dummy): New function.
7065 * normal/menu_text.c: Include <grub/i18n.h>.
7066 * normal/menu_text.c (print_timeout): Gettexttize string.
7067 * normal/menu_text.c (print_message): Gettexttize string.
7068 * po/POTFILES: Add `normal/menu_text.c'.
7069 * po/ca.po: Add new translations.
7070 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7071 gettext module and defines locale_dir and lang in grub.cfg.
7072 * NEWS: Add gettext support.
7074 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7076 * util/hostdisk.c: Include `<grub/i18n.h>'.
7077 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7078 (make_device_name): Rewrite using asprintf.
7079 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7080 (find_system_device): If a device is not found, generate one just
7081 by reusing the OS path name.
7082 (read_device_map): Make it permissible for device.map not to exist.
7084 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7086 * script/sh/execute.c: Move from here ...
7087 * script/execute.c: ... to here. Update all users.
7088 * script/sh/function.c: Move from here ...
7089 * script/function.c: ... to here. Update all users.
7090 * script/sh/lexer.c: Move from here ...
7091 * script/lexer.c: ... to here. Update all users.
7092 * script/sh/main.c: Move from here ...
7093 * script/main.c: ... to here. Update all users.
7094 * script/sh/parser.y: Move from here ...
7095 * script/parser.y: ... to here. Update all users.
7096 * script/sh/script.c: Move from here ...
7097 * script/script.c: ... to here. Update all users.
7099 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7101 * configure.ac: Detect all `emu' platforms. Define
7102 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7103 --enable-grub-emu logic. Disable include/grub/machine
7104 symlink on `emu' platforms.
7106 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7107 * gensymlist.sh.in: Likewise.
7109 * include/grub/i386/coreboot/machine.h: Remove file.
7110 * include/grub/i386/efi/machine.h: Likewise.
7111 * include/grub/i386/ieee1275/machine.h: Likewise.
7112 * include/grub/i386/pc/machine.h: Likewise.
7113 * include/grub/i386/qemu/machine.h: Likewise.
7114 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7115 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7116 * include/grub/x86_64/efi/machine.h: Likewise.
7118 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7119 * commands/halt.c: Likewise.
7120 * commands/reboot.c: Likewise.
7121 * include/grub/autoefi.h: Likewise.
7122 * include/grub/i386/at_keyboard.h: Likewise.
7123 * include/grub/i386/kernel.h: Likewise.
7124 * include/grub/i386/loader.h: Likewise.
7125 * include/grub/i386/pc/memory.h: Likewise.
7126 * kern/dl.c: Likewise.
7127 * kern/i386/coreboot/init.c: Likewise.
7128 * loader/i386/bsd.c: Likewise.
7129 * loader/i386/linux.c: Likewise.
7130 * loader/multiboot_loader.c: Likewise.
7131 * term/i386/pc/serial.c: Likewise.
7132 * term/usb_keyboard.c: Likewise.
7134 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7135 `<grub/machine/machine.h>'
7136 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7137 * util/misc.c: Remove `<grub/machine/machine.h>' and
7138 `<grub/machine/time.h>'.
7140 * Makefile.in (enable_grub_emu): Remove variable.
7141 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7143 * conf/any-emu.rmk: New file.
7144 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7145 (grub_emu_init.c): Move from here ...
7146 * conf/any-emu.rmk: ... to here.
7148 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7149 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7150 * conf/any-emu.rmk: ... to here.
7152 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7154 * include/grub/parser.h (grub_parser_register): Document need
7155 of `name' parameter.
7156 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7157 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7160 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7162 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7164 * include/grub/i18n.h (N_): New macro.
7165 * util/mkisofs/mkisofs.h: Likewise.
7166 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7168 (usage): Use gettext() to translate help strings when printing them.
7170 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7172 Based on patch from Bean
7173 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7175 * video/efi_fb.c: New file.
7176 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7177 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7179 * conf/x86_64-efi.rmk: Likewise.
7181 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7183 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7184 * util/i386/pc/grub-setup.c: Likewise.
7186 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7188 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7190 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7191 file_get_storage_info to implement grub_guess_root_device.
7193 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7195 * Makefile.in (target): Use make's builtin $(shell) function
7196 instead of calling directly $(SHELL) to create the locale directories,
7197 inside the $(foreach) function.
7199 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7201 * util/grub-mkrescue.in: Print an error and usage if output option
7204 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7206 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7207 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7208 root and /boot are on different devices.
7210 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7212 Fix build for srcdir != objdir.
7214 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7215 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7217 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7218 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7219 reference for input.
7221 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7223 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7224 or hardlinking it). Remove -J option, Joliet is not compatible with
7225 multiple source directories.
7227 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7228 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7230 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7231 (process_input_dir): New function. Process an arbitrary input
7233 Misc adjustments to support both "override mode" and system-wide mode.
7235 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7237 * configure.ac (UNIFONT_BDF): Rename to ...
7238 (FONT_SOURCE): ... this. Update all users.
7240 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7242 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7243 to the list of unifont files to look for.
7245 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7247 Patch from Joe Auricchio <jauricchio@gmail.com>
7248 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7249 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7250 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7252 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7254 * Makefile.in (install-local): Add a missing backslash.
7256 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7258 * include/grub/x86_64/io.h: New file.
7260 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7262 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7263 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7264 Include `"progname.h"'.
7265 (main): Initialize gettext.
7266 * util/i386/pc/grub-setup.c: Gettexttize.
7267 * util/i386/pc/grub-mkimage.c: Likewise.
7269 * Makefile.in (po/*.po): Redefine as ...
7270 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7272 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7274 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7276 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7277 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7278 (program_name): Remove.
7279 (main): Initialize gettext support.
7280 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7281 Include `<libintl.h>'.
7284 * util/mkisofs/eltorito.c: Gettexttize.
7285 * util/mkisofs/joliet.c: Likewise.
7286 * util/mkisofs/mkisofs.c: Likewise.
7287 * util/mkisofs/multi.c: Likewise.
7288 * util/mkisofs/rock.c: Likewise.
7289 * util/mkisofs/tree.c: Likewise.
7290 * util/mkisofs/write.c: Likewise.
7292 * po/POTFILES: Update with new files.
7294 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7296 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7297 * util/mkisofs/iso9660.h: Likewise.
7298 * util/mkisofs/joliet.c: Likewise.
7299 * util/mkisofs/mkisofs.c: Likewise.
7300 * util/mkisofs/mkisofs.h: Likewise.
7301 * util/mkisofs/rock.c: Likewise.
7302 * util/mkisofs/tree.c: Likewise.
7303 * util/mkisofs/write.c: Likewise.
7305 * util/mkisofs/eltorito.c (rcsid): Remove.
7306 * util/mkisofs/hash.c: Likewise.
7307 * util/mkisofs/joliet.c: Likewise.
7308 * util/mkisofs/name.c: Likewise.
7309 * util/mkisofs/rock.c: Likewise.
7310 * util/mkisofs/tree.c: Likewise.
7311 * util/mkisofs/write.c: Likewise.
7313 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7315 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7316 instead of static allocation.
7317 * util/mkisofs/match.h: Likewise.
7319 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7321 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7322 and `util/grub.d/10_linux.in'.
7323 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7324 translatable Shell files.
7326 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7328 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7330 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7332 * INSTALL: Document Automake is needed for bootstrap.
7333 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7334 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7335 Add gettext initialization.
7336 (kfreebsd_entry): Make menuentry output translatable.
7338 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7340 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7341 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7342 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7343 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7344 (LINGUAS): Auto-generate using `po/LINGUAS'.
7345 * po/LINGUAS: New file.
7347 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7349 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7351 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7352 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7353 bindtextdomain() calls for gettext initialization.
7355 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7357 * gnulib/progname.c: New file (imported from Gnulib).
7358 * gnulib/progname.h: Likewise.
7359 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7360 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7361 (usage): Replace `progname' with `program_name'.
7362 (main): Use set_program_name() for program name initialization.
7364 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7366 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7368 * Makefile.in (CPPFLAGS): ... to here.
7370 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7372 * aclocal.m4: Move from here ...
7373 * acinclude.m4: ... to here.
7374 * autogen.sh: Add call to `aclocal'.
7375 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7377 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7379 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7380 (LINGUAS): New variable.
7381 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7382 (install-local): Install MO files.
7383 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7384 * include/grub/i18n.h: New file.
7385 * po/POTFILES: New file.
7386 * po/ca.po: New file.
7387 * util/grub.d/10_linux.in (bindir): New variable.
7388 Add gettext initialization.
7389 (linux_entry): Make menuentry output translatable.
7390 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7391 (usage): Make --help output translatable.
7392 (main): Initialize gettext.
7394 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7396 * import_gcry.py: New file (written by Vladimir with minor
7398 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7400 * INSTALL: Document that Python is required for bootstrap.
7402 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7404 Import ciphers from libgcrypt 1.4.4.
7406 * lib/libgcrypt/cipher/ChangeLog
7407 * lib/libgcrypt/cipher/ac.c
7408 * lib/libgcrypt/cipher/arcfour.c
7409 * lib/libgcrypt/cipher/bithelp.h
7410 * lib/libgcrypt/cipher/blowfish.c
7411 * lib/libgcrypt/cipher/camellia-glue.c
7412 * lib/libgcrypt/cipher/camellia.c
7413 * lib/libgcrypt/cipher/camellia.h
7414 * lib/libgcrypt/cipher/cast5.c
7415 * lib/libgcrypt/cipher/cipher.c
7416 * lib/libgcrypt/cipher/crc.c
7417 * lib/libgcrypt/cipher/des.c
7418 * lib/libgcrypt/cipher/dsa.c
7419 * lib/libgcrypt/cipher/ecc.c
7420 * lib/libgcrypt/cipher/elgamal.c
7421 * lib/libgcrypt/cipher/hash-common.c
7422 * lib/libgcrypt/cipher/hash-common.h
7423 * lib/libgcrypt/cipher/hmac-tests.c
7424 * lib/libgcrypt/cipher/md.c
7425 * lib/libgcrypt/cipher/md4.c
7426 * lib/libgcrypt/cipher/md5.c
7427 * lib/libgcrypt/cipher/primegen.c
7428 * lib/libgcrypt/cipher/pubkey.c
7429 * lib/libgcrypt/cipher/rfc2268.c
7430 * lib/libgcrypt/cipher/rijndael-tables.h
7431 * lib/libgcrypt/cipher/rijndael.c
7432 * lib/libgcrypt/cipher/rmd.h
7433 * lib/libgcrypt/cipher/rmd160.c
7434 * lib/libgcrypt/cipher/rsa.c
7435 * lib/libgcrypt/cipher/seed.c
7436 * lib/libgcrypt/cipher/serpent.c
7437 * lib/libgcrypt/cipher/sha1.c
7438 * lib/libgcrypt/cipher/sha256.c
7439 * lib/libgcrypt/cipher/sha512.c
7440 * lib/libgcrypt/cipher/tiger.c
7441 * lib/libgcrypt/cipher/twofish.c
7442 * lib/libgcrypt/cipher/whirlpool.c
7444 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7446 Fix build for systems without error().
7448 * gnulib/error.c: New file (imported from Gnulib).
7449 * gnulib/error.h: Likewise.
7450 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7451 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7452 (this variable is now used by error()).
7454 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7456 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7457 instead of relying that char is signed.
7459 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7461 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7462 blocksize different from specified.
7463 (grub_pxefs_read): Likewise.
7465 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7467 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7469 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7470 (grub_ata_readwrite): Likewise. Update 2 format strings.
7471 (grub_atapi_read): Likewise.
7473 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7474 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7475 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7476 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7477 (ata_mod_LDFLAGS): Move from here ...
7478 * conf/i386.rmk: ... to here ...
7479 * conf/x86_64-efi.rmk: ... and here.
7480 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7481 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7483 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7485 Relicense multiboot.h, with RMS' blessing.
7487 * include/multiboot.h: Change to X11 license.
7489 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7491 Support --version in grub-mkisofs.
7493 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7494 (OPTION_VERSION): New macro.
7495 (ld_options): Recognize --version.
7496 (usage): Move `program_name' from here ...
7497 (program_name): ... to here. Add `static' qualifier.
7498 (main): Recognize `OPTION_VERSION'.
7500 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7502 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7503 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7505 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7507 Fix help2man generation for mkisofs.
7509 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7510 (usage): Send output to stdout (rather than stderr).
7512 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7514 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7515 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7516 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7517 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7518 (bin_SCRIPTS): Add `grub-mkfloppy'.
7519 (grub_mkfloppy_SOURCES): New variable.
7521 * util/grub-mkrescue.in: New file.
7522 * util/i386/pc/grub-mkfloppy.in: New file.
7524 * util/i386/coreboot/grub-mkrescue.in: Remove.
7525 * util/i386/pc/grub-mkrescue.in: Remove.
7527 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7529 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7531 * include/multiboot.h (struct multiboot_header): ... to here. Update
7533 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7535 * include/multiboot.h (struct multiboot_info): ... to here. Update
7537 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7539 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7541 * include/grub/multiboot.h (struct grub_mod_list): Move
7543 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7546 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7548 * include/multiboot2.h (multiboot_word): Rename from this ...
7549 (multiboot2_word): ... to this. Update all users.
7550 (multiboot_header): Rename from this ...
7551 (multiboot2_header): ... to this. Update all users.
7552 (multiboot_tag_header): Rename from this ...
7553 (multiboot2_tag_header): ... to this. Update all users.
7554 (multiboot_tag_start): Rename from this ...
7555 (multiboot2_tag_start): ... to this. Update all users.
7556 (multiboot_tag_name): Rename from this ...
7557 (multiboot2_tag_name): ... to this. Update all users.
7558 (multiboot_tag_module): Rename from this ...
7559 (multiboot2_tag_module): ... to this. Update all users.
7560 (multiboot_tag_memory): Rename from this ...
7561 (multiboot2_tag_memory): ... to this. Update all users.
7562 (multiboot_tag_unused): Rename from this ...
7563 (multiboot2_tag_unused): ... to this. Update all users.
7564 (multiboot_tag_end): Rename from this ...
7565 (multiboot2_tag_end): ... to this. Update all users.
7567 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7569 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7570 this platform we should support Multiboot1 first.
7572 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7573 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7574 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7576 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7578 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7579 of write calls (converting them to fwrite() if they aren't already).
7580 (get_torito_desc): Likewise.
7581 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7583 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7585 * util/i386/pc/grub-install.in: Move from here ...
7586 * util/grub-install.in: ... to here. Update all users.
7588 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7590 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7592 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7594 Support for El Torito without floppy emulation.
7596 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7597 (init_boot_catalog): Improve error handling.
7598 (get_torito_desc): Don't use floppy emulation unless requested by
7599 user. Patch boot information table when requested via
7601 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7602 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7603 (use_boot_info_table): New variables.
7604 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7605 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7606 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7607 `--eltorito-emul-floppy'.
7608 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7609 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7610 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7611 (use_boot_info_table, get_731): New prototypes.
7612 * util/mkisofs/write.c (get_731): New function.
7614 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7616 Fix the generation of the man page.
7618 * util/pc/i386/grub-install.in: Source
7619 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7621 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7623 Large file support for grub-mkisofs.
7625 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7626 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7627 (session_start): Upgrade type to `uint64_t'. Update all users.
7628 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7629 (struct directory_entry): Upgrade type of `starting_block' and
7630 `size' to `uint64_t'. Update all users.
7631 (struct deferred): Remove unused structure.
7632 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7634 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7635 file is larger than `UINT32_MAX'.
7636 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7637 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7639 (struct deferred_write): Upgrade type of `extent' and `size' to
7640 `uint64_t'. Update all users.
7641 (last_extent_written): Upgrade type to `uint64_t'. Update all
7643 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7644 Update all users. Upgrade type of `remain' to `int64_t' and
7645 `use' to `size_t'. Use error() to handle fread() errors.
7646 (write_files): Rely on write_one_file() rather than calling
7649 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7651 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7655 * util/mkisofs/fnmatch.c: Remove.
7656 * util/mkisofs/getopt1.c: Likewise.
7657 * util/mkisofs/getopt.c: Likewise.
7658 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7659 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7660 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7661 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7662 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7664 * configure.ac: Detect `mingw32msvc' host_os.
7665 Check for lstat(), getuid() and getgid().
7667 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7668 instances of `u_char' with `uint8_t'.
7670 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7671 [!HAVE_GETUID] (getuid): New function (stub).
7672 [!HAVE_GETGID] (getgid): Likewise.
7673 [!HAVE_LSTAT] (lstat): Likewise.
7674 [!S_IROTH] (S_IROTH): New macro (dummy).
7675 [!S_IRGRP] (S_IRGRP): Likewise.
7677 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7679 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7680 conditional expression).
7682 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7686 * gnulib/fnmatch.c: New file.
7687 * gnulib/fnmatch.h: Likewise.
7688 * gnulib/fnmatch_loop.c: Likewise.
7689 * gnulib/getopt.c: Likewise.
7690 * gnulib/getopt.h: Likewise.
7691 * gnulib/getopt1.c: Likewise.
7692 * gnulib/getopt_int.h: Likewise.
7693 * gnulib/gettext.h: Likewise.
7695 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7697 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7698 * normal/handler.c (read_handler_list): Likewise.
7700 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7704 * kern/command.c (grub_register_command_prio): Use
7705 grub_zalloc() instead of explicitly zeroing data.
7706 * kern/list.c: Include `<grub/mm.h>'.
7707 (grub_named_list_find): Replace `0' with `NULL'.
7708 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7709 (fs_module_list): Change type to `grub_named_list_t'. Update all
7711 * normal/dyncmd.c (read_command_list): Add space between function
7712 call and parenthesis.
7713 * normal/handler.c (read_handler_list): Likewise.
7715 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7717 * normal/auth.c (punishment_delay): Moved from here ...
7718 (grub_auth_strcmp): ... to here (inside function).
7720 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7722 * include/grub/list.h (struct grub_named_list): Remove `const'
7723 qualifier from `name'.
7724 (struct grub_prio_list): Likewise.
7726 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7728 * normal/auth.c: Include `<grub/time.h>'.
7729 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7731 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7733 * normal/auth.c (punishment_delay): New variable.
7734 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7735 (grub_auth_check_authentication): Punish failed login attempts with
7736 an incremental (2^N) delay.
7738 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7740 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7741 path with $(srcdir).
7743 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7745 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7747 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7749 * util/i386/coreboot/grub-mkrescue.in: New file.
7750 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7753 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7754 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7755 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7757 * util/mkisofs/defaults.h: New file.
7758 * util/mkisofs/eltorito.c: Likewise.
7759 * util/mkisofs/exclude.h: Likewise.
7760 * util/mkisofs/fnmatch.c: Likewise.
7761 * util/mkisofs/getopt.c: Likewise.
7762 * util/mkisofs/getopt1.c: Likewise.
7763 * util/mkisofs/hash.c: Likewise.
7764 * util/mkisofs/include/fctldefs.h: Likewise.
7765 * util/mkisofs/include/mconfig.h: Likewise.
7766 * util/mkisofs/include/prototyp.h: Likewise.
7767 * util/mkisofs/include/statdefs.h: Likewise.
7768 * util/mkisofs/iso9660.h: Likewise.
7769 * util/mkisofs/joliet.c: Likewise.
7770 * util/mkisofs/match.c: Likewise.
7771 * util/mkisofs/match.h: Likewise.
7772 * util/mkisofs/mkisofs.c: Likewise.
7773 * util/mkisofs/mkisofs.h: Likewise.
7774 * util/mkisofs/multi.c: Likewise.
7775 * util/mkisofs/name.c: Likewise.
7776 * util/mkisofs/rock.c: Likewise.
7777 * util/mkisofs/tree.c: Likewise.
7778 * util/mkisofs/write.c: Likewise.
7780 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7782 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7785 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7787 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7788 `grub-mkimage' (and use $0 when possible).
7790 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7792 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7793 error message for excessively large memory map.
7795 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7797 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7800 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7802 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7803 message for coreboot users.
7805 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7807 Fix build with GNU gold.
7809 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7810 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7811 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7813 * aclocal.m4: Likewise.
7815 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7817 * configure.ac (AC_PREREQ): Bump to 2.59d.
7818 * INSTALL: Make it more clear when Autoconf and Ruby are
7819 needed and when to run `./autogen.sh'.
7821 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7823 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7826 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7828 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7830 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7832 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7833 giving it to GNU Mach.
7835 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7837 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7838 GNU partition number to get internal GRUB partition number.
7840 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7842 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7843 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7845 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7847 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7848 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7851 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7853 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7855 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7859 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7860 `-isystem=$(srcdir)/include'.
7862 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7864 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7865 checked (grub-install doesn't currently rely on it).
7867 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7871 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7872 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7873 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7874 * conf/i386-ieee1275.rmk: Likewise.
7875 * conf/i386-pc.rmk: Likewise.
7876 * conf/powerpc-ieee1275.rmk: Likewise.
7877 * conf/sparc64-ieee1275.rmk: Likewise.
7878 * conf/x86_64-efi.rmk: Likewise.
7880 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7882 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7884 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7886 * include/grub/misc.h: Stop checking for APPLE_CC.
7888 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7890 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7891 doesn't cause an infinite call loop.
7893 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7895 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7898 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7900 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7902 * Makefile.in: Likewise.
7904 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7906 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7908 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7910 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7912 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7914 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7916 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7918 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7920 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7922 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7924 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7925 in $(MAKEINFO) invocation. This makes it clear in output that
7926 errors are being ignored.
7928 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7930 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7932 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7933 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7934 * conf/i386-ieee1275.rmk: Likewise.
7935 * conf/i386-pc.rmk: Likewise.
7936 * conf/powerpc-ieee1275.rmk: Likewise.
7937 * conf/sparc64-ieee1275.rmk: Likewise.
7938 * conf/x86_64-efi.rmk: Likewise.
7940 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7942 * util/grub-editenv.c (main): If only a command is given, use
7943 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7944 (usage): FILENAME is now optional and has a default.
7946 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7948 Improve grub-mkconfig performance when there are several menu
7949 entries on a single filesystem.
7951 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7952 prepare_grub_to_access_device.
7953 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7954 * util/grub.d/30_os-prober.in: Likewise.
7956 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7958 * util/grub.d/10_freebsd.in: Remove.
7959 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7960 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7962 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7964 * docs/grub.cfg: Fix example usage of *BSD loaders.
7966 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7968 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7969 grub_util_error() call.
7971 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7973 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7974 `reserved_first_sector' member.
7975 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7976 `reserved_first_sector' to 1.
7977 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7978 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7979 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7980 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7981 filesystems which begin at first sector.
7982 (options): New option --skip-fs-probe.
7983 (main): Handle --skip-fs-probe and pass it to setup().
7985 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7987 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7988 (memset): Fix function prototype.
7990 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7991 2009-10-25 Vasily Averin <vvs@parallels.com>
7993 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7994 `dirent.direntlen == 0'.
7996 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7998 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
8000 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8002 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8004 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8005 `__trampoline_setup' and `__ucmpdi2'.
8006 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8007 that libgcc provides.
8009 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8011 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8012 * include/grub/sparc64/libgcc.h (memset): Likewise.
8013 * include/grub/misc.h (memset, memcmp): New function prototypes.
8015 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8017 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8019 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8021 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8023 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8024 * docs/grub.cfg: Compensate for recent change in multiboot
8025 loader (since 2009-08-14 it won't pass filename to payload).
8026 * util/grub.d/10_hurd.in: Likewise.
8028 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
8030 * config.guess: Update to latest version from config git
8032 * config.sub: Likewise.
8034 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8036 Fix build on sparc64.
8038 * configure.ac: Perform checks for libgcc symbols before
8039 adding `-nostdlib' to LDFLAGS.
8041 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8043 Let user specify OpenBSD root device.
8045 * loader/i386/bsd.c (openbsd_root): New variable.
8046 (openbsd_opts): New option 'root'.
8047 (OPENBSD_ROOT_ARG): New macro.
8048 (grub_openbsd_boot): Use 'openbsd_root'.
8049 (grub_cmd_openbsd): Fill 'openbsd_root'.
8051 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8053 * NEWS: Misc adjustments.
8055 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8057 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8059 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8061 * configure.ac: Bump version to 1.97.
8063 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
8065 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8066 -mno-3dnow on x86 architectures. Some toolchains enable these
8067 features by default, but they rely on registers that aren't enabled
8068 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8070 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8072 Make entry text a bit more readable.
8074 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8076 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8078 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8080 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8082 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8085 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8087 * configure.ac: Add missing dollar.
8089 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8091 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8093 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8094 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8096 * include/grub/sparc64/libgcc.h: Likewise. Use
8097 preprocessor conditionals.
8099 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8101 * conf/common.rmk (grub-dumpbios): Remove rule.
8102 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8103 * util/grub-dumpbios.in: Remove file.
8105 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8107 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8108 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8110 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8111 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8114 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8115 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8116 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8117 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8120 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8122 * term/tparm.c: Switch to GPLv3.
8124 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8126 * include/grub/i386/cpuid.h: Add header protection.
8128 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8130 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8132 * include/grub/i386/cpuid.h: New file.
8133 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8134 (has_longmode): Rename to ...
8135 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8137 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8138 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8139 on a CPU that doesn't implement AMD64 instruction set.
8141 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8143 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8144 that version.texi is rebuilt on version number changes.
8146 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8148 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8151 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8153 * util/i386/pc/grub-install.in: Source
8154 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8155 that the --grub-probe option will work.
8156 * util/sparc64/ieee1275/grub-install.in: Likewise.
8158 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8160 * configure.ac: Bump version to 1.97~beta4.
8162 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8164 Resync grub-mkdevicemap in x86_64-efi.
8166 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8167 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8170 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8172 * util/grub-editenv.c (create_envblk_file): Write new block with a
8173 .new suffix and then rename it into place, to ensure atomic
8176 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8178 Do not automatically install headers.
8180 * Makefile.in (include_DATA): Remove. Update all users.
8182 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8184 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8185 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8187 * util/osdetect.lua: Remove.
8188 * script/lua/lauxlib.c: Likewise.
8189 * script/lua/ldebug.c: Likewise.
8190 * script/lua/grub_main.c: Likewise.
8191 * script/lua/lauxlib.h: Likewise.
8192 * script/lua/ldebug.h: Likewise.
8193 * script/lua/ltablib.c: Likewise.
8194 * script/lua/liolib.c: Likewise.
8195 * script/lua/lstrlib.c: Likewise.
8196 * script/lua/lualib.h: Likewise.
8197 * script/lua/ldo.c: Likewise.
8198 * script/lua/ldump.c: Likewise.
8199 * script/lua/ldo.h: Likewise.
8200 * script/lua/loslib.c: Likewise.
8201 * script/lua/lundump.c: Likewise.
8202 * script/lua/grub_lib.c: Likewise.
8203 * script/lua/ldblib.c: Likewise.
8204 * script/lua/lundump.h: Likewise.
8205 * script/lua/lmem.c: Likewise.
8206 * script/lua/grub_lib.h: Likewise.
8207 * script/lua/lmathlib.c: Likewise.
8208 * script/lua/lstate.c: Likewise.
8209 * script/lua/ltm.c: Likewise.
8210 * script/lua/lvm.c: Likewise.
8211 * script/lua/lmem.h: Likewise.
8212 * script/lua/lstate.h: Likewise.
8213 * script/lua/ltm.h: Likewise.
8214 * script/lua/ltable.c: Likewise.
8215 * script/lua/lvm.h: Likewise.
8216 * script/lua/llex.c: Likewise.
8217 * script/lua/lgc.c: Likewise.
8218 * script/lua/grub_lua.h: Likewise.
8219 * script/lua/loadlib.c: Likewise.
8220 * script/lua/lfunc.c: Likewise.
8221 * script/lua/lopcodes.c: Likewise.
8222 * script/lua/lparser.c: Likewise.
8223 * script/lua/ltable.h: Likewise.
8224 * script/lua/llex.h: Likewise.
8225 * script/lua/lgc.h: Likewise.
8226 * script/lua/lfunc.h: Likewise.
8227 * script/lua/lbaselib.c: Likewise.
8228 * script/lua/lopcodes.h: Likewise.
8229 * script/lua/lparser.h: Likewise.
8230 * script/lua/lzio.c: Likewise.
8231 * script/lua/linit.c: Likewise.
8232 * script/lua/lobject.c: Likewise.
8233 * script/lua/llimits.h: Likewise.
8234 * script/lua/lstring.c: Likewise.
8235 * script/lua/lzio.h: Likewise.
8236 * script/lua/lapi.c: Likewise.
8237 * script/lua/lcode.c: Likewise.
8238 * script/lua/lua.h: Likewise.
8239 * script/lua/lobject.h: Likewise.
8240 * script/lua/lstring.h: Likewise.
8241 * script/lua/lapi.h: Likewise.
8242 * script/lua/lcode.h: Likewise.
8243 * script/lua/luaconf.h: Likewise.
8245 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8247 * docs/grub.texi (Command-line and menu entry commands): Document
8248 date and echo commands.
8250 2009-09-24 Pavel Roskin <proski@gnu.org>
8252 * include/grub/kernel.h (struct grub_module_header): Remove
8253 `grub_module_header_types'. Make `type' unsigned. Make `size'
8254 32-bit on all platforms.
8255 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8256 8-bit field. Use grub_host_to_target32() for `size'.
8257 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8258 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8259 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8261 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8263 Fix "lost keypress" bug in at_keyboard.
8265 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8266 Checks for readyness of input buffer (without flushing it).
8267 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8268 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8270 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8272 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8273 size check within GRUB_MACHINE_PCBIOS section.
8275 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8277 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8279 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8280 KEYBOARD_ISREADY check.
8281 (grub_at_keyboard_checkkey): Rename to ...
8282 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8283 Remove gratuitous cast.
8285 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8287 * configure.ac: Call AC_PROG_MKDIR_P.
8288 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8289 version.texi in $(builddir) rather than $(srcdir).
8290 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8291 to makeinfo's @include search path.
8293 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8295 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8297 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8299 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8302 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8304 Build info documentation. Some code borrowed from Automake.
8306 * configure.ac: Check for makeinfo.
8307 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8308 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8310 (MOSTLYCLEANFILES): Add vti.tmp.
8311 (docs/version.texi, docs/stamp-vti): Update automatically.
8312 (docs/grub.info): Build info documentation. Use --force and ignore
8314 (all-local): Add $(INFOS).
8315 (install-local): Install info files.
8316 (uninstall): Uninstall info files.
8317 * docs/version.texi: Remove from revision control. This file is
8318 automatically generated on build now.
8319 * gendistlist.sh: Add `*.info'.
8321 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8323 * kern/term.c: Fix indentation.
8325 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8327 * util/hostdisk.c: Fix a comment.
8329 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8331 Fix regression introduced in r2539.
8333 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8336 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8338 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8339 os-prober. Under normal operation, it does not print anything to
8340 stderr; if it does, we need to debug it, and throwing away stderr
8341 makes that excessively difficult.
8343 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8345 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8347 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8349 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8350 AC_LANG_PROGRAM from autoconf.
8351 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8352 prototypes (fixes warning).
8354 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8355 `--disable-werror' was used.
8357 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8359 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8360 uninitialized `lastaddr'.
8362 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8364 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8366 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8368 * commands/test.c (get_fileinfo): Return immediately if
8369 grub_fs_probe fails.
8371 2009-09-14 José Martínez <xosemp@gmail.com>
8373 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8375 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8377 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8380 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8382 * configure.ac: Remove --enable-grub-pe2elf. Only build
8383 grub-pe2elf when needed by the build system itself.
8384 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8386 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8388 * configure.ac: Bump version to 1.97~beta3.
8389 * docs/version.texi: Likewise.
8391 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8393 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8394 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8396 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8397 (grub_linux_setup_video): ... to here (with some adjustments).
8399 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8401 Fix memory corruption issue (spotted by Colin Watson).
8403 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8404 causing returned size to be stored in an incorrect memory location.
8405 Fix use of uninitialized value when storing the returned size.
8407 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8409 Change clean rules to properly remove files
8411 * genmk.rb: add new clean rules
8412 * Makefile.in (clean): add the new targets
8413 (mostlyclean): likewise
8415 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8417 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8419 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8422 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8424 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8427 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8429 * util/grub-mkconfig.in: Make the created config mode 400 and
8430 print a warning if it fails.
8432 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8434 * util/grub.d/40_custom.in: Ask user to type custom entries below
8435 comment, rather than below 'exec tail' line.
8437 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8439 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8440 visible in grub.cfg.
8442 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8444 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8447 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8449 * docs/grub.cfg: Add an example menu entry for memtest86+.
8451 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8453 * config.guess: Update to latest version from config git.
8454 * config.sub: Likewise.
8456 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8458 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8459 unknown-command case. Fixes bug #27320.
8461 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8463 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8464 `help' if the command exists.
8466 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8468 * INSTALL: Require GCC 4.1.3 or later.
8470 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8472 * Makefile.in (RMKFILES): add i386-qemu.rmk
8473 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8474 $(srcdir)/stamp-h.in
8476 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8478 * util/grub-probe.c (probe): Comment out buggy codepath, which
8479 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8480 should be re-enabled after 1.97.
8482 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8484 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8487 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8489 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8490 unnecessary calls to grub_error.
8492 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8494 * NEWS: Mention `keystatus' and Unicode fonts.
8496 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8498 * configure.ac: Bump version to 1.97~beta2.
8499 * docs/version.texi: Likewise.
8501 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8503 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8504 containing unwind information in some cases where it previously did
8505 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8506 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8509 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8511 Embedding loadenv module into grub-emu
8513 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8515 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8516 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8517 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8518 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8519 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8520 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8522 2009-09-03 Magnus Granberg <zorry@ume.nu>
8524 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8525 include -fPIE in the default specs.
8526 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8529 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8531 * INSTALL: Note that GNU Bison 2.3 or later is required.
8533 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8535 * kern/i386/pc/startup.S: Fix typo.
8537 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8539 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8542 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8544 * docs/grub.texi (Naming convention): Describe one-based partition
8546 (Device syntax): Likewise.
8547 (File name syntax): Likewise.
8548 (Block list syntax): Likewise.
8549 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8551 (File name syntax): Likewise.
8552 (Command-line and menu entry commands): Document acpi, blocklist,
8553 crc, export, insmod, keystatus, ls, set, and unset commands.
8555 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8557 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8558 to avoid implying that only one of --shift, --ctrl, or --alt may be
8561 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8563 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8564 rather than comparing against S_IFREG, which will almost never work.
8566 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8568 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8569 (write_blocklists): Likewise.
8571 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8573 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8574 argument to grub_printf.
8576 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8578 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8581 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8583 * kern/file.c (grub_file_read): Spelling fix
8585 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8587 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8588 loading of headers in some cases.
8590 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8592 * configure.ac: Bump version to 1.97~beta1.
8593 * docs/version.texi: Likewise.
8595 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8597 * include/grub/i386/xnu.h: Add license header.
8598 include grub/err.h explicitly.
8600 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8602 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8603 to `ufs' in the vfs.root.mountfrom kernel parameter.
8605 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8607 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8609 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8610 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8612 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8615 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8617 * kern/file.c (grub_file_read): Check offset.
8618 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8619 * fs/jfs.c (grub_jfs_read_file): Likewise.
8620 * fs/ntfs.c (grub_ntfs_read): Likewise.
8621 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8622 * fs/minix.c (grub_minix_read_file): Correct offset check.
8623 * fs/ufs.c (grub_ufs_read_file): Likewise.
8625 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8627 * term/i386/pc/console.c (bios_data_area): Cast
8628 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8630 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8632 1-bit optimised blitters.
8634 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8636 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8637 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8638 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8639 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8640 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8641 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8642 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8644 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8645 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8646 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8647 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8648 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8649 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8650 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8652 * video/video.c (grub_video_get_blit_format): Return
8653 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8655 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8657 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8658 the first argument to grub_printf.
8660 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8661 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8663 Add `getkeystatus' terminal method. Add a new `keystatus' command
8666 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8667 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8668 modifier key bitmasks.
8669 (struct grub_term_input): Add `getkeystatus' member.
8670 (grub_getkeystatus): Add prototype.
8671 * kern/term.c (grub_getkeystatus): New function.
8673 * include/grub/i386/pc/memory.h
8674 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8675 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8677 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8678 (grub_console_term_input): Set `getkeystatus' member.
8679 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8681 (grub_usb_keyboard_getreport): Likewise.
8682 (grub_usb_keyboard_checkkey): Likewise.
8683 (grub_usb_keyboard_getkeystatus): New function.
8684 (grub_usb_keyboard_term): Set `getkeystatus' member.
8686 * commands/keystatus.c: New file.
8687 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8688 (keystatus_mod_SOURCES): New variable.
8689 (keystatus_mod_CFLAGS): Likewise.
8690 (keystatus_mod_LDFLAGS): Likewise.
8691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8692 commands/keystatus.c.
8693 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8694 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8695 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8697 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8698 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8700 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8702 Split befs.mod and afs.mod into *_be.mod and *.mod
8704 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8705 (grub_fstest_SOURCES): Likewise.
8706 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8707 (afs_be_mod_SOURCES): New variable.
8708 (afs_be_mod_CFLAGS): Likewise.
8709 (afs_be_mod_LDFLAGS): Likewise.
8710 (befs_be_mod_SOURCES): Likewise.
8711 (befs_be_mod_CFLAGS): Likewise.
8712 (befs_be_mod_LDFLAGS): Likewise.
8713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8714 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8715 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8716 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8717 (grub_emu_SOURCES): Likewise.
8718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8719 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8720 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8721 * fs/afs_be.c: New file.
8722 * fs/befs_be.c: New file.
8723 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8724 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8725 (U16): Replaced with ...
8726 (grub_afs_to_cpu16): ...this. All users updated.
8727 (U32): Replaced with ...
8728 (grub_afs_to_cpu32): ...this. All users updated.
8729 (U64): Replaced with ...
8730 (grub_afs_to_cpu64): ...this. All users updated.
8731 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8732 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8733 (grub_afs_validate_sblock): Check only one endianness.
8734 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8735 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8736 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8737 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8738 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8739 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8740 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8741 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8743 2009-08-26 Bean <bean123ch@gmail.com>
8745 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8747 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8748 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8749 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8751 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8753 NetBSD memory map support.
8755 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8756 (grub_netbsd_btinfo_mmap_header): New structure.
8757 (grub_netbsd_btinfo_mmap_entry): Likewise.
8758 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8760 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8762 Enable bsd.mod on coreboot.
8764 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8765 (bsd_mod_SOURCES): New variable.
8766 (bsd_mod_CFLAGS): Likewise.
8767 (bsd_mod_LDFLAGS): Likewise.
8768 (bsd_mod_ASFLAGS): Likewise.
8769 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8770 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8772 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8774 Cleanup NetBSD root support.
8776 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8777 grub_bsd_get_device.
8780 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8782 * util/grub.d/00_header.in: Move check for the video backend of
8783 gfxterm from here ...
8784 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8785 a suitable video backend.
8787 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8789 Fix breakage in grub-setup.
8791 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8792 "msdos_partition_map".
8794 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8796 Fix breakage in normal/auth.c.
8798 * normal/auth.c (grub_iswordseparator): New function.
8800 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8802 Authentication support.
8804 * commands/password.c: New file.
8805 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8806 (password_mod_SOURCES): New variable.
8807 (password_mod_CFLAGS): Likewise.
8808 (password_mod_LDFLAGS): Likewise.
8809 (normal_mod_SOURCES): Add normal/auth.c.
8810 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8812 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8813 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8814 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8816 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8817 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8818 * include/grub/auth.h: New file.
8819 * include/grub/err.h (grub_err_t): New enum value
8820 GRUB_ERR_ACCESS_DENIED.
8821 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8823 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8824 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8826 * normal/auth.c: New file.
8827 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8828 (grub_cmdline_run): Don't allow to go to command line without
8830 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8831 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8832 menuentry without superuser rights.
8833 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8834 user isn't a superuser.
8836 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8838 Save space by inlining misc.c functions.
8840 * kern/misc.c (grub_iswordseparator): Made static.
8841 * kern/misc.c (grub_strcat): Moved from here ...
8842 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8843 * kern/misc.c (grub_strncat): Moved from here ...
8844 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8845 * kern/misc.c (grub_strcasecmp): Moved from here ...
8846 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8847 * kern/misc.c (grub_strncasecmp): Moved from here ...
8848 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8849 * kern/misc.c (grub_isalpha): Moved from here ...
8850 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8851 * kern/misc.c (grub_isdigit): Moved from here ...
8852 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8853 * kern/misc.c (grub_isgraph): Moved from here ...
8854 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8855 * kern/misc.c (grub_tolower): Moved from here ...
8856 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8858 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8860 * script/sh/function.c (grub_script_function_find): Cut error message
8861 not to flood terminal.
8862 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8864 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8866 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8868 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8869 `report' grub_uint8_t *.
8870 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8871 Use a 50-millisecond timeout rather than just repeating
8872 grub_usb_keyboard_getreport 50 times.
8873 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8875 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8877 Rename *_partition_map to part_*
8879 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8880 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8881 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8882 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8884 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8886 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8887 * util/grub-probe.c (probe_partmap): Don't transform partition name
8890 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8892 Fix OpenBSD and NetBSD support.
8894 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8895 memory address conflict.
8896 (OPENBSD_MMAP_ACPI): New definition.
8897 (OPENBSD_MMAP_NVS): Likewise.
8898 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8899 and OPENBSD_MMAP_NVS.
8900 Add memory map terminator
8901 Explicit cast when calling grub_unix_real_boot.
8902 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8904 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8906 Let user specify NetBSD root device.
8908 * loader/i386/bsd.c (netbsd_root): New variable.
8909 (netbsd_opts): New option 'root'.
8910 (NETBSD_ROOT_ARG): New macro.
8911 (grub_netbsd_boot): Use 'netbsd_root'.
8912 (grub_bsd_unload): Free 'netbsd_root'.
8913 (grub_cmd_netbsd): Fill 'netbsd_root'.
8915 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8917 Support for 64-bit NetBSD.
8919 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8920 point when booting non-FreeBSD.
8922 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8924 Support --no-smp and --no-acpi for NetBSD.
8926 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8927 (NETBSD_AB_NOACPI): Likewise.
8928 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8929 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8931 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8933 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8935 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8936 errors. Call grub_error when needed.
8938 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8940 * commands/search.c (search_fs): Try searching without autoload first.
8941 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8942 filesystem module explicitly for faster booting.
8944 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8946 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8948 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8950 * util/grub.d/30_os-prober.in: Disable os-prober if
8951 `GRUB_DISABLE_OS_PROBER' was set to true.
8953 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8955 * partmap/pc.c: Rename to ...
8956 * partmap/msdos.c: ... this. Update all users.
8957 (grub_pc_partition_map): Rename to ...
8958 (grub_msdos_partition_map): ... this. Update all users.
8960 * parttool/pcpart.c: Rename to ...
8961 * parttool/msdospart.c: ... this. Update all users.
8963 * include/grub/pc_partition.h: Rename to ...
8964 * include/grub/msdos_partition.h: ... this. Update all users.
8965 (grub_pc_partition_bsd_entry): Rename to ...
8966 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8967 (grub_pc_partition_disk_label): Rename to ...
8968 (grub_msdos_partition_disk_label): ... this. Update all users.
8969 (grub_pc_partition_entry): Rename to ...
8970 (grub_msdos_partition_entry): ... this. Update all users.
8971 (grub_pc_partition_mbr): Rename to ...
8972 (grub_msdos_partition_mbr): ... this. Update all users.
8973 (grub_pc_partition): Rename to ...
8974 (grub_msdos_partition): ... this. Update all users.
8975 (grub_pc_partition_is_empty): Rename to ...
8976 (grub_msdos_partition_is_empty): ... this. Update all users.
8977 (grub_pc_partition_is_extended): Rename to ...
8978 (grub_msdos_partition_is_extended): ... this. Update all users.
8979 (grub_pc_partition_is_bsd): Rename to ...
8980 (grub_msdos_partition_is_bsd): ... this. Update all users.
8982 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8983 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8984 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8985 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8986 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8987 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8988 (gpt_mod_LDFLAGS): Rename to ...
8989 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8990 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8991 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8992 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8993 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8994 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8995 (part_gpt_mod_LDFLAGS): ... this.
8996 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8997 `pcpart.mod' to `msdospart.mod'.
8998 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
9000 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9001 (msdospart_mod_LDFLAGS): ... this.
9003 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9005 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9006 (openbsd_opts): Likewise.
9007 (netbsd_opts): Likewise.
9008 (freebsd_flags): Added 0 terminator.
9009 (openbsd_flags): Likewise.
9010 (netbsd_flags): Likewise.
9011 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9012 (grub_cmd_freebsd): Transformed into extended command.
9013 (grub_cmd_openbsd): Likewise.
9014 (grub_cmd_netbsd): Likewise.
9015 (cmd_freebsd): Changed type to grub_extcmd_t.
9016 (cmd_openbsd): Likewise.
9017 (cmd_netbsd): Likewise.
9018 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9019 grub_cmd_openbsd as extended commands.
9020 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9021 cmd_netbsd and cmd_openbsd
9023 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9025 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9027 2009-08-21 Pavel Roskin <proski@gnu.org>
9029 * Makefile.in (install-local): When checking if a file is in the
9030 build directory, use "test -e" to detect symlinks.
9032 * Makefile.in (install-local): Remove all files in
9033 $(DESTDIR)$(pkglibdir) before installing new files there.
9035 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9037 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9040 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9042 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9043 explicitly specified by the user.
9045 2009-08-18 Pavel Roskin <proski@gnu.org>
9047 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9048 grub_uint8_t pointer for data.
9049 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9051 * video/fb/fbutil.c: Remove unnecessary casts.
9053 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9057 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9058 (grub_vbe_set_video_mode): Save active mode info
9059 only after setting the mode.
9060 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9063 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9065 Rename variables for clarity.
9067 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9068 (active_vbe_mode_info): ... this. All users updated.
9069 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9071 (initial_mode): Rename to ...
9072 (initial_vbe_mode): ... this. All users updated.
9073 (mode_in_use): Rename to ..
9074 (vbe_mode_in_use): ... this. All users updated.
9075 (mode_list): Rename to ..
9076 (vbe_mode_list): ... this. All users updated.
9077 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9078 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9079 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9080 'mode_list_size' to 'vbe_mode_list_size'.
9081 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9082 'best_mode_info' to 'best_vbe_mode_info' and
9083 'best_mode' to 'best_vbe_mode'
9085 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9087 Remove duplicate grub_video_fb_get_video_ptr.
9089 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9090 (grub_video_fb_get_video_ptr): ... this.
9091 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9092 * video/fb/fbutil.c: Add comment about addressing.
9093 (get_data_ptr): Rename to ...
9094 (grub_video_fb_get_video_ptr): ... this. All users updated.
9095 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9097 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9099 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9100 grub_dprintf() that was just added.
9102 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9104 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9105 (DEFAULT_VIDEO_MODE): Remove macros.
9106 (grub_linux_boot): Remove assumption that Linux has FB support,
9107 and use "text" as default video mode.
9109 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9111 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9113 * fs/fat.c (grub_fat_read_data): Likewise.
9115 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9117 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9119 (grub_module): Likewise.
9121 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9123 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9124 mbi->cmdline but free playground.
9126 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9128 Handle group offset on UFS1.
9130 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9131 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9133 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9135 Split ufs.mod into ufs1.mod and ufs2.mod.
9137 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9138 (grub_fstest_SOURCES): Likewise.
9139 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9140 (ufs_mod_SOURCES): Remove.
9141 (ufs_mod_CFLAGS): Likewise.
9142 (ufs_mod_LDFLAGS): Likewise.
9143 (ufs1_mod_SOURCES): New variable.
9144 (ufs1_mod_CFLAGS): Likewise.
9145 (ufs1_mod_LDFLAGS): Likewise.
9146 (ufs2_mod_SOURCES): New variable.
9147 (ufs2_mod_CFLAGS): Likewise.
9148 (ufs2_mod_LDFLAGS): Likewise.
9149 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9150 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9152 (grub_emu_SOURCES): Likewise.
9153 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9154 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9155 (grub_setup_SOURCES): Likewise.
9156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9157 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9158 (grub_setup_SOURCES): Likewise.
9159 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9161 * fs/ufs2.c: New file.
9162 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9164 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9168 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9169 subsystem at the end.
9170 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9171 (video_fb_mod_SOURCES): New variable.
9172 (video_fb_mod_CFLAGS): Likewise.
9173 (video_fb_mod_LDFLAGS): Likewise.
9174 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9175 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9176 * video/i386/pc/vbeblit.c: Moved from here ...
9177 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9178 * video/i386/pc/vbefill.c: Moved from here ...
9179 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9180 * video/i386/pc/vbeutil.c: Moved from here ...
9181 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9182 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9183 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9184 * include/grub/i386/pc/vbefill.h: Moved from here ...
9185 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9186 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9187 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9188 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9189 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9190 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9191 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9192 (grub_video_adapter): Added 'get_info_and_fini'.
9193 (grub_video_get_info_and_fini): New prototype.
9194 (grub_video_set_mode): make modestring const char *.
9195 * loader/i386/linux.c (grub_linux_setup_video): Use
9196 grub_video_get_info_and_fini.
9197 (grub_linux_boot): Move modesetting just before booting.
9198 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9199 grub_video_get_info_and_fini.
9200 * video/i386/pc/vbe.c: Moved framebuffer part ...
9201 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9202 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9203 grub_video_fbstd_colors and grub_video_fb_set_palette.
9204 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9206 (grub_video_vbe_fini): Use grub_video_fb_fini.
9207 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9208 render_target and use grub_video_fb_set_active_render_target and
9209 grub_video_fb_set_palette.
9210 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9211 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9212 (grub_video_vbe_adapter): Use framebuffer.
9213 * video/video.c (grub_video_get_info_and_fini): New function.
9214 (grub_video_set_mode): Make modestring const char *.
9215 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9216 values are already initialised.
9218 2009-08-14 Pavel Roskin <proski@gnu.org>
9220 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9222 * boot/i386/pc/diskboot.S: Likewise.
9223 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9224 sectors allow compilation on MacOSX.
9225 * conf/i386-pc.rmk: Enable unconditional compilation of
9228 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9230 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9231 * util/grub.d/00_header.in: Enter interruptible sleep if
9232 GRUB_HIDDEN_TIMEOUT is set.
9234 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9236 * include/grub/symbol.h: Add the LOCAL macro.
9237 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9240 2009-08-13 Pavel Roskin <proski@gnu.org>
9242 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9243 any modern compilers we support.
9245 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9246 Use local labels starting with "L_" so that Apple assembler
9247 knows they are local.
9249 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9251 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9252 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9253 (bsd_kernel_types): ... this enum.
9255 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9256 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9257 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9259 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9260 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9261 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9264 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9266 * util/grub-dumpdevtree: Moved from here ...
9267 * util/i386/efi/grub-dumpdevtree: ... to here.
9268 (hexify): New function. Converts a string to its hex version.
9269 Generate hex versions of "efi" and "device-properties" by calling
9270 hexify() on the ASCII strings rather than by hardcoding numbers.
9272 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9274 * fs/jfs.c: Update copyright year.
9276 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9278 * util/grub.d/00_header.in: Fix a comment.
9279 * util/grub.d/10_linux.in: Likewise.
9280 * util/grub.d/10_windows.in: Likewise.
9281 * util/grub.d/10_hurd.in: Likewise.
9283 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9285 * util/grub-mkconfig.in: Allow the user to specify the used font
9288 2009-08-08 Pavel Roskin <proski@gnu.org>
9290 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9291 available, xfs.mod needs it now.
9293 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9294 the "g" modifier in sed when the intention is to strip something
9295 once. This fixes comparison of kernels with multiple dashes.
9297 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9298 on it. Add missing space before closing bracket. Fix
9299 misleading formatting.
9301 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9303 * docs/grub.texi: Major overhaul. Remove all sections that are
9304 specific to GRUB Legacy, or mostly composed of Legacy-specific
9307 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9309 * docs/version.texi: New file. Provides version information for
9312 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9314 * docs/grub.texi: Update CVS information to SVN.
9315 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9317 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9319 * util/grub-mkconfig.in: Remove a wrong `fi'.
9321 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9323 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9324 (grub_jfs_uuid): New function.
9325 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9327 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9329 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9331 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9332 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9334 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9336 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9337 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9340 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9341 not just "vmlinu[zx]".
9343 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9346 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9347 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9350 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9352 * util/grub.d/10_freebsd.in: Use an absolute device path for
9353 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9355 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9357 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9358 handling of multiple abstraction modules.
9360 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9362 Fix a bug resulting in black screen when loading Linux using a
9365 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9368 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9369 (grub_vbe_bios_getset_dac_palette_width): New function.
9370 (grub_vbe_bios_get_dac_palette_width)
9371 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9372 grub_vbe_bios_getset_dac_palette_width()).
9374 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9375 check for return status.
9376 (grub_vbe_get_video_mode_info): When getting information for a packed
9377 mode (<= 8 bpp), obtain DAC palette width using
9378 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9379 {red,green,blue}_mark_size.
9381 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9383 * commands/search.c (options): Fix help output to match actual code.
9385 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9387 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9390 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9392 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9395 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9397 Support Apple partition map with sector size different from 512 bytes.
9399 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9400 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9401 and 'apart.partmap_size'.
9403 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9404 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9408 * commands/i386/cpuid.c (options): New variable.
9409 (grub_cmd_cpuid): Return real error.
9410 (GRUB_MOD_INIT(cpuid)): Declare options.
9412 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9414 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9417 2009-07-31 Bean <bean123ch@gmail.com>
9419 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9421 (grub_fshelp_node): Move inode field to the end.
9422 (grub_xfs_data): Remove inode field.
9423 (grub_xfs_inode_block): Calculate inode size using sblock.
9424 (grub_xfs_inode_offset): Likewise.
9425 (grub_xfs_read_inode): Calculate inode size using sblock.
9426 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9427 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9428 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9429 to match inode size.
9430 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9431 not accessible when data is null.
9432 (grub_xfs_open): Likewise.
9434 2009-07-31 Bean <bean123ch@gmail.com>
9436 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9437 Don't change pv->disk if it's already set.
9439 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9440 (grub_raid_register): ... here.
9441 (grub_raid_rescan): Removed.
9443 * include/grub/raid.h (grub_raid_rescan): Removed.
9445 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9446 (fstest): Replace grub_raid_rescan with module fini function followed
9449 * util/grub-probe.c: Add include file <grub/raid.h>.
9450 (probe_raid_level): New function.
9451 (probe): Detect abstraction by walking the disk device, support two
9452 level of abstraction (LVM on RAID) when detecting partition map.
9454 2009-07-31 Pavel Roskin <proski@gnu.org>
9456 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9457 to grub_zalloc(), it was erroneous.
9458 Reported by Bean <bean123ch@gmail.com>
9460 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9462 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9463 embedding zone, not only the first one.
9465 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9467 * term/gfxterm.c (clear_char): New function.
9468 (grub_virtual_screen_setup): Use clear_char.
9469 (scroll_up): Likewise.
9470 (grub_virtual_screen_cls): Likewise.
9472 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9474 * util/deviceiter.c (get_acceleraid_disk_name): New static
9476 (grub_util_iterate_devices): Handle Accelraid devices.
9477 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9479 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9481 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9482 separator for the suggested gfxpayload string (';' collides with the
9483 parser and needs escaping).
9485 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9487 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9488 Clear direction flag before jumping to OS.
9489 (grub_multiboot2_real_boot): Likewise.
9491 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9493 * util/i386/pc/grub-install: Fix parsing of --disk-module
9496 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9498 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9501 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9503 * util/grub-mkconfig.in (package_version): New variable.
9504 Use it do display the version.
9506 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9508 * kern/file.c (grub_file_open): Revert to previous check with
9511 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9513 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9514 from help line. It's out of sync with code.
9516 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9518 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9519 entries on failed boot.
9521 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9523 * kern/file.c (grub_file_open): Fix an error check.
9525 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9527 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9528 partition map couldn't be identified.
9530 2009-07-23 Pavel Roskin <proski@gnu.org>
9532 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9533 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9534 case of little endian words becomes just an optimization.
9535 Respect const modifier.
9536 (md5_final): Use code that doesn't depend on endianness.
9538 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9539 to avoid loss of upper bits if align is unsigned and shorter
9542 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9544 UUID support for UFS
9546 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9547 (grub_ufs_uuid): New function.
9548 (grub_ufs_fs): add .uuid
9550 2009-07-21 Pavel Roskin <proski@gnu.org>
9552 * kern/dl.c (grub_dl_check_header): Make static.
9554 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9556 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9557 add drivemap for Vista. It breaks Windows 7.
9559 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9561 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9564 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9568 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9569 (grub_fstest_SOURCES): Likewise.
9570 (pkglib_MODULES): Add befs.mod.
9571 (befs_mod_SOURCES): New variable.
9572 (befs_mod_CFLAGS): Likewise.
9573 (befs_mod_LDFLAGS): Likewise.
9574 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9575 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9576 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9577 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9578 (grub_setup_SOURCES): Likewise.
9579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9580 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9581 (grub_setup_SOURCES): Likewise.
9582 * fs/befs.c: New file.
9583 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9584 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9585 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9586 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9587 (B_KEY_INDEX_ALIGN): New declaration.
9588 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9589 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9590 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9591 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9592 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9593 (grub_afs_mount) [MODE_BFS]: Likewise.
9594 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9595 (grub_afs_fs): Use GRUB_AFS_FSNAME
9596 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9597 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9598 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9599 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9601 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9603 * util/getroot.c (find_root_device): Add support for MacOSX.
9604 * util/hostdisk.c: Likewise.
9606 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9608 * font/font.c (find_glyph): Check whether a font is present to avoid
9611 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9613 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9615 2009-07-20 Pavel Roskin <proski@gnu.org>
9617 * configure.ac: Trim excessively wordy excuses.
9619 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9621 Add symlink, mtime and label support to AtheFS.
9623 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9624 (grub_afs_iterate_dir): Handle symlinks.
9625 (grub_afs_open): Use grub_afs_read_symlink.
9626 (grub_afs_dir): Likewise.
9628 (grub_afs_label): New function.
9629 (grub_afs_fs): Add grub_afs_label.
9630 (grub_afs_read_symlink): New function.
9632 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9636 * fs/afs.c: Fix comments style.
9637 (grub_afs_blockrun): Declare as packed.
9638 (grub_afs_datastream): Likewise.
9639 (grub_afs_bnode): Likewise.
9640 (grub_afs_btree): Likewise.
9641 (grub_afs_sblock): Likewise.
9642 Declare `name' as char.
9643 (grub_afs_inode): Declare as packed.
9644 Change void *vnode to grub_uint32_t unused.
9645 (grub_afs_iterate_dir): Check that key_size is positive.
9646 (grub_afs_mount): Don't read superblock twice.
9647 (grub_afs_dir): Don't free node in case of error,
9648 grub_fshelp_find_file already handles this.
9649 (grub_afs_open): Likewise.
9651 2009-07-19 Pavel Roskin <proski@gnu.org>
9653 * Makefile.in: Remove LIBLZO and enable_lzo.
9654 * conf/i386-pc.rmk: Remove lzo support.
9655 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9656 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9658 * kern/i386/pc/lzo1x.S: Remove.
9659 * kern/i386/pc/startup.S: Remove lzo support.
9660 * util/i386/pc/grub-mkimage.c: Likewise.
9662 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9664 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9665 * fs/xfs.c (grub_xfs_dir): Likewise.
9666 * fs/afs.c (grub_afs_dir): Likewise.
9667 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9668 (grub_iso9660_open): Likewise.
9669 * fs/jfs.c (grub_jfs_open): Likewise.
9670 * fs/ext2.c (grub_ext2_dir): Likewise.
9671 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9672 * script/sh/lexer.c (grub_script_yylex): Likewise.
9674 2009-07-16 Pavel Roskin <proski@gnu.org>
9676 * configure.ac: Never add "-c" to CFLAGS.
9678 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9680 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9681 grub_cv_cc_efiemu should be used.
9683 * configure.ac: Typo fixes.
9685 * kern/mm.c (grub_zalloc): New function.
9686 (grub_debug_zalloc): Likewise.
9687 * include/grub/mm.h: Declare grub_zalloc() and
9688 grub_debug_zalloc().
9689 * util/misc.c (grub_zalloc): New function.
9690 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9691 instead of grub_malloc(), remove unneeded initializations.
9692 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9693 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9694 * commands/parttool.c (grub_cmd_parttool): Likewise.
9695 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9696 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9697 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9698 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9699 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9700 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9701 (grub_cmd_efiemu_pnvram): Likewise.
9702 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9703 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9704 (grub_iso9660_iterate_dir): Likewise.
9705 * fs/jfs.c (grub_jfs_opendir): Likewise.
9706 * fs/ntfs.c (list_file): Likewise.
9707 (grub_ntfs_mount): Likewise.
9708 * kern/disk.c (grub_disk_open): Likewise.
9709 * kern/dl.c (grub_dl_load_core): Likewise.
9710 * kern/elf.c (grub_elf_file): Likewise.
9711 * kern/env.c (grub_env_context_open): Likewise.
9712 (grub_env_set): Likewise.
9713 (grub_env_set_data_slot): Likewise.
9714 * kern/file.c (grub_file_open): Likewise.
9715 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9716 * loader/i386/multiboot.c (grub_module): Likewise.
9717 * loader/xnu.c (grub_xnu_create_key): Likewise.
9718 (grub_xnu_create_value): Likewise.
9719 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9720 (read_config_file): Likewise.
9721 * normal/menu_entry.c (make_screen): Likewise.
9722 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9723 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9724 * script/sh/script.c (grub_script_parse): Likewise.
9725 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9726 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9727 * video/readers/png.c (grub_png_output_byte): Likewise.
9728 (grub_video_reader_png): Likewise.
9730 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9732 Enable all targets that can be built by default
9734 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9735 grub-mkfont and grub-fstest if they can be built
9737 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9739 Fix hang and segmentation fault in grub-emu-usb
9741 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9742 * util/usb.c (grub_libusb_devices): likewise
9743 (grub_libusb_init): rename to ...
9744 (GRUB_MOD_INIT (libusb)):...this
9745 (grub_libusb_fini): rename to ..
9746 (GRUB_MOD_FINI (libusb)):...this
9747 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9748 * include/grub/disk.h (grub_raid_init): removed, it's useless
9749 (grub_raid_fini): likewise
9750 (grub_lvm_init): likewise
9751 (grub_lvm_fini): likewise
9752 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9755 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9759 * Makefile.in (LIBUSB): new macro
9760 * genmk.rb (Utility/print_tail): new method
9761 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9762 (top level): call util.print_tail at the end.
9764 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9766 Make FreeBSD accept zpool.cache
9768 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9769 type is /boot/zfs/zpool.cache
9771 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9775 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9776 correct wrong typedef
9777 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9779 2009-07-15 Pavel Roskin <proski@gnu.org>
9781 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9782 * kern/disk.c (struct grub_disk_cache): Likewise.
9784 * commands/probe.c (options): Typo fix.
9786 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9787 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9789 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9791 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9792 the end of "Error" to make the message more readable.
9794 * boot/i386/pc/boot.S (kernel_segment): Remove.
9795 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9798 * boot/i386/pc/boot.S (boot_version): Remove.
9799 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9802 * include/grub/i386/pc/boot.h: Sort all offsets.
9803 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9804 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9805 * boot/i386/pc/boot.S: Assert location of every offset listed in
9806 include/grub/i386/pc/boot.h.
9808 2009-07-13 Pavel Roskin <proski@gnu.org>
9810 * include/grub/i386/coreboot/machine.h: Rename
9811 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9812 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9813 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9815 * kern/dl.c: Force native word size to suppress warnings when
9818 * kern/device.c (grub_device_iterate): Change struct part_ent to
9819 hold the name, not a pointer to it. Use one grub_malloc() per
9820 partition, not two. Free partition_name if grub_malloc() fails.
9821 Set ents to NULL only before grub_partition_iterate() is called.
9823 2009-07-11 Bean <bean123ch@gmail.com>
9825 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9828 2009-07-10 Bean <bean123ch@gmail.com>
9829 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9831 * kern/ieee1275/openfw.c (grub_children_iterate)
9832 (grub_devalias_iterate): Fix size evaluation for property or path
9833 strings, which was broken since r2132.
9835 2009-07-07 Pavel Roskin <proski@gnu.org>
9837 * commands/search.c (search_file): Merge into ...
9838 (search_fs): ... this. Accept search type as argument.
9839 (grub_cmd_search): Pass search type to search_fs().
9841 * include/grub/util/console.h: New file.
9842 * util/console.c: Use it instead of grub/machine/console.h.
9843 * util/grub-emu.c: Likewise.
9845 * lib/arg.c (find_long_option): Remove.
9846 (find_long): Add `len' argument, make `s' const char *.
9847 (grub_arg_parse): Parse long options in place, not in a
9850 2009-07-06 Pavel Roskin <proski@gnu.org>
9852 * commands/search.c (search_fs): Fix potential NULL pointer
9855 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9858 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9860 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9863 2009-07-05 Pavel Roskin <proski@gnu.org>
9865 * include/grub/i386/linux.h (struct linux_kernel_params):
9866 Restore padding3, it's still needed.
9868 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9870 * util/osdetect.lua: Likewise.
9872 2009-07-05 Bean <bean123ch@gmail.com>
9874 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9876 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9877 (grub_lua_getenv): Likewise.
9878 (grub_lua_setenv): Likewise.
9879 (save_errno): New function.
9880 (push_result): Likewise.
9881 (grub_lua_enum_device): Likewise.
9882 (grub_lua_enum_file): Likewise.
9883 (grub_lua_file_open): Likewise.
9884 (grub_lua_file_close): Likewise.
9885 (grub_lua_file_seek): Likewise.
9886 (grub_lua_file_read): Likewise.
9887 (grub_lua_file_getline): Likewise.
9888 (grub_lua_file_getsize): Likewise.
9889 (grub_lua_file_getpos): Likewise.
9890 (grub_lua_file_eof): Likewise.
9891 (grub_lua_file_exist): Likewise.
9892 (grub_lua_add_menu): Likewise.
9894 * script/lua/grub_lua.h (isupper): New inline function.
9895 (islower): Likewise.
9896 (ispunct): Likewise.
9897 (isxdigit): Likewise.
9898 (strcspn): Change to normal function.
9899 (strpbkr): New function declaration.
9902 * script/lua/grub_main.c (scan_str): New function.
9903 (strcspn): Likewise.
9904 (strpbrk): Likewise.
9907 * script/lua/linit.c (lualibs): Enable the string library.
9909 * util/osdetect.lua: New file.
9911 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9913 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9914 `capabilities' member.
9916 2009-07-02 Pavel Roskin <proski@gnu.org>
9918 * genparttoollist.sh: Add missing newline at the end.
9920 2009-07-01 Pavel Roskin <proski@gnu.org>
9922 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9924 * util/hostdisk.c (open_device): Remove `const' from
9925 `sysctl_size', as sysctlbyname() can change it (in this case it
9926 doesn't actually happen).
9928 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9929 using signed long int constants.
9931 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9932 constant to avoid a warning on FreeBSD.
9934 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9937 * Makefile.in: Install include/grub/machine symlink.
9939 * Makefile.in: When installing symlinks, use "cp -fR", which
9940 works on FreeBSD and MacOSX.
9941 From Yves Blusseau <cl7m42e02@sneakemail.com>
9943 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9944 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9946 * util/misc.c: Move grub_reboot() and grub_halt() ...
9947 * util/grub-emu.c: ... here. Make main_env static.
9948 * include/grub/util/misc.h: Remove main_env.
9950 * kern/mm.c: Use correct format to print size_t.
9952 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9953 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9954 * kern/powerpc/dl.c: Likewise.
9955 * kern/sparc64/dl.c: Likewise.
9956 * kern/x86_64/dl.c: Likewise.
9958 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9960 Fix grub-emu build on sparc64-ieee1275.
9962 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9965 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9967 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9968 (grub_reboot, grub_halt): New functions.
9970 * util/i386/pc/misc.c: Delete. Update all users.
9971 * util/sparc64/ieee1275/misc.c: Likewise.
9972 * util/powerpc/ieee1275/misc.c: Likewise.
9974 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9976 * conf/i386.rmk (setjmp_mod_SOURCES)
9977 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9978 * conf/common.rmk (setjmp_mod_SOURCES)
9979 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9980 to use $(target_cpu).
9981 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9982 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9983 * conf/powerpc-ieee1275.rmk: Likewise.
9984 * conf/sparc64-ieee1275.rmk: Likewise.
9986 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9987 $(target_cpu) for kern/$(target_cpu)/dl.c.
9988 * conf/i386-efi.rmk: Likewise.
9989 * conf/i386-ieee1275.rmk: Likewise.
9990 * conf/x86_64-efi.rmk: Likewise.
9991 * conf/i386-coreboot.rmk: Likewise.
9992 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9993 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9994 kern/$(target_cpu)/cache.S.
9995 * conf/sparc64-ieee1275.rmk: Likewise.
9997 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9999 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10000 type to `grub_uint8_t', and adjust `padding9' accordingly.
10002 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10004 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10006 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10007 assembly in final jump, using register constraints.
10009 (grub_linux_boot): For text mode, initialize `have_vga' using
10010 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10012 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10013 right before the final jump.
10015 Set `video_mode' to 0x3.
10017 Document initialization of `video_page', `video_mode' and
10020 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10022 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10023 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
10024 and set GRUB_LINUX_FLAG_QUIET appropriately.
10026 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10028 Fix build on Debian / sparc.
10030 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10032 2009-06-28 Pavel Roskin <proski@gnu.org>
10034 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10037 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10039 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10041 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10044 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10048 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10049 file can't be opened. grub_file_open() is already supposed to set
10050 grub_errno / grub_errmsg appropriately.
10051 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10053 2009-06-27 Pavel Roskin <proski@gnu.org>
10054 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10056 * include/grub/dl.h: Include grub/elf.h.
10057 (struct grub_dl): Add symtab field.
10058 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10059 GRUB_MODULES_MACHINE_READONLY.
10060 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10061 of the header for read-only modules.
10062 (grub_dl_unload): Free mod->symtab for read-only modules.
10063 * kern/i386/dl.c: Use mod->symtab.
10064 * kern/powerpc/dl.c: Likewise.
10065 * kern/sparc64/dl.c: Likewise.
10066 * kern/x86_64/dl.c: Likewise.
10068 * conf/i386-qemu.rmk: New file.
10069 * kern/i386/qemu/startup.S: Likewise.
10070 * kern/i386/qemu/mmap.c: Likewise.
10071 * boot/i386/qemu/boot.S: Likewise.
10072 * include/grub/i386/qemu/time.h: Likewise.
10073 * include/grub/i386/qemu/serial.h: Likewise.
10074 * include/grub/i386/qemu/kernel.h: Likewise.
10075 * include/grub/i386/qemu/console.h: Likewise.
10076 * include/grub/i386/qemu/boot.h: Likewise.
10077 * include/grub/i386/qemu/init.h: Likewise.
10078 * include/grub/i386/qemu/machine.h: Likewise.
10079 * include/grub/i386/qemu/loader.h: Likewise.
10080 * include/grub/i386/qemu/memory.h: Likewise.
10082 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10083 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10084 [qemu] (pkglib_IMAGES): Add `boot.img'.
10085 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10086 [qemu] (boot_img_FORMAT): New variables.
10087 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10088 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10089 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10090 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10091 [qemu] (kernel_img_FORMAT): New variables.
10093 * configure.ac: Recognise `i386-qemu'.
10095 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10096 (for no compression).
10097 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10098 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10099 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10100 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10103 2009-06-27 Pavel Roskin <proski@gnu.org>
10105 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10107 * efiemu/prepare32.c: Likewise.
10108 * efiemu/prepare64.c: Likewise.
10110 2009-06-26 Pavel Roskin <proski@gnu.org>
10112 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10113 * include/grub/elf.h: Define symbols without "32" or "64" based
10114 on GRUB_TARGET_WORDSIZE.
10115 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10116 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10118 * efiemu/loadcore64.c: Likewise.
10119 * loader/i386/bsd32.c: Likewise.
10120 * loader/i386/bsd64.c: Likewise.
10121 * kern/dl.c: Remove own ELF definitions.
10122 * util/i386/efi/grub-mkimage.c: Likewise.
10124 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10126 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10127 segment 0x0 unconditionally, because the reference generated by
10128 GAS is an absolute address.
10130 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10132 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10133 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10135 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10137 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10138 indexes. Check for -f explicitly.
10139 (search_file): Improve error message.
10140 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10142 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10144 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10145 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10147 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10149 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10150 * conf/i386-ieee1275.rmk: Likewise.
10151 * conf/i386-coreboot.rmk: Likewise.
10153 * kern/i386/pc/startup.S (grub_stop): Remove function.
10154 * kern/i386/ieee1275/startup.S: Likewise.
10155 * kern/i386/coreboot/startup.S: Likewise.
10156 * kern/i386/misc.S (grub_stop): New function.
10158 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10160 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10161 * kern/i386/realmode.S (real_to_prot): ... to here.
10163 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10165 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10167 (kernel_elf_SOURCES): Rename to ...
10168 (kernel_img_SOURCES): ... this.
10169 (kernel_elf_HEADERS): Rename to ...
10170 (kernel_img_HEADERS): ... this. Update all users.
10171 (kernel_elf_ASFLAGS): Rename to ...
10172 (kernel_img_ASFLAGS): ... this.
10173 (kernel_elf_CFLAGS): Rename to ...
10174 (kernel_img_CFLAGS): ... this.
10175 (kernel_elf_LDFLAGS): Rename to ...
10176 (kernel_img_LDFLAGS): ... this.
10177 * conf/i386-coreboot.rmk: Likewise.
10178 * conf/powerpc-ieee1275.rmk: Likewise.
10180 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10183 2009-06-21 Pavel Roskin <proski@gnu.org>
10185 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10186 to match nested functions.
10187 * loader/sparc64/ieee1275/linux.c: Likewise.
10189 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10191 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10193 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10194 all i386 platforms.
10196 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10198 Fix asm file handling on ELF, and remove workarounds.
10200 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10201 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10202 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10203 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10205 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10207 Load BSD ELF modules
10209 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10210 and loader/i386/bsd64.c
10211 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10212 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10213 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10214 (grub_freebsd_load_elfmodule32): New declaration
10215 (grub_freebsd_load_elfmoduleobj64): Likewise
10216 (grub_freebsd_load_elf_meta32): Likewise
10217 (grub_freebsd_load_elf_meta64): Likewise
10218 (grub_freebsd_add_meta): Likewise
10219 (grub_freebsd_add_meta_module): Likewise
10220 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10221 (grub_freebsd_add_meta_module): Likewise and move module-specific
10222 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10223 (grub_cmd_freebsd): Add elf-kernel specific parts
10224 based on grub_freebsd_add_meta_module
10225 (grub_cmd_freebsd_module): Add type parsing moved from
10226 grub_freebsd_add_meta_module
10227 (grub_cmd_freebsd_module_elf): New function
10228 (cmd_freebsd_module_elf): New variable
10229 (GRUB_MOD_INIT): Register freebsd_module_elf
10230 * loader/i386/bsd32.c: New file
10231 * loader/i386/bsd64.c: Likewise
10232 * loader/i386/bsdXX.c: Likewise
10233 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10234 (grub_elf64_load): Likewise
10235 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10237 (grub_elf64_load_hook_t): Likewise
10239 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10241 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10243 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10244 don't write a menu entry for recovery mode.
10246 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10248 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10249 after it's no longer needed.
10251 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10253 * include/grub/i386/loader.h (grub_linux_prot_size)
10254 (grub_linux_tmp_addr, grub_linux_real_addr)
10255 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10256 GRUB_MACHINE_PCBIOS.
10257 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10258 common grub_util_info() call to ...
10259 (generate_image): ... here.
10260 Fix use of uninitialized memory, comparison of signed with
10261 unsigned integers and memory leak.
10262 Remove bogus module address message.
10264 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10266 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10268 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10270 2009-06-19 Pavel Roskin <proski@gnu.org>
10272 * configure.ac: Remove stray AC_MSG_CHECKING.
10274 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10276 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10278 2009-06-18 Pavel Roskin <proski@gnu.org>
10280 * conf/common.rmk: Add fs_file.mod.
10281 * disk/fs_file.c: New file.
10282 * include/grub/disk.h (enum grub_disk_dev_id): Add
10283 GRUB_DISK_DEVICE_FILE_ID.
10285 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10287 Fix build with Apple's toolchain. Part 2
10289 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10292 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10294 Fix build with Apple's toolchain. Part 1
10296 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10298 * configure.ac: remove a leftover AC_MSG_RESULT
10299 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10302 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10306 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10307 (decomp_block): initialize ch
10308 use grub_memcpy instead of memcpy
10310 2009-06-17 Pavel Roskin <proski@gnu.org>
10312 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10313 version, use declarations needed to use vga_text as the startup
10316 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10317 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10319 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10320 and grub_at_keyboard_fini(), it's done on module load and
10323 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10325 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10326 file can't be found.
10327 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10329 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10331 Fix newline handling
10333 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10334 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10335 (grub_script_yylex): don't segfault on unterminated script
10336 newline terminates command and variable
10338 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10340 avoid double grub_adjust_range call. Bug reported by David Simner
10342 * kern/disk.c (grub_disk_write): change to raw disk access before
10345 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10347 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10348 spaces, for the benefit of help2man.
10349 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10351 2009-06-16 Pavel Roskin <proski@gnu.org>
10353 * kern/i386/halt.c: Include grub/machine/init.h.
10354 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10356 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10358 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10359 drivemap menuentry.
10361 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10363 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10366 2009-06-16 Pavel Roskin <proski@gnu.org>
10368 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10369 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10370 save %dx, we only need %dl and we never change it.
10371 * boot/i386/pc/cdboot.S: Don't set the root drive.
10372 * boot/i386/pc/pxeboot.S: Likewise.
10373 * include/grub/i386/pc/boot.h: Remove
10374 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10375 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10376 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10377 * kern/i386/pc/init.c (make_install_device): Remove references
10378 to grub_root_drive.
10379 * kern/i386/pc/startup.S: Likewise.
10380 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10382 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10386 * commands/xnu_uuid.c: new file
10387 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10388 (xnu_uuid_mod_SOURCES): new variable
10389 (xnu_uuid_mod_CFLAGS): likewise
10390 (xnu_uuid_mod_LDFLAGS): likewise
10391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10392 * conf/i386-ieee1275.rmk: likewise
10393 * conf/i386-pc.rmk: likewise
10394 * conf/powerpc-ieee1275.rmk: likewise
10395 * conf/sparc64-ieee1275.rmk: likewise
10396 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10398 2009-06-16 Pavel Roskin <proski@gnu.org>
10400 * configure.ac: Avoid '==' in test command, it's not portable.
10402 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10406 * commands/probe.c: new file
10407 * conf/common.rmk (pkglib_MODULES): add probe.mod
10408 (probe_mod_SOURCES): new variable
10409 (probe_mod_CFLAGS): likewise
10410 (probe_mod_LDFLAGS): likewise
10411 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10412 * conf/i386-ieee1275.rmk: likewise
10413 * conf/i386-pc.rmk: likewise
10414 * conf/powerpc-ieee1275.rmk: likewise
10415 * conf/sparc64-ieee1275.rmk: likewise
10417 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10419 Fix handling of string like \"hello\" and "a
10422 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10423 (grub_script_yylex): fix parsing of quoting, escaping and newline
10425 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10427 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10430 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10432 * util/grub-mkconfig.in: Fix parsing of --output option.
10434 2009-06-12 Pavel Roskin <proski@gnu.org>
10436 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10437 genmk.rb don't need to be generated or installed.
10439 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10441 * commands/i386/pc/drivemap_int13h.S: add more comments
10443 2009-06-11 Pavel Roskin <proski@gnu.org>
10445 * Makefile.in (uninstall): Uninstall manuals.
10447 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10448 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10449 and update-grub_lib in two places.
10450 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10452 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10453 a compiler warning.
10455 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10456 `entry_lo' to fix variable shadowing.
10458 2009-06-11 Christian Franke <franke@computer.org>
10460 * kern/misc.c (__enable_execute_stack): Add missing return type
10461 to prevent gcc warning.
10463 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10465 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10467 2009-06-11 Pavel Roskin <proski@gnu.org>
10469 * Makefile.in: Don't rely on any scripts being executable.
10470 Always use $(SHELL) to run shell scripts.
10472 * configure.ac: Always define ___main if using -nostdlib. This
10473 fixes tests on Cygwin.
10475 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10479 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10480 is in bytes and not in blocks
10482 2009-06-11 Pavel Roskin <proski@gnu.org>
10484 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10487 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10489 * util/grub.d/30_os-prober.in: Fix a comment. Source
10490 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10491 to set the root device. Place drivemap command in the generated
10494 2009-06-11 Pavel Roskin <proski@gnu.org>
10496 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10497 have long been resolved.
10499 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10501 * util/grub.d/10_linux.in: Capitalise "Linux".
10503 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10505 2009-06-11 Pavel Roskin <proski@gnu.org>
10507 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10508 fix a gcc warning and ensure that the function won't ever exit.
10510 * kern/i386/ieee1275/init.c: Add missing prototype for
10511 grub_stop_floppy().
10513 * loader/ieee1275/multiboot2.c [__i386__]: Include
10514 grub/cpu/multiboot.h.
10516 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10517 casts to short - they are not portable and cause warnings. Fix
10518 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10520 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10524 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10526 (grub_get_root_biosnumber_saved): new variable
10527 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10528 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10529 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10530 %dx after the call if necessary
10531 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10532 (boot_mod_SOURCES): remove
10533 (boot_mod_CFLAGS): remove
10534 (boot_mod_LDFLAGS): remove
10535 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10536 (boot_mod_SOURCES): new variable
10537 (boot_mod_CFLAGS): likewise
10538 (boot_mod_LDFLAGS): likewise
10539 * conf/i386-efi.rmk: likewise
10540 * conf/i386-ieee1275.rmk: likewise
10541 * conf/i386-pc.rmk: likewise
10542 * conf/powerpc-ieee1275.rmk: likewise
10543 * conf/sparc64-ieee1275.rmk: likewise
10544 * conf/x86_64-efi.rmk: likewise
10545 * include/grub/i386/pc/biosnum.h: new file
10546 * lib/i386/pc/biosnum.c: likewise
10547 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10548 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10549 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10551 2009-06-10 Pavel Roskin <proski@gnu.org>
10553 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10554 Use separate variables. Read only the file size at the end, but
10555 not the checksum that we don't use.
10557 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10558 Adjust all callers.
10560 * kern/ieee1275/openfw.c: Remove libc includes.
10561 * kern/ieee1275/cmain.c: Likewise.
10562 * include/grub/ieee1275/ieee1275.h: Likewise.
10564 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10567 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10569 * Makefile.in: Remove all trailing whitespace.
10570 * conf/i386-pc.rmk: Likewise.
10571 * conf/powerpc-ieee1275.rmk: Likewise.
10572 * conf/sparc64-ieee1275.rmk: Likewise.
10573 * docs/grub.texi: Likewise.
10574 * docs/texinfo.tex: Likewise.
10575 * disk/fs_uuid.c: Likewise.
10576 * disk/lvm.c: Likewise.
10577 * disk/scsi.c: Likewise.
10578 * disk/ata.c: Likewise.
10579 * disk/ieee1275/ofdisk.c: Likewise.
10580 * disk/i386/pc/biosdisk.c: Likewise.
10581 * disk/host.c: Likewise.
10582 * disk/raid.c: Likewise.
10583 * disk/efi/efidisk.c: Likewise.
10584 * disk/usbms.c: Likewise.
10585 * disk/memdisk.c: Likewise.
10586 * disk/loopback.c: Likewise.
10587 * kern/powerpc/dl.c: Likewise.
10588 * kern/device.c: Likewise.
10589 * kern/dl.c: Likewise.
10590 * kern/sparc64/dl.c: Likewise.
10591 * kern/ieee1275/ieee1275.c: Likewise.
10592 * kern/term.c: Likewise.
10593 * kern/fs.c: Likewise.
10594 * kern/i386/dl.c: Likewise.
10595 * kern/i386/pc/startup.S: Likewise.
10596 * kern/i386/pc/init.c: Likewise.
10597 * kern/i386/pc/mmap.c: Likewise.
10598 * kern/i386/pc/lzo1x.S: Likewise.
10599 * kern/i386/ieee1275/init.c: Likewise.
10600 * kern/i386/realmode.S: Likewise.
10601 * kern/i386/tsc.c: Likewise.
10602 * kern/partition.c: Likewise.
10603 * kern/corecmd.c: Likewise.
10604 * kern/file.c: Likewise.
10605 * kern/efi/efi.c: Likewise.
10606 * kern/efi/init.c: Likewise.
10607 * kern/efi/mm.c: Likewise.
10608 * kern/main.c: Likewise.
10609 * kern/err.c: Likewise.
10610 * kern/env.c: Likewise.
10611 * kern/disk.c: Likewise.
10612 * kern/generic/millisleep.c: Likewise.
10613 * kern/generic/rtc_get_time_ms.c: Likewise.
10614 * kern/misc.c: Likewise.
10615 * kern/parser.c: Likewise.
10616 * genmk.rb: Likewise.
10617 * configure.ac: Likewise.
10618 * boot/i386/pc/diskboot.S: Likewise.
10619 * boot/i386/pc/pxeboot.S: Likewise.
10620 * boot/i386/pc/boot.S: Likewise.
10621 * boot/i386/pc/lnxboot.S: Likewise.
10622 * boot/i386/pc/cdboot.S: Likewise.
10623 * parttool/pcpart.c: Likewise.
10624 * video/readers/tga.c: Likewise.
10625 * video/video.c: Likewise.
10626 * video/bitmap.c: Likewise.
10627 * lib/envblk.c: Likewise.
10628 * lib/i386/setjmp.S: Likewise.
10629 * fs/xfs.c: Likewise.
10630 * fs/afs.c: Likewise.
10631 * fs/fat.c: Likewise.
10632 * fs/ntfs.c: Likewise.
10633 * fs/udf.c: Likewise.
10634 * fs/affs.c: Likewise.
10635 * fs/iso9660.c: Likewise.
10636 * fs/hfs.c: Likewise.
10637 * fs/fshelp.c: Likewise.
10638 * fs/ext2.c: Likewise.
10639 * fs/jfs.c: Likewise.
10640 * fs/reiserfs.c: Likewise.
10641 * fs/hfsplus.c: Likewise.
10642 * fs/minix.c: Likewise.
10643 * fs/cpio.c: Likewise.
10644 * fs/sfs.c: Likewise.
10645 * fs/ufs.c: Likewise.
10646 * efiemu/prepare.c: Likewise.
10647 * efiemu/loadcore_common.c: Likewise.
10648 * efiemu/runtime/efiemu.sh: Likewise.
10649 * efiemu/runtime/efiemu.S: Likewise.
10650 * efiemu/runtime/efiemu.c: Likewise.
10651 * efiemu/pnvram.c: Likewise.
10652 * efiemu/main.c: Likewise.
10653 * efiemu/i386/pc/cfgtables.c: Likewise.
10654 * efiemu/i386/loadcore64.c: Likewise.
10655 * efiemu/i386/loadcore32.c: Likewise.
10656 * efiemu/loadcore.c: Likewise.
10657 * efiemu/symbols.c: Likewise.
10658 * efiemu/mm.c: Likewise.
10659 * include/grub/autoefi.h: Likewise.
10660 * include/grub/datetime.h: Likewise.
10661 * include/grub/term.h: Likewise.
10662 * include/grub/hfs.h: Likewise.
10663 * include/grub/lvm.h: Likewise.
10664 * include/grub/i386/tsc.h: Likewise.
10665 * include/grub/i386/linux.h: Likewise.
10666 * include/grub/i386/xnu.h: Likewise.
10667 * include/grub/i386/efiemu.h: Likewise.
10668 * include/grub/i386/pc/biosdisk.h: Likewise.
10669 * include/grub/i386/pc/memory.h: Likewise.
10670 * include/grub/i386/pc/vbe.h: Likewise.
10671 * include/grub/parttool.h: Likewise.
10672 * include/grub/video.h: Likewise.
10673 * include/grub/memory.h: Likewise.
10674 * include/grub/fs.h: Likewise.
10675 * include/grub/partition.h: Likewise.
10676 * include/grub/xnu.h: Likewise.
10677 * include/grub/efi/api.h: Likewise.
10678 * include/grub/efi/pe32.h: Likewise.
10679 * include/grub/efi/memory.h: Likewise.
10680 * include/grub/multiboot.h: Likewise.
10681 * include/grub/usbdesc.h: Likewise.
10682 * include/grub/multiboot2.h: Likewise.
10683 * include/grub/acpi.h: Likewise.
10684 * include/grub/efiemu/efiemu.h: Likewise.
10685 * include/grub/disk.h: Likewise.
10686 * include/grub/ieee1275/ieee1275.h: Likewise.
10687 * include/grub/net.h: Likewise.
10688 * include/grub/machoload.h: Likewise.
10689 * include/grub/macho.h: Likewise.
10690 * include/multiboot.h: Likewise.
10691 * genmoddep.awk: Likewise.
10692 * normal/main.c: Likewise.
10693 * normal/menu_entry.c: Likewise.
10694 * normal/menu_viewer.c: Likewise.
10695 * normal/completion.c: Likewise.
10696 * normal/cmdline.c: Likewise.
10697 * normal/misc.c: Likewise.
10698 * normal/datetime.c: Likewise.
10699 * bus/usb/usbtrans.c: Likewise.
10700 * bus/usb/ohci.c: Likewise.
10701 * bus/usb/uhci.c: Likewise.
10702 * bus/usb/usb.c: Likewise.
10703 * mmap/efi/mmap.c: Likewise.
10704 * mmap/i386/pc/mmap_helper.S: Likewise.
10705 * mmap/i386/pc/mmap.c: Likewise.
10706 * mmap/i386/mmap.c: Likewise.
10707 * mmap/i386/uppermem.c: Likewise.
10708 * mmap/mmap.c: Likewise.
10709 * commands/acpi.c: Likewise.
10710 * commands/echo.c: Likewise.
10711 * commands/blocklist.c: Likewise.
10712 * commands/loadenv.c: Likewise.
10713 * commands/usbtest.c: Likewise.
10714 * commands/boot.c: Likewise.
10715 * commands/parttool.c: Likewise.
10716 * commands/search.c: Likewise.
10717 * commands/cat.c: Likewise.
10718 * commands/i386/pc/play.c: Likewise.
10719 * commands/i386/pc/drivemap.c: Likewise.
10720 * commands/i386/pc/vbeinfo.c: Likewise.
10721 * commands/i386/pc/acpi.c: Likewise.
10722 * commands/i386/pc/vbetest.c: Likewise.
10723 * commands/ls.c: Likewise.
10724 * commands/cmp.c: Likewise.
10725 * commands/test.c: Likewise.
10726 * commands/efi/acpi.c: Likewise.
10727 * commands/gptsync.c: Likewise.
10728 * commands/help.c: Likewise.
10729 * partmap/amiga.c: Likewise.
10730 * partmap/apple.c: Likewise.
10731 * partmap/acorn.c: Likewise.
10732 * partmap/pc.c: Likewise.
10733 * partmap/sun.c: Likewise.
10734 * partmap/gpt.c: Likewise.
10735 * script/sh/lexer.c: Likewise.
10736 * script/sh/function.c: Likewise.
10737 * font/font.c: Likewise.
10738 * font/font_cmd.c: Likewise.
10739 * loader/powerpc/ieee1275/linux.c: Likewise.
10740 * loader/efi/chainloader.c: Likewise.
10741 * loader/multiboot_loader.c: Likewise.
10742 * loader/macho.c: Likewise.
10743 * loader/i386/multiboot.c: Likewise.
10744 * loader/i386/linux.c: Likewise.
10745 * loader/i386/pc/linux.c: Likewise.
10746 * loader/i386/pc/multiboot2.c: Likewise.
10747 * loader/i386/pc/chainloader.c: Likewise.
10748 * loader/i386/pc/xnu.c: Likewise.
10749 * loader/i386/bsd_trampoline.S: Likewise.
10750 * loader/i386/efi/linux.c: Likewise.
10751 * loader/i386/multiboot_elfxx.c: Likewise.
10752 * loader/i386/bsd_helper.S: Likewise.
10753 * loader/i386/bsd.c: Likewise.
10754 * loader/i386/linux_trampoline.S: Likewise.
10755 * loader/i386/xnu_helper.S: Likewise.
10756 * loader/i386/xnu.c: Likewise.
10757 * loader/i386/bsd_pagetable.c: Likewise.
10758 * loader/i386/multiboot_helper.S: Likewise.
10759 * loader/xnu.c: Likewise.
10760 * loader/xnu_resume.c: Likewise.
10761 * io/gzio.c: Likewise.
10762 * term/efi/console.c: Likewise.
10763 * term/terminfo.c: Likewise.
10764 * term/ieee1275/ofconsole.c: Likewise.
10765 * term/i386/pc/serial.c: Likewise.
10766 * term/i386/pc/vesafb.c: Likewise.
10767 * term/i386/pc/vga.c: Likewise.
10768 * term/usb_keyboard.c: Likewise.
10769 * term/gfxterm.c: Likewise.
10770 * aclocal.m4: Likewise.
10771 * util/lvm.c: Likewise.
10772 * util/grub.d/30_os-prober.in: Likewise.
10773 * util/grub.d/10_hurd.in: Likewise.
10774 * util/console.c: Likewise.
10775 * util/grub-macho2img.c: Likewise.
10776 * util/grub-probe.c: Likewise.
10777 * util/hostfs.c: Likewise.
10778 * util/i386/pc/grub-mkimage.c: Likewise.
10779 * util/i386/pc/grub-setup.c: Likewise.
10780 * util/i386/efi/grub-mkimage.c: Likewise.
10781 * util/grub-mkconfig.in: Likewise.
10782 * util/raid.c: Likewise.
10783 * util/resolve.c: Likewise.
10784 * util/grub-mkdevicemap.c: Likewise.
10785 * util/grub-emu.c: Likewise.
10786 * util/getroot.c: Likewise.
10787 * util/hostdisk.c: Likewise.
10788 * util/usb.c: Likewise.
10789 * util/grub-editenv.c: Likewise.
10790 * util/misc.c: Likewise.
10792 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10794 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10795 `genparttoollist.sh'.
10796 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10797 Add `*.sh' to the list find searches for and change `mdate.sh'
10800 2009-06-10 Pavel Roskin <proski@gnu.org>
10802 * include/grub/multiboot2.h: Provide compatibility defines for
10804 * include/multiboot2.h: Include stdint.h only if needed, using
10806 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10808 * loader/ieee1275/multiboot2.c: Likewise.
10809 * loader/multiboot2.c: Likewise.
10810 * loader/multiboot_loader.c: Likewise.
10812 * configure.ac: Use -nostdlib when probing for the target. It
10813 should not be required to have libc for the target.
10815 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10816 they fail without libc headers for the target.
10817 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10819 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10820 preprocessor conditionals.
10822 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10823 build system doesn't need to be aware of the tar.c internals.
10825 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10827 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10829 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10831 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10832 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10834 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10836 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10837 aren't available if ata.mod gets used.
10839 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10841 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10842 initialising controller.
10843 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10845 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10847 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10848 to choose between ata and biosdisk module on i386-pc.
10850 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10852 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10853 Subclass and Programming Interface fields in terms of the 3 byte
10854 Class Code register.
10855 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10857 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10858 interface is OHCI. Add grub_dprintf for symmetry with
10860 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10861 interface is UHCI. Add interf variable for programming
10862 interface. Print interface with class/subclass.
10864 * bus/usb/ohci.c: Set interf with correct field.
10866 * bus/usb/uhci.c: Remove unneeded doubled lines.
10867 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10868 Remove whitespace inside comment.
10870 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10872 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10873 as fallback an equivalent option without depth.
10875 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10877 Not fail if unable to retrieve C/H/S on LBA disks
10879 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10880 if unable to retrieve C/H/S on LBA disks
10882 2009-06-08 Pavel Roskin <proski@gnu.org>
10884 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10887 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10889 * Makefile.in (uninstall): Remove all $lib_DATA files.
10891 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10893 Bugfix: install on partitionless device
10895 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10898 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10900 * Makefile.in (uninstall): Remove all $include_DATA files.
10902 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10904 * commands/true.c: New file. Implement the true and false commands.
10905 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10906 (true_mod_SOURCES): New variable.
10907 (true_mod_CFLAGS): Likewise.
10908 (true_mod_LDFLAGS): Likewise.
10910 2009-06-05 Colin D Bennett <colin@gibibit.com>
10912 Optimized font character lookup using binary search instead of linear
10913 search. Fonts now are required to have the character index ordered by
10916 * font/font.c (load_font_index): Verify that fonts have ordered
10918 (find_glyph): Use binary search instead of linear search to find a
10919 character in a font.
10921 2009-06-05 Michael Scherer <misc@mandriva.org>
10923 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10924 uses case sensitive btree.
10925 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10926 only for case insensitive filesystems.
10928 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10930 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10931 * conf/common.rmk (search_mod_CFLAGS): likewise
10933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10935 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10936 compensate a compiler bug
10938 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10940 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10943 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10945 Definitions for creating asm symbols with Apple's CC
10947 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10948 [APPLE_CC] (VARIABLE): likewise
10950 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10952 Disable lnxboot.img when compiled
10955 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10956 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10957 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10958 [! APPLE_CC] (CODE_LENG): skip
10959 [! APPLE_CC] (setup_sects): likewise
10960 [! APPLE_CC]: skip filling
10962 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10964 Address in trampolines based on 32-bit registers when compiled
10967 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10969 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10973 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10975 * kern/misc.c [APPLE_CC] (memcpy): new function
10976 [APPLE_CC] (memmove): likewise
10977 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10978 (memcpy): define alias conditionally on !APPLE_CC
10981 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10982 APPLE_CC are defined
10983 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10984 (grub_assert_fail): make prototype conditional
10986 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10988 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10990 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10992 (CLEANFILES): add grub-macho2img
10993 (grub_macho2img_SOURCES): new variable
10994 * kern/i386/pc/startup.S (bss_start): new variable
10995 (bss_end): likewise
10996 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10997 * util/grub-macho2img.c: new file
10999 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11001 Use objconv when compiling with Apple's CC
11003 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11004 (efiemu64.o): likewise
11005 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11006 when compiling with Apple's CC
11007 (efiemu64_s.o): likewise
11008 * configure.ac: check for objconv when compiling with Apple's CC
11009 * genmk.rb: use objconv for modules when compiled with Apple's CC
11011 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11013 Define segment as well as section when compiling with
11016 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11017 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11018 (efiemu_convert_pointer): likewise
11019 (efiemu_set_virtual_address_map): likewise
11020 (efiemu_convert_pointer): likewise
11021 (efiemu_getcrc32): likewise
11022 (init_crc32_table): likewise
11023 (reflect): likewise
11024 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11025 (GRUB_MOD_DEP): likewise
11027 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11029 Allow a compilation without -mcmodel=large
11031 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11032 when compiled without -mcmodel=large
11033 (filter_memory_map): remove memory post 4 GiB when compiled
11034 without -mcmodel=large
11035 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
11036 TARGET_CFLAGS when -mcmodel=large isn't supported
11038 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11040 Remove nested functions in efiemu core
11042 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
11044 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11046 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11048 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11050 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11052 (grub_cpu_is_tsc_supported): likewise
11053 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
11055 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11057 Absolute addressing through constant with Apple's cc
11059 * kern/i386/pc/startup.S: Define necessary constants
11060 and address through it when using ABS with Apple's CC
11061 * boot/i386/pc/diskboot.S: likewise
11062 * boot/i386/pc/boot.S: likewise
11063 * boot/i386/pc/lnxboot.S: likewise
11064 * boot/i386/pc/cdboot.S: likewise
11065 * mmap/i386/pc/mmap_helper.S: likewise
11066 * commands/i386/pc/drivemap_int13h.S: likewise
11068 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11070 Check if compiler is apple cc
11072 * Makefile.in (ASFLAGS): new variable
11073 (TARGET_ASFLAGS): likewise
11074 (TARGET_MODULE_FORMAT): likewise
11075 (TARGET_APPLE_CC): likewise
11076 (OBJCONV): likewise
11077 (TARGET_IMG_CFLAGS): likewise
11078 (TARGET_CPPFLAGS): add includedir
11079 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11080 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11081 Check for linker script only if compiler isn't Apple's CC
11082 (TARGET_MODULE_FORMAT): set
11083 (TARGET_APPLE_CC): likewise
11084 (TARGET_ASFLAGS): likewise
11085 (ASFLAGS): likewise
11086 Check for objcopy only if compiler isn't Apple's CC
11087 Check for BSS symbol only if compiler isn't Apple's CC
11088 * genmk.rb: adapt nm options if we use Apple's utils
11089 * aclocal.m4 (grub_apple_cc): new test
11090 (grub_apple_target_cc): likewise
11092 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11094 Simplify sed expressions and improve awk
11096 * Makefile.in (install-local): simplify sed expression
11097 * gencmdlist.sh: likewise
11098 * genmoddep.awk: avoid adding module as a dependency of itself
11100 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11102 Add missing start symbols
11104 * boot/i386/pc/boot.S: add start
11105 * boot/i386/pc/pxeboot.S: likewise
11107 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11109 Fix wrong assumptions with grub-mkimage on EFI
11111 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11112 (relocate_addresses): consider both r_addend and value at offset
11113 (make_mods_section): zerofill modinfo and header
11114 (convert_elf): write prefix here
11116 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11118 Use .asciz instead of .string
11120 * i386/pc/diskboot.S: use .asciz instead of .string
11121 * i386/pc/boot.S: likewise
11122 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11123 (GRUB_MOD_NAME): likewise
11125 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11129 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11130 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11131 (grub_video_setup): remove
11132 (grub_video_set_mode): new prototype
11133 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11135 (linux_vesafb_res): compile only on PCBIOS
11136 (grub_linux_boot): support gfxpayload
11137 * loader/i386/pc/xnu.c (video_hook): new function
11138 (grub_xnu_set_video): support gfxpayload
11139 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11140 (DEFAULT_VIDEO_HEIGHT): likewise
11141 (DEFAULT_VIDEO_FLAGS): likewise
11142 (DEFAULT_VIDEO_MODE): new definition
11143 (video_hook): new function
11144 (grub_gfxterm_init): use grub_video_set_mode
11145 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11147 * video/video.c (grub_video_setup): removed
11148 (grub_video_set_mode): new function based on grub_gfxterm_init and
11151 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11153 Avoid calling biosdisk in drivemap
11155 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11156 (revparse_biosdisk): likewise
11157 (list_mappings): derive name from id directly
11158 (grub_cmd_drivemap): use tryparse_diskstring
11160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11164 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11165 (grub_lexer_param): add tokenonhold
11166 (grub_script_create_cmdline): remove cmdline. All callers updated
11167 (grub_script_function_create): make functionname
11168 grub_script_arg. All callers updated
11169 (grub_script_execute_argument_to_string): new prototype
11170 * kern/parser.c (state_transitions): reorder
11171 (grub_parser_cmdline_state): fix a bug and make more compact
11172 * script/sh/execute.c (grub_script_execute_argument_to_string):
11174 (grub_script_execute_cmdline): use new format
11175 * script/sh/function.c (grub_script_function_create): make functionname
11176 grub_script_arg. All callers updated
11177 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11178 (grub_script_yylex): remove
11179 (grub_script_yylex2): renamed to ...
11180 (grub_script_yylex): ...renamed
11181 parse the expressions like a${b}c
11182 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11183 (GRUB_PARSER_TOKEN_VAR): remove
11184 (GRUB_PARSER_TOKEN_NAME): likewise
11185 ("if"): declare as typeless
11186 ("while"): likewise
11187 ("function"): likewise
11192 (argument): likewise
11193 (script): accept empty scripts and make exit on error
11194 (arguments): use GRUB_PARSER_TOKEN_ARG
11195 (function): likewise
11196 (command): move error handling to script
11197 (menuentry): move grub_script_lexer_ref before
11198 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11199 argument. All callers updated
11201 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11203 Prevent GRUB from probing floppies during boot.
11205 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11206 * commands/search.c (options): Add --no-floppy.
11207 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11208 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11209 --no-floppy when searching for UUIDs.
11211 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11213 Simplify the code duplication in commands/search.c.
11215 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11216 (search_fs): ... this. Update all users.
11218 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11220 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11222 2009-05-28 Pavel Roskin <proski@gnu.org>
11224 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11225 Remove the original symlink explicitly.
11227 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11228 just one slash. That's how grub_fshelp_find_file() does it.
11230 2009-05-26 Pavel Roskin <proski@gnu.org>
11232 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11235 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11238 2009-05-25 Christian Franke <franke@computer.org>
11240 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11242 (grub_atapi_identify): Add wait after drive select.
11243 (grub_ata_identify): Do more strict status register check before
11244 calling grub_atapi_identify (). Suppress error message if status
11245 register is 0x00 after command failure. Add status register
11246 check after PIO read to avoid bogus identify due to stuck DRQ.
11247 Thanks to Pavel Roskin for testing.
11248 (grub_device_initialize): Remove unsafe status register check.
11249 Thanks to 'phcoder' for problem report and patch.
11250 Prevent sign extension in debug message.
11252 2009-05-23 Colin D Bennett <colin@gibibit.com>
11254 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11255 definition file, and functions defined in `normal/menu.c' have had
11256 their prototypes moved to `include/grub/menu.h' for consistency.
11258 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11260 (grub_menu_get_entry): Likewise.
11261 (grub_menu_get_timeout): Likewise.
11262 (grub_menu_set_timeout): Likewise.
11263 (grub_menu_execute_entry): Likewise.
11264 (grub_menu_execute_with_fallback): Likewise.
11265 (grub_menu_entry_run): Likewise.
11267 * include/grub/normal.h: Re-ordered and grouped function
11268 prototypes by file that the function is defined in.
11269 (grub_menu_execute_callback): Removed; moved to menu.h.
11270 (grub_menu_get_entry): Likewise.
11271 (grub_menu_get_timeout): Likewise.
11272 (grub_menu_set_timeout): Likewise.
11273 (grub_menu_execute_entry): Likewise.
11274 (grub_menu_execute_with_fallback): Likewise.
11275 (grub_menu_entry_run): Likewise.
11276 (grub_menu_addentry): Renamed from this ...
11277 (grub_normal_add_menu_entry): ... to this.
11279 * normal/main.c (grub_menu_addentry): Renamed from this ...
11280 (grub_normal_add_menu_entry): ... to this.
11282 * script/sh/execute.c (grub_script_execute_menuentry): Update
11283 reference to renamed grub_menu_addentry function.
11285 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11287 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11289 2009-05-22 Pavel Roskin <proski@gnu.org>
11291 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11292 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11293 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11294 compiling for the i386 targets, but not for the utilities.
11296 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11298 (grub_root_drive): Likewise.
11299 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11301 (grub_root_drive): Change size to byte.
11302 (grub_start_addr): Remove.
11303 (grub_end_addr): Likewise.
11304 (grub_apm_bios_info): Likewise.
11306 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11308 * normal/i386: Remove.
11309 * normal/powerpc: Likewise.
11310 * normal/sparc64: Likewise.
11311 * normal/x86_64: Likewise.
11313 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11315 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11316 * loader/i386/linux_trampoline.S: Fix indentation
11317 * loader/i386/xnu_helper.S: Likewise
11319 2009-05-18 Colin D Bennett <colin@gibibit.com>
11321 Display error messages when parsing a Lua statement fails.
11322 Previously, executing a syntactically invalid statement like
11323 ")foo" or "bar;" would silently fail.
11325 * script/lua/grub_main.c (handle_lua_error): New function.
11326 (grub_lua_parse_line): Improved reporting of Lua parser and
11329 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11331 Remove -Werror which causes build to fail on some systems
11333 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11334 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11335 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11337 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11339 trampoline for linux on 64-bit platform
11341 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11342 loader/i386/efi/linux_trampoline.S
11343 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11345 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11347 * loader/i386/linux_trampoline.S: moved here
11348 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11350 (jumpvector): removed
11351 (grub_linux_trampoline_start): new declaration
11352 (grub_linux_trampoline_end): likewise
11353 (grub_linux_boot): use trampoline when on 64-bit platform
11354 * loader/i386/linux.c: likewise
11356 2009-05-16 Pavel Roskin <proski@gnu.org>
11358 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11359 const to avoid a warning.
11360 (grub_lua_setenv): Likewise.
11361 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11362 lmsg to fix a warning.
11364 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11366 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11367 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11368 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11369 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11370 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11371 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11372 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11373 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11375 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11377 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11379 2009-05-16 Bean <bean123ch@gmail.com>
11381 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11382 (lua_mod_SOURCES): New variable.
11383 (lua_mod_CFLAGS): Likewise.
11384 (lua_mod_LDFLAGS): Likewise.
11386 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11387 (setjmp_mod_SOURCES): New variable.
11388 (setjmp_mod_CFLAGS): Likewise.
11389 (setjmp_LDFLAGS): Likewise.
11391 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11392 (setjmp_mod_SOURCES): New variable.
11393 (setjmp_mod_CFLAGS): Likewise.
11394 (setjmp_LDFLAGS): Likewise.
11396 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11397 (setjmp_mod_SOURCES): New variable.
11398 (setjmp_mod_CFLAGS): Likewise.
11399 (setjmp_LDFLAGS): Likewise.
11401 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11402 (setjmp_mod_SOURCES): New variable.
11403 (setjmp_mod_CFLAGS): Likewise.
11404 (setjmp_LDFLAGS): Likewise.
11406 * normal/i386/setjmp.S: Moved from here ...
11407 * lib/i386/setjmp.S: ... Moved here
11408 * normal/x86_64/setjmp.S: Moved from here ...
11409 * lib/x86_64/setjmp.S: ... Moved here
11410 * normal/powerpc/setjmp.S: Moved from here ...
11411 * lib/powerpc/setjmp.S: ... Moved here
11412 * normal/sparc64/setjmp.S: Moved from here ...
11413 * lib/sparc64/setjmp.S: ... Moved here
11415 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11416 returns_twice in mingw.
11418 * script/lua/grub_lib.c: New file.
11419 * script/lua/grub_lib.h: Likewise.
11420 * script/lua/grub_lua.h: Likewise.
11421 * script/lua/grub_main.c: Likewise.
11422 * script/lua/lapi.c: Likewise.
11423 * script/lua/lapi.h: Likewise.
11424 * script/lua/lauxlib.c: Likewise.
11425 * script/lua/lauxlib.h: Likewise.
11426 * script/lua/lbaselib.c: Likewise.
11427 * script/lua/lcode.c: Likewise.
11428 * script/lua/lcode.h: Likewise.
11429 * script/lua/ldblib.c: Likewise.
11430 * script/lua/ldebug.c: Likewise.
11431 * script/lua/ldebug.h: Likewise.
11432 * script/lua/ldo.c: Likewise.
11433 * script/lua/ldo.h: Likewise.
11434 * script/lua/ldump.c: Likewise.
11435 * script/lua/lfunc.c: Likewise.
11436 * script/lua/lfunc.h: Likewise.
11437 * script/lua/lgc.c: Likewise.
11438 * script/lua/lgc.h: Likewise.
11439 * script/lua/linit.c: Likewise.
11440 * script/lua/liolib.c: Likewise.
11441 * script/lua/llex.c: Likewise.
11442 * script/lua/llex.h: Likewise.
11443 * script/lua/llimits.h: Likewise.
11444 * script/lua/lmathlib.c: Likewise.
11445 * script/lua/lmem.c: Likewise.
11446 * script/lua/lmem.h: Likewise.
11447 * script/lua/loadlib.c: Likewise.
11448 * script/lua/lobject.c: Likewise.
11449 * script/lua/lobject.h: Likewise.
11450 * script/lua/lopcodes.c: Likewise.
11451 * script/lua/lopcodes.h: Likewise.
11452 * script/lua/loslib.c: Likewise.
11453 * script/lua/lparser.c: Likewise.
11454 * script/lua/lparser.h: Likewise.
11455 * script/lua/lstate.c: Likewise.
11456 * script/lua/lstate.h: Likewise.
11457 * script/lua/lstring.c: Likewise.
11458 * script/lua/lstring.h: Likewise.
11459 * script/lua/lstrlib.c: Likewise.
11460 * script/lua/ltable.c: Likewise.
11461 * script/lua/ltable.h: Likewise.
11462 * script/lua/ltablib.c: Likewise.
11463 * script/lua/ltm.c: Likewise.
11464 * script/lua/ltm.h: Likewise.
11465 * script/lua/lua.h: Likewise.
11466 * script/lua/luaconf.h: Likewise.
11467 * script/lua/lualib.h: Likewise.
11468 * script/lua/lundump.c: Likewise.
11469 * script/lua/lundump.h: Likewise.
11470 * script/lua/lvm.c: Likewise.
11471 * script/lua/lvm.h: Likewise.
11472 * script/lua/lzio.c: Likewise.
11473 * script/lua/lzio.h: Likewise.
11475 2009-05-16 Bean <bean123ch@gmail.com>
11477 * include/grub/kernel.h (grub_module_header_types): Add type
11480 * kern/main.c (grub_load_config): New function.
11481 (grub_main): Call grub_load_config to read boot config.
11483 * grub-mkimage (generate_image): New parameter config_path.
11484 (options): New option --config.
11485 (main): Parse --config option, and pass it to generate_image.
11487 2009-05-14 Christian Franke <franke@computer.org>
11489 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11490 This fixes build on Cygwin.
11492 2009-05-14 Pavel Roskin <proski@gnu.org>
11494 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11495 jump. This saves two bytes, so the typical case of 2 swapped
11496 drives would fit 32 bytes.
11498 2009-05-13 Pavel Roskin <proski@gnu.org>
11500 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11501 grub_uint32_t to avoid a warning.
11503 * loader/i386/linux.c (allocate_pages): When assigning
11504 real_mode_mem, cast through grub_size_t to fix a warning. The
11505 code already makes sure that the value would fit a pointer.
11506 (grub_linux_setup_video): Cast render_target->data to
11507 grub_size_t to fix a warning.
11509 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11511 * commands/i386/pc/drivemap.c: New file - implement drivemap
11513 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11514 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11516 2009-05-13 Pavel Roskin <proski@gnu.org>
11518 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11519 embedding_area_exists.
11521 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11523 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11524 it easier to understand / work with.
11525 Improve warning messages for cases where there's no embedding area,
11526 or when it is too small (or core.img too large).
11528 2009-05-13 Pavel Roskin <proski@gnu.org>
11530 * loader/i386/pc/multiboot2.c: Add necessary includes for
11531 grub_multiboot2_real_boot().
11533 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11534 PX record is always little-endian. We only need the lower 2
11537 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11538 facilitate code reuse.
11539 (grub_cpio_mount): Use "struct head", not a char buffer. This
11540 fixes a warning reported by gcc 4.4.
11542 * kernel/disk.c (grub_disk_read): Use void pointer for the
11544 (grub_disk_write): Use const void pointer for the buffer.
11545 Adjust all callers. Remove unnecessary casts.
11547 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11549 * util/i386/pc/grub-install.in: Update copyright year.
11551 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11555 * commands/gptsync.c: new file
11556 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11557 (gptsync_mod_SOURCES): new variable
11558 (gptsync_mod_CFLAGS): likewise
11559 (gptsync_mod_LDFLAGS): likewise
11560 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11562 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11563 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11564 * conf/i386-ieee1275.rmk: likewise
11565 * conf/i386-pc.rmk: likewise
11566 * conf/powerpc-ieee1275.rmk: likewise
11568 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11572 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11573 (grub_dl_ref): likewise
11575 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11577 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11578 split in two functions (one for msdos and one for gpt).
11580 2009-05-08 Pavel Roskin <proski@gnu.org>
11582 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11585 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11586 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11587 Initialize them with -1. Add sanity check for bad1. Eliminate
11590 2009-05-08 David S. Miller <davem@davemloft.net>
11592 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11594 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11596 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11599 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11602 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11604 2009-05-05 David S. Miller <davem@davemloft.net>
11606 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11608 2009-05-05 Pavel Roskin <proski@gnu.org>
11610 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11611 of grub_dl_ref() and grub_dl_unref().
11612 * commands/parttool.c: Remove preprocessor conditionals around
11613 grub_dl_ref() and grub_dl_unref().
11614 * fs/affs.c: Likewise.
11615 * fs/afs.c: Likewise.
11616 * fs/cpio.c: Likewise.
11617 * fs/ext2.c: Likewise.
11618 * fs/fat.c: Likewise.
11619 * fs/hfs.c: Likewise.
11620 * fs/hfsplus.c: Likewise.
11621 * fs/iso9660.c: Likewise.
11622 * fs/jfs.c: Likewise.
11623 * fs/minix.c: Likewise.
11624 * fs/ntfs.c: Likewise.
11625 * fs/reiserfs.c: Likewise.
11626 * fs/sfs.c: Likewise.
11627 * fs/udf.c: Likewise.
11628 * fs/ufs.c: Likewise.
11629 * fs/xfs.c: Likewise.
11630 * include/grub/dl.h: Likewise.
11631 * loader/xnu.c: Likewise.
11633 2009-05-04 Pavel Roskin <proski@gnu.org>
11635 * commands/acpi.c: Remove unused variable my_mod.
11636 * partmap/amiga.c: Likewise.
11637 * partmap/apple.c: Likewise.
11638 * partmap/gpt.c: Likewise.
11639 * partmap/pc.c: Likewise.
11640 * partmap/sun.c: Likewise.
11641 * term/gfxterm.c: Likewise.
11642 * term/i386/pc/vesafb.c: Likewise.
11643 * term/i386/pc/vga.c: Likewise.
11645 2009-05-04 David S. Miller <davem@davemloft.net>
11647 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11648 pointer args to grub_ieee1275_get_property().
11650 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11652 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11653 devices, and do not traverse down under controller nodes.
11655 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11656 (grub_ofdisk_open): Use it to un-escape "," characters.
11657 * kern/disk.c (find_part_sep): New.
11658 (grub_disk_open): Use it to find the first non-escaped ','
11659 character in the disk name.
11660 * util/ieee1275/devicemap.c (escape_of_path): New.
11661 (grub_util_emit_devicemap_entry): Use it.
11662 * util/sparc64/ieee1275/grub-install.in: Update script to
11663 strip partition specifiers properly by not triggering on
11664 '\' escaped ',' characters.
11666 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11668 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11670 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11672 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11673 on documentation from Wikipedia).
11675 2009-05-04 Pavel Roskin <proski@gnu.org>
11677 * disk/ata.c: Spelling fixes.
11678 * disk/raid.c: Likewise.
11679 * disk/usbms.c: Likewise.
11680 * disk/dmraid_nvidia.c: Likewise.
11681 * kern/ieee1275/openfw.c: Likewise.
11682 * kern/ieee1275/init.c: Likewise.
11683 * kern/ieee1275/cmain.c: Likewise.
11684 * boot/i386/pc/cdboot.S: Likewise.
11685 * video/readers/png.c: Likewise.
11686 * video/i386/pc/vbe.c: Likewise.
11687 * fs/udf.c: Likewise.
11688 * fs/hfs.c: Likewise.
11689 * fs/reiserfs.c: Likewise.
11690 * efiemu/runtime/efiemu.c: Likewise.
11691 * efiemu/main.c: Likewise.
11692 * efiemu/mm.c: Likewise.
11693 * include/grub/elf.h: Likewise.
11694 * include/grub/xnu.h: Likewise.
11695 * include/grub/usbdesc.h: Likewise.
11696 * include/grub/usb.h: Likewise.
11697 * include/grub/script_sh.h: Likewise.
11698 * include/grub/lib/LzmaEnc.h: Likewise.
11699 * include/grub/efiemu/efiemu.h: Likewise.
11700 * include/grub/command.h: Likewise.
11701 * normal/menu.c: Likewise.
11702 * normal/main.c: Likewise.
11703 * normal/datetime.c: Likewise.
11704 * bus/usb/uhci.c: Likewise.
11705 * mmap/i386/uppermem.c: Likewise.
11706 * mmap/mmap.c: Likewise.
11707 * commands/acpi.c: Likewise.
11708 * commands/test.c: Likewise.
11709 * partmap/apple.c: Likewise.
11710 * font/font.c: Likewise.
11711 * loader/sparc64/ieee1275/linux.c: Likewise.
11712 * loader/macho.c: Likewise.
11713 * loader/i386/bsd_trampoline.S: Likewise.
11714 * loader/i386/bsd.c: Likewise.
11715 * loader/xnu.c: Likewise.
11716 * term/i386/pc/vesafb.c: Likewise.
11717 * term/usb_keyboard.c: Likewise.
11718 * util/resolve.c: Likewise.
11719 * util/getroot.c: Likewise.
11721 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11723 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11725 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11727 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11730 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11732 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11733 parameter only available on BIOS.
11735 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11737 Removed wrong semicolon in declaration
11739 * grub/misc.h (grub_dprintf): remove semicolon
11741 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11743 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11744 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11745 is done by grub_cmd_linux() now).
11746 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11747 restore video to text mode.
11748 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11749 indicates lack of "vga=" parameter. "vga=0" is mapped to
11750 `GRUB_LINUX_VID_MODE_NORMAL'.
11752 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11754 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11755 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11756 and `normal/script.c'. Add `kern/rescue_reader.c',
11757 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11758 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11759 `grub_script.tab.c'.
11761 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11762 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11767 * Makefile.in: Remove duplicated 2008 in Copyright line.
11769 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11771 * util/misc.c (grub_util_warn): New function. Emits a warning
11773 * include/grub/util/misc.h (grub_util_warn): New declaration.
11775 * util/i386/pc/grub-install.in: Understand --force and pass it down
11778 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11780 (setup): Improve error messages and add warnings when requested to
11781 install in odd layouts. Refuse to install using blocklists unless
11784 2009-05-04 martin f. krafft <madduck@madduck.net>
11786 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11788 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11790 Updated copyright year
11792 * fs/hfsplus.c: updated copyright year
11794 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11798 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11799 in the space previously used by unused3
11800 (grub_hfsplus_uuid): new function
11801 (grub_hfsplus_fs): added uuid field
11803 2009-05-03 Pavel Roskin <proski@gnu.org>
11805 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11806 suppress warnings. It's no longer needed.
11807 * disk/host.c: Likewise.
11808 * disk/ata_pthru.c: Likewise.
11809 * disk/loopback.c: Likewise.
11810 * hook/datehook.c: Likewise.
11811 * parttool/pcpart.c: Likewise.
11812 * fs/i386/pc/pxe.c: Likewise.
11813 * fs/ntfscomp.c: Likewise.
11814 * efiemu/main.c: Likewise.
11815 * mmap/mmap.c: Likewise.
11816 * commands/crc.c: Likewise.
11817 * commands/hexdump.c: Likewise.
11818 * commands/hdparm.c: Likewise.
11819 * commands/acpi.c: Likewise.
11820 * commands/echo.c: Likewise.
11821 * commands/minicmd.c: Likewise.
11822 * commands/blocklist.c: Likewise.
11823 * commands/memrw.c: Likewise.
11824 * commands/loadenv.c: Likewise.
11825 * commands/usbtest.c: Likewise.
11826 * commands/lsmmap.c: Likewise.
11827 * commands/boot.c: Likewise.
11828 * commands/parttool.c: Likewise.
11829 * commands/configfile.c: Likewise.
11830 * commands/search.c: Likewise.
11831 * commands/ieee1275/suspend.c: Likewise.
11832 * commands/cat.c: Likewise.
11833 * commands/i386/pc/pxecmd.c: Likewise.
11834 * commands/i386/pc/play.c: Likewise.
11835 * commands/i386/pc/halt.c: Likewise.
11836 * commands/i386/pc/vbeinfo.c: Likewise.
11837 * commands/i386/pc/vbetest.c: Likewise.
11838 * commands/lspci.c: Likewise.
11839 * commands/date.c: Likewise.
11840 * commands/handler.c: Likewise.
11841 * commands/ls.c: Likewise.
11842 * commands/test.c: Likewise.
11843 * commands/cmp.c: Likewise.
11844 * commands/efi/loadbios.c: Likewise.
11845 * commands/efi/fixvideo.c: Likewise.
11846 * commands/halt.c: Likewise.
11847 * commands/help.c: Likewise.
11848 * commands/reboot.c: Likewise.
11849 * hello/hello.c: Likewise.
11850 * script/sh/main.c: Likewise.
11851 * loader/xnu.c: Likewise.
11852 * term/terminfo.c: Likewise.
11853 * term/i386/pc/serial.c: Likewise.
11854 * term/usb_keyboard.c: Likewise.
11856 2009-05-03 David S. Miller <davem@davemloft.net>
11858 * normal/menu.c: Include grub/parser.h
11860 2009-05-03 Pavel Roskin <proski@gnu.org>
11862 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11864 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11865 Suggested by Javier Martín <lordhabbit@gmail.com>
11867 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11868 efiemu??.o doesn't exist.
11869 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11872 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11874 FreeBSD 64-bit support
11876 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11877 and loader/i386/bsd_trampoline.S
11878 (bsd_mod_ASFLAGS): new variable
11879 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11880 (FREEBSD_MODTYPE_KERNEL64): likewise
11881 (grub_bsd64_trampoline_start): likewise
11882 (grub_bsd64_trampoline_end): likewise
11883 (grub_bsd64_trampoline_selfjump): likewise
11884 (grub_bsd64_trampoline_gdt): likewise
11885 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11886 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11887 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11888 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11889 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11891 * loader/i386/bsd_pagetable.c: new file
11892 * loader/i386/bsd_trampoline.S: likewise
11893 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11894 (ALIGN_VAR): likewise
11895 (entry_hi): new variable
11896 (kern_end_mdofs): likewise
11897 (is_64bit): likewise
11898 (grub_freebsd_add_meta): use ALIGN_VAR
11899 (grub_e820_mmap): new declaration
11900 (grub_freebsd_add_mmap): new function
11901 (grub_freebsd_add_meta_module): support 64 bit kernels
11902 (grub_freebsd_list_modules): use ALIGN_VAR
11903 (gdt_descriptor): new declaration
11904 (grub_freebsd_boot): support 64 bit kernels
11905 (grub_bsd_elf64_hook): new function
11906 (grub_bsd_load_elf): support elf64
11908 2009-05-03 Bean <bean123ch@gmail.com>
11910 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11911 after we get the result of if statement.
11913 2009-05-03 Bean <bean123ch@gmail.com>
11915 * Makefile.in (enable_efiemu): New variable.
11917 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11919 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11921 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11922 path, add -mno-red-zone option.
11923 (efiemu64_s.o): Likewise.
11924 (efiemu64.o): Use macro $^ for source file.
11926 * configure.ac (--enable-efiemu): New option.
11928 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11932 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11933 (pkglib_MODULES): add xnu.mod
11934 (xnu_mod_SOURCES): new variable
11935 (xnu_mod_CFLAGS): likewise
11936 (xnu_mod_LDFLAGS): likewise
11937 (xnu_mod_ASFLAGS): likewise
11938 * conf/i386-pc.rmk: likewise
11939 * conf/x86_64-efi.rmk: likewise
11940 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11942 * include/grub/i386/macho.h: new file
11943 * include/grub/i386/xnu.h: likewise
11944 * include/grub/macho.h: likewise
11945 * include/grub/machoload.h: likewise
11946 * include/grub/x86_64/macho.h: likewise
11947 * include/grub/x86_64/xnu.h: likewise
11948 * include/grub/xnu.h: likewise
11949 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11950 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11951 * loader/i386/efi/xnu.c: new file
11952 * loader/i386/pc/xnu.c: likewise
11953 * loader/i386/xnu.c: likewise
11954 * loader/i386/xnu_helper.S: likewise
11955 * loader/macho.c: likewise
11956 * loader/xnu.c: likewise
11957 * loader/xnu_resume.c: likewise
11958 * util/grub-dumpdevtree: likewise
11959 * include/grub/i386/pit.h: include grub/err.h
11960 (grub_pit_wait): export
11961 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11963 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11967 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11968 _linux_efi, linux_efi.
11969 new files in grub-emu
11970 new targets efiemu32.o and efiemu64.o
11971 * loader/linux_normal_efiemu.c: likewise
11972 * loader/i386/efi/linux.c: added preliminary efiemu support
11973 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11975 * include/grub/autoefi.h: new file
11976 * include/grub/i386/efiemu.h: likewise
11977 * include/grub/i386/pc/efiemu.h: likewise
11978 * include/grub/efi/api.h: add LL suffix when necessary
11979 new definitions relating to tables
11980 * include/grub/efiemu/efiemu.h: new file
11981 * include/grub/efiemu/runtime.h: likewise
11982 * efiemu/prepare.c: likewise
11983 * efiemu/loadcore_common.c: likewise
11984 * efiemu/loadcore64.c: likewise
11985 * efiemu/runtime/efiemu.sh: likewise
11986 * efiemu/runtime/efiemu.S: likewise
11987 * efiemu/runtime/efiemu.c: likewise
11988 * efiemu/runtime/config.h: likewise
11989 * efiemu/prepare32.c: likewise
11990 * efiemu/main.c: likewise
11991 * efiemu/modules/pnvram.c: likewise
11992 * efiemu/modules/i386: likewise
11993 * efiemu/modules/i386/pc: likewise
11994 * efiemu/modules/acpi.c: likewise
11995 * efiemu/i386/pc/cfgtables.c: likewise
11996 * efiemu/i386/loadcore64.c: likewise
11997 * efiemu/i386/loadcore32.c: likewise
11998 * efiemu/prepare64.c: likewise
11999 * efiemu/loadcore.c: likewise
12000 * efiemu/symbols.c: likewise
12001 * efiemu/mm.c: likewise
12002 * efiemu/loadcore32.c: likewise
12004 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12008 * commands/acpi.c: new file
12009 * commands/i386/pc/acpi.c: likewise
12010 * commands/efi/acpi.c: likewise
12011 * include/grub/acpi.h: likewise
12012 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12013 (acpi_mod_SOURCES): new variable
12014 (acpi_mod_CFLAGS): likewise
12015 (acpi_mod_LDFLAGS): likewise
12016 * conf/i386-efi.rmk: likewise
12017 * conf/x86_64-efi.rmk: likewise
12019 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12021 Missing part from mmap patch
12023 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12024 (grub_mmap_unregister)
12025 (grub_mmap_free_and_unregister): use grub_mmap_register
12027 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12031 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12032 * loader/i386/linux.c (find_mmap_size): likewise
12033 (allocate_pages): likewise
12034 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12035 (grub_fill_multiboot_mmap): likewise
12036 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12037 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12038 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12039 (OPENBSD_MMAP_RESERVED): likewise
12040 * include/grub/i386/pc/memory.h: include grub/memory.h
12041 (grub_lower_mem): removed
12042 (grub_upper_mem): likewise
12043 (GRUB_MACHINE_MEMORY_ACPI): new definition
12044 (GRUB_MACHINE_MEMORY_NVS): likewise
12045 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12046 (GRUB_MACHINE_MEMORY_HOLE): likewise
12047 (grub_machine_mmap_register): likewise
12048 (grub_machine_mmap_unregister): likewise
12049 (grub_machine_get_upper): likewise
12050 (grub_machine_get_lower): likewise
12051 (grub_machine_get_post64): likewise
12052 * include/grub/i386/efi/memory.h: new file
12053 * include/grub/x86_64/efi/memory.h: likewise
12054 * include/grub/efi/memory.h: likewise
12055 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12056 (mmap_mod_SOURCES): new variable
12057 (mmap_mod_LDFLAGS): likewise
12058 (mmap_mod_ASFLAGS): likewise
12059 * conf/i386-coreboot.rmk: likewise
12060 * conf/i386-ieee1275.rmk: likewise
12061 * conf/i386-efi.rmk: likewise
12062 * conf/x86_64-efi.rmk: likewise
12063 * include/grub/types.h (UINT_TO_PTR): new macro
12064 (PTR_TO_UINT32): likewise
12065 (PTR_TO_UINT64): likewise
12066 * include/grub/memory.h: new file
12067 * mmap/i386/pc/mmap.c: likewise
12068 * mmap/i386/pc/mmap_helper.S: likewise
12069 * mmap/i386/uppermem.c: likewise
12070 * mmap/mmap.c: likewise
12071 * mmap/efi/mmap.c: likewise
12072 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12074 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12075 (grub_upper_mem): likewise
12076 (grub_machine_init): don't use grub_upper_mem,
12077 make grub_lower_mem local
12078 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12079 grub_mmap_iterate and grub_mmap_get_upper
12080 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12082 2009-05-02 Bean <bean123ch@gmail.com>
12084 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12085 script/sh/parser.y.
12086 (pkglib_MODULES): Add normal.mod and sh.mod.
12087 (normal_SOURCES): New variable.
12088 (normal_mod_CFLAGS): Likewise.
12089 (normal_mod_LDFLAGS): Likewise.
12090 (sh_mod_SOURCES): Likewise.
12091 (sh_mod_CFLAGS): Likewise.
12092 (sh_mod_LDFLAGS): Likewise.
12094 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12095 script/sh/lexer.c_DEPENDENCIES.
12096 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12097 kern/rescue_reader.c and kern/rescue_parser.c.
12098 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12099 (grub_emu_SOURCES): Change source files.
12100 (pkglib_MODULES): Remove normal.mod.
12101 (normal_SOURCES): Removed.
12102 (normal_mod_CFLAGS): Likewise.
12103 (normal_mod_LDFLAGS): Likewise.
12104 * conf/i386-coreboot.rmk: Likewise.
12105 * conf/i386-efi.rmk: Likewise.
12106 * conf/i386-ieee1276.rmk: Likewise.
12107 * conf/powerpc-ieee1275.rmk: Likewise.
12108 * conf/sparc64-ieee1275.rmk: Likewise.
12109 * conf/x86_64-efi.rmk: Likewise.
12111 * include/grub/command.h (grub_command_execute): New inline function.
12113 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12115 * include/grub/normal.h: Remove <grub/setjmp.h>.
12116 (grub_fs_module_list): Moved to normal/autofs.c.
12117 (grub_exit_env): Removed.
12118 (grub_command_execute): Likewise.
12119 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12121 (read_command_list): New function declaration.
12122 (read_fs_list): Likewise.
12124 * include/parser.h: Include <grub/reader.h>.
12125 (grub_parser_split_cmdline): Change type of getline parameter.
12126 (grub_parser): New structure.
12127 (grub_parser_class): New variable.
12128 (grub_parser_execute): New function declaration.
12129 (grub_register_rescue_parser): Likewise.
12130 (grub_parser_register): New inline function.
12131 (grub_parser_unregister): Likewise.
12132 (grub_parser_get_current): Likewise.
12133 (grub_parser_set_current): Likewise.
12135 * include/grub/reader.h: New file.
12136 * kern/reader.c: Likewise.
12137 * kern/rescue_parser.c: Likewise.
12138 * kern/rescue_reader.c: Likewise.
12139 * normal/autofs.c: Likewise.
12140 * normal/dyncmd.c: Likewise.
12142 * include/grub/rescue.h: Removed.
12143 * normal/command.h: Likewise.
12145 * include/grub/script.h: Moved to ...
12146 * include/grub/script_sh.h: ... Moved here.
12147 * normal/execute.c: Moved to ...
12148 * script/sh/execute.c: ... Moved here.
12149 * normal/function.c: Moved to ...
12150 * script/sh/function.c: ... Moved here.
12151 * normal/lexer.c: Moved to ...
12152 * script/sh/lexer.c: ... Moved here.
12153 * normal/parser.y: Moved to ...
12154 * script/sh/parser.y: ... Moved here.
12155 * normal/script.c: Moved to ...
12156 * script/sh/script.c: ... Moved here.
12158 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12160 (grub_exit_env): Removed.
12161 (fs_module_list): Moved to normal/autofs.c.
12162 (grub_file_getline): Don't handle comment here.
12163 (free_menu): Skip removed field entry->commands.
12164 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12166 (read_config_file): Removed nested parameter, change getline function.
12167 (grub_enter_normal_mode): Removed.
12168 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12169 (read_command_list): Likewise.
12170 (autoload_fs_module): Moved to normal/autofs.c.
12171 (read_fs_list): Likewise.
12172 (reader_nested): New variable.
12173 (grub_normal_execute): Run parser.sh to switch to sh parser.
12174 (grub_cmd_rescue): Removed.
12175 (cmd_normal): Removed.
12176 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12178 (grub_cmdline_run): New function.
12179 (grub_normal_reader_init): Likewise.
12180 (grub_normal_read_line): Likewise.
12181 (grub_env_write_pager): Likewise.
12182 (cmdline): New variable.
12183 (grub_normal_reader): Likewise.
12184 (GRUB_MOD_INIT): Register normal reader and set as current, register
12185 pager hook, register normal command with grub_register_command_prio,
12186 so that it won't show up in command.lst.
12187 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12188 grub_fs_autoload_hook.
12190 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12191 (grub_menu_execute_entry): Replace grub_script_execute with
12192 grub_parser_execute, change parameter to grub_command_execute.
12194 * normal/menu_text.c: Remove <grub/script.h>.
12196 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12197 and <grub/parser.h>.
12198 (run): Change editor_getline to use new parser interface. Change
12199 parameter to grub_command_execute.
12201 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12202 <grub/reader.h> and <grub/parser.h>.
12203 (grub_load_normal_mode): Execute normal command.
12204 (grub_main): Call grub_register_core_commands,
12205 grub_register_rescue_parser and grub_register_rescue_reader, use
12206 grub_reader_loop to enter input loop.
12208 * kern/parser.c (grub_parser_split_cmdline): Change type of
12210 (grub_parser_class): New variable.
12211 (grub_parser_execute): New function.
12213 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12214 * loader/multiboot2.c: Likewise.
12215 * loader/sparc64/ieee1275/linux.c: Likewise.
12217 * util/grub-emu.c (read_command_list): New dummy function.
12219 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12221 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12222 count to 16 for CCISS and IDA.
12224 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12226 * normal/menu_text.c (grub_wait_after_message): Print a newline
12227 after waiting for user input.
12229 * loader/i386/linux.c: Include `<grub/normal.h>'.
12230 (grub_cmd_linux): Improve the error message about `ask' mode, by
12231 waiting for user input so it's not missed (we can do this, since
12232 user requested interaction).
12234 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12236 Added missing lst to grub-mkrescue
12238 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12239 and ${input_dir}/parttool.lst
12241 2009-04-30 David S. Miller <davem@davemloft.net>
12243 * util/hostdisk.c (device_is_wholedisk): New function.
12244 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12245 zero only if device_is_wholedisk() returns true.
12247 * util/hostdisk.c (convert_system_partition_to_system_disk):
12248 Handle virtual disk devices named /dev/vdiskX as found on sparc
12251 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12252 lettered partition specifier is found, convert to numbered.
12254 2009-04-29 David S. Miller <davem@davemloft.net>
12256 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12257 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12259 * normal/command.c: Add missing newline at end of file.
12261 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12263 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12264 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12265 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12266 ihandles have a 32-bit type but need to be stored in a "void *".
12268 2009-04-28 Pavel Roskin <proski@gnu.org>
12270 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12271 not disk. Adjust all dependencies.
12272 (grub_fs_uuid_close): Use grub_device_close(), not
12275 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12276 parent's partition, don't copy it by reference, as it gets freed
12279 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12281 Preboot hooks support
12283 * commands/boot.c (struct grub_preboot_t): new declaration
12284 (preboots_head): new variable
12285 (preboots_tail): likewise
12286 (grub_loader_register_preboot_hook): new function
12287 (grub_loader_unregister_preboot_hook): likewise
12288 (grub_loader_set): launch preboot hooks
12289 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12290 (grub_loader_register_preboot_hook): new declaration
12291 (grub_loader_unregister_preboot_hook): likewise
12293 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12297 * disk/scsi.c (grub_scsi_open): added missing cast when
12298 calling grub_dprintf
12300 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12302 Bug and warning fixes
12304 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12306 * commands/test.c (test_parse): fixed bug with file tests and corrected
12307 declaration of find_file
12309 2009-04-26 Pavel Roskin <proski@gnu.org>
12311 * Makefile.in: Don't install empty manual pages if help2man is
12312 missing. Use help2man option for output, not shell redirection.
12314 2009-04-26 David S. Miller <davem@davemloft.net>
12316 * util/grub-mkdevicemap.c (make_device_map): Add missing
12317 NESTED_FUNC_ATTR to process_device().
12319 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12323 * commands/test.c: rewritten to use bash-like test
12325 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12327 Parttool autoloading and improvements
12329 * Makefile.in (pkglib_DATA): add parttool.lst
12330 (parttool.lst): new target
12331 * genmk.rb: generate parttool-*
12332 (CLEANFILES): add #{parttool}
12333 (PARTTOOLFILES): new variable
12334 * genparttoollist.sh: new file
12335 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12336 (grub_pcpart_type): likewise
12337 * commands/parttool.c (helpmsg): new variable
12338 (grub_cmd_parttool): output help if not enough arguments are supplied
12340 (GRUB_MOD_INIT(parttool)): use helpmsg
12342 2009-04-24 David S. Miller <davem@davemloft.net>
12344 Avoiding opening same device multiple times in device iterator.
12346 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12347 and use it to build a list of partitions in iterate_disk() and
12348 iterate_partition().
12350 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12353 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12354 grub_devalias_iterate() result instead of unconditional 0.
12355 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12356 Also, capture hook return value, either directly or via
12357 grub_children_iterate(), and propagate to caller.
12358 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12359 grub_children_iterate): Return value is now 'int' instead of
12361 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12362 like a proper iterator, stopping when hooks return non-zero.
12363 (grub_devalias_iterate): Likewise.
12365 2009-04-23 David S. Miller <davem@davemloft.net>
12367 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12369 2009-04-22 David S. Miller <davem@davemloft.net>
12371 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12372 is larger than address_cells, use that value for address_cells too.
12374 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12375 IEEE1275_MAX_PATH_LEN): Define.
12376 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12377 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12378 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12379 'devtype'. Explicitly NULL terminate devalias expansion.
12381 * util/sparc64/ieee1275/misc.c: New file.
12382 * util/sparc64/ieee1275/grub-setup.c: New file.
12383 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12384 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12385 * util/sparc64/ieee1275/grub-install.in: New file.
12386 * util/ieee1275/ofpath.c: New file.
12387 * util/ieee1275/devicemap.c: New file.
12388 * util/devicemap.c: New file.
12389 * util/deviceiter.c: New file.
12390 * kern/sparc64/ieee1275/init.c: New file.
12391 * include/grub/util/ofpath.h: New file.
12392 * include/grub/util/deviceiter.h: New file.
12393 * util/grub-mkdevicemap.c: Include deviceiter.h.
12394 Implement using grub_util_emit_devicemap_entry and
12395 grub_util_iterate_devices.
12396 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12397 util/devicemap.c into grub-mkdevicemap
12398 * conf/i386-efi.rmk: Likewise.
12399 * conf/i386-ieee1275.rmk: Likewise.
12400 * conf/i386-pc.rmk: Likewise.
12401 * conf/powerpc-ieee1275.rmk: Likewise.
12402 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12403 images and installation utilities. Build kernel as image
12404 instead of as elf binary. Use common rules as much as possible.
12406 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12408 Correct GPT definition
12410 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12413 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12415 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12417 2009-04-19 David S. Miller <davem@davemloft.net>
12419 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12420 (grub_rescue_cmd_linux): Rename to...
12421 (grub_cmd_linux): and fix prototype.
12422 (grub_rescue_cmd_initrd): Rename to...
12423 (grub_cmd_initrd): and fix prototype.
12424 (cmd_linux, cmd_initrd): New.
12425 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12426 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12428 2009-04-17 Pavel Roskin <proski@gnu.org>
12430 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12432 (grub_ohci_transfer): Likewise.
12434 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12436 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12437 return without a value. Fix inconsistent indentation.
12439 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12440 match struct grub_fs.
12442 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12443 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12444 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12445 * commands/lspci.c (grub_lspci_iter): Likewise.
12447 2009-04-16 Bean <bean123ch@gmail.com>
12449 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12452 2009-04-15 Pavel Roskin <proski@gnu.org>
12454 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12455 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12456 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12459 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12461 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12462 that no multiple data or metadata areas are supported and `Unknown
12465 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12467 Move loader out of the kernel
12469 * kern/loader.c: moved to ...
12470 * commands/boot.c: ... moved here
12471 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12472 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12473 * include/grub/kernel.h (grub_machine_fini): export
12474 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12475 (grub_loader_set): likewise
12476 (grub_loader_unset): likewise
12477 (grub_loader_boot): likewise
12478 * conf/common.rmk: new module boot.mod
12479 (pkglib_MODULES): add boot.mod
12480 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12481 (grub_emu_SOURCES): likewise
12482 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12483 (grub_emu_SOURCES): likewise
12484 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12485 (grub_emu_SOURCES): likewise
12486 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12487 (grub_emu_SOURCES): likewise
12488 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12489 (grub_emu_SOURCES): likewise
12490 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12491 (grub_emu_SOURCES): likewise
12492 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12493 (grub_emu_SOURCES): likewise
12495 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12497 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12499 * kern/misc.c (grub_itoa): Removed function
12500 (grub_ltoa): likewise
12501 (grub_vsprintf): use grub_lltoa
12503 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12507 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12508 * conf/i386-coreboot.rmk: likewise
12509 * conf/i386-ieee1275.rmk: likewise
12510 * conf/powerpc-ieee1275.rmk: likewise
12512 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12514 * INSTALL: Add that `./autogen.sh' needs to be run before
12517 2009-04-14 Bean <bean123ch@gmail.com>
12519 * Makefile.in (pkglib_DATA): Add handler.lst.
12520 (handler.lst): New rule.
12522 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12523 * conf/i386-coreboot.rmk: Likewise.
12524 * conf/i386-ieee1275.rmk: Likewise.
12525 * conf/i386-efi.rmk: Likewise.
12526 * conf/x86_64-efi.rmk: Likewise.
12527 * conf/powerpc-ieee1275.rmk: Likewise.
12528 * conf/sparc64-ieee1275.rmk: Likewise.
12530 * genhandlerlist.sh: New file.
12532 * genmk.rb: Add rules to generate handler.lst.
12534 * include/grub/normal.h (grub_file_getline): New function definition.
12535 (read_handler_list): Likewise.
12536 (free_handler_list): Likewise.
12538 * include/grub/term.h (grub_term_register_input): Add name parameter
12539 for auto generation of handler.lst.
12540 (grub_term_register_output): Likewise.
12542 * normal/handler.c: New file.
12544 * normal/main.c (get_line): Renamed to grub_file_getline.
12545 (read_config_file): Use the newly renamed grub_file_getline.
12546 (read_command_list): Likewise.
12547 (read_fs_list): Likewise.
12548 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12549 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12551 * term/efi/console.c (grub_console_init): Add name parameter for auto
12552 generation of handler.lst.
12553 * term/gfxterm.c: Likewise.
12554 * term/i386/pc/at_keyboard.c: Likewise.
12555 * term/i386/pc/console.c: Likewise.
12556 * term/i386/pc/serial.c: Likewise.
12557 * term/i386/pc/vesafb.c: Likewise.
12558 * term/i386/pc/vga.c: Likewise.
12559 * term/i386/pc/vga_text.c: Likewise.
12560 * term/ieee1275/ofconsole.c: Likewise.
12561 * term/usb_keyboard.c: Likewise.
12563 2009-04-14 Bean <bean123ch@gmail.com>
12565 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12566 properly with null character.
12568 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12570 * configure: Remove.
12571 * config.h.in: Likewise.
12572 * stamp-h.in: Likewise.
12573 * DISTLIST: Likewise.
12574 * conf/common.mk: Likewise.
12575 * conf/i386-coreboot.mk: Likewise.
12576 * conf/i386-efi.mk: Likewise.
12577 * conf/i386-ieee1275.mk: Likewise.
12578 * conf/i386.mk: Likewise.
12579 * conf/i386-pc.mk: Likewise.
12580 * conf/powerpc-ieee1275.mk: Likewise.
12581 * conf/sparc64-ieee1275.mk: Likewise.
12582 * conf/x86_64-efi.mk: Likewise.
12584 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12587 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12588 David S. Miller <davem@davemloft.net>
12590 * util/hostdisk.c (make_device_name): Fix buffer length
12593 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12595 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12596 <sys/param.h> and <sys/sysctl.h>.
12597 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12598 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12599 opening the device and reset them afterwards.
12601 2009-04-13 Pavel Roskin <proski@gnu.org>
12603 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12604 Reported by John Stanley <jpsinthemix@verizon.net>
12606 2009-04-13 Robert Millan <rmh@aybabtu.com>
12608 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12609 that name for menuentries when appropriate.
12611 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12613 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12615 2009-04-13 Robert Millan <rmh@aybabtu.com>
12617 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12618 to Linux, simply abort telling the user it's no longer supported.
12620 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12622 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12623 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12624 `freebsd_loadenv' only when devices.hints exist.
12626 2009-04-13 Pavel Roskin <proski@gnu.org>
12628 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12630 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12632 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12634 (grub_drive): Likewise.
12636 2009-04-13 David S. Miller <davem@davemloft.net>
12638 * kern/sparc64/ieee1275/ieee1275.c: New file.
12639 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12640 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12641 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12642 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12643 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12644 grub_ieee1275_alloc_physmem): Declare new exported functions.
12646 * include/grub/sparc64/ieee1275/loader.h: New file.
12647 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12648 * include/grub/sparc64/kernel.h: Likewise.
12649 * loader/sparc64/ieee1275/linux.c: Likewise.
12651 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12652 (grub_fstest_SOURCES): Likewise.
12654 * util/hostdisk.c (make_device_name): Do not make any assumptions
12655 about the length of drive names.
12657 * kern/dl.c (grub_dl_load_file): Close file immediately when
12658 we are done using it.
12660 2009-04-12 David S. Miller <davem@davemloft.net>
12662 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12663 values. Noticed by Pavel Roskin.
12665 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12668 * genmk.rb: Add more flexible image type specification, also
12669 pass --strip-unneeded to objcopy.
12670 * conf/i386-pc.rmk: Use *_FORMAT.
12671 * conf/i386-pc.mk: Rebuilt.
12673 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12674 (OFDISK_HASH_SZ): Define.
12675 (ofdisk_hash): New hash table.
12676 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12677 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12678 instead of device phandle which is not unique.
12680 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12681 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12682 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12683 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12684 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12685 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12686 GRUB_KERNEL_MACHINE_DATA_END): Define.
12687 (grub_kernel_image_size, grub_total_module_size): Declare.
12689 2009-04-12 Pavel Roskin <proski@gnu.org>
12691 * configure.ac: Change the logic when we check for target tools.
12692 Do it when the target is specified and it's different from the
12693 specified value of the host.
12695 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12697 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12698 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12699 GNU/kFreeBSD. Check if a device is a character device. Use
12700 DIOCGMEDIASIZE to get the size.
12701 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12702 support for GNU/kFreeBSD.
12703 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12704 is a character device instead of a block device. Add support for
12705 FreeBSD device names.
12707 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12708 is a character device instead of a block device.
12710 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12711 is a character device instead of a block device.
12713 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12715 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12716 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12717 FreeBSD. Check if a device is a character device. Use
12718 DIOCGMEDIASIZE to get the size.
12719 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12720 support for FreeBSD.
12721 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12722 is a character device instead of a block device. Add support for
12723 FreeBSD device names.
12725 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12726 a character device instead of a block device.
12727 (grub_util_check_char_device): New function.
12729 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12730 a character device instead of a block device.
12732 * include/grub/util/getroot.h (grub_util_check_char_device): New
12735 2009-04-11 David S. Miller <davem@davemloft.net>
12737 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12739 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12740 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12741 function, if present.
12742 (__bswapdi2): Likewise.
12744 * include/grub/sparc64/ieee1275/boot.h: New file.
12745 * boot/sparc64/ieee1275/boot.S: Likewise.
12746 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12748 * kern/misc.c (grub_ltoa): New function.
12749 (grub_vsprintf): Use it to format 'long' integers.
12751 2009-04-10 David S. Miller <davem@davemloft.net>
12753 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12754 slots are of type grub_ieee1275_cell_t.
12755 (grub_nand_read): Likewise.
12756 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12757 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12758 macros are used to compare values in arg/ret block of the call.
12759 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12760 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12761 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12762 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12763 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12764 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12765 grub_ieee1275_close, grub_ieee1275_set_property,
12766 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12767 grub_ieee1275_cell_t.
12768 * kern/ieee1275/openfw.c (grub_map): Likewise.
12769 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12770 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12772 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12773 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12774 (grub_devalias_iterate): Likewise.
12776 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12780 * fs/ufs.c (INODE_NBLOCKS): new definition
12781 (struct grub_ufs_dirent): added fields for non-BSD dirents
12782 (grub_ufs_get_file_block): fixed double indirect handling
12783 (grub_ufs_lookup_symlink): use more robust way to determine whether
12785 (grub_ufs_find_file): support for non-BSD dirents
12786 (grub_ufs_dir): support for non-BSD dirents
12788 2009-04-10 Bean <bean123ch@gnail.com>
12790 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12791 attribute, otherwise the size would be wrong for i386 platform.
12793 * include/grub/pci.h (grub_pci_read_word): New inline function.
12794 (grub_pci_read_byte): Likewise.
12795 (grub_pci_write): Likewise.
12796 (grub_pci_write_word): Likewise.
12797 (grub_pci_write_byte): Likewise.
12799 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12801 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12802 (find_framebuf): Scan pci to locate the frame buffer address.
12804 * commands/efi/fixvideo.c: New file.
12806 * commands/efi/loadbios.c: Likewise.
12808 * commands/memrw.c: Likewise.
12810 * util/grub-dumpbios.in: Likewise.
12812 * conf/common.rmk (grub-dumpbios): New utility.
12813 (pkglib_MODULES): New module memrw.mod.
12814 (memrw_mod_SOURCE): New macro.
12815 (memrw_mod_CFLAGS): Likewise.
12816 (memrw_mod_LDFLAGS): Likewise.
12818 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12820 (loadbios_mod_SOURCE): New macro.
12821 (loadbios_mod_CFLAGS): Likewise.
12822 (loadbios_mod_LDFLAGS): Likewise.
12823 (fixvideo_mod_SOURCE): Likewise.
12824 (fixvideo_mod_CFLAGS): Likewise.
12825 (fixvideo_mod_LDFLAGS): Likewise.
12827 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12829 (loadbios_mod_SOURCE): New macro.
12830 (loadbios_mod_CFLAGS): Likewise.
12831 (loadbios_mod_LDFLAGS): Likewise.
12832 (fixvideo_mod_SOURCE): Likewise.
12833 (fixvideo_mod_CFLAGS): Likewise.
12834 (fixvideo_mod_LDFLAGS): Likewise.
12836 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12838 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12840 2009-04-07 David S. Miller <davem@davemloft.net>
12842 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12843 support for R_SPARC_OLO10 relocations. Fix compile warning for
12844 R_SPARC_WDISP30 case.
12845 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12847 2009-04-06 Pavel Roskin <proski@gnu.org>
12849 * include/grub/misc.h (ARRAY_SIZE): New macro.
12850 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12852 * loader/i386/linux.c (allocate_pages): Use free_pages().
12853 (grub_linux_unload): Don't use free_pages().
12854 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12855 wrong index. Treat all other modes as text modes.
12856 (grub_cmd_linux): Initialize vid_mode unconditionally to
12857 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12859 * commands/help.c (print_command_help): Use cmd->prio, not
12860 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12862 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12866 * parttool/pcpart.c: new file
12867 * commands/parttool.c: likewise
12868 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12869 (parttool_mod_SOURCES): new variable
12870 (parttool_mod_CFLAGS): likewise
12871 (parttool_mod_LDFLAGS): likewise
12872 (pcpart_mod_SOURCES): likewise
12873 (pcpart_mod_CFLAGS): likewise
12874 (pcpart_mod_LDFLAGS): likewise
12875 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12876 and parttool/pcpart.c
12877 * conf/i386-efi.rmk: likewise
12878 * conf/i386-ieee1275.rmk: likewise
12879 * conf/i386-pc.rmk: likewise
12880 * conf/powerpc-ieee1275.rmk: likewise
12881 * conf/sparc64-ieee1275.rmk: likewise
12882 * conf/x86_64-ieee1275.rmk: likewise
12884 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12886 Support for mtime and further expandability of dir command
12888 * include/grub/lib/datetime.h: moved to ...
12889 * include/grub/datetime.h: ... moved here and added
12890 declaration of grub_unixtime2datetime. All users updated
12891 * include/grub/fs.h: new syntax for dir and mtime functions in
12893 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12894 and GRUB_FSHELP_FLAGS_MASK
12895 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12896 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12897 (grub_ext2_mtime): new function
12898 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12899 (grub_hfsplus_mtime): new function
12900 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12901 (GRUB_UFS_ATTR_FILE): likewise
12902 (GRUB_UFS_ATTR_LNK): likewise
12903 (struct grub_ufs_sblock): new fields mtime
12904 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12906 (grub_ufs_dir): mtime support
12907 (grub_ufs_mtime): new function
12908 * fs/affs.c (grub_affs_dir): use new dir syntax
12909 * fs/afs.c (grub_afs_dir): likewise
12910 * fs/cpio.c (grub_cpio_dir): likewise
12911 * fs/fat.c (grub_fat_find_dir): likewise
12912 * fs/hfs.c (grub_hfs_dir): likewise
12913 * fs/iso9660.c (grub_iso9660_dir): likewise
12914 * fs/jfs.c (grub_jfs_dir): likewise
12915 * fs/minix.c (grub_minix_dir): likewise
12916 * fs/ntfs.c (grub_ntfs_dir): likewise
12917 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12918 * fs/sfs.c (grub_sfs_dir): likewise
12919 * fs/xfs.c (grub_xfs_dir): likewise
12920 * util/hostfs.c (grub_hostfs_dir): likewise
12921 * lib/datetime.c: moved to ...
12922 * normal/datetime.c: ... moved here
12923 (grub_unixtime2datetime): new function
12924 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12925 * normal/completion.c (iterate_dir): use new dir syntax
12926 * normal/misc.c (grub_normal_print_device_info): tell the
12927 last modification time of a volume
12928 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12929 * conf/common.rmk: added lib/datetime.c to ls.mod
12930 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12931 (normal_mod_SOURCES): likewise
12932 (datetime_mod_SOURCES): Removed lib/datetime.c
12933 * conf/i386-efi.rmk: likewise
12934 * conf/i386-ieee1275.rmk: likewise
12935 * conf/i386-pc.rmk: likewise
12936 * conf/powerpc-ieee1275.rmk: likewise
12937 * conf/sparc64-ieee1275.rmk: likewise
12938 * conf/x86_64-efi.rmk: likewise
12940 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12942 Trim trailing spaces in FAT label and support mtools-like labels
12944 * fs/fat.c (grub_fat_iterate_dir): New function based
12945 on grub_fat_find_dir
12946 (grub_fat_find_dir): use grub_fat_iterate_dir
12947 (grub_fat_label): likewise
12949 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12951 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12953 remove extraneous kernel_elf_HEADERS
12955 2009-04-04 Bean <bean123ch@gnail.com>
12957 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12959 * util/misc.c: Likewise.
12961 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12963 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12964 instead of grub_printf.
12966 2009-04-03 Robert Millan <rmh@aybabtu.com>
12968 * loader/i386/linux.c (grub_linux_setup_video): Fill
12969 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12970 values from `mode info' structure instead of hardcoded
12973 2009-04-01 Pavel Roskin <proski@gnu.org>
12975 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12977 * genmk.rb: Likewise.
12978 * configure.ac: Likewise.
12980 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12982 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12983 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12985 2009-04-01 David S. Miller <davem@davemloft.net>
12987 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12988 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12989 (grub_setjmp): Mark with 'returns_twice' attribute.
12990 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12991 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12992 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12994 2009-04-01 Robert Millan <rmh@aybabtu.com>
12996 Reapply fix from 2008-07-28 which was accidentally reverted; also
12997 perform the same fix to a similar check in same function.
12999 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13000 with the same number are found, just use issue a warning with
13001 grub_dprintf(), as this error has been reported to be non-fatal.
13003 2009-03-31 Pavel Roskin <proski@gnu.org>
13005 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13006 for cross-compilation.
13008 2009-03-30 Robert Millan <rmh@aybabtu.com>
13010 Fix i386-ieee1275 build.
13012 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13013 Remove declaration.
13015 2009-03-30 Pavel Roskin <proski@gnu.org>
13017 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13018 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13019 zero-terminated, rely only on the strlen value. Fix comparison
13020 of strings differing in length.
13022 2009-03-30 Robert Millan <rmh@aybabtu.com>
13024 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13025 checking for abi version. Improve error messages on BIOS to notify
13026 user about `linux16' command.
13028 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13032 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13033 in case of collision
13034 * disk/scsi.c (grub_scsi_open): free scsi in case of error
13036 2009-03-29 Robert Millan <rmh@aybabtu.com>
13038 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13039 set `vid_mode' accordingly.
13040 (grub_linux_boot): Process `vid_mode' and set video mode.
13042 2009-03-29 Robert Millan <rmh@aybabtu.com>
13044 * util/grub.d/10_linux.in (linux_entry): New function.
13045 Factorize generation of Linux boot entries.
13047 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13049 Make the format of Environment Block plain text. The boot loader
13050 part is not tested well yet.
13052 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13054 (envblk): Likewise.
13055 (usage): Remove "info" and "clear". Add "unset". Update the
13056 description of "set", as this does not delete variables any
13058 (create_envblk_file): Complete rewrite.
13059 (open_envblk_file): Likewise.
13060 (cmd_info): Removed.
13061 (cmd_list): Likewise.
13062 (cmd_set): Likewise.
13063 (cmd_clear): Likewise.
13064 (list_variables): New function.
13065 (write_envblk): Likewise.
13066 (set_variables): Likewise.
13067 (unset_variables): Likewise.
13068 (main): Complete rewrite.
13070 * commands/loadenv.c (buffer): Removed.
13071 (envblk): Likewise.
13072 (open_envblk_file): New function.
13073 (read_envblk_file): Complete rewrite.
13074 (grub_cmd_load_env): Likewise.
13075 (grub_cmd_list_env): Likewise.
13076 (struct blocklist): New struct.
13077 (free_blocklists): New function.
13078 (check_blocklists): Likewise.
13079 (write_blocklists): Likewise.
13080 (grub_cmd_save_env): Complete rewrite.
13082 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13083 a plain text signature.
13084 (GRUB_ENVBLK_MAXLEN): Removed.
13085 (struct grub_envblk): Complete rewrite.
13086 (grub_envblk_find): Removed.
13087 (grub_envblk_insert): Likewise.
13088 (grub_envblk_open): New prototype.
13089 (grub_envblk_set): Likewise.
13090 (grub_envblk_delete): Put const to VALUE.
13091 (grub_envblk_iterate): Put const to NAME and VALUE.
13092 (grub_envblk_close): New prototype.
13093 (grub_envblk_buffer): New inline function.
13094 (grub_envblk_size): Likewise.
13096 * lib/envblk.c: Include grub/mm.h.
13097 (grub_env_find): Removed.
13098 (grub_envblk_open): New function.
13099 (grub_envblk_close): Likewise.
13100 (escaped_value_len): Likewise.
13101 (find_next_line): Likewise.
13102 (grub_envblk_insert): Removed.
13103 (grub_envblk_set): New function.
13104 (grub_envblk_delete): Complete rewrite.
13105 (grub_envblk_iterate): Likewise.
13107 2009-03-28 Robert Millan <rmh@aybabtu.com>
13109 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13110 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13111 variables. Use 16-bit loader.
13112 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13114 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13115 (grub_linux16_boot): ... this. Update all users.
13116 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13117 (grub_linux_boot): ... this. Update all users.
13119 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13120 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13121 commands to `linux16' and `initrd16'.
13122 (GRUB_MOD_FINI(linux)): Rename to ...
13123 (GRUB_MOD_FINI(linux16)): ... this.
13125 2009-03-24 Pavel Roskin <proski@gnu.org>
13127 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13128 not just for compilation.
13130 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13132 Move multiboot helper out of kernel
13134 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13135 `loader/i386/multiboot_helper.S'.
13136 * conf/i386-coreboot.rmk: Likewise
13137 * conf/i386-ieee1275.rmk: Likewise
13139 * kern/i386/loader.S: Move multiboot helpers from here...
13140 * loader/i386/multiboot_helper.S: ...moved here
13141 * include/grub/i386/loader.h: Move declarations of multiboot
13142 helpers from here...
13143 * include/grub/i386/multiboot.h: ...moved here
13144 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13146 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13148 * kern/env.c (grub_env_context_open): Added an argument to specify
13149 whether a new context inherits exported variables from current
13150 one. This is useful when making a sandbox to interpret a config
13152 All callers updated.
13154 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13156 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13158 * kern/env.c (grub_env_context_close): Fix memory leaks.
13160 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13162 * normal/main.c (grub_normal_execute): Added an argument
13163 BATCH to specify if an interactive interface should be provided
13164 after reading a config file.
13165 All callers updated.
13166 (read_command_list): Prevent being executed twice.
13167 (read_fs_list): Likewise.
13169 * include/grub/normal.h (grub_normal_execute): Updated the
13172 2009-03-22 Pavel Roskin <proski@gno.org>
13174 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13176 * kern/i386/pc/startup.S: Likewise.
13177 * kern/i386/efi/startup.S: Likewise.
13178 * kern/i386/ieee1275/startup.S: Likewise.
13179 * kern/i386/coreboot/startup.S: Likewise.
13180 * kern/x86_64/efi/startup.S: Likewise.
13182 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13183 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13184 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13186 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13188 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13190 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13192 Use vaddr of correct segment for entry_point.
13194 2009-03-21 Bean <bean123ch@gmail.com>
13196 * commands/blocklist.c: Add include file <grub/command.h>, remove
13197 <grub/normal.h> and <grub/arg.h>.
13198 (grub_cmd_blocklist): Use the new command interface.
13199 (GRUB_MOD_INIT): Likewise.
13200 (GRUB_MOD_FINI): Likewise.
13201 * commands/boot.c: Likewise.
13202 * commands/cat.c: Likewise.
13203 * commands/cmp.c: Likewise.
13204 * commands/configfile.c: Likewise.
13205 * commands/crc.c: Likewise.
13206 * commands/echo.c: Likewise.
13207 * commands/halt.c: Likewise.
13208 * commands/handler.c: Likewise.
13209 * commands/hdparm.c: Likewise.
13210 * commands/help.c: Likewise.
13211 * commands/hexdump.c: Likewise.
13212 * commands/loadenv.c: Likewise.
13213 * commands/ls.c: Likewise.
13214 * commands/lsmmap.c: Likewise.
13215 * commands/lspci.c: Likewise.
13216 * commands/loadenv.c: Likewise.
13217 * commands/read.c: Likewise.
13218 * commands/reboot.c: Likewise.
13219 * commands/search.c: Likewise.
13220 * commands/sleep.c: Likewise.
13221 * commands/test.c: Likewise.
13222 * commands/usbtest.c: Likewise.
13223 * commands/videotest.c: Likewise.
13224 * commands/i386/cpuid.c: Likewise.
13225 * commands/i386/pc/halt.c: Likewise.
13226 * commands/i386/pc/play.c: Likewise.
13227 * commands/i386/pc/pxecmd.c: Likewise.
13228 * commands/i386/pc/vbeinfo.c: Likewise.
13229 * commands/i386/pc/vbetest.c: Likewise.
13230 * commands/ieee1275/suspend.c: Likewise.
13231 * disk/loopback.c: Likewise.
13232 * font/font_cmd.c: Likewise.
13233 * hello/hello.c: Likewise.
13234 * loader/efi/appleloader.c: Likewise.
13235 * loader/efi/chainloader.c: Likewise.
13236 * loader/i386/bsd.c: Likewise.
13237 * loader/i386/efi/linux.c: Likewise.
13238 * loader/i386/ieee1275/linux.c: Likewise.
13239 * loader/i386/linux.c: Likewise.
13240 * loader/i386/pc/chainloader.c: Likewise.
13241 * loader/i386/pc/linux.c: Likewise.
13242 * loader/powerpc/ieee1275/linux.c: Likewise.
13243 * loader/multiboot_loader.c: Likewise.
13244 * term/gfxterm.c: Likewise.
13245 * term/i386/pc/serial.c: Likewise.
13246 * term/terminfo.c: Likewise.
13248 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13249 * term/i386/pc/vga.c: Likewise.
13250 * video/readers/jpeg.c: Likewise.
13251 * video/readers/png.c: Likewise.
13252 * video/readers/tga.c: Likewise.
13254 * util/grub-fstest (cmd_loopback): Removed.
13255 (cmd_blocklist): Likewise.
13256 (cmd_ls): Likewise.
13257 (grub_register_command): Likewise.
13258 (grub_unregister_command): Likewise.
13259 (execute_command): Use grub_command_find to locate command and execute
13262 * include/grub/efi/chainloader.h: Removed.
13263 * loader/efi/chainloader_normal.c: Likewise.
13264 * loader/i386/bsd_normal.c: Likewise.
13265 * loader/i386/pc/chainloader_normal.c: Likewise.
13266 * loader/i386/pc/multiboot_normal.c: Likewise.
13267 * loader/linux_normal.c: Likewise.
13268 * loader/multiboot_loader_normal.c: Likewise.
13269 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13271 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13272 and grub_register_command_p1.
13274 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13275 kern/command.c, lib/arg.c and commands/extcmd.c.
13276 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13277 (minicmd_mod_SOURCES): New variable.
13278 (minicmd_mod_CFLAGS): Likewise.
13279 (minicmd_mod_LDFLAGS): Likewise.
13280 (extcmd_mod_SOURCES): Likewise.
13281 (extcmd_mod_CFLAGS): Likewise.
13282 (extcmd_mod_LDFLAGS): Likewise.
13283 (boot_mod_SOURCES): Removed.
13284 (boot_mod_CFLAGS): Likewise.
13285 (boot_mod_LDFLAGS): Likewise.
13287 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13289 (kernel_img_HEADERS): Add command.h.
13290 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13291 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13293 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13294 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13295 remove the corresponding normal mode command.
13296 (normal_mod_SOURCES): Remove normal/arg.c.
13297 * conf/i386-coreboot.rmk: Likewise.
13298 * conf/i386-efi.rmk: Likewise.
13299 * conf/i386-ieee1275.rmk: Likewise.
13300 * conf/powerpc-ieee1275.rmk: Likewise.
13301 * conf/x86_64-efi.rmk: Likewise.
13303 * include/grub/arg.h: Move from here ...
13304 * include/grub/lib/arg.h: ... to here.
13306 * normal/arg.c: Move from here ...
13307 * lib/arg.c: ... to here.
13309 * commands/extcmd.c: New file.
13310 * commands/minicmd.c: Likewise.
13311 * include/grub/command.h: Likewise.
13312 * include/grub/extcmd.h: Likewise.
13313 * kern/command.c: Likewise.
13314 * kern/corecmd.c: Likewise.
13316 * kern/list.c (grub_list_iterate): Return int instead of void.
13317 (grub_list_insert): New function.
13318 (grub_prio_list_insert): Likewise.
13320 * kern/rescue.c (grub_rescue_command): Removed.
13321 (grub_rescue_command_list): Likewise.
13322 (grub_rescue_register_command): Likewise.
13323 (grub_rescue_unregister_command): Likewise.
13324 (grub_rescue_cmd_boot): Move to minicmd.c
13325 (grub_rescue_cmd_help): Likewise.
13326 (grub_rescue_cmd_info): Likewise.
13327 (grub_rescue_cmd_boot): Likewise.
13328 (grub_rescue_cmd_testload): Likewise.
13329 (grub_rescue_cmd_dump): Likewise.
13330 (grub_rescue_cmd_rmmod): Likewise.
13331 (grub_rescue_cmd_lsmod): Likewise.
13332 (grub_rescue_cmd_exit): Likewise.
13333 (grub_rescue_print_devices): Moved to corecmd.c.
13334 (grub_rescue_print_files): Likewise.
13335 (grub_rescue_cmd_ls): Likewise.
13336 (grub_rescue_cmd_insmod): Likewise.
13337 (grub_rescue_cmd_set): Likewise.
13338 (grub_rescue_cmd_unset): Likewise.
13339 (attempt_normal_mode): Use grub_command_find to get normal module.
13340 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13341 commands, remove grub_rescue_register_command calls.
13343 * normal/command.c (grub_register_command): Removed.
13344 (grub_unregister_command): Likewise.
13345 (grub_command_find): Likewise.
13346 (grub_iterate_commands): Likewise.
13347 (rescue_command): Likewise.
13348 (export_command): Moved to corecmd.c.
13349 (set_command): Removed.
13350 (unset_command): Likewise.
13351 (insmod_command): Likewise.
13352 (rmmod_command): Likewise.
13353 (lsmod_command): Likewise.
13354 (grub_command_init): Likewise.
13356 * normal/completion.c (iterate_command): Use cmd->prio to check for
13358 (complete_arguments): Use grub_extcmd_t structure to find options.
13359 (grub_normal_do_completion): Change function grub_iterate_commands to
13360 grub_command_iterate.
13362 * normal/execute.c (grub_script_execute_cmd): No need to parse
13365 * normal/main.c (grub_dyncmd_dispatcher): New function.
13366 (read_command_list): Register unload commands as dyncmd.
13367 (grub_cmd_normal): Use new command interface, register rescue,
13368 unregister normal at entry, register normal, unregister rescue at exit.
13370 * include/grub/list.h (grub_list_test_t): New type.
13371 (grub_list_iterate): Return int instead of void.
13372 (grub_list_insert): New function.
13373 (GRUB_AS_NAMED_LIST_P): New macro.
13374 (GRUB_AS_PRIO_LIST): Likewise.
13375 (GRUB_AS_PRIO_LIST_P): Likewise.
13376 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13377 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13378 (grub_prio_list): New structure.
13379 (grub_prio_list_insert): New function.
13380 (grub_prio_list_remove): New inline function.
13382 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13383 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13384 (GRUB_COMMAND_FLAG_MENU): Likewise.
13385 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13386 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13387 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13388 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13389 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13390 (grub_command): Likewise.
13391 (grub_register_command): Likewise.
13392 (grub_command_find): Likewise.
13393 (grub_iterate_commands): Likewise.
13394 (grub_command_init): Likewise.
13395 (grub_arg_parse): Likewise.
13396 (grub_arg_show_help): Likewise.
13398 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13399 (grub_rescue_unregister_command): Likewise.
13401 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13402 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13403 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13405 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13406 grub_rescue_cmd_initrd.
13407 * include/grub/i386/loader.h: Likewise.
13408 * include/grub/x86_64/loader.h: Likewise.
13410 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13412 2009-03-21 Bean <bean123ch@gmail.com>
13414 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13415 instead of stat in mingw environment.
13417 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13419 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13421 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13424 2009-03-21 Bean <bean123ch@gmail.com>
13426 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13427 out of range error.
13429 2009-03-18 Michel Dänzer <michel@daenzer.net>
13431 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13432 checking inode flags for EXT4_EXTENTS_FLAG.
13434 2009-03-18 Robert Millan <rmh@aybabtu.com>
13436 * loader/i386/linux.c: Include `<grub/video.h>' and
13437 `<grub/i386/pc/vbe.h>'..
13438 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13439 (grub_linux32_boot): Attempt to configure video settings with
13440 grub_linux_setup_video().
13441 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13442 to avoid grub_console_fini() which would step out of graphical mode
13445 2009-03-14 Robert Millan <rmh@aybabtu.com>
13447 Fix build on powerpc.
13448 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13450 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13452 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13453 background image command.
13455 2009-03-12 Colin D Bennett <colin@gibibit.com>
13457 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13458 (grub_gfxterm_putchar): Extract pairs of identical calls to
13459 draw_cursor out of conditional blocks.
13461 2009-03-11 Pavel Roskin <proski@gnu.org>
13463 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13464 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13466 2009-03-11 Robert Millan <rmh@aybabtu.com>
13468 * loader/i386/multiboot_elfxx.c
13469 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13471 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13473 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13476 2009-03-11 Robert Millan <rmh@aybabtu.com>
13478 * loader/i386/multiboot.c (code_size): New variable.
13479 (grub_multiboot): Define offsets by adding to `code_size' rather
13480 than subtracting from `grub_multiboot_payload_size'. Provide
13481 4-byte alignment to MBI and others by increasing
13482 `boot_loader_name_length' appropriately.
13484 * loader/i386/multiboot_elfxx.c
13485 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13487 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13492 2009-03-08 Robert Millan <rmh@aybabtu.com>
13494 Make loader/i386/linux.c usable on i386-pc again.
13496 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13498 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13501 2009-03-07 Bean <bean123ch@gmail.com>
13503 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13506 2009-03-06 Robert Millan <rmh@aybabtu.com>
13508 Fix display issue on terminals with screen size other than 80x25
13509 (e.g. gfxterm with resolution higher than 640x480).
13511 * normal/main.c (grub_normal_init_page): Display title text in a
13512 position relative to the center of the terminal instead of relying
13513 on a hardcoded offset.
13515 2009-03-04 Robert Millan <rmh@aybabtu.com>
13517 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13520 * Makefile.in (host_kernel): New variable.
13521 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13522 scripts instead of just the windows one.
13523 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13525 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13530 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13531 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13533 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13534 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13536 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13538 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13539 or if there's no space for the disk label and print the partition number on a
13542 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13544 * util/misc.c: Include <time.h>.
13545 (grub_millisleep): New function.
13547 2009-03-04 Bean <bean123ch@gmail.com>
13549 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13550 another option -mno-red-zone.
13552 * commands/handler.c: Change module description.
13554 * kern/handler.c: Add missing space at the end of description line.
13556 * kern/list.c: Likewise.
13558 2009-03-03 Robert Millan <rmh@aybabtu.com>
13560 Move more components to the relocation area, and fix mbi pointer
13561 handling to use the destination rather than the origin (thanks to
13562 Vladimir Serbinenko for spotting).
13564 * loader/i386/multiboot.c (mbi_dest): New variable.
13565 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13566 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13569 2009-03-01 Bean <bean123ch@gmail.com>
13571 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13572 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13573 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13574 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13576 * loader/i386/efi/linux.c (acpi_guid): New variable.
13577 (acpi_guid): Likewise.
13578 (EBDA_SEG_ADDR): New constant.
13579 (LOW_MEM_ADDR): Likewise.
13580 (FAKE_EBDA_SEG): Likewise.
13581 (fake_bios_data): New function.
13582 (grub_linux_boot): Call fake_bios_data.
13584 2009-03-01 Bean <bean123ch@gmail.com>
13586 * commands/terminal.c: Removed.
13588 * commands/handler.c: New file.
13590 * include/grub/list.h: Likewise.
13592 * include/grub/handler.h: Likewise.
13594 * kern/list.c: Likewise.
13596 * kern/handler.c: Likewise.
13598 * kern/term.h: Include header file <grub/handler.h>.
13599 (grub_term_input): Move next field to the beginning.
13600 (grub_term_output): Likewise.
13601 (grub_term_input_class): New variable.
13602 (grub_term_output_class): Likewise.
13603 (grub_term_register_input): Changed to inline function.
13604 (grub_term_register_output): Likewise.
13605 (grub_term_unregister_input): Likewise.
13606 (grub_term_unregister_output): Likewise.
13607 (grub_term_set_current_input): Likewise.
13608 (grub_term_set_current_output): Likewise.
13609 (grub_term_get_current_input): Likewise.
13610 (grub_term_get_current_output): Likewise.
13611 (grub_term_iterate_input): Removed.
13612 (grub_term_iterate_output): Likewise.
13614 * kern/term.c (grub_term_list_input): Removed.
13615 (grub_term_list_output): Likewise.
13616 (grub_term_input_class): New variable.
13617 (grub_term_output_class): Likewise.
13618 (grub_cur_term_input): Change variable as macro.
13619 (grub_cur_term_output): Likewise.
13620 (grub_term_register_input): Removed.
13621 (grub_term_register_output): Likewise.
13622 (grub_term_unregister_input): Likewise.
13623 (grub_term_unregister_output): Likewise.
13624 (grub_term_set_current_input): Likewise.
13625 (grub_term_set_current_output): Likewise.
13626 (grub_term_iterate_input): Likewise.
13627 (grub_term_iterate_output): Likewise.
13628 (grub_term_get_current_input): Likewise.
13629 (grub_term_get_current_output): Likewise.
13631 * util/grub-editenv.c: Include header file <grub/handler.h>.
13632 (grub_term_get_current_input): Removed.
13633 (grub_term_get_current_output): Likewise.
13634 (grub_term_input_class): New variable.
13635 (grub_term_output_class): Likewise.
13637 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13638 (grub_term_get_current_output): Likewise.
13639 (grub_term_input_class): New variable.
13640 (grub_term_output_class): Likewise.
13642 * util/grub-probe.c (grub_term_get_current_input): Removed.
13643 (grub_term_get_current_output): Likewise.
13644 (grub_term_input_class): New variable.
13645 (grub_term_output_class): Likewise.
13647 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13648 (grub_term_get_current_output): Likewise.
13649 (grub_term_input_class): New variable.
13650 (grub_term_output_class): Likewise.
13652 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13653 (terminal_mod_SOURCES): Likewise.
13654 (terminal_mod_CFLAGS): Likewise.
13655 (terminal_mod_LDFLAGS): Likewise.
13657 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13659 (kernel_img_SOURCES): Add list.c and handler.c.
13660 (kernel_img_HEADERS): Add list.h and handler.h.
13662 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13664 (kernel_mod_SOURCES): Add list.c and handler.c.
13665 (kernel_mod_HEADERS): Add list.h and handler.h.
13667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13669 (kernel_elf_SOURCES): Add list.c and handler.c.
13670 (kernel_elf_HEADERS): Add list.h and handler.h.
13672 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13674 (kernel_elf_SOURCES): Add list.c and handler.c.
13675 (kernel_elf_HEADERS): Add list.h and handler.h.
13677 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13679 (kernel_mod_SOURCES): Add list.c and handler.c.
13680 (kernel_mod_HEADERS): Add list.h and handler.h.
13682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13684 (kernel_elf_SOURCES): Add list.c and handler.c.
13685 (kernel_elf_HEADERS): Add list.h and handler.h.
13687 2009-02-27 Robert Millan <rmh@aybabtu.com>
13689 Factorize elf32 / elf64 code in Multiboot loader. This will
13690 prevent it from getting out of sync again.
13692 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13693 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13694 grub_multiboot_load_elf64): Move from here ...
13695 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13696 grub_multiboot_load_elf): ... to here (new file).
13698 2009-02-27 Robert Millan <rmh@aybabtu.com>
13700 * util/grub.d/10_linux.in: Rename "single-user mode" to
13703 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13705 Don't leak in SCSI code.
13706 * disk/scsi.c (grub_scsi_close): free `scsi'.
13708 2009-02-27 Robert Millan <rmh@aybabtu.com>
13710 * loader/i386/pc/multiboot.c: Move from here ...
13711 * loader/i386/multiboot.c: ... to here. Update all users.
13713 2009-02-27 Robert Millan <rmh@aybabtu.com>
13715 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13716 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13718 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13720 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13723 2009-02-27 Robert Millan <rmh@aybabtu.com>
13725 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13726 `0x' qualifier as 0 when base is specified as parameter).
13728 2009-02-24 Bean <bean123ch@gmail.com>
13730 * configure.ac: Check for -mcmodel=large in x86_64 target.
13732 * include/grub/efi/api.h (efi_call_10): New macro.
13733 (efi_wrap_10): New function.
13735 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13736 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13737 (GRUB_PE32_REL_BASED_LOW): Likewise.
13738 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13739 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13740 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13741 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13742 (GRUB_PE32_REL_BASED_REL): Likewise.
13743 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13744 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13745 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13747 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13750 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13751 (efi_wrap_10): New function.
13753 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13755 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13756 MB/MBP model (NV chipset).
13757 (devdata_devs): Add devpath_5 to the list.
13759 * load/i386/efi/linux.c (video_base): Remove variable.
13760 (RGB_MASK): New macro.
13761 (RGB_MAGIC): Likewise.
13762 (LINE_MIN): Likewise.
13763 (LINE_MAX): Likewise.
13764 (FBTEST_STEP): Likewise.
13765 (FBTEST_COUNT): Likewise.
13766 (fb_list): New variable.
13767 (grub_find_video_card): Remove function.
13768 (find_framebuf): New function.
13769 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13772 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13773 problem for x86_64.
13775 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13777 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13779 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13782 2009-02-22 Robert Millan <rmh@aybabtu.com>
13784 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13785 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13786 in our relocation, instead of using it directly from heap. Also
13787 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13789 2009-02-21 Robert Millan <rmh@aybabtu.com>
13791 Implement USB keyboard support (based on patch by Marco Gerards)
13793 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13794 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13795 (usb_keyboard_mod_LDFLAGS): New variables.
13797 * term/usb_keyboard.c: New file.
13799 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13801 Corrected wrong declaration
13803 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13805 2009-02-14 Christian Franke <franke@computer.org>
13807 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13808 (grub_lspci_iter): Print class code and programming interface byte.
13810 2009-02-14 Christian Franke <franke@computer.org>
13812 * gendistlist.sh: Ignore `.svn' directories.
13814 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13816 * fs/fat.c: Add 2009 to Copyright line.
13818 2009-02-14 Christian Franke <franke@computer.org>
13820 * commands/hdparm.c: New file. Provides `hdparm' command
13821 which sends ATA commands via grub_disk_ata_pass_through ().
13823 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13825 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13826 and <grub/cpu/io.h> to include/grub/ata.h.
13827 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13828 (GRUB_CDROM_SECTOR_SIZE): Remove.
13829 (GRUB_ATA_*): Move to include/grub/ata.h.
13830 (GRUB_ATAPI_*): Likewise.
13831 (enum grub_ata_commands): Likewise.
13832 (enum grub_ata_timeout_milliseconds): Likewise.
13833 (struct grub_ata_device): Likewise.
13834 (grub_ata_regset): Likewise.
13835 (grub_ata_regget): Likewise.
13836 (grub_ata_regset2): Likewise.
13837 (grub_ata_regget2): Likewise.
13838 (grub_ata_check_ready): Likewise.
13839 (grub_ata_wait_not_busy): Remove static, exported in
13840 include/grub/ata.h.
13841 (grub_ata_wait_drq): Likewise.
13842 (grub_ata_pio_read): Likewise.
13844 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13845 function for hdparm.mod.
13847 * include/grub/ata.h: New file, contains declarations from
13849 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13851 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13852 (grub_disk_ata_pass_through): New exported variable.
13854 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13856 2009-02-13 Colin D Bennett <colin@gibibit.com>
13858 Support multiple fallback entries, and provide an API to support
13859 executing default+fallback menu entries. Renamed the `terminal' menu
13862 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13863 variable declaration.
13864 (grub_menu_execute_callback): New structure declaration.
13865 (grub_menu_execute_callback_t): New typedef.
13866 (grub_menu_execute_with_fallback): New function declaration.
13867 (grub_menu_get_entry): Likewise.
13868 (grub_menu_get_timeout): Likewise.
13869 (grub_menu_set_timeout): Likewise.
13871 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13873 * normal/menu.c (grub_wait_after_message): Moved to
13874 `normal/menu_text.c'.
13875 (draw_border): Likewise.
13876 (print_message): Likewise.
13877 (print_entry): Likewise.
13878 (print_entries): Likewise.
13879 (grub_menu_init_page): Likewise.
13880 (get_entry_number): Likewise.
13881 (print_timeout): Likewise.
13882 (run_menu): Likewise.
13883 (grub_menu_execute_entry): Likewise.
13884 (show_text_menu): Likewise.
13885 (get_and_remove_first_entry_number): New function.
13886 (grub_menu_execute_with_fallback): Likewise.
13887 (get_entry): Renamed to ...
13888 (grub_menu_get_entry): .. this and made it global.
13889 (get_timeout): Renamed to ...
13890 (grub_menu_get_timeout): ... this and made it global.
13891 (set_timeout): Renamed to ...
13892 (grub_menu_set_timeout): ... this and made it global.
13893 (grub_normal_terminal_menu_viewer): Renamed to ...
13894 (grub_normal_text_menu_viewer): ... this.
13896 * normal/menu_text.c: New file. Extracted text-menu-specific code
13897 from normal/menu.c.
13899 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13900 (normal_mod_SOURCES): Likewise.
13902 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13903 (normal_mod_SOURCES): Likewise.
13905 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13906 (normal_mod_SOURCES): Likewise.
13908 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13909 (normal_mod_SOURCES): Likewise.
13911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13912 (normal_mod_SOURCES): Likewise.
13914 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13915 (normal_mod_SOURCES): Likewise.
13917 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13918 (normal_mod_SOURCES): Likewise.
13920 2009-02-11 Robert Millan <rmh@aybabtu.com>
13922 * util/grub.d/00_header.in: Update old reference to `font' command.
13924 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13926 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13928 Based on patch from Javier Martín.
13930 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13932 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13933 to avoid false positives with FAT.
13934 (grub_fstest_SOURCES): Likewise.
13935 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13936 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13939 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13940 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13942 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13944 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13945 bpb.version_specific.fat12_or_fat16.fstype and
13946 bpb.version_specific.fat32.fstype.
13948 2009-02-08 Robert Millan <rmh@aybabtu.com>
13950 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13952 2009-02-08 Robert Millan <rmh@aybabtu.com>
13954 * Makefile.in (host_os, host_cpu): New variables.
13955 (target_os): Remove. Update all users.
13957 2009-02-08 Marco Gerards <marco@gnu.org>
13959 * Makefile.in (enable_grub_emu_usb): New variable.
13960 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13961 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13962 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13963 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13964 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13965 `usbtest.mod' and `usbms.mod'.
13966 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13967 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13968 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13969 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13970 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13973 * disk/usbms.c: New file.
13975 * include/grub/usb.h: Likewise.
13977 * include/grub/usbtrans.h: Likewise.
13979 * include/grub/usbdesc.h: Likewise.
13981 * bus/usb/usbtrans.c: Likewise.
13983 * bus/usb/ohci.c: Likewise.
13985 * bus/usb/uhci.c: Likewise.
13987 * bus/usb/usbhub.c: Likewise.
13989 * bus/usb/usb.c: Likewise.
13991 * commands/usbtest.c: Likewise.
13993 * util/usb.c: Likewise.
13995 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13997 * configure.ac: Test for libusb presence.
13999 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14001 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14003 * kern/mm.c: Add more comments.
14005 2009-02-08 Robert Millan <rmh@aybabtu.com>
14007 Patch from Javier Martín.
14008 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14009 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14011 2009-02-08 Robert Millan <rmh@aybabtu.com>
14013 * fs/cpio.c: Split tar functionality to ...
14014 * fs/tar.c: ... here (new file). Update all users.
14016 2009-02-07 Robert Millan <rmh@aybabtu.com>
14018 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14019 backward-incompatible features.
14021 Based on patch from Javier Martín, with some adjustments.
14023 2009-02-07 Michael Scherer <misc@mandriva.org>
14025 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14027 2009-02-07 Robert Millan <rmh@aybabtu.com>
14029 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14030 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14031 after the RAID stuff.
14033 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14035 Fixes problem when running vbetest command as reported by
14036 Vladimir Serbinenko <phcoder@gmail.com>.
14038 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14040 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
14042 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14043 /dev/md/NpN style mdraid devices.
14045 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14047 * util/unifont2pff.rb: Remove.
14049 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14051 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14054 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14056 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14057 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14058 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14059 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14060 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14061 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14062 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14064 2009-02-02 Christian Franke <franke@computer.org>
14066 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14068 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
14070 * INSTALL: Note that we now require at least autoconf 2.59 and
14071 that LZO is optional.
14073 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14075 Base on patch on bug #24154 created by Tomas Tintera
14076 <trosos@seznam.cz>.
14078 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14080 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14082 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14083 <bero@arklinux.org>.
14085 * normal/parser.y (script_init): Add missing semicolon.
14087 2009-01-31 Colin D Bennett <colin@gibibit.com>
14089 * normal/main.c: Add include to grub/menu_viewer.h.
14090 (free_menu_entry_classes): Added.
14091 (grub_normal_menu_addentry): Added class property handling.
14092 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14093 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14095 * normal/menu_viewer.c: New file.
14097 * normal/menu.c (run_menu_entry): Renamed to ...
14098 (grub_menu_execute_entry): ... this and made it as global.
14099 (grub_menu_run): Renamed to ...
14100 (show_text_menu): ... this and made it local.
14101 (show_text_menu): Adapt to new function names.
14102 (grub_normal_terminal_menu_viewer): New global variable.
14104 * include/grub/menu.h: New file.
14106 * include/grub/menu_viewer.h: New file.
14108 * include/grub/normal.h: Added include to grub/menu.h.
14109 (grub_menu_entry): Moved to include/grub/menu.h.
14110 (grub_menu_entry_t): Likewise.
14111 (grub_menu): Likewise.
14112 (grub_menu_t): Likewise.
14113 (grub_normal_terminal_menu_viewer): Added.
14114 (grub_menu_execute_entry): Likewise.
14115 (grub_menu_run): Removed.
14117 * DISTLIST: Added include/grub/menu.h.
14118 Added include/grub/menu_viewer.h.
14119 Added normal/menu_viewer.c.
14121 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14123 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14124 arglist for menutitle arguments.
14126 * normal/main.c (grub_normal_menu_addentry): Likewise.
14128 * normal/parser.y (menuentry): Likewise.
14130 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14132 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14133 (grub_script_create_cmdmenu): Likewise.
14135 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14137 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14140 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14142 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14144 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14146 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14148 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14150 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14152 2009-01-30 Christian Franke <franke@computer.org>
14154 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14155 in option help text.
14157 2009-01-27 Pavel Roskin <proski@gnu.org>
14159 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14161 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14163 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14165 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14167 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14168 unregister function.
14170 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14172 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14174 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14176 * util/grub-mkfont.c (usage): Fix typo.
14178 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14180 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14182 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14184 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14186 * kern/misc.c (grub_strcasecmp): New function.
14187 (grub_strcasecmp): Use grub_size_t instead of int for length.
14189 * include/grub/misc.h: Update function prototypes.
14191 2009-01-26 Robert Millan <rmh@aybabtu.com>
14193 * configure.ac: Fix cross-compilation check.
14195 2009-01-22 Christian Franke <franke@computer.org>
14197 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14198 (precision) digit string. Allow `.format2' without `format1' (width).
14199 Limit input chars for `%s' output to `format2' if specified. This is
14200 compatible with standard printf ().
14202 2009-01-22 Christian Franke <franke@computer.org>
14204 * disk/ata.c (grub_ata_wait_status): Replace by ...
14205 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14206 other status bits may be invalid while BSY is asserted.
14207 (grub_ata_check_ready): New function.
14208 (grub_ata_cmd): Removed.
14209 (grub_ata_wait_drq): New function.
14210 (grub_ata_strncpy): Remove inline.
14211 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14212 and error check now done by grub_ata_wait_drq ().
14213 (grub_ata_pio_write): Likewise.
14214 (grub_atapi_identify): Set DEV before check for !BSY. Use
14215 grub_ata_wait_drq () to wait for data.
14216 (grub_ata_device_initialize): Add status register check to
14217 detect missing SATA slave devices. Add debug messages.
14218 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14219 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14220 transfer loop by grub_ata_pio_write ().
14221 (grub_ata_identify): Set DEV before check for !BSY. Use
14222 grub_ata_wait_drq () to wait for data.
14223 (grub_ata_setaddress): Set DEV before check for !BSY.
14224 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14225 read/write in one loop. Fix invalid command on write. Fix incomplete
14226 command on (size % batch) == 0. Add missing error check after write of
14227 last block. Add debug messages.
14228 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14230 2009-01-19 Christian Franke <franke@computer.org>
14232 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14233 (GRUB_ATAPI_IREASON_*): Likewise.
14234 (grub_ata_pio_write): Fix timeout error return.
14235 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14236 (grub_atapi_wait_drq): New function.
14237 (grub_atapi_packet): New parameter `size'.
14238 Use grub_atapi_wait_drq () and direct write instead of
14239 grub_ata_pio_write ().
14240 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14241 reads the number of bytes requested by the device for each DRQ
14243 (grub_atapi_write): Remove old implementation, return not
14244 implemented instead.
14246 2009-01-19 Christian Franke <franke@computer.org>
14248 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14249 of 512 to calculate data size.
14250 (grub_scsi_read12): Likewise.
14251 (grub_scsi_write10): Likewise.
14252 (grub_scsi_write12): Likewise.
14253 (grub_scsi_read): Adjust size according to blocksize.
14254 Add checks for invalid blocksize and unaligned transfer.
14256 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14258 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14260 * term/gfxterm.c (write_char): Fix background rendering for wide
14263 2009-01-19 Robert Millan <rmh@aybabtu.com>
14265 * config.guess: Update to latest version from config git.
14266 * config.sub: Likewise.
14268 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14270 * Makefile.in: Change font compilation to use new grub-mkfont instead
14273 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14274 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14275 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14276 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14277 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14278 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14279 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14280 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14281 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14283 2009-01-16 Christian Franke <franke@computer.org>
14285 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14286 (enum grub_ata_timeout_milliseconds): New enum.
14287 (grub_ata_wait_status): Add parameter milliseconds.
14288 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14289 recovery from timed-out commands.
14290 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14291 return grub_errno instead of REG_ERROR.
14292 (grub_ata_pio_write): Add parameter milliseconds.
14293 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14294 Pass milliseconds to grub_ata_wait_status () and
14295 grub_ata_pio_read ().
14296 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14297 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14298 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14299 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14300 It is not suitable for device detection, because DEV bit is ignored,
14301 the command may run too long, and not all devices set the signature
14303 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14304 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14305 Fix device selection, DEV bit must be set first to address the registers
14306 of the correct device.
14307 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14308 grub_ata_pio_read/write ().
14309 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14310 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14312 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14314 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14316 2009-01-13 Bean <bean123ch@gmail.com>
14318 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14320 2009-01-13 Bean <bean123ch@gmail.com>
14322 * Makefile.in: (enable_grub_mkfont): New variable.
14323 (freetype_cflags): Likewise.
14324 (freetype_libs): Likewise.
14326 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14327 (grub_mkfont_SOURCES): New variable.
14328 (grub_mkfont_CFLAGS): Likewise.
14329 (grub_mkfont_LDFLAGS): Likewise.
14331 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14332 library if `--enable-grub-mkfont' is requested.
14333 (enable_grub_mkfont): New variable.
14334 (freetype_cflags): Likewise.
14335 (freetype_libs): Likewise.
14337 * util/grub-mkfont.c: New file.
14339 2009-01-12 Christian Franke <franke@computer.org>
14341 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14342 mode check. Fix setting of compat_use[].
14344 2009-01-10 Robert Millan <rmh@aybabtu.com>
14346 Update a few copyright years which we forgot to do in 2008 (only for
14347 files whose changes made in 2008 were copyright-significant)
14349 * Makefile.in: Add 2008 to Copyright line.
14350 * disk/ieee1275/ofdisk.c: Likewise.
14351 * disk/efi/efidisk.c: Likewise.
14352 * kern/dl.c: Likewise.
14353 * kern/sparc64/ieee1275/init.c: Likewise.
14354 * kern/mm.c: Likewise.
14355 * kern/efi/mm.c: Likewise.
14356 * boot/i386/pc/boot.S: Likewise.
14357 * genfslist.sh: Likewise.
14358 * fs/iso9660.c: Likewise.
14359 * fs/hfs.c: Likewise.
14360 * fs/jfs.c: Likewise.
14361 * fs/minix.c: Likewise.
14362 * fs/ufs.c: Likewise.
14363 * gensymlist.sh.in: Likewise.
14364 * genkernsyms.sh.in: Likewise.
14365 * include/grub/misc.h: Likewise.
14366 * include/grub/types.h: Likewise.
14367 * include/grub/symbol.h: Likewise.
14368 * include/grub/elf.h: Likewise.
14369 * include/grub/kernel.h: Likewise.
14370 * include/grub/disk.h: Likewise.
14371 * include/grub/dl.h: Likewise.
14372 * include/grub/i386/linux.h: Likewise.
14373 * include/grub/i386/pc/biosdisk.h: Likewise.
14374 * include/grub/efi/api.h: Likewise.
14375 * include/grub/efi/pe32.h: Likewise.
14376 * include/grub/util/misc.h: Likewise.
14377 * normal/execute.c: Likewise.
14378 * normal/arg.c: Likewise.
14379 * normal/completion.c: Likewise.
14380 * normal/lexer.c: Likewise.
14381 * normal/parser.y: Likewise.
14382 * normal/misc.c: Likewise.
14383 * commands/i386/pc/vbeinfo.c: Likewise.
14384 * commands/hexdump.c: Likewise.
14385 * commands/terminal.c: Likewise.
14386 * commands/ls.c: Likewise.
14387 * commands/help.c: Likewise.
14388 * partmap/pc.c: Likewise.
14389 * loader/efi/chainloader.c: Likewise.
14390 * loader/multiboot_loader.c: Likewise.
14391 * loader/i386/pc/multiboot2.c: Likewise.
14392 * term/efi/console.c: Likewise.
14393 * term/i386/pc/serial.c: Likewise.
14394 * util/lvm.c: Likewise.
14395 * util/console.c: Likewise.
14396 * util/i386/efi/grub-mkimage.c: Likewise.
14397 * util/raid.c: Likewise.
14399 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14401 * commands/videotest.c: Removed include to grub/machine/memory.h.
14403 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14404 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14405 (video_mod_SOURCES): Removed.
14406 (video_mod_CFLAGS): Likewise.
14407 (video_mod_LDFLAGS): Likewise.
14408 (gfxterm_mod_SOURCES): Likewise.
14409 (gfxterm_mod_CFLAGS): Likewise.
14410 (gfxterm_mod_LDFLAGS): Likewise.
14411 (videotest_mod_SOURCES): Likewise.
14412 (videotest_mod_CFLAGS): Likewise.
14413 (videotest_mod_LDFLAGS): Likewise.
14414 (bitmap_mod_SOURCES): Likewise.
14415 (bitmap_mod_CFLAGS): Likewise.
14416 (bitmap_mod_LDFLAGS): Likewise.
14417 (tga_mod_SOURCES): Likewise.
14418 (tga_mod_CFLAGS): Likewise.
14419 (tga_mod_LDFLAGS): Likewise.
14420 (jpeg_mod_SOURCES): Likewise.
14421 (jpeg_mod_CFLAGS): Likewise.
14422 (jpeg_mod_LDFLAGS): Likewise.
14423 (png_mod_SOURCES): Likewise.
14424 (png_mod_CFLAGS): Likewise.
14425 (png_mod_LDFLAGS): Likewise.
14427 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14428 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14429 (video_mod_SOURCES): Added.
14430 (video_mod_CFLAGS): Likewise.
14431 (video_mod_LDFLAGS): Likewise.
14432 (videotest_mod_SOURCES): Likewise.
14433 (videotest_mod_CFLAGS): Likewise.
14434 (videotest_mod_LDFLAGS): Likewise.
14435 (bitmap_mod_SOURCES): Likewise.
14436 (bitmap_mod_CFLAGS): Likewise.
14437 (bitmap_mod_LDFLAGS): Likewise.
14438 (tga_mod_SOURCES): Likewise.
14439 (tga_mod_CFLAGS): Likewise.
14440 (tga_mod_LDFLAGS): Likewise.
14441 (jpeg_mod_SOURCES): Likewise.
14442 (jpeg_mod_CFLAGS): Likewise.
14443 (jpeg_mod_LDFLAGS): Likewise.
14444 (png_mod_SOURCES): Likewise.
14445 (png_mod_CFLAGS): Likewise.
14446 (png_mod_LDFLAGS): Likewise.
14447 (gfxterm_mod_SOURCES): Likewise.
14448 (gfxterm_mod_CFLAGS): Likewise.
14449 (gfxterm_mod_LDFLAGS): Likewise.
14451 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14452 grub/machine/console.h.
14454 2009-01-04 Jerone Young <jerone@gmail.com>
14456 Make on screen instructions clearer
14458 Based on patch created by Jidanni <jidanni@jidanni.org>
14460 * normal/menu.c: print clearer instructions on the screen
14462 2009-01-02 Colin D Bennett <colin@gibibit.com>
14466 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14467 build system and fixed gfxterm.c to work with different sized fonts.
14469 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14471 * configure: Re-generated.
14473 * DISTLIST: Removed font/manager.c.
14475 Added font/font_cmd.c.
14477 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14480 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14482 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14484 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14486 * normal/menu.c: Likewise.
14488 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14489 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14491 * include/grub/font.h: Replaced with new file.
14493 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14494 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14495 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14496 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14497 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14498 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14499 fg_red, fg_green, fg_blue, fg_alpha.
14500 (grub_video_adapter): Removed blit_glyph.
14501 (grub_video_blit_glyph): Removed.
14503 * font/manager.c: Removed file.
14505 * font/font.c: New file.
14507 * font/font_cmd.c: Likewise.
14509 * video/video.c (grub_video_blit_glyph): Removed.
14511 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14512 (grub_video_vbe_map_rgba): Likewise.
14513 (grub_video_vbe_unmap_color_int): Likewise.
14514 (grub_video_vbe_blit_glyph): Removed.
14515 (grub_video_vbe_adapter): Removed blit_glyph.
14517 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14518 (get_pixel): Likewise.
14519 (set_pixel): Likewise.
14521 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14523 * term/gfxterm.c: Adapted to new font engine.
14525 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14527 * term/i386/pc/vga.c: Likewise.
14529 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14531 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14533 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14535 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14537 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14539 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14541 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14543 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14545 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14547 * util/grub.d/00_header.in: Changed to use new loadfont command.
14549 * util/grub-mkconfig_lib.in: Changed font extension.
14551 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14553 * util/getroot.c (grub_util_get_grub_dev): Add support for
14554 /dev/md/dNNpNN style partitionable mdraid devices.
14556 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14558 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14559 at a time limit of the PXE TFTP API correctly.
14560 (grub_pxefs_close): Likewise.
14562 2008-11-29 Robert Millan <rmh@aybabtu.com>
14564 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14565 grub_ata_device_initialize() calls.
14567 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14569 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14571 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14573 2008-11-28 Robert Millan <rmh@aybabtu.com>
14575 Fix build on powerpc-ieee1275. Based on patch created by
14576 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14577 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14578 `kern/ieee1275/mmap.c'.
14579 * include/grub/powerpc/ieee1275/memory.h: New file.
14581 Provide grub-install on coreboot.
14582 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14583 (grub_install_SOURCES): New variable.
14584 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14585 usable on coreboot.
14587 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14589 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14590 to `grub_term_input_t'.
14591 (grub_term_get_current_output): Change return type to
14592 `grub_term_output_t'.
14594 2008-11-22 Robert Millan <rmh@aybabtu.com>
14596 Fix breakage on coreboot due to declaration mismatch.
14597 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14598 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14599 grub_vga_text_cls().
14601 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14602 comments. Avoid copying one more byte than necessary (just in case).
14604 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14605 to 0x200000 (avoids trouble with some OFW implementations, and matches
14606 with the one in Yaboot).
14607 Reported by Manoel Abranches
14609 2008-11-20 Robert Millan <rmh@aybabtu.com>
14611 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14612 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14614 * util/grub-mkconfig_lib.in (grub_warn): New function.
14615 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14616 warnings, to obtain consistent formatting.
14617 * util/grub.d/00_header.in: Likewise.
14618 * util/update-grub_lib.in: Likewise.
14620 * loader/i386/linux.c (allocate_pages): Fix a warning.
14621 Move comment text to `#error' stanza.
14623 Harmonize ieee1275's grub_available_iterate() with the generic
14624 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14625 build problem on i386-ieee1275):
14626 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14627 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14628 parameter `type'. Update all users of this function.
14629 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14630 `kern/ieee1275/mmap.c'.
14631 * kern/ieee1275/init.c
14632 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14634 (grub_machine_mmap_iterate): ... this.
14635 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14636 return type to `grub_err_t'. Update all implementations of this
14637 function prototype.
14638 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14641 Add `lsmmap' command (lists firmware-provided memory map):
14642 * commands/lsmmap.c: New file.
14643 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14644 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14646 * conf/powerpc-ieee1275.rmk: Likewise.
14647 * conf/i386-coreboot.rmk: Likewise.
14648 * conf/i386-ieee1275.rmk: Likewise.
14650 2008-11-19 Robert Millan <rmh@aybabtu.com>
14652 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14653 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14654 constraints to initrd allocation (based on code from
14655 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14656 for Linux to find it.
14658 2008-11-14 Robert Millan <rmh@aybabtu.com>
14660 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14661 order to cope with duplicate slashes.
14663 2008-11-14 Robert Millan <rmh@aybabtu.com>
14665 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14666 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14667 don't want to mess with lower memory, because it is used in the Linux
14670 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14671 an appropriate place in lower memory, between 0x10000 and 0x90000,
14672 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14673 is in our heap (probably as a result of it being corrupted during
14674 decompression). Add #error instance with comment to explain why this
14675 loader isn't currently usable on PC/BIOS.
14677 2008-11-14 Robert Millan <rmh@aybabtu.com>
14679 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14680 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14682 2008-11-12 Robert Millan <rmh@aybabtu.com>
14684 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14686 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14687 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14689 * include/grub/i386/pc/memory.h: ... to here.
14691 2008-11-12 Robert Millan <rmh@aybabtu.com>
14693 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14696 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14697 (grub_console_cur_color, grub_console_real_putchar)
14698 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14699 (grub_console_setcolorstate, grub_console_setcolor)
14700 (grub_console_getcolor): Move from here ...
14701 * include/grub/i386/vga_common.h: ... to here (new file).
14703 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14704 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14705 `<grub/i386/io.h>'.
14706 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14707 `<grub/i386/vga_common.h>'.
14709 2008-11-12 Robert Millan <rmh@aybabtu.com>
14711 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14712 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14713 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14715 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14716 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14718 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14719 grub_console_init() with call to grub_vga_text_init().
14720 (grub_machine_fini): Replace call to
14721 grub_console_fini() with call to grub_vga_text_fini() and
14722 grub_at_keyboard_fini().
14724 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14725 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14726 (grub_console_setcolorstate, grub_console_setcolor)
14727 (grub_console_getcolor): New function prototypes.
14729 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14730 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14731 (grub_vga_text_setcursor): Static-ize.
14732 (grub_vga_text_term): New structure.
14733 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14735 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14736 (grub_console_cur_color, grub_console_standard_color)
14737 (grub_console_normal_color, grub_console_highlight_color)
14738 (map_char, grub_console_putchar, grub_console_getcharwidth)
14739 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14740 (grub_console_getcolor): Move from here ...
14741 * term/i386/vga_common.c: ... to here (same function names).
14743 2008-11-12 Robert Millan <rmh@aybabtu.com>
14745 Use newly-added Multiboot support in coreboot.
14747 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14748 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14750 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14751 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14752 (codestart): Store the MBI in `startup_multiboot_info' when we're
14753 being loaded using Multiboot.
14755 * kern/i386/coreboot/init.c (grub_machine_init): Move
14756 grub_at_keyboard_init() call to beginning of function (useful for
14757 debugging). Call grub_machine_mmap_init() before attempting to use
14758 grub_machine_mmap_iterate().
14759 (grub_lower_mem, grub_upper_mem): Move from here ...
14760 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14763 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14764 function prototype.
14766 2008-11-12 Robert Millan <rmh@aybabtu.com>
14768 Fix a regression introduced by the at_keyboard.mod split. Because
14769 some terminals are default on some platforms and non-default on
14770 others, the first terminal being registered determines which is
14771 going to be default.
14773 * kern/term.c (grub_term_register_input): If this is the first
14774 terminal being registered, set it as the current one.
14775 (grub_term_register_output): Likewise.
14777 * term/efi/console.c (grub_console_init): Do not call
14778 grub_term_set_current_output() or grub_term_set_current_input().
14779 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14780 * term/i386/pc/console.c (grub_console_init): Likewise.
14781 (grub_console_fini): Do not call grub_term_set_current_input()
14782 (but leave grub_term_set_current_output() to restore text mode).
14784 2008-11-10 Robert Millan <rmh@aybabtu.com>
14786 * util/grub.d/00_header.in: Add backward compatibility check for
14787 versions of terminal.mod that don't understand `terminal_input' or
14790 2008-11-09 Robert Millan <rmh@aybabtu.com>
14792 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14793 `terminal_input' / `terminal_output', not `terminal'.
14795 2008-11-08 Robert Millan <rmh@aybabtu.com>
14797 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14798 (DISTCLEANFILES): Add `build_env.mk'.
14800 2008-11-08 Robert Millan <rmh@aybabtu.com>
14802 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14803 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14804 members. Update all users.
14805 * util/console.c (grub_ncurses_term): Split in ...
14806 (grub_ncurses_term_input): ... this, and ...
14807 (grub_ncurses_term_output): ... this. Update all users.
14808 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14810 2008-11-08 Robert Millan <rmh@aybabtu.com>
14812 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14813 (PKGDATA): Add $(pkgdata_SRCDIR).
14814 (pkglib_BUILDDIR): New variable.
14815 (pkgdata_SRCDIR): New variable.
14816 (build_env.mk): New target.
14817 (include_DATA): New variable.
14818 (install-local): Install $(include_DATA) files in $(includedir).
14820 2008-11-07 Pavel Roskin <proski@gnu.org>
14822 * gendistlist.sh: Use C locale for sorting to ensure consistent
14823 output on all systems.
14825 * util/grub.d/00_header.in: Remove incorrect space before
14828 2008-11-07 Robert Millan <rmh@aybabtu.com>
14830 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14832 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14833 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14834 (based on find_multi_boot1_header).
14835 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14836 using find_multi_boot2_header(), and abort if neither Multiboot or
14837 Multiboot headers were found.
14839 2008-11-07 Robert Millan <rmh@aybabtu.com>
14841 Modularize at_keyboard.mod:
14843 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14844 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14845 (at_keyboard_mod_LDFLAGS): New variables.
14847 Actual terminal split:
14849 * include/grub/term.h (struct grub_term): Split in ...
14850 (struct grub_term_input): ... this, and ...
14851 (struct grub_term_output): ... this. Update all users.
14852 (grub_term_set_current): Split in ...
14853 (grub_term_set_current_input): ... this, and ...
14854 (grub_term_set_current_output): ... this.
14855 (grub_term_get_current): Split in ...
14856 (grub_term_get_current_input): ... this, and ...
14857 (grub_term_get_current_output): ... this.
14858 (grub_term_register): Split in ...
14859 (grub_term_register_input): ... this, and ...
14860 (grub_term_register_output): ... this.
14861 (grub_term_unregister): Split in ...
14862 (grub_term_unregister_input): ... this, and ...
14863 (grub_term_unregister_output): ... this.
14864 (grub_term_iterate): Split in ...
14865 (grub_term_iterate_input): ... this, and ...
14866 (grub_term_iterate_output): ... this.
14868 * kern/term.c (grub_term_list): Split in ...
14869 (grub_term_list_input): ... this, and ...
14870 (grub_term_list_output): ... this. Update all users.
14871 (grub_cur_term): Split in ...
14872 (grub_cur_term_input): ... this, and ...
14873 (grub_cur_term_output): ... this. Update all users.
14874 (grub_term_set_current): Split in ...
14875 (grub_term_set_current_input): ... this, and ...
14876 (grub_term_set_current_output): ... this.
14877 (grub_term_get_current): Split in ...
14878 (grub_term_get_current_input): ... this, and ...
14879 (grub_term_get_current_output): ... this.
14880 (grub_term_register): Split in ...
14881 (grub_term_register_input): ... this, and ...
14882 (grub_term_register_output): ... this.
14883 (grub_term_unregister): Split in ...
14884 (grub_term_unregister_input): ... this, and ...
14885 (grub_term_unregister_output): ... this.
14886 (grub_term_iterate): Split in ...
14887 (grub_term_iterate_input): ... this, and ...
14888 (grub_term_iterate_output): ... this.
14890 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14891 a check for input and one for output (and only attempt to get keys
14892 from user when input works).
14894 * util/grub-probe.c (grub_term_get_current): Split in ...
14895 (grub_term_get_current_input): ... this, and ...
14896 (grub_term_get_current_output): ... this.
14897 * util/grub-fstest.c: Likewise.
14898 * util/i386/pc/grub-setup.c: Likewise.
14899 * util/grub-editenv.c: Likewise.
14901 Portability adjustments:
14903 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14904 `term/i386/pc/at_keyboard.c'.
14905 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14906 grub_keyboard_controller_init() (now handled by terminal .init).
14907 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14908 grub_at_keyboard_init().
14909 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14910 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14911 at_keyboard.mod via input terminal interface).
14912 * include/grub/i386/coreboot/console.h: Convert into a stub for
14913 `<grub/i386/pc/console.h>'.
14915 Migrate full terminals to new API:
14917 * term/efi/console.c (grub_console_term): Split into ...
14918 (grub_console_term_input): ... this, and ...
14919 (grub_console_term_output): ... this. Update all users.
14920 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14921 (grub_ofconsole_init): Split into ...
14922 (grub_ofconsole_init_input): ... this, and ...
14923 (grub_ofconsole_init_output): ... this.
14924 (grub_ofconsole_term): Split into ...
14925 (grub_ofconsole_term_input): ... this, and ...
14926 (grub_ofconsole_term_output): ... this. Update all users.
14927 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14928 (grub_serial_term_input): ... this, and ...
14929 (grub_serial_term_output): ... this. Update all users.
14930 * term/i386/pc/console.c (grub_console_term): Split into ...
14931 (grub_console_term_input): ... this, and ...
14932 (grub_console_term_output): ... this. Update all users.
14933 (grub_console_term_input): Only enable it on PC/BIOS platform.
14934 (grub_console_init): Remove grub_keyboard_controller_init() call.
14936 Migrate input terminals to new API:
14938 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14939 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14940 i386-specific anyway).
14941 (grub_console_checkkey): Rename to ...
14942 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14944 (grub_keyboard_controller_orig): New variable.
14945 (grub_console_getkey): Rename to ...
14946 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14948 (grub_keyboard_controller_init): Static-ize. Save original
14949 controller value so that it can be restored ...
14950 (grub_keyboard_controller_fini): ... here (new function).
14951 (grub_at_keyboard_term): New structure.
14952 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14955 Migrate output terminals to new API:
14957 * term/i386/pc/vga.c (grub_vga_term): Change type to
14958 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14959 members. Update all users.
14960 * term/gfxterm.c (grub_video_term): Change type to
14961 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14962 members. Update all users.
14963 * include/grub/i386/pc/console.h (grub_console_checkkey)
14964 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14967 Migrate `terminal' command and userland tools to new API:
14969 * commands/terminal.c (grub_cmd_terminal): Split into ...
14970 (grub_cmd_terminal_input): ... this, and ...
14971 (grub_cmd_terminal_output): ... this.
14972 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14973 `terminal_input' and `terminal_output'.
14974 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14975 `terminal_input' / `terminal_output' API.
14976 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14977 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14978 provided ${GRUB_TERMINAL}, convert it).
14980 2008-11-04 Robert Millan <rmh@aybabtu.com>
14982 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14984 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14986 2008-11-03 Bean <bean123ch@gmail.com>
14988 * kern/elf.c (grub_elf32_load): Revert to previous code.
14989 (grub_elf64_load): Likewise.
14991 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14993 2008-11-01 Robert Millan <rmh@aybabtu.com>
14995 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14996 (TARGET_CPPFLAGS): Likewise.
14997 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14999 2008-11-01 Carles Pina i Estany <carles@pina.cat>
15001 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15003 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15005 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15006 addition of objects until the code is not going to be able to fail.
15008 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15010 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15011 (add a missing NULL check, and correct them by moving the pointer
15012 operations after the actual check).
15014 2008-10-29 Robert Millan <rmh@aybabtu.com>
15016 * util/i386/pc/grub-install.in: Handle empty string as output from
15017 make_system_path_relative_to_its_root().
15019 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15021 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15022 circular metadata worst case scenario. If the metadata is circular
15023 then copy the wrap in place.
15024 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15025 project lib/format_text/layout.h
15026 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15028 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15030 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
15032 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15034 * util/update-grub_lib.in: Mention filename in warning message.
15036 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15038 * NEWS: Update for rename of update-grub to grub-mkconfig.
15040 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15042 * util/update-grub_lib.in: Copy to ...
15043 * util/grub-mkconfig_lib.in: ... this. Update all users.
15044 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
15045 * util/update-grub.in: Rename to ...
15046 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15047 option. Add `--output' option to allow users to specify the generated
15048 configuration file. Default to stdout.
15049 (update_grub_dir): Rename to ...
15050 (grub_mkconfig_dir): ... this.
15051 (grub_cfg): Default to an empty string.
15052 * conf/common.rmk (update-grub): Rename to ...
15053 (grub-mkconfig): ... this.
15054 (update-grub_lib): Copy to ...
15055 (grub-mkconfig_lib): ... this.
15056 (update-grub_SCRIPTS): Copy to ...
15057 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15058 (update-grub_DATA): Rename to ...
15059 (grub-mkconfig_DATA): ... this.
15061 2008-09-28 Robert Millan <rmh@aybabtu.com>
15063 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15064 to `modified'. Add the real `created' field.
15065 (grub_iso9660_uuid): Use `modified' rather than `created' for
15066 constructing the UUID.
15068 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
15070 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15071 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15073 2008-09-28 Bean <bean123ch@gmail.com>
15075 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15076 Thanks to Christian Franke for finding this bug.
15078 2008-09-25 Robert Millan <rmh@aybabtu.com>
15080 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15081 instances of grub_util_get_disk_name() (see previous commit).
15083 2008-09-25 Robert Millan <rmh@aybabtu.com>
15085 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15086 `util/i386/get_disk_name.c'.
15087 * conf/i386-efi.rmk: Likewise.
15088 * conf/x86_64-efi.rmk: Likewise.
15089 * conf/i386-coreboot.rmk: Likewise.
15090 * conf/i386-ieee1275.rmk: Likewise.
15091 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15092 `util/ieee1275/get_disk_name.c'.
15093 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15094 * util/ieee1275/get_disk_name.c: Remove file.
15095 * util/i386/get_disk_name.c: Remove file.
15096 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15097 "hd%d" for device.map entries, rather than using
15098 grub_util_get_disk_name().
15100 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15102 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15104 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15106 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15108 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15110 (GRUB_TERM_PPAGE): Changed to 0x4900.
15112 2008-09-24 Robert Millan <rmh@aybabtu.com>
15114 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15115 macros (they were i386-pc specific).
15116 * include/grub/sparc64/ieee1275/console.h: Likewise.
15117 * include/grub/efi/console.h: Likewise.
15119 2008-09-22 Bean <bean123ch@gmail.com>
15121 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15122 resident and in attribute list.
15124 * include/grub/ntfs.h (BMP_LEN): Removed.
15126 2008-09-22 Bean <bean123ch@gmail.com>
15128 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15129 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15131 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15132 error occurs, as grub_disk_open will call grub_disk_close, which will
15133 call p->close (scsi).
15135 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15137 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15138 (AC_PREREQ): Bumped to 2.59.
15139 (AC_TRY_COMPILE): Replace obsolete macro with ...
15140 (AC_COMPILE_IFELSE): ... this.
15141 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15142 (AC_LINK_IFELSE): ... this.
15144 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15146 * autogen.sh: Add a call to `gendistlist.sh'.
15148 2008-09-19 Christian Franke <franke@computer.org>
15150 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15151 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15152 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15153 Export __enable_execute_stack() to modules.
15154 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15157 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15159 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15162 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15164 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15165 #include <grub/util/hostdisk.h>.
15167 2008-09-08 Robert Millan <rmh@aybabtu.com>
15169 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15170 segments when their filesz is zero (grub_file_read() interprets
15171 zero-size as "read until EOF", which results in memory corruption).
15172 Use `lowest_segment' rather than 0 for calculating the current
15173 segment load address.
15175 2008-09-08 Robert Millan <rmh@aybabtu.com>
15177 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15178 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15179 clobbered useful information.
15181 2008-09-08 Robert Millan <rmh@aybabtu.com>
15183 * include/grub/util/biosdisk.h: Move to ...
15184 * include/grub/util/hostdisk.h: ... here. Update all users.
15185 * util/biosdisk.c: Move to ...
15186 * util/hostdisk.c: ... here. Update all users.
15188 2008-09-07 Robert Millan <rmh@aybabtu.com>
15190 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15192 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15193 and length can be stored directly in the `mbi->mmap_addr' and
15194 `mbi->mmap_length' struct fields.
15196 2008-09-07 Robert Millan <rmh@aybabtu.com>
15198 * conf/i386.rmk: New file. Provides declaration for building
15200 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15201 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15203 Include `conf/i386.mk'.
15204 * conf/i386-efi.rmk: Likewise.
15205 * conf/x86_64-efi.rmk: Likewise.
15206 * conf/i386-coreboot.rmk: Likewise.
15207 * conf/i386-ieee1275.rmk: Likewise.
15209 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15211 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15212 Adds optimization support for BGR based modes.
15214 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15215 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15216 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15217 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15218 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15219 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15220 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15221 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15222 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15223 (grub_video_i386_vbeblit_index_index): Likewise.
15224 (grub_video_i386_vbeblit_replace_directN): Added.
15225 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15226 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15227 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15228 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15229 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15230 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15231 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15232 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15233 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15234 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15235 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15236 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15237 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15239 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15240 (grub_video_i386_vbefill_R8G8B8): Likewise.
15241 (grub_video_i386_vbefill_index): Likewise.
15242 (grub_video_i386_vbefill_direct32): Added.
15243 (grub_video_i386_vbefill_direct24): Likewise.
15244 (grub_video_i386_vbefill_direct16): Likewise.
15245 (grub_video_i386_vbefill_direct8): Likewise.
15247 * include/grub/video.h (grub_video_blit_format): Removed
15248 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15249 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15250 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15251 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15252 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15254 * video/video.c (grub_video_get_blit_format): Updated to use new
15255 blit formats. Added handling for 16 bit color modes.
15257 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15259 (common_blitter): Updated to use new blitters.
15261 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15263 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15264 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15265 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15266 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15267 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15268 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15269 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15270 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15271 (grub_video_i386_vbeblit_index_index): Likewise.
15272 (grub_video_i386_vbeblit_replace_directN): Added.
15273 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15274 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15275 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15276 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15277 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15278 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15279 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15280 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15281 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15282 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15283 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15284 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15285 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15287 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15288 (grub_video_i386_vbefill_R8G8B8): Likewise.
15289 (grub_video_i386_vbefill_index): Likewise.
15290 (grub_video_i386_vbefill_direct32): Added.
15291 (grub_video_i386_vbefill_direct24): Likewise.
15292 (grub_video_i386_vbefill_direct16): Likewise.
15293 (grub_video_i386_vbefill_direct8): Likewise.
15295 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15298 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15301 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15304 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15307 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15309 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15312 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15314 * fs/iso9660.c (grub_iso9660_date): New structure.
15315 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15316 (grub_iso9660_uuid): New function.
15318 2008-09-05 Bean <bean123ch@gmail.com>
15320 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15322 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15323 insensitive bit for names in Win32 and Win32 & DOS namespace.
15325 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15327 * include/grub/types.h (LONG_MAX): Likewise.
15329 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15331 * util/getroot.c: Include <config.h>.
15332 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15333 add support for /dev/md/N devices and handle LVM double dash escaping.
15335 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15337 * config.guess: Update to latest version from config git.
15338 * config.sub: Likewise.
15340 2008-09-03 Robert Millan <rmh@aybabtu.com>
15342 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15343 `disk->total_sectors'.
15345 2008-09-01 Colin D Bennett <colin@gibibit.com>
15347 * include/grub/normal.h: Fixed incorrect comment for
15348 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15350 2008-09-01 Colin D Bennett <colin@gibibit.com>
15352 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15353 values with defines.
15355 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15356 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15357 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15358 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15359 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15360 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15361 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15362 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15363 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15364 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15365 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15366 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15367 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15368 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15369 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15370 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15371 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15372 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15373 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15375 2008-08-31 Robert Millan <rmh@aybabtu.com>
15377 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15379 (grub_multiboot): Fix a few warnings.
15381 2008-08-31 Robert Millan <rmh@aybabtu.com>
15383 * loader/i386/pc/multiboot.c: Update comment not to say that
15384 boot_device support is unimplemented.
15386 2008-08-31 Robert Millan <rmh@aybabtu.com>
15388 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15389 or memory map support are unimplemented.
15391 2008-08-31 Colin D Bennett <colin@gibibit.com>
15393 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15395 2008-08-31 Colin D Bennett <colin@gibibit.com>
15397 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15398 total video memory in 'vbeinfo' output; show color format details for
15401 2008-08-30 Pavel Roskin <proski@gnu.org>
15403 * util/genmoddep.c: Remove for real this time.
15404 * DISTLIST: Remove util/genmoddep.c.
15406 2008-08-30 Robert Millan <rmh@aybabtu.com>
15408 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15409 as required by Multiboot spec (it was already 4-byte aligned, but
15412 2008-08-29 Pavel Roskin <proski@gnu.org>
15414 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15415 * kern/powerpc/ieee1275/startup.S: ... this.
15416 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15417 * DISTLIST: Likewise.
15419 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15420 grub/cpu/kernel.h. Add start label for consistency with other
15421 platforms. Add grub_prefix immediately after start. Add jump
15422 to the code after grub_prefix.
15423 * include/grub/powerpc/kernel.h: Provide valid values for
15424 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15426 2008-08-29 Bean <bean123ch@gmail.com>
15428 * configure.ac: Change host_os to cygwin for mingw.
15429 (asprintf): New check for function.
15431 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15432 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15434 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15435 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15436 sync, sleep and grub_util_get_disk_size for mingw.
15438 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15439 to get size in mingw.
15440 (open_device): Use flag O_BINARY if it's defined.
15441 (find_root_device): Add dummy code for mingw.
15443 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15444 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15445 (get_scsi_disk_name): Return 0 for mingw.
15447 * util/hostfs.c: #include <grub/util/misc.h>.
15448 (grub_hostfs_open): Use "rb" flag to open file, use
15449 grub_util_get_disk_size to get disk size for mingw.
15451 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15452 (asprintf): New function if HAVE_ASPRINTF is not set.
15453 (sync): New function for mingw.
15455 (grub_util_get_disk_size): Likewise.
15457 2008-08-28 Pavel Roskin <proski@gnu.org>
15459 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15462 2008-08-28 Robert Millan <rmh@aybabtu.com>
15464 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15466 2008-08-28 Robert Millan <rmh@aybabtu.com>
15468 Change find_grub_drive() syntax so it doesn't prevent it from
15469 detecting NULL names as errors.
15471 * util/biosdisk.c (find_grub_drive): Move free slot search code
15473 (find_free_slot): ... to here.
15474 (read_device_map): Use find_free_slot() to search for free slots.
15476 2008-08-27 Marco Gerards <marco@gnu.org>
15478 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15479 (scsi_mod_SOURCES): New variable.
15480 (scsi_mod_CFLAGS): Likewise
15481 (scsi_mod_LDFLAGS): Likewise.
15483 * disk/scsi.c: New file.
15485 * include/grub/scsi.h: Likewise.
15487 * include/grub/scsicmd.h: Likewise.
15489 * disk/ata.c: Include <grub/scsi.h>.
15490 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15492 (grub_ata_iterate): Skip ATAPI devices.
15493 (grub_ata_open): Only handle ATAPI devices.
15494 (struct grub_atapi_read): Removed.
15495 (grub_atapi_readsector): Likewise.
15496 (grub_ata_read): No longer handle ATAPI devices.
15497 (grub_ata_write): Likewise.
15498 (grub_atapi_iterate): New function.
15499 (grub_atapi_read): Likewise.
15500 (grub_atapi_write): Likewise.
15501 (grub_atapi_open): Likewise.
15502 (grub_atapi_close): Likewise.
15503 (grub_atapi_dev): New variable.
15504 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15505 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15507 * include/grub/disk.h (enum grub_disk_dev_id): Add
15508 `GRUB_DISK_DEVICE_SCSI_ID'.
15510 2008-08-26 Robert Millan <rmh@aybabtu.com>
15512 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15513 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15516 2008-08-23 Bean <bean123ch@gmail.com>
15518 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15519 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15520 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15521 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15523 (raid5rec_mod_SOURCES): New macro.
15524 (raid5rec_mod_CFLAGS): Likewise.
15525 (raid5rec_mod_LDFLAGS): Likewise.
15526 (raid6rec_mod_SOURCES): Likewise.
15527 (raid6rec_mod_CFLAGS): Likewise.
15528 (raid6rec_mod_LDFLAGS): Likewise.
15529 (mdraid_mod_SOURCES): Likewise.
15530 (mdraid_mod_CFLAGS): Likewise.
15531 (mdraid_mod_LDFLAGS): Likewise.
15532 (dm_nv_mod_SOURCES): Likewise.
15533 (dm_nv_mod_CFLAGS): Likewise.
15534 (dm_nv_mod_LDFLAGS): Likewise.
15536 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15537 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15538 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15540 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15541 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15543 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15545 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15547 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15551 * disk/raid5_recover.c: New file.
15553 * disk/raid6_recover.c: Likewise.
15555 * disk/mdraid_linux.c: Likewise.
15557 * disk/dmraid_nvidia.c: Likewise.
15559 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15562 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15563 calculate the size of raid device.
15564 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15565 different layout of raid5.
15566 (grub_raid_scan_device): Remove code specific to mdraid.
15567 (grub_raid_list): New variable.
15568 (free_array): New function.
15569 (grub_raid_register): Likewise.
15570 (grub_raid_unregister): Likewise.
15571 (grub_raid_rescan): Likewise.
15572 (GRUB_MOD_INIT): Don't iterate device here.
15573 (GRUB_MOD_FINI): Use free_array to release resource.
15575 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15576 (grub_raid5_recover_func_t): New function variable type.
15577 (grub_raid6_recover_func_t): Likewise.
15578 (grub_raid5_recover_func): New variable.
15579 (grub_raid6_recover_func): Likewise.
15580 (grub_raid_register): New function.
15581 (grub_raid_unregister): Likewise.
15582 (grub_raid_rescan): Likewise.
15583 (grub_raid_block_xor): Likewise.
15585 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15586 (CMD_CRC): New macro.
15588 (read_file): Handle device as well as file.
15589 (cmd_crc): New function.
15590 (fstest): Handle multiple disks.
15591 (options): Remove part, raw and long, add root and diskcount.
15592 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15593 (main): Find the first non option entry and ignore subsequent options,
15594 add handling for the new options, support multiple disks.
15596 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15598 2008-08-23 Bean <bean123ch@gmail.com>
15600 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15602 * genfslist.sh: Ignore kernel.mod.
15604 * genpartmaplist.sh: Likewise.
15606 2008-08-23 Robert Millan <rmh@aybabtu.com>
15608 * util/getroot.c (find_root_device): Skip anything that starts with
15609 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15611 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15613 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15614 * util/grub.d/00_header.in: Allow the administrator to change default
15615 gfxmode via ${GRUB_GFXMODE}.
15617 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15619 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15621 2008-08-21 Robert Millan <rmh@aybabtu.com>
15623 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15625 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15626 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15628 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15630 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15631 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15633 2008-08-19 Robert Millan <rmh@aybabtu.com>
15635 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15636 (struct grub_virtual_screen): Remove `cursor_color'.
15637 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15639 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15641 2008-08-18 Robert Millan <rmh@aybabtu.com>
15643 Unify (identical) linux_normal.c files.
15644 * loader/i386/efi/linux_normal.c: Move from here ...
15645 * loader/linux_normal.c: ... to here. Update all users.
15646 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15647 * loader/i386/ieee1275/linux_normal.c: Likewise.
15649 2008-08-18 Robert Millan <rmh@aybabtu.com>
15651 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15652 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15653 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15654 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15655 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15657 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15658 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15659 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15660 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15661 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15662 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15663 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15664 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15665 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15666 portably using grub_getxy().
15667 Replace `-EFI' with `-bzImage' in boot message.
15669 2008-08-17 Robert Millan <rmh@aybabtu.com>
15671 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15673 2008-08-17 Robert Millan <rmh@aybabtu.com>
15675 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15677 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15678 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15679 (grub_machine_mmap_iterate): New function declaration.
15680 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15682 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15685 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15686 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15687 Move e820 parsing from here ...
15688 * kern/i386/pc/mmap.c: New file.
15689 (grub_machine_mmap_iterate): ... to here.
15691 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15692 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15693 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15694 (grub_available_iterate): Redeclare to return `void', and redeclare
15695 its hook to use grub_uint64_t as addr and size parameters, and rename
15697 (grub_machine_mmap_iterate): ... this. Update all users.
15699 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15700 to make it more readable. Rename to ...
15701 (grub_machine_mmap_iterate): ... this.
15703 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15704 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15705 (grub_multiboot): Allocate an extra region after the payload, and fill
15706 it with a Multiboot memory map. Adjust a.out loader to calculate size
15707 with the extra space.
15708 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15709 with the extra space.
15711 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15713 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15715 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15717 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15718 mdate-sh to the list `find' searches for.
15719 * DISTLIST: Regenerated.
15721 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15723 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15724 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15725 genmoddep.awk, gensymlist.sh.in.
15726 (DISTDIRS): Add bus, docs, hook, lib.
15727 * DISTLIST: Regenerated.
15728 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15730 2008-08-16 Robert Millan <rmh@aybabtu.com>
15732 * disk/raid.c (grub_raid_init): Handle/report errors set by
15733 grub_device_iterate().
15734 * disk/lvm.c (grub_lvm_init): Likewise.
15736 2008-08-15 Bean <bean123ch@gmail.com>
15738 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15740 (datetime_mod_SOURCES): New macro.
15741 (datetime_mod_CFLAGS): Likewise.
15742 (datetime_mod_LDFLAGS): Likewise.
15743 (date_mod_SOURCES): Likewise.
15744 (date_mod_CFLAGS): Likewise.
15745 (date_mod_LDFLAGS): Likewise.
15746 (datehook_mod_SOURCES): Likewise.
15747 (datehook_mod_CFLAGS): Likewise.
15748 (datehook_mod_LDFLAGS): Likewise.
15750 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15752 (datetime_mod_SOURCES): New macro.
15753 (datetime_mod_CFLAGS): Likewise.
15754 (datetime_mod_LDFLAGS): Likewise.
15755 (date_mod_SOURCES): Likewise.
15756 (date_mod_CFLAGS): Likewise.
15757 (date_mod_LDFLAGS): Likewise.
15758 (datehook_mod_SOURCES): Likewise.
15759 (datehook_mod_CFLAGS): Likewise.
15760 (datehook_mod_LDFLAGS): Likewise.
15762 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15764 (datetime_mod_SOURCES): New macro.
15765 (datetime_mod_CFLAGS): Likewise.
15766 (datetime_mod_LDFLAGS): Likewise.
15767 (date_mod_SOURCES): Likewise.
15768 (date_mod_CFLAGS): Likewise.
15769 (date_mod_LDFLAGS): Likewise.
15770 (datehook_mod_SOURCES): Likewise.
15771 (datehook_mod_CFLAGS): Likewise.
15772 (datehook_mod_LDFLAGS): Likewise.
15774 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15776 (datetime_mod_SOURCES): New macro.
15777 (datetime_mod_CFLAGS): Likewise.
15778 (datetime_mod_LDFLAGS): Likewise.
15779 (date_mod_SOURCES): Likewise.
15780 (date_mod_CFLAGS): Likewise.
15781 (date_mod_LDFLAGS): Likewise.
15782 (datehook_mod_SOURCES): Likewise.
15783 (datehook_mod_CFLAGS): Likewise.
15784 (datehook_mod_LDFLAGS): Likewise.
15786 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15788 (datetime_mod_SOURCES): New macro.
15789 (datetime_mod_CFLAGS): Likewise.
15790 (datetime_mod_LDFLAGS): Likewise.
15791 (date_mod_SOURCES): Likewise.
15792 (date_mod_CFLAGS): Likewise.
15793 (date_mod_LDFLAGS): Likewise.
15794 (datehook_mod_SOURCES): Likewise.
15795 (datehook_mod_CFLAGS): Likewise.
15796 (datehook_mod_LDFLAGS): Likewise.
15798 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15800 * commands/date.c: New file.
15802 * hook/datehook.c: Likewise.
15804 * include/grub/lib/datetime.h: Likewise.
15806 * include/grub/i386/cmos.h: Likewise.
15808 * lib/datetime.c: Likewise.
15810 * lib/i386/datetime.c: Likewise.
15812 * lib/efi/datetime.c: Likewise.
15814 2008-08-14 Robert Millan <rmh@aybabtu.com>
15816 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15817 (grub_mkelfimage_SOURCES): New variable.
15818 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15820 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15821 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15822 * conf/powerpc-ieee1275.rmk: Likewise.
15823 * conf/i386-ieee1275.rmk: Likewise.
15825 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15826 * kern/i386/coreboot/init.c: Likewise.
15828 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15829 with `<grub/cpu/kernel.h>'.
15830 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15832 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15833 * kern/i386/coreboot/startup.S: Likewise.
15835 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15836 (GRUB_MOD_GAP): Remove.
15837 * include/grub/powerpc/kernel.h: New file.
15838 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15839 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15840 * include/grub/i386/kernel.h: New file.
15841 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15842 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15843 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15845 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15847 Use --directory when invoking grub_mkimage.
15849 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15850 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15851 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15852 and GRUB_KERNEL_CPU_PREFIX.
15854 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15856 * include/grub/err.h (grub_err_printf): New function prototype.
15857 * util/misc.c (grub_err_printf): New function.
15858 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15860 * kern/err.c (grub_print_error): Use grub_err_printf.
15862 2008-08-13 Robert Millan <rmh@aybabtu.com>
15864 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15866 2008-08-13 Robert Millan <rmh@aybabtu.com>
15868 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15871 2008-08-12 Robert Millan <rmh@aybabtu.com>
15873 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15874 of the relocation code from here ...
15875 (grub_multiboot): ... to here.
15876 (forward_relocator, backward_relocator): Move from here ...
15877 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15878 (grub_multiboot_backward_relocator): ... to here.
15879 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15880 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15881 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15882 (grub_multiboot_forward_relocator_end)
15883 (grub_multiboot_backward_relocator)
15884 (grub_multiboot_backward_relocator_end): New variables.
15886 2008-08-12 Bean <bean123ch@gmail.com>
15888 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15890 2008-08-11 Robert Millan <rmh@aybabtu.com>
15892 * kern/i386/linuxbios/startup.S: Move from here ...
15893 * kern/i386/coreboot/startup.S: ... to here.
15895 * kern/i386/linuxbios/init.c: Move from here ...
15896 * kern/i386/coreboot/init.c: ... to here.
15898 * kern/i386/linuxbios/table.c: Move from here ...
15899 * kern/i386/coreboot/mmap.c: ... to here.
15901 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15903 2008-08-11 Robert Millan <rmh@aybabtu.com>
15905 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15906 errors. Leave it to the upper layer to handle them.
15908 2008-08-09 Christian Franke <franke@computer.org>
15910 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15911 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15912 Install `grub.d/10_windows' only on Cygwin.
15913 * configure.ac: Add subst of `target_os'.
15914 Check `target_os' also before setting TARGET_OBJ2ELF.
15915 Add `--enable-grub-pe2elf'.
15917 2008-08-08 Robert Millan <rmh@aybabtu.com>
15919 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15920 (grub_last_time): Change type to grub_uint64_t.
15921 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15922 (grub_disk_close): Likewise.
15924 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15925 (run_menu): Migrate code from to using grub_get_time_ms().
15927 * util/misc.c (grub_get_time_ms): New function.
15929 2008-08-08 Marco Gerards <marco@gnu.org>
15931 * disk/ata.c (grub_ata_regget): Change return type to
15933 (grub_ata_regget2): Likewise.
15934 (grub_ata_wait_status): New function.
15935 (grub_ata_wait_busy): Removed function, updated all users to use
15936 `grub_ata_wait_status'.
15937 (grub_ata_wait_drq): Likewise.
15938 (grub_ata_cmd): New function.
15939 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15941 (grub_ata_pio_write): Add error handling.
15942 (grub_atapi_identify): Likewise.
15943 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15945 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15946 handling. Actually use the detected registers. Reorder the
15947 detection logic such that it is easier to read.
15948 (grub_ata_pciinit): Do not assign the same ID to each controller.
15949 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15951 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15953 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15955 2008-08-08 Marco Gerards <marco@gnu.org>
15959 2008-08-07 Bean <bean123ch@gmail.com>
15961 * include/grub/x86_64/pci.h: New file.
15963 2008-08-07 Christian Franke <franke@computer.org>
15965 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15966 (TIMER2_GATE): Likewise.
15967 (grub_pit_wait): Add enable/disable of the timer2 gate
15968 bit of port 0x61. This fixes a possible infinite loop.
15970 2008-08-07 Bean <bean123ch@gmail.com>
15972 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15973 kern/i386/tsc.c and kern/i386/pit.c.
15975 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15978 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15981 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15983 2008-08-07 Bean <bean123ch@gmail.com>
15985 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15987 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15989 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15990 multiple inclusion. Add #include <grub/types.h>.
15992 2008-08-06 Christian Franke <franke@computer.org>
15994 * conf/common.rmk: Build and install `10_windows'.
15995 * util/grub.d/10_windows.in: New script.
15997 2008-08-06 Pavel Roskin <proski@gnu.org>
15999 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16001 2008-08-06 Robert Millan <rmh@aybabtu.com>
16003 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16004 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16006 2008-08-06 Bean <bean123ch@gmail.com>
16008 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16009 (grub_pxefs_fs_int): Remove dummy definition.
16010 (grub_pxefs_open): Use data->block_size to store the current block
16012 (grub_pxefs_read): Use block size stored in data->block_size. As the
16013 value of grub_pxe_blksize can be changed after the file is opened.
16015 2008-08-06 Bean <bean123ch@gmail.com>
16017 * fs/i386/pc/pxe.c (curr_file): new variable.
16018 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16019 require the dummy internal file system anymore.
16020 (grub_pxefs_read): Removed.
16021 (grub_pxefs_close): Likewise.
16022 (grub_pxefs_fs_int): Likewise.
16023 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16024 connection when we switch file.
16025 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16027 2008-08-06 Robert Millan <rmh@aybabtu.com>
16029 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16031 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16032 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16034 * kern/i386/halt.c: New file.
16035 * kern/i386/reboot.c: Likewise.
16036 * include/grub/i386/reboot.h: Likewise.
16037 * include/grub/i386/halt.h: Likewise.
16039 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16040 Include `<grub/cpu/halt.h>'.
16041 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16042 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16044 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16045 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16046 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16047 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16048 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16049 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16051 * include/grub/i386/at_keyboard.h: ... to here.
16053 2008-08-05 Robert Millan <rmh@aybabtu.com>
16055 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16056 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16057 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16058 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16059 `kern/generic/millisleep.c'.
16061 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16062 instead of grub_get_rtc().
16063 (grub_tsc_init): Initialize `tsc_boot_time'.
16065 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16066 (grub_machine_init): Use grub_tsc_init() rather than
16067 installing an RTC-based handler via grub_install_get_time_ms().
16069 * kern/i386/pit.c: New file.
16070 * include/grub/i386/pit.h: Likewise.
16072 2008-08-05 Bean <bean123ch@gmail.com>
16074 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16076 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16077 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16078 (pxe_mod_SOURCES): New macro.
16079 (pxe_mod_CFLAGS): Likewise.
16080 (pxe_mod_LDFLAGS): Likewise.
16081 (pxecmd_mod_SOURCES): Likewise.
16082 (pxecmd_mod_CFLAGS): Likewise.
16083 (pxecmd_mod_LDFLAGS): Likewise.
16085 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16086 (grub_pxe_call): Likewise.
16088 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16090 * commands/i386/pc/pxecmd.c: New file.
16092 * fs/i386/pc/pxe.c: Likewise.
16094 * include/grub/i386/pc/pxe.h: Likewise.
16096 2008-08-05 Bean <bean123ch@gmail.com>
16098 * util/console.c (grub_console_cur_color): New variable.
16099 (grub_console_standard_color): Likewise.
16100 (grub_console_normal_color): Likewise.
16101 (grub_console_highlight_color): Likewise.
16102 (color_map): Likewise.
16103 (use_color): Likewise.
16104 (NUM_COLORS): New macro.
16105 (grub_ncurses_setcolorstate): Handle color properly.
16106 (grub_ncurses_setcolor): Don't change color here, just remember the
16107 settings, color will be set in grub_ncurses_setcolorstate.
16108 (grub_ncurses_getcolor): New function.
16109 (grub_ncurses_init): Initialize color pairs.
16110 (grub_ncurses_term): New member grub_ncurses_getcolor.
16112 2008-08-05 Colin D Bennett <colin@gibibit.com>
16114 High resolution timer support. Implemented for x86 CPUs using TSC.
16115 Extracted generic grub_millisleep() so it's linked in only as needed.
16116 This requires a Pentium compatible CPU; if the RDTSC instruction is
16117 not supported, then it falls back on the generic grub_get_time_ms()
16118 implementation that uses the machine's RTC.
16120 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16121 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16122 `kern/generic/millisleep.c'.
16124 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16125 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16127 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16128 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16130 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16132 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16133 `kern/generic/millisleep.c'.
16135 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16137 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16139 * kern/generic/rtc_get_time_ms.c: New file.
16141 * kern/generic/millisleep.c: New file.
16143 * kern/misc.c: Don't include
16144 <kern/time.h> anymore.
16145 (grub_millisleep_generic): Removed.
16147 * commands/sleep.c (grub_interruptible_millisleep): Uses
16148 grub_get_time_ms() instead of grub_get_rtc().
16150 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16152 (grub_cpu_is_cpuid_supported): New inline function.
16153 (grub_cpu_is_tsc_supported): New inline function.
16154 (grub_tsc_init): New function prototype.
16155 (grub_tsc_get_time_ms): New function prototype.
16157 * kern/i386/tsc.c (grub_get_time_ms): New file.
16159 * include/grub/time.h: Include <grub/types.h.
16160 (grub_millisleep_generic): Removed.
16161 (grub_get_time_ms): New prototype.
16162 (grub_install_get_time_ms): New prototype.
16163 (grub_rtc_get_time_ms): New prototype.
16165 * kern/time.c (grub_get_time_ms): New function.
16166 (grub_install_get_time_ms): New function.
16168 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16169 <grub/time.h> anymore.
16170 (grub_millisleep): Removed.
16171 (grub_machine_init): Call grub_tsc_init.
16173 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16174 get_time_ms() implementation.
16176 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16177 (ieee1275_get_time_ms): New function.
16178 (grub_machine_init): Install get_time_ms() implementation.
16180 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16181 (grub_machine_init): Call grub_tsc_init().
16182 (grub_millisleep): Removed.
16184 * kern/ieee1275/init.c (grub_millisleep): Removed.
16185 (grub_machine_init): Install ieee1275_get_time_ms()
16187 (ieee1275_get_time_ms): New function.
16188 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16191 2008-08-05 Marco Gerards <marco@gnu.org>
16193 * disk/ata.c: Include <grub/pci.h>.
16194 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16195 (grub_ata_initialize): Rewritten.
16196 (grub_ata_device_initialize): New function.
16198 2008-08-04 Pavel Roskin <proski@gnu.org>
16200 * kern/main.c: Include grub/mm.h.
16202 2008-08-04 Robert Millan <rmh@aybabtu.com>
16204 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16205 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16206 corruption problem).
16208 2008-08-04 Robert Millan <rmh@aybabtu.com>
16210 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16211 warnings introduced in my last commit.
16213 2008-08-03 Robert Millan <rmh@aybabtu.com>
16215 Make PCI available on all i386 architectures.
16217 * include/grub/i386/pc/pci.h: Move from here ...
16218 * include/grub/i386/pci.h: ... to here.
16220 * include/grub/i386/pc/pci.h: Remove.
16221 * include/grub/i386/efi/pci.h: Remove.
16222 * include/grub/x86_64/efi/pci.h: Remove.
16224 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16225 `<grub/cpu/pci.h>'.
16227 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16228 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16229 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16231 * conf/i386-ieee1275.rmk: Likewise.
16233 2008-08-03 Robert Millan <rmh@aybabtu.com>
16235 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16236 (grub_console_setcursor): Make it possible to set cursor off.
16238 2008-08-03 Robert Millan <rmh@aybabtu.com>
16240 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16241 of modules instead of assuming which platform provides what.
16242 * util/update-grub.in: Likewise.
16244 2008-08-03 Robert Millan <rmh@aybabtu.com>
16246 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16247 instead of `grub_install_dos_part' to determine whether a drive needs
16248 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16249 because it can be overridden when loading GRUB via Multiboot).
16251 2008-08-02 Robert Millan <rmh@aybabtu.com>
16253 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16255 2008-08-02 Robert Millan <rmh@aybabtu.com>
16257 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16258 of informational grub_dprintf() calls.
16260 2008-08-02 Robert Millan <rmh@aybabtu.com>
16262 * disk/memdisk.c (memdisk_size): Don't initialize.
16263 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16265 * include/grub/i386/pc/kernel.h
16266 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16267 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16268 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16269 (grub_arch_memdisk_size): Remove.
16271 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16272 field (was only used to transfer a constant). Add `type' field to
16273 support multiple module types.
16274 (grub_module_iterate): New function.
16276 * kern/device.c (grub_device_open): Do not hide error messages
16277 when grub_disk_open() fails. Use grub_print_error() instead.
16279 * kern/i386/pc/init.c (grub_arch_modules_addr)
16280 (grub_arch_memdisk_size): Remove functions.
16281 (grub_arch_modules_addr): Return the module address in high memory
16282 (now that it isn't copied anymore).
16284 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16285 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16286 decompression routine (grub_total_module_size already includes that
16287 now). Don't copy modules back to low memory.
16289 * kern/main.c: Include `<grub/mm.h>'.
16290 (grub_load_modules): Split out (and use) ...
16291 (grub_module_iterate): ... this function, which iterates through
16292 module objects and runs a hook.
16293 Comment out grub_mm_init_region() call, as it would cause non-ELF
16294 modules to be overwritten.
16296 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16297 the memdisk image in its own region, make it part of the module list.
16298 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16299 (main): Parse --memdisk|-m option, and pass user-provided path as
16300 parameter to generate_image().
16301 (add_segments): Pass `memdisk_path' down to load_modules().
16302 (load_modules): Embed memdisk image in module section when requested.
16303 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16304 `header.type' instead of `header.offset'.
16306 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16307 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16308 (memdisk_mod_LDFLAGS): New variables.
16309 * conf/i386-coreboot.rmk: Likewise.
16310 * conf/i386-ieee1275.rmk: Likewise.
16312 2008-08-02 Robert Millan <rmh@aybabtu.com>
16314 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16315 (backward_relocator): New variables. Used to allocate and relocate
16316 the payload, respectively.
16317 (grub_multiboot_load_elf32): Load into heap instead of requested
16318 address, install the appropriate relocator code in each bound of
16319 the payload, and set the entry point such that
16320 grub_multiboot_real_boot() will jump to one of them.
16322 * kern/i386/loader.S (grub_multiboot_payload_size)
16323 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16324 (grub_multiboot_payload_entry_offset): New variables.
16325 (grub_multiboot_real_boot): Set cpu context to what the relocator
16326 expects, and jump to the relocator instead of the payload.
16328 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16329 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16330 (grub_multiboot_payload_entry_offset): Export.
16332 2008-08-01 Bean <bean123ch@gmail.com>
16334 * normal/menu_entry.c (editor_getline): Don't return the original
16335 string as result, as it will be released by lexer once it has done
16338 2008-08-01 Robert Millan <rmh@aybabtu.com>
16340 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16341 within menuentries, not before them.
16342 util/grub.d/10_hurd.in: Likewise.
16344 2008-08-01 Bean <bean123ch@gmail.com>
16346 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16347 (bufio_mod_SOURCES): New macro.
16348 (bufio_mod_CFLAGS): Likewise.
16349 (bufio_mod_LDFLAGS): Likewise.
16351 * include/grub/bufio.h: New file.
16353 * io/bufio.c: Likewise.
16355 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16356 (grub_video_reader_png): Use grub_buffile_open to open file.
16358 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16359 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16361 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16362 (grub_video_reader_tga): Use grub_buffile_open to open file.
16364 * font/manager.c: Include <grub/bufio.h>.
16365 (add_font): Use grub_buffile_open to open file.
16367 2008-07-31 Robert Millan <rmh@aybabtu.com>
16369 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16370 ELF segments, use a macro for arbitrarily accessing any of them instead
16371 of preparing a pointer that allows access to one at a time.
16372 (grub_multiboot_load_elf64): Likewise.
16374 2008-07-31 Bean <bean123ch@gmail.com>
16376 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16377 GRUB_KERNEL_MACHINE_DATA_END.
16379 2008-07-30 Robert Millan <rmh@aybabtu.com>
16381 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16382 Increase from 0x50 to 0x60.
16383 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16384 use UUIDs to identify the root drive for them. If that's not
16386 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16387 check, for cross-disk installs.
16389 2008-07-30 Robert Millan <rmh@aybabtu.com>
16391 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16392 is non-empty, use it to set the `prefix' environment variable instead
16393 of the usual approach.
16394 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16395 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16396 environment variable instead of dummy make_install_device().
16398 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16399 (start): Insert a data section, with `grub_prefix' variable.
16400 * kern/i386/linuxbios/startup.S: Likewise.
16402 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16403 New variable reference.
16404 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16405 New macro. Defines offset of `grub_prefix' within startup.S (relative
16407 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16408 section within startup.S (relative to `start').
16409 * include/grub/i386/coreboot/kernel.h: Likewise.
16411 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16412 Overwrite grub_prefix with its contents, at the beginning of the
16414 (main): Understand -p|--prefix.
16416 2008-07-30 Robert Millan <rmh@aybabtu.com>
16418 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16420 2008-07-30 Robert Millan <rmh@aybabtu.com>
16422 * term/i386/pc/vga_text.c (grub_console_cls): Use
16423 grub_console_gotoxy() to go back to beginning of the screen.
16424 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16426 2008-07-29 Christian Franke <franke@computer.org>
16428 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16429 Add conversion of emulated mount points on Cygwin.
16431 2008-07-29 Christian Franke <franke@computer.org>
16433 * util/update-grub.in: Add a check for admin
16435 Remove old `grub.cfg.new' before creation.
16436 Add `-f' to `mv' to handle the different filesystem
16437 semantics of Windows.
16439 2008-07-29 Bean <bean123ch@gmail.com>
16441 * normal/main.c (get_line): Fix buffer overflow bug.
16443 2008-07-28 Robert Millan <rmh@aybabtu.com>
16445 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16446 (struct grub_apple_header): New struct. Describes the layout of
16447 the partmap header.
16448 (apple_partition_map_iterate): Check the header magic as well as the
16449 partition magic (which was already being checked).
16451 2008-07-28 Pavel Roskin <proski@gnu.org>
16453 * genmk.rb: Add a warning to the beginning of the output that
16454 it's a generated file and should not be edited.
16456 2008-07-28 Robert Millan <rmh@aybabtu.com>
16458 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16459 with the same number are found, just use issue a warning with
16460 grub_dprintf(), as this error has been reported to be non-fatal.
16462 2008-07-27 Robert Millan <rmh@aybabtu.com>
16464 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16467 2008-07-27 Bean <bean123ch@gmail.com>
16469 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16470 (grub_fat_find_dir): Ignore case when comparing filename.
16472 2008-07-27 Bean <bean123ch@gmail.com>
16474 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16475 smallino, as it's more descriptive, and i8count can be confused with
16476 the other field count.
16477 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16480 2008-07-27 Bean <bean123ch@gmail.com>
16482 * commands/crc.c: New file.
16484 * lib/crc.c: Likewise.
16486 * include/grub/lib/crc.h: Likewise.
16488 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16490 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16491 (hexdump): Move this function to ...
16493 * lib/hexdump.c: ... here.
16495 * include/grub/hexdump.h: Renamed to ...
16497 * include/grub/lib/hexdump.h: ... this.
16499 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16501 * util/grub-editenv.c: Likewise.
16503 * include/envblk.h: Renamed to ...
16505 * include/lib/envblk.h: ... this.
16507 * util/envblk.c: Renamed to ...
16509 * lib/envblk.c: ... this.
16511 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16513 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16514 (pkglib_MODULES): Add crc.mod.
16515 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16516 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16517 (crc_mod_SOURCES): New macro.
16518 (crc_mod_CFLAGS): Likewise.
16519 (crc_mod_LDFLAGS): Likewise.
16521 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16523 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16525 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16529 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16531 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16533 * commands/help.c: Include <grub/term.h>.
16534 (TERM_WIDTH): Removed. Updated all users.
16536 2008-07-27 Pavel Roskin <proski@gnu.org>
16538 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16539 spurious warnings about a comment within a comment.
16541 2008-07-25 Robert Millan <rmh@aybabtu.com>
16543 * util/getroot.c (find_root_device): Skip devices that match
16544 /dev/dm-[0-9]. This lets the real device be found for any type of
16545 abstraction (LVM, EVMS, RAID..).
16546 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16547 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16548 device is found first, find_root_device() will now skip it.
16550 2008-07-24 Pavel Roskin <proski@gnu.org>
16552 * include/grub/types.h: Use __builtin_bswap32() and
16553 __builtin_bswap64() with gcc 4.3 and newer.
16555 2008-07-24 Christian Franke <franke@computer.org>
16557 * util/i386/pc/grub-install.in: If `--debug' is specified,
16558 pass `--verbose' to grub-setup.
16559 Abort script if make_system_path_relative_to_its_root() fails.
16561 2008-07-24 Bean <bean123ch@gmail.com>
16563 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16564 variable `target_platform' should be `platform'.
16566 2008-07-24 Bean <bean123ch@gmail.com>
16568 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16569 (grub_png_init_fixed_block): New function.
16570 (grub_png_decode_image_data): Handle fixed huffman code compression.
16572 2008-07-24 Bean <bean123ch@gmail.com>
16574 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16575 (grub_pe2elf_SOURCES): New macro.
16576 (CLEANFILES): Add grub-pe2elf.
16578 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16579 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16580 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16581 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16582 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16583 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16584 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16585 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16586 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16587 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16588 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16589 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16590 (GRUB_PE32_DT_FUNCTION): Likewise.
16591 (GRUB_PE32_REL_I386_DIR32): Likewise.
16592 (GRUB_PE32_REL_I386_REL32): Likewise.
16593 (grub_pe32_symbol): New structure.
16594 (grub_pe32_reloc): Likewise.
16596 * util/grub-pe2elf.c: New file.
16598 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16599 start symbol in non pc platform.
16601 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16603 The following patches are from Christian Franke.
16605 * include/grub/dl.h: Remove .previous, gas supports this only
16608 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16609 Remove .type, gas supports this only for ELF format.
16611 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16612 nullbytes in symbol table. This fixes an infinite loop if table is
16615 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16616 TARGET_IMG_LDFLAGS and EXEEXT.
16618 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16619 TARGET_IMG_LDFLAGS_AC.
16620 (grub_CHECK_STACK_ARG_PROBE): New function.
16622 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16624 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16626 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16627 to set TARGET_IMG_LD* accordingly.
16628 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16629 Add call to grub_CHECK_STACK_ARG_PROBE.
16630 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16632 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16634 * genmk.rb: Add EXEEXT to CLEANFILES.
16636 2008-07-23 Robert Millan <rmh@aybabtu.com>
16638 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16639 define the codes for arrows and lines used for the menu).
16640 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16643 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16644 fonts, because the latter are too slow.
16646 2008-07-21 Bean <bean123ch@gmail.com>
16648 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16649 a20. Run keyboard test last, as it will cause macbook to halt.
16651 2008-07-18 Pavel Roskin <proski@gnu.org>
16653 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16654 load foreign architecture modules correctly anyway. Keep
16655 support for loading host architecture modules, whether we
16656 compile them or not.
16658 2008-07-17 Pavel Roskin <proski@gnu.org>
16660 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16661 change target_cpu. The compiler default can mismatch target_cpu
16664 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16665 * kern/efi/efi.c: Likewise.
16667 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16668 target compiler is functional.
16669 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16672 * configure.ac: Default to efi platform for x86_64-apple. Allow
16673 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16674 adjustments from the rest, only do them if target is not
16675 explicitly given. Merge other adjustments with the final sanity
16676 check. Remove an extraneous check for supported CPU. Be
16677 specific which CPU and which platform is not supported.
16679 * configure.ac: Default to pc platform for x86_64.
16681 2008-07-17 Robert Millan <rmh@aybabtu.com>
16683 Partial LinuxBIOS -> Coreboot rename.
16685 * conf/i386-linuxbios.rmk: Renamed to ...
16686 * conf/i386-coreboot.rmk: ... this.
16687 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16688 * configure.ac: Accept "coreboot" as input platform (but maintain
16689 compatibility with "linuxbios").
16690 * include/grub/i386/linuxbios: Renamed to ...
16691 * include/grub/i386/coreboot: ... this.
16693 2008-07-17 Bean <bean123ch@gmail.com>
16695 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16696 (appleldr_mod_SOURCE): New variable.
16697 (appleldr_mod_CFLAGS): Likewise.
16698 (appleldr_mod_LDFLAGS): Likewise.
16699 (pci_mod_SOURCES): Likewise.
16700 (pci_mod_CFLAGS): Likewise.
16701 (pci_mod_LDFLAGS): Likewise.
16702 (lspci_mod_SOURCES): Likewise.
16703 (lspci_mod_CFLAGS): Likewise.
16704 (lspci_mod_LDFLAGS): Likewise.
16706 * conf/x86_64-efi.rmk: New file.
16708 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16710 (grub_efidisk_write): Likewise.
16712 * include/efi/api.h (efi_call_0): New macro.
16713 (efi_call_1): Likewise.
16714 (efi_call_2): Likewise.
16715 (efi_call_3): Likewise.
16716 (efi_call_4): Likewise.
16717 (efi_call_5): Likewise.
16718 (efi_call_6): Likewise.
16720 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16721 grub_rescue_cmd_chainloader.
16723 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16724 (grub_pe32_optional_header): Change some fields based on i386 or
16726 (GRUB_PE32_PE32_MAGIC): Likewise.
16728 * include/grub/efi/uga_draw.h: New file.
16730 * include/grub/elf.h (STN_ABS): New constant.
16731 (R_X86_64_NONE): Relocation constant for x86_64.
16732 (R_X86_64_64): Likewise.
16733 (R_X86_64_PC32): Likewise.
16734 (R_X86_64_GOT32): Likewise.
16735 (R_X86_64_PLT32): Likewise.
16736 (R_X86_64_COPY): Likewise.
16737 (R_X86_64_GLOB_DAT): Likewise.
16738 (R_X86_64_JUMP_SLOT): Likewise.
16739 (R_X86_64_RELATIVE): Likewise.
16740 (R_X86_64_GOTPCREL): Likewise.
16741 (R_X86_64_32): Likewise.
16742 (R_X86_64_32S): Likewise.
16743 (R_X86_64_16): Likewise.
16744 (R_X86_64_PC16): Likewise.
16745 (R_X86_64_8): Likewise.
16746 (R_X86_64_PC8): Likewise.
16748 * include/grub/i386/efi/pci.h: New file.
16750 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16751 Change it value based on platform.
16752 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16753 (GRUB_E820_RAM): Likewise.
16754 (GRUB_E820_RESERVED): Likewise.
16755 (GRUB_E820_ACPI): Likewise.
16756 (GRUB_E820_NVS): Likewise.
16757 (GRUB_E820_EXEC_CODE): Likewise.
16758 (GRUB_E820_MAX_ENTRY): Likewise.
16759 (grub_e820_mmap): New structure.
16760 (linux_kernel_header): Change the efi field according to different
16761 kernel version, also field from linux_kernel_header.
16763 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16765 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16766 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16767 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16768 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16769 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16770 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16771 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16772 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16773 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16774 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16776 * include/grub/x86_64/efi/kernel.h: New file.
16778 * include/grub/x86_64/efi/loader.h: Likewise.
16780 * include/grub/x86_64/efi/machine.h: Likewise.
16782 * include/grub/x86_64/efi/pci.h: Likewise.
16784 * include/grub/x86_64/efi/time.h: Likewise.
16786 * include/grub/x86_64/linux.h: Likewise.
16788 * include/grub/x86_64/setjmp.h: Likewise.
16790 * include/grub/x86_64/time.h: Likewise.
16792 * include/grub/x86_64/types.h: Likewise.
16794 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16795 GRUB_TARGET_SIZEOF_VOID_P.
16797 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16798 (grub_efi_locate_handle): Likewise.
16799 (grub_efi_open_protocol): Likewise.
16800 (grub_efi_set_text_mode): Likewise.
16801 (grub_efi_stall): Likewise.
16802 (grub_exit): Likewise.
16803 (grub_reboot): Likewise.
16804 (grub_halt): Likewise.
16805 (grub_efi_exit_boot_services): Likewise.
16806 (grub_get_rtc): Likewise.
16808 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16809 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16810 (grub_efi_allocate_pages): Wrap efi calls.
16811 (grub_efi_free_pages): Wrap efi calls.
16812 (grub_efi_get_memory_map): Wrap efi calls.
16814 * kern/x86_64/dl.c: New file.
16816 * kern/x86_64/efi/callwrap.S: Likewise.
16818 * kern/x86_64/efi/startup.S: Likewise.
16820 * loader/efi/appleloader.c: Likewise.
16822 * loader/efi/chainloader.c (cmdline): New variable.
16823 (grub_chainloader_unload): Wrap efi calls.
16824 (grub_chainloader_boot): Likewise.
16825 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16828 * loader/efi/chainloader_normal.c (chainloader_command):
16829 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16832 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16834 (grub_e820_add_region): New function.
16835 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16837 (grub_find_video_card): New function.
16838 (grub_linux_setup_video): New function.
16839 (grub_rescue_cmd_linux): Probe for video information.
16841 * normal/x86_64/setjmp.S: New file.
16843 * term/efi/console.c (map_char): New function.
16844 (grub_console_putchar): Map unicode char.
16845 (grub_console_checkkey): Wrap efi calls.
16846 (grub_console_getkey): Likewise.
16847 (grub_console_getwh): Likewise.
16848 (grub_console_gotoxy): Likewise.
16849 (grub_console_cls): Likewise.
16850 (grub_console_setcolorstate): Likewise.
16851 (grub_console_setcursor): Likewise.
16853 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16855 2008-07-16 Pavel Roskin <proski@gnu.org>
16857 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16860 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16861 pointer, not an integer. This fixes a warning and prevents
16862 precision loss on 64-bit systems.
16863 (relocate_addresses): Remove unneeded cast.
16865 2008-07-15 Pavel Roskin <proski@gnu.org>
16867 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16869 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16871 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16872 Fix comparison between signed and unsigned.
16874 * include/grub/i386/ieee1275/console.h: Declare
16875 grub_console_init() and grub_console_fini().
16877 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16878 It's empty and unused.
16880 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16881 beginning to avoid warnings with some compilers.
16883 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16884 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16886 2008-07-14 Pavel Roskin <proski@gnu.org>
16888 * kern/env.c (grub_register_variable_hook): Don't copy empty
16889 string, it leaks memory. Pass "" to grub_env_set(), it should
16890 handle constant strings.
16892 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16893 * commands/cmp.c (grub_cmd_cmp): Likewise.
16894 * kern/dl.c (grub_dl_flush_cache): Likewise.
16895 (grub_dl_load_core): Likewise.
16896 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16897 (grub_elf64_load_phdrs): Likewise.
16899 2008-07-13 Pavel Roskin <proski@gnu.org>
16901 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16902 between signed and unsigned.
16903 (LzmaEnc_Finish): Fix warning about an unused parameter.
16905 2008-07-13 Bean <bean123ch@gmail.com>
16907 * Makefile.in (enable_lzo): New rule.
16909 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16911 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16913 * boot/i386/pc/lnxboot.S: #include <config.h>.
16915 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16916 its value according to the compression algorithm used, lzo or lzma.
16918 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16919 compression algorithm according to configure macro.
16921 * kern/i386/pc/startup.S (codestart): Likewise.
16923 * kern/i386/pc/lzma_decode.S: New file.
16925 * include/grub/lib/LzFind.h: Likewise.
16927 * include/grub/lib/LzHash.h: Likewise.
16929 * include/grub/lib/LzmaDec.h: Likewise.
16931 * include/grub/lib/LzmaEnc.h: Likewise.
16933 * include/grub/lib/LzmaTypes.h: Likewise.
16935 * lib/LzFind.c: Likewise.
16937 * lib/LzmaDec.c: Likewise.
16939 * lib/LzmaEnc.c: Likewise.
16941 2008-07-13 Bean <bean123ch@gmail.com>
16943 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16944 (grub_ext4_extent_header): New structure.
16945 (grub_ext4_extent): Likewise.
16946 (grub_ext4_extent_idx): Likewise.
16947 (grub_ext4_find_leaf): New function.
16948 (grub_ext2_read_block): Handle extents.
16950 2008-07-12 Robert Millan <rmh@aybabtu.com>
16952 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16954 2008-07-11 Robert Millan <rmh@aybabtu.com>
16956 * util/grub.d/40_custom.in: New file. Example on how to add custom
16957 entries to /etc/grub.d.
16958 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16959 40_custom (implicitly, by merging all the grub.d rules).
16961 2008-07-11 Pavel Roskin <proski@gnu.org>
16963 * commands/read.c (grub_getline): Fix invalid memory access.
16964 Don't add newline to the variable value.
16966 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16967 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16968 (serial_hw_get_port): Check validity of the port number.
16969 (grub_cmd_serial): Check return value of serial_hw_get_port().
16971 2008-07-07 Pavel Roskin <proski@gnu.org>
16973 * boot/i386/pc/diskboot.S (notification_string): Replace
16974 "Loading kernel" with just "loading". This is shorter, less
16975 confusing and saves a few bytes for possible future changes.
16977 2008-07-05 Pavel Roskin <proski@gnu.org>
16979 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16980 size for ATAPI devices, they are undefined. Output sector
16981 number in decimal form.
16983 * disk/ata.c: Use named constants for status bits.
16985 2008-07-04 Pavel Roskin <proski@gnu.org>
16987 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16988 grub_addr_t before casting it to the void pointer to fix a
16989 warning. Non-addressable regions are discarded earlier.
16990 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16991 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16992 (check_signature): Don't shadow table_header.
16993 (grub_linuxbios_table_iterate): Cast numeric constants to
16994 grub_linuxbios_table_header_t.
16995 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16998 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
17001 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17002 pointer, which can cause warnings. Support 64-bit addresses.
17004 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17005 of sizeof(long). This fixes PowerPC image generation on x86_64.
17007 2008-07-04 Robert Millan <rmh@aybabtu.com>
17009 This fixes a performance issue when pc & gpt partmap iterators
17010 didn't abort iteration even after our hook found what it was
17011 looking for (often causing expensive probes of non-existent drives).
17013 Some callers relied on previous buggy behaviour, since they would
17014 raise an error when their own hooks caused early abortion of its
17017 * kern/device.c (grub_device_open): Improve error message.
17018 * disk/lvm.c (grub_lvm_open): Likewise.
17019 * disk/raid.c (grub_raid_open): Likewise.
17021 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17022 when hook requests it, independently of grub_errno.
17023 (pc_partition_map_probe): Do not fail when find_func() caused
17024 early abortion of pc_partition_map_iterate().
17026 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17027 when hook requests it, independently of grub_errno.
17028 (gpt_partition_map_probe): Do not fail when find_func() caused
17029 early abortion of gpt_partition_map_iterate().
17031 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17032 when hook requests it, independently of grub_errno. Do not fail when
17033 part_map_iterate_hook() caused early abortion of p->iterate().
17035 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17036 when grub_partition_iterate() returned with non-zero.
17038 2008-07-03 Pavel Roskin <proski@gnu.org>
17040 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17041 like we do in grub_ata_pio_read().
17042 (grub_ata_readwrite): Always write individual sectors. Fix the
17043 sector count for the remainder.
17044 (grub_ata_write): Enable writing to ATA devices. Correctly
17045 report error for ATAPI devices.
17047 2008-07-02 Pavel Roskin <proski@gnu.org>
17049 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17052 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17053 for every read sector, we already increment it for the whole
17054 batch. This fixes reading more than 256 sectors at once.
17056 * util/grub-editenv.c (cmd_info): Cast argument to long
17057 explicitly. ptrdiff_t reduces to int on i386.
17059 * util/grub-editenv.c (main): Be specific which parameter is
17062 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17063 (memdisk): Make memdisk_orig_addr a pointer.
17065 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17066 for file offsets, use grub_off_t instead. Fix printf format
17069 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17070 there. Real unexpected warnings should not drown in the noise
17071 about known problems.
17073 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17074 grub_disk_addr_t for memory addresses.
17076 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17077 explicitly to fix a warning.
17079 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17081 * Makefile.in (MODULE_LDFLAGS): New variable.
17082 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17083 the linker accepts --build-id=none.
17084 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17086 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17088 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17089 those in Linux XFS code. Provide a way to access 64-bit parent
17091 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17092 the end of struct grub_xfs_dir_header.
17094 2008-07-02 Bean <bean123ch@gmail.com>
17096 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17097 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17098 and GRUB_IEEE1275_FLAG_NO_ANSI.
17100 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17101 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17102 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17104 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17105 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17107 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17108 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17110 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17111 esc sequence on non ANSI terminal.
17112 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17114 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17117 2008-07-02 Bean <bean123ch@gmail.com>
17119 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17120 (grub_editenv_SOURCES): New variable.
17121 (pkglib_MODULES): Add loadenv.mod.
17122 (loadenv_mod_SOURCES): New variable.
17123 (loadenv_mod_CFLAGS): Likewise.
17124 (loadenv_mod_LDFLAGS): Likewise.
17126 * include/grub/envblk.h: New file.
17128 * util/envblk.c: New file.
17130 * util/grub-editenv.c: New file.
17132 * commands/loadenv.c: New file.
17134 2008-07-01 Pavel Roskin <proski@gnu.org>
17136 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17137 not unsigned char. This fixes warnings and is consistent with
17140 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17142 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17144 * term/tparm.c (analyze): Always set *popcount.
17146 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17147 cast to fix a warning.
17149 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17150 cast to suppress a warning.
17152 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17153 grub_fshelp_read_file() expects.
17155 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17156 write uuid as a 32-bit value in CPU byte order, so declare and
17159 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17160 long if the format specifier expects it.
17161 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17162 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17163 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17164 long to fix a warning.
17165 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17166 grub_dprintf() arguments to fix warnings.
17168 2008-06-30 Pavel Roskin <proski@gnu.org>
17170 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17171 install_bsd_part immediately before core.img is embedded or
17172 modified on disk. This fixes core.img verification if core.img
17173 cannot be embedded.
17175 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17176 core_path to calculate the blocklist.
17177 Patch from Javier Martín <lordhabbit@gmail.com>
17179 2008-06-29 Robert Millan <rmh@aybabtu.com>
17181 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17182 block to disk block.
17183 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17184 Patch from Niels Böhm <bitbucket@arcor.de>
17186 2008-06-29 Robert Millan <rmh@aybabtu.com>
17188 * util/update-grub_lib.in (font_path): Search for fonts in
17189 /boot/grub first, which is more likely to be readable (we aren't
17190 deciding where fonts live, just looking for them).
17192 2008-06-26 Pavel Roskin <proski@gnu.org>
17194 * util/biosdisk.c (read_device_map): Don't leave dead map
17195 entries for devices failing stat() check.
17197 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17198 core_path_dev for the core.img path on the target device.
17200 2008-06-26 Robert Millan <rmh@aybabtu.com>
17202 * disk/fs_uuid.c: New file.
17203 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17204 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17205 (fs_uuid_mod_LDFLAGS): New variables.
17206 * include/grub/disk.h (grub_disk_dev_id): Add
17207 `GRUB_DISK_DEVICE_UUID_ID'.
17208 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17209 implement iterate().
17211 2008-06-26 Robert Millan <rmh@aybabtu.com>
17213 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17214 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17215 Linux image includes no initrd.
17217 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17219 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17220 call to resolve the core image location that effectively appended the
17223 2008-06-21 Robert Millan <rmh@aybabtu.com>
17225 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17228 * util/grub.d/10_hurd.in: ... to here ...
17229 * util/grub.d/10_linux.in: ... and here.
17231 2008-06-19 Robert Millan <rmh@aybabtu.com>
17233 * kern/main.c (grub_main): Export `prefix' variable immediately
17234 after it has been set by grub_machine_set_prefix().
17236 2008-06-19 Robert Millan <rmh@aybabtu.com>
17238 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17239 search result when not saving to variable, not the other way around.
17240 When saving to variable, abort iteration as soon as a match is found.
17242 2008-06-19 Robert Millan <rmh@aybabtu.com>
17244 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17245 check for partition that provides /boot/grub. Its logic is flawed,
17246 as it prevents prepare_grub_to_access_device() from being called
17249 2008-06-19 Robert Millan <rmh@aybabtu.com>
17251 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17252 "insmod" command directly when abstraction modules are needed,
17253 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17254 since it had already been processed).
17256 2008-06-19 Pavel Roskin <proski@gnu.org>
17258 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17259 changed. This is needed in case GRUB_LIBDIR changes.
17260 * conf/i386-ieee1275.rmk: Likewise.
17261 * conf/i386-linuxbios.rmk: Likewise.
17262 * conf/i386-pc.rmk: Likewise.
17263 * conf/powerpc-ieee1275.rmk: Likewise.
17265 2008-06-18 Pavel Roskin <proski@gnu.org>
17267 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17268 kernel_elf_symlist.c to symlist.c for consistency with other
17269 architectures. Update all users.
17270 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17272 2008-06-18 Robert Millan <rmh@aybabtu.com>
17274 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17277 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17278 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17279 a RAID device, run setup() for all members independently on whether
17280 LVM abstraction is being used.
17281 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17282 If grub-mkimage has set `*install_dos_part == -2', don't override this
17284 Perform *install_dos_part adjustments independently on whether
17285 we're embedding or not.
17286 Clarify error message when image is too big for embedding.
17287 Remove duplicate *install_dos_part stanza.
17289 2008-06-17 Robert Millan <rmh@aybabtu.com>
17291 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17292 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17294 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17295 values in grub_ofconsole_normal_color and
17296 grub_ofconsole_highlight_color (they're not directly related to
17297 background and foreground).
17298 (grub_ofconsole_setcolorstate): Extract background and foreground
17299 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17301 2008-06-17 Robert Millan <rmh@aybabtu.com>
17303 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17304 /boot/grub for the check in last commit, not /boot (they could be
17305 different partitions).
17307 2008-06-16 Robert Millan <rmh@aybabtu.com>
17309 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17310 asked to setup access for the same partition that provides /boot,
17311 don't bother using UUIDs since our root already has the value we
17314 2008-06-16 Robert Millan <rmh@aybabtu.com>
17316 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17318 Patch from Sven Mueller <sven@debian.org>.
17320 2008-06-16 Robert Millan <rmh@aybabtu.com>
17322 * util/update-grub.in: Check for $EUID instead of $UID.
17323 Reported by Vincent Zweije.
17325 2008-06-16 Bean <bean123ch@gmail.com>
17327 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17328 (grub_ext2_read_block): Likewise.
17329 (grub_ext2_read_inode): Likewise.
17330 (grub_ext2_mount): Likewise.
17331 (grub_ext2_close): Likewise.
17332 (grub_ext3_get_journal): Removed.
17334 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17335 (grub_reiserfs_read_symlink): Likewise.
17336 (grub_reiserfs_mount): Likewise.
17337 (grub_reiserfs_open): Likewise.
17338 (grub_reiserfs_read): Likewise.
17339 (grub_reiserfs_close): Likewise.
17340 (grub_reiserfs_get_journal): Removed.
17342 * fs/fshelp.c (grub_fshelp_read): Removed.
17343 (grub_fshelp_map_block): Likewise.
17345 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17346 (grub_fshelp_journal): Likewise.
17347 (grub_fshelp_read): Likewise.
17348 (grub_fshelp_map_block): Likewise.
17350 2008-06-16 Pavel Roskin <proski@gnu.org>
17352 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17353 floating point anymore.
17354 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17356 2008-06-15 Pavel Roskin <proski@gnu.org>
17358 * commands/ls.c (grub_ls_list_files): Use integer calculations
17359 for human readable format, avoid floating point use.
17360 * kern/misc.c (grub_ftoa): Remove.
17361 (grub_vsprintf): Remove floating point support.
17363 2008-06-15 Robert Millan <rmh@aybabtu.com>
17365 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17367 Reported by Max Vozeler.
17369 2008-06-15 Robert Millan <rmh@aybabtu.com>
17371 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17372 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17374 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17375 the beginning of the prefix.
17377 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17378 It is assumed that if we have a memdisk, grub-mkimage has set
17379 grub_prefix to include the "(memdisk)" drive in it.
17381 2008-06-15 Robert Millan <rmh@aybabtu.com>
17383 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17384 Initialize keyboard controller after registering the terminal, so that
17385 grub_printf() can be called from grub_keyboard_controller_init().
17387 2008-06-15 Robert Millan <rmh@aybabtu.com>
17389 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17390 extent-btree which is written as big endian on disk.
17391 Reported by Alain Greppin <al@chilibi.org>.
17393 2008-06-14 Robert Millan <rmh@aybabtu.com>
17395 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17396 * util/i386/pc/grub-install.in (modules): Likewise.
17398 2008-06-13 Pavel Roskin <proski@gnu.org>
17400 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17402 2008-06-13 Bean <bean123ch@gmail.com>
17404 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17406 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17408 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17409 to indicate sparse block.
17411 2008-06-12 Pavel Roskin <proski@gnu.org>
17413 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17414 number, grub_fshelp_read() does it for us.
17416 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17417 linear disk read with journal translation.
17418 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17419 * include/grub/fshelp.h: Declare grub_fshelp_read().
17421 2008-06-09 Pavel Roskin <proski@gnu.org>
17423 * fs/minix.c (grub_minix_mount): Handle error reading
17426 2008-06-08 Robert Millan <rmh@aybabtu.com>
17428 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17429 don't append the RAID prefix afterwards.
17430 Reported by Clint Adams.
17432 2008-06-08 Robert Millan <rmh@aybabtu.com>
17434 Based on description from Pavel:
17435 * kern/disk.c (grub_disk_check_range): Rename to ...
17436 (grub_disk_adjust_range): ... this. Add a comment explaining the
17437 tasks performed by this function.
17439 2008-06-08 Robert Millan <rmh@aybabtu.com>
17441 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17442 `num_serial' (for consistency with other variables).
17443 (struct grub_ntfs_data): Add `uuid' member.
17444 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17445 (grub_ntfs_uuid): New function.
17446 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17448 2008-06-07 Pavel Roskin <proski@gnu.org>
17450 * util/biosdisk.c (open_device): Revert last change to the
17451 function, it broke installation. The sector needs to be
17452 different dependent on which device is opened.
17454 2008-06-06 Robert Millan <rmh@aybabtu.com>
17456 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17457 rest of GRUB, and breakage doesn't happen if its value were modified.
17459 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17460 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17461 a constant (same value).
17462 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17463 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17465 2008-06-06 Robert Millan <rmh@aybabtu.com>
17467 * util/biosdisk.c (open_device): Do not modify sector offset when
17468 accessing a partition. kern/disk.c already handles this for us.
17470 2008-06-06 Robert Millan <rmh@aybabtu.com>
17472 * util/grub-emu.c (grub_machine_init): Move code in this function from
17474 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17475 segfault in case grub_printf() is called).
17477 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17478 grub_probe. Update all users not to explicitly add it again.
17479 (grub_device): New variable; contains corresponding device for grubdir.
17480 (fs_module, partmap_module, devabstraction_module): Pass
17481 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17484 2008-06-05 Robert Millan <rmh@aybabtu.com>
17486 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17487 is found, print it (same layout as with labels).
17489 2008-06-04 Robert Millan <rmh@aybabtu.com>
17491 * util/biosdisk.c (get_drive): Rename to ...
17492 (find_grub_drive): ... this. Update all users.
17494 (get_os_disk): Rename to ...
17495 (convert_system_partition_to_system_disk): ... this. Update all users.
17497 (find_drive): Rename to ...
17498 (find_system_device): ... this. Update all users.
17500 2008-06-04 Robert Millan <rmh@aybabtu.com>
17502 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17503 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17504 (make_device_map): Likewise.
17506 2008-06-01 Robert Millan <rmh@aybabtu.com>
17508 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17509 before dereferencing it.
17511 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17512 union with fat12/fat16-specific ones. Add some new fields, including
17513 `num_serial' for both versions.
17514 (struct grub_fat_data): Add `uuid' member.
17515 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17516 names. Initialize `data->uuid' using `num_serial'.
17517 (grub_fat_uuid): New function.
17518 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17520 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17521 (grub_reiserfs_uuid): New function.
17522 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17525 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17526 (grub_xfs_uuid): New function.
17527 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17529 2008-06-01 Robert Millan <rmh@aybabtu.com>
17531 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17532 code that is backward compatible with pre-uuid search command.
17534 2008-05-31 Robert Millan <rmh@aybabtu.com>
17536 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17537 floppies after everything else, to ensure floppy drive isn't accessed
17538 unnecessarily (patch from Bean).
17540 2008-05-31 Robert Millan <rmh@aybabtu.com>
17542 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17543 not print device names when we were asked to set a variable.
17545 2008-05-31 Robert Millan <rmh@aybabtu.com>
17547 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17548 using "cursor-on" and "cursor-off" commands (understood at least by
17549 the Open Firmware flavour on OLPC).
17551 2008-05-31 Michael Gorven <michael@gorven.za.net>
17553 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17554 on and off sequences.
17556 2008-05-31 Robert Millan <rmh@aybabtu.com>
17558 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17559 * util/update-grub.in: Likewise.
17561 2008-05-30 Pavel Roskin <proski@gnu.org>
17563 * util/biosdisk.c (linux_find_partition): Simplify logic and
17564 make the code more universal. Keep special processing for
17565 devfs, but use a simple rule for all other devices. If the
17566 device ends with a number, append 'p' and the partition number.
17567 Otherwise, append only the partition number.
17569 2008-05-30 Robert Millan <rmh@aybabtu.com>
17571 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17572 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17573 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17574 the `root' parameter to Linux.
17576 2008-05-30 Robert Millan <rmh@aybabtu.com>
17578 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17579 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17580 --fs_uuid with --fs-uuid.
17581 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17582 all filesystems support them).
17584 2008-05-30 Robert Millan <rmh@aybabtu.com>
17586 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17587 grub_printf() flags, since we're printing in units of 2 bytes.
17589 2008-05-30 Robert Millan <rmh@aybabtu.com>
17591 * util/grub.d/00_header.in: Remove obsolete comment referencing
17592 convert_system_path_to_grub_path().
17593 * util/update-grub.in: Likewise.
17594 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17595 (convert_system_path_to_grub_path): Add a warning message explaining
17596 that this function is deprecated. Rely on is_path_readable_by_grub()
17597 for the readability checks.
17598 (font_path): Use is_path_readable_by_grub() for the readability
17599 check rather than convert_system_path_to_grub_path().
17601 2008-05-30 Robert Millan <rmh@aybabtu.com>
17603 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17604 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17605 converting it first.
17606 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17607 grub.cfg for access to font file, and afterwards call it again to set
17610 2008-05-30 Robert Millan <rmh@aybabtu.com>
17612 * commands/search.c (options): Add --fs_uuid option.
17613 (search_fs_uuid): New function.
17614 (grub_cmd_search): Fix --set argument passing.
17615 Use search_fs_uuid() when requested via --fs_uuid.
17616 (grub_search_init): Update help message.
17617 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17618 and redeclare it as an array of 16-bit words.
17619 (grub_ext2_uuid): New function.
17620 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17621 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17622 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17623 (GRUB_DEVICE_BOOT_UUID): New variables.
17624 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17625 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17627 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17628 just assume `root' variable has the right value.
17629 * util/grub.d/10_linux.in: Likewise.
17630 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17632 (main): Recognise `-t fs_uuid' argument.
17634 2008-05-30 Robert Millan <rmh@aybabtu.com>
17636 * util/biosdisk.c (map): Redefine structure to hold information
17637 about GRUB drive name.
17638 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17640 (call_hook): Remove.
17641 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17642 member. Assume drive has partitions.
17643 (grub_util_biosdisk_open): Access device names via `.device' struct
17645 (open_device): Likewise.
17646 (find_drive): Likewise.
17647 (read_device_map): Adjust map[] usage to match the new struct
17648 definition. Don't check for duplicates (still possible, but not cheap
17650 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17651 (make_device_name): Remove assumption of BIOS-like drive names.
17653 2008-05-30 Pavel Roskin <proski@gnu.org>
17655 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17656 compiling execute.c doesn't need grub_script.tab.h anymore.
17657 (normal/command.c_DEPENDENCIES): Likewise.
17658 (normal/function.c_DEPENDENCIES): Likewise.
17659 * conf/i386-ieee1275.rmk: Likewise.
17660 * conf/i386-linuxbios.rmk: Likewise.
17661 * conf/i386-pc.rmk: Likewise.
17662 * conf/powerpc-ieee1275.rmk: Likewise.
17663 * conf/sparc64-ieee1275.rmk: Likewise.
17665 2008-05-29 Pavel Roskin <proski@gnu.org>
17667 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17668 when scanning metadata for volume group name.
17670 * include/grub/script.h: Don't include grub_script.tab.h. It's
17671 a generated file, which may only be included from the files with
17672 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17673 use union YYSTYPE, as the later allows forward declaration.
17674 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17676 2008-05-29 Robert Millan <rmh@aybabtu.com>
17678 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17679 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17680 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17681 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17684 2008-05-29 Robert Millan <rmh@aybabtu.com>
17686 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17687 control key combinations.
17689 2008-05-29 Robert Millan <rmh@aybabtu.com>
17691 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17692 * util/ieee1275/grub-install.in: ... to here.
17693 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17694 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17695 (grub_install_SOURCES): Likewise.
17697 2008-05-29 Robert Millan <rmh@aybabtu.com>
17699 * fs/affs.c: Update copyright year.
17700 * fs/ext2.c: Likewise.
17701 * fs/fshelp.c: Likewise.
17702 * fs/hfsplus.c: Likewise.
17703 * fs/ntfs.c: Likewise.
17704 * fs/xfs.c: Likewise.
17705 * include/grub/fshelp.h: Likewise.
17706 * util/grub-mkdevicemap.c: Likewise.
17708 2008-05-28 Robert Millan <rmh@aybabtu.com>
17710 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17711 might need to be fatfs to support some firmware implementations
17714 2008-05-28 Robert Millan <rmh@aybabtu.com>
17716 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17718 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17719 (make_device_map): Likewise.
17721 2008-05-20 Bean <bean123ch@gmail.com>
17723 * fs/fshelp.c (grub_fshelp_map_block): New function.
17724 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17725 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17727 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17728 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17729 (grub_fshelp_journal): New structure.
17730 (grub_fshelp_map_block): New function prototype.
17731 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17732 (grub_fshelp_map_block): Likewise.
17734 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17735 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17736 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17737 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17738 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17739 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17740 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17741 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17742 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17743 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17744 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17745 (grub_ext2_sblock): New members for journal support.
17746 (grub_ext3_journal_header): New structure.
17747 (grub_ext3_journal_revoke_header): Likewise.
17748 (grub_ext3_journal_block_tag): Likewise.
17749 (grub_ext3_journal_sblock): Likewise.
17750 (grub_fshelp_node): New members logfile and journal.
17751 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17752 grub_fshelp_map_block to get real block number.
17753 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17755 (grub_ext2_read_inode): Likewise.
17756 (grub_ext3_get_journal): New function.
17757 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17758 (grub_ext2_close): Release memory used by journal.
17760 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17761 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17762 (grub_reiserfs_transaction_header): Renamed to
17763 grub_reiserfs_description_block, replace field data with real_blocks.
17764 (grub_reiserfs_commit_block): New structure.
17765 (grub_reiserfs_data): New member journal.
17766 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17768 (grub_reiserfs_read_symlink): Likewise.
17769 (grub_reiserfs_iterate_dir): Likewise.
17770 (grub_reiserfs_open): Likewise.
17771 (grub_reiserfs_read): Likewise.
17772 (grub_reiserfs_get_journal): New function.
17773 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17774 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17775 using grub_reiserfs_get_journal.
17776 (grub_reiserfs_close): Release memory used by journal.
17778 * fs/affs.c (grub_affs_read_block): Change block type to
17779 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17781 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17783 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17785 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17787 * fs/udf.c (grub_udf_read_block): Change block type to
17788 grub_disk_addr_t. Use type cast to avoid warning.
17790 * fs/xfs.c (grub_xfs_read_block): Likewise.
17792 2008-05-16 Christian Franke <franke@computer.org>
17794 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17795 to ensure that break with ESC will always work.
17796 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17797 Remove ESC from keyboard queue.
17799 2008-05-16 Christian Franke <franke@computer.org>
17801 * util/biosdisk.c: [__CYGWIN__] Add includes.
17802 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17803 (get_os_disk): Move variable declarations to OS specific
17804 parts to avoid warning.
17805 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17806 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17807 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17809 * util/getroot.c: [__CYGWIN__] Add includes.
17810 (strip_extra_slashes): Fix "/" case.
17811 [__CYGWIN__] (get_win32_path): New function.
17812 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17813 [__CYGWIN__] (find_root_device): Disable.
17814 [__CYGWIN__] (get_bootsec_serial): New function.
17815 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17816 [__linux__] (grub_guess_root_device): Add early returns to simplify
17818 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17819 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17820 check for Linux only.
17822 2008-05-15 Bean <bean123ch@gmail.com>
17824 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17825 keyboard hang problem in apple's intel mac.
17827 2008-05-09 Robert Millan <rmh@aybabtu.com>
17829 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17831 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17832 (make_device_map): Likewise.
17833 Reported by Aurelien Jarno <aurel32@debian.org>
17835 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17837 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17838 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17839 (make_device_map): Output entries for xvd type disks.
17841 2008-05-07 Robert Millan <rmh@aybabtu.com>
17843 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17845 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17846 (make_device_map): Likewise.
17847 Reported by Roland Dreier <rdreier@cisco.com>
17849 2008-05-07 Robert Millan <rmh@aybabtu.com>
17851 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17852 grub_strstr() call. Correct a few mistakes in failure path handling.
17854 2008-05-06 Robert Millan <rmh@aybabtu.com>
17856 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17857 Do not print a trailing slash (therefore, the root directory is an
17859 (convert_system_path_to_grub_path): Do not remove trailing slash
17860 from make_system_path_relative_to_its_root() output.
17862 * util/i386/pc/grub-install.in: Add trailing slash to output from
17863 make_system_path_relative_to_its_root().
17865 2008-05-06 Robert Millan <rmh@aybabtu.com>
17867 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17868 ensures that output lines aren't intermangled with those sent to
17869 stderr (via grub_util_info()).
17870 * util/grub-probe.c (grub_refresh): Likewise.
17871 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17873 2008-05-05 Christian Franke <franke@computer.org>
17875 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17876 Add Cygwin device names.
17877 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17878 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17879 (check_device): Return error instead of success on empty name.
17880 (make_device_map): Move label inside linux specific code to
17881 prevent compiler warning.
17883 2008-04-30 Robert Millan <rmh@aybabtu.com>
17885 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17886 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17888 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17890 2008-04-29 Robert Millan <rmh@aybabtu.com>
17892 * docs/grub.cfg: New file (example GRUB configuration).
17894 2008-04-26 Robert Millan <rmh@aybabtu.com>
17896 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17897 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17898 and `disk/ieee1275/nand.c'.
17900 2008-04-25 Bean <bean123ch@gmail.com>
17902 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17905 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17906 change the buffer size to 4096 for cdrom device.
17908 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17910 (_linux_mod_SOURCES): New variable.
17911 (_linux_mod_CFLAGS): Likewise.
17912 (_linux_mod_LDFLAGS): Likewise.
17913 (linux_mod_SOURCES): Likewise.
17914 (linux_mod_CFLAGS): Likewise.
17915 (linux_mod_LDFLAGS): Likewise.
17916 (nand_mod_SOURCES): Likewise.
17917 (nand_mod_CFLAGS): Likewise.
17918 (nand_mod_LDFLAGS): Likewise.
17920 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17921 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17922 type property. (nand device in olpc don't have this property)
17924 * include/grub/disk.h (grub_disk_dev_id): New macro
17925 GRUB_DISK_DEVICE_NAND_ID.
17927 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17928 function prototype.
17929 (grub_rescue_cmd_initrd): Likewise.
17931 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17932 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17933 ofw_cif_handler and ofw_idt, adjust padding number.
17935 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17936 GRUB_MACHINE_IEEE1275 is defined.
17938 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17939 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17941 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17942 on nested function heap_init.
17943 (grub_upper_mem): New variable for i386-ieee1275.
17944 (grub_get_extended_memory): New function for i386-ieee1275.
17945 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17947 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17948 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17951 * loader/i386/ieee1275/linux.c: New file.
17953 * loader/i386/ieee1275/linux_normal.c: New file.
17955 * disk/ieee1275/nand.c: New file.
17957 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17959 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17961 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17963 2008-04-18 Robert Millan <rmh@aybabtu.com>
17965 Restructures early code path on ieee1275 to unify grub_main() as
17966 the first C function that is executed in every platform.
17968 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17969 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17971 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17972 * kern/ieee1275/cmain.c (cmain): Rename to ...
17973 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17974 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17977 2008-04-18 Robert Millan <rmh@aybabtu.com>
17979 * util/update-grub.in: Fix syntax error when setting
17980 `GRUB_PRELOAD_MODULES'.
17981 Reported by Stephane Chazelas <stephane@artesyncp.com>
17983 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17985 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17986 section into account, newer toolchains generate unique build ids
17987 * configure.ac: remove the test for --build-id=none acceptance,
17988 we want build ids to be preserved
17989 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17990 far from other sections don't cause the raw binary images grow
17993 2008-04-15 Robert Millan <rmh@aybabtu.com>
17995 * disk/lvm.c: Update copyright year.
17996 * kern/misc.c: Likewise.
17998 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18000 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
18001 there is no memory left for physical volume name.
18003 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18005 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18006 volume name mapping to support bigger than 9 character names properly.
18008 2008-04-13 Robert Millan <rmh@aybabtu.com>
18010 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18011 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18013 2008-04-13 Christian Franke <franke@computer.org>
18015 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18016 to create a floppy emulation boot CD when non emulation mode
18018 Enable Joliet CD filesystem extension.
18020 2008-04-13 Robert Millan <rmh@aybabtu.com>
18022 * kern/misc.c (grub_strncat): Fix off-by-one error.
18023 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18025 * kern/env.c (grub_env_context_close): Clear current context, not
18027 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18029 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18031 2008-04-13 Robert Millan <rmh@aybabtu.com>
18033 Improve robustness when handling LVM.
18035 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
18036 (and leave `*p' unmodified).
18037 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18039 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18040 iterating through it.
18041 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18043 (grub_lvm_scan_device): Check the return value (and fail gracefully
18044 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18045 Don't assume `vg->pvs != NULL' when iterating through it.
18047 2008-04-13 Robert Millan <rmh@aybabtu.com>
18049 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18050 * genmk.rb (partmap): New variable.
18051 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18052 (#{partmap}): New target rule.
18053 * genpartmaplist.sh: New file.
18054 * Makefile.in (pkglib_DATA): Add partmap.lst.
18055 (partmap.lst): New target rule.
18056 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18057 modules (including all partition maps), instead of preloading them.
18059 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18061 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18062 `linux-boot-prober' (if installed) to detect other operating
18063 systems which are installed on the computer and add them to
18065 * conf/common.rmk: Build and install 30_os-prober.
18067 2008-04-12 Robert Millan <rmh@aybabtu.com>
18069 * kern/powerpc/ieee1275/init.c: Move from here ...
18070 * kern/ieee1275/init.c: ... to here. Update all users.
18072 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18073 * kern/ieee1275/cmain.c: ... to here. Update all users.
18075 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18076 * kern/ieee1275/openfw.c: ... to here. Update all users.
18078 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18079 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18081 2008-04-10 Pavel Roskin <proski@gnu.org>
18083 * configure.ac: Always use "_cv_" in cache variables for
18084 compatibility with Autoconf 2.62.
18086 2008-04-07 Robert Millan <rmh@aybabtu.com>
18088 Revert grub/machine/init.h addition by Pavel (since it breaks on
18089 i386-ieee1275 and others):
18090 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18091 * util/powerpc/ieee1275/misc.c: Likewise.
18093 2008-04-07 Robert Millan <rmh@aybabtu.com>
18095 * util/grub-probe.c (probe): Improve error message.
18097 2008-04-07 Robert Millan <rmh@aybabtu.com>
18099 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18100 (this prevents the presence of a bogus entry from ruining the whole
18103 2008-04-06 Pavel Roskin <proski@gnu.org>
18105 * util/biosdisk.c: Include grub/util/biosdisk.h.
18106 * util/grub-fstest.c (execute_command): Make static.
18107 * util/grub-mkdevicemap.c (check_device): Likewise.
18108 * util/i386/pc/misc.c: Include grub/machine/init.h.
18109 * util/powerpc/ieee1275/misc.c: Likewise.
18110 * util/lvm.c: Include grub/util/lvm.h.
18111 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18113 * util/raid.c: Include grub/util/raid.h.
18114 (grub_util_getdiskname): Make static.
18116 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18117 grub_hostfs_fini(), as they are called from grub_init_all() and
18118 grub_fini_all() respectively. This fixes an infinite loop in
18119 grub-fstest due to double registration of hostfs.
18120 Reported by Christian Franke <Christian.Franke@t-online.de>
18122 2008-04-05 Pavel Roskin <proski@gnu.org>
18124 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18125 all 8 functions. Otherwise, probe function 0 only.
18127 2008-04-04 Pavel Roskin <proski@gnu.org>
18129 * commands/lspci.c (grub_lspci_iter): Print the bus number
18132 * commands/lspci.c (grub_pci_classes): Fix typos.
18133 (grub_lspci_iter): Don't print func twice. Print vendor ID
18134 before device ID, as it's normally done.
18136 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18137 Fix signedness warnings.
18138 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18140 * util/ieee1275/get_disk_name.c: Include config.h so that
18141 _GNU_SOURCE is defined and getline() is declared. Mark an
18142 unused argument as such. Fix a signedness warning.
18144 2008-04-02 Pavel Roskin <proski@gnu.org>
18146 * genkernsyms.sh.in: Use more robust assignments for CC and
18147 srcdir. Quote srcdir.
18148 * gensymlist.sh.in: Likewise. Assert at the compile time that
18149 the symbol table is not empty.
18151 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18152 * fs/cpio.c (grub_cpio_read): Likewise.
18154 2008-04-01 Pavel Roskin <proski@gnu.org>
18156 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18157 * disk/host.c (grub_host_open): Likewise.
18158 * disk/loopback.c (grub_loopback_open): Likewise.
18159 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18160 disk->id as in disk/host.c, not a multi-character constant.
18162 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18163 later is obsolete, potentially dangerous and sets a bad example.
18164 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18165 * util/misc.c (grub_util_get_image_size): Likewise.
18167 * disk/loopback.c (options): Improve help for "--partitions".
18169 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18170 options to align them with the short options, e.g. "echo -e".
18172 2008-03-31 Bean <bean123ch@gmail.com>
18174 * video/reader/png.c (grub_png_data): New member is_16bit and
18176 (grub_png_decode_image_header): Detect 16 bit png image.
18177 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18178 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18179 (grub_video_reader_png): Release memory occupied by image_data.
18181 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18183 (grub_nfs_mount): Skip the test for sector per cluster.
18185 * include/grub/ntfs.h (MAX_SPC): Removed.
18187 2008-03-31 Bean <bean123ch@gmail.com>
18189 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18190 (grub_probe_SOURCES): Add fs/afs.c.
18191 (grub_fstest_SOURCES): Likewise.
18192 (afs_mod_SOURCES): New variable.
18193 (afs_mod_CFLAGS): Likewise.
18194 (afs_mod_LDFLAGS): Likewise.
18196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18197 (grub_emu_SOURCES): Likewise.
18199 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18201 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18203 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18207 * fs/afs.c: New file.
18209 2008-03-30 Pavel Roskin <proski@gnu.org>
18211 * disk/host.c: Include grub/misc.h to fix a warning.
18212 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18213 warnings about implicit declarations.
18215 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18217 * include/grub/i386/loader.h: Change declaration of
18218 grub_linux_boot() to match what grub_loader_set() expects.
18219 * util/getroot.c (grub_guess_root_device): Return const char* to
18221 * util/grub-probe.c (probe): Fix a warning about uninitialized
18222 abstraction_name variable.
18223 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18224 second argument as unused to fix a warning.
18226 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18227 missing grub_error() call.
18229 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18230 2.60 and newer uses it to define datadir.
18232 * commands/sleep.c: Fix warning about implicit declaration.
18233 * disk/memdisk.c: Likewise.
18234 * loader/aout.c: Likewise.
18235 * loader/i386/bsd_normal.c: Likewise.
18236 * util/grub-probe.c: Likewise.
18238 * commands/i386/cpuid.c (has_longmode): Make static.
18239 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18240 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18242 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18243 GDT. This is more robust, as %ds can change.
18244 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18245 calling real_to_prot().
18246 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18248 2008-03-28 Pavel Roskin <proski@gnu.org>
18250 * kern/i386/pc/startup.S: Assert that uncompressed functions
18251 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18252 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18253 code, as they push parts of the code (error handlers) beyond
18254 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18255 code as correctness and size.
18257 2008-03-28 Pavel Roskin <proski@gnu.org>
18259 * kern/i386/pc/startup.S
18260 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18261 data block address to the real mode, keep offset minimal. This
18262 works around a bug in AWARD BIOS on old Athlon systems, which
18263 makes CD detection hang.
18265 2008-03-26 Pavel Roskin <proski@gnu.org>
18267 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18269 * include/grub/normal.h: Add grub_parse_color_name_pair()
18272 2008-03-24 Bean <bean123ch@gmail.com>
18274 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18275 (cd_count): Removed.
18276 (cd_drive): New variable.
18277 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18278 (grub_biosdisk_call_hook): Likewise.
18279 (grub_biosdisk_iterate): Change cdrom detection method.
18280 (grub_biosdisk_open): Replace cd_start with cd_drive.
18281 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18282 detect cdrom device.
18284 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18286 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18287 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18288 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18289 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18290 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18291 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18292 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18293 (grub_biosdisk_cdrp): New structure.
18294 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18296 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18298 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18301 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18304 2008-03-20 Robert Millan <rmh@aybabtu.com>
18306 Remove 2 TiB limit in ata.mod.
18307 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18308 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18309 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18310 grub_uint64_t instead of grub_uint32_t.
18312 2008-03-05 Bean <bean123ch@gmail.com>
18314 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18315 (grub_multiboot): Set boot device.
18317 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18319 2008-03-02 Bean <bean123ch@gmail.com>
18321 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18324 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18326 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18329 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18332 * docs/fdl.texi: New file.
18334 * docs/mdate-sh: New file. Copied from gnulib.
18335 * docs/texinfo.tex: Likewise.
18337 * config.guess: Updated from gnulib.
18338 * install-sh: Likewise.
18340 2008-02-28 Robert Millan <rmh@aybabtu.com>
18342 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18343 (aout_mod_SOURCES): New variable.
18344 (aout_mod_CFLAGS): Likewise.
18345 (aout_mod_LDFLAGS): Likewise.
18347 * conf/i386-ieee1275.rmk: Likewise.
18349 2008-02-28 Robert Millan <rmh@aybabtu.com>
18351 * util/update-grub.in: Reorganise terminal validity check. Accept
18352 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18353 Based on suggestion by Franklin PIAT.
18355 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18357 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18359 * util/getroot.c (grub_util_check_block_device): New function that
18360 returns the given argument if it is a block device and returns NULL else.
18361 * util/grub-probe.c (argument_is_device): New variable.
18362 (probe): Promote device_name from a variable to an argument. Receive
18363 device_name from grub_util_check_block_device() if path is NULL and from
18364 grub_guess_root_device() else. Do not free() device_name anymore.
18365 (options): Introduce new parameter '-d, --device'.
18366 (main): Add description of the new parameter to the help screen.
18367 Rename path variable to argument. Set argument_is_device if the '-d'
18368 option is given. Pass argument to probe() depending on
18369 argument_is_device.
18371 2008-02-24 Bean <bean123ch@gmail.com>
18373 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18374 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18375 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18376 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18377 (GRUB_ISO9660_VOLDESC_END): Likewise.
18378 (grub_iso9660_primary_voldesc): New member escape.
18379 (grub_iso9660_data): New member joliet.
18380 (grub_iso9660_convert_string): New function.
18381 (grub_iso9660_mount): Detect joliet extension.
18382 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18383 (grub_iso9660_iso9660_label): Likewise.
18385 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18386 (grub_setup_SOURCES): Add fs/udf.c.
18387 (grub_fstest_SOURCES): Likewise.
18388 (udf_mod_SOURCES): New variable.
18389 (udf_mod_CFLAGS): Likewise.
18390 (udf_mod_LDFLAGS): Likewise.
18392 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18393 (grub_emu_SOURCES): Likewise.
18395 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18397 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18399 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18401 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18403 * fs/udf.c: New file.
18405 2008-02-24 Robert Millan <rmh@aybabtu.com>
18407 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18408 (normal/lexer.c_DEPENDENCIES): New variables.
18409 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18410 (normal/lexer.c_DEPENDENCIES): Likewise.
18411 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18412 (normal/lexer.c_DEPENDENCIES): Likewise.
18413 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18414 (normal/lexer.c_DEPENDENCIES): Likewise.
18415 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18416 (normal/lexer.c_DEPENDENCIES): Likewise.
18417 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18418 (normal/lexer.c_DEPENDENCIES): Likewise.
18420 2008-02-23 Robert Millan <rmh@aybabtu.com>
18422 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18423 since they were intended to be in hex. This didn't break previously
18424 because of a bug in gpt_partition_map_iterate() (see below).
18426 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18427 when checking the validity of GPT header.
18428 Remove `partno', since it always provides the same information as `i'.
18430 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18432 * include/grub/efi/time.h: Fix a wrong comment.
18434 2008-02-19 Pavel Roskin <proski@gnu.org>
18436 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18439 2008-02-19 Bean <bean123ch@gmail.com>
18441 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18442 (aout_mod_SOURCES): New variable.
18443 (aout_mod_CFLAGS): Likewise.
18444 (aout_mod_LDFLAGS): Likewise.
18445 (_bsd_mod_SOURCES): New variable.
18446 (_bsd_mod_CFLAGS): Likewise.
18447 (_bsd_mod_LDFLAGS): Likewise.
18448 (bsd_mod_SOURCES): New variable.
18449 (bsd_mod_CFLAGS): Likewise.
18450 (bsd_mod_LDFLAGS): Likewise.
18452 * include/grub/aout.h: New file.
18454 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18456 * include/grub/i386/bsd.h: New file.
18458 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18461 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18462 function is called, so that it's possible to change it inside the hook.
18463 (grub_elf64_load): Likewise.
18464 (grub_elf_file): Don't close the file if elf header is not found.
18465 (grub_elf_close): Close the file if grub_elf_file fails (The new
18466 grub_elf_file won't close it).
18467 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18468 (grub_elf64_size): Likewise.
18470 * kern/i386/loader.S (grub_unix_real_boot): New function.
18472 * loader/aout.c: New file.
18474 * loader/i386/bsd.c: New file.
18476 * loader/i386/bsd_normal.c: New file.
18478 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18480 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18481 can test other formats.
18483 2008-02-19 Robert Millan <rmh@aybabtu.com>
18485 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18486 (grub_gpt_partition_type_empty): Redefine with macro from
18487 `<grub/gpt_partition.h>'.
18488 (gpt_partition_map_iterate): Adjust partition type comparison.
18490 Export `entry' as partmap-specific `part.data' struct.
18491 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18493 * include/grub/gpt_partition.h (grub_gpt_header)
18494 (grub_gpt_partentry): ... to here (new file).
18496 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18498 (grub_gpt_partition_type_bios_boot): New const variable, defined
18499 with macro from `<grub/gpt_partition.h>'.
18501 (setup): Replace `first_start' with `embed_region', which keeps
18502 track of the embed region (and is partmap-agnostic).
18504 Replace find_first_partition_start() with find_usable_region(),
18505 which finds a usable region for embedding using partmap-specific
18506 knowledge (supports PC/MSDOS and GPT).
18508 Fix all assumptions that the embed region start at sector 1, using
18509 `embed_region.start' from now on. Similarly, use `embed_region.end'
18510 rather than `first_start' to calculate available size.
18512 In grub_util_info() message, replace "into after the MBR" with an
18513 indication of the specific sector our embed region starts at.
18515 2008-02-19 Robert Millan <rmh@aybabtu.com>
18517 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18518 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18519 `commands/reboot.c'.
18520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18521 (halt_mod_SOURCES): Likewise.
18522 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18523 (halt_mod_SOURCES): Likewise.
18525 2008-02-17 Christian Franke <franke@computer.org>
18527 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18529 2008-02-17 Robert Millan <rmh@aybabtu.com>
18531 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18532 set `first_start' to 0 for non-PC/MSDOS partition maps.
18534 2008-02-16 Robert Millan <rmh@aybabtu.com>
18536 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18537 do not assume partition map is PC/MSDOS before performing checks that
18538 are specific to that layout.
18540 2008-02-13 Robert Millan <rmh@aybabtu.com>
18542 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18543 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18544 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18546 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18548 * configure.ac: Only a cosmetic change on the handling of
18549 -fno-stack-protector.
18551 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18553 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18554 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18556 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18557 (halt_mod_SOURCES): New variable.
18558 (halt_mod_CFLAGS): Likewise.
18559 (halt_mod_LDFLAGS): Likewise.
18560 (reboot_mod_SOURCES): Likewise.
18561 (reboot_mod_CFLAGS): Likewise.
18562 (reboot_mod_LDFLAGS): Likewise.
18564 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18565 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18567 (halt_mod_SOURCES): Likewise.
18568 (reboot_mod_SOURCES): Likewise.
18570 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18571 commands/i386/pc/reboot.c by commands/reboot.c.
18572 (reboot_mod_SOURCES): Likewise.
18574 * commands/i386/pc/reboot.c: merge this file ...
18576 * commands/ieee1275/reboot.c: ... and this file ...
18578 * commands/reboot.c: ... to this file.
18579 Add some precompiler directive to include the correct header for
18582 * commands/ieee1275/halt.c: move this file ...
18584 * commands/halt.c: ... to here.
18585 Add some precompiler directive to include the correct header for
18588 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18589 (grub_halt): Likewise.
18591 * kern/efi/efi.c (grub_reboot): New function.
18592 (grub_halt): Likewise.
18594 2008-02-12 Robert Millan <rmh@aybabtu.com>
18596 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18597 /dev (like it is done for /dev/mapper). This doesn't provide support
18598 for EVMS, but at least it is now easy to identify the problem when it
18601 2008-02-11 Robert Millan <rmh@aybabtu.com>
18603 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18604 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18605 comparing it with -1, not 0.
18607 2008-02-10 Robert Millan <rmh@aybabtu.com>
18609 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18612 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18614 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18615 `disk/lvm.c' to the end of the list.
18616 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18617 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18619 2008-02-10 Robert Millan <rmh@aybabtu.com>
18621 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18622 grub_print_error() instead. This will let user know why we're entering
18624 Based on suggestions from Sam Morris.
18626 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18628 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18629 on remaining N args, instead of "--" arg N times.
18631 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18633 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18634 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18635 pattern for unknown glyphs.
18637 2008-02-09 Robert Millan <rmh@aybabtu.com>
18639 * configure.ac: Probe for `help2man'.
18640 * Makefile.in (builddir): New variable.
18641 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18642 or otherwise add a few flags/options to it.
18643 (install-local): For every executable utility or script that is
18644 installed, invoke $(HELP2MAN) to install a manpage based on --help
18647 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18648 that it doesn't prevent --help from working in build tree.
18650 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18651 with `bug-grub@gnu.org'.
18652 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18653 * util/update-grub.in (usage): New function.
18654 Implement proper argument check, with support for --help and --version
18655 (as well as existing -y).
18657 2008-02-09 Christian Franke <franke@computer.org>
18659 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18660 avoid overwriting previous output.
18661 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18663 2008-02-09 Robert Millan <rmh@aybabtu.com>
18665 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18668 2008-02-09 Robert Millan <rmh@aybabtu.com>
18670 * commands/sleep.c: New file.
18671 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18672 (sleep_mod_SOURCES): New variable.
18673 (sleep_mod_CFLAGS): Likewise.
18674 (sleep_mod_LDFLAGS): Likewise.
18676 2008-02-09 Robert Millan <rmh@aybabtu.com>
18678 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18679 situations in which we can deduce the RAID size and the superblock
18682 2008-02-09 Robert Millan <rmh@aybabtu.com>
18684 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18685 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18686 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18688 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18689 and return a grub_diskmemberlist_t composed of physical array members.
18690 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18692 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18694 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18695 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18696 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18698 * util/grub-probe.c (probe): Move partmap probing code from here ...
18699 (probe_partmap): ... to here.
18700 (probe): Use probe_partmap() once for the disk we're probing, and
18701 additionally, when such disk contains a memberlist() struct member,
18702 once for each disk that is contained in the structure returned by
18705 2008-02-09 Robert Millan <rmh@aybabtu.com>
18707 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18708 environment variable to 'all' in order to obtain debug output from
18710 * util/i386/pc/grub-setup.c (main): Likewise.
18712 2008-02-08 Robert Millan <rmh@aybabtu.com>
18714 * disk/raid.c (grub_raid_scan_device): Check for
18715 `array->device[sb.this_disk.number]' rather than for
18716 `array->device[sb.this_disk.number]->name', since the latter is not
18717 guaranteed to be accessible.
18719 2008-02-08 Robert Millan <rmh@aybabtu.com>
18721 * disk/raid.c: Update copyright.
18722 * fs/cpio.c: Likewise.
18723 * include/grub/raid.h: Likewise.
18724 * loader/i386/pc/multiboot.c: Likewise.
18725 * util/hostfs.c: Likewise.
18727 2008-02-08 Robert Millan <rmh@aybabtu.com>
18729 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18730 to a grub_disk_t array.
18731 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18733 (grub_raid_scan_device): Replace `device[x].name' accesses with
18734 `device[x]->name'. Simplify initialization of `array->device[x]'.
18736 2008-02-08 Robert Millan <rmh@aybabtu.com>
18738 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18739 grub_dprintf() calls.
18740 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18743 2008-02-07 Christian Franke <franke@computer.org>
18745 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18746 instead of fseek and ftell to support large files.
18747 (grub_hostfs_read): Likewise.
18749 2008-02-07 Robert Millan <rmh@aybabtu.com>
18751 Patch from Jeroen Dekkers.
18752 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18753 failure, since successfully reading all array members might not be
18756 2008-02-06 Robert Millan <rmh@aybabtu.com>
18758 * util/grub-probe.c (probe): Simplify partmap probing (with the
18759 assumption that the first word up to the underscore equals to
18762 2008-02-06 Christian Franke <franke@computer.org>
18764 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18765 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18766 last block of a cpio or tar stream.
18767 Check for "TRAILER!!!" instead of any empty data
18768 block to detect last block of a cpio stream.
18769 (grub_cpio_dir): Fix constness of variable np.
18770 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18771 cpio or tar trailer is detected. This fixes a crash
18772 on open of a non existing file.
18774 2008-02-05 Bean <bean123ch@gmail.com>
18776 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18778 (grub_multiboot_load_elf64): Likewise.
18779 (grub_multiboot): Initialize mbi structure.
18781 * util/grub-fstest.c: Don't include unused header file script.h.
18783 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18785 (grub_fstest_SOURCES): Likewise.
18787 2008-02-05 Robert Millan <rmh@aybabtu.com>
18789 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18790 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18791 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18792 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18794 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18795 (translation_table): Replace hardcoded values with macros
18796 provided by `<grub/term.h>'.
18798 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18799 (keyboard_map): Correct/add a few values, with macros provided
18800 by `<grub/term.h>'.
18801 (keyboard_map_shift): Zero values that don't differ from their
18802 `keyboard_map' equivalents.
18803 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18804 Discard the second scan code that is always sent by Caps lock.
18805 Only use `keyboard_map_shift' when it provides a non-zero value,
18806 otherwise fallback to `keyboard_map'.
18808 2008-02-04 Bean <bean123ch@gmail.com>
18810 * Makefile.in (enable_grub_fstest): New variable.
18812 * conf/common.rmk (grub_fstest_init.lst): New rule.
18813 (grub_fstest_init.h): Likewise.
18814 (grub_fstest_init.c): Likewise.
18815 (util/grub-fstest.c_DEPENDENCIES): New variable.
18816 (grub_fstest_SOURCES): Likewise.
18818 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18820 * util/grub-fstest.c: New file.
18822 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18824 Make grub-setup handle a separate root device.
18826 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18827 so that the root device can be compared with the destination
18829 When embedding the core image, if the root and destination devices
18830 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18832 When not embedding, set ROOT_DRIVE to 0xFF.
18834 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18836 Add support for having a grub directory in a different drive. This
18837 is still only the data handling part.
18839 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18840 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18841 (grub_root_drive): New variable.
18843 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18844 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18845 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18848 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18850 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18852 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18854 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18855 is bogus, because PXE booting does not specify any drive
18858 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18859 am not sure if this is really correct.
18861 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18862 is always identical to the boot drive when booting from a CD.
18864 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18866 (root_drive): New variable.
18867 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18868 (setup_sectors): Push %dx right after popping it, because %dh will
18870 (copy_buffer): Restore %dx.
18872 2008-02-03 Robert Millan <rmh@aybabtu.com>
18874 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18875 use `cdboot.img' for cdrom images.
18877 2008-02-03 Robert Millan <rmh@aybabtu.com>
18879 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18880 only setup gfxterm when `font' command has succeeded.
18882 2008-02-03 Robert Millan <rmh@aybabtu.com>
18884 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18885 (grub_rescue_cmd_multiboot_loader)
18886 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18888 2008-02-03 Pavel Roskin <proski@gnu.org>
18890 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18891 %edx and %esi from stack only after grub_gate_a20() is called.
18892 grub_gate_a20() clobbers %edx.
18894 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18896 * configure.ac (AC_INIT): Bumped to 1.96.
18898 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18899 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18900 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18901 video/readers/png.c.
18903 2008-02-03 Bean <bean123ch@gmail.com>
18905 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18906 (cdboot_img_SOURCES): New variable.
18907 (cdboot_img_ASFLAGS): New variable.
18908 (cdboot_img_LDFLAGS): New variable.
18910 * boot/i386/pc/cdboot.S: New file.
18912 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18913 (cd_count): Likewise.
18914 (grub_biosdisk_get_drive): Add support for cd device.
18915 (grub_biosdisk_call_hook): Likewise.
18916 (grub_biosdisk_iterate): Likewise.
18917 (grub_biosdisk_open): Likewise.
18918 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18919 (grub_biosdisk_rw): Support reading from cd device.
18920 (GRUB_MOD_INIT): Iterate cd devices.
18922 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18923 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18924 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18926 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18928 2008-02-02 Robert Millan <rmh@aybabtu.com>
18930 * commands/read.c: New file.
18931 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18932 (read_mod_SOURCES): New variable.
18933 (read_mod_CFLAGS): Likewise.
18934 (read_mod_LDFLAGS): Likewise.
18936 2008-02-02 Robert Millan <rmh@aybabtu.com>
18938 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18939 determining whether menu has to be displayed.
18941 2008-02-02 Marco Gerards <marco@gnu.org>
18943 * bus/pci.c: New file.
18945 * include/grub/pci.h: Likewise.
18947 * include/grub/i386/pc/pci.h: Likewise.
18949 * commands/lspci.c: Likewise.
18951 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18953 (pci_mod_SOURCES): New variable.
18954 (pci_mod_CFLAGS): Likewise.
18955 (pci_mod_LDFLAGS): Likewise.
18956 (lspci_mod_SOURCES): Likewise.
18957 (lspci_mod_CFLAGS): Likewise.
18958 (lspci_mod_LDFLAGS): Likewise.
18960 2008-02-02 Bean <bean123ch@gmail.com>
18962 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18963 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18965 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18966 (grub_xfs_btree_node): New structure.
18967 (grub_xfs_btree_root): New structure.
18968 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18969 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18970 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18971 (GRUB_XFS_EXTENT_SIZE): Likewise.
18972 (grub_xfs_read_block): Support btree format type.
18973 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18974 Use directory block as basic unit.
18976 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18978 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18979 __attribute__ ((__regparm__ (1))).
18981 2008-02-01 Robert Millan <rmh@aybabtu.com>
18983 Correct a mistake in previous commit.
18985 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18987 (normal/command.c_DEPENDENCIES): New variable.
18989 2008-02-01 Robert Millan <rmh@aybabtu.com>
18991 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18993 (normal/command.c_DEPENDENCIES): New variable.
18994 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18995 * conf/i386-ieee1275.rmk: Likewise.
18996 * conf/i386-linuxbios.rmk: Likewise.
18997 * conf/i386-pc.rmk: Likewise.
18998 * conf/sparc64-ieee1275.rmk: Likewise.
18999 * conf/powerpc-ieee1275.rmk: Likewise.
19000 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19002 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19004 2008-02-01 Robert Millan <rmh@aybabtu.com>
19006 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19007 call at beginning of function.
19009 2008-01-31 Pavel Roskin <proski@gnu.org>
19011 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
19012 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19013 (grub_mkrescue_SOURCES): Likewise.
19014 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19016 2008-01-30 Robert Millan <rmh@aybabtu.com>
19018 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19019 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19020 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19021 (grub_probe_SOURCES): ... to here.
19023 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19024 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19025 * conf/i386-ieee1275.rmk: Likewise.
19026 * conf/i386-linuxbios.rmk: Likewise.
19027 * conf/powerpc-ieee1275.rmk: Likewise.
19029 2008-01-30 Tristan Gingold <gingold@free.fr>
19031 * kern/rescue.c: Silently accept empty lines.
19033 2008-01-29 Bean <bean123ch@gmail.com>
19035 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19036 (real_code_2): Code cleanup and change comment style.
19037 (move_memory): Avoid using 32-bit address mode.
19039 2008-01-29 Bean <bean123ch@gmail.com>
19041 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19042 (png_mod_SOURCES): New variable.
19043 (png_mod_CFLAGS): Likewise.
19044 (png_mod_LDFLAGS): Likewise.
19046 * video/readers/png.c: New file.
19048 2008-01-28 Robert Millan <rmh@aybabtu.com>
19050 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19051 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19052 `ifndef GRUB_MOD_GAP' hack.
19053 * util/elf/grub-mkimage.c (add_segments): Likewise.
19055 2008-01-27 Robert Millan <rmh@aybabtu.com>
19057 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19058 `GRUB_MOD_GAP' for platforms in which it's not defined.
19059 * util/elf/grub-mkimage.c (add_segments): Likewise.
19061 2008-01-27 Robert Millan <rmh@aybabtu.com>
19063 Get grub-emu to build again (including parallel builds).
19065 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19067 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19068 (normal/execute.c_DEPENDENCIES): ... this, ...
19069 (grub-emu_DEPENDENCIES): ... and this.
19071 * conf/i386-efi.rmk: Likewise.
19072 * conf/i386-linuxbios.rmk: Likewise.
19073 * conf/i386-ieee1275.rmk: Likewise.
19074 * conf/powerpc-ieee1275.rmk: Likewise.
19075 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19077 2008-01-27 Robert Millan <rmh@aybabtu.com>
19079 * NEWS: Add a few items.
19081 2008-01-27 Robert Millan <rmh@aybabtu.com>
19083 Fix parallel builds with grub-emu. Based on earlier commit for
19084 grub-probe and grub-setup.
19086 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19087 (util/grub-emu.c_DEPENDENCIES): ... this.
19088 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19089 (util/grub-emu.c_DEPENDENCIES): ... this.
19090 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19091 (util/grub-emu.c_DEPENDENCIES): ... this.
19092 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19093 (util/grub-emu.c_DEPENDENCIES): ... this.
19094 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19095 (util/grub-emu.c_DEPENDENCIES): ... this.
19097 2008-01-27 Pavel Roskin <proski@gnu.org>
19099 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19100 to create a gap between _end and the modules added to the image
19101 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19102 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19103 * util/elf/grub-mkimage.c (add_segments): Likewise.
19105 2008-01-26 Pavel Roskin <proski@gnu.org>
19107 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19108 just return an error.
19110 2008-01-26 Bean <bean123ch@gmail.com>
19112 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19113 (grub_reiserfs_get_item): Save offset of the next item.
19114 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19116 2008-01-25 Robert Millan <rmh@aybabtu.com>
19118 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19119 make all filesystem sources appear together (possibly fixing omissions
19121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19122 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19123 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19124 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19126 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19128 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19129 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19130 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19131 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19133 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19134 (probe): Add a sanity check to make sure of our ability to read
19135 requested files when probing for filesystem type.
19137 * genmk.rb: Update copyright year (2007).
19139 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19140 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19141 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19142 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19143 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19144 : Remove function prototypes.
19146 2008-01-25 Robert Millan <rmh@aybabtu.com>
19148 Revert my previous commits (based on wrong assumption of how grub_errno
19151 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19152 * kern/file.c (grub_file_open): Likewise.
19154 2008-01-24 Pavel Roskin <proski@gnu.org>
19156 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19157 that hang if GRUB tries to setup colors.
19158 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19159 colors for firmwares that don't support it.
19160 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19161 Recognize Open Hack'Ware, set flags to work around its
19164 2008-01-24 Robert Millan <rmh@aybabtu.com>
19166 * kern/file.c (grub_file_open): Do not account previous failures of
19167 unrelated functions when grub_errno is checked for.
19168 Reported by Oleg Strikov.
19170 2008-01-24 Bean <bean123ch@gmail.com>
19172 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19173 (grub_ufs_sblock): New member volume name.
19174 (grub_ufs_find_file): Fix string copy bug.
19175 (grub_ufs_label): Implement this function properly.
19177 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19178 (grub_hfs_iterate_records): Use the correct file number for extents
19179 and catalog file. Fix problem in next index calculation.
19180 (grub_hfs_find_node): Replace recursive function call with loop.
19181 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19183 2008-01-23 Robert Millan <rmh@aybabtu.com>
19185 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19186 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19187 (grub_multiboot2_real_boot): New function prototype.
19189 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19190 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19192 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19193 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19195 2008-01-23 Robert Millan <rmh@aybabtu.com>
19197 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19198 #ifdef'ed out grub_printf().
19200 2008-01-23 Robert Millan <rmh@aybabtu.com>
19202 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19203 grub_dprintf calls, since they make "debug=all" mode unusable.
19204 (grub_console_checkkey): Likewise.
19206 2008-01-23 Robert Millan <rmh@aybabtu.com>
19208 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19209 `term/i386/pc/at_keyboard.c'.
19210 (pkglib_MODULES): Add `serial.mod'.
19211 (serial_mod_SOURCES): New variable.
19212 (serial_mod_CFLAGS): Likewise.
19213 (serial_mod_LDFLAGS): Likewise.
19215 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19216 `<grub/powerpc/ieee1275/console.h>'.
19217 (grub_keyboard_controller_init): New function prototype.
19218 (grub_console_checkkey): Likewise.
19219 (grub_console_getkey): Likewise.
19221 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19224 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19225 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19227 2008-01-23 Robert Millan <rmh@aybabtu.com>
19229 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19230 present, "(memdisk)/boot/grub" becomes the default prefix.
19232 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19233 a memdisk tarball with all the modules. Add --overlay=DIR option that
19234 allows users to overlay additional files into the image.
19236 2008-01-23 Robert Millan <rmh@aybabtu.com>
19238 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19239 and `machine/memory.h'.
19240 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19241 (_multiboot_mod_SOURCES): New variable.
19242 (_multiboot_mod_CFLAGS): Likewise.
19243 (_multiboot_mod_LDFLAGS): Likewise.
19244 (multiboot_mod_SOURCES): Likewise.
19245 (multiboot_mod_CFLAGS): Likewise.
19246 (multiboot_mod_LDFLAGS): Likewise.
19248 * include/grub/i386/ieee1275/loader.h: New file.
19250 * include/grub/i386/ieee1275/machine.h: Likewise.
19252 * include/grub/i386/ieee1275/memory.h: Likewise.
19254 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19255 variable declaration.
19256 (grub_os_area_size): Likewise.
19258 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19259 (grub_lower_mem, grub_upper_mem): New variables.
19260 (grub_stop_floppy): New function (just to make
19261 grub_multiboot2_real_boot() happy).
19263 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19264 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19265 (grub_stop): New function.
19266 Include `"../realmode.S"' and `"../loader.S"'.
19268 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19269 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19271 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19272 rely on grub_multiboot2_real_boot() for final boot.
19274 2008-01-22 Robert Millan <rmh@aybabtu.com>
19276 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19277 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19278 device that doesn't look like an SD card.
19279 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19280 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19281 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19282 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19285 2008-01-22 Robert Millan <rmh@aybabtu.com>
19287 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19288 avoid claiming over our own code.
19290 2008-01-22 Bean <bean123ch@gmail.com>
19292 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19293 (jpeg_mod_SOURCES): New variable.
19294 (jpeg_mod_CFLAGS): Likewise.
19295 (jpeg_mod_LDFLAGS): Likewise.
19297 * video/readers/jpeg.c : New file.
19299 2008-01-22 Bean <bean123ch@gmail.com>
19301 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19302 there are no more items.
19304 2008-01-21 Robert Millan <rmh@aybabtu.com>
19306 * kern/mm.c (grub_mm_init_region): Improve debug message.
19308 2008-01-21 Robert Millan <rmh@aybabtu.com>
19310 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19311 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19313 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19315 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19316 Indicates start of upper memory.
19317 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19318 (generate_image): Abort when image size is big enough to corrupt
19321 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19322 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19323 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19324 instead of hardcoding 0xA0000.
19325 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19326 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19327 instead of hardcoding 0xA0000.
19329 2008-01-21 Robert Millan <rmh@aybabtu.com>
19331 * disk/memdisk.c (memdisk_size): New variable.
19332 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19334 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19335 image to dynamic memory.
19336 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19337 `memdisk_size'. Free memdisk block.
19339 2008-01-21 Robert Millan <rmh@aybabtu.com>
19341 Fix detection of very small filesystems (like tar).
19343 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19344 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19345 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19346 a problem with this disk).
19348 2008-01-21 Robert Millan <rmh@aybabtu.com>
19350 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19351 on grub_biosdisk_rw_standard() error.
19353 2008-01-21 Robert Millan <rmh@aybabtu.com>
19355 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19357 * kern/elf.c: Likewise.
19358 * kern/ieee1275/ieee1275.c: Likewise.
19359 * kern/powerpc/ieee1275/openfw.c: Likewise.
19360 * term/ieee1275/ofconsole.c: Likewise.
19362 2008-01-21 Robert Millan <rmh@aybabtu.com>
19364 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19366 * include/grub/kernel.h (grub_arch_memdisk_addr)
19367 (grub_arch_memdisk_size): Moved from here ...
19369 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19370 (grub_arch_memdisk_size): ... to here.
19372 2008-01-21 Robert Millan <rmh@aybabtu.com>
19374 Mostly based on bugfix from Bean.
19376 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19377 attribute with hook() parameter.
19378 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19380 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19381 attribute with hook() parameter.
19382 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19385 2008-01-21 Robert Millan <rmh@aybabtu.com>
19387 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19388 (pkglib_MODULES): Add `memdisk.mod'.
19389 (memdisk_mod_SOURCES): New variable.
19390 (memdisk_mod_CFLAGS): Likewise.
19391 (memdisk_mod_LDFLAGS): Likewise.
19393 * disk/memdisk.c: New file.
19395 * include/grub/disk.h (grub_disk_dev_id): Add
19396 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19398 * include/grub/i386/pc/kernel.h
19399 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19400 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19401 (grub_kernel_image_size): New variable declaration.
19402 (grub_total_module_size): Likewise.
19403 (grub_memdisk_image_size): Likewise.
19405 * include/grub/i386/pc/memory.h
19406 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19408 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19409 (grub_arch_memdisk_addr): New variable declaration.
19410 (grub_arch_memdisk_size): Likewise.
19412 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19413 (grub_arch_memdisk_size): Likewise.
19415 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19416 (codestart): Replace hardcoded `0x100000' with
19417 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19419 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19420 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19421 not NULL, append the contents of the file it refers to, at the end of
19422 the compressed kernel image. Initialize `grub_memdisk_image_size'
19423 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19424 (options): Add "memdisk"|'m' option.
19425 (main): Parse --memdisk|-m option, and pass user-provided path as
19426 parameter to generate_image().
19428 2008-01-20 Robert Millan <rmh@aybabtu.com>
19430 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19431 grub_dprintf() calls from here ...
19432 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19434 2008-01-20 Robert Millan <rmh@aybabtu.com>
19436 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19438 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19440 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19441 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19442 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19443 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19445 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19446 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19448 2008-01-19 Robert Millan <rmh@aybabtu.com>
19450 Get rid of confusing function (superseded by
19451 `grub_ieee1275_get_integer_property')
19452 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19454 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19456 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19457 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19458 in native endianness from grub_ieee1275_get_integer_property().
19460 2008-01-19 Robert Millan <rmh@aybabtu.com>
19462 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19463 command after "shut-down", since implementations differ on which
19464 the command for halt is.
19466 2008-01-19 Robert Millan <rmh@aybabtu.com>
19468 * include/grub/i386/linuxbios/console.h: Add header protection.
19469 (grub_keyboard_controller_init): New function prototype.
19470 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19471 (KEYBOARD_COMMAND_READ): Likewise.
19472 (KEYBOARD_COMMAND_WRITE): Likewise.
19473 (KEYBOARD_SCANCODE_SET1): Likewise.
19474 (grub_keyboard_controller_write): New function.
19475 (grub_keyboard_controller_read): Likewise.
19476 (grub_keyboard_controller_init): Likewise.
19478 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19479 (grub_console_init): On coreboot/LinuxBIOS, call
19480 grub_keyboard_controller_init().
19482 2008-01-19 Robert Millan <rmh@aybabtu.com>
19484 PowerPC changes provided by Pavel Roskin.
19486 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19487 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19488 don't rely on cmain() doing it.
19489 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19490 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19492 2008-01-16 Robert Millan <rmh@aybabtu.com>
19494 * include/grub/i386/linuxbios/memory.h
19495 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19496 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19497 receive `table_header' as argument. Instead, probe for it in the
19498 known memory ranges where it can be present.
19499 (grub_available_iterate): Do not pass a fixed `table_header' address
19500 to grub_linuxbios_table_iterate().
19502 2008-01-15 Robert Millan <rmh@aybabtu.com>
19504 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19505 * conf/i386-ieee1275.rmk: New file.
19506 * include/grub/i386/ieee1275/console.h: Likewise.
19507 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19508 * include/grub/i386/ieee1275/kernel.h: Likewise.
19509 * include/grub/i386/ieee1275/time.h: Likewise.
19510 * kern/i386/ieee1275/init.c: Likewise.
19511 * kern/i386/ieee1275/startup.S: Likewise.
19513 2008-01-15 Robert Millan <rmh@aybabtu.com>
19515 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19516 when pointers are 32-bit (but still do set it to one when they are
19519 2008-01-15 Robert Millan <rmh@aybabtu.com>
19521 * include/grub/ieee1275/ieee1275.h
19522 (grub_ieee1275_get_integer_property): New function prototype.
19524 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19525 (grub_ieee1275_get_integer_property): New function. Wraps around
19526 grub_ieee1275_get_property() to handle endianness.
19528 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19529 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19531 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19532 (grub_map): Likewise.
19533 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19535 2008-01-15 Bean <bean123ch@gmail.com>
19537 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19538 (grub_script_execute_cmdline): Reset grub_errno.
19540 * normal/main.c (read_config_file): Reset grub_errno.
19542 * normal/parse.y (script_init): New.
19543 (script): Move function and menuentry here.
19545 (command): Add delimiter at the end of command.
19546 (commands): Adjust to match the new command.
19547 (commandblock): Remove grub_script_lexer_record_start.
19548 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19549 (if): Use the new commands.
19551 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19553 2008-01-15 Robert Millan <rmh@aybabtu.com>
19555 * normal/menu.c (run_menu): Move timeout message from here ...
19556 (print_timeout): ... to here.
19557 (run_menu): Use print_timeout() once during initial draw to print
19558 the whole message, and again in every clock tick to update only
19559 the number of seconds.
19561 2008-01-15 Robert Millan <rmh@aybabtu.com>
19563 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19564 actual size of `available' from grub_ieee1275_get_property(), and
19565 restrict parsing to that bound.
19567 2008-01-15 Christian Franke <franke@computer.org>
19569 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19570 (argp_program_version): Remove variable.
19571 (argp_program_bug_address): Likewise.
19572 (options): Convert from struct argp_option to struct option.
19573 (struct arguments): Remove.
19574 (parse_opt): Remove.
19575 (usage): New function.
19576 (main): Replace struct args members by simple variables.
19577 Replace argp_parse() by getopt_long().
19578 Add switch to evaluate options.
19579 Add missing "(...)" around root_dev in prefix string.
19581 2008-01-14 Robert Millan <rmh@aybabtu.com>
19583 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19584 for grub_ieee1275_exit(), in order to improve portability.
19586 2008-01-14 Robert Millan <rmh@aybabtu.com>
19588 * util/grub.d/10_linux.in (prefix): Define.
19589 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19591 2008-01-13 Pavel Roskin <proski@gnu.org>
19593 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19594 grub_errno if no errors have been detected.
19596 2008-01-12 Robert Millan <rmh@aybabtu.com>
19598 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19599 (grub_util_get_dev_abstraction): New function prototype.
19601 * util/getroot.c: Include `<grub/util/getroot.h>'
19602 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19603 (grub_util_get_dev_abstraction): ... here (new function).
19605 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19606 `PRINT_ABSTRACTION'.
19607 (probe): Probe for abstraction type when requested.
19608 (main): Understand `--target=abstraction'.
19610 * util/i386/efi/grub-install.in: Add abstraction module to core
19611 image when it is found to be necessary.
19612 * util/i386/pc/grub-install.in: Likewise.
19613 * util/powerpc/ieee1275/grub-install.in: Likewise.
19615 * util/update-grub_lib.in (font_path): Return system path without
19616 converting to GRUB path.
19617 * util/update-grub.in: Convert system path returned by font_path()
19618 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19619 abstraction module is needed for loading fonts (if any). Export
19620 that as `GRUB_PRELOAD_MODULES'.
19621 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19624 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19626 Remove some unused code from reiserfs.
19628 * fs/reiserfs.c (struct grub_reiserfs_key)
19629 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19630 (struct grub_reiserfs_node_body): Removed.
19631 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19633 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19635 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19637 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19639 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19641 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19643 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19644 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19645 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19647 2008-01-10 Robert Millan <rmh@aybabtu.com>
19649 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19650 Determines if a file is garbage left by packaging systems, etc.
19651 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19652 for processing /etc/grub.d scripts.
19653 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19654 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19655 as a condition for processing Linux images.
19657 2008-01-10 Pavel Roskin <proski@gnu.org>
19659 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19660 to compile reiserfs.c on PowerPC.
19662 2008-01-10 Robert Millan <rmh@aybabtu.com>
19664 * kern/device.c (grub_device_iterate): Do not abort device iteration
19665 when one of the devices cannot be opened.
19666 * kern/disk.c (grub_disk_open): Do not account previous failures of
19667 unrelated functions when grub_errno is checked for.
19669 2008-01-08 Robert Millan <rmh@aybabtu.com>
19671 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19672 `! grub_linux_is_bzimage', change order of address comparison to make
19673 it more intuitive, and improve "too big zImage" error message.
19675 2008-01-08 Robert Millan <rmh@aybabtu.com>
19677 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19678 `$(update-grub_DATA)'.
19679 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19682 2008-01-07 Robert Millan <rmh@aybabtu.com>
19684 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19685 which instruction is modified by grub-setup during installation
19686 (since it wasn't obvious by only looking at this file).
19688 2008-01-07 Robert Millan <rmh@aybabtu.com>
19690 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19691 listing actual TODO items.
19693 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19695 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19697 (grub_reiserfs_get_key_offset): Likewise.
19698 (grub_reiserfs_set_key_offset): Likewise.
19699 (grub_reiserfs_set_key_type): Likewise.
19700 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19702 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19703 better to remove the bitfield version completely.
19705 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19707 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19708 allocated from the heap, due to the fshelp implementation.
19709 (grub_reiserfs_dir): Free NODE, due to the same reason.
19711 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19713 Mostly from Vincent Pelletier:
19715 * fs/reiserfs.c: New file.
19717 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19718 (reiserfs_mod_SOURCES): New variable.
19719 (reiserfs_mod_CFLAGS): Likewise.
19720 (reiserfs_mod_LDFLAGS): Likewise.
19722 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19723 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19724 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19727 2008-01-06 Robert Millan <rmh@aybabtu.com>
19729 * normal/color.c: Remove `<grub/env.h>'.
19731 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19733 * include/grub/normal.h: Include <grub/env.h>.
19735 2008-01-05 Robert Millan <rmh@aybabtu.com>
19737 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19738 usage example with `(hd0,1)'.
19739 Reported by Samuel Thibault.
19741 2008-01-05 Robert Millan <rmh@aybabtu.com>
19743 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19744 (grub_linux_boot_zimage): Rename to ...
19745 (grub_linux_boot): ... this.
19746 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19747 (grub_linux_boot_zimage): Conditionalize zImage copy.
19749 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19750 (grub_linux_boot_bzimage): Remove prototype.
19751 (grub_linux_boot_zimage): Rename to ...
19752 (grub_linux_boot): ... this.
19754 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19755 (grub_linux_boot): Remove function.
19757 2008-01-05 Robert Millan <rmh@aybabtu.com>
19759 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19760 (grub_env_write_color_highlight): Likewise.
19761 (grub_wait_after_message): Likewise.
19763 * normal/color.c: New file.
19765 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19766 (normal_mod_DEPENDENCIES): Likewise.
19768 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19769 (normal_mod_DEPENDENCIES): Likewise.
19771 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19772 (normal_mod_DEPENDENCIES): Likewise.
19774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19775 (normal_mod_DEPENDENCIES): Likewise.
19777 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19778 for waiting after a message is printed.
19779 * normal/main.c (read_config_file): Likewise.
19780 (grub_normal_init): Register grub_env_write_color_normal() and
19781 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19782 `color_highlight' variables as global.
19784 * normal/menu.c (grub_wait_after_message): New function.
19785 (grub_color_menu_normal): New variable. Replaces ...
19786 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19787 (grub_color_menu_highlight): New variable. Replaces ...
19788 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19789 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19790 `GRUB_TERM_COLOR_STANDARD'.
19791 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19792 `normal_code' and `highlight_code' to `old_color_normal' and
19793 `old_color_highlight', respectively.
19794 (grub_menu_init_page): Update colors when drawing the menu, based on
19795 `menu_color_normal' and `menu_color_highlight' variables.
19796 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19797 a message is printed.
19799 2008-01-05 Robert Millan <rmh@aybabtu.com>
19801 * kern/env.c (grub_env_context_open): Propagate hooks for global
19802 variables to new context.
19804 * kern/main.c (grub_set_root_dev): Export `root' variable.
19806 2008-01-05 Robert Millan <rmh@aybabtu.com>
19808 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19809 discs unconditionally, since udev and others have options to provide
19812 2008-01-05 Robert Millan <rmh@aybabtu.com>
19814 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19816 2008-01-04 Christian Franke <franke@computer.org>
19818 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19821 2008-01-03 Pavel Roskin <proski@gnu.org>
19823 * kern/i386/linuxbios/init.c: Put "void" to all function
19824 declarations with no arguments.
19825 * kern/powerpc/ieee1275/init.c: Likewise.
19826 * term/i386/pc/at_keyboard.c: Likewise.
19827 * term/i386/pc/vga_text.c: Likewise.
19828 * util/grub-mkdevicemap.c: Likewise.
19830 2008-01-02 Robert Millan <rmh@aybabtu.com>
19832 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19833 message when loaded image is out of bounds.
19834 (grub_multiboot_load_elf64): Likewise.
19836 2008-01-02 Pavel Roskin <proski@gnu.org>
19838 * util/grub.d/10_linux.in: Try version without ".old" when
19839 looking for initrd. It's better to use initrd from the newer
19840 kernel of the same version than no initrd at all.
19842 2008-01-01 Robert Millan <rmh@aybabtu.com>
19844 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19846 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19848 * include/grub/video.h: Added grub_video_unmap_color and
19849 grub_video_get_active_render_target.
19850 (grub_video_adapter): Added unmap_color and get_active_render_target.
19852 * video/video.c: Added grub_video_unmap_color and
19853 grub_video_get_active_render_target.
19854 (grub_video_get_info): Changed method to accept NULL pointer as an
19855 argument to allow detection of active video adapter.
19857 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19858 grub_video_vbe_unmap_color_int.
19859 Added grub_video_vbe_unmap_color and
19860 grub_video_vbe_get_active_render_target.
19861 (grub_video_vbe_adapter): Added unmap_color and
19862 get_active_render_target.
19864 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19865 with grub_video_vbe_unmap_color_int.
19867 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19868 (DEFAULT_NORMAL_COLOR): Likewise.
19869 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19870 (DEFAULT_FG_COLOR): Removed.
19871 (DEFAULT_BG_COLOR): Likewise.
19872 (DEFAULT_CURSOR_COLOR): Changed value.
19873 (grub_virtual_screen): Added standard_color_setting,
19874 normal_color_setting, highlight_color_setting and term_color.
19875 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19876 (bitmap_width): Added.
19877 (bitmap_height): Likewise.
19878 (bitmap): Likewise.
19879 (set_term_color): Likewise.
19880 (grub_virtual_screen_setup): Changed to use new terminal coloring
19882 (grub_gfxterm_init): Added init for bitmap.
19883 (grub_gfxterm_fini): Added destroy for bitmap.
19884 (redraw_screen_rect): Updated to use background bitmap and new
19886 (scroll_up): Added optimization for case when there is no bitmap.
19887 (grub_gfxterm_cls): Fixed to use correct background color.
19888 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19890 (grub_virtual_screen_setcolor): Likewise.
19891 (grub_virtual_screen_getcolor): Added.
19892 (grub_gfxterm_background_image_cmd): Likewise.
19893 (grub_video_term): Added setcolor and getcolor.
19894 (MOD_INIT): Added registration of background_image command.
19895 (MOD_TERM): Added unregistration for background_image command.
19897 2007-12-30 Pavel Roskin <proski@gnu.org>
19899 * loader/multiboot_loader.c: Fix multiboot command
19900 unregistration. Fix all typos in the word "multiboot".
19902 2007-12-29 Pavel Roskin <proski@gnu.org>
19904 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19905 support for initrd names used in Fedora.
19907 2007-12-26 Bean <bean123ch@gmail.com>
19909 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19910 (cpio_mod_SOURCES): New variable.
19911 (cpio_mod_CFLAGS): Likewise.
19912 (cpio_mod_LDFLAGS): Likewise.
19914 * fs/cpio.c: New file.
19916 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19918 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19920 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19922 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19924 2007-12-25 Robert Millan <rmh@aybabtu.com>
19926 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19927 (grub_getcolor): New function.
19929 * kern/term.c (grub_getcolor): New function.
19930 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19931 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19932 (print_entry): Set normal and highlight colors to
19933 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19934 respectively, before printing and restore them to old
19936 (grub_menu_init_page): Likewise. Fill an additional colored space
19937 that would otherwise be left blank.
19939 * term/efi/console.c (grub_console_getcolor): New function.
19940 (struct grub_console_term.getcolor): New variable.
19941 * term/i386/pc/console.c (grub_console_getcolor): New function.
19942 (struct grub_console_term.getcolor): New variable.
19943 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19944 (struct grub_console_term.getcolor): New variable.
19946 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19947 (struct grub_console_term.setcolor): Remove variable.
19948 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19949 (struct grub_console_term.setcolor): Remove variable.
19950 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19951 (struct grub_console_term.setcolor): Remove variable.
19952 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19953 (struct grub_console_term.setcolor): Remove variable.
19955 2007-12-25 Robert Millan <rmh@aybabtu.com>
19957 * configure.ac: Search for possible unifont.hex locations, and
19958 define UNIFONT_HEX if found.
19960 * Makefile.in (UNIFONT_HEX): Define variable.
19961 (DATA): Rename to ...
19962 (PKGLIB): ... this. Update all users.
19963 (PKGDATA): New variable.
19964 (pkgdata_IMAGES): Rename to ...
19965 (pkglib_IMAGES): ... this. Update all users.
19966 (pkgdata_MODULES): Rename to ...
19967 (pkglib_MODULES): ... this. Update all users.
19968 (pkgdata_PROGRAMS): Rename to ...
19969 (pkglib_PROGRAMS): ... this. Update all users.
19970 (pkgdata_DATA): Rename to ...
19971 (pkglib_DATA): ... this. Update all users.
19972 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19973 (unicode.pff, ascii.pff): New rules.
19974 (all-local): Add `$(PKGDATA)' dependency.
19975 (install-local): Process `$(PKGDATA)'.
19977 * util/update-grub_lib.in (font_path): Search for *.pff files in
19978 a few more locations, including `${pkgdata}'.
19980 2007-12-23 Robert Millan <rmh@aybabtu.com>
19982 Patch from Bean <bean123ch@gmail.com>:
19983 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19986 2007-12-21 Bean <bean123ch@gmail.com>
19988 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19989 (ntfscomp_mod_SOURCES): New variable.
19990 (ntfscomp_mod_CFLAGS): Likewise.
19991 (ntfscomp_mod_LDFLAGS): Likewise.
19993 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19994 (grub_probe_SOURCES): Likewise.
19995 (grub_emu_SOURCES): Likewise.
19997 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19998 (grub_emu_SOURCES): Likewise.
20000 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20001 (grub_emu_SOURCES): Likewise.
20003 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20004 (grub_emu_SOURCES): Likewise.
20006 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20007 (read_run_list): Renamed to grub_ntfs_read_run_list.
20008 (decomp_nextvcn): Moved to ntfscomp.c.
20009 (decomp_getch): Likewise.
20010 (decomp_get16): Likewise.
20011 (decomp_block): Likewise.
20012 (read_block): Likewise.
20013 (read_data): Partially moved to ntfscomp.c.
20014 (fixup): Change unsigned to grub_uint16_t.
20015 (read_mft): Change unsigned long to grub_uint32_t.
20016 (read_attr): Likewise.
20017 (read_data): Likewise.
20018 (read_run_data): Likewise.
20019 (read_run_list): Likewise.
20020 (read_mft): Likewise.
20022 * fs/ntfscomp.c: New file.
20024 * include/grub/ntfs.h: New file.
20026 2007-12-16 Robert Millan <rmh@aybabtu.com>
20028 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20029 IDE disk check, since Linux is known to support 20 IDE disks.
20030 Reported by Colin Watson.
20032 2007-12-15 Bean <bean123ch@gmail.com>
20034 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20035 (lnxboot_img_SOURCES): New variable.
20036 (lnxboot_img_ASFLAGS): Likewise.
20037 (lnxboot_img_LDFLAGS): Likewise.
20039 * boot/i386/pc/lnxboot.S: New file.
20041 2007-11-24 Pavel Roskin <proski@gnu.org>
20043 * configure.ac: Test if '--build-id=none' is supported by the
20044 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20045 objcopy to generate incorrect binary files (binutils
20046 2.17.50.0.18-1 as shipped by Fedora 8).
20047 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20048 linking, so that build ID doesn't break the test.
20050 2007-11-24 Pavel Roskin <proski@gnu.org>
20052 * include/grub/i386/time.h: use "void" in the argument list
20053 of grub_cpu_idle().
20054 * include/grub/powerpc/time.h: Likewise.
20055 * include/grub/sparc64/time.h: Likewise.
20057 2007-11-18 Christian Franke <franke@computer.org>
20059 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20060 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20061 This fixes the problem that function keys did not work in grub-emu.
20063 2007-11-18 Christian Franke <franke@computer.org>
20065 * disk/host.c (grub_host_open): Remove attribute unused from
20066 name parameter. Add check for "host". This fixes the problem
20067 that grub-emu does not find partitions.
20069 2007-11-18 Christian Franke <franke@computer.org>
20071 * util/hostfs.c (is_dir): New function.
20072 (grub_hostfs_dir): Handle missing dirent.d_type case.
20073 (grub_hostfs_read): Add missing fseek().
20074 (grub_hostfs_label): Clear label pointer. This fixes a crash
20075 of grub-emu on "ls (host)".
20077 2007-11-18 Christian Franke <franke@computer.org>
20079 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20080 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20081 to 64 bit boundary by default.
20083 2007-11-18 Bean <bean123ch@gmail.com>
20085 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20086 (hexdump_mod_SOURCES): New variable.
20087 (hexdump_mod_CFLAGS): Likewise.
20088 (hexdump_mod_LDFLAGS): Likewise.
20090 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20092 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20094 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20098 * include/grub/hexdump.h: New file.
20100 * commands/hexdump.c: New file.
20102 2007-11-10 Robert Millan <rmh@aybabtu.com>
20104 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20105 in grub_outb() calls.
20106 (beep_on): Likewise.
20108 2007-11-10 Christian Franke <franke@computer.org>
20110 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20111 (grub_menu_run): Likewise.
20113 2007-11-10 Robert Millan <rmh@aybabtu.com>
20115 * include/grub/i386/efi/machine.h: New file.
20116 * include/grub/i386/linuxbios/machine.h: Likewise.
20117 * include/grub/i386/pc/machine.h: Likewise.
20118 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20119 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20121 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20122 (serial_hw_io_addr): New variable.
20123 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20124 instead of `(unsigned short *) 0x400'.
20126 2007-11-10 Bean <bean123ch@gmail.com>
20128 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20130 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20132 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20133 (vga_mod_SOURCES): Added.
20134 (vga_mod_CFLAGS): Likewise.
20135 (vga_mod_LDFLAGS): Likewise.
20137 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20139 (set_map_mask): Likewise.
20140 (set_read_map): Likewise.
20141 (set_read_address): Likewise.
20142 (vga_font): Removed variable.
20143 (get_vga_glyph): Removed function.
20144 (invalidate_char): Likewise.
20145 (write_char): Changed to use grub_font_get_glyph() for font
20147 (grub_vga_putchar): Likewise.
20148 (grub_vga_getcharwidth): Likewise.
20150 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20152 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20154 (pxeboot_img_LDFLAGS): Likewise.
20155 (diskboot_img_LDFLAGS): Likewise.
20156 (kernel_img_LDFLAGS): Likewise.
20158 2007-11-06 Robert Millan <rmh@aybabtu.com>
20160 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20161 in grub_outb() calls.
20162 (serial_hw_init): Likewise.
20164 2007-11-05 Robert Millan <rmh@aybabtu.com>
20166 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20167 spaces. Skip non-regular files.
20169 2007-11-05 Robert Millan <rmh@aybabtu.com>
20171 * kern/disk.c (grub_disk_firmware_fini)
20172 (grub_disk_firmware_is_tainted): New variables.
20174 * include/grub/disk.h (grub_disk_firmware_fini)
20175 (grub_disk_firmware_is_tainted): Likewise.
20177 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20178 (grub_disk_biosdisk_fini): ... to here.
20179 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20180 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20181 is set. Register grub_disk_biosdisk_fini() in
20182 `grub_disk_firmware_fini'.
20184 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20185 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20186 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20187 to finish existing firmware disk interface.
20189 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20190 (ata_mod_SOURCES): New variable.
20191 (ata_mod_CFLAGS): Likewise.
20192 (ata_mod_LDFLAGS): Likewise.
20194 2007-11-05 Robert Millan <rmh@aybabtu.com>
20196 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20197 (grub_ata_wait): Reimplement using grub_millisleep().
20199 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20200 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20202 2007-11-03 Marco Gerards <marco@gnu.org>
20204 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20205 (CRTC_ADDR_PORT): New macro.
20206 (CRTC_DATA_PORT): Likewise.
20207 (CRTC_CURSOR): Likewise.
20208 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20209 (CRTC_CURSOR_ADDR_LOW): Likewise.
20210 (update_cursor): New function.
20211 (grub_console_real_putchar): Call `update_cursor'.
20212 (grub_console_gotoxy): Likewise.
20213 (grub_console_cls): Set the default color when clearing the
20215 (grub_console_setcursor): Implemented.
20217 2007-11-03 Marco Gerards <marco@gnu.org>
20219 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20221 (grub_ata_pio_write): Likewise.
20223 (grub_atapi_identify): Wait after issuing an ATA command.
20224 (grub_atapi_packet): Likewise.
20225 (grub_ata_identify): Likewise.
20226 (grub_ata_readwrite): Likewise.
20228 2007-11-03 Marco Gerards <marco@gnu.org>
20230 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20231 (grub_ata_pio_write): Likewise.
20232 (grub_ata_readwrite): Use `grub_error', instead of
20233 returning `grub_errno'.
20235 2007-11-03 Marco Gerards <marco@gnu.org>
20237 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20238 grub_ata_pio_write once for every single sector, instead of for
20241 2007-10-31 Robert Millan <rmh@aybabtu.com>
20243 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20245 * conf/i386-linuxbios.rmk: New file.
20247 * kern/i386/pc/hardware.c: Likewise.
20248 * term/i386/pc/at_keyboard.c: Likewise.
20249 * term/i386/pc/vga_text.c: Likewise.
20251 * include/grub/i386/linuxbios/boot.h: Likewise.
20252 * include/grub/i386/linuxbios/console.h: Likewise.
20253 * include/grub/i386/linuxbios/init.h: Likewise.
20254 * include/grub/i386/linuxbios/kernel.h: Likewise.
20255 * include/grub/i386/linuxbios/loader.h: Likewise.
20256 * include/grub/i386/linuxbios/memory.h: Likewise.
20257 * include/grub/i386/linuxbios/serial.h: Likewise.
20258 * include/grub/i386/linuxbios/time.h: Likewise.
20260 * kern/i386/linuxbios/init.c: Likewise.
20261 * kern/i386/linuxbios/startup.S: Likewise.
20262 * kern/i386/linuxbios/table.c: Likewise.
20264 2007-10-31 Marco Gerards <marco@gnu.org>
20266 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20267 (ata_mod_SOURCES): New variable.
20268 (ata_mod_CFLAGS): Likewise.
20269 (ata_mod_LDFLAGS): Likewise.
20271 * disk/ata.c: New file.
20273 * include/grub/disk.h (grub_disk_dev_id): Add
20274 `GRUB_DISK_DEV_ATA_ID'.
20276 2007-10-31 Robert Millan <rmh@aybabtu.com>
20278 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20279 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20281 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20282 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20284 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20287 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20289 2007-10-27 Robert Millan <rmh@aybabtu.com>
20291 * include/grub/types.h (ULONG_MAX): Define macro.
20293 2007-10-22 Robert Millan <rmh@aybabtu.com>
20295 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20297 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20299 2007-10-22 Robert Millan <rmh@aybabtu.com>
20301 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20302 (pkgdata_MODULES): Add `biosdisk.mod'.
20303 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20306 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20307 (grub_biosdisk_init): Replace with ...
20308 (GRUB_MOD_INIT(biosdisk)): ... this.
20309 (grub_biosdisk_fini): Replace with ...
20310 (GRUB_MOD_FINI(biosdisk)): ... this.
20312 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20313 (grub_machine_init): Remove call to grub_biosdisk_init().
20314 (grub_machine_fini): Remove call to grub_machine_fini().
20316 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20318 2007-10-22 Robert Millan <rmh@aybabtu.com>
20320 * include/grub/time.h: New file.
20321 * include/grub/i386/time.h: Likewise.
20322 * include/grub/powerpc/time.h: Likewise.
20323 * include/grub/sparc64/time.h: Likewise.
20325 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20327 (KERNEL_MACHINE_TIME_HEADER): ... this.
20328 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20330 (KERNEL_MACHINE_TIME_HEADER): ... this.
20331 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20333 (KERNEL_MACHINE_TIME_HEADER): ... this.
20335 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20336 (grub_millisleep): New function.
20337 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20338 (grub_millisleep): New function.
20339 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20340 Remove `grub/machine/time.h' include.
20341 (grub_millisleep): New function.
20342 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20343 Remove `grub/machine/time.h' include.
20344 (grub_millisleep): New function.
20346 * include/grub/misc.h (grub_div_roundup): New function.
20348 * kern/misc.c: Include `<grub/time.h>'.
20349 (grub_millisleep_generic): New function.
20351 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20353 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20355 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20356 `machine/time.h'. Add `time.h'.
20357 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20359 2007-10-21 Robert Millan <rmh@aybabtu.com>
20361 * include/grub/misc.h (grub_max): New function.
20363 2007-10-21 Robert Millan <rmh@aybabtu.com>
20365 * util/misc.c (grub_util_info): Call fflush() before returning.
20367 2007-10-20 Robert Millan <rmh@aybabtu.com>
20369 * genmk.rb (Image): Copy `extra_flags' from here ...
20370 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20372 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20373 to `argc' and `args' arguments.
20375 2007-10-17 Robert Millan <rmh@aybabtu.com>
20377 * kern/i386/loader.S: New file.
20379 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20380 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20381 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20382 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20383 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20384 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20385 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20386 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20387 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20388 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20389 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20390 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20391 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20392 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20394 * kern/i386/realmode.S: New file.
20396 * kern/i386/pc/startup.S (protstack): Moved from here ...
20397 * kern/i386/realmode.S (protstack)... to here.
20398 * kern/i386/pc/startup.S (gdt): Moved from here ...
20399 * kern/i386/realmode.S (gdt)... to here.
20400 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20401 * kern/i386/realmode.S (prot_to_real)... to here.
20403 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20404 `kern/i386/realmode.S'.
20406 2007-10-17 Robert Millan <rmh@aybabtu.com>
20408 * include/grub/i386/loader.h: New file.
20410 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20411 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20412 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20413 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20414 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20415 * include/grub/i386/loader.h (grub_linux_prot_size)
20416 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20417 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20418 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20419 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20421 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20423 2007-10-15 Robert Millan <rmh@aybabtu.com>
20425 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20426 filesystem when dev->disk is unset.
20427 Do probe for filesystem even when dev->disk->has_partitions is set.
20428 In case a filesystem is found, always report it.
20429 In case it isn't, if dev->disk->has_partitions is set, report that
20430 a partition table was found instead of reporting that no filesystem
20431 could be identified.
20433 2007-10-12 Robert Millan <rmh@aybabtu.com>
20435 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20436 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20438 * include/grub/types.h (grub_host_to_target16): New macro.
20439 (grub_host_to_target32): Likewise.
20440 (grub_host_to_target64): Likewise.
20441 (grub_target_to_host16): Likewise.
20442 (grub_target_to_host32): Likewise.
20443 (grub_target_to_host64): Likewise.
20445 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20446 Renamed from to ...
20447 (GRUB_MOD_ALIGN): ...this. Update all users.
20449 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20450 grub_host_to_target32.
20451 Replace grub_be_to_cpu32 with grub_target_to_host32.
20452 (load_modules): Likewise.
20453 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20454 Replace grub_be_to_cpu32 with grub_target_to_host32.
20455 Replace grub_cpu_to_be16 with grub_host_to_target16.
20456 Replace grub_cpu_to_be32 grub_host_to_target32.
20458 2007-10-12 Robert Millan <rmh@aybabtu.com>
20460 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20461 * util/elf/grub-mkimage.c: ... here.
20463 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20464 `util/powerpc/ieee1275/grub-mkimage.c'.
20466 2007-10-07 Robert Millan <rmh@aybabtu.com>
20468 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20469 and make it easier to figure out.
20470 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20471 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20472 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20473 leave us with less than HEAP_MIN_SIZE total heap.
20474 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20476 2007-10-03 Robert Millan <rmh@aybabtu.com>
20478 * include/grub/i386/io.h: New file.
20479 * commands/i386/pc/play.c (inb): Removed.
20481 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20483 * term/i386/pc/serial.c (inb): Removed.
20485 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20487 * term/i386/pc/vga.c (inb): Removed.
20489 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20492 2007-10-02 Robert Millan <rmh@aybabtu.com>
20494 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20495 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20496 Reported by Marcin Kurek.
20498 2007-09-07 Robert Millan <rmh@aybabtu.com>
20500 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20501 SmartFirmware version updates (as released by Sven Luther), and avoid
20502 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20503 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20506 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20508 From Hitoshi Ozeki:
20509 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20510 when merging two regions.
20512 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20514 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20515 * normal/completion.c (grub_normal_do_completion): Likewise.
20516 Reported by Hitoshi Ozeki.
20518 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20520 Do not use devices at boot in chainloading.
20522 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20523 (boot_part_addr): Likewise.
20524 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20525 with BOOT_DRIVE and BOOT_PART_ADDR.
20526 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20527 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20529 2007-08-29 Robert Millan <rmh@aybabtu.com>
20531 Patch from Simon Peter <dn.tlp@gmx.net>:
20532 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20533 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20534 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20535 util/i386/pc/grub-setup.c_DEPENDENCIES.
20536 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20537 util/grub-probe.c_DEPENDENCIES.
20538 * conf/powerpc-ieee1275.rmk: Likewise.
20540 2007-08-28 Robert Millan <rmh@aybabtu.com>
20542 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20543 to tell grub-mkdevicemap how to name devices.
20544 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20547 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20548 util/i386/get_disk_name.c.
20549 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20550 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20551 util/ieee1275/get_disk_name.c.
20553 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20555 * DISTLIST: Add util/i386/get_disk_name.c and
20556 util/ieee1275/get_disk_name.c.
20558 * util/grub-mkdevicemap.c: Replace device naming logic with
20559 grub_util_get_disk_name() calls.
20561 2007-08-20 Robert Millan <rmh@aybabtu.com>
20563 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20564 (so that it works for both plural and singular quantities).
20566 2007-08-05 Robert Millan <rmh@aybabtu.com>
20568 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20569 so that [xz] isn't taken into account when determining order.
20571 2007-08-02 Marco Gerards <marco@gnu.org>
20573 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20574 `include/multiboot2.h', `include/grub/elfload.h',
20575 `include/multiboot.h', `include/grub/multiboot.h',
20576 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20577 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20578 `kern/elf.c', `loader/multiboot_loader.c',
20579 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20580 `loader/i386/pc/multiboot2.c',
20581 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20582 `util/i386/pc/grub-mkrescue.in'. Remove
20583 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20584 `include/grub/i386/pc/util/biosdisk.h' and
20585 `include/grub/powerpc/ieee1275/multiboot.h'.
20587 2007-08-02 Bean <bean123ch@gmail.com>
20589 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20590 (ntfs_mod_SOURCES): New variable.
20591 (ntfs_mod_CFLAGS): Likewise.
20592 (ntfs_mod_LDFLAGS): Likewise.
20594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20595 (grub_probe_SOURCES): Likewise.
20596 (grub_emu_SOURCES): Likewise.
20598 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20599 (grub_emu_SOURCES): Likewise.
20601 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20602 (grub_emu_SOURCES): Likewise.
20604 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20606 * fs/ntfs.c: New file.
20608 2007-08-02 Bean <bean123ch@gmail.com>
20610 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20612 * file.h (grub_file): Likewise.
20614 * fshelp.h (grub_fshelp_read_file): Likewise.
20616 * util/i386/pc/grub-setup.c (setup): Likewise.
20617 (save_first_sector): Likewise.
20618 (save_blocklists): Likewise.
20620 * fs/affs.c (grub_affs_read_file): Likewise.
20622 * fs/ext2.c (grub_ext2_read_file): Likewise.
20624 * fs/fat.c (grub_fat_read_data): Likewise.
20626 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20628 * fs/hfs.c (grub_hfs_read_file): Likewise.
20630 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20632 * fs/jfs.c (grub_jfs_read_file): Likewise.
20634 * fs/minix.c (grub_minix_read_file): Likewise.
20636 * fs/sfs.c (grub_sfs_read_file): Likewise.
20638 * fs/ufs.c (grub_ufs_read_file): Likewise.
20640 * fs/xfs.c (grub_xfs_read_file): Likewise.
20642 * command/blocklist.c (read_blocklist): Likewise.
20643 (print_blocklist): Likewise.
20645 2007-08-02 Marco Gerards <marco@gnu.org>
20647 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20650 * disk/host.c: New file.
20652 * util/hostfs.c: Likewise.
20654 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20655 return `GRUB_ERR_BAD_FS'.
20656 * fs/sfs.c (grub_sfs_mount): Likewise.
20657 * fs/xfs.c (grub_xfs_mount): Likewise.
20659 * include/grub/disk.h (enum grub_disk_dev_id): Add
20660 `GRUB_DISK_DEVICE_HOST_ID'.
20662 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20664 2007-07-24 Jerone Young <jerone@gmail.com>
20666 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20667 modules for compilation.
20668 * conf/powerpc-ieee1275.rmk: Likewise.
20670 * include/multiboot.h: Move multiboot definitions to one file. Rename
20671 many definitions to not get grub specific.
20672 * include/multiboot2.h: Create header with multiboot 2 definitions.
20673 * include/grub/multiboot.h: Header for grub specific function
20674 prototypes and definitions.
20675 * include/grub/multiboot2.h: Likewise.
20676 * include/grub/multiboot_loader.h: Likewise.
20677 * include/grub/i386/pc/multiboot.h: Removed.
20678 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20680 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20681 and 2 to allow for one multiboot and module commands.
20682 * loader/multiboot2.c: Add multiboot2 functionality.
20683 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20684 and definition names.
20685 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20687 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20688 ieee1275 specific multiboot2 code.
20690 * kern/i386/pc/startup.S: Change headers and definition names for
20691 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20693 2007-07-22 Robert Millan <rmh@aybabtu.com>
20695 * geninitheader.sh: Process file specified in first parameter rather
20696 than hardcoding grub_modules_init.lst.
20697 * geninit.sh: Likewise. Also, construct header name dynamically rather
20698 than hardcoding grub_modules_init.h.
20700 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20701 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20702 grub_probe_init.[ch] and grub_setup_init.[ch].
20704 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20705 grub_modules_init.h with grub_emu_init.h.
20706 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20707 grub_probe_init.[ch] files.
20708 * conf/i386-efi.rmk: Likewise.
20709 * conf/i386-pc.rmk: Likewise.
20710 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20711 grub_setup_init.[ch] files.
20713 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20714 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20715 to initialize modules rather than a list of hardcoded functions.
20716 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20717 grub_init_all() to initialize modules rather than a list of hardcoded
20720 2007-07-22 Robert Millan <rmh@aybabtu.com>
20722 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20723 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20725 2007-07-22 Robert Millan <rmh@aybabtu.com>
20727 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20728 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20729 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20730 flag when running on SmartFirmware.
20731 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20732 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20735 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20736 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20737 rather than decreasing it.
20739 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20740 there's not enough space to do it, fail in the same way as when it
20741 can't be done because there are no partitions.
20743 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20744 when nvsetenv failed.
20746 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20748 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20749 because this rule is automatically generated.
20750 (grub-mkrescue): Removed for the same reason as above.
20752 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20754 Migrate to GNU General Public License Version 3.
20756 * COPYING: Replaced with the plain text version of GPLv3.
20758 * config.guess: Updated from gnulib.
20759 * config.sub: Likewise.
20761 * geninit.sh: Output a GPLv3 copyright notice.
20762 * geninitheader.sh: Likewise.
20763 * genmodsrc.sh: Likewise.
20764 * gensymlist.sh.in: Likewise.
20766 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20767 * boot/i386/pc/diskboot.S: Likewise.
20768 * boot/i386/pc/pxeboot.S: Likewise.
20769 * commands/blocklist.c: Likewise.
20770 * commands/boot.c: Likewise.
20771 * commands/cat.c: Likewise.
20772 * commands/cmp.c: Likewise.
20773 * commands/configfile.c: Likewise.
20774 * commands/echo.c: Likewise.
20775 * commands/help.c: Likewise.
20776 * commands/ls.c: Likewise.
20777 * commands/search.c: Likewise.
20778 * commands/terminal.c: Likewise.
20779 * commands/test.c: Likewise.
20780 * commands/videotest.c: Likewise.
20781 * commands/i386/cpuid.c: Likewise.
20782 * commands/i386/pc/halt.c: Likewise.
20783 * commands/i386/pc/play.c: Likewise.
20784 * commands/i386/pc/reboot.c: Likewise.
20785 * commands/i386/pc/vbeinfo.c: Likewise.
20786 * commands/i386/pc/vbetest.c: Likewise.
20787 * commands/ieee1275/halt.c: Likewise.
20788 * commands/ieee1275/reboot.c: Likewise.
20789 * commands/ieee1275/suspend.c: Likewise.
20790 * disk/loopback.c: Likewise.
20791 * disk/lvm.c: Likewise.
20792 * disk/raid.c: Likewise.
20793 * disk/efi/efidisk.c: Likewise.
20794 * disk/i386/pc/biosdisk.c: Likewise.
20795 * disk/ieee1275/ofdisk.c: Likewise.
20796 * font/manager.c: Likewise.
20797 * fs/affs.c: Likewise.
20798 * fs/ext2.c: Likewise.
20799 * fs/fat.c: Likewise.
20800 * fs/fshelp.c: Likewise.
20801 * fs/hfs.c: Likewise.
20802 * fs/hfsplus.c: Likewise.
20803 * fs/iso9660.c: Likewise.
20804 * fs/jfs.c: Likewise.
20805 * fs/minix.c: Likewise.
20806 * fs/sfs.c: Likewise.
20807 * fs/ufs.c: Likewise.
20808 * fs/xfs.c: Likewise.
20809 * hello/hello.c: Likewise.
20810 * include/grub/acorn_filecore.h: Likewise.
20811 * include/grub/arg.h: Likewise.
20812 * include/grub/bitmap.h: Likewise.
20813 * include/grub/boot.h: Likewise.
20814 * include/grub/cache.h: Likewise.
20815 * include/grub/device.h: Likewise.
20816 * include/grub/disk.h: Likewise.
20817 * include/grub/dl.h: Likewise.
20818 * include/grub/elfload.h: Likewise.
20819 * include/grub/env.h: Likewise.
20820 * include/grub/err.h: Likewise.
20821 * include/grub/file.h: Likewise.
20822 * include/grub/font.h: Likewise.
20823 * include/grub/fs.h: Likewise.
20824 * include/grub/fshelp.h: Likewise.
20825 * include/grub/gzio.h: Likewise.
20826 * include/grub/hfs.h: Likewise.
20827 * include/grub/kernel.h: Likewise.
20828 * include/grub/loader.h: Likewise.
20829 * include/grub/lvm.h: Likewise.
20830 * include/grub/misc.h: Likewise.
20831 * include/grub/mm.h: Likewise.
20832 * include/grub/net.h: Likewise.
20833 * include/grub/normal.h: Likewise.
20834 * include/grub/parser.h: Likewise.
20835 * include/grub/partition.h: Likewise.
20836 * include/grub/pc_partition.h: Likewise.
20837 * include/grub/raid.h: Likewise.
20838 * include/grub/rescue.h: Likewise.
20839 * include/grub/script.h: Likewise.
20840 * include/grub/setjmp.h: Likewise.
20841 * include/grub/symbol.h: Likewise.
20842 * include/grub/term.h: Likewise.
20843 * include/grub/terminfo.h: Likewise.
20844 * include/grub/tparm.h: Likewise.
20845 * include/grub/types.h: Likewise.
20846 * include/grub/video.h: Likewise.
20847 * include/grub/efi/api.h: Likewise.
20848 * include/grub/efi/chainloader.h: Likewise.
20849 * include/grub/efi/console.h: Likewise.
20850 * include/grub/efi/console_control.h: Likewise.
20851 * include/grub/efi/disk.h: Likewise.
20852 * include/grub/efi/efi.h: Likewise.
20853 * include/grub/efi/pe32.h: Likewise.
20854 * include/grub/efi/time.h: Likewise.
20855 * include/grub/i386/linux.h: Likewise.
20856 * include/grub/i386/setjmp.h: Likewise.
20857 * include/grub/i386/types.h: Likewise.
20858 * include/grub/i386/efi/kernel.h: Likewise.
20859 * include/grub/i386/efi/loader.h: Likewise.
20860 * include/grub/i386/efi/time.h: Likewise.
20861 * include/grub/i386/pc/biosdisk.h: Likewise.
20862 * include/grub/i386/pc/boot.h: Likewise.
20863 * include/grub/i386/pc/chainloader.h: Likewise.
20864 * include/grub/i386/pc/console.h: Likewise.
20865 * include/grub/i386/pc/init.h: Likewise.
20866 * include/grub/i386/pc/kernel.h: Likewise.
20867 * include/grub/i386/pc/loader.h: Likewise.
20868 * include/grub/i386/pc/memory.h: Likewise.
20869 * include/grub/i386/pc/multiboot.h: Likewise.
20870 * include/grub/i386/pc/serial.h: Likewise.
20871 * include/grub/i386/pc/time.h: Likewise.
20872 * include/grub/i386/pc/vbe.h: Likewise.
20873 * include/grub/i386/pc/vbeblit.h: Likewise.
20874 * include/grub/i386/pc/vbefill.h: Likewise.
20875 * include/grub/i386/pc/vbeutil.h: Likewise.
20876 * include/grub/i386/pc/vga.h: Likewise.
20877 * include/grub/ieee1275/ieee1275.h: Likewise.
20878 * include/grub/ieee1275/ofdisk.h: Likewise.
20879 * include/grub/powerpc/libgcc.h: Likewise.
20880 * include/grub/powerpc/setjmp.h: Likewise.
20881 * include/grub/powerpc/types.h: Likewise.
20882 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20883 * include/grub/powerpc/ieee1275/console.h: Likewise.
20884 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20885 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20886 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20887 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20888 * include/grub/powerpc/ieee1275/time.h: Likewise.
20889 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20890 * include/grub/sparc64/libgcc.h: Likewise.
20891 * include/grub/sparc64/setjmp.h: Likewise.
20892 * include/grub/sparc64/types.h: Likewise.
20893 * include/grub/sparc64/ieee1275/console.h: Likewise.
20894 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20895 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20896 * include/grub/sparc64/ieee1275/time.h: Likewise.
20897 * include/grub/util/biosdisk.h: Likewise.
20898 * include/grub/util/getroot.h: Likewise.
20899 * include/grub/util/lvm.h: Likewise.
20900 * include/grub/util/misc.h: Likewise.
20901 * include/grub/util/raid.h: Likewise.
20902 * include/grub/util/resolve.h: Likewise.
20903 * io/gzio.c: Likewise.
20904 * kern/device.c: Likewise.
20905 * kern/disk.c: Likewise.
20906 * kern/dl.c: Likewise.
20907 * kern/elf.c: Likewise.
20908 * kern/env.c: Likewise.
20909 * kern/err.c: Likewise.
20910 * kern/file.c: Likewise.
20911 * kern/fs.c: Likewise.
20912 * kern/loader.c: Likewise.
20913 * kern/main.c: Likewise.
20914 * kern/misc.c: Likewise.
20915 * kern/mm.c: Likewise.
20916 * kern/parser.c: Likewise.
20917 * kern/partition.c: Likewise.
20918 * kern/rescue.c: Likewise.
20919 * kern/term.c: Likewise.
20920 * kern/efi/efi.c: Likewise.
20921 * kern/efi/init.c: Likewise.
20922 * kern/efi/mm.c: Likewise.
20923 * kern/i386/dl.c: Likewise.
20924 * kern/i386/efi/init.c: Likewise.
20925 * kern/i386/efi/startup.S: Likewise.
20926 * kern/i386/pc/init.c: Likewise.
20927 * kern/i386/pc/lzo1x.S: Likewise.
20928 * kern/i386/pc/startup.S: Likewise.
20929 * kern/ieee1275/ieee1275.c: Likewise.
20930 * kern/powerpc/cache.S: Likewise.
20931 * kern/powerpc/dl.c: Likewise.
20932 * kern/powerpc/ieee1275/cmain.c: Likewise.
20933 * kern/powerpc/ieee1275/crt0.S: Likewise.
20934 * kern/powerpc/ieee1275/init.c: Likewise.
20935 * kern/powerpc/ieee1275/openfw.c: Likewise.
20936 * kern/sparc64/cache.S: Likewise.
20937 * kern/sparc64/dl.c: Likewise.
20938 * kern/sparc64/ieee1275/init.c: Likewise.
20939 * kern/sparc64/ieee1275/openfw.c: Likewise.
20940 * loader/efi/chainloader.c: Likewise.
20941 * loader/efi/chainloader_normal.c: Likewise.
20942 * loader/i386/efi/linux.c: Likewise.
20943 * loader/i386/efi/linux_normal.c: Likewise.
20944 * loader/i386/pc/chainloader.c: Likewise.
20945 * loader/i386/pc/chainloader_normal.c: Likewise.
20946 * loader/i386/pc/linux.c: Likewise.
20947 * loader/i386/pc/linux_normal.c: Likewise.
20948 * loader/i386/pc/multiboot.c: Likewise.
20949 * loader/i386/pc/multiboot_normal.c: Likewise.
20950 * loader/powerpc/ieee1275/linux.c: Likewise.
20951 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20952 * normal/arg.c: Likewise.
20953 * normal/cmdline.c: Likewise.
20954 * normal/command.c: Likewise.
20955 * normal/completion.c: Likewise.
20956 * normal/execute.c: Likewise.
20957 * normal/function.c: Likewise.
20958 * normal/lexer.c: Likewise.
20959 * normal/main.c: Likewise.
20960 * normal/menu.c: Likewise.
20961 * normal/menu_entry.c: Likewise.
20962 * normal/misc.c: Likewise.
20963 * normal/parser.y: Likewise.
20964 * normal/script.c: Likewise.
20965 * normal/i386/setjmp.S: Likewise.
20966 * normal/powerpc/setjmp.S: Likewise.
20967 * normal/sparc64/setjmp.S: Likewise.
20968 * partmap/acorn.c: Likewise.
20969 * partmap/amiga.c: Likewise.
20970 * partmap/apple.c: Likewise.
20971 * partmap/gpt.c: Likewise.
20972 * partmap/pc.c: Likewise.
20973 * partmap/sun.c: Likewise.
20974 * term/gfxterm.c: Likewise.
20975 * term/terminfo.c: Likewise.
20976 * term/efi/console.c: Likewise.
20977 * term/i386/pc/console.c: Likewise.
20978 * term/i386/pc/serial.c: Likewise.
20979 * term/i386/pc/vesafb.c: Likewise.
20980 * term/i386/pc/vga.c: Likewise.
20981 * term/ieee1275/ofconsole.c: Likewise.
20982 * util/biosdisk.c: Likewise.
20983 * util/console.c: Likewise.
20984 * util/genmoddep.c: Likewise.
20985 * util/getroot.c: Likewise.
20986 * util/grub-emu.c: Likewise.
20987 * util/grub-mkdevicemap.c: Likewise.
20988 * util/grub-probe.c: Likewise.
20989 * util/lvm.c: Likewise.
20990 * util/misc.c: Likewise.
20991 * util/raid.c: Likewise.
20992 * util/resolve.c: Likewise.
20993 * util/update-grub.in: Likewise.
20994 * util/update-grub_lib.in: Likewise.
20995 * util/grub.d/00_header.in: Likewise.
20996 * util/grub.d/10_hurd.in: Likewise.
20997 * util/grub.d/10_linux.in: Likewise.
20998 * util/i386/efi/grub-install.in: Likewise.
20999 * util/i386/efi/grub-mkimage.c: Likewise.
21000 * util/i386/pc/grub-install.in: Likewise.
21001 * util/i386/pc/grub-mkimage.c: Likewise.
21002 * util/i386/pc/grub-mkrescue.in: Likewise.
21003 * util/i386/pc/grub-setup.c: Likewise.
21004 * util/i386/pc/misc.c: Likewise.
21005 * util/powerpc/ieee1275/grub-install.in: Likewise.
21006 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21007 * util/powerpc/ieee1275/misc.c: Likewise.
21008 * video/bitmap.c: Likewise.
21009 * video/video.c: Likewise.
21010 * video/i386/pc/vbe.c: Likewise.
21011 * video/i386/pc/vbeblit.c: Likewise.
21012 * video/i386/pc/vbefill.c: Likewise.
21013 * video/i386/pc/vbeutil.c: Likewise.
21014 * video/readers/tga.c: Likewise.
21016 2007-07-02 Robert Millan <rmh@aybabtu.com>
21018 * conf/i386-efi.rmk: Replace obsolete reference to
21019 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21020 with util/getroot.c.
21021 * conf/powerpc-ieee1275.rmk: Likewise.
21022 * conf/sparc64-ieee1275.rmk: Likewise.
21024 * util/grub-emu.c (main): Fix unchecked pointer handling.
21026 2007-07-02 Robert Millan <rmh@aybabtu.com>
21028 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21029 invocation to fail, in order to support partition-less media.
21031 * util/i386/pc/grub-install.in: Likewise.
21033 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21034 which fs or partmap modules are needed (akin to its sister scripts).
21036 Also use grub-probe to get rid of unportable /proc/mounts check.
21038 Print the same informational message that the other scripts do, before
21041 2007-06-23 Robert Millan <rmh@aybabtu.com>
21043 * util/update-grub_lib.in (font_path): New function. Determine whether
21044 a font file can be found and, if so, echo the GRUB path to it.
21046 * util/update-grub.in: Handle multiple terminals depending on user
21047 input, platform availability and font file presence. Propagate
21048 variables of our findings to /etc/grub.d/ children.
21050 * util/grub.d/00_header.in: Handle multiple terminals, based on
21051 environment setup by update-grub.
21053 2007-06-23 Robert Millan <rmh@aybabtu.com>
21055 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
21057 2007-06-21 Robert Millan <rmh@aybabtu.com>
21059 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21060 indicate end of data section in kernel image.
21061 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21062 GRUB_KERNEL_MACHINE_DATA_END.
21064 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21066 * kern/i386/efi/startup.S: Likewise.
21068 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21069 during image generation. Implement --prefix option to override this
21071 * util/i386/efi/grub-mkimage.c: Likewise.
21073 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21074 code to make path relative to its root into a separate function.
21076 * util/i386/pc/grub-install.in: Use newly provided
21077 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21078 pass the result to grub-install --prefix.
21080 2007-06-13 Robert Millan <rmh@aybabtu.com>
21082 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21083 DEFAULT_DEVICE_MAP.
21084 * util/grub-emu.c: Use above definitions from misc.h instead of
21086 * util/grub-mkdevicemap.c: Likewise.
21087 * util/i386/pc/grub-setup.c: Likewise.
21088 * util/grub-probe.c: Likewise.
21089 (probe): Abort with grub_util_error() when either
21090 grub_guess_root_device or grub_util_get_grub_dev fails.
21092 2007-06-12 Robert Millan <rmh@aybabtu.com>
21094 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21095 "pager" assignment.
21096 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21098 * util/grub-probe.c (probe): Likewise for "drive_name".
21100 2007-06-11 Robert Millan <rmh@aybabtu.com>
21102 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21103 not just the cdrom one.
21105 2007-06-11 Robert Millan <rmh@aybabtu.com>
21107 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21108 Add --pkglibdir=DIR option to override pkglibdir.
21109 Mention --image-type=TYPE in help output.
21110 Fix --grub-mkimage (it was a no-op).
21111 Abort gracefully when no parameter is given.
21113 2007-06-11 Robert Millan <rmh@aybabtu.com>
21115 * util/i386/pc/grub-mkrescue.in: New file.
21116 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21117 * Makefile.in: Handle bin_SCRIPTS.
21119 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21121 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21122 list of video modes.
21124 2007-06-06 Robert Millan <rmh@aybabtu.com>
21126 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21127 file doesn't exist, or if it is in a filesystem grub can't read.
21129 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21130 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21131 header comment to fit in 80 columns when the variables are resolved.
21133 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21134 could be identified by update-grub. Remove redundant check for
21135 unifont.pff existence (since convert_system_path_to_grub_path now
21138 2007-06-04 Robert Millan <rmh@aybabtu.com>
21140 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21142 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21144 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21146 2007-06-04 Robert Millan <rmh@aybabtu.com>
21148 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21150 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21151 grub_apple_partition_map_fini.
21154 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21155 to access >2 TiB disks).
21157 Print disk->total_sectors with %llu instead of %lu, since this
21158 variable is always 64-bit (prevents wrong disk size from being displayed
21159 on either >2 TiB disk or big-endian CPU).
21161 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21162 into a generic case that supports all (sane) partition maps.
21164 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21167 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21168 and grub_apple_partition_map_fini() after that.
21170 2007-06-01 Robert Millan <rmh@aybabtu.com>
21172 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21174 * util/grub.d/00_header.in: Only enable gfxterm when
21175 convert_system_path_to_grub_path() succeeds.
21177 2007-05-20 Robert Millan <rmh@aybabtu.com>
21179 * util/update-grub_lib.in: New file.
21180 * DISTLIST: Add update-grub_lib.in.
21181 * conf/common.rmk: Generate update-grub_lib and install it in
21183 * Makefile.in: Add install routine for $(lib_DATA).
21185 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21186 function provided by update-grub_lib to support arbitrary paths of
21188 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21189 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21191 2007-05-19 Robert Millan <rmh@aybabtu.com>
21193 * commands/i386/cpuid.c: New module.
21194 * DISTLIST: Add it.
21195 * conf/i386-efi.rmk: Enable cpuid.mod.
21196 * conf/i386-pc.rmk: Likewise.
21198 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21200 * kern/disk.c (grub_disk_read): Check return value of
21203 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21205 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21207 * disk/raid.c (grub_raid_open): Likewise.
21209 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21211 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21212 stack instead of on the heap.
21214 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21215 before doing a read on it.
21217 * configure.ac: Only use -fno-stack-protector for the target
21220 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21222 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21223 __attribute_ ((unused)) to mode_type argument.
21225 * util/getroot.c (grub_guess_root_device): Fix #endif.
21227 * kern/misc.c (memcmp): Fix prototype.
21229 * include/grub/partition.h [GRUB_UTIL]
21230 (grub_gpt_partition_map_init): Add prototype.
21231 (grub_gpt_partition_map_fini): Likewise.
21233 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21234 at the right place.
21236 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21237 (grub_fat_read_data): Likewise.
21238 (grub_fat_find_dir): Likewise.
21240 * font/manager.c (find_glyph): Make table a const.
21241 (grub_font_get_glyph): Remove bitmap from if statement.
21243 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21245 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21246 code, first search for device in /dev/mapper, then in /dev.
21247 (grub_util_get_grub_dev): New function.
21248 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21250 * util/grub-probe.c (probe): Remove check for RAID, call
21251 grub_util_get_grub_dev() instead of
21252 grub_util_biosdisk_get_grub_dev().
21253 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21254 grub_util_biosdisk_get_grub_dev().
21255 * util/i386/pc/grub-setup.c (main): Likewise.
21257 2007-05-16 Robert Millan <rmh@aybabtu.com>
21259 * DISTLIST: Update for the latest changes.
21260 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21261 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21262 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21263 grub/util/biosdisk.h.
21264 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21265 grub/util/biosdisk.h.
21267 2007-05-16 Robert Millan <rmh@aybabtu.com>
21269 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21271 2007-05-16 Robert Millan <rmh@aybabtu.com>
21273 * util/i386/efi/grub-install.in: New.
21274 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21275 newly added grub-install.
21276 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21278 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21279 grub/util/biosdisk.h.
21280 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21281 grub/util/biosdisk.h.
21283 2007-05-16 Robert Millan <rmh@aybabtu.com>
21285 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21286 * include/grub/util/biosdisk.h: ... here.
21287 * util/i386/pc/biosdisk.c: Moved to ...
21288 * util/biosdisk.c: ... here.
21289 * util/i386/pc/getroot.c: Moved to ...
21290 * util/getroot.c: ... here.
21291 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21292 * util/grub-mkdevicemap.c: ... here.
21293 * util/i386/pc/grub-probe.c: Moved to ...
21294 * util/grub-probe.c: ... here.
21296 2007-05-15 Robert Millan <rmh@aybabtu.com>
21298 * util/update-grub.in: Remove duplicated line in grub.cfg header
21301 2007-05-13 Robert Millan <rmh@aybabtu.com>
21303 * util/update-grub.in: Fix a few assumptions about the devices holding
21304 /, /boot and /boot/grub being the same.
21305 * util/grub.d/00_header.in: Likewise.
21306 * util/grub.d/10_hurd.in: Likewise.
21307 * util/grub.d/10_linux.in: Likewise.
21309 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21310 patterns. Use that to define the `.old' suffix as older than `'.
21312 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21314 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21315 the grub.cfg header message.
21317 2007-05-11 Robert Millan <rmh@aybabtu.com>
21319 * util/update-grub.in: Create device.map if it doesn't already exist,
21320 before attempting to run grub-probe.
21321 Check for grub-probe and grub-mkdevicemap with the same code
21322 grub-install is using.
21325 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21327 * Makefile.in: Add the datarootdir autoconf variable.
21329 2007-05-09 Robert Millan <rmh@aybabtu.com>
21331 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21332 fail gracefully if dev->disk->partition == NULL.
21334 2007-05-07 Robert Millan <rmh@aybabtu.com>
21336 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21337 determine partition map module.
21338 * util/i386/pc/grub-install.in: Use this feature to decide which
21339 partition module to load, instead of hardcoding pc and gpt.
21341 2007-05-07 Robert Millan <rmh@aybabtu.com>
21343 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21344 source directory differs from build directory.
21346 2007-05-05 Robert Millan <rmh@aybabtu.com>
21348 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21351 2007-05-05 Robert Millan <rmh@aybabtu.com>
21353 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21355 2007-05-05 Robert Millan <rmh@aybabtu.com>
21357 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21358 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21360 2007-05-05 Robert Millan <rmh@aybabtu.com>
21362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21363 (grub_probe_SOURCES): Likewise.
21364 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21365 GPT and initialize dos_part and bsd_part accordingly.
21366 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21368 (main): Activate gpt module for use during partition identification,
21369 and deactivate it afterwards.
21370 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21371 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21372 partition identification, and deactivate it afterwards.
21374 2007-05-05 Robert Millan <rmh@aybabtu.com>
21376 * term/i386/pc/console.c (grub_console_fini): Call
21377 grub_term_set_current() before grub_term_unregister().
21379 2007-05-04 Robert Millan <rmh@aybabtu.com>
21381 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21382 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21383 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21384 and update-grub_DATA.
21385 * conf/common.rmk: Build and install update-grub components.
21386 * conf/common.mk: Regenerate.
21387 * util/update-grub.in: New. Core of update-grub.
21388 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21389 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21390 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21391 * util/grub.d/README: New. Document grub.d directory layout.
21393 2007-05-01 Robert Millan <rmh@aybabtu.com>
21395 * util/grub-emu.c: Move initialization functions
21396 grub_util_biosdisk_init() and grub_init_all() before
21397 grub_util_biosdisk_get_grub_dev(), which relies on them.
21399 2007-04-19 Robert Millan <rmh@aybabtu.com>
21401 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21404 2007-04-18 Jerone Young <jerone@gmail.com>
21406 * kernel/elf.c: Add missing parenthesis for conditional statement
21409 2007-04-10 Jerone Young <jerone@gmail.com>
21411 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21412 continue on and look for device node with real device name.
21414 2007-04-10 Jerone Young <jerone@gmail.com>
21416 * configure.ac: Add argument for autoconf to use transformation
21418 * Makefile.in: Add autoconf package transformation code.
21419 * util/i386/pc/grub-install.in: Likewise.
21420 * util/powerpc/ieee1275/grub-install.in: Likewise.
21422 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21424 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21425 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21426 (EXT2_REVISION): Likewise.
21427 (EXT2_INODE_SIZE): Likewise.
21428 (struct grub_ext2_block_group): Added a missing member
21430 (grub_ext2_read_inode): Divide by the inode size in a superblock
21431 instead of 128 to obtain INODES_PER_BLOCK.
21432 Use the macro EXT2_INODE_SIZE instead of directly using
21433 SBLOCK->INODE_SIZE.
21435 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21437 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21438 superblock instead of the structure size to compute an
21439 offset. This fixes the problem that GRUB could not read a
21440 filesystem when inode size is different from 128-byte.
21442 2007-03-05 Marco Gerards <marco@gnu.org>
21444 * normal/main.c (read_config_file): When "menu" is not set, create
21445 an initial context.
21447 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21449 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21450 (HEAP_LIMIT): New macro.
21451 (grub_claim_heap): Claim memory up to `heaplimit'.
21453 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21455 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21456 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21457 (_start): Likewise.
21458 (grub_arch_modules_addr): Return address after `_end'.
21459 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21460 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21461 (add_segments): Calculate `_end' from phdr size and location.
21462 (ALIGN_UP): Moved to ...
21463 * include/grub/misc.h: here.
21464 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21466 (GRUB_IEEE1275_MODULE_BASE): Removed.
21468 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21470 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21473 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21475 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21477 (grub_elf64_load_hook_t): Likewise.
21478 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21481 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21483 * kern/mm.c: Update copyright.
21484 (grub_mm_debug): Correct syntax error.
21485 (grub_mm_dump_free): New function.
21486 (grub_debug_free): Call `grub_free'.
21487 * include/grub/mm.h: Update copyright.
21488 (grub_mm_dump_free): Add declaration.
21490 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21492 * include/grub/ieee1275/ieee1275.h: Update copyright.
21493 * kern/powerpc/ieee1275/init.c: Likewise.
21494 * kern/powerpc/ieee1275/openfw.c: Likewise.
21496 * loader/powerpc/ieee1275/linux.c: Likewise.
21497 * include/grub/elfload.h: Likewise.
21498 * kern/elf.c: Likewise.
21499 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21501 (grub_elf64_load): Likewise.
21502 (grub_elf32_load_segment): Move to a nested function.
21503 (grub_elf64_load_segment): Likewise.
21505 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21507 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21509 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21510 (grub_heap_len): Likewise.
21511 (HEAP_SIZE): New macro.
21512 (grub_claim_heap): New function.
21513 (grub_machine_init): Don't claim heap directly. Call
21515 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21516 (grub_available_iterate): New function.
21518 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21520 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21521 * configure.ac: Use it for testing the HOST and TARGET compilers.
21523 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21525 * Makefile.in (enable_grub_emu): New variable.
21526 * configure.ac (--enable-grub-emu): New option.
21527 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21528 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21529 * conf/i386-pc.rmk: Likewise.
21530 * conf/powerpc-ieee1275.rmk: Likewise.
21531 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21533 2006-12-12 Marco Gerards <marco@gnu.org>
21535 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21537 * kern/env.c (grub_env_unset): Don't free the member `value' when
21538 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21541 * normal/main.c (current_menu): Removed.
21542 (free_menu): Unset the `menu' environment variable.
21543 (grub_normal_menu_addentry): Make use of the environment variable
21544 `menu', instead of using the global `current_menu'. Allocate
21545 memory for the sourcecode of this entry.
21546 (read_config_file): New argument `nested', changed all callers.
21547 Only in the case of a new context, initialize a new menu. Set the
21548 `menu' environment variable.
21549 (grub_normal_execute): Don't set and unset the environment
21550 variable `menu' here anymore. Only free the menu when leaving the
21553 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21556 2006-12-11 Marco Gerards <marco@gnu.org>
21558 * normal/menu_entry.c (run): Fix off by one bug so the last line
21559 is executed. Move the loader check to outside the loop.
21561 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21563 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21565 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21567 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21568 the number of sectors. Reported by Andrey Shuvikov
21569 <mr_hyro@yahoo.com>.
21571 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21573 * kern/disk.c (grub_disk_read): When there is a read error, always
21574 try to read only the necessary data.
21576 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21578 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21580 [GRUB_UTIL] (grub_raid_fini): Likewise.
21581 [GRUB_UTIL] (grub_lvm_init): Likewise.
21582 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21583 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21584 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21585 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21586 and grub_raid_fini().
21588 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21590 * include/grub/types.h (__unused): Rename to UNUSED.
21591 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21592 (grub_elf64_size): Likewise.
21594 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21596 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21597 grub_error_push and grub_error_pop in the error-handling path.
21598 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21601 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21603 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21604 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21606 (kernel_elf_SOURCES): Likewise.
21607 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21608 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21609 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21610 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21611 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21612 (elf_mod_SOURCES): New variable.
21613 (elf_mod_CFLAGS): Likewise.
21614 (elf_mod_LDFLAGS): Likewise.
21615 * include/grub/types.h (__unused): New macro.
21616 * include/grub/elfload.h: New file.
21617 * kern/elf.c: Likewise.
21618 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21619 (ELF32_LOADMASK): New macro.
21620 (ELF64_LOADMASK): Likewise.
21621 (vmlinux): Removed.
21622 (grub_linux_load32): New function.
21623 (grub_linux_load64): Likewise.
21624 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21625 Use grub_elf_t instead of grub_file_t.
21627 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21629 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21630 `catch_result' to struct set_color_args.
21632 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21634 * normal/menu.c: Include grub/script.h.
21635 * normal/menu_entry.c: Likewise.
21636 * include/grub/normal.h: Do not include grub/script.h.
21638 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21640 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21642 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21644 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21646 (grub_disk_close): Print debug messages when closing a disk.
21647 (grub_disk_read): Print debug messages when disk read fails.
21648 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21650 * kern/partition.c: Include misc.h.
21651 (grub_partition_iterate): Print debug messages when detecting
21654 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21656 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21658 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21660 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21662 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21663 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21665 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21667 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21668 instead of sizeof(lv). Patch by Michael Guntsche.
21670 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21672 * disk/lvm.c: Rename VGS to VG_LIST.
21673 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21674 (grub_lvm_open): Likewise.
21675 Thanks to Michael Guntsche for finding this bug.
21677 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21679 * configure.ac (AC_INIT): Bumped to 1.95.
21681 2006-10-14 Robert Millan <rmh@aybabtu.com>
21683 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21684 with "/dev/.static/dev/md".
21686 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21688 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21689 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21690 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21691 DRIVE_NAME are always freed.
21693 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21694 DOS_PART, as a DOS partition is counted from one instead of zero
21695 now. Reported by Robert Millan.
21697 2006-10-14 Robert Millan <rmh@aybabtu.com>
21699 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21700 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21701 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21702 string returned by grub_guess_root_device.
21703 * util/i386/pc/grub-setup.c: Likewise.
21704 * util/i386/pc/grub-probefs.c: Likewise.
21706 * util/i386/pc/grub-probefs.c: Rename to ...
21707 * util/i386/pc/grub-probe.c: ... this.
21708 * DISTLIST: Remove grub-probefs, add grub-probe.
21709 * conf/i386-efi.rmk: Likewise.
21710 * conf/i386-pc.rmk: Likewise.
21711 * util/i386/pc/grub-install.in: Likewise.
21713 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21714 choose which information we want to print.
21716 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21718 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21719 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21720 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21721 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21722 video/readers/tga.c and video/i386/pc/vbeutil.c.
21724 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21726 Added support for RAID and LVM.
21728 * disk/lvm.c: New file.
21729 * disk/raid.c: Likewise.
21730 * include/grub/lvm.h: Likewise.
21731 * include/grub/raid.h: Likewise.
21732 * include/grub/util/lvm.h: Likewise.
21733 * include/grub/util/raid.h: Likewise.
21734 * util/lvm.c: Likewise.
21735 * util/raid.c: Likewise.
21737 * include/grub/disk.h (grub_disk_dev_id): Add
21738 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21739 (grub_disk_get_size): New prototype.
21740 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21741 returns a partition.
21742 (grub_disk_get_size): New function.
21744 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21745 verbatim if grub_install_dos_part is -2.
21747 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21750 * util/i386/pc/grub-setup.c (setup): New argument
21751 MUST_EMBED. Force embedding of GRUB when the argument is
21752 true. Close FILE before returning.
21753 (main): Add support for RAID and LVM.
21755 * conf/common.rmk: Add RAID and LVM modules.
21756 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21758 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21760 * kern/misc.c (grub_strstr): New function.
21761 * include/grub/misc.h (grub_strstr): New prototype.
21763 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21765 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21767 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21769 * kern/misc.c (grub_strtoull): Guess the base only if not
21772 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21774 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21777 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21779 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21782 Remove `flags' argument. All callers changed.
21783 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21784 (IEEE1275_IHANDLE_INVALID): New variable.
21785 (IEEE1275_CELL_INVALID): New variable.
21786 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21787 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21788 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21789 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21790 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21791 codes from Open Firmware. All callers updated.
21792 (grub_ieee1275_next_property): Directly return Open Firmware return
21794 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21795 Standardize error checking from `grub_ieee1275_get_property'.
21796 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21797 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21799 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21801 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21802 `instance_to_package_args' to `instance_to_path_args'.
21804 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21805 `grub_ieee1275_chosen'.
21807 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21808 `grub_ieee1275_interpret'.
21810 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21812 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21814 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21816 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21817 (__cmpdi): Likewise.
21819 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21820 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21823 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21825 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21826 to type `grub_ssize_t'.
21827 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21829 2006-09-22 Marco Gerards <marco@gnu.org>
21831 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21834 2006-09-22 Marco Gerards <marco@gnu.org>
21836 * commands/echo.c: New file.
21838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21840 * conf/common.rmk (echo_mod_SOURCES): New variable.
21841 (echo_mod_CFLAGS): Likewise.
21842 (echo_mod_LDFLAGS): Likewise.
21844 2006-09-22 Marco Gerards <marco@gnu.org>
21846 * normal/main.c (get_line): Malloc memory instead of using
21847 preallocated memory. Removed the arguments `cmdline' and
21848 `max_len'. Updated all callers.
21850 2006-09-22 Marco Gerards <marco@gnu.org>
21852 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21853 (normal_mod_DEPENDENCIES): Likewise.
21855 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21856 (normal_mod_DEPENDENCIES): Likewise.
21858 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21860 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21862 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21864 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21865 (normal_mod_DEPENDENCIES): Likewise.
21866 * conf/i386-pc.mk: Regenerate.
21867 * conf/i386-efi.mk: Likewise
21868 * conf/common.mk: Likewise.
21869 * conf/powerpc-ieee1275.mk: Likewise.
21870 * conf/sparc64-ieee1275.mk: Likewise.
21872 2006-09-22 Robert Millan <rmh@aybabtu.com>
21874 Sync with i386 version.
21875 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21876 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21878 2006-09-21 Robert Millan <rmh@aybabtu.com>
21880 Import from GRUB Legacy (lib/device.c):
21881 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21882 (init_device_map) [__linux__]: Add support for I2O devices.
21884 2006-09-14 Marco Gerards <marco@gnu.org>
21886 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21889 2006-09-14 Robert Millan <rmh@aybabtu.com>
21891 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21894 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21896 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21897 before adding it to device.map.
21899 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21901 * genmk.rb: Let GCC generate dependencies the first time it
21902 compiles a file; using the -MD option.
21903 * conf/common.mk: Regenerate.
21904 * conf/i386-pc.mk: Likewise.
21905 * conf/i386-efi.mk: Likewise.
21906 * conf/powerpc-ieee1275.mk: Likewise.
21907 * conf/sparc64-ieee1275.mk: Likewise.
21909 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21911 Move the prototypes of grub_setjmp and grub_longjmp to
21912 cpu/setjmp.h, so that each architecture may specify different
21915 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21916 (grub_longjmp): Likewise.
21917 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21918 (grub_longjmp): Likewise.
21919 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21920 (grub_longjmp): Likewise.
21922 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21923 [!GRUB_UTIL] (grub_longjmp): Removed.
21925 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21927 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21928 "color!" method does not return any value.
21930 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21932 * include/grub/bitmap.h: New file.
21934 * include/grub/i386/pc/vbeutil.h: Likewise.
21936 * video/bitmap.c: Likewise.
21938 * video/readers/tga.c: Likewise.
21940 * video/i386/pc/vbeutil.c: Likewise.
21942 * commands/videotest.c: Code cleanup and updated to reflect to new
21945 * term/gfxterm.c: Likewise.
21947 * video/video.c: Likewise.
21949 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21950 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21951 (bitmap_mod_SOURCES): New entry.
21952 (bitmap_mod_CFLAGS): Likewise.
21953 (bitmap_mod_LDFLAGS): Likewise.
21954 (tga_mod_SOURCES): Likewise.
21955 (tga_mod_CFLAGS): Likewise.
21956 (tga_mod_LDFLAGS): Likewise.
21958 * include/grub/video.h (grub_video_blit_operators): New enum type.
21959 (grub_video_render_target): Changed as forward declaration and moved
21960 actual definition to be video driver specific.
21961 (grub_video_adapter.blit_bitmap): Added blitting operator.
21962 (grub_video_adapter.blit_render_target): Likewise.
21963 (grub_video_blit_bitmap): Likewise.
21964 (grub_video_blit_render_target): Likewise.
21966 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21967 driver specific render target definition.
21968 (grub_video_vbe_map_rgba): Added driver internal helper.
21969 (grub_video_vbe_unmap_color): Updated to use
21970 grub_video_i386_vbeblit_info.
21971 (grub_video_vbe_get_video_ptr): Likewise.
21973 * include/grub/i386/pc/vbeblit.h
21974 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21975 grub_video_i386_vbeblit_info.
21976 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21977 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21978 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21979 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21980 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21981 (grub_video_i386_vbeblit_index_index): Likewise.
21982 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21983 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21984 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21985 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21987 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21990 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21991 include/grub/i386/pc/vbeblit.h.
21993 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21994 Updated to use grub_video_i386_vbeblit_info.
21995 (grub_video_i386_vbefill_R8G8B8): Likewise.
21996 (grub_video_i386_vbefill_index): Likewise.
21997 (grub_video_i386_vbefill): Added generic filler.
21999 * video/i386/pc/vbefill.c: Updated to reflect changes on
22000 include/grub/i386/pc/vbefill.h.
22002 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22003 grub_video_i386_vbeblit_info.
22004 (grub_video_vbe_unmap_color): Likewise.
22005 (grub_video_vbe_blit_glyph): Likewise.
22006 (grub_video_vbe_scroll): Likewise.
22007 (grub_video_vbe_draw_pixel): Removed function.
22008 (grub_video_vbe_get_pixel): Likewise.
22009 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22010 updated code to use it.
22011 (common_blitter): Added common blitter for render target and bitmap.
22012 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22013 (grub_video_vbe_blit_render_target): Likewise.
22015 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
22017 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22018 is in text mode if there is no console control protocol instance
22021 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22023 * include/grub/video.h: Code cleanup.
22025 * include/grub/i386/pc/vbe.h: Likewise.
22027 * video/i386/pc/vbe.c: Likewise.
22029 * video/i386/pc/vbeblit.c: Likewise.
22031 * video/i386/pc/vbefill.c: Likewise.
22033 * video/video.c: Likewise. Also added more comments.
22035 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22037 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22038 (struct grub_biosdisk_dap): Likewise.
22040 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22041 linkage settings for all functions.
22043 2006-07-12 Marco Gerards <marco@gnu.org>
22045 * configure.ac (--enable-mm-debug): Fix typo.
22047 * genkernsyms.sh.in: Use proper quoting for `CC'.
22049 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22051 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22052 (normal_mod_ASFLAGS): Remove "-m32".
22054 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22056 * util/misc.c: Include config.h.
22057 [!HAVE_MEMALIGN]: Do not include malloc.h.
22058 (grub_memalign): Use posix_memalign, if present. Then, use
22059 memalign, if present. Otherwise, emit an error.
22061 * util/grub-emu.c: Do not include malloc.h.
22063 * include/grub/util/misc.h: Include unistd.h. This is required for
22064 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22065 D. Eades III <hde@foobar-qux.org>.
22067 * configure.ac (AC_GNU_SOURCE): Added.
22068 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22071 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22073 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22074 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22076 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22078 * include/grub/types.h (grub_host_addr_t): Rename to
22079 grub_target_addr_t.
22080 (grub_host_off_t): Rename to grub_target_off_t.
22081 (grub_host_size_t): Rename to grub_target_size_t.
22082 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22083 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22085 * include/grub/kernel.h (struct grub_module_header): Change type
22086 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22087 (grub_module_info): Likewise.
22089 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22091 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22092 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22093 Velazquez <jesus.velazquez@gmail.com>.
22095 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22097 Count partitions from 1 instead of 0 in the string representation
22098 of partitions. Still use 0-based internally.
22100 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22101 (sun_partition_map_iterate): Use grub_partition_t instead of
22102 struct grub_partition *. Cast DESC->START_CYLINDER to
22103 grub_uint64_t after converting the endian.
22104 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22105 (sun_partition_map_get_name): Add 1 to P->INDEX.
22107 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22109 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22111 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22112 zero instead of one.
22113 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22114 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22116 * partmap/apple.c (apple_partition_map_iterate): Change the type
22117 of POS to unsigned.
22118 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22119 (apple_partition_map_get_name): Add 1 into P->INDEX.
22121 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22122 of POS to unsigned.
22123 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22124 calculate the offset of a partition.
22125 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22126 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22128 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22129 SECTOR to grub_disk_addr_t.
22130 (acorn_partition_map_iterate): Likewise.
22131 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22132 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22134 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22136 * kern/i386/pc/init.c (make_install_device): Add 1 into
22137 GRUB_INSTALL_DOS_PART.
22139 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22142 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22144 Clean up the code to support 64-bit addressing in disks and
22145 files. This change is not enough for filesystems yet.
22147 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22148 type of "start" to grub_uint64_t.
22149 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22150 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22151 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22154 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22155 to grub_disk_addr_t.
22157 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22160 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22162 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22165 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22167 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22169 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22171 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22172 to grub_off_t, to detect an error from grub_file_seek.
22173 (grub_multiboot_load_elf32): Likewise.
22175 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22176 maximum unsigned long value when an overflow is detected.
22177 (grub_strtoull): New function.
22178 (grub_divmod64): Likewise.
22179 (grub_lltoa): use grub_divmod64.
22181 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22183 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22184 the pointer to next character. Use grub_strtoull instead of
22186 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22187 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22190 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22191 return value is signed.
22192 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22193 test if OFFSET is less than zero, as OFFSET is unsigned now.
22195 * kern/disk.c (struct grub_disk_cache): Change the type of
22196 "sector" to grub_disk_addr_t.
22197 (grub_disk_cache_get_index): Change the type of SECTOR to
22198 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22199 unsigned after shifting.
22200 (grub_disk_cache_invalidate): Change the type of SECTOR to
22202 (grub_disk_cache_unlock): Likewise.
22203 (grub_disk_cache_store): Likewise.
22204 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22205 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22206 grub_disk_addr_t and grub_uint64_t, respectively.
22207 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22208 body, as the value of OFFSET is tweaked by
22209 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22210 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22212 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22213 body, as the value of OFFSET is tweaked by
22214 grub_disk_check_range. Change the types of LEN and N to
22217 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22218 and "saved_offset" to grub_off_t.
22219 (test_header): Cast BUF to char *.
22220 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22222 (grub_gzio_read): Change the types of OFFSET and SIZE to
22223 grub_off_t and grub_size_t, respectively.
22225 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22227 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22228 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22229 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22230 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22231 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22233 * include/grub/types.h (grub_off_t): Unconditionally set to
22235 (grub_disk_addr_t): Changed to grub_uint64_t.
22237 * include/grub/partition.h (struct grub_partition): Change the
22238 types of "start", "len" and "offset" to grub_disk_addr_t,
22239 grub_uint64_t and grub_disk_addr_t, respectively.
22240 (grub_partition_get_start): Return grub_disk_addr_t.
22241 (grub_partition_get_len): Return grub_uint64_t.
22243 * include/grub/misc.h (grub_strtoull): New prototype.
22244 (grub_divmod64): Likewise.
22246 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22247 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22248 grub_off_t, respectively.
22249 All callers and references changed.
22251 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22252 grub_size_t in "read".
22253 All callers and references changed.
22255 * include/grub/file.h (struct grub_file): Change the types of
22256 "offset" and "size" to grub_off_t and grub_off_t,
22257 respectively. Change the type of SECTOR to grub_disk_addr_t in
22259 (grub_file_read): Change the type of LEN to grub_size_t.
22260 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22262 (grub_file_size): Return grub_off_t.
22263 (grub_file_tell): Likewise.
22264 All callers and references changed.
22266 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22267 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22269 (struct grub_disk): Change the type of "total_sectors" to
22270 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22272 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22273 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22274 (grub_disk_write): Likewise.
22275 All callers and references changed.
22277 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22278 char * for grub_strncmp to silence gcc.
22279 (grub_iso9660_mount): Likewise.
22280 (grub_iso9660_mount): Likewise.
22281 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22283 (grub_iso9660_iterate_dir): Likewise.
22284 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22286 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22287 LEN to grub_disk_addr_t and grub_size_t, respectively.
22289 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22291 * fs/jfs.c (grub_jfs_read_file): Likewise.
22293 * fs/minix.c (grub_jfs_read_file): Likewise.
22295 * fs/sfs.c (grub_jfs_read_file): Likewise.
22297 * fs/ufs.c (grub_jfs_read_file): Likewise.
22299 * fs/xfs.c (grub_jfs_read_file): Likewise.
22301 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22302 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22305 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22306 BLKNR to -1 instead of returning GRUB_ERRNO.
22307 (grub_ext2_read_file): Change the types of SECTOR and
22308 LEN to grub_disk_addr_t and grub_size_t, respectively.
22310 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22311 LEN to grub_disk_addr_t and grub_size_t, respectively.
22313 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22316 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22317 string. Do not cast SECTOR explicitly.
22319 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22320 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22321 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22322 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22323 over 2TB and LBA mode is not supported, raise an error.
22324 (get_safe_sectors): New function.
22325 (grub_biosdisk_read): Use get_safe_sectors.
22326 (grub_biosdisk_write): Likewise.
22328 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22329 (grub_efidisk_write): Likewise.
22331 * disk/loopback.c (delete_loopback): Cosmetic changes.
22332 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22334 (grub_loopback_open): Likewise.
22335 (grub_loopback_read): Likewise. Also, change the type of POS to
22336 grub_off_t, and fix the usage of grub_memset.
22338 * commands/i386/pc/play.c: Include grub/machine/time.h.
22340 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22343 * commands/configfile.c: Include grub/env.h.
22345 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22346 GRUB_ERRNO directly instead. Change the type of POS to
22347 grub_off_t. Follow the coding standard.
22349 * commands/blocklist.c: Include grub/partition.h.
22350 (grub_cmd_blocklist): Return an error if the underlying device is
22351 not a disk. Take the starting sector of a partition into account,
22352 if a partition is used.
22354 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22356 (lba_mode): Support 64-bit addresses.
22357 (chs_mode): Likewise.
22358 (copy_buffer): Adapted to the new offsets of a length field and a
22360 (blocklist_default_start): Allocate 64-bit space.
22362 * boot/i386/pc/boot.S (force_lba): Removed.
22363 (boot_drive): Moved to under KERNEL_SECTOR.
22364 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22366 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22368 (lba_mode): Refactored to support a 64-bit address. More size
22370 (setup_sectors): Likewise.
22372 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22374 * DISTLIST: Added include/grub/i386/linux.h. Removed
22375 include/grub/i386/pc/linux.h
22377 * configure.ac (AC_INIT): Bumped to 1.94.
22379 * config.guess: Updated from gnulib.
22380 * config.sub: Likewise.
22381 * install-sh: Likewise.
22382 * mkinstalldirs: Likewise.
22384 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22386 * conf/common.rmk (grub_modules_init.lst): Depended on
22387 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22390 * genmk.rb (PModule::rule): Reverted the previous change.
22392 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22394 * conf/common.rmk (grub_modules_init.lst): Depends on
22395 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22396 that the target does not exist before producing.
22397 (grub_modules_init.h): Remove the target before generating.
22398 (grub_emu_init.c): Likewise.
22400 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22402 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22404 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22405 for the target-specific tests. Make sure that we also have the
22406 up-to-date target variables for those tests.
22408 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22410 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22411 (PModule::rule): Likewise.
22413 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22415 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22416 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22417 target-specific flags should be prefixed.
22418 (PModule::rule): Likewise.
22420 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22422 * configure.ac (CMP): Check if cmp is available explicitly.
22424 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22426 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22427 (target_cpu): New variable.
22428 (pkglibdir): Use target_cpu instead of host_cpu.
22430 * util/i386/pc/grub-install.in (host_cpu): Removed.
22431 (target_cpu): New variable.
22432 (pkglibdir): Use target_cpu instead of host_cpu.
22434 * util/genmoddep.c: Removed.
22436 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22437 instead of GRUB_HOST_SIZEOF_VOID_P.
22438 * kern/dl.c: Likewise.
22440 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22442 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22443 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22444 (GRUB_TARGET_SIZEOF_LONG): ... this.
22445 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22446 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22447 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22449 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22450 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22451 (GRUB_TARGET_SIZEOF_LONG): ... this.
22452 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22453 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22454 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22456 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22457 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22458 (GRUB_TARGET_SIZEOF_LONG): ... this.
22459 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22460 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22462 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22463 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22464 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22465 instead of GRUB_HOST_SIZEOF_LONG.
22466 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22467 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22468 GRUB_CPU_WORDS_BIGENDIAN.
22469 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22470 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22473 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22474 (genmoddep_SOURCES): Likewise.
22475 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22476 (genmoddep_SOURCES): Likewise.
22477 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22478 (genmoddep_SOURCES): Likewise.
22479 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22481 (genmoddep_SOURCES): Likewise.
22483 * genmoddep.awk: New file.
22485 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22486 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22487 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22488 (PModule::rule): Likewise.
22489 (Program::rule): Likewise.
22490 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22491 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22494 * configure.ac: Rewritten intensively to use host and target
22495 instead of build and host, respectively.
22497 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22498 (host_cpu): Removed.
22499 (target_cpu): New variable.
22500 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22501 (BUILD_CC): Removed.
22502 (BUILD_CFLAGS): Likewise.
22503 (BUILD_CPPFLAGS): Likewise.
22504 (TARGET_CC): New variable.
22505 (TARGET_CFLAGS): Likewise.
22506 (TARGET_CPPFLAGS): Likewise.
22507 (TARGET_LDFLAGS): Likewise.
22509 (include): Use target_cpu instead of host_cpu.
22510 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22512 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22514 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22516 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22517 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22518 field 'false' to 'exec_on_false'.
22519 (grub_script_create_cmdif): Renamed argument names to reflect above
22522 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22524 * normal/script.c (grub_script_create_cmdif): Likewise.
22526 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22528 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22530 (grub_hfsplus_btree_recptr): Likewise.
22531 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22532 FILEBLOCK both to pass a block number and store next block
22534 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22535 overflow file correctly. Specify errors appropriately, because
22536 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22537 grub_hfsplus_btree_recptr to get the pointer to a found key.
22538 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22541 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22543 (_linux_mod_SOURCES): New variable.
22544 (_linux_mod_CFLAGS): Likewise.
22545 (_linux_mod_LDFLAGS): Likewise.
22546 (linux_mod_SOURCES): Likewise.
22547 (linux_mod_CFLAGS): Likewise.
22548 (linux_mod_LDFLAGS): Likewise.
22550 * DISTLIST: Added loader/i386/efi/linux.c,
22551 loader/i386/efi/linux_normal.c and
22552 include/grub/i386/efi/loader.h.
22554 * loader/i386/efi/linux.c: New file.
22555 * loader/i386/efi/linux_normal.c: Likewise.
22556 * include/grub/i386/efi/loader.h: Likewise.
22558 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22560 * commands/blocklist.c: New file.
22562 * DISTLIST: Added commands/blocklist.c.
22564 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22565 color for the background, and a darker color for the foreground.
22566 (grub_console_checkkey): Return READ_KEY.
22567 (grub_console_cls): Set the background to
22568 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22570 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22572 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22573 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22575 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22578 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22579 BG. The spec is wrong again.
22581 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22583 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22585 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22586 commands/blocklist.c.
22587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22589 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22590 (blocklist_mod_SOURCES): New variable.
22591 (blocklist_mod_CFLAGS): Likewise.
22592 (blocklist_mod_LDFLAGS): Likewise.
22594 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22596 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22598 (lba_mode): Use %eax more intensively to reduce the code size.
22600 2006-05-20 Marco Gerards <marco@gnu.org>
22602 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22604 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22606 (script): Accept leading newlines.
22607 (newlines): New rule to describe 0 or more newlines.
22608 (commands): Accept `command' with trailing newline. Fixed the
22609 order in which arguments were passed to `grub_script_add_cmd'.
22610 Accept commands separated by newlines.
22611 (function): Changed to accept newlines.
22612 (menuentry) Rewritten.
22614 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22615 front of the list, instead of to the end.
22617 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22619 * util/i386/pc/grub-install.in (bindir): New variable.
22620 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22621 Shaver <lbgwjl@gmail.com>.
22623 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22625 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22626 grub/machine/linux.h
22627 * loader/i386/pc/linux.c: Likewise.
22629 * include/grub/i386/pc/linux.h: Moved to ...
22630 * include/grub/i386/linux.h: ... here.
22632 * include/grub/i386/linux.h (struct linux_kernel_params): New
22635 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22637 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22639 (grub_video_vbe_blit_glyph): Likewise.
22640 (grub_video_vbe_blit_bitmap): Likewise.
22641 (grub_video_vbe_blit_render_target): Likewise.
22643 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22645 * configure.ac (--with-platform): Properly quote the square
22648 2006-05-08 Marco Gerards <marco@gnu.org>
22650 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22652 (kernel_elf_HEADERS): ...to this. Updated all users.
22653 (grubof_symlist.c): Renamed from this...
22654 (kernel_elf_symlist.c): ...to this. Updated all users.
22655 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22656 (grubof_SOURCES): Renamed from this...
22657 (kernel_elf_SOURCES): ...to this.
22658 (grubof_HEADERS): Renamed from this...
22659 (kernel_elf_HEADERS): ...to this.
22660 (grubof_CFLAGS): Renamed from this...
22661 (kernel_elf_CFLAGS): ...to this.
22662 (grubof_ASFLAGS): Renamed from this...
22663 (kernel_elf_ASFLAGS): ...to this.
22664 (grubof_LDFLAGS): Renamed from this...
22665 (kernel_elf_LDFLAGS): ...to this.
22667 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22669 (kernel_elf_HEADERS): ...to this. Updated all users.
22670 (grubof_symlist.c): Renamed from this...
22671 (kernel_elf_symlist.c): ...to this. Updated all users.
22672 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22673 (grubof_SOURCES): Renamed from this...
22674 (kernel_elf_SOURCES): ...to this.
22675 (grubof_HEADERS): Renamed from this...
22676 (kernel_elf_HEADERS): ...to this.
22677 (grubof_CFLAGS): Renamed from this...
22678 (kernel_elf_CFLAGS): ...to this.
22679 (grubof_ASFLAGS): Renamed from this...
22680 (kernel_elf_ASFLAGS): ...to this.
22681 (grubof_LDFLAGS): Renamed from this...
22682 (kernel_elf_LDFLAGS): ...to this.
22684 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22685 `kernel.elf' instead of `grubof'.
22687 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22689 Add --with-platform to configure. Use pkglibdir instead of
22690 pkgdatadir. This is reported by Roger Leigh.
22692 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22693 (host_vendor): Likewise.
22694 (host_os): Likewise.
22695 (pkgdatadir): Likewise.
22696 (platform): New variable.
22697 (pkglibdir): Likewise.
22698 Use PKGLIBDIR instead of PKGDATADIR.
22700 * util/i386/pc/grub-install.in (datadir): Removed.
22701 (host_vendor): Likewise.
22702 (host_os): Likewise.
22703 (pkgdatadir): Likewise.
22704 (platform): New variable.
22705 (pkglibdir): Likewise.
22706 Use PKGLIBDIR instead of PKGDATADIR.
22708 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22709 instead of GRUB_DATADIR.
22711 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22713 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22716 * configure.ac (--with-platform): New option.
22717 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22719 * Makefile.in: Include a makefile based on PLATFORM instead of
22721 (pkgdatadir): Not appended by the machine type.
22722 (pkglibdir): Appended by the machine type.
22723 (host_vendor): Removed.
22724 (platform): New variable.
22725 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22726 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22727 (uninstall): Likewise.
22729 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22731 Use the environment context in the menu. Remove the commands
22732 "default" and "timeout", and use variables instead.
22734 * normal/menu.c: Include grub/env.h.
22735 (print_entry): Cast TITLE to silence gcc.
22736 (get_timeout): New function.
22737 (set_timeout): Likewise.
22738 (get_entry_number): Likewise.
22739 (run_menu): Use a default entry, a fallback entry and a timeout
22740 in the environment variables "default", "fallback" and
22741 "timeout". Also, tweak the default entry if it is not within the
22742 current menu entries.
22743 (grub_menu_run): Use a fallback entry in the environment variable
22746 * normal/main.c (read_config_file): Do not initialize
22747 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22749 (grub_normal_execute): Use a data slot to store the menu.
22751 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22752 fallback_entry and timeout.
22753 (struct grub_menu_list): Removed.
22754 (grub_menu_list_t): Likewise.
22755 (struct grub_context): Likewise.
22756 (grub_context_t): Likewise.
22757 (grub_context_get): Likewise.
22758 (grub_context_get_current_menu): Likewise.
22759 (grub_context_push_menu): Likewise.
22760 (grub_context_pop_menu): Likewise.
22761 (grub_default_init): Likewise.
22762 (grub_default_fini): Likewise.
22763 (grub_timeout_init): Likewise.
22764 (grub_timeout_fini): Likewise.
22766 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22768 (normal_mod_SOURCES): Removed normal/context.c.
22770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22771 commands/default.c, commands/timeout.c and normal/context.c.
22772 (normal_mod_SOURCES): Removed normal/context.c.
22774 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22775 commands/timeout.c and normal/context.c.
22776 (normal_mod_SOURCES): Removed normal/context.c.
22778 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22779 commands/default.c, commands/timeout.c and normal/context.c.
22780 (normal_mod_SOURCES): Removed normal/context.c.
22782 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22784 (default_mod_SOURCES): Removed.
22785 (default_mod_CFLAGS): Likewise.
22786 (default_mod_LDFLAGS): Likewise.
22787 (timeout_mod_SOURCES): Removed.
22788 (timeout_mod_CFLAGS): Likewise.
22789 (timeout_mod_LDFLAGS): Likewise.
22791 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22794 * commands/default.c: Removed.
22795 * commands/timeout.c: Likewise.
22796 * normal/context.c: Likewise.
22798 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22800 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22802 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22804 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22805 "next" to "prev" for readability.
22806 (struct grub_env_sorted_var): New struct.
22807 (grub_env_context): Renamed to ...
22808 (initial_context): ... this.
22809 (grub_env_var_context): Renamed to ...
22810 (current_context): ... this.
22811 (grub_env_find): Look only at CURRENT_CONTEXT.
22812 (grub_env_context_open): Rewritten to copy exported variables from
22814 (grub_env_context_close): Rewritten according to the new
22815 scheme. Also, add an assertion to prevent the initial context from
22817 (grub_env_insert): Removed the code for the sorted list.
22818 (grub_env_remove): Likewise.
22819 (grub_env_export): Simply mark the variable with
22820 GRUB_ENV_VAR_GLOBAL.
22821 (grub_env_set): A cosmetic change for naming consistency.
22822 (grub_env_get): Likewise.
22823 (grub_env_unset): Likewise.
22824 (grub_env_iterate): Rewritten to sort variables within this
22826 (grub_register_variable_hook): Fixed for naming consistency. Call
22827 grub_env_find again, only if NAME is not found at the first time.
22828 (mangle_data_slot_name): New function.
22829 (grub_env_set_data_slot): Likewise.
22830 (grub_env_get_data_slot): Likewise.
22831 (grub_env_unset_data_slot): Likewise.
22833 * include/grub/env.h (grub_env_var_type): New enum.
22834 (GRUB_ENV_VAR_LOCAL): New constant.
22835 (GRUB_ENV_VAR_GLOBAL): Likewise.
22836 (GRUB_ENV_VAR_DATA): Likewise.
22837 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22839 (grub_env_set): Replace VAR with NAME for consistency.
22840 (grub_register_variable_hook): Likewise.
22841 (grub_env_export): Specify the name of the argument.
22842 (grub_env_set_data_slot): New prototype.
22843 (grub_env_get_data_slot): Likewise.
22844 (grub_env_unset_data_slot): Likewise.
22846 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22848 Extend the loader so that GRUB can accept a loader which comes
22849 back to GRUB when a loaded image exits. Also, this change adds
22850 support for a chainloader on EFI.
22852 * term/efi/console.c: Include grub/misc.h.
22853 (grub_console_checkkey): Display a scan code on the top for
22854 debugging. This will be removed once the EFI port gets stable.
22855 Correct the scan code mapping.
22857 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22858 allocate memory from larger regions, in order to reduce the number
22859 of allocated regions. Otherwise, the MacOSX loader panics.
22860 (filter_memory_map): Avoid less than 1MB for compatibility with
22862 (add_memory_regions): Allocate from the tail of a region, if
22863 possible, to avoid allocating a region near to 1MB, for the MacOSX
22866 * kern/efi/init.c (grub_efi_set_prefix): Specify
22867 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22869 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22870 argument IMAGE_HANDLE and specify it to get a loaded image.
22871 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22872 grub_efi_get_loaded_image.
22873 (grub_efi_get_filename): Divide the length by the size of
22875 (grub_efi_get_device_path): New function.
22876 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22877 the length by the size of grub_efi_char16_t for a file path device
22880 * kern/loader.c (grub_loader_noreturn): New variable.
22881 (grub_loader_set): Accept a new argument NORETURN. Set
22882 GRUB_LOADER_NORETURN to NORETURN.
22883 All callers changed.
22884 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22887 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22889 (grub_efi_get_loaded_image): Take an argument to specify an image
22892 * include/grub/loader.h (grub_loader_set): Added one more argument
22895 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22896 instead of grub_efi_open_protocol.
22897 (grub_efidisk_get_device_name): Likewise.
22898 (grub_efidisk_close): Print a newline.
22899 (grub_efidisk_get_device_handle): Fixed to use
22900 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22901 GRUB_EFI_DEVICE_PATH_TYPE.
22903 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22904 * kern/efi/efi.c (device_path_guid): ... here.
22906 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22908 (kernel_mod_HEADERS): Added efi/disk.h.
22909 (_chain_mod_SOURCES): New variable.
22910 (_chain_mod_CFLAGS): Likewise.
22911 (_chain_mod_LDFLAGS): Likewise.
22912 (chain_mod_SOURCES): Likewise.
22913 (chain_mod_CFLAGS): Likewise.
22914 (chain_mod_LDFLAGS): Likewise.
22916 * DISTLIST: Added include/grub/efi/chainloader.h,
22917 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22919 * include/grub/efi/chainloader.h: New file.
22920 * loader/efi/chainloader.c: Likewise.
22921 * loader/efi/chainloader_normal.c: Likewise.
22923 2006-04-30 Marco Gerards <marco@gnu.org>
22925 * commands/configfile.c (grub_cmd_source): New function.
22926 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22927 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22929 2006-04-30 Marco Gerards <marco@gnu.org>
22931 * normal/execute.c (grub_script_execute_cmd): Change the return
22932 type to `grub_err_t'. Correctly return the error.
22933 (grub_script_execute_cmdline): In case a command line is not a
22934 command or a function, try to interpret it as an assignment.
22936 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22938 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22939 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22940 skip a node whose name is obviously invalid as UTF-16,
22941 i.e. contains a NUL character. Stop the iteration when the last
22942 directory entry is found. Instead of using the return value of
22943 grub_hfsplus_btree_iterate_node, store the value in RET and use
22944 it, because the iterator can be stopped by the last directory
22947 2006-04-30 Marco Gerards <marco@gnu.org>
22949 * include/grub/env.h (grub_env_export): New prototype. Reported
22950 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22952 2006-04-30 Marco Gerards <marco@gnu.org>
22954 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22955 size of the extents in a catalog file record.
22957 2006-04-29 Marco Gerards <marco@gnu.org>
22959 * commands/configfile.c (grub_cmd_configfile): Execute the
22960 configfile within its own context.
22962 * include/grub/env.h (grub_env_context_open): New prototype.
22963 (grub_env_context_close): Likewise.
22965 * kern/env.c (grub_env): Removed.
22966 (grub_env_sorted): Likewise.
22967 (grub_env_context): New variable.
22968 (grub_env_var_context): Likewise.
22969 (grub_env_find): Search both the active context and the global
22971 (grub_env_context_open): New function.
22972 (grub_env_context_close): Likewise.
22973 (grub_env_insert): Likewise.
22974 (grub_env_remove): Likewise.
22975 (grub_env_export): Likewise.
22976 (grub_env_set): Changed to use helper functions to avoid code
22978 (grub_env_iterate): Rewritten so both the current context and the
22979 global context are being used.
22981 * normal/command.c (export_command): New function.
22982 (grub_command_init): Register the `export' function.
22984 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22986 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22987 explicitly to suppress gcc's warnings.
22988 * fs/fat.c (grub_fat_find_dir): Likewise.
22989 (grub_fat_label): Likewise.
22990 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22991 (grub_xfs_mount): Likewise.
22992 (grub_xfs_label): Likewise.
22993 * fs/affs.c (grub_affs_mount): Likewise.
22994 (grub_affs_label): Likewise.
22995 (grub_affs_iterate_dir): Likewise.
22996 * fs/sfs.c (grub_sfs_mount): Likewise.
22997 (grub_sfs_iterate_dir): Likewise.
22998 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22999 * fs/hfs.c (grub_hfs_mount): Likewise.
23000 (grub_hfs_cmp_catkeys): Likewise.
23001 (grub_hfs_find_dir): Likewise.
23002 (grub_hfs_dir): Likewise.
23003 (grub_hfs_label): Likewise.
23004 * fs/jfs.c (grub_jfs_mount): Likewise.
23005 (grub_jfs_opendir): Likewise.
23006 (grub_jfs_getent): Likewise.
23007 (grub_jfs_lookup_symlink): Likewise.
23008 (grub_jfs_label): Likewise.
23009 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23010 (grub_hfsplus_iterate_dir): Likewise.
23011 (grub_hfsplus_btree_iterate_node): Made static.
23013 * util/grub-emu.c (prefix): New variable.
23014 (grub_machine_set_prefix): New function.
23015 (main): Do not set the environment variable "prefix" here. Only
23016 set PREFIX, which is used later by grub_machine_set_prefix.
23018 * include/grub/video.h: Do not include grub/symbol.h.
23019 (grub_video_register): Not exported. This symbol is not defined in
23021 (grub_video_unregister): Likewise.
23022 (grub_video_iterate): Likewise.
23023 (grub_video_setup): Likewise.
23024 (grub_video_restore): Likewise.
23025 (grub_video_get_info): Likewise.
23026 (grub_video_get_blit_format): Likewise.
23027 (grub_video_set_palette): Likewise.
23028 (grub_video_get_palette): Likewise.
23029 (grub_video_set_viewport): Likewise.
23030 (grub_video_get_viewport): Likewise.
23031 (grub_video_map_color): Likewise.
23032 (grub_video_map_rgb): Likewise.
23033 (grub_video_map_rgba): Likewise.
23034 (grub_video_fill_rect): Likewise.
23035 (grub_video_blit_glyph): Likewise.
23036 (grub_video_blit_bitmap): Likewise.
23037 (grub_video_blit_render_target): Likewise.
23038 (grub_video_scroll): Likewise.
23039 (grub_video_swap_buffers): Likewise.
23040 (grub_video_create_render_target): Likewise.
23041 (grub_video_delete_render_target): Likewise.
23042 (grub_video_set_active_render_target): Likewise.
23044 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23046 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23048 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23049 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23050 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23051 instead of $(srcdir)/genkernsyms.sh.
23053 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23054 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23055 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23056 instead of $(srcdir)/genkernsyms.sh.
23058 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23059 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23060 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23061 instead of $(srcdir)/genkernsyms.sh.
23063 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23064 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23065 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23066 instead of $(srcdir)/genkernsyms.sh.
23068 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23071 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23073 (gensymlist.sh): New target.
23074 (genkernsyms.sh): Likewise.
23076 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23077 genkernsyms.sh.in and gensymlist.sh.in.
23079 * genkernsyms.sh: Removed.
23080 * gensymlist.sh: Likewise.
23082 * genkernsyms.sh.in: New file.
23083 * gensymlist.sh.in: Likewise.
23085 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23087 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23088 clobber "prefix", since we may have already set it manually.
23090 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23092 * kern/misc.c (abort): New alias for grub_abort.
23094 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23096 A new machine-specific function "grub_machine_set_prefix" is
23097 defined. This is called after loading modules, so that a prefix
23098 initialization can use modules. Also, this change adds an
23099 intensive debugging feature for the memory manager via the
23100 configure option "--enable-mm-debug".
23102 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23105 * kern/sparc64/ieee1275/init.c (abort): Removed.
23106 (grub_stop): Likewise.
23107 (grub_exit): New function.
23108 (grub_set_prefix): Renamed to ...
23109 (grub_machine_set_prefix): ... this.
23110 (grub_machine_init): Do not call grub_set_prefix.
23112 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23113 (grub_machine_set_prefix): ... this.
23114 (grub_machine_init): Do not call grub_set_prefix.
23116 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23117 (grub_machine_init): Do not set the prefix here.
23119 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23121 * kern/efi/init.c: Include grub/mm.h.
23122 (grub_efi_set_prefix): New function.
23124 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23125 (grub_efi_get_filename): New function.
23126 (grub_print_device_path): Renamed to ...
23127 (grub_efi_print_device_path): ... this.
23129 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23130 [MM_DEBUG] (grub_realloc): Likewise.
23131 [MM_DEBUG] (grub_free): Likewise.
23132 [MM_DEBUG] (grub_memalign): Likewise.
23133 [MM_DEBUG] (grub_mm_debug): New variable.
23134 [MM_DEBUG] (grub_debug_malloc): New function.
23135 [MM_DEBUG] (grub_debug_free): New function.
23136 [MM_DEBUG] (grub_debug_realloc): New function.
23137 [MM_DEBUG] (grub_debug_memalign): New function.
23139 * kern/misc.c (grub_abort): Print a newline to distinguish
23142 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23143 grub_set_root_dev after loading modules. This is necessary when
23144 setting a prefix depends on modules.
23146 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23147 (grub_efi_print_device_path): ... this.
23148 (grub_efi_get_filename): New prototype.
23149 (grub_efi_set_prefix): Likewise.
23151 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23153 (grub_efidisk_get_device_handle): New prototype.
23154 (grub_efidisk_get_device_name): Likewise.
23156 * include/grub/mm.h: Include config.h.
23157 (MM_DEBUG): Removed.
23158 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23159 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23160 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23161 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23162 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23163 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23164 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23165 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23166 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23168 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23170 * disk/efi/efidisk.c: Include grub/partition.h.
23171 (iterate_child_devices): New function.
23172 (add_device): First, compare only last device path nodes, so that
23173 devices are sorted by the types.
23174 (grub_efidisk_get_device_handle): New function.
23175 (grub_efidisk_get_device_name): Likewise.
23177 * configure.ac (--enable-mm-debug): New option to enable the
23178 memory manager debugging feature. This makes the binary much
23179 bigger, so is disabled by default.
23181 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23183 Use grub_abort instead of grub_stop, and grub_exit must be
23184 define in each architecture now. Also, this change adds support
23187 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23188 (grub_getkey): New function.
23189 (grub_term_get_current): Likewise.
23191 * util/i386/pc/grub-setup.c: Include grub/term.h.
23192 (grub_getkey): New function.
23193 (grub_term_get_current): Likewise.
23195 * util/misc.c (grub_stop): Renamed to ...
23196 (grub_exit): ... this.
23198 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23199 (grub_exit): ... this.
23200 (grub_machine_init): Use grub_abort instead of abort.
23201 (grub_stop): Removed.
23203 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23206 * kern/i386/pc/startup.S (grub_exit): New function.
23207 (cold_reboot): New label.
23209 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23210 (grub_efi_init): Call grub_efidisk_init.
23211 (grub_efi_fini): Call grub_efidisk_fini.
23213 * kern/efi/efi.c: Include grub/mm.h.
23214 (grub_efi_console_control_guid): Renamed to ...
23215 (console_control_guid): ... this.
23216 (grub_efi_loaded_image_guid): Renamed to ...
23217 (loaded_image_guid): ... this.
23218 (grub_efi_locate_handle): New function.
23219 (grub_efi_open_protocol): Likewise.
23220 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23221 GRUB_EFI_CONSOLE_CONTROL_GUID.
23222 (grub_efi_exit): Removed.
23223 (grub_stop): Likewise.
23224 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23225 (grub_exit): New function.
23226 (grub_print_device_path): Likewise.
23228 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23229 (grub_enter_rescue_mode): Register "exit".
23231 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23232 (grub_abort): New function.
23234 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23236 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23238 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23240 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23241 (grub_print_device_path): New prototype.
23242 (grub_efi_locate_handle): Likewise.
23243 (grub_efi_open_protocol): Likewise.
23245 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23246 * disk/efi/efidisk.c: Likewise.
23248 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23250 * include/grub/efi/console_control.h
23251 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23253 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23254 last 8 bytes as an array.
23255 (GRUB_EFI_DISK_IO_GUID): New macro.
23256 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23257 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23258 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23260 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23261 (struct grub_efi_device_path): Rename the member "sub_type" to
23263 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23264 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23265 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23266 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23267 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23268 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23269 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23270 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23271 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23272 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23273 (struct grub_efi_pci_device_path): New structure.
23274 (grub_efi_pci_device_path_t): New type.
23275 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23276 (struct grub_efi_pccard_device_path): New structure.
23277 (grub_efi_pccard_device_path_t): New type.
23278 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23279 (struct grub_efi_memory_mapped_device_path): New structure.
23280 (grub_efi_memory_mapped_device_path_t): New type.
23281 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23282 (struct grub_efi_vendor_device_path): New structure.
23283 (grub_efi_vendor_device_path_t): New type.
23284 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23285 (struct grub_efi_controller_device_path): New structure.
23286 (grub_efi_controller_device_path_t): New type.
23287 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23288 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23289 (struct grub_efi_acpi_device_path): New structure.
23290 (grub_efi_acpi_device_path_t): New type.
23291 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23292 (struct grub_efi_expanded_acpi_device_path): New structure.
23293 (grub_efi_expanded_acpi_device_path_t): New type.
23294 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23295 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23296 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23297 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23298 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23299 (struct grub_efi_atapi_device_path): New structure.
23300 (grub_efi_atapi_device_path_t): New type.
23301 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23302 (struct grub_efi_fibre_channel_device_path): New structure.
23303 (grub_efi_fibre_channel_device_path_t): New type.
23304 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23305 (struct grub_efi_1394_device_path): New structure.
23306 (grub_efi_1394_device_path_t): New type.
23307 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23308 (struct grub_efi_usb_device_path): New structure.
23309 (grub_efi_usb_device_path_t): New type.
23310 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23311 (struct grub_efi_usb_class_device_path): New structure.
23312 (grub_efi_usb_class_device_path_t): New type.
23313 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23314 (struct grub_efi_i2o_device_path): New structure.
23315 (grub_efi_i2o_device_path_t): New type.
23316 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23317 (struct grub_efi_mac_address_device_path): New structure.
23318 (grub_efi_mac_address_device_path_t): New type.
23319 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23320 (struct grub_efi_ipv4_device_path): New structure.
23321 (grub_efi_ipv4_device_path_t): New type.
23322 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23323 (struct grub_efi_ipv6_device_path): New structure.
23324 (grub_efi_ipv6_device_path_t): New type.
23325 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23326 (struct grub_efi_infiniband_device_path): New structure.
23327 (grub_efi_infiniband_device_path_t): New type.
23328 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23329 (struct grub_efi_uart_device_path): New structure.
23330 (grub_efi_uart_device_path_t): New type.
23331 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23332 (struct grub_efi_vendor_messaging_device_path): New structure.
23333 (grub_efi_vendor_messaging_device_path_t): New type.
23334 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23335 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23336 (struct grub_efi_hard_drive_device_path): New structure.
23337 (grub_efi_hard_drive_device_path_t): New type.
23338 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23339 (struct grub_efi_cdrom_device_path): New structure.
23340 (grub_efi_cdrom_device_path_t): New type.
23341 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23342 (struct grub_efi_vendor_media_device_path): New structure.
23343 (grub_efi_vendor_media_device_path_t): New type.
23344 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23345 (struct grub_efi_file_path_device_path): New structure.
23346 (grub_efi_file_path_device_path_t): New type.
23347 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23348 (struct grub_efi_protocol_device_path): New structure.
23349 (grub_efi_protocol_device_path_t): New type.
23350 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23351 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23352 (struct grub_efi_bios_device_path): New structure.
23353 (grub_efi_bios_device_path_t): New type.
23354 (struct grub_efi_disk_io): New structure.
23355 (grub_efi_disk_io_t): New type.
23356 (struct grub_efi_block_io_media): New structure.
23357 (grub_efi_block_io_media_t): New type.
23358 (struct grub_efi_block_io): New structure.
23359 (grub_efi_block_io_t): New type.
23361 * include/grub/misc.h (grub_stop): Removed.
23362 (grub_exit): New prototype.
23363 (grub_abort): Likewise.
23365 * include/grub/disk.h (enum grub_disk_dev_id): Added
23366 GRUB_DISK_DEVICE_EFIDISK_ID.
23368 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23369 disk/efi/efidisk.c.
23370 (kernel_syms.lst): Remove the target if an error occurs.
23372 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23374 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23375 as it was simply too buggy.
23377 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23379 * kern/misc.c (grub_lltoa): New function.
23380 (grub_vsprintf): Added support for the long long suffix,
23383 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23385 * Makefile.in (LDFLAGS): Add variable.
23386 (LD): Remove variable.
23387 * configure.ac: Add -m32 to LDFLAGS.
23388 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23389 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23390 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23391 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23392 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23394 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23395 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23396 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23398 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23400 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23401 length for unknown glyph.
23403 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23405 Add support for pre-loaded modules into the EFI port.
23407 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23408 completely. Accept one more argument DIR. The caller has changed.
23410 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23412 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23413 (grub_efi_loaded_image_guid): New variable.
23414 (grub_efi_get_loaded_image): New function.
23415 (grub_arch_modules_addr): Likewise.
23417 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23420 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23421 (struct grub_efi_loaded_image): New structure.
23422 (grub_efi_loaded_image_t): New type.
23424 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23426 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23427 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23428 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23430 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23432 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23434 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23436 * DISTLIST: Added include/grub/efi/console.h,
23437 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23438 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23440 * include/grub/efi/console.h: New file.
23441 * include/grub/efi/time.h: Likewise.
23442 * include/grub/i386/efi/kernel.h: Likewise.
23443 * kern/efi/init.c: Likewise.
23444 * kern/efi/mm.c: Likewise.
23445 * term/efi/console.c: Likewise.
23447 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23448 (grub_stop): Removed.
23449 (grub_get_rtc): Likewise.
23450 (grub_machine_init): Simply call grub_efi_init.
23451 (grub_machine_fini): Call grub_efi_fini.
23453 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23454 (grub_efi_output_string): Removed.
23455 (grub_efi_stall): New function.
23456 (grub_stop): Likewise.
23457 (grub_get_rtc): Likewise.
23459 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23460 (grub_efi_stall): New prototype.
23461 (grub_efi_allocate_pages): Likewise.
23462 (grub_efi_free_pages): Likewise.
23463 (grub_efi_get_memory_map): Likewise.
23464 (grub_efi_mm_init): Likewise.
23465 (grub_efi_mm_fini): Likewise.
23466 (grub_efi_init): Likewise.
23467 (grub_efi_fini): Likewise.
23469 * include/grub/i386/efi/time.h: Do not include
23470 grub/symbol.h. Include grub/efi/time.h.
23471 (GRUB_TICKS_PER_SECOND): Removed.
23472 (grub_get_rtc): Likewise.
23474 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23475 Added padding. The EFI spec is buggy.
23476 (GRUB_EFI_BLACK): New macro.
23477 (GRUB_EFI_BLUE): Likewise.
23478 (GRUB_EFI_GREEN): Likewise.
23479 (GRUB_EFI_CYAN): Likewise.
23480 (GRUB_EFI_RED): Likewise.
23481 (GRUB_EFI_MAGENTA): Likewise.
23482 (GRUB_EFI_BROWN): Likewise.
23483 (GRUB_EFI_LIGHTGRAY): Likewise.
23484 (GRUB_EFI_BRIGHT): Likewise.
23485 (GRUB_EFI_DARKGRAY): Likewise.
23486 (GRUB_EFI_LIGHTBLUE): Likewise.
23487 (GRUB_EFI_LIGHTGREEN): Likewise.
23488 (GRUB_EFI_LIGHTCYAN): Likewise.
23489 (GRUB_EFI_LIGHTRED): Likewise.
23490 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23491 (GRUB_EFI_YELLOW): Likewise.
23492 (GRUB_EFI_WHITE): Likewise.
23493 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23494 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23495 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23496 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23497 (GRUB_EFI_BACKGROUND_RED): Likewise.
23498 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23499 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23500 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23501 (GRUB_EFI_TEXT_ATTR): Likewise.
23503 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23504 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23505 (kernel_mod_HEADERS): Added efi/time.h.
23507 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23509 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23510 include/grub/efi/api.h, include/grub/efi/console_control.h,
23511 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23512 include/grub/i386/efi/time.h, kern/efi/efi.c,
23513 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23514 and util/i386/efi/grub-mkimage.c.
23516 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23518 * genmk.rb (PModule#rule): Do not export symbols if
23519 #{prefix}_EXPORTS is set to "no".
23521 * conf/i386-efi.mk: New file.
23522 * conf/i386-efi.rmk: Likewise.
23523 * include/grub/efi/api.h: Likewise.
23524 * include/grub/efi/console_control.h: Likewise.
23525 * include/grub/efi/efi.h: Likewise.
23526 * include/grub/efi/pe32.h: Likewise.
23527 * include/grub/i386/efi/time.h: Likewise.
23528 * kern/efi/efi.c: Likewise.
23529 * kern/i386/efi/init.c: Likewise.
23530 * kern/i386/efi/startup.S: Likewise.
23531 * util/i386/efi/grub-mkimage.c: Likewise.
23533 2006-04-17 Marco Gerards <marco@gnu.org>
23535 * include/grub/script.h: Include <grub/parser.h> and
23536 "grub_script.tab.h".
23537 (struct grub_lexer_param): New struct.
23538 (struct grub_parser_param): Likewise.
23539 (grub_script_create_arglist): Pass the state in an argument.
23540 (grub_script_add_arglist): Likewise.
23541 (grub_script_create_cmdline): Likewise.
23542 (grub_script_create_cmdblock): Likewise.
23543 (grub_script_create_cmdif): Likewise.
23544 (grub_script_create_cmdmenu): Likewise.
23545 (grub_script_add_cmd): Likewise.
23546 (grub_script_arg_add): Likewise.
23547 (grub_script_lexer_ref): Likewise.
23548 (grub_script_lexer_deref): Likewise.
23549 (grub_script_lexer_record_start): Likewise.
23550 (grub_script_lexer_record_stop): Likewise.
23551 (grub_script_mem_record): Likewise.
23552 (grub_script_mem_record_stop): Likewise.
23553 (grub_script_malloc): Likewise.
23554 (grub_script_yylex): Likewise.
23555 (grub_script_yyparse): Likewise.
23556 (grub_script_yyerror): Likewise.
23557 (grub_script_yylex): Likewise.
23558 (grub_script_lexer_init): Return the state.
23560 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23561 (grub_script_lexer_done): Likewise.
23562 (grub_script_lexer_getline): Likewise.
23563 (grub_script_lexer_refs): Likewise.
23564 (script): Likewise.
23565 (newscript): Likewise.
23566 (record): Likewise.
23567 (recording): Likewise.
23568 (recordpos): Likewise.
23569 (recordlen): Likewise.
23570 (grub_script_lexer_init): Return the state instead of setting
23572 (grub_script_lexer_ref): Use the newly added argument for state
23573 instead of globals.
23574 (grub_script_lexer_deref): Likewise.
23575 (grub_script_lexer_record_start): Likewise.
23576 (grub_script_lexer_record_stop): Likewise.
23577 (recordchar): Likewise.
23578 (nextchar): Likewise.
23579 (grub_script_yylex2): Likewise.
23580 (grub_script_yylex): Likewise.
23581 (grub_script_yyerror): Likewise.
23583 * normal/parser.y (func_mem): Removed variable.
23584 (menu_entry): Likewise.
23586 (%lex-param): New parser option.
23587 (%parse-param): Likewise.
23588 (script): Always return the AST.
23589 (argument): Pass the state around.
23590 (arguments): Likewise.
23591 (grubcmd): Likewise.
23592 (commands): Likewise.
23593 (function): Likewise.
23594 (menuentry): Likewise.
23595 (if_statement): Likewise.
23598 * normal/script.c (grub_script_memused): Removed variable.
23599 (grub_script_parsed): Likewise.
23600 (grub_script_malloc): Added a state argument. Use that instead of
23602 (grub_script_mem_record): Likewise.
23603 (grub_script_mem_record_stop): Likewise.
23604 (grub_script_arg_add): Likewise.
23605 (grub_script_add_arglist): Likewise.
23606 (grub_script_create_cmdline): Likewise.
23607 (grub_script_create_cmdif): Likewise.
23608 (grub_script_create_cmdmenu): Likewise.
23609 (grub_script_add_cmd): Likewise.
23610 (grub_script_parse): Setup the state before calling the parser.
23612 2006-04-16 Marco Gerards <marco@gnu.org>
23614 * normal/command.c (grub_command_init): Remove the title command.
23616 * normal/lexer.c (grub_script_yylex): Renamed from this...
23617 (grub_script_yylex2): ... to this.
23618 (grub_script_yylex): New function. Temporary
23619 introduced to filter some tokens.
23620 (grub_script_yyerror): Print a newline.
23622 * normal/main.c (read_config_file): Output information about the
23623 lines that contain errors. Wait for a key after all lines have
23624 been processed. Don't return an empty menu.
23626 * normal/parser.y (func_mem): Don't initialize.
23627 (menu_entry): Likewise.
23628 (err): New variable.
23629 (script): Don't return anything when an error was encountered.
23630 (ws, returns): Removed rules.
23631 (argument): Disabled concatenated variable support.
23632 (arguments): Remove explicit separators.
23633 (grubcmd): Likewise.
23634 (function): Likewise.
23635 (menuentry): Likewise.
23637 (commands): Likewise. Add error handling.
23639 * normal/script.c (grub_script_create_cmdline): If
23640 `grub_script_parsed' is 0, assume the parser encountered an error.
23642 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23644 * configure.ac: Add support for EFI. Fix the typo
23645 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23647 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23649 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23650 foreign multibyte characters should be shown correctly.
23652 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23654 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23656 (read_config_file): Made it to close file before returning.
23658 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23660 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23661 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23662 video/i386/pc/vbefill.c.
23664 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23665 video/i386/pc/vbefill.c.
23667 * include/grub/video.h (grub_video_blit_format): New enum.
23668 (grub_video_mode_info): Added new member blit_format.
23669 (grub_video_get_blit_format): New function prototype.
23671 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23672 function prototype.
23673 (grub_video_vbe_map_rgb): Likewise.
23674 (grub_video_vbe_unmap_color): Likewise.
23676 * include/grub/i386/pc/vbeblit.h: New file.
23678 * include/grub/i386/pc/vbefill.h: New file.
23680 * video/video.c (grub_video_get_blit_format): New function.
23681 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23682 (grub_video_vbe_map_rgb): Likewise.
23683 (grub_video_vbe_unmap_color): Likewise.
23685 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23687 (grub_video_vbe_blit_render_target): Changed to use more optimized
23689 (grub_video_vbe_setup): Added detection for optimized settings.
23690 (grub_video_vbe_create_render_target): Likewise.
23692 * video/i386/pc/vbeblit.c: New file.
23694 * video/i386/pc/vbefill.c: New file.
23696 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23698 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23701 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23702 parsing to support both hex and dec ranges. If filename was missing
23703 show usage information.
23705 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23707 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23708 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23710 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23711 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23712 (video_mod_SOURCES): Added.
23713 (video_mod_CFLAGS): Likewise.
23714 (video_mod_LDFLAGS): Likewise.
23715 (gfxterm_mod_SOURCES): Likewise.
23716 (gfxterm_mod_CFLAGS): Likewise.
23717 (gfxterm_mod_LDFLAGS): Likewise.
23718 (videotest_mod_SOURCES): Likewise.
23719 (videotest_mod_CFLAGS): Likewise.
23720 (videotest_mod_LDFLAGS): Likewise.
23721 (vesafb_mod_SOURCES): Removed.
23722 (vesafb_mod_CFLAGS): Likewise.
23723 (vesafb_mod_LDFLAGS): Likewise.
23724 (vga_mod_SOURCES): Likewise.
23725 (vga_mod_CFLAGS): Likewise.
23726 (vga_mod_LDFLAGS): Likewise.
23728 * commands/videotest.c: New file.
23730 * font/manager.c (fill_with_default_glyph): Modified to use
23732 (grub_font_get_glyph): Likewise.
23733 (fontmanager): Renamed from this...
23734 (font_manager): ... to this.
23736 * include/grub/font.h (grub_font_glyph): Added new structure.
23737 (grub_font_get_glyph): Modified to use grub_font_glyph.
23739 * include/grub/misc.h (grub_abs): Added as inline function.
23741 * include/grub/video.h: New file.
23743 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23744 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23745 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23746 (grub_vbe_get_controller_info): Renamed from this...
23747 (grub_vbe_bios_get_controller_info): ... to this.
23748 (grub_vbe_get_mode_info): Renamed from this...
23749 (grub_vbe_bios_get_mode_info): ... to this.
23750 (grub_vbe_set_mode): Renamed from this...
23751 (grub_vbe_bios_set_mode): ... to this.
23752 (grub_vbe_get_mode): Renamed from this...
23753 (grub_vbe_bios_get_mode): ... to this.
23754 (grub_vbe_set_memory_window): Renamed from this...
23755 (grub_vbe_bios_set_memory_window): ... to this.
23756 (grub_vbe_get_memory_window): Renamed from this...
23757 (grub_vbe_bios_get_memory_window): ... to this.
23758 (grub_vbe_set_scanline_length): Renamed from this...
23759 (grub_vbe_set_scanline_length): ... to this.
23760 (grub_vbe_get_scanline_length): Renamed from this...
23761 (grub_vbe_bios_get_scanline_length): ... to this.
23762 (grub_vbe_set_display_start): Renamed from this...
23763 (grub_vbe_bios_set_display_start): ... to this.
23764 (grub_vbe_get_display_start): Renamed from this...
23765 (grub_vbe_bios_get_display_start): ... to this.
23766 (grub_vbe_set_palette_data): Renamed from this...
23767 (grub_vbe_bios_set_palette_data): ... to this.
23768 (grub_vbe_set_pixel_rgb): Removed.
23769 (grub_vbe_set_pixel_index): Likewise.
23771 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23773 (grub_vbe_bios_get_controller_info): ... to this.
23774 (grub_vbe_get_mode_info): Renamed from this...
23775 (grub_vbe_bios_get_mode_info): ... to this.
23776 (grub_vbe_set_mode): Renamed from this...
23777 (grub_vbe_bios_set_mode): ... to this.
23778 (grub_vbe_get_mode): Renamed from this...
23779 (grub_vbe_bios_get_mode): ... to this.
23780 (grub_vbe_set_memory_window): Renamed from this...
23781 (grub_vbe_bios_set_memory_window): ... to this.
23782 (grub_vbe_get_memory_window): Renamed from this...
23783 (grub_vbe_bios_get_memory_window): ... to this.
23784 (grub_vbe_set_scanline_length): Renamed from this...
23785 (grub_vbe_set_scanline_length): ... to this.
23786 (grub_vbe_get_scanline_length): Renamed from this...
23787 (grub_vbe_bios_get_scanline_length): ... to this.
23788 (grub_vbe_set_display_start): Renamed from this...
23789 (grub_vbe_bios_set_display_start): ... to this.
23790 (grub_vbe_get_display_start): Renamed from this...
23791 (grub_vbe_bios_get_display_start): ... to this.
23792 (grub_vbe_set_palette_data): Renamed from this...
23793 (grub_vbe_bios_set_palette_data): ... to this.
23794 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23795 getting corrupted after calling it. Added more pushes and pops.
23796 (grub_vbe_bios_set_mode): Likewise.
23797 (grub_vbe_bios_get_mode): Likewise.
23798 (grub_vbe_bios_get_memory_window): Likewise.
23799 (grub_vbe_bios_set_scanline_length): Likewise.
23800 (grub_vbe_bios_get_scanline_length): Likewise.
23801 (grub_vbe_bios_get_display_start): Likewise.
23802 (grub_vbe_bios_set_palette_data): Likewise.
23804 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23805 (cl_insert): Likewise.
23806 (cl_delete): Likewise.
23808 * term/gfxterm.c: New file.
23810 * term/i386/pc/vesafb.c: Removed file.
23812 * video/video.c: New file.
23814 * video/i386/pc/vbe.c (real2pm): Added new function.
23815 (grub_video_vbe_draw_pixel): Likewise.
23816 (grub_video_vbe_get_video_ptr): Likewise.
23817 (grub_video_vbe_get_pixel): Likewise
23818 (grub_video_vbe_init): Likewise.
23819 (grub_video_vbe_fini): Likewise.
23820 (grub_video_vbe_setup): Likewise.
23821 (grub_video_vbe_get_info): Likewise.
23822 (grub_video_vbe_set_palette): Likewise.
23823 (grub_video_vbe_get_palette): Likewise.
23824 (grub_video_vbe_set_viewport): Likewise.
23825 (grub_video_vbe_get_viewport): Likewise.
23826 (grub_video_vbe_map_color): Likewise.
23827 (grub_video_vbe_map_rgb): Likewise.
23828 (grub_video_vbe_map_rgba): Likewise.
23829 (grub_video_vbe_unmap_color): Likewise.
23830 (grub_video_vbe_fill_rect): Likewise.
23831 (grub_video_vbe_blit_glyph): Likewise.
23832 (grub_video_vbe_blit_bitmap): Likewise.
23833 (grub_video_vbe_blit_render_target): Likewise.
23834 (grub_video_vbe_scroll): Likewise.
23835 (grub_video_vbe_swap_buffers): Likewise.
23836 (grub_video_vbe_create_render_target): Likewise.
23837 (grub_video_vbe_delete_render_target): Likewise.
23838 (grub_video_vbe_set_active_render_target): Likewise.
23839 (grub_vbe_set_pixel_rgb): Remove function.
23840 (grub_vbe_set_pixel_index): Likewise.
23841 (index_color_mode): Remove static variable.
23842 (active_mode): Likewise.
23843 (framebuffer): Likewise.
23844 (bytes_per_scan_line): Likewise.
23845 (grub_video_vbe_adapter): Added new static variable.
23846 (framebuffer): Likewise.
23847 (render_target): Likewise.
23848 (initial_mode): Likewise.
23849 (mode_in_use): Likewise.
23850 (mode_list): Likewise.
23852 2006-03-10 Marco Gerards <marco@gnu.org>
23854 * configure.ac (AC_INIT): Bumped to 1.93.
23856 * DISTLIST: Added `include/grub/hfs.h'.
23858 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23860 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23861 18H, which might help the BIOS falling back to next boot media.
23863 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23865 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23866 Poe Chen <poe.poechen@gmail.com>.
23868 2006-01-17 Marco Gerards <marco@gnu.org>
23870 * include/grub/normal.h: Include <grub/script.h>.
23871 (grub_command_list): Removed struct.
23872 (grub_command_list_t): Removed type.
23873 (grub_menu_entry): Remove members `num' and `command_list'. Add
23874 members `commands' and `sourcecode'.
23875 * include/grub/script.h: Add inclusion guards.
23876 (grub_script_cmd_menuentry): New struct.
23877 (grub_script_execute_menuentry): New prototype.
23878 (grub_script_lexer_record_start): Likewise.
23879 (grub_script_lexer_record_stop): Likewise.
23880 * normal/execute.c (grub_script_execute_menuentry): New function.
23881 * normal/lexer.c (record, recording, recordpos, recordlen): New
23883 (grub_script_lexer_record_start): New function.
23884 (grub_script_lexer_record_stop): Likewise.
23885 (recordchar): Likewise.
23886 (nextchar): Likewise.
23887 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23888 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23889 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23890 (current_menu): New variable.
23891 (free_menu): Mainly rewritten.
23892 (grub_normal_menu_addentry): New function.
23893 (read_config_file): Rewritten.
23894 * normal/menu.c (run_menu_entry): Mainly rewritten.
23895 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23897 (run): Mainly rewritten.
23898 * normal/parser.y (menu_entry): New variable.
23899 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23900 (menuentry): New rule.
23901 (command): Add `menuentry'.
23902 (if_statement): Allow additional returns before `fi'.
23903 * normal/script.c (grub_script_create_cmdmenu): New function.
23905 2006-01-03 Marco Gerards <marco@gnu.org>
23907 * INSTALL: GNU Bison is required.
23908 * configure.ac: Rewritten the test to detect Bison.
23909 * Makefile.in (YACC): New variable. Reported by Xun Sun
23910 <xun.sun.cn@gmail.com>.
23912 2006-01-03 Marco Gerards <marco@gnu.org>
23914 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23915 the HFS+ filesystem to filesystem blocks.
23916 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23917 GCC warning is silenced.
23919 2006-01-03 Marco Gerards <marco@gnu.org>
23921 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23922 read from disk from big endian to host byte order.
23924 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23926 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23928 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23929 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23930 embedded HFS+ filesystem.
23931 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23932 (grub_hfs_sblock): Move from here...
23933 * include/grub/hfs.h: To here... New file.
23934 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23936 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23938 (grub_hfsplus_volheader): Change type of member `magic' to
23940 (grub_hfsplus_data): Add new member `embedded_offset'.
23941 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23943 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23944 Calculate the offset.
23946 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23948 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23950 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23952 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23954 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23955 ENV->NAME is NULL after allocating ENV->VALUE.
23957 2005-12-25 Marco Gerards <marco@gnu.org>
23959 * kern/env.c (grub_env_set): Rewritten the error handling code.
23961 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23963 * geninit.sh: Made more robust, and more portable.
23965 2005-12-25 Marco Gerards <marco@gnu.org>
23967 Add support for Apple HFS+ filesystems.
23969 * fs/hfsplus.c: New file.
23971 * DISTLIST: Added `fs/hfsplus.c'.
23973 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23974 (hfsplus_mod_SOURCES): New variable.
23975 (hfsplus_mod_CFLAGS): Likewise.
23976 (hfsplus_mod_LDFLAGS): Likewise.
23977 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23978 (grub_setup_SOURCES): Likewise.
23979 (grub_mkdevicemap_SOURCES): Likewise.
23980 (grub_emu_SOURCES): Likewise.
23981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23983 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23985 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23987 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23989 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23990 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23991 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23992 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23993 normal/lexer.c, normal/parser.y, normal/script.c, and
23995 Removed kern/sparc64/cache.c.
23997 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23998 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
24001 * configure.ac (AC_INIT): Bumped to 1.92.
24003 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24005 * kern/err.c (grub_error_push): Added new function to support error
24007 (grub_error_pop): Likewise.
24008 (grub_error_stack_items): New local variable to support error stacks.
24009 (grub_error_stack_pos): Likewise.
24010 (grub_error_stack_assert): Likewise.
24011 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24013 (grub_print_error): Added support to print errors from error stack.
24015 * include/grub/err.h (grub_error_push): Added function prototype.
24016 (grub_error_pop): Likewise.
24018 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24020 * configure.ac: Accept `powerpc64' as host_cpu.
24021 (amd64): Rename to `biarch32'.
24023 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24024 non-cacheline-aligned addresses.
24026 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24027 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24028 if `size' is non-zero.
24030 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
24032 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24033 and `cd' to make sure the filename is not prefixed with a
24035 (pkgdata_MODULES): Add `gpt.mod'.
24036 (gpt_mod_SOURCES): New variable.
24037 (gpt_mod_CFLAGS): Likewise.
24038 (gpt_mod_LDFLAGS): Likewise.
24040 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24042 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24045 * partmap/gpt.c: New file.
24047 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24048 GPT partition map is detected.
24050 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24052 * commands/i386/pc/play.c: New file.
24053 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24054 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24057 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
24059 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24060 ((unused))' to silence gcc warning.
24062 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24064 * configure.ac: Correct `AC_PROG_YACC' test.
24066 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24068 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24069 check before installing files.
24071 2005-11-22 Mike Small <smallm@panix.com>
24073 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24074 number regex so multidigit numbers are recognized correctly.
24076 2005-11-22 Mike Small <smallm@panix.com>
24078 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24079 debugging message before attempting to claim memory.
24080 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24081 multiple addresses in case of failure.
24083 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24085 * term/tparm.c (get_space): Remove empty `if' statement.
24087 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24089 * kern/parser.c (check_varstate): Rename `state' to 's'.
24091 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24093 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24094 variable definitions to the beginning of each function. Sort stack
24096 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24097 `buf' argument to `char *'.
24099 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24101 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24102 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24103 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24104 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24105 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24106 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24107 configfile.mod, search.mod, gzio.mod and test.mod.
24108 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24109 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24110 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24111 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24112 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24113 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24114 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24115 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24116 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24117 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24118 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24119 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24120 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24121 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24122 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24123 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24124 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24125 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24126 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24127 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24128 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24129 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24130 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24132 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24134 (pkgdata_MODULES): Add test.mod.
24136 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24138 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24139 appending to variables with "+=".
24140 (PModule): Use full pathname to generate *.lst filenames.
24142 * Makefile.in: Fixed list rules moved from genmk.rb.
24143 (.DELETE_ON_ERROR): New special target.
24144 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24146 * conf/i386-pc.rmk: Include conf/common.mk.
24147 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24148 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24149 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24150 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24151 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24152 configfile.mod, search.mod, gzio.mod and test.mod.
24153 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24154 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24155 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24156 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24157 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24158 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24159 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24160 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24161 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24162 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24163 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24164 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24165 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24166 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24167 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24168 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24169 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24170 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24171 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24172 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24173 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24174 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24175 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24177 * conf/common.rmk: ... to here. New file.
24179 * conf/common.mk: New file.
24181 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24183 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24184 (grub_script.tab.c): ... here.
24186 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24187 (grub_script.tab.c): ... here.
24189 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24190 (grub_script.tab.c): ... here.
24192 * normal/command.c (grub_command_find): Fixed a memory leak of
24193 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24195 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24197 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24198 "@" which marks the start of a comment on ARM.
24199 (VARIABLE): Likewise.
24201 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24203 Add support for Linux/ADFS partition tables.
24205 * partmap/acorn.c: New file.
24207 * include/grub/acorn_filecore.h: Likewise.
24209 * DISTLIST: Added `partmap/acorn.c' and
24210 `include/grub/acorn_filecore.h'.
24212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24214 (pkgdata_MODULES): Add `acorn.mod'.
24215 (acorn_mod_SOURCES): New variable.
24216 (acorn_mod_CFLAGS): Likewise.
24218 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24220 (pkgdata_MODULES): Add `acorn.mod'.
24221 (acorn_mod_SOURCES): New variable.
24222 (acorn_mod_CFLAGS): Likewise.
24224 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24225 (pkgdata_MODULES): Add `acorn.mod'.
24226 (acorn_mod_SOURCES): New variable.
24227 (acorn_mod_CFLAGS): Likewise.
24228 (acorn_mod_LDFLAGS): Likewise.
24230 * include/types.h (grub_disk_addr_t): New typedef.
24232 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24234 * geninit.sh: New file.
24236 * geninitheader.sh: Likewise.
24238 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24239 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24240 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24241 * commands/configfile.c (grub_configfile_init)
24242 (grub_configfile_fini): Likewise.
24243 * commands/default.c (grub_default_init, grub_default_fini):
24245 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24246 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24247 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24248 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24250 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24251 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24253 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24254 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24256 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24258 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24260 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24261 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24262 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24263 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24264 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24265 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24266 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24267 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24268 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24269 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24270 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24271 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24272 * partmap/amiga.c (grub_amiga_partition_map_init)
24273 (grub_amiga_partition_map_fini): Likewise.
24274 * partmap/apple.c (grub_apple_partition_map_init)
24275 (grub_apple_partition_map_fini): Likewise.
24276 * partmap/pc.c (grub_pc_partition_map_init)
24277 (grub_pc_partition_map_fini): Likewise.
24278 * partmap/sun.c (grub_sun_partition_map_init,
24279 grub_sun_partition_map_fini): Likewise.
24280 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24283 * util/grub-emu.c: Include <grub_modules_init.h>.
24284 (main): Don't initialize and de-initialize any modules directly,
24285 use `grub_init_all' and `grub_fini_all' instead.
24287 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24288 `grub_vesafb_mod_init'.
24289 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24291 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24292 `grub_vga_mod_init'. Updated all users.
24293 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24295 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24296 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24299 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24300 Generate a function to initialize the module in utilities.
24301 Updated all callers.
24302 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24303 initialize the module in utilities. Updated all callers.
24305 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24307 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24308 escape sequence and a literal ^L to clear the screen.
24310 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24311 when returning from Open Firmware.
24313 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24315 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24316 (grub_ofconsole_height): Likewise.
24317 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24318 manually insert a '\n'.
24319 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24320 `grub_ofconsole_height'. Return early if these are already set.
24322 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24324 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24325 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24326 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24327 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24328 and `normal/script.c'.
24329 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24330 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24331 (test_mod_SOURCES): New variable.
24332 (test_mod_CFLAGS): Likewise.
24333 (test_mod_LDFLAGS): Likewise.
24334 (pkgdata_MODULES): Add `test.mod'.
24335 (grub_script.tab.c): New rule.
24336 (grub_script.tab.h): Likewise.
24338 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24341 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24342 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24343 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24344 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24345 (test_mod_SOURCES): New variable.
24346 (test_mod_CFLAGS): Likewise.
24347 (pkgdata_MODULES): Add `test.mod'.
24348 (grub_script.tab.c): New rule.
24349 (grub_script.tab.h): Likewise.
24351 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24353 Add initial scripting support.
24355 * commands/test.c: New file.
24356 * include/grub/script.h: Likewise.
24357 * normal/execute.c: Likewise.
24358 * normal/function.c: Likewise.
24359 * normal/lexer.c: Likewise.
24360 * normal/parser.y: Likewise.
24361 * normal/script.c: Likewise.
24363 * configure.ac: Add `AC_PROG_YACC' test.
24365 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24366 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24367 `normal/function.c' and `normal/script.c'.
24368 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24369 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24370 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24372 (pkgdata_MODULES): Add `test.mod'.
24373 (grub_script.tab.c): New rule.
24374 (grub_script.tab.h): Likewise.
24376 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24378 * include/grub/normal.h (grub_test_init): New prototype.
24379 (grub_test_fini): Likewise.
24381 * normal/command.c: Include <grub/script.h>.
24382 (grub_command_execute): Rewritten.
24384 * util/grub-emu.c (main): Call `grub_test_init' and
24387 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24389 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24391 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24392 there are no pending characters.
24394 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24396 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24397 `grub_strndup' to drop device arguments. Replace unnecessary
24398 `grub_strndup' with `grub_strdup'.
24400 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24402 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24403 `debug' environment variable has been set.
24405 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24407 * Makefile.in (install-local): Use $(DATA).
24408 (uninstall): Likewise.
24409 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24410 (sbin_UTILITIES): ... to here.
24411 (sbin_SCRIPTS): New variable.
24412 (grub_install_SOURCES): New variable.
24413 * util/powerpc/ieee1275/grub-install.in: New file.
24414 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24416 (add_segments): Call `grub_util_get_path'.
24418 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24420 From Timothy Baldwin:
24421 * commands/ls.c (grub_ls_list_files): Close FILE with
24423 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24425 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24427 * include/grub/parser.h: New file.
24429 * kern/parser.c: Likewise.
24431 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24432 (grub_setup_SOURCES): Likewise.
24433 (grub_probefs_SOURCES): Likewise.
24434 (grub_emu_SOURCES): Likewise.
24435 (kernel_img_HEADERS): Add `parser.h'.
24437 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24438 (grub_emu_SOURCES): Add `kern/parser.c'.
24439 (grubof_SOURCES): Likewise.
24441 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24442 (grubof_SOURCES): Add `kern/parser.c'.
24444 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24446 * kern/misc.c (grub_split_cmdline): Removed function.
24448 * kern/rescue.c: Include <grub/parser.h>.
24449 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24450 of `grub_split_cmdline'.
24452 * normal/command.c: Include <grub/parser.h>.
24453 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24454 of `grub_split_cmdline'.
24456 * normal/completion.c: Include <grub/parser.h>.
24457 (cmdline_state): New variable.
24458 (iterate_dir): End the filename with a quote depending on the
24459 command line state.
24460 (get_state): new function.
24461 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24462 split the arguments and determine the current argument. When the
24463 argument string is not quoted, escape all spaces.
24465 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24467 * normal/sparc64/setjmp.S: New file.
24469 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24471 * include/grub/sparc64/libgcc.h: New file.
24472 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24473 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24474 normal/sparc64/setjmp.c.
24476 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24478 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24479 * kern/sparc64/cache.S: New file.
24480 * kern/sparc64/cache.c: Removed.
24481 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24482 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24484 (COMMON_LDFLAGS): Add -melf64_sparc.
24485 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24486 (grubof_SOURCES): Use cache.S instead of cache.c.
24487 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24488 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24489 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24491 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24492 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24493 (linux_mod_CFLAGS): Commented out.
24494 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24495 out because module isn't built.
24496 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24497 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24498 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24499 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24500 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24501 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24502 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24503 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24504 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24505 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24506 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24507 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24508 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24509 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24511 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24513 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24514 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24515 longer, because HFS should not be used on PC.
24517 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24519 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24520 consistently within the loop.
24522 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24524 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24525 directory can not be read.
24527 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24529 * configure.ac (AC_INIT): Increase the version number to 1.91.
24531 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24532 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24533 term/i386/pc/serial.c.
24535 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24537 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24538 file size must be permitted.
24540 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24541 between %ah and %al.
24543 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24545 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24547 Call the hook with a NUL-terminated filename.
24548 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24551 * kern/term.c (cursor_state): New variable.
24552 (grub_term_set_current): Reset the cursor state on a new
24554 (grub_setcursor): Rewritten to use CURSOR_STATE.
24555 (grub_getcursor): New function.
24557 * include/grub/term.h (grub_getcursor): New prototype.
24559 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24560 integers on ARM. Reported by Timothy Baldwin
24561 <T.E.Baldwin99@members.leeds.ac.uk>.
24563 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24565 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24567 (grub_sfs_dir): Likewise.
24569 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24571 Add support for the SFS filesystem.
24573 * fs/sfs.c: New file.
24575 * DISTLIST: Added `fs/sfs.c'.
24577 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24578 (grub_probefs_SOURCES): Likewise.
24579 (grub_emu_SOURCES): Likewise.
24580 (pkgdata_MODULES): Add `sfs.mod'.
24581 (sfs_mod_SOURCES): New variable.
24582 (sfs_mod_CFLAGS): Likewise.
24583 (sfs_mod_LDFLAGS): Likewise.
24585 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24586 (pkgdata_MODULES): Add `sfs.mod'.
24587 (sfs_mod_SOURCES): New variable.
24588 (sfs_mod_CFLAGS): Likewise.
24590 * util/grub-emu.c (main): Call `grub_sfs_init' and
24593 * include/grub/fs.h (grub_sfs_init): New prototype.
24594 (grub_sfs_fini): Likewise.
24596 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24598 Add support for the AFFS filesystem.
24600 * fs/affs.c: New file.
24602 * DISTLIST: Added `fs/affs.c'.
24604 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24605 (grub_probefs_SOURCES): Likewise.
24606 (grub_emu_SOURCES): Likewise.
24607 (pkgdata_MODULES): Add `affs.mod'.
24608 (affs_mod_SOURCES): New variable.
24609 (affs_mod_CFLAGS): Likewise.
24610 (affs_mod_LDFLAGS): Likewise.
24612 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24613 (pkgdata_MODULES): Add `affs.mod'.
24614 (affs_mod_SOURCES): New variable.
24615 (affs_mod_CFLAGS): Likewise.
24617 * util/grub-emu.c (main): Call `grub_affs_init' and
24620 * include/grub/fs.h (grub_affs_init): New prototype.
24621 (grub_affs_fini): Likewise.
24623 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24625 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24627 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24629 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24632 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24635 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24636 (COMMON_LDFLAGS): New variable.
24637 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24638 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24639 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24640 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24641 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24642 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24643 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24644 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24645 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24646 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24647 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24648 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24649 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24650 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24651 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24653 (normal_mod_ASFLAGS): Add `-m32'.
24655 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24656 (grub_host_size_t, grub_host_ssize_t): New types.
24657 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24658 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24659 `GRUB_HOST_SIZEOF_VOID_P'.
24661 * include/grub/kernel.h (struct grub_module_header): Type of
24662 member offset changed to `grub_host_off_t'. Type of member size
24663 changed to `grub_host_size_t'.
24664 (struct grub_module_info): Type of member offset changed to
24665 `grub_host_off_t'. Type of member size changed to
24666 `grub_host_size_t'.
24668 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24670 Make GRUB's kernel compliant to Multiboot Specification.
24672 * kern/i386/pc/startup.S (multiboot_header): New label.
24673 (multiboot_entry): Likewise.
24674 (multiboot_trampoline): Likewise.
24676 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24677 Increased to 0x4A0.
24679 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24680 put parentheses after a question mark.
24681 [!GRUB_UTIL] (my_mod): New variable.
24683 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24685 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24687 Adds support for the XFS filesystem. Btrees are not supported
24690 * fs/xfs.c: New file.
24692 * DISTLIST: Added `fs/xfs.c'.
24694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24695 (grub_probefs_SOURCES): Likewise.
24696 (grub_emu_SOURCES): Likewise.
24697 (pkgdata_MODULES): Add `xfs.mod'.
24698 (xfs_mod_SOURCES): New variable.
24699 (xfs_mod_CFLAGS): Likewise.
24701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24702 (pkgdata_MODULES): Add `xfs.mod'.
24703 (xfs_mod_SOURCES): New variable.
24704 (xfs_mod_CFLAGS): Likewise.
24706 * util/grub-emu.c (main): Call `grub_xfs_init' and
24709 * include/grub/fs.h (grub_xfs_init): New prototype.
24710 (grub_xfs_fini): Likewise.
24713 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24715 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24716 color modes, allow greater than 16 colors to be configured as
24719 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24721 * normal/completion.c (complete_arguments): Add the qualifier
24722 const into OPTIONS.
24724 From Omniflux <omniflux+lists@omniflux.com>:
24725 * include/grub/terminfo.h: New file.
24726 * include/grub/tparm.h: Likewise.
24727 * include/grub/i386/pc/serial.h: Likewise.
24728 * term/terminfo.c: Likewise.
24729 * term/tparm.c: Likewise.
24730 * term/i386/pc/serial.c: Likewise.
24731 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24733 (terminfo_mod_SOURCES): New variable.
24734 (terminfo_mod_CFLAGS): Likewise.
24735 (serial_mod_SOURCES): Likewise.
24736 (serial_mod_CFLAGS): Likewise.
24738 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24740 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24741 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24742 and kern/powerpc/ieee1275/cmain.c, respectively.
24744 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24745 * kern/powerpc/ieee1275/crt0.S: ... here.
24747 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24748 * kern/powerpc/ieee1275/cmain.c: ... here.
24750 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24751 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24752 instead of boot/powerpc/ieee1275/crt0.S and
24753 boot/powerpc/ieee1275/cmain.c, respectively.
24755 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24756 sectors. It was not used anyway.
24758 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24760 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24761 `unused parameter' warning.
24763 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24765 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24767 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24770 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24772 * include/grub/normal.h (enum grub_completion_type): Added
24773 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24775 * normal/cmdline.c (print_completion): Handle
24776 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24777 * normal/menu_entry.c (store_completion): Likewise.
24779 * normal/completion.c (complete_arguments): New function.
24780 (grub_normal_do_completion): Call `complete_arguments' when the
24781 current words start with a dash.
24783 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24785 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24786 `gzio.mod' instead of `io.mod').
24788 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24790 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24791 (DISTDIRS): Added io and video.
24792 Rewrite the search routine to make an output consistently.
24794 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24795 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24796 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24797 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24798 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24799 util/powerpc/ieee1275/misc.c.
24801 * include/grub/gzio.h: New file.
24802 * io/gzio.c: Likewise.
24804 * kern/file.c (grub_file_close): Call grub_device_close only if
24805 FILE->DEVICE is not NULL.
24807 * include/grub/mm.h [!NULL] (NULL): New macro.
24809 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24812 (pkgdata_MODULES): Added gzio.mod.
24813 (gzio_mod_SOURCES): New variable.
24814 (gzio_mod_CFLAGS): Likewise.
24816 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24817 (pkgdata_MODULES): Added gzio.mod.
24818 (gzio_mod_SOURCES): New variable.
24819 (gzio_mod_CFLAGS): Likewise.
24821 * commands/cat.c: Include grub/gzio.h.
24822 (grub_cmd_cat): Use grub_gzfile_open instead of
24825 * commands/cmp.c: Include grub/gzio.h.
24826 (grub_cmd_cmp): Use grub_gzfile_open instead of
24829 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24830 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24832 (grub_rescue_cmd_module): Likewise.
24834 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24836 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24837 kern/sparc64/ieee1275/init.c because it contains _start.
24838 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24840 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24842 * configure.ac: Add support for sparc64 host with ieee1275
24844 * configure: Generated from configure.ac.
24845 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24847 (grub_ofdisk_read): Likewise.
24848 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24849 pointers as (void *) to remove a warning.
24850 (grub_ofdisk_close): Likewise.
24851 (grub_ofdisk_read): Likewise.
24852 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24853 returns, so make it return void to remove a warning.
24854 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24855 Corresponding prototype change.
24856 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24857 values, and cast the pointers as (void *) to remove a warning.
24858 (grub_mm_dump): Likewise.
24859 * conf/sparc64-ieee1275.mk: New file.
24860 * conf/sparc64-ieee1275.rmk: Likewise.
24861 * include/grub/sparc64/setjmp.h: Likewise.
24862 * include/grub/sparc64/types.h: Likewise.
24863 * include/grub/sparc64/ieee1275/console.h: Likewise.
24864 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24865 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24866 * include/grub/sparc64/ieee1275/time.h: Likewise.
24867 * kern/sparc64/cache.c: Likewise.
24868 * kern/sparc64/dl.c: Likewise.
24869 * kern/sparc64/ieee1275/init.c: Likewise.
24870 * kern/sparc64/ieee1275/openfw.c: Likewise.
24872 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24874 * util/console.c (grub_ncurses_putchar): If C is greater than
24875 0x7f, set C to a question mark.
24876 (grub_ncurses_getcharwidth): New function.
24877 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24880 * normal/menu.c (print_entry): Made aware of Unicode. First,
24881 convert TITLE to UCS-4, and predict the cursor position by
24884 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24886 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24888 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24890 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24891 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24894 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24895 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24896 grub_strcpy and grub_strlen. Take it into account that a space
24897 character is inserted as a delimiter.
24899 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24901 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24902 invalid magic in the error.
24904 * commands/search.c: New file.
24906 * util/grub-emu.c (main): Call grub_search_init and
24909 * kern/rescue.c (grub_rescue_print_disks): Removed.
24910 (grub_rescue_print_devices): New function.
24911 (grub_rescue_cmd_ls): Use grub_device_iterate with
24912 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24913 grub_rescue_print_disks.
24915 * kern/partition.c (grub_partition_iterate): Return the result of
24916 PARTMAP->ITERATE instead of GRUB_ERRNO.
24918 * kern/device.c: Include grub/partition.h.
24919 (grub_device_iterate): New function.
24921 * include/grub/partition.h (grub_partition_iterate): Return int
24922 instead of grub_err_t.
24924 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24926 [GRUB_UTIL] (grub_search_fini): Likewise.
24928 * include/grub/device.h (grub_device_iterate): New prototype.
24930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24932 (pkgdata_MODULES): Added search.mod.
24933 (search_mod_SOURCES): New variable.
24934 (search_mod_CFLAGS): Likewise.
24936 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24937 (pkgdata_MODULES): Added search.mod.
24938 (search_mod_SOURCES): New variable.
24939 (search_mod_CFLAGS): Likewise.
24941 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24942 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24943 All callers changed.
24945 * DISTLIST: Added commands/search.c.
24947 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24949 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24951 (grub_getcharwidth): New function.
24953 * kern/misc.c (grub_utf8_to_ucs4): New function.
24955 * include/grub/term.h (struct grub_term): Added a new member
24957 (grub_getcharwidth): New prototype.
24959 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24961 * term/i386/pc/console.c (map_char): New function. Segregated from
24962 grub_console_putchar.
24963 (grub_console_putchar): Use map_char.
24964 (grub_console_getcharwidth): New function.
24965 (grub_console_term): Specified grub_console_getcharwidth as
24968 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24969 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24971 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24973 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24974 on grub_strtoul completely.
24975 (write_char): Declare local variables in the beginning of the
24977 (grub_vesafb_getcharwidth): New function.
24978 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24981 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24983 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24984 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24985 commands/i386/pc/vbetest.c.
24987 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24988 call grub_vbe_get_controller_info again, because the returned
24989 information is volatile.
24990 (grub_vbe_set_video_mode): Mostly rewritten.
24991 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24992 grub_vbe_status_t correctly.
24993 (grub_vbe_get_video_mode_info): Likewise.
24994 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24995 several if statements.
24997 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24998 * commands/i386/pc/vbeinfo.c: ... this.
25000 * commands/i386/pc/vbe_test.c: Renamed to ...
25001 * commands/i386/pc/vbetest.c: ... this.
25003 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25005 (grub_cmd_vbeinfo): ... this. Save video modes before
25006 iterating. Skip a video mode, if it is not available, not enough
25007 information is given or it is monochrome. Show the memory
25008 model. Leave the interpretation of MODEVAR to grub_strtoul
25010 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25011 (GRUB_MOD_FINI): Likewise.
25013 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25014 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25015 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25016 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25017 grub_strtoul completely.
25018 (real2pm): Removed.
25019 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25020 (GRUB_MOD_FINI): Likewise.
25022 * normal/misc.c: Include grub/mm.h.
25024 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25025 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25026 (vbe_list_modes_mod_SOURCES): Removed.
25027 (vbe_list_modes_mod_CFLAGS): Likewise.
25028 (vbe_test_mod_SOURCES): Likewise.
25029 (vbe_test_mod_CFLAGS): Likewise.
25030 (vbeinfo_mod_SOURCES): New variable.
25031 (vbeinfo_mod_CFLAGS): Likewise.
25032 (vbetest_mod_SOURCES): Likewise.
25033 (vbetest_mod_CFLAGS): Likewise.
25035 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25037 * normal/misc.c: New file.
25039 * DISTLIST: Added normal/misc.c.
25041 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25042 DISK to HOOK. Call HOOK with DISK.
25043 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25044 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25045 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25047 * normal/menu_entry.c (struct screen): Added a new member
25048 "completion_shown".
25049 (completion_buffer): New global variable.
25050 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25051 (store_completion): New function.
25052 (complete): Likewise.
25053 (clear_completions): Likewise.
25054 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25055 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25056 a tab, call complete.
25058 * normal/completion.c (disk_dev): Removed.
25059 (print_simple_completion): Likewise.
25060 (print_partition_completion): Likewise.
25061 (print_func): New global variable.
25062 (add_completion): Do not take the arguments WHAT or PRINT any
25063 longer. Added a new argument TYPE. Instead of printing directly,
25064 call PRINT_FUNC if not NULL.
25065 All callers changed.
25066 (complete_device): Use a local variable DEV instead of
25067 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25068 (grub_normal_do_completion): Take a new argument HOOK. Do not
25069 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25070 empty string, return NULL instead.
25071 All callers changed.
25073 * normal/cmdline.c (print_completion): New function.
25075 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25077 All callers changed.
25079 * kern/disk.c (grub_print_partinfo): Removed.
25081 * include/grub/partition.h (struct grub_partition_map): Add a new
25082 argument DISK into HOOK of ITERATE.
25083 (grub_partition_iterate): Add a new argument DISK to HOOK.
25085 * include/grub/normal.h (enum grub_completion_type): New enum.
25086 (grub_completion_type_t): New type.
25087 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25088 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25089 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25090 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25091 (grub_normal_do_completion): Added a new argument HOOK.
25092 (grub_normal_print_device_info): New prototype.
25094 * include/grub/disk.h (grub_print_partinfo): Removed.
25096 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25097 (normal_mod_SOURCES): Likewise.
25098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25099 (normal_mod_SOURCES): Likewise.
25101 * commands/ls.c (grub_ls_list_disks): Use
25102 grub_normal_print_device_info instead of grub_print_partinfo. Free
25104 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25105 duplicating the code.
25107 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25109 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25110 follow GCS more precisely.
25111 * commands/i386/pc/vbe_test.c: Likewise.
25112 * include/grub/i386/pc/vbe.h: Likewise.
25113 * term/i386/pc/vesafb.c: Likewise.
25114 * video/i386/pc/vbe.c: Likewise.
25116 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25118 * DISTLIST: Added term/i386/pc/vesafb.c
25119 DISTLIST: Added video/i386/pc/vbe.c
25120 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25121 DISTLIST: Added commands/i386/pc/vbe_test.c.
25122 * commands/i386/pc/vbe_list_modes.c: New file.
25123 * commands/i386/pc/vbe_test.c: Likewise.
25124 * term/i386/pc/vesafb.c: Likewise.
25125 * video/i386/pc/vbe.c: Likewise.
25126 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25127 (grub_vbe_probe) Added prototype.
25128 (grub_vbe_set_video_mode) Likewise.
25129 (grub_vbe_get_video_mode) Likewise.
25130 (grub_vbe_get_video_mode_info) Likewise.
25131 (grub_vbe_set_pixel_rgb) Likewise.
25132 (grub_vbe_set_pixel_index) Likewise.
25133 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25134 (pkgdata_MODULES): Added vesafb.mod.
25135 (pkgdata_MODULES): Added vbe_list_modes.mod.
25136 (pkgdata_MODULES): Added vbe_test.mod.
25137 (vbe_mod_SOURCES): Added.
25138 (vbe_mod_CFLAGS): Likewise.
25139 (vesafb_mod_SOURCES): Likewise.
25140 (vesafb_mod_CFLAGS): Likewise.
25141 (vbe_list_modes_mod_SOURCES): Likewise.
25142 (vbe_list_modes_mod_CFLAGS): Likewise.
25143 (vbe_test_mod_SOURCES): Likewise.
25144 (vbe_test_mod_CFLAGS): Likewise.
25146 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25148 * normal/command.c (grub_command_execute): If INTERACTIVE is
25149 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25150 CMDLINE. Disable the pager if INTERACTIVE is true.
25151 All callers are changed.
25153 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25154 before reading a config file.
25155 * normal/main.c (read_config_file): Even if a command is not
25156 found, register it if it is within an entry.
25158 * util/grub-emu.c: Include sys/types.h and unistd.h.
25159 (options): Added --hold.
25160 (struct arguments): Added a new member "hold".
25161 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25163 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25164 cleared by a debugger, if it is not zero.
25166 * include/grub/normal.h (grub_command_execute): Add an argument
25169 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25171 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25173 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25175 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25176 program with another one, because the old one didn't detect a bug
25177 in gcc-3.4. Always use regparm 2, because the new test is still
25178 not enough for gcc-4.0. Someone must investigate a simple test
25179 case which detects a bug in gcc-4.0.
25181 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25183 * DISTLIST: Added normal/completion.c.
25185 * normal/completion.c: New file.
25187 * term/i386/pc/console.c (grub_console_getwh): New function.
25188 (grub_console_term): Assign grub_console_getwh to getwh.
25190 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25191 function is defined in normal/completion.c as
25192 grub_normal_do_completion.
25193 (grub_cmdline_get): Use grub_normal_do_completion instead of
25196 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25197 returns non-zero, otherwise return 0.
25198 (grub_partition_iterate): First, probe the partition map. Then,
25199 call ITERATE only for this partition map.
25201 * kern/misc.c (grub_strncmp): Rewritten.
25203 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25204 returns non-zero. Otherwise return 0.
25206 * include/grub/partition.h (grub_partition_map_iterate): Return
25207 int instead of void.
25209 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25211 * include/grub/misc.h (grub_strncmp): Change the type of N to
25214 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25217 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25218 unsigned explicitly before comparing it with I.
25220 * kern/main.c (grub_env_write_root): Add the attribute unused into
25223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25224 normal/completion.c.
25225 (normal_mod_SOURCES): Likewise.
25226 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25227 (normal_mod_SOURCES): Likewise.
25229 * normal/command.c (grub_iterate_commands): If ITERATE returns
25230 non-zero, return one immediately.
25232 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25234 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25235 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25237 (grub_vbe_get_controller_info): New function.
25238 (grub_vbe_get_mode_info): Likewise.
25239 (grub_vbe_set_mode): Likewise.
25240 (grub_vbe_get_mode): Likewise.
25241 (grub_vbe_set_memory_window): Likewise.
25242 (grub_vbe_get_memory_window): Likewise.
25243 (grub_vbe_set_scanline_length): Likewise.
25244 (grub_vbe_get_scanline_length): Likewise.
25245 (grub_vbe_set_display_start): Likewise.
25246 (grub_vbe_get_display_start): Likewise.
25247 (grub_vbe_set_palette_data): Likewise.
25248 * include/grub/i386/pc/vbe.h: New file.
25250 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25252 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25253 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25254 * DISTLIST: Likewise.
25255 * kern/ieee1275/of.c: Moved to ...
25256 * kern/ieee1275/ieee1275.c: ... here.
25258 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25260 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25261 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25262 Pass 0 as `end' parameter to grub_strtoul().
25264 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25266 * include/grub/powerpc/ieee1275/console.h: Do not include
25267 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25269 (grub_console_cur_color): Remove i386-specific prototype.
25270 (grub_console_real_putchar): Likewise.
25271 (grub_console_checkkey): Likewise.
25272 (grub_console_getkey): Likewise.
25273 (grub_console_getxy): Likewise.
25274 (grub_console_gotoxy): Likewise.
25275 (grub_console_cls): Likewise.
25276 (grub_console_setcursor): Likewise.
25277 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25278 Include <grub/machine/console.h>.
25279 * term/ieee1275/ofconsole.c: Likewise.
25281 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25283 * Makefile.in (LIBLZO): New variable.
25285 * configure.ac: Check for LZO version 2.
25287 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25288 lzo/lzo1x.h instead of lzo1x.h.
25290 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25293 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25294 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25296 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25297 copying the data from PARTITION to P.
25299 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25301 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25302 negative, unload the module.
25304 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25305 map is "pc_partition_map" but not "pc".
25306 (usage): Fix the description. The options are --boot-image and
25307 --core-image but not --boot-file or --core-file.
25308 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25309 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25312 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25313 --core-file. Specify INSTALL_DEVICE as an argument.
25315 * util/console.c: Include config.h.
25316 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25317 [HAVE_NCURSES_H]: Include ncurses.h.
25318 [HAVE_CURSES_H]: Include curses.h.
25319 [!A_NORMAL] (A_NORMAL): Defined as zero.
25320 [!A_STANDOUT] (A_STANDOUT): Likewise.
25322 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25324 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25326 * configure.ac: Check for curses libraries and headers.
25328 * Makefile.in (LIBCURSES): New variable.
25330 * genmk.rb (Script::rule): Set the executable bits.
25332 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25333 name of the PC partition map is "pc_partition_map" but not "pc".
25335 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25337 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25338 (modules): Likewise.
25339 (usage): Added descriptions for --modules and --grub-probefs.
25340 Handle --modules and --grub-probefs. Save the arguments in MODULES
25341 and GRUB_PROBEFS, respectively.
25342 Auto-detect a filesystem module against GRUBDIR. If the result is
25343 empty and modules are not specified explicitly, abort the
25344 installation. Add the result to MODULES.
25346 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25347 disk/powerpc/ieee1275/ofdisk.c,
25348 include/grub/powerpc/ieee1275/init.h and
25349 term/powerpc/ieee1275/ofconsole.c.
25350 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25351 term/ieee1275/ofconsole.c.
25353 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25355 * COPYING: Upgraded to the latest version. Only the address of the
25356 FSF office has changed.
25358 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25360 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25361 kern/ieee1275.c with kern/ieee1275/of.c.
25363 * kern/ieee1275.c: Moved to ...
25364 * kern/ieee1275/of.c: ... here.
25366 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25368 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25371 * config.guess: Updated to the latest version from gnulib.
25372 * config.sub: Likewise.
25373 * install.sh: Likewise.
25374 * mkinstalldirs: Likewise.
25376 * include/grub/console.h: Removed. This file is arch-specific. Do
25377 not put this in include/grub.
25379 * include/grub/i386/pc/console.h: Resurrected.
25381 * util/console.c: Include grub/machine/console.h instead of
25383 * util/grub-emu.c: Likewise.
25385 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25387 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25390 From Vincent Pelletier <subdino2004@yahoo.fr>
25391 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25392 Redefined to use grub_getwh.
25393 (grub_term): New member named getwh.
25394 (grub_getwh): New prototype.
25395 * kern/term.c (grub_getwh): New function.
25396 * term/i386/pc/console.c (grub_console_getwh): New function.
25397 (grub_console_term): New member `getwh'.
25398 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25399 (grub_vga_term): New member `getwh'.
25400 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25402 (grub_ofconsole_getw): New function.
25403 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25404 (grub_ofconsole_term): New field named getwh and new initial
25407 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25409 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25410 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25411 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25412 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25413 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25414 of <grub/machine/ieee1275.h>.
25415 * commands/ieee1275/reboot.c: Likewise.
25416 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25417 * kern/ieee1275.c: ... to here. All users updated. Change all
25418 parameter structs to use new type `grub_ieee1275_cell_t'.
25419 * term/powerpc/ieee1275/ofconsole.c: Move ...
25420 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25421 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25422 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25423 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25425 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25426 Remove unused prototypes. All users updated.
25427 * include/grub/powerpc/ieee1275/console.h: Removed.
25428 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25429 `grub_ieee1275_cell_t'.
25430 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25431 Cast comparisons with -1 to the correct type.
25432 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25433 type to match `grub_ieee1275_entry_fn'.
25435 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25437 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25439 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25440 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25442 (grub_probefs_SOURCES): New variable.
25444 * util/i386/pc/grub-probefs.c: New file.
25446 * util/i386/pc/grub-setup.c (main): Call
25447 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25448 grub_hfs_init and grub_jfs_init to initialize the system. Call
25449 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25450 grub_pc_partition_map_fini to finish the system.
25452 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25454 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25456 (grub_multiboot_load_elf32): Likewise.
25457 (grub_multiboot_is_elf64): Likewise.
25458 (grub_multiboot_load_elf64): Likewise.
25459 (grub_multiboot_load_elf): Likewise.
25460 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25461 an ELF32 or ELF64 file.
25462 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25464 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25465 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25466 NULL before calling FS->LABEL.
25467 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25468 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25469 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25470 before calling FS->LABEL.
25472 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25474 * util/i386/pc/grub-install.in (datadir): New variable.
25476 (pkgdatadir): New variable.
25477 (pkglibdir): Removed.
25479 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25481 * DISTLIST: Added util/i386/pc/grub-install.in.
25483 * util/i386/pc/grub-install.in: New file.
25485 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25486 (grub_install_SOURCES): Likewise.
25488 * genmk.rb: Added support for scripts.
25489 (Script): New class.
25490 (scripts): New variable.
25492 * Makefile.in (install-local): Install sbin_SCRIPTS by
25494 (uninstall): Remove sbin_SCRIPTS.
25496 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25497 device, try to get a GRUB device by
25498 grub_util_biosdisk_get_grub_dev.
25501 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25502 description for --device-map.
25504 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25506 Change the semantics of variable hooks. They now return strings
25507 instead of error values.
25509 * util/i386/pc/grub-setup.c: Include grub/env.h.
25510 (setup): Use grub_device_set_root instead of grub_env_set.
25512 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25513 grub_env_get instead of grub_device_set_root and
25514 grub_device_get_root, respectively.
25516 * kern/main.c (grub_env_write_root): New function.
25517 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25518 grub_env_set instead of grub_device_set_root.
25520 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25522 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25523 rather than calling ENV->WRITE_HOOK afterwards.
25524 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25525 passing a pointer of a pointer.
25526 (grub_register_variable_hook): Change the types of "read_hook" and
25527 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25529 Allocate the default empty string on the heap, because this string
25530 may be freed later.
25532 * kern/device.c: Include grub/env.h.
25533 (grub_device_set_root): Removed.
25534 (grub_device_get_root): Likewise.
25535 (grub_device_open): Use grub_env_get instead of
25536 grub_device_get_root.
25538 * include/grub/env.h (grub_env_read_hook_t): New type.
25539 (grub_env_write_hook_t): Likewise.
25540 (grub_env_var): Change the types of "read_hook" and "write_hook"
25541 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25542 (grub_register_variable_hook): Likewise.
25544 * include/grub/device.h (grub_device_set_root): Removed.
25545 (grub_device_set_root): Likewise.
25547 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25548 make sure that DIRNAME terminates with '/', so that
25549 grub_fat_find_dir will fail if PATH is not a directory.
25551 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25553 Use the qualifier auto for print_files and print_files_long.
25554 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25556 Put a newline only if there is no error.
25557 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25560 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25562 * kern/partition.c (grub_partition_probe): Initialize PART to
25563 NULL. Otherwise, when no partition map is registered, this returns
25566 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25568 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25569 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25572 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25574 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25575 information on each device, if it does not have partitions. Print
25576 "Device" instead of "Disk", because this function is not specific
25579 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25580 static to ensure that it is put on the memory rather than a
25583 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25585 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25586 (grub_cat_init): Likewise.
25587 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25588 (options): Likewise.
25589 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25590 (grub_configfile_init): Likewise.
25591 * font/manager.c (GRUB_MOD_INIT): Likewise.
25592 * commands/help.c (GRUB_MOD_INIT): Likewise.
25593 (grub_help_init): Likewise.
25594 * normal/command.c (grub_command_init): Likewise.
25595 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25596 * disk/loopback.c (grub_loop_init): Likewise.
25597 (GRUB_MOD_INIT): Likewise.
25598 * commands/ls.c (grub_ls_init): Likewise.
25599 (GRUB_MOD_INIT): Likewise.
25600 (options): Likewise.
25601 * commands/boot.c (grub_boot_init): Likewise.
25602 (GRUB_MOD_INIT): Likewise.
25603 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25604 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25605 (GRUB_MOD_INIT): Likewise.
25606 * commands/cmp.c (grub_cmp_init): Likewise.
25607 (GRUB_MOD_INIT): Likewise.
25609 * normal/arg.c: Use <> instead of "" to include header files.
25610 (SHORT_ARG_HELP): New macro.
25611 (SHORT_ARG_USAGE): Likewise.
25612 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25613 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25615 (find_short): Check if C is 'h' or 'u' explicitly.
25616 (grub_arg_show_help): Use space characters instead of tabs. Treat
25617 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25618 are shown with --help and --usage only if they are not used for
25619 the command itself.
25620 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25623 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25624 const into "longarg". Change the type of "shortarg" to int.
25626 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25628 * boot/i386/pc/boot.S (boot_drive_check): New label.
25630 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25633 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25634 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25636 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25638 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25639 When turning off Gate A20, skip the check and return immediately,
25640 because this is not fatal usually.
25642 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25644 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25645 be 0x7C00 instead of 0x8000.
25647 * boot/i386/pc/pxeboot.S: Rewritten.
25649 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25651 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25654 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25656 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25657 robustness. This routine now supports a BIOS call and System
25658 Control Port A to modify the gate A20.
25660 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25661 Increased to 0x440.
25663 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25665 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25666 device path and resulting ihandle.
25667 (grub_ofdisk_close): dprintf the ihandle being closed.
25668 (grub_ofdisk_read): dprintf function parameters.
25669 * kern/mm.c (grub_mm_init_region): Likewise.
25670 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25671 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25672 size, and boot arguments.
25673 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25674 before loading into memory.
25675 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25676 before loading into memory.
25678 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25680 * kern/mm.c: Added much documentation.
25681 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25682 8, set to 5 instead of 8.
25684 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25686 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25688 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25689 (grub_mkdevicemap_SOURCES): New variable.
25691 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25692 lib/device.c of GRUB Legacy.
25694 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25696 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25697 instead of PATH is NULL.
25699 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25701 * commands/cmp.c (BUFFER_SIZE): New macro.
25702 (grub_cmd_cmp): Close the right file at the right time. Compare
25703 only data just read. Don't report files of different size as
25704 identical. Dynamically allocate buffers. Move variable
25705 declarations at the beginning of function.
25707 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25709 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25712 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25714 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25715 when backspace is pressed at beginning of line.
25717 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25719 * DISTLIST: Added genfslist.sh.
25721 * normal/main.c (fs_module_list): New variable.
25722 (autoload_fs_module): New function.
25723 (read_fs_list): Likewise.
25724 (grub_normal_execute): Call read_fs_list.
25726 * kern/fs.c (grub_fs_autoload_hook): New variable.
25727 (grub_fs_probe): Added support for auto-loading.
25729 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25730 (grub_fs_module_list_t): New type.
25732 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25733 (grub_fs_autoload_hook): New prototype.
25735 * genfslist.sh: New file.
25737 * genmk.rb: Added a rule to generate a filesystem list.
25739 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25741 * configure.ac: Fix the test for cross-compiling.
25743 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25744 define GRUB_UTIL anymore.
25746 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25747 so this function works on other systems than just big endian.
25748 (load_modules): Likewise.
25749 (add_segments): Likewise.
25751 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25753 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25754 contains `l' modifier, get a long from va_arg().
25756 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25758 * kern/mm.c (grub_free): If the next free block which is being
25759 merged is the first free block, set the first block to the block
25761 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25763 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25765 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25766 `grub_ieee1275_chosen'.
25768 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25770 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25771 (grub_ieee1275_chosen): New variable.
25772 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25774 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25775 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25776 Rename first argument to `phandle' for consistency.
25777 (grub_ieee1275_get_property_length): Likewise.
25778 (grub_ieee1275_next_property): Likewise. Change type of first argument
25779 to grub_ieee1275_phandle_t.
25780 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25781 Move export next to declaration.
25782 (grub_ieee1275_chosen): New variable.
25783 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25784 Correct cosmetic typo.
25785 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25786 `grub_ieee1275_chosen'.
25787 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25788 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25789 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25790 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25791 `grub_ieee1275_chosen'.
25793 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25795 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25797 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25798 /chosen/bootargs as "variable=value" pairs.
25800 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25802 * include/grub/misc.h (grub_dprintf): New macro.
25803 (grub_real_dprintf): New prototype.
25804 (grub_strword): Likewise.
25805 (grub_iswordseparator): Likewise.
25806 * kern/misc.c (grub_real_dprintf): New function.
25807 (grub_strword): Likewise.
25808 (grub_iswordseparator): Likewise.
25810 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25812 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25813 (roundup): Remove macro.
25814 (grub_ieee1275_flags): Make static.
25815 (grub_ieee1275_realmode): Remove.
25816 (grub_ieee1275_test_flag): New function.
25817 (grub_ieee1275_set_flag): Likewise.
25818 (find_options): Rename to `grub_ieee1275_find_options'; update
25819 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25820 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25821 (cmain): New prototype.
25822 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25823 `grub_ieee1275_flags' directly.
25824 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25825 machine/biosdisk.h.
25826 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25827 Don't include grub/machine/init.h.
25828 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25829 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25831 (grub_ieee1275_realmode): Likewise.
25832 (grub_ieee1275_flag): New enum.
25833 (grub_ieee1275_test_flag): New prototype.
25834 (grub_ieee1275_set_flag): New prototype.
25835 * include/grub/powerpc/ieee1275/init.h: Remove file.
25836 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25837 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25838 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25839 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25841 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25842 `grub_ieee1275_test_flag'.
25843 (grub_ieee1275_encode_devname): Likewise.
25845 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25847 * include/grub/powerpc/ieee1275/ieee1275.h
25848 (grub_ieee1275_encode_devname): New prototype.
25849 (grub_ieee1275_get_filename): Likewise.
25850 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25852 (grub_set_prefix): Likewise.
25853 (grub_machine_init): Call grub_set_prefix.
25854 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25855 (grub_parse_type): New enum.
25856 (grub_ieee1275_get_devargs): New function.
25857 (grub_ieee1275_get_devname): Likewise.
25858 (grub_ieee1275_parse_args): Likewise.
25859 (grub_ieee1275_get_filename): Likewise.
25860 (grub_ieee1275_encode_devname): Likewise.
25862 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25864 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25865 `grub_loader_unset'.
25867 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25869 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25870 instead of grub_ieee1275_interpret.
25871 (grub_halt_init): New function.
25872 (grub_halt_fini): Likewise.
25873 (GRUB_MOD_INIT): Correct message grammar.
25874 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25875 instead of grub_ieee1275_interpret.
25876 (grub_reboot_init): New function.
25877 (grub_reboot_fini): Likewise.
25878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25879 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25880 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25881 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25882 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25884 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25886 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25888 (grub_halt): Likewise.
25889 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25890 (cmain): Remove __attribute__((unused)).
25891 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25892 (grub_heap_len): Likewise.
25893 (grub_machine_fini): New function.
25894 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25895 (grub_halt): Likewise.
25896 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25898 * util/powerpc/ieee1275/misc.c: New file.
25900 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25902 * DISTLIST: New file.
25903 * gendistlist.sh: Likewise.
25905 * Makefile.in (COMMON_DISTFILES): Removed.
25906 (BOOT_DISTFILES): Likewise.
25907 (CONF_DISTFILES): Likewise.
25908 (DISK_DISTFILES): Likewise.
25909 (FS_DISTFILES): Likewise.
25910 (INCLUDE_DISTFILES): Likewise.
25911 (KERN_DISTFILES): Likewise.
25912 (LOADER_DISTFILES): Likewise.
25913 (TERM_DISTFILES): Likewise.
25914 (UTIL_DISTFILES): Likewise.
25915 (DISTFILES): Likewise.
25916 (uninstall): Uninstall files in $(pkgdata_DATA).
25917 (DISTLIST): New target.
25918 (distdir): Use the contents of the file DISTLIST to get a list of
25921 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25923 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25924 descriptor. This is ported from GRUB Legacy.
25926 * gencmdlist.sh: Added an extra semicolon to make it work with
25927 old sed versions. Reported by Robert Bihlmeyer
25928 <robbe@orcus.priv.at>.
25930 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25932 Automatic loading of commands is supported.
25934 * normal/main.c (read_command_list): New function.
25935 (grub_normal_execute): Call read_command_list.
25937 * normal/command.c (grub_register_command): Return zero or CMD.
25938 Allocate CMD->NAME from the heap.
25939 Initialize CMD->MODULE_NAME to zero.
25940 Find the same name as well. If the same command is found and it is
25941 a dummy command, overwrite members. If it is not a dummy command,
25943 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25944 (grub_command_find): If a dummy command is found, load a module
25945 and retry to find a command only once.
25947 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25948 make sure that each command is loaded.
25950 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25952 (struct grub_command): Remove const from the member `name'.
25953 Add a new member `module_name'.
25954 (grub_register_command): Return grub_command_t.
25956 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25957 sure that each command is loaded.
25959 * genmk.rb (PModule::rule): Specify a module name without the
25960 suffix ".mod" to gencmdlist.sh.
25962 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25964 * gencmdlist.sh: New file.
25966 * genmk.rb (PModule::rule): Generate a rule for a command list.
25968 Generate command.lst from $(COMMANDFILES).
25970 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25971 (DATA): Added $(pkgdata_DATA).
25972 (install-local): Install files in $(pkgdata_DATA).
25974 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25976 * term/i386/pc/vga.c (debug_command): Removed.
25977 (GRUB_MOD_INIT): Do not register the command "debug".
25979 From Hollis Blanchard:
25980 * commands/configfile.c: New file.
25981 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25982 commands/configfile.c.
25983 (pkgdata_MODULES): Added configfile.mod.
25984 (configfile_mod_SOURCES): New variable.
25985 (configfile_mod_CFLAGS): Likewise.
25986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25987 commands/configfile.c.
25988 (pkgdata_MODULES): Added configfile.mod.
25989 (configfile_mod_SOURCES): New variable.
25990 (configfile_mod_CFLAGS): Likewise.
25991 * util/grub-emu.c (main): Call grub_configfile_init and
25992 grub_configfile_fini.
25993 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25995 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25997 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25999 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26002 * commands/help.c (grub_cmd_help): Do not print newlines after
26003 the last command in print_command_help.
26005 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26007 * commands/default.h: New file.
26008 * commands/timeout.h: Likewise.
26009 * normal/context.c: Likewise.
26011 * util/misc.c: Do not include sys/times.h.
26012 Include sys/time.h and grub/machine/time.h.
26013 (grub_get_rtc): Rewritten with gettimeofday.
26015 * util/grub-emu.c (main): Call grub_default_init and
26016 grub_timeout_init before grub_normal_init, and call
26017 grub_timeout_fini and grub_default_fini after grub_main.
26019 * util/console.c (grub_ncurses_checkkey): Return the read
26022 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26025 * normal/main.c (read_config_file): Push MENU. If this fails,
26026 print an error and wait for a user input.
26027 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26028 If a menu is empty or an error occurs, pop MENU.
26029 (grub_normal_execute): Pop and free MENU after grub_menu_run
26032 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26034 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26036 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26038 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26040 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26043 * include/grub/normal.h (struct grub_menu_list): New struct.
26044 (grub_menu_list_t): New type.
26045 (struct grub_context): New struct.
26046 (grub_context_t): New type.
26047 (grub_register_command): Got rid of EXPORT_FUNC.
26048 (grub_unregister_command): Likewise.
26049 (grub_context_get): New prototype.
26050 (grub_context_get_current_menu): Likewise.
26051 (grub_context_push_menu): Likewise.
26052 (grub_context_pop_menu): Likewise.
26053 [GRUB_UTIL] (grub_default_init): Likewise.
26054 [GRUB_UTIL] (grub_default_fini): Likewise.
26055 [GRUB_UTIL] (grub_timeout_init): Likewise.
26056 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26058 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26059 commands/timeout.c and normal/context.c.
26060 (pkgdata_MODULES): Added default.mod and timeout.mod.
26061 (normal_mod_SOURCES): Added normal/context.c.
26062 (default_mod_SOURCES): New variable.
26063 (default_mod_CFLAGS): Likewise.
26064 (timeout_mod_SOURCES): Likewise.
26065 (timeout_mod_CFLAGS): Likewise.
26066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26068 (pkgdata_MODULES): Added default.mod and timeout.mod.
26069 (normal_mod_SOURCES): Added normal/context.c.
26070 (default_mod_SOURCES): New variable.
26071 (default_mod_CFLAGS): Likewise.
26072 (timeout_mod_SOURCES): Likewise.
26073 (timeout_mod_CFLAGS): Likewise.
26075 * Makefile.in (all-local): Added $(MKFILES).
26077 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26079 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26080 (grub_emu_SOURCES): Likewise.
26081 (pkgdata_MODULES): Add `sun.mod'.
26082 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26085 (pkgdata_MODULES): Add `sun.mod'.
26086 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26087 * include/grub/partition.h (grub_sun_partition_map_init): New
26089 (grub_sun_partition_map_fini): Likewise.
26090 * partmap/sun.c: New file.
26091 * util/grub-emu.c (main): Initialize and de-initialize the sun
26092 partitionmap support.
26094 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26096 This implements an Emacs-like menu entry editor.
26098 * normal/menu_entry.c: New file.
26100 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26101 characters to ASCII.
26102 (saved_char): New variable.
26103 (grub_ncurses_checkkey): Rewritten completely.
26104 (grub_ncurses_getkey): Likewise.
26105 (grub_ncurses_init): Call raw instead of cbreak.
26107 * normal/menu.c (print_entry): Do not put a space.
26108 (init_page): Renamed to ...
26109 (grub_menu_init_page): ... this. All callers changed.
26110 (edit_menu_entry): Removed.
26111 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26113 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26115 * kern/misc.c (grub_vprintf): Call grub_refresh.
26117 * normal/menu.c (DISP_LEFT): Renamed to ...
26118 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26119 * normal/menu.c (DISP_UP): Renamed to ...
26120 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26121 * normal/menu.c (DISP_RIGHT): Renamed to ...
26122 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26123 * normal/menu.c (DISP_DOWN): Renamed to ...
26124 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26125 * normal/menu.c (DISP_HLINE): Renamed to ...
26126 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26127 * normal/menu.c (DISP_VLINE): Renamed to ...
26128 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26129 * normal/menu.c (DISP_UL): Renamed to ...
26130 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26131 * normal/menu.c (DISP_UR): Renamed to ...
26132 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26133 * normal/menu.c (DISP_LL): Renamed to ...
26134 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26135 * normal/menu.c (DISP_LR): Renamed to ...
26136 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26137 * normal/menu.c (TERM_WIDTH): Renamed to ...
26138 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26139 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26140 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26141 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26142 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26143 * normal/menu.c (TERM_MARGIN): Renamed to ...
26144 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26145 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26146 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26147 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26148 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26149 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26150 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26151 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26152 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26153 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26154 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26155 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26156 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26157 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26158 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26159 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26160 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26161 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26162 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26163 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26164 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26165 All callers changed.
26167 * include/grub/normal.h: New prototype.
26169 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26170 normal/menu_entry.c.
26171 (normal_mod_SOURCES): Likewise.
26172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26173 (normal_mod_SOURCES): Likewise.
26175 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26177 * include/grub/normal.h (grub_halt_init): New prototype.
26178 (grub_halt_fini): Likewise.
26179 (grub_reboot_init): Likewise.
26180 (grub_reboot_fini): Likewise.
26182 * util/grub-emu.c: Include signal.h.
26183 (main_env): New global variable.
26184 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26186 (grub_machine_fini): New function.
26187 (main): Call grub_halt_init and grub_reboot_init before
26188 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26189 Call setjmp with MAIN_ENV to go back afterwards.
26190 Call grub_machine_fini right before return.
26192 * include/grub/util/misc.h: Include setjmp.h.
26193 (main_env): New prototype.
26195 * include/grub/kernel.h (grub_machine_fini): New prototype.
26196 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26197 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26199 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26200 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26201 * term/i386/pc/console.c (grub_console_fini): Likewise.
26203 * util/i386/pc/misc.c: New file.
26205 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26206 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26207 commands/i386/pc/reboot.c.
26209 2005-02-14 Guillem Jover <guillem@hadrons.org>
26211 * include/grub/dl.h (grub_dl_check_header): New prototype.
26212 (grub_arch_dl_check_header): Change return type to grub_err_t,
26213 remove size parameter and export function. Update all callers.
26214 * kern/dl.c (grub_dl_check_header): New function.
26215 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26216 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26217 are inside the core.
26218 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26219 independent ELF header checks.
26220 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26221 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26222 `grub_dl_check_header' instead of explicit checks. Check for the
26224 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26225 `grub_dl_check_header' instead of explicit checks. Remove arch
26226 specific ELF header checks.
26228 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26231 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26233 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26234 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26236 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26238 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26239 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26240 (part_map_iterate): Clear `grub_errno' and return 0 if
26241 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26242 * partmap/amiga.c (amiga_partition_map_iterate): Return
26243 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26244 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26246 2005-02-01 Guillem Jover <guillem@hadrons.org>
26248 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26251 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26253 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26255 (grub_rescue_cmd_linux): New prototype.
26256 (grub_rescue_cmd_initrd): Likewise.
26257 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26259 (grub_linux_release_mem): Release the memory for the initrd.
26260 (grub_load_linux): Renamed from this...
26261 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26262 Changed `entry' not to be static. Loop over memory regions to
26263 find another one when the default fails.
26264 (grub_rescue_cmd_initrd): New function.
26265 (grub_linux_init): Remove function.
26266 (grub_linux_fini): Likewise.
26267 (GRUB_MOD_INIT): Register `initrd'.
26268 (GRUB_MOD_FINI): Unregister `initrd'.
26269 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26271 (grub_linux_normal_fini): Likewise.
26272 (GRUB_MOD_INIT): Register `initrd'.
26273 (GRUB_MOD_FINI): Unregister `initrd'.
26275 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26277 * commands/help.c: New file.
26278 * normal/arg.c (show_help): Renamed to...
26279 (grub_arg_show_help): ... this.
26280 * commands/i386/pc/halt.c: New file.
26281 * commands/i386/pc/reboot.c: Likewise.
26282 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26283 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26284 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26285 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26289 (pkgdata_MODULES): Add `help.mod'.
26290 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26291 * grub/i386/pc/init.h (grub_reboot): New prototype.
26292 (grub_halt): Likewise.
26293 * include/grub/normal.h (grub_arg_show_help): New prototype.
26294 (grub_help_init): Likewise.
26295 (grub_help_fini): Likewise.
26296 * util/grub-emu.c (main): Initialize and deinitialize the help
26299 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26301 * normal/command.c (grub_command_init): Fixed the description of
26302 the `set' and `unset' commands.
26304 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26306 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26308 * commands/ieee1275/halt.c: New file.
26309 * commands/ieee1275/reboot.c: Likewise.
26310 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26311 `__attribute__ ((unused))'. Some GCS related fixed.
26312 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26313 (grub_suspend_fini): Likewise.
26314 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26316 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26317 (halt_mod_CFLAGS): New variables.
26318 * include/grub/powerpc/ieee1275/ieee1275.h
26319 (grub_ieee1275_interpret): New prototype.
26321 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26323 * include/grub/misc.h (memmove): New prototype.
26324 (memcpy): Likewise.
26326 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26328 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26329 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26331 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26333 * kern/misc.c (grub_strndup): Function rewritten.
26335 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26337 * normal/menu.c (TERM_WIDTH): Macro redefined.
26338 (TERM_TOP_BORDER_Y): Likewise.
26339 (draw_border): Replaced while-loop by a for-loop. Make the number
26340 of lines consistent with the number of lines displayed in
26341 print_entries. Added a margin below the rectangle.
26342 (print_entry): Make the entry fit in the rectangle.
26343 (print_entries): Display the scroll arrows next to the right
26346 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26348 * fs/minix.c (grub_minix_find_file): Reserve more space for
26349 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26350 `grub_strncpy' to copy `path' into it.
26352 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26354 Add the loopback device, a device via which files can be accessed
26357 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26358 (pkgdata_MODULES): Add loopback.mod.
26359 (loopback_mod_SOURCES): New variable.
26360 (loopback_mod_CFLAGS): Likewise.
26361 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26363 (pkgdata_MODULES): Add loopback.mod.
26364 (loopback_mod_SOURCES): New variable.
26365 (loopback_mod_CFLAGS): Likewise.
26366 * disk/loopback.c: new file.
26367 * include/grub/normal.h (grub_loop_init): New prototype.
26368 (grub_loop_fini): New prototype.
26369 * util/grub-emu.c (main): Initialize and de-initialize loopback
26371 * include/grub/disk.h (grub_disk_dev_id): Add
26372 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26374 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26376 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26378 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26379 (suspend_mod_SOURCES): New variable.
26380 (suspend_mod_CFLAGS): Likewise.
26381 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26383 * commands/ieee1275/suspend.c: New file.
26385 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26387 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26388 ((unused))' to `__attribute__ ((used))'.
26389 (GRUB_MOD_FINI): Likewise.
26390 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26391 * genmk.rb (PModule): Assign space to common symbols when linking
26394 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26396 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26397 `unsigned' arguments to `grub_size_t'.
26398 (grub_malloc): Likewise.
26399 (grub_realloc): Likewise.
26400 (grub_memalign): Likewise.
26401 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26402 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26403 * util/misc.c (grub_malloc): Likewise.
26404 (grub_realloc): Likewise.
26405 * kern/mm.c (get_header_from_pointer): Change the casts to
26406 `unsigned' into a cast to `grub_size_t'.
26408 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26409 point to `currnode' when `currnode' is changed.
26411 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26412 Schottelius <nico-linux@schottelius.org>.
26414 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26416 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26417 (note_path): Remove variable.
26418 (GRUB_IEEE1275_NOTE_NAME): New macro.
26419 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26420 (grub_ieee1275_note_hdr): New structure.
26421 (grub_ieee1275_note_desc): Likewise.
26422 (grub_ieee1275_note): Likewise.
26423 (load_note): Remove `dir' argument. All callers updated. Remove
26424 `note_img' and `path'. Do not load a file from `note_path'.
26425 Initialize a struct grub_ieee1275_note and write that to `out'.
26426 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26428 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26430 * util/misc.c (grub_util_read_image): Revert last change. It
26431 called `grub_util_read_at', which seeks from the beginning of the
26434 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26436 * TODO: Add note about endianness in grub-mkimage.
26437 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26439 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26440 (grub_mkimage_SOURCES): New target.
26441 * include/grub/kernel.h (grub_start_addr): Remove variable.
26442 (grub_end_addr): Likewise.
26443 (grub_total_module_size): Likewise.
26444 (grub_kernel_image_size): Likewise.
26445 (GRUB_MODULE_MAGIC): New constant.
26446 (grub_module_info): New structure.
26447 (grub_arch_modules_addr): New prototype.
26448 (grub_get_end_addr): Remove prototype.
26449 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26450 * include/grub/powerpc/ieee1275/kernel.h: New file.
26451 * include/grub/util/misc.h (grub_util_get_fp_size): New
26453 (grub_util_read_at): Likewise.
26454 (grub_util_write_image_at): Likewise.
26455 * kern/main.c (grub_get_end_addr): Remove function.
26456 (grub_load_modules): Call grub_arch_modules_addr instead of using
26457 grub_end_addr. Look for a grub_module_info struct in memory. Use
26458 the grub_module_info fields instead of calling grub_get_end_addr
26459 as loop conditions. Move grub_add_unused_region code here.
26460 (grub_add_unused_region): Remove function.
26461 * kern/i386/pc/init.c: Include grub/cache.h.
26462 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26463 one call to add_mem_region.
26464 (grub_arch_modules_addr): New function.
26465 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26466 (grub_total_module_size): Likewise.
26467 Include grub/machine/kernel.h.
26468 (grub_arch_modules_addr): New function.
26469 * util/grub-emu.c (grub_end_addr): Remove variable.
26470 (grub_total_module_size): Likewise.
26471 (grub_arch_modules_addr): New function.
26472 * util/misc.c: Include unistd.h.
26473 (grub_util_get_fp_size): New function.
26474 (grub_util_read_at): Likewise.
26475 (grub_util_write_image_at): Likewise.
26476 (grub_util_read_image): Call grub_util_read_at.
26477 (grub_util_write_image): Call grub_util_write_image_at.
26478 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26479 additional memory in kernel_img for a struct grub_module_info.
26480 Fill in that grub_module_info.
26481 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26483 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26485 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26487 * include/grub/powerpc/ieee1275/ieee1275.h
26488 (grub_ieee1275_milliseconds): New prototype.
26489 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26491 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26492 grub_ieee1275_milliseconds.
26494 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26496 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26498 (find_options): New function.
26499 (cmain): Call find_options.
26500 * include/grub/powerpc/ieee1275/ieee1275.h
26501 (grub_ieee1275_realmode): New extern variable.
26502 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26503 grub_map if grub_ieee1275_realmode is false.
26505 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26507 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26508 lines are inserted and make it work like readline. Reported by
26509 Vincent Pelletier <subdino2004@yahoo.fr>.
26511 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26513 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26516 `kern/powerpc/cache.S'.
26518 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26520 * genmk.rb: Handle the `Program' class in the main loop. Written
26521 by Johan Rydberg <jrydberg@gnu.org>.
26522 (Program): New class.
26523 (programs): New variable.
26524 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26525 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26526 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26527 (help_arch): Function removed.
26528 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26529 `powerpc/libgcc.h' and `loader.h'.
26530 (pkgdata_PROGRAMS): New variable.
26531 (sbin_UTILITIES): Variable removed.
26532 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26533 (grubof_SOURCES): Variable re-defined so it only includes the
26534 core functionality.
26535 (grubof_CFLAGS): Remove `-DGRUBOF'.
26536 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26537 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26538 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26539 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26540 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26541 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26542 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26543 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26544 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26545 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26546 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26547 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26548 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26549 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26550 (pc_mod_CFLAGS): New variables.
26551 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26552 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26553 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26554 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26556 * include/grub/i386/pc/init.h (grub_os_area_addr)
26557 (rub_os_area_size): ... to here.
26558 * include/grub/powerpc/ieee1275/ieee1275.h
26559 (grub_ieee1275_entry_fn): Export symbol.
26560 * include/grub/powerpc/ieee1275/init.h: New file.
26561 * include/grub/powerpc/libgcc.h: Likewise.
26562 * include/grub/cache.h: Likewise.
26563 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26564 <hollis@penguinppc.org>.
26565 * kern/dl.c: Include <grub/cache.h>.
26566 (grub_dl_flush_cache): New function.
26567 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26569 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26570 (grub_console_init): Removed prototypes.
26571 (grub_machine_init): Don't initialize the modules anymore.
26572 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26574 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26575 Macro undef removed.
26576 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26577 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26578 relocation `R_PPC_REL32'. Return an error when the relocation is
26580 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26581 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26582 * util/misc.c (grub_arch_sync_caches): Likewise.
26584 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26586 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26587 `symlist.c', add `grubof_symlist.c'.
26588 (symlist.c): Variable removed.
26589 (grubof_HEADERS): Variable added.
26590 (grubof_symlist.c): New target.
26591 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26592 `kernel_img_HEADERS'.
26593 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26594 * kern/powerpc/dl.c: New file.
26595 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26597 (grub_arch_dl_relocate_symbols): Likewise.
26598 (grub_register_exported_symbols): Likewise.
26600 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26602 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26603 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26604 to fail instead. Reported by Vincent Pelletier
26605 <subdino2004@yahoo.fr>.
26607 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26608 it is not allocated. Reported by Vincent Pelletier
26609 <subdino2004@yahoo.fr>.
26611 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26612 output so the output looks better.
26614 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26616 Modulize the partition map support and add support for the amiga
26619 * commands/ls.c: Include <grub/partition.h> instead of
26620 <grub/machine/partition.h>.
26621 * kern/disk.c: Likewise.
26622 * kern/rescue.c: Likewise.
26623 * loader/i386/pc/chainloader.c: Likewise.
26624 * normal/cmdline.c: Likewise.
26625 * kern/powerpc/ieee1275/init.c: Likewise.
26626 (grub_machine_init): Call `grub_pc_partition_map_init',
26627 `grub_amiga_partition_map_init' and
26628 `grub_apple_partition_map_init'.
26629 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26630 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26631 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26632 `partition.h' and `pc_partition.h'.
26633 (grub_setup_SOURCES): Remove
26634 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26635 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26636 (grub_emu_SOURCES): Likewise.
26637 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26638 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26639 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26641 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26642 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26643 (grubof_SOURCES): Likewise.
26644 * disk/i386/pc/partition.c: File removed.
26645 * disk/powerpc/ieee1275/partition.c: Likewise.
26646 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26647 * include/grub/i386/pc/partition.h: Likewise.
26648 * kern/partition.c: New file.
26649 * partmap/amiga.c: Likewise.
26650 * partmap/apple.c: Likewise.
26651 * partmap/pc.c: Likewise.
26652 * include/grub/partition.h: Likewise..
26653 * include/grub/pc_partition.h: Likewise.
26654 * util/grub-emu.c: Include <grub/partition.h> instead of
26655 <grub/machine/partition.h>.
26656 (main): Call `grub_pc_partition_map_init',
26657 `grub_amiga_partition_map_init' and
26658 `grub_apple_partition_map_init' and deinitialize afterwards.
26659 * util/i386/pc/biosdisk.c: Include `#include
26660 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26661 `<grub/machine/partition.h>'.
26662 * util/i386/pc/grub-setup.c: Likewise.
26663 * util/i386/pc/biosdisk.c: Likewise.
26664 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26665 partition information in case of a PC partition.
26666 * util/i386/pc/grub-setup.c: Include `#include
26667 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26668 `<grub/machine/partition.h>'.
26669 (setup): Only access the PC specific partition information in case
26672 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26674 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26675 (grub_longjmp): Likewise.
26676 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26678 * normal/powerpc/setjmp.S: New file.
26679 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26680 `normal/powerpc/setjmp.S'.
26681 (grubof_CFLAGS): Add `-DGRUBOF'.
26682 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26683 [GRUB_UTIL && !GRUBOF].
26685 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26687 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26688 property named `name'. Correctly handle the error returned by
26689 `grub_ieee1275_finddevice' if a device can not be opened.
26691 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26693 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26694 `actual' for negativity.
26695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26698 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26700 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26701 (PAGE_OFFSET): New macro.
26702 (CRTC_ADDR_PORT): Likewise.
26703 (CRTC_DATA_PORT): Likewise.
26704 (START_ADDR_HIGH_REGISTER): Likewise.
26705 (START_ADDR_LOW_REGISTER): Likewise.
26706 (GRAPHICS_ADDR_PORT): Likewise.
26707 (GRAPHICS_DATA_PORT): Likewise.
26708 (READ_MAP_REGISTER): Likewise.
26709 (INPUT_STATUS1_REGISTER): Likewise.
26710 (INPUT_STATUS1_VERTR_BIT): Likewise.
26711 (page): New variable.
26712 (wait_vretrace): New function.
26713 (set_read_map): Likewise.
26714 (set_start_address): Likewise.
26715 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26717 (check_vga_mem): Take the page into account.
26718 (write_char): Likewise.
26719 (write_cursor): Likewise.
26720 (scroll_up): Likewise. Copy the page to the page that is not
26721 shown and switch between both pages.
26722 (grub_vga_putchar): Fix off by one error.
26723 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26726 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26728 Add support for iso9660 (including rockridge).
26730 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26731 (iso9660_mod_SOURCES): New variable.
26732 (iso9660_mod_CFLAGS): Likewise.
26733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26734 * include/grub/fs.h (grub_iso9660_init): New prototype.
26735 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26736 * fs/iso9660.c: New file.
26738 * include/grub/misc.h (grub_strncat): New prototype.
26739 * kern/misc.c (grub_strncat): New function.
26741 * fs/hfs.c (grub_hfs_mount): Translate the error
26742 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26743 * fs/jfs.c (grub_jfs_mount): Likewise.
26744 * fs/ufs.c (grub_ufs_mount): Likewise.
26746 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26748 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26749 which initialized BAT registers.
26750 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26751 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26753 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26754 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26756 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26757 (grub_mapclaim): Likewise.
26758 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26759 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26762 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26764 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26765 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26766 -ffreestanding and -msoft-float.
26768 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26770 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26771 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26772 set in grub_ieee1275_flags.
26774 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26776 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26778 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26779 grub_console_init first.
26780 Change the memory range used for grub_ieee1275_claim and
26781 grub_mm_init_region.
26782 Print an error message if the claim fails.
26783 Include <grub/misc.h>.
26785 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26787 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26788 Call grub_children_iterate for device nodes of type `scsi',
26790 (grub_ofdisk_open): Remove manual device alias resolution.
26791 Fix memory leak when device cannot be opened.
26792 * include/grub/powerpc/ieee1275/ieee1275.h
26793 (grub_children_iterate): New prototype.
26794 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26796 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26797 Return -1 if args.size was -1.
26799 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26801 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26802 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26803 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26804 Open Firmware's memory for it; claim memory from _start to _end.
26805 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26806 (_end): New extern.
26807 (_start): Zero BSS from __bss_start to _end.
26808 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26810 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26812 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26814 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26815 -1 if args.base was -1.
26817 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26819 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26820 escape sequence instead of a literal ^L. Also call
26821 grub_ofconsole_gotoxy.
26823 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26825 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26826 void * arguments to grub_addr_t. All callers updated. Also make
26827 the `result' argument optional.
26828 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26829 All callers updated.
26831 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26833 * commands/ls.c (grub_ls_list_files): Use the string following the
26834 initial ')', if present, as the filesystem path.
26835 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26837 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26839 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26841 Make the source code of the menu interface more readable.
26843 * normal/menu.c: Include grub/mm.h.
26844 (TERM_WIDTH): New macro.
26845 (TERM_HEIGHT): Likewise.
26846 (TERM_INFO_HEIGHT): Likewise.
26847 (TERM_MARGIN): Likewise.
26848 (TERM_SCROLL_WIDTH): Likewise.
26849 (TERM_TOP_BORDER_Y): Likewise.
26850 (TERM_LEFT_BORDER_X): Likewise.
26851 (TERM_BORDER_WIDTH): Likewise.
26852 (TERM_MESSAGE_HEIGHT): Likewise.
26853 (TERM_BORDER_HEIGHT): Likewise.
26854 (TERM_NUM_ENTRIES): Likewise.
26855 (TERM_FIRST_ENTRY_Y): Likewise.
26856 (TERM_ENTRY_WIDTH): Likewise.
26857 (TERM_CURSOR_X): Likewise.
26858 (draw_border): Use macros instead of magic numbers.
26859 (print_entry): Likewise.
26860 (print_entries): Likewise.
26861 (run_menu): Likewise. Also, handle the key 'e'.
26862 (run_menu_entry): Ignore empty command lines.
26863 (print_message): Added a new argument EDIT. If EDIT is true,
26864 print a different message.
26865 (init_page): Likewise.
26866 (edit_menu_entry): New function. Not implemented yet.
26868 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26870 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26871 can be loaded from normal mode.
26873 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26875 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26876 (multiboot_mod_CFLAGS): New variables.
26877 * loader/i386/pc/linux_normal.c: New file.
26878 * loader/i386/pc/multiboot_normal.c: Likewise.
26880 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26881 attribute `unused'.
26883 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26884 `fdiro' to read the mode information from instead of `diro'.
26886 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26887 looking up a symlink.
26889 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26891 * normal/command.c (grub_command_execute): Don't parse the
26892 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26893 flags of the command.
26895 * normal/menu.c (grub_menu_run): Fix typo.
26897 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26899 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26901 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26902 `y + 1' instead of `y - 1'.
26904 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26906 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26908 From Hollis Blanchard <hollis@penguinppc.org>:
26909 * kern/misc.c (memmove): New alias for grub_memmove.
26910 (memcmp): New alias for grub_memcmp.
26911 (memset): New alias for grub_memset.
26912 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26913 Change "int handle" to "grub_ieee1275_phandle_t handle".
26914 * include/grub/powerpc/ieee1275/ieee1275.h
26915 (grub_ieee1275_get_property): Likewise.
26917 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26919 Added normal mode command `chainloader' as module chain.mod, which
26920 depends on normal.mod and _chain.mod.
26922 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26923 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26924 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26926 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26927 but arguments parsing moved to ...
26928 (grub_chainloader_cmd): ... here. New function.
26929 * include/grub/i386/pc/chainloader.h: New file.
26930 * loader/i386/pc/chainloader_normal.c: Likewise.
26932 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26934 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26935 (grub_mkimage_LDFLAGS): Likewise.
26936 (grub_emu_SOURCES): Likewise.
26937 (kernel_img_HEADERS): Added fshelp.h.
26938 * fs/ext2.c: Include <grub/fshelp.h>.
26939 (FILETYPE_REG): New macro.
26940 (FILETYPE_INO_REG): Likewise.
26941 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26943 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26945 (grub_fshelp_node): New struct.
26946 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26948 (grub_ext2_get_file_block): Removed function.
26949 (grub_ext2_read_block): New function.
26950 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26951 This function was written.
26952 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26953 (grub_ext2_find_file): Removed function.
26954 (grub_ext2_read_symlink): New function.
26955 (grub_ext2_iterate_dir): Likewise.
26956 (grub_ext2_open): Rewritten.
26957 (grub_ext2_dir): Rewritten.
26958 * include/grub/fshelp.h: New file.
26959 * fs/fshelp.c: Likewise.
26961 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26963 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26964 (print_message): Add a missing newline.
26965 (run_menu): Added timeout support.
26966 (run_menu_entry): New local function.
26967 (grub_menu_run): Added support for booting.
26969 * kern/loader.c (grub_loader_is_loaded): New function.
26971 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26972 (grub_get_rtc): Exported.
26974 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26975 (grub_get_rtc): Exported.
26977 * include/grub/normal.h (struct grub_command_list): Remove
26978 constant from the member `command'.
26980 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26982 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26984 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26986 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26988 Add support for the JFS filesystem.
26990 * fs/jfs.c: New file.
26991 * include/grub/fs.h (grub_jfs_init): New prototype.
26992 (grub_jfs_fini): New prototype.
26993 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26994 (grub_emu_SOURCES): Likewise.
26995 (pkgdata_MODULES): Add jfs.mod.
26996 (jfs_mod_SOURCES): New variable.
26997 (jfs_mod_CFLAGS): Likewise.
26998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26999 (grubof_SOURCES): Likewise.
27000 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27002 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27003 endian to the host endian.
27004 (grub_fat_utf16_to_utf8): Move function from there...
27005 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
27006 the endianness of the source string anymore.
27007 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27009 2004-08-24 Marco Gerards <metgerards@student.han.nl>
27011 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27012 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27013 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27014 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
27016 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27017 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27018 for `node_found' and `it_dir'.
27019 (grub_hfs_dir): Add prototype for `dir_hook'.
27021 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27022 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27023 and `indir32' to silence a gcc warning.
27025 * include/grub/fs.h (grub_hfs_init): New prototype.
27026 (grub_hfs_fini): Likewise.
27029 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27031 Each disk device has its own id now. This is useful to make use
27032 of multiple disk devices.
27034 * include/grub/disk.h (grub_disk_dev_id): New enum.
27035 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27036 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27038 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27039 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27041 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27042 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27044 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27045 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27047 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27048 "id" which is used by the cache manager.
27050 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27053 2004-08-18 Marco Gerards <metgerards@student.han.nl>
27055 * fs/hfs.c: New file.
27056 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27057 (grub_emu_SOURCES): Likewise.
27058 (pkgdata_MODULES): Add hfs.mod.
27059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27060 (grubof_SOURCES): Likewise.
27061 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27063 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27064 * kern/misc.c (grub_strncasecmp): Add function.
27066 2004-08-14 Marco Gerards <metgerards@student.han.nl>
27068 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27071 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27072 (grub_ext2_dir): In case the directory entry type is unknown, read
27075 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27077 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27078 grub_load_linux instead of grub_rescue_cmd_linux as second
27079 argument of grub_rescue_register_command.
27081 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27083 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27085 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27087 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27088 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27089 `loader/powerpc/ieee1275/linux.c',
27090 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27091 * include/grub/powerpc/ieee1275/ieee1275.h
27092 (grub_ieee1275_release): New prototype.
27093 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27094 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27095 normal, boot, linux and linux_normal.
27096 * loader/powerpc/ieee1275/linux.c: New file.
27097 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27099 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27101 * normal/arg.c (grub_arg_parse): Correct error handling after
27102 reallocating the argumentlist (check if `argl' is not null instead
27103 of checking if `args' is not null).
27104 * kern/mm.c (grub_realloc): Return the same pointer when using the
27105 same region, instead of returning the header address.
27107 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27109 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27110 one block instead of two when looking for the initial partition.
27111 (grub_partition_probe): Initialize the local variable `p' with 0.
27112 Use base 10 for the grub_strtoul call.
27113 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27114 need for one local variable.
27115 (grub_strtoul): Don't add the new value to `num', instead of that
27118 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27120 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27121 (pxeboot_img_SOURCES): New variable.
27122 (pxeboot_img_ASFLAGS): Likewise.
27123 (pxeboot_img_LDFLAGS): Likewise.
27124 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27125 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27126 <lode_leroy@hotmail.com>.
27128 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27130 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27131 there was no input.
27133 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27135 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27136 the history buffer logic.
27138 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27140 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27141 (FILETYPE_INO_SYMLINK): New macros.
27142 (grub_ext2_find_file): Check if the node is a directory using the
27143 inode stat information instead of using the filetype in the
27144 dirent. Exclude the first character of an absolute symlink.
27145 (grub_ext2_dir): Mask out the filetype part of the mode member of
27148 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27150 Add support for UFS version 1 and 2. Add support for the minix
27151 filesystem version 1 and 2, both the variants with 14 and 30 long
27154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27156 (grub_emu_SOURCES): Likewise.
27157 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27158 (ufs_mod_SOURCES): New variable.
27159 (ufs_mod_CFLAGS): Likewise.
27160 (minix_mod_SOURCES): Likewise.
27161 (minix_mod_CFLAGS): Likewise.
27162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27164 (grubof_SOURCES): Likewise.
27165 * fs/ufs.c: New file.
27166 * fs/minix.c: New file.
27167 * include/grub/fs.h (grub_ufs_init): New prototype.
27168 (grub_ufs_fini): Likewise.
27169 (grub_minix_init): Likewise.
27170 (grub_minix_fini): Likewise.
27171 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27174 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27177 commands/ls.c, commands/terminal.c, commands/boot.c,
27178 commands/cmp.c and commands/cat.c.
27179 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27181 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27184 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27186 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27187 and grub_, respectively. Because the conversion is trivial and
27188 mechanical, I omit the details here. Please refer to the CVS
27189 if you need more information.
27191 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27193 * include/pupa: Renamed to ...
27194 * include/grub: ... this.
27195 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27196 * util/i386/pc/grub-mkimage.c: ... this.
27197 * util/i386/pc/pupa-setup.c: Renamed to ...
27198 * util/i386/pc/grub-setup.c: ... this.
27199 * util/pupa-emu.c: Renamed to ...
27200 * util/grub-emu.c: ... this.
27202 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27204 Add support for the newworld apple macintosh (PPC). This has been
27205 tested on the powerbook 2000 only. It only adds support for
27206 generic ieee1275 functions, console and disk support. This should
27207 be easy to port to other architectures with support for Open
27210 * configure.ac: Accept the powerpc as host_cpu. In the case of
27211 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27212 specific tests are only executed while building for the i386.
27213 Inverse test for crosscompile.
27214 * genmk.rb (Utility): Allow assembler files.
27215 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27216 * conf/powerpc-ieee1275.rmk: New file.
27217 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27218 * disk/powerpc/ieee1275/partition.c: Likewise.
27219 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27220 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27221 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27222 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27223 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27224 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27225 * include/pupa/powerpc/ieee1275/loader.h
27226 * include/pupa/powerpc/setjmp.h: Likewise.
27227 * include/pupa/powerpc/types.h: Likewise.
27228 * kern/powerpc/ieee1275/init.c: Likewise.
27229 * kern/powerpc/ieee1275/openfw.c: Likewise.
27230 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27232 These files were written by Johan Rydberg
27233 (jrydberg@night.trouble.net) and I only modified them slightly.
27235 * boot/powerpc/ieee1275/cmain.c: New file.
27236 * boot/powerpc/ieee1275/crt0.S: Likewise.
27237 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27238 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27240 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27242 * Makefile.in: Update copyright.
27243 * genmodsrc.sh: Likewise.
27244 * gensymlist.sh: Likewise.
27245 * term/i386/pc/vga.c: Indent correctly.
27247 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27248 bugreporting address.
27249 * util/i386/pc/pupa-setup.c (usage): Likewise,
27250 (main): Call pupa_ext2_init and pupa_ext2_fini.
27252 * fs/fat.c (log2): Renamed to ...
27253 (fat_log2): ... this.
27254 All callers changed.
27255 * kern/misc.c (memcpy): Alias to pupa_memmove.
27256 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27258 * util/console.c (pupa_ncurses_fini): Return 0.
27260 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27261 Move fail label here.
27262 [__GNU__]: Don't warn when using stat.
27263 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27264 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27265 long int. Use strtol instead of strtoul.
27267 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27269 * commands/boot.c: New file.
27270 * commands/cat.c: Likewise.
27271 * commands/cmp.c: Likewise.
27272 * commands/ls.c: Likewise.
27273 * commands/terminal.c: Likewise.
27274 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27275 (pupa_register_command): Changed interface to match the new
27277 (pupa_command_execute): Changed (almost rewritten) so it uses
27278 pupa_split_command. Added support for setting variables using the
27280 (rescue_command): Changed to work with the new argument parser.
27281 (terminal_command): Moved from here to commands/terminal.c.
27282 (set_command): New function.
27283 (unset_command): New function.
27284 (insmod_command): New function.
27285 (rmmod_command): New function.
27286 (lsmod_command): New function.
27287 (pupa_command_init): Don't initialize the command terminal
27288 anymore. Initialize the commands set, unset, insmod, rmmod and
27290 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27291 (kernel_img_HEADERS): Add arg.h and env.h.
27292 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27293 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27294 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27296 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27298 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27299 (boot_mod_SOURCES): New variable.
27300 (terminal_mod_SOURCES): Likewise.
27301 (ls_mod_SOURCES): Likewise.
27302 (cmp_mod_SOURCES): Likewise.
27303 (cat_mod_SOURCES): Likewise.
27305 * normal/arg.c: New file.
27306 * kern/env.c: Likewise.
27307 * include/pupa/arg.h: Likewise.
27308 * include/pupa/env.h: Likewise.
27309 * font/manager.c (font_command): Changed to match argument parsing
27311 (PUPA_MOD_INIT): Likewise.
27312 * hello/hello.c (pupa_cmd_hello): Likewise.
27313 (PUPA_MOD_INIT): Likewise.
27314 * include/pupa/disk.h: Include <pupa/device.h>.
27315 (pupa_print_partinfo): New prototype.
27316 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27317 (pupa_dl_get_prefix): Likewise.
27318 * include/pupa/misc.h: Include <pupa/err.h>.
27319 (pupa_isgraph): New prototype.
27320 (pupa_isdigit): Likewise.
27321 (pupa_split_cmdline): Likewise.
27322 * include/pupa/normal.h: Include <pupa/arg.h>.
27323 (pupa_command): Changed the prototype of the member `func' to
27324 match the argument parsing interface. Added member `options'.
27325 (pupa_register_command): Updated to match function.
27326 (pupa_arg_parse): New prototype.
27327 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27328 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27329 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27330 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27331 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27332 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27333 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27334 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27335 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27336 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27337 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27338 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27339 * kern/disk.c: Include <pupa/file.h>.
27340 (pupa_print_partinfo): New function.
27341 * kern/dl.c: Include <pupa/env.h>.
27342 (pupa_dl_dir): Variable removed.
27343 (pupa_dl_load): Use the environment variable `prefix' instead of
27344 the variable pupa_dl_dir.
27345 (pupa_dl_set_prefix): Function removed.
27346 (pupa_dl_get_prefix): Likewise.
27347 * kern/i386/pc/init.c: Include <pupa/env.h>.
27348 (pupa_machine_init): Use the environment variable `prefix' instead of
27349 using pupa_dl_set_prefix to set the prefix.
27350 * kern/main.c: Include <pupa/env.h>.
27351 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27352 using pupa_dl_get_prefix to get the prefix.
27353 * kern/misc.c: Include <pupa/env.h>.
27354 (pupa_isdigit): New function.
27355 (pupa_isgraph): Likewise.
27356 (pupa_ftoa): Likewise.
27357 (pupa_vsprintf): Added support for printing values of the type
27358 `double'. Make it possible to format variable output when using
27359 formatting like `%1.2%f'.
27360 (pupa_split_cmdline): New function.
27361 * kern/rescue.c: Include <pupa/env.h>.
27362 (next_word): Removed function.
27363 (pupa_rescue_cmd_prefix): Likewise.
27364 (pupa_rescue_cmd_set): New function.
27365 (pupa_rescue_cmd_unset): New function.
27366 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27367 split the command line instead of splitting it here. Added
27368 support for setting variables using the syntax `foo=bar'. Don't
27369 initialize the prefix command anymore. Initialized the set and
27371 * normal/cmdline.c: Include <pupa/env.h>.
27372 (pupa_tab_complete): Added prototypes for print_simple_completion,
27373 print_partition_completion, add_completion, iterate_commands,
27374 iterate_dev, iterate_part and iterate_dir. Moved code to print
27375 partition information from here to kern/disk.c.
27376 (pupa_cmdline_run): Don't check if the function exists anymore.
27377 * normal/main.c: Include <pupa/env.h>.
27378 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27379 instead of using pupa_dl_get_prefix to get the prefix.
27380 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27381 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27383 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27384 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27385 ((unused))' to silence a gcc warning.
27386 (pupa_vga_setcolor): Likewise.
27387 (debug_command): Changed to match argument parsing
27389 * util/pupa-emu.c: Include <pupa/env.h>.
27390 (options): Added 0's for unused fields to silence a gcc warning.
27392 (main): Use the environment variable `prefix' instead of using
27393 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27394 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27397 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27398 * util/misc.c: Include <malloc.h>.
27399 (pupa_malloc): Rewritten so errors are correctly reported.
27400 (pupa_realloc): Likewise.
27401 (pupa_memalign): Likewise.
27402 (pupa_mm_init_region): Declare unused variables with
27403 `__attribute__ ((unused))' to silence a gcc warning.
27404 * normal/i386/setjmp.S: Remove tab at the end of the file to
27405 silence a gcc warning.
27406 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27407 variables with `__attribute__ ((unused))' to silence a gcc
27409 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27410 local variable i unsigned to silence a gcc warning.
27412 * kern/term.c: Include <pupa/misc.h>.
27413 (pupa_more_lines): New variable.
27414 (pupa_more): Likewise.
27415 (pupa_putcode): When the pager is active pause at the end of every
27417 (pupa_set_more): New function.
27418 * include/pupa/term.h (pupa_set_more): New prototype.
27421 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27423 Now this project is GRUB 2 rather than PUPA. The location of
27424 the CVS repository was moved to GRUB's.
27426 * configure.ac: Use bug-grub as the reporting address.
27427 Use GRUB instead of PUPA.
27428 Change the version number to 1.90.
27430 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27432 * genkernsyms.sh: Updated copyright information.
27433 * genmk.rb: Likewise.
27434 * genmodsrc.sh: Likewise.
27435 * gensymlist.sh: Likewise.
27436 * boot/i386/pc/boot.S: Likewise.
27437 * boot/i386/pc/diskboot.S: Likewise.
27438 * disk/i386/pc/biosdisk.c: Likewise.
27439 * disk/i386/pc/partition.c: Likewise.
27440 * font/manager.c: Likewise.
27441 * fs/ext2.c: Likewise.
27442 * fs/fat.c: Likewise.
27443 * include/pupa/boot.h: Likewise.
27444 * include/pupa/device.h: Likewise.
27445 * include/pupa/disk.h: Likewise.
27446 * include/pupa/dl.h: Likewise.
27447 * include/pupa/elf.h: Likewise.
27448 * include/pupa/err.h: Likewise.
27449 * include/pupa/file.h: Likewise.
27450 * include/pupa/font.h: Likewise.
27451 * include/pupa/fs.h: Likewise.
27452 * include/pupa/kernel.h: Likewise.
27453 * include/pupa/loader.h: Likewise.
27454 * include/pupa/misc.h: Likewise.
27455 * include/pupa/mm.h: Likewise.
27456 * include/pupa/net.h: Likewise.
27457 * include/pupa/normal.h: Likewise.
27458 * include/pupa/rescue.h: Likewise.
27459 * include/pupa/setjmp.h: Likewise.
27460 * include/pupa/symbol.h: Likewise.
27461 * include/pupa/term.h: Likewise.
27462 * include/pupa/types.h: Likewise.
27463 * include/pupa/i386/setjmp.h: Likewise.
27464 * include/pupa/i386/types.h: Likewise.
27465 * include/pupa/i386/pc/biosdisk.h: Likewise.
27466 * include/pupa/i386/pc/boot.h: Likewise.
27467 * include/pupa/i386/pc/console.h: Likewise.
27468 * include/pupa/i386/pc/init.h: Likewise.
27469 * include/pupa/i386/pc/kernel.h: Likewise.
27470 * include/pupa/i386/pc/linux.h: Likewise.
27471 * include/pupa/i386/pc/loader.h: Likewise.
27472 * include/pupa/i386/pc/memory.h: Likewise.
27473 * include/pupa/i386/pc/multiboot.h: Likewise.
27474 * include/pupa/i386/pc/partition.h: Likewise.
27475 * include/pupa/i386/pc/time.h: Likewise.
27476 * include/pupa/i386/pc/vga.h: Likewise.
27477 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27478 * include/pupa/util/getroot.h: Likewise.
27479 * include/pupa/util/misc.h: Likewise.
27480 * include/pupa/util/resolve.h: Likewise.
27481 * kern/device.c: Likewise.
27482 * kern/disk.c: Likewise.
27483 * kern/dl.c: Likewise.
27484 * kern/err.c: Likewise.
27485 * kern/file.c: Likewise.
27486 * kern/fs.c: Likewise.
27487 * kern/loader.c: Likewise.
27488 * kern/main.c: Likewise.
27489 * kern/misc.c: Likewise.
27490 * kern/mm.c: Likewise.
27491 * kern/rescue.c: Likewise.
27492 * kern/term.c: Likewise.
27493 * kern/i386/dl.c: Likewise.
27494 * kern/i386/pc/init.c: Likewise.
27495 * kern/i386/pc/lzo1x.S: Likewise.
27496 * kern/i386/pc/startup.S: Likewise.
27497 * loader/i386/pc/chainloader.c: Likewise.
27498 * loader/i386/pc/linux.c: Likewise.
27499 * loader/i386/pc/multiboot.c: Likewise.
27500 * normal/cmdline.c: Likewise.
27501 * normal/command.c: Likewise.
27502 * normal/main.c: Likewise.
27503 * normal/menu.c: Likewise.
27504 * normal/i386/setjmp.S: Likewise.
27505 * term/i386/pc/console.c: Likewise.
27506 * term/i386/pc/vga.c: Likewise.
27507 * util/console.c: Likewise.
27508 * util/genmoddep.c: Likewise.
27509 * util/misc.c: Likewise.
27510 * util/pupa-emu.c: Likewise.
27511 * util/resolve.c: Likewise.
27512 * util/unifont2pff.rb: Likewise.
27513 * util/i386/pc/biosdisk.c: Likewise.
27514 * util/i386/pc/getroot.c: Likewise.
27515 * util/i386/pc/pupa-mkimage.c: Likewise.
27516 * util/i386/pc/pupa-setup.c: Likewise.
27518 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27520 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27521 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27522 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27523 reading and reset it after reading.
27524 (pupa_ext2_close): Return PUPA_ERR_NONE.
27526 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27528 (struct linux_kernel_header): Add kernel_version and
27530 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27531 pupa_file_read succeeds.
27532 (pupa_rescue_cmd_initrd): Implement.
27534 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27536 * fs/ext2.c (pupa_ext2_label): New function.
27537 (pupa_ext2_fs): Added label.
27538 * fs/fat.c (pupa_fat_label): New function.
27539 (pupa_fat_fs): Added label.
27540 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27542 * kern/misc.c (pupa_strndup): New function.
27543 * include/pupa/misc.h (pupa_strndup): New prototype.
27545 * include/pupa/normal.h: Include <pupa/err.h>.
27546 (pupa_set_history): New prototype.
27547 (pupa_iterate_commands): New prototype.
27548 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27549 <pupa/disk.h>, <pupa/file.h>.
27550 (hist_size): New variable.
27551 (hist_lines): Likewise.
27552 (hist_end): Likewise.
27553 (hist_used): Likewise.
27554 (pupa_set_history): New function.
27555 (pupa_history_get): Likewise.
27556 (pupa_history_add): Likewise.
27557 (pupa_history_replace): Likewise.
27558 (pupa_tab_complete): Likewise.
27559 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27560 completion shows partitionnames while completing partitions, this
27561 feature was suggested by Jeff Bailey.
27562 * normal/command.c (pupa_iterate_commands): New function.
27563 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27564 (pupa_normal_init): Initialize history buffer.
27565 (PUPA_MOD_INIT): Likewise.
27566 (pupa_normal_fini): Free the history buffer.
27567 (PUPA_MOD_FINI): Likewise.
27569 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27572 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27573 * configure.ac [i386]: Check for regparam bug.
27574 (NESTED_FUNC_ATTR) [! i386]: Defined.
27576 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27578 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27579 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27580 (pupa_emu_SOURCES): New variable.
27581 (pupa_emu_LDFLAGS): Likewise.
27582 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27583 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27584 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27585 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27586 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27587 (pupa_jmp_buf): New typedef.
27588 (pupa_setjmp) [PUPA_UTIL]: New macro.
27589 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27590 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27591 (pupa_refresh): New prototype.
27592 * include/pupa/util/getroot.h: New file.
27593 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27595 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27596 (pupa_rescue_cmd_cat): Likewise.
27597 (pupa_rescue_cmd_ls): Likewise.
27598 (pupa_rescue_cmd_testload): Likewise.
27599 (pupa_rescue_cmd_lsmod): Likewise.
27600 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27601 * normal/menu.c (run_menu): Likewise.
27602 * kern/term.c (pupa_cls): Likewise.
27603 (pupa_refresh): New function.
27604 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27605 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27606 * util/console.c: New file.
27608 * util/i386/pc/getroot.c: New file.
27609 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27610 (pupa_putchar): New function.
27611 (pupa_refresh): Likewise.
27612 (xgetcwd): Function moved to ...
27613 (strip_extra_slashes): Likewise.
27614 (get_prefix): Likewise.
27615 * util/i386/pc/getroot.c: ... here.
27616 (find_root_device): Function moved and renamed to...
27617 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27618 Changed all callers.
27619 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27621 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27622 Changed all callers.
27623 * util/misc.c (pupa_memalign): New function.
27624 (pupa_mm_init_region): Likewise.
27625 (pupa_register_exported_symbols): Likewise.
27626 (pupa_putchar): Function removed.
27627 * util/pupa-emu.c: New file.
27629 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27631 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27632 (_multiboot_mod_SOURCES): New variable.
27633 (_multiboot_mod_CFLAGS): Likewise.
27634 * loader/i386/pc/multiboot.c: New file.
27635 * include/pupa/i386/pc/multiboot.h: Likewise.
27636 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27637 (pupa_multiboot_real_boot): New function.
27638 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27639 (pupa_multiboot_real_boot): New prototype.
27640 (pupa_rescue_cmd_multiboot): Likewise
27641 (pupa_rescue_cmd_module): Likewise.
27643 * kern/loader.c (pupa_loader_set): Continue when
27644 pupa_loader_unload_func() fails.
27645 (pupa_loader_unset): New function.
27646 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27648 * kern/misc.c (pupa_stpcpy): New function.
27649 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27651 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27653 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27654 for available extensions.
27656 * include/pupa/i386/pc/time.h: New file.
27657 * kern/disk.c: Include <pupa/machine/time.h>.
27658 (PUPA_CACHE_TIMEOUT): New macro.
27659 (pupa_last_time): New variable.
27660 (pupa_disk_open): Flush the cache when there was a timeout.
27661 (pupa_disk_close): Reset the timer.
27662 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27664 * util/misc.c: Include <sys/times.h>
27665 (pupa_get_rtc): New function.
27667 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27669 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27671 (pupa_ext2_get_file_block): Use blocks member.
27673 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27674 first block. Return -1 instead of pupa_errno on error.
27676 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27678 * README: In the pupa-mkimage example use _chain instead of chain
27679 and ext2 instead of fat.
27680 * TODO: Replace ext2fs with jfs as an example. Add an item for
27681 adding journal playback for ext2fs.
27682 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27683 (pkgdata_MODULES): Added ext2.mod.
27684 (ext2_mod_SOURCES): New variable.
27685 (ext2_mod_CFLAGS): Likewise.
27686 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27687 * include/pupa/misc.h (pupa_strncpy): New prototype.
27688 (pupa_strcat): Likewise.
27689 (pupa_strncmp): Likewise.
27690 * kern/misc.c (pupa_strcat): Enable function.
27691 (pupa_strncpy): New function.
27692 (pupa_strncmp): Likewise.
27693 * fs/ext2.c: New file.
27695 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27696 when the read failed before retrying.
27697 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27698 (_FILE_OFFSET_BITS): Likewise.
27699 * configure.ac: Added AC_SYS_LARGEFILE.
27701 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27703 * genmk.rb (PModule#rule): Make sure to get only symbol names
27704 from the output of nm.
27705 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27707 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27709 I forgot to check in these changes for a long time. This adds
27710 incomplete support for VGA console, and this is still very
27711 buggy. Also, a lot of consideration is required for I18N,
27712 UNICODE, and VGA font issues. Therefore, assume that this is
27713 such that "better than nothing".
27715 * font/manager.c: New file.
27716 * include/pupa/font.h: Likewise.
27717 * include/pupa/i386/pc/vga.h: Likewise.
27718 * term/i386/pc/vga.c: Likewise.
27719 * util/unifont2pff.rb: Likewise.
27721 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27722 (pkgdata_MODULES): Added vga.mod and font.mod.
27723 (vga_mod_SOURCES): New variables.
27724 (vga_mod_CFLAGS): Likewise.
27725 (font_mod_SOURCES): Likewise.
27726 (font_mod_CFLAGS): Likewise.
27728 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27730 * include/pupa/term.h: Include pupa/err.h.
27731 (struct pupa_term): Added init and fini.
27732 Changed the argument of putchar to pupa_uint32_t.
27734 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27735 (pupa_console_real_putchar): New prototype.
27736 (pupa_console_putchar): Removed.
27737 (pupa_console_checkkey): Exported.
27738 (pupa_console_getkey): Likewise.
27740 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27743 * kern/term.c (pupa_term_set_current): Rewritten.
27744 (pupa_putchar): Likewise.
27745 (pupa_putcode): New function.
27747 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27748 (pupa_console_real_putchar): ... this.
27749 (pupa_vga_set_mode): New function.
27750 (pupa_vga_get_font): Likewise.
27752 * normal/command.c: Include pupa/term.h.
27753 (terminal_command): New function.
27754 (pupa_command_init): Register the command "terminal".
27756 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27757 (DISP_UP): Likewise.
27758 (DISP_RIGHT): Likewise.
27759 (DISP_DOWN): Likewise.
27760 (DISP_HLINE): Likewise.
27761 (DISP_VLINE): Likewise.
27762 (DISP_UL): Likewise.
27763 (DISP_UR): Likewise.
27764 (DISP_LL): Likewise.
27765 (DISP_LR): Likewise.
27767 * term/i386/pc/console.c (pupa_console_putchar): New function.
27769 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27771 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27772 FIX. Reverse the path_list.
27774 * include/pupa/normal.h: Export pupa_register_command and
27775 pupa_unregister_command.
27777 * hello/hello.c (pupa_cmd_hello): New module.
27778 * conf/i386-pc.rmk: Added hello.mod.
27780 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27782 * kern/i386/pc/lzo1x.S: New file.
27784 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27785 (compress_kernel): New variable.
27786 (generate_image): Heavily modified to support compressing a
27787 large part of the core image.
27789 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27791 (pupa_util_load_image): New function.
27793 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27794 (pupa_compressed_size): New variable.
27795 (codestart): Enable Gate A20 here.
27796 Decompress the compressed part of the core image.
27797 Rearrange the code to put functions and variables which are
27798 required for initialization in the non-compressed part.
27801 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27804 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27806 * include/pupa/i386/pc/kernel.h
27807 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27808 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27809 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27810 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27811 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27813 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27815 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27816 (Utility#rule): Likewise.
27818 * configure.ac: Check if LZO is available.
27820 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27822 * include/pupa/normal.h: New file.
27823 * include/pupa/setjmp.h: Likewise.
27824 * include/pupa/i386/setjmp.h: Likewise.
27825 * normal/cmdline.c: Likewise.
27826 * normal/command.c: Likewise.
27827 * normal/main.c: Likewise.
27828 * normal/menu.c: Likewise.
27829 * normal/i386/setjmp.S: Likewise.
27831 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27832 (pupa_rescue_cmd_initrd): Likewise.
27834 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27837 * kern/i386/pc/startup.S (translation_table): New variable.
27838 (translate_keycode): New function.
27839 (pupa_console_getkey): Call translate_keycode.
27841 * kern/rescue.c (attempt_normal_mode): New function.
27842 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27843 it failed, print a message.
27845 * kern/mm.c (pupa_real_malloc): Print more information when a
27846 free magic is broken.
27847 (pupa_free): If the first free header is not free actually, set
27850 * kern/main.c (pupa_load_normal_mode): Just load the module
27852 (pupa_main): Don't print the message
27853 "Entering into rescue mode..." here.
27855 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27857 (pupa_rescue_cmd_initrd): Likewise.
27858 (pupa_rescue_cmd_initrd): Likewise.
27860 * include/pupa/symbol.h (FUNCTION): Specify the type.
27861 (VARIABLE): Likewise.
27863 * include/pupa/err.h (pupa_err_t): Added
27864 PUPA_ERR_UNKNOWN_COMMAND.
27866 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27867 (pupa_dl_get_prefix): Likewise.
27869 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27870 Added _chain.mod and _linux.mod instead of chain.mod and
27872 (chain_mod_SOURCES): Renamed to ...
27873 (_chain_mod_SOURCES): ... this.
27874 (chain_mod_CFLAGS): Renamed to ...
27875 (_chain_mod_CFLAGS): ... this.
27876 (linux_mod_SOURCES): Renamed to ...
27877 (_linux_mod_SOURCES): ... this.
27878 (linux_mod_CFLAGS): Renamed to ...
27879 (_linux_mod_CFLAGS): ... this.
27880 (normal_mod_SOURCES): New variable.
27881 (normal_mod_CFLAGS): Likewise.
27882 (normal_mod_ASFLAGS): Likewise.
27884 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27886 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27889 * kern/dl.c (pupa_dl_ref): Refer depending modules
27891 (pupa_dl_unref): Unrefer depending modules recursively.
27892 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27893 a module is unloaded before one depending on that module is
27895 (pupa_dl_unload): Unload depending modules explicitly,
27898 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27900 * include/pupa/i386/pc/linux.h: New file.
27901 * loader/i386/pc/linux.c: Likewise.
27903 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27905 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27906 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27907 of PUPA_CHAINLOADER_BOOT_SECTOR.
27909 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27910 (pupa_linux_prot_size): New variable.
27911 (pupa_linux_tmp_addr): Likewise.
27912 (pupa_linux_real_addr): Likewise.
27913 (pupa_linux_boot_zimage): New function.
27914 (pupa_linux_boot_bzimage): Likewise.
27916 * kern/i386/pc/init.c (struct mem_region): New structure.
27917 (MAX_REGIONS): New macro.
27918 (mem_regions): New variable.
27919 (num_regions): Likewise.
27920 (pupa_os_area_addr): Likewise.
27921 (pupa_os_area_size): Likewise.
27922 (pupa_lower_mem): Likewise.
27923 (pupa_upper_mem): Likewise.
27924 (add_mem_region): New function.
27925 (compact_mem_regions): Likewise.
27926 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27927 the size of the conventional memory and that of so-called upper
27928 memory (before the first memory hole).
27929 Instead of adding each found region to free memory, use
27930 add_mem_region and add them after removing overlaps.
27931 Also, add only 1/4 of the upper memory to free memory. The rest
27932 is used for loading OS images. Maybe this is ad hoc, but this
27933 makes it much easier to relocate OS images when booting.
27935 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27936 (pupa_enter_rescue_mode): Don't register initrd and module.
27938 * kern/mm.c: Include pupa/dl.h.
27940 * kern/main.c: Include pupa/file.h and pupa/device.h.
27942 * kern/loader.c (pupa_loader_load_module_func): Removed.
27943 (pupa_loader_load_module): Likewise.
27945 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27948 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27949 (pupa_linux_tmp_addr): Likewise.
27950 (pupa_linux_real_addr): Likewise.
27951 (pupa_linux_boot_zimage): Likewise.
27952 (pupa_linux_boot_bzimage): Likewise.
27954 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27955 (pupa_upper_mem): Likewise.
27956 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27957 module is too dangerous.
27959 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27960 (pupa_os_area_size): Likewise.
27961 (pupa_loader_set): Remove the first argument. Loader doesn't
27962 manage modules or initrd any longer.
27963 (pupa_loader_load_module): Removed.
27965 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27966 (linux_mod_SOURCES): New variable.
27967 (linux_mod_CFLAGS): Likewise.
27969 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27971 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27972 the length of a blocklist correctly.
27974 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27975 Use ioctl only if the OS file is a block device.
27976 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27977 not very useful for normal files.
27979 * kern/main.c (pupa_set_root_dev): New function.
27980 (pupa_load_normal_mode): Likewise.
27981 (pupa_main): Call those above.
27983 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27986 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27988 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27990 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27991 (setup): Configure the installed partition information and the
27994 * loader/i386/pc/chainloader.c (my_mod): New variable.
27995 (pupa_chainloader_unload): New function.
27996 (pupa_rescue_cmd_chainloader): Refer itself.
27997 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27999 * kern/i386/pc/startup.S (install_partition): Removed.
28000 (version_string): Likewise.
28001 (config_file): Likewise.
28002 (pupa_install_dos_part): New variable.
28003 (pupa_install_bsd_part): Likewise.
28004 (pupa_prefix): Likewise.
28005 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28007 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28009 (make_install_device): New function.
28010 (pupa_machine_init): Set the dl prefix.
28012 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28013 (buf): Renamed to ...
28014 (linebuf): ... this.
28015 (pupa_rescue_cmd_prefix): New function.
28016 (pupa_rescue_cmd_insmod): Likewise.
28017 (pupa_rescue_cmd_rmmod): Likewise.
28018 (pupa_rescue_cmd_lsmod): Likewise.
28019 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28022 * kern/mm.c (pupa_memalign): If failed even after invalidating
28023 disk caches, unload unneeded modules and retry.
28025 * kern/misc.c (pupa_memmove): New function.
28026 (pupa_memcpy): Removed.
28027 (pupa_strcpy): New function.
28028 (pupa_itoa): Made static.
28030 * kern/dl.c (pupa_dl_iterate): New function.
28031 (pupa_dl_ref): Likewise.
28032 (pupa_dl_unref): Likewise.
28033 (pupa_dl_unload): Return if succeeded or not.
28034 (pupa_dl_unload_unneeded): New function.
28035 (pupa_dl_unload_all): Likewise.
28036 (pupa_dl_init): Renamed to ...
28037 (pupa_dl_set_prefix): ... this.
28038 (pupa_dl_get_prefix): New function.
28040 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28041 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28042 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28043 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28044 (pupa_install_dos_part): Declared.
28045 (pupa_install_bsd_part): Likewise.
28046 (pupa_prefix): Likewise.
28047 (pupa_boot_drive): Likewise.
28049 * include/pupa/types.h: Fix a typo.
28051 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28053 (pupa_memmove): Declared.
28054 (pupa_strcpy): Likewise.
28056 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28057 pupa_mod_init takes one argument, its own module.
28058 (pupa_dl_unload_unneeded): Declared.
28059 (pupa_dl_unload_all): Likewise.
28060 (pupa_dl_ref): Likewise.
28061 (pupa_dl_unref): Likewise.
28062 (pupa_dl_iterate): Likewise.
28063 (pupa_dl_init): Renamed to ...
28064 (pupa_dl_set_prefix): ... this.
28065 (pupa_dl_get_prefix): Declared.
28067 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
28068 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
28070 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28071 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28073 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28074 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28076 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28078 * util/i386/pc/pupa-setup.c (setup): Define the internal
28079 function find_first_partition_start at the top level, because GCC
28080 3.0.x cannot compile internal functions in deeper scopes
28082 (find_root_device): Use lstat instead of stat.
28083 Don't follow symbolic links.
28084 Fix the path-constructing code.
28086 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28087 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28088 by a BLKGETSIZE ioctl first, because block devices don't fill
28089 the member st_mode of the structure stat on Linux.
28090 [__linux__] (linux_find_partition): Use a temporary buffer
28091 REAL_DEV for the working space. Copy it to DEV before returning.
28092 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28093 buffer cache consistent.
28094 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28095 strncmp. The previous value was merely wrong.
28096 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28098 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28099 FAT size is 12. The previous value was merely wrong.
28101 * kern/main.c (pupa_main): Don't split the starting message from
28104 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28105 LF, because BIOS goes crazy about character attributes in this
28108 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28110 * include/i386/pc/util/biosdisk.h: New file.
28111 * util/i386/pc/biosdisk.c: Likewise.
28112 * util/i386/pc/pupa-setup.c: Likewise.
28114 * Makefile.in (INCLUDE_DISTFILES): Added
28115 include/pupa/i386/pc/util/biosdisk.h.
28116 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28117 directory util/i386/pc.
28118 (install-local): Added a rule for sbin_UTILITIES.
28119 (uninstall): Likewise.
28121 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28123 * util/misc.c (xrealloc): New function.
28124 (pupa_malloc): Likewise.
28125 (pupa_free): Likewise.
28126 (pupa_realloc): Likewise.
28127 (pupa_stop): Likewise.
28128 (pupa_putchar): Likewise.
28130 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28132 * include/pupa/util/misc.h (xrealloc): Declared.
28134 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28136 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28137 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28139 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28140 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28142 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28143 way should be implemented.
28144 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28146 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28147 the size of NAME for safety.
28148 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28151 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28152 (pupa_setup_SOURCES): Likewise.
28154 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28156 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28158 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28159 bunch of pushl's from pusha, because this destroys the return
28162 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28164 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28165 This means that any missing prototypes could be fatal. Also, you
28166 must take care when writing assembly code. See the comments at
28167 the beginning of startup.S, for more details.
28169 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28170 compilation mechanism.
28171 (pupa_chainloader_real_boot): Likewise.
28172 (pupa_biosdisk_rw_int13_extensions): Likewise.
28173 (pupa_biosdisk_rw_standard): Likewise.
28174 (pupa_biosdisk_check_int13_extensions): Likewise.
28175 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28176 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28177 (pupa_get_memsize): Likewise.
28178 (pupa_get_mmap_entry): Likewise.
28179 (pupa_console_putchar): Likewise.
28180 (pupa_console_setcursor): Likewise.
28181 (pupa_getrtsecs): Use pushl instead of push.
28183 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28184 memory instead of the stack for a mmap entry, because some
28185 BIOSes may ignore the maximum size and overflow.
28187 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28189 * genmk.rb (PModule#rule): Compile automatically generated
28190 sources with module-specific CFLAGS as well as other sources.
28192 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28194 * configure.ac: Check ld.
28195 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28196 respectively, before checking endianness and sizes.
28198 * Makefile.in (LD): New variable.
28200 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28202 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28204 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28206 * Changelog: New file.