1 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
3 Yeeloong firmware port.
5 * boot/mips/yeeloong/fwstart.S: New file.
6 * bus/cs5536.c (gpiodump): New const.
7 (set_io_space): New function.
10 (grub_cs5536_init_geode): Likewise.
11 * commands/mips/yeeloong/lsspd.c: New file.
12 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
13 (serial_mod_SOURCES): New variable.
14 (serial_mod_CFLAGS): Likewise.
15 (serial_mod_LDFLAGS): Likewise.
16 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
17 term/terminfo.c and term/tparm.c.
18 (pkglib_IMAGES): Add fwstart.img.
19 (fwstart_img_SOURCES): New variable.
20 (fwstart_img_CFLAGS): Likewise.
21 (fwstart_img_ASFLAGS): Likewise.
22 (fwstart_img_LDFLAGS): Likewise.
23 (fwstart_img_FORMAT): Likewise.
24 (pkglib_MODULES): Add lsspd.mod.
25 (lsspd_mod_SOURCES): New variable.
26 (lsspd_mod_CFLAGS): Likewise.
27 (lsspd_mod_LDFLAGS): Likewise.
28 (pkglib_MODULES): Add halt.mod.
29 (halt_mod_SOURCES): New variable.
30 (halt_mod_CFLAGS): Likewise.
31 (halt_mod_LDFLAGS): Likewise.
32 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
33 (serial_mod_SOURCES): Removed.
34 (serial_mod_CFLAGS): Likewise.
35 (serial_mod_LDFLAGS): Likewise.
36 * disk/ata.c (check_device): New function.
37 (grub_ata_device_initialize): Use check_device.
38 (grub_ata_iterate): Recheck devices.
39 (grub_ata_open): Likewise.
40 (grub_atapi_iterate): Likewise.
41 (grub_atapi_open): Likewise.
42 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
43 (GRUB_ATA_CH1_PORT1): Likewise.
44 (GRUB_ATA_CH0_PORT2): Likewise.
45 (GRUB_ATA_CH1_PORT2): Likewise.
46 * include/grub/mips/loongson.h: New file.
47 * include/grub/mips/yeeloong/ec.h: Likewise.
48 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
49 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
50 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
51 * include/grub/misc.h (grub_halt): Declare as noreturn.
52 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
53 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
54 (UART_ENABLE_FIFO_TRIGGER1): New definition.
55 (UART_ENABLE_DTRRTS): Likewise.
56 (UART_ENABLE_MODEM): Removed.
57 (UART_ENABLE_OUT2): New const.
58 * include/grub/term.h (grub_term_register_input_active): New function.
59 (grub_term_register_output_active): Likewise.
60 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
62 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
63 (init_pci): New function.
64 (grub_machine_init): Execute platform init when firmware. Init serial.
65 (grub_halt): Implement.
66 (grub_exit): Likewise.
67 (grub_reboot): Likewise.
68 * term/serial.c (serial_hw_init): Update macros.
69 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
70 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
71 (image_targets): New target mipsel-yeeloong-flash.
72 (generate_image): Support IMAGE_YEELOONG_FLASH.
73 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
74 (grub_video_sm712_setup): Init card.
75 (grub_video_sm712_set_palette): Removed.
76 * video/sm712_init.c: New file.
78 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
80 * Makefile.in (install-local): Temporarily prepend $(builddir) to
81 PATH when running help2man and then run it on the unadorned
82 executable names, rather than passing $(builddir)/* paths to
83 help2man. This avoids the build directory ending up in generated
86 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
88 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
89 to avoid accidents when debugging with 'sh -x'.
90 * util/grub-mkrescue.in: Likewise.
91 * util/grub.d/00_header.in: Likewise.
92 * util/grub.d/10_hurd.in: Likewise.
93 * util/grub.d/10_kfreebsd.in: Likewise.
94 * util/grub.d/10_linux.in: Likewise.
95 * util/grub.d/10_netbsd.in: Likewise.
96 * util/grub.d/10_windows.in: Likewise.
97 * util/grub.d/20_linux_xen.in: Likewise.
98 * util/grub.d/30_os-prober.in: Likewise.
99 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
101 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
103 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
104 last character in the buffer.
105 Reported by: Vladimir Serbinenko.
107 2010-06-29 Robert Millan <rmh@gnu.org>
109 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
110 (Command-line and menu entry commands): Document `badram' command.
112 2010-06-28 Robert Millan <rmh@gnu.org>
114 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
115 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
116 command using ${GRUB_BADRAM} as parameter.
118 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
120 * docs/grub.texi (Device map): New section.
121 (Themes): New section (stub).
122 * Makefile.in (docs/grub.info): The info documentation now builds
123 without errors. Make sure it stays that way.
125 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
127 Use normal parser for menu entries.
128 Reported by: Thomas Frauendorfer
130 * include/grub/parser.h (grub_parser_execute): Don't export.
131 * normal/menu.c (grub_menu_execute_entry_real): New function.
132 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
134 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
136 * docs/grub.texi (Embedded configuration): New section (replacing
137 old "Preset Menu" stub).
138 (Images): New section.
139 (configfile): Note that any menu entries defined in `file' are shown
142 2010-06-28 Josh Triplett <josh@joshtriplett.org>
144 * mmap/i386/pc/mmap_helper.S: Set CF on return.
146 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
148 * util/grub-install.in: Add --debug-image= option.
150 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
152 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
155 * util/deviceiter.c (check_device): Rename to ...
156 (check_device_readable_unique): ... this. Update all callers.
157 Maintain and check a list of which devices (by canonicalized name)
158 have already been seen.
159 (clear_seen_devices): New function.
160 (compare_file_names) [__linux__]: New function.
161 (grub_util_iterate_devices): Clear the list of seen devices on exit
162 and (just in case) on entry.
163 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
164 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
165 seen-devices list, superseded by general code in check_device.
167 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
169 * commands/cat.c (options): New variable.
170 (grub_cmd_cat): Parse options. If the --dos option is given, print
171 DOS-style "\r\n" line endings as simple newlines (Debian bug
173 (GRUB_MOD_INIT): Use extcmd.
174 (GRUB_MOD_FINI): Likewise.
175 * docs/grub.texi (cat): Document --dos.
177 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
179 XEN with Linux grub-mkconfig support.
181 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
182 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
183 GRUB_CMDLINE_XEN_DEFAULT.
184 * util/grub.d/20_linux_xen.in: New file.
186 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
188 Initialise VGA video on qemu ourselves.
190 * boot/i386/qemu/boot.S: Don't call 0xc000.
191 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
192 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
193 (kernel_img_HEADERS): Add pci.h.
194 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
195 * configure.ac: Force unifont on qemu and yeeloong.
196 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
197 (grub_vga_palette_write): Use correct register.
198 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
199 Call grub_qemu_init_cirrus.
200 * kern/i386/qemu/init.c: New file.
201 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
203 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
205 2010-06-26 Pavel Roskin <proski@gnu.org>
207 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
210 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
212 * docs/grub.texi (Simple configuration): Explain that
213 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
214 set to `true' to disable their respective recovery entries, not
217 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
219 Make the `source' command slightly faster.
221 * normal/main.c (grub_normal_execute): Don't re-read list files when
224 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
226 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
227 field position and mask size to red fields from mode_info, not
229 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
230 Remove redundant tag->common.framebuffer_type assignment.
231 Reported by: Seth Goldberg.
233 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
235 Sync up other versions of the Linux loader with Robert Millan's
236 change of 2010-01-09, "Make loader output a bit more user-friendly".
238 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
240 (grub_cmd_linux): Likewise.
241 (grub_cmd_initrd): Likewise.
242 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
243 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
245 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
247 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
248 larger than MEMORY_MAP_SIZE.
250 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
254 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
256 * script/parser.y: #include grub_script.tab.h header.
258 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
260 Support >3GiB and <16MiB RAM in i386-qemu.
262 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
263 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
264 (grub_lower_mem): Removed.
265 (grub_upper_mem): Likewise.
266 (mem_size): Made static.
267 (above_4g): New variable.
268 (grub_machine_mmap_init): Detect small mem_size and above_4g.
269 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
272 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
274 Cirrus 5446 and Bochs video cards support.
276 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
278 (video_cirrus_mod_SOURCES): New variable.
279 (video_cirrus_mod_CFLAGS): Likewise.
280 (video_cirrus_mod_LDFLAGS): Likewise.
281 (video_bochs_mod_SOURCES): Likewise.
282 (video_bochs_mod_CFLAGS): Likewise.
283 (video_bochs_mod_LDFLAGS): Likewise.
284 * include/grub/vga.h: New file.
285 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
286 (grub_video_fb_set_page_t): New type.
287 (grub_video_fb_setup): New prototype.
288 (grub_video_fb_swap_buffers): Likewise.
289 (grub_video_fb_get_info_and_fini): Likewise.
290 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
291 (CRTC_DATA_PORT): Likewise.
292 (CRTC_CURSOR): Likewise.
293 (CRTC_CURSOR_ADDR_HIGH): Likewise.
294 (CRTC_CURSOR_ADDR_LOW): Likewise.
295 (CRTC_CURSOR_DISABLE): Likewise.
296 (update_cursor): Use grub_vga_cr_write.
297 (grub_vga_text_setcursor): Likewise.
298 * video/bochs.c: New file.
299 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
301 (palette_size): Likewise.
302 (framebuffer): New variable.
303 (grub_video_fb_init): Use 'framebuffer'.
304 (grub_video_fb_fini): Likewise.
305 (grub_video_fb_get_info): Likewise.
306 (grub_video_fb_get_palette): Likewise.
307 (grub_video_fb_set_palette): Likewise.
308 (grub_video_fb_set_viewport): Likewise.
309 (grub_video_fb_get_viewport): Likewise.
310 (grub_video_fb_map_color): Likewise.
311 (grub_video_fb_map_rgb): Likewise.
312 (grub_video_fb_map_rgba): Likewise.
313 (grub_video_fb_unmap_color): Likewise.
314 (grub_video_fb_unmap_color_int): Likewise.
315 (grub_video_fb_fill_rect): Likewise.
316 (grub_video_fb_blit_bitmap): Likewise.
317 (grub_video_fb_blit_render_target): Likewise.
318 (grub_video_fb_scroll): Likewise.
319 (grub_video_fb_create_render_target): Likewise.
320 (grub_video_fb_doublebuf_blit_init): Likewise.
321 (grub_video_fb_set_active_render_target): Handle doublebuffering.
322 (doublebuf_pageflipping_update_screen): New function.
323 (doublebuf_pageflipping_init): Likewise.
324 (grub_video_fb_setup): Likewise.
325 (grub_video_fb_swap_buffers): Likewise.
326 (grub_video_fb_get_info_and_fini): Likewise.
327 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
329 (doublebuf_pageflipping_commit): Restructured into ...
330 (doublebuf_pageflipping_set_page): ... this.
331 (doublebuf_pageflipping_update_screen): Removed.
332 (doublebuf_pageflipping_init): Likewise.
333 (double_buffering_init): Likewise.
334 (grub_video_vbe_setup): Use grub_video_fb_setup.
335 (grub_video_vbe_swap_buffers): Removed.
336 (grub_video_vbe_set_active_render_target): Likewise.
337 (grub_video_vbe_get_active_render_target): Likewise.
338 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
339 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
340 grub_video_fb_set_active_render_target and
341 grub_video_fb_get_active_render_target.
342 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
343 (SEQUENCER_DATA_PORT): Likewise.
344 (MAP_MASK_REGISTER): Likewise.
345 (CRTC_ADDR_PORT): Likewise.
346 (CRTC_DATA_PORT): Likewise.
347 (START_ADDR_HIGH_REGISTER): Likewise.
348 (START_ADDR_LOW_REGISTER): Likewise.
349 (GRAPHICS_ADDR_PORT): Likewise.
350 (GRAPHICS_DATA_PORT): Likewise.
351 (READ_MAP_REGISTER): Likewise.
352 (INPUT_STATUS1_REGISTER): Likewise.
353 (INPUT_STATUS1_VERTR_BIT): Likewise.
354 (get_map_mask): Use grub_vga_sr_read.
355 (set_map_mask): Use grub_vga_sr_write.
356 (set_read_map): Use grub_vga_gr_write.
357 (set_start_address): Use grub_vga_cr_write.
358 * video/sm712.c (framebuffer): Remove leftover fields.
360 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
362 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
363 setting GRUB_VIDEO_BACKEND. Make it available as a user override
364 instead. Replace the gfxterm backend check with a check that
365 ${GRUB_PREFIX}/video.lst is non-empty.
366 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
368 (load_video): New generated function. Call it before loading
369 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
370 * util/grub.d/10_linux.in (linux_entry): Call load_video.
371 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
372 * docs/grub.texi (Simple configuration): Document
375 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
377 Use video functions in linux and xnu loaders.
379 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
380 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
381 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
382 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
383 loader/i386/pc/linux.c.
384 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
385 (find_line_len): Removed.
386 (find_framebuf): Likewise.
387 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
388 * loader/i386/efi/xnu.c: Removed.
389 * loader/i386/pc/xnu.c: Moved from here...
390 * loader/i386/xnu.c: ...here.
392 Enable priorities in video drivers.
394 * include/grub/video.h (grub_video_adapter_prio_t): New type.
395 (grub_video_adapter): New field prio.
396 (grub_video_register): Respect prio when inserting.
397 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
398 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
399 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
400 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
401 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
402 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
403 * video/sm712.c (grub_video_sm712_adapter): Likewise.
407 * include/grub/video.h (grub_video_driver_id_t): New value
408 GRUB_VIDEO_DRIVER_SDL.
409 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
411 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
413 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
415 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
417 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
419 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
420 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
422 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
424 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
425 directly, and recommend grub-install instead.
426 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
428 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
430 Fix i386-pc prefix handling with nested partitions (Debian bug
431 #585068). Note that the case where the core image is booted using
432 multiboot and relocated from its original location still requires
435 * kern/i386/pc/init.c (make_install_device): If the prefix starts
436 with "(,", fill the boot drive in between those two characters, but
437 expect that a full partition specification including partition map
439 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
440 specified, write a prefix without the drive name but including a
441 full partition specification.
443 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
445 * util/grub-mkconfig.in: Ignore non-option arguments, for
446 compatibility with older versions (before 2010-06-12) which did the
447 same. In particular, this makes it easier to ship an update-grub
448 wrapper which is compatible with that used with GRUB Legacy (Debian
451 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
453 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
454 for manual page generation.
456 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
458 * po/POTFILES: Remove leftover commands/handler.c.
460 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
462 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
463 left this script non-functional.
465 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
467 * docs/man/grub-emu.h2m: New file.
469 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
471 * docs/grub.texi (Commands): Document reduced command set in rescue
473 (cpuid): New section.
475 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
477 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
478 new partition naming style.
479 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
481 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
483 Add "-o grub.iso" like cmdline options support.
485 * util/grub-install.in: Improve cmdline option parsing.
486 * util/grub-mkconfig.in: Likewise.
487 * util/grub-mkrescue.in: Likewise.
488 * util/grub-reboot.in: Likewise.
489 * util/grub-set-default.in: Likewise.
490 * util/i386/efi/grub-install.in: Likewise.
491 * util/ieee1275/grub-install.in: Likewise.
492 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
494 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
496 * .bzrignore: Ignore 41_custom.
498 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
500 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
502 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
504 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
505 prototype declarations.
507 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
508 generating fs, partmap, and video lists.
509 * include/grub/fs.h (grub_fs_register): Omit prototype if
510 GRUB_LST_GENERATOR is defined.
511 * include/grub/partition.h (grub_partition_map_register): Likewise.
512 * include/grub/video.h (grub_video_register): Likewise.
514 2010-06-12 Javier Martín <lordhabbit@gmail.com>
516 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
518 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
520 * util/grub-mkrescue.in: Support --xorriso argument.
522 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
524 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
525 Suggested by: Thomas Schmitt.
527 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
529 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
530 Suggested by: Thomas Schmitt.
532 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
536 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
537 * util/grub.d/41_custom.in: New file.
539 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
541 * util/grub-mkrescue.in (make_image): Remove sh module, which has
542 been merged back into normal.
544 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
546 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
547 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
549 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
551 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
552 when generating manual pages.
553 * docs/man/grub-bin2h.h2m: New file.
554 * docs/man/grub-editenv.h2m: New file.
555 * docs/man/grub-fstest.h2m: New file.
556 * docs/man/grub-install.h2m: New file.
557 * docs/man/grub-macho2img.h2m: New file.
558 * docs/man/grub-mkconfig.h2m: New file.
559 * docs/man/grub-mkdevicemap.h2m: New file.
560 * docs/man/grub-mkfont.h2m: New file.
561 * docs/man/grub-mkimage.h2m: New file.
562 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
563 * docs/man/grub-mkrelpath.h2m: New file.
564 * docs/man/grub-mkrescue.h2m: New file.
565 * docs/man/grub-ofpathname.h2m: New file.
566 * docs/man/grub-pe2elf.h2m: New file.
567 * docs/man/grub-probe.h2m: New file.
568 * docs/man/grub-reboot.h2m: New file.
569 * docs/man/grub-script-check.h2m: New file.
570 * docs/man/grub-set-default.h2m: New file.
571 * docs/man/grub-setup.h2m: New file.
573 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
575 Use FOR_* macros instead of *_iterate whenever possible.
577 * commands/handler.c: Removed.
578 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
579 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
580 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
581 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
582 (grub_probe_SOURCES): Remove kern/parser.c.
583 (util/grub-script-check.c_DEPENDENCIES): Removed.
584 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
585 and grub_script_check_init.c.
586 (grub_script_check_init.lst): Removed.
587 (grub_script_check_init.h): Likewise.
588 (grub_script_check_init.c): Likewise.
589 (pkglib_MODULES): Remove handler.mod and sh.mod.
590 (handler_mod_SOURCES): Removed.
591 (handler_mod_CFLAGS): Likewise.
592 (handler_mod_LDFLAGS): Likewise.
593 (normal_mod_SOURCES): Remove normal/handler.c.
594 Add script/main.c, script/script.c, script/execute.c,
595 script/function.c, script/lexer.c, grub_script.tab.c
596 and grub_script.yy.c.
597 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
598 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
599 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
600 (grub_setup_SOURCES): Remove kern/parser.c.
601 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
602 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
603 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
604 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
605 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
606 (grub_setup_SOURCES): Remove kern/parser.c.
607 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
608 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
609 * include/grub/command.h (grub_command_iterate): Removed.
610 (FOR_COMMANDS): New macro.
611 * include/grub/dl.h (grub_dl): New member next.
612 (grub_dl_iterate): Removed.
613 (grub_dl_head): New variable declaration.
614 (FOR_DL_MODULES): New macro.
615 * include/grub/fs.h: Include list.h.
616 (grub_fs): Make next first element.
617 (grub_fs_list): New variable declaration.
618 (grub_fs_register): Make inline.
619 (grub_fs_unregister): Likewise.
620 (grub_fs_iterate): Removed.
621 (FOR_FILESYSTEMS): New macro.
622 * include/grub/handler.h: Removed.
623 * include/grub/list.h (grub_list_hook_t): Removed.
624 (grub_list_test_t): Likewise.
625 (grub_list_pop): Likewise.
626 (grub_list_iterate): Likewise.
627 (grub_list_insert): Likewise.
628 (FOR_LIST_ELEMENTS): New macro.
629 * include/grub/parser.h (grub_parser_class): Removed.
630 (grub_parser_register): Likewise.
631 (grub_parser_unregister): Likewise.
632 (grub_parser_get_current): Likewise.
633 (grub_parser_set_current): Likewise.
634 (grub_register_rescue_parser): Likewise.
635 (grub_rescue_parse_line): New function.
636 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
637 * include/grub/script_sh.h (grub_script_function_list): New variable
639 (FOR_SCRIPT_FUNCTIONS): New macro.
640 (grub_script_function_iterate): Removed.
641 (grub_normal_parse_line): New prototype.
642 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
643 (FOR_DISABLED_TERM_INPUTS): Likewise.
644 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
645 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
646 * include/grub/video.h (grub_video_adapter): Move 'next' to first
648 (grub_video_register): Inline.
649 (grub_video_unregister): Likewise.
650 (grub_video_adapter_list): New variable declaration.
651 (grub_video_iterate): Removed.
652 (FOR_VIDEO_ADAPTERS): New macro.
653 * kern/dl.c (grub_dl_list): Removed. All users updated.
654 (grub_dl_iterate): Removed.
655 * kern/fs.c (grub_fs_list): Make global.
656 (grub_fs_register): Removed.
657 (grub_fs_unregister): Likewise.
658 (grub_fs_iterate): Likewise.
659 * kern/handler.c: Removed.
660 * kern/list.c (grub_list_pop): Removed.
661 (grub_list_iterate): Likewise.
662 (grub_list_insert): Likewise.
663 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
664 (grub_prio_list_insert): Don't use grub_list_insert.
665 * kern/main.c (grub_register_rescue_parser): Don't call
666 grub_register_rescue_parser.
667 * kern/parser.c (grub_parser_class): Removed.
668 (grub_parser_execute): Use grub_rescue_parse_line.
669 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
670 (grub_rescue_parser): Removed.
671 (grub_register_rescue_parser): Likewise.
672 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
673 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
674 (grub_auth_check_authentication): Likewise.
675 * normal/completion.c (iterate_command): Removed.
676 (grub_normal_do_completion): Use FOR_COMMANDS.
677 * normal/handler.c: Removed.
678 * normal/main.c (read_config_file): Remove parser changing.
679 (grub_normal_execute): Don't call read_handler_list.
680 (grub_normal_read_line_real): Statically allocate prompt.
681 (grub_cmdline_run): Use grub_normal_parse_line.
682 (GRUB_MOD_FINI): Don't call free_handler_list.
683 * normal/menu_entry.c (run): Likewise.
684 * script/function.c (grub_script_function_list): Make global.
685 (grub_script_function_iterate): Removed.
686 * script/main.c (grub_normal_parse_line): Make global.
687 (grub_sh_parser): Removed.
688 (GRUB_MOD_INIT): Likewise.
689 (GRUB_MOD_FINI): Likewise.
690 * tests/lib/functional_test.c (grub_functional_test): Use
692 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
693 (grub_test_run): Use FOR_LIST_ELEMENTS.
694 * tests/lib/unit_test.c (main): Likewise.
695 * util/deviceiter.c (grub_util_iterate_devices): Don't use
697 * util/grub-fstest.c (grub_term_input_class): Removed.
698 (grub_term_output_class): Likewise.
699 * util/grub-probe.c: Likewise.
700 * util/i386/pc/grub-setup.c: Likewise.
701 * util/sparc64/ieee1275/grub-setup.c: Likewise.
702 * util/grub-script-check.c (main): Don't call grub_init_all and
704 * video/video.c (grub_video_adapter_list): Make global.
705 (grub_video_register): Removed.
706 (grub_video_unregister): Likewise.
707 (grub_video_iterate): Likewise.
709 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
711 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
712 reported by Henrique Ferreiro.
714 2010-06-09 Robert Millan <rmh@gnu.org>
716 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
717 ones, when both are available.
719 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
721 Make --version uniform and avoid hard-coded program name.
723 * util/grub-mkimage.c (main): Use `program_name' instead of
725 * util/i386/pc/grub-setup.c (main): Likewise.
726 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
727 * util/grub-install.in: Save the basename of $0 in $self, and use the
728 latter in informational messages. Use the same format for --version
729 as the binary programs.
730 * util/grub-mkconfig.in: Likewise.
731 * util/grub-mkrescue.in: Likewise.
732 * util/grub-reboot.in: Likewise.
733 * util/grub-set-default.in: Likewise.
734 * util/i386/efi/grub-install.in: Likewise.
735 * util/ieee1275/grub-install.in: Likewise.
736 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
738 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
740 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
741 embedding area. Use <= instead of == when checking for non-emptiness.
743 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
745 * configure.ac: Add `.' to the directories searched for unifont.
747 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
749 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
752 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
754 * docs/grub.texi (History): Expand to cover GRUB 2.
755 (Serial terminal): Refer to `terminal_input' and `terminal_output'
756 commands, not `terminal'.
758 (terminal_input): New section.
759 (terminal_output): New section.
760 (uppermem): New section (stub).
761 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
763 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
765 * docs/grub.texi (Security): Menu entries are unrestricted by
766 default, not restricted to superusers as I had previously thought.
767 Reword to account for this.
769 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
771 * kern/emu/misc.c (device_mapper_null_log): New function.
772 (grub_device_mapper_supported): New function.
773 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
775 * kern/emu/hostdisk.c (find_partition_start): Check whether
776 device-mapper is supported before trying to use it.
777 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
779 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
781 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
782 (File name syntax): Likewise.
783 (help): --all is no longer supported in GRUB 2. Be more precise
784 about pattern matching.
786 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
788 * normal/completion.c (grub_normal_do_completion): When completing
789 arguments to "set" and the current word contains an equals sign,
790 skip to after the equals sign before starting completion.
792 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
794 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
796 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
798 * docs/grub.texi (Network): New section.
799 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
800 `(nd)' as in GRUB Legacy.
801 (pxe_unload): New section.
803 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
805 * docs/grub.texi (Troubleshooting): `echo' is not usually available
806 in the rescue shell, so recommend using `set' instead. Thanks,
809 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
811 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
812 (password): New section.
813 (password_pbkdf2): New section.
814 (search): New section.
815 (Security): New section.
816 (Troubleshooting): New section, currently very incomplete.
817 (Invoking grub-mkpasswd-pbkdf2): New section.
818 (Internals): New section, currently very incomplete.
820 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
822 * util/grub.d/00_header.in: Add some more quoting (of
823 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
825 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
827 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
829 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
830 to `count', fixing variable shadowing that broke the -c option.
832 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
834 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
835 in case they contain spaces.
837 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
839 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
840 "part_" to partmap module names, in line with grub-install.
841 Reported by: Jindřich Makovička (Debian bug #584426).
843 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
845 * util/grub-mkimage.c: Make target-related error messages slightly
846 more helpful; -O talks about "format". Explicitly point to the use
847 of -O if no target is specified.
848 Reported by: Didier Raboud (Debian bug #584415).
850 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
852 * INSTALL: Document several build requirements for optional features
853 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
855 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
857 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
858 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
859 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
861 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
863 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
864 Thanks to Jordan Uggla for spotting this.
866 2010-06-02 Aleš Nesrsta <starous@volny.cz>
868 Finally make USB usable.
870 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
871 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
872 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
873 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
874 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
875 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
876 (GRUB_OHCI_FSMPS): Likewise.
877 (GRUB_OHCI_PERIODIC_START): Likewise.
878 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
879 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
880 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
881 (GRUB_OHCI_SET_PORT_RESET): Likewise.
882 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
883 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
884 (grub_ohci_transaction): Likewise.
885 (grub_ohci_transfer): Improve condition detection algorithms.
886 Handle toggle property. Program the transactions correctly.
887 Improve error handling. Various important fixups.
888 (grub_ohci_portstatus): Put register writes in right order.
889 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
890 (grub_uhci_transfer): Don't show "failed" message on success.
891 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
893 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
895 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
896 before initialization is completed. Use IN direction for empty
897 transfers. Use last_trans and compute toggle.
898 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
899 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
900 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
901 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
902 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
903 (grub_usb_device): Increase toggle to 256.
904 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
905 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
906 GRUB_USBMS_SUBCLASS_SFF8070.
907 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
908 (grub_scsi_inquiry): New member page and alloc_length.
909 (grub_scsi_request_sense): New structure.
910 (grub_scsi_request_sense_data): Likewise.
911 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
913 * disk/scsi.c (grub_scsi_request_sense): New function.
914 (grub_scsi_test_unit_ready): Likewise.
915 (grub_scsi_inquiry): Fill new fields.
916 (grub_scsi_read_capacity): Likewise.
917 (grub_scsi_read10): Add request sense at the end.
918 (grub_scsi_read12): Likewise.
919 (grub_scsi_write10): Likewise.
920 (grub_scsi_write12): Likewise.
921 (grub_scsi_open): Add Test Unit Ready.
922 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
923 Support additional subclasses. Con't clear halt yet. Activate the
924 proper config. Calculate LUNs correctly.
925 (grub_usbms_transfer): Various important fixups.
927 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
929 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
930 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
931 (grub_ohci_fini_hw): New function.
932 (grub_ohci_restore_hw): Likewise.
933 (GRUB_MOD_INIT(ohci)): Register preboot hook.
934 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
935 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
937 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
939 Dedicated DMA allocations.
941 * bus/pci.c (grub_memalign_dma32): New function
942 (grub_dma_free): Likewise.
943 (grub_dma_get_virt): Likewise.
944 (grub_dma_get_phys): Likewise.
945 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
946 (grub_ohci_pci_iter): Use dma32_alloc.
947 (grub_ohci_transfer): Likewise.
948 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
949 (grub_usb_bulk_readwrite): Likewise.
950 * include/grub/pci.h: Add declarations.
952 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
956 * bus/cs5536.c: New file.
957 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
958 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
959 (cs5536_mod_SOURCES): New variable.
960 (cs5536_mod_CFLAGS): Likewise.
961 (cs5536_mod_LDFLAGS): Likewise.
962 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
964 (kernel_img_SOURCES): Add bus/cs5536.c.
965 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
967 (usb_mod_SOURCES): New variable.
968 (usb_mod_CFLAGS): New variable.
969 (usb_mod_LDFLAGS): New variable.
970 (usbtest_mod_SOURCES): New variable.
971 (usbtest_mod_CFLAGS): New variable.
972 (usbtest_mod_LDFLAGS): New variable.
973 (ohci_mod_SOURCES): New variable.
974 (ohci_mod_CFLAGS): New variable.
975 (ohci_mod_LDFLAGS): New variable.
976 (usbms_mod_SOURCES): New variable.
977 (usbms_mod_CFLAGS): New variable.
978 (usbms_mod_LDFLAGS): New variable.
979 (usb_keyboard_mod_SOURCES): New variable.
980 (usb_keyboard_mod_CFLAGS): New variable.
981 (usb_keyboard_mod_LDFLAGS): New variable.
982 * include/grub/smbus.h: New file.
983 * include/grub/cs5536.h: New file.
985 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
987 * util/grub.d/00_header.in: Add safety check to make sure that
988 ${locale_dir} exists before trying to probe it.
990 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
992 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
993 per the GNU Coding Standards; this is now too obscure to be worth
996 (chainloader): Remove cross-reference to `SCO UnixWare'.
998 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1000 * docs/grub.texi (Chain-loading): New section.
1001 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1002 adjusted for GRUB 2.
1003 (SCO UnixWare): Likewise.
1005 (chainloader): Add reference to `Block list syntax'.
1006 (drivemap): New section.
1007 (parttool): New section.
1009 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1011 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1013 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1014 (Installing GRUB using grub-install): Remove reference to the grub
1015 shell; mention `grub-mkimage' and `grub-setup' instead.
1016 (Invoking grub-install): Likewise.
1017 (Interface): Add reference to `Menu entry editor'.
1018 (serial): Remove `--device' option.
1020 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1022 * docs/grub.texi (Configuration): New section, documenting
1023 configuration file generation using grub-mkconfig. I've left a slot
1024 for documenting the full shell scripting format but have not yet
1025 started on writing that up.
1026 (Invoking grub-mkconfig): New section.
1028 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1030 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1031 (GNU GRUB manual): Likewise.
1032 (General commands): Update description of `terminfo' for GRUB 2.
1034 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1036 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1037 (GRUB_MOD_INIT): Fix capitalisation.
1038 * docs/grub.texi (Command-line and menu entry commands): Document
1039 gettext and gptsync commands.
1041 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1043 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1044 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1046 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1048 Add btrfs probing support, currently only in the single-device case.
1050 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1052 (grub_guess_root_device): Call find_root_device_from_mountinfo
1053 before looking in /dev.
1055 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1057 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1058 GRUB_DISK_SIZE_UNKNOWN.
1059 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1061 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1063 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1064 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1065 corrupted or not synced properly.
1067 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1069 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1070 Reported by: Seth Goldberg.
1072 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1074 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1076 Reported by: Seth Goldberg.
1078 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1080 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1081 Reported by: Seth Goldberg.
1083 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1085 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1086 64-bit address as signed on MIPS.
1088 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1090 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1091 to the empty string.
1093 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1095 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1097 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1098 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1099 * kern/misc.c (__enable_execute_stack): Disable on
1102 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1104 Make grub-probe work with symbolic links under /dev/mapper as well
1105 as with real block devices. The Linux world seems to be (at best)
1106 in transition here, and GRUB shouldn't get caught in the middle.
1108 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1111 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1113 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1114 input files (in which case exit zero).
1116 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1118 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1119 return NULL for various reasons even if it has a maximum-length
1120 buffer: for example, there might be a symlink loop, or the path
1121 might exceed PATH_MAX. If this happens, return NULL.
1123 2010-05-27 Robert Millan <rmh@gnu.org>
1125 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1126 partmap module to handle cross-partmap setups.
1127 Reported by Orestes Mas. Gràcies!
1129 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1131 * util/grub-mkrescue.in: Initialise override_dir rather than
1132 assuming that it's unset or empty in the environment.
1134 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1136 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1137 variable index into p_index to suppress a warning with -Wshadow.
1139 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1141 * INSTALL: Added flex >= 2.5.35 requirement.
1143 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1145 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1147 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1151 * commands/i386/cmostest.c: New file.
1152 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1153 (cmostest_mod_SOURCES): New variable.
1154 (cmostest_mod_CFLAGS): Likewise.
1155 (cmostest_mod_LDFLAGS): Likewise.
1156 * conf/i386-pc.rmk: Likewise.
1157 * docs/grub.texi (Vendor power-on keys): New section.
1158 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1159 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1160 and GRUB_BUTTON_CMOS_ADDRESS.
1161 * util/grub.d/00_header.in: Handle powering-on by separate button.
1163 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1165 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1166 Removed drawing_scrollbar argument. All users updated
1168 Reported by Jo Shields
1170 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1172 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1173 buffer since gfxterm handles double repaint.
1175 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1177 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1178 * term/gfxterm.c (real_scroll): Likewise.
1180 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1182 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1183 before calling BIOS.
1185 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1187 * include/grub/i18n.h: Always enable grub_gettext.
1189 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1191 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1192 partition naming style.
1194 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1196 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1197 not the first option.
1199 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1201 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1203 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1205 * util/misc.c: Move inclusion of <limits.h> to ...
1206 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1208 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1210 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1211 Fix merge error in NetBSD code.
1212 (find_partition_start) [__NetBSD__]: Likewise.
1214 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1216 Fix grub-mkrescue usage unit testing.
1218 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1220 2010-05-18 Christian Franke <franke@computer.org>
1222 * util/grub.d/10_windows.in: Use path names instead of
1223 drive letters to prevent warning from Cygwin 1.7.
1224 Add drivemap command to menuentry if needed.
1226 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1228 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1229 gnumach and gnumach.gz.
1231 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1233 * include/grub/i18n.h (gettext): Inline instead of using #define.
1234 (grub_gettext): Likewise.
1237 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1239 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1240 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1241 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1242 (main): Add a slash after pkglibdirroot.
1244 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1246 * util/grub-install.in: Add missing "in" keyword.
1248 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1250 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1251 Reported by: Seth Goldberg.
1253 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1255 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1257 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1259 * configure.ac: Check for Linux device-mapper support.
1261 * util/hostdisk.c (device_is_mapped): New function.
1262 (find_partition_start): New function, partly broken out from
1263 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1264 device-mapper support added.
1265 (linux_find_partition): Use find_partition_start.
1266 (convert_system_partition_to_system_disk): Add `st' argument.
1267 Support Linux /dev/mapper/* devices if device-mapper support is
1268 available; only DM-RAID devices are understood at present.
1269 (find_system_device): Add `st' argument. Pass it to
1270 convert_system_partition_to_system_disk.
1271 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1272 find_system_device and convert_system_partition_to_system_disk. Use
1273 find_partition_start.
1275 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1276 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1277 * util/deviceiter.c [__linux__]: Define MINOR.
1278 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1279 * util/mkdevicemap.c (grub_putchar): New function.
1280 (grub_getkey): New function.
1281 (grub_refresh): New function.
1282 (main): Set debug=all if -v -v is used.
1284 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1286 Fix build with non-GNU libcs.
1288 * util/misc.c (canonicalize_file_name): Move to ...
1289 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1290 grub_make_system_path_relative_to_its_root.
1292 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1294 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1295 we handle finding grub-mkimage. Default to finding grub-mkimage in
1296 ${bindir} with program_transform_name applied, and provide a
1297 --grub-mkimage option to override this.
1299 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1301 Remove grub-mkisofs.
1303 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1304 (grub_mkisofs_SOURCES): Removed.
1305 (grub_mkisofs_CFLAGS): Removed.
1306 * util/mkisofs/defaults.h: Removed.
1307 * util/mkisofs/eltorito.c: Likewise.
1308 * util/mkisofs/exclude.h: Likewise.
1309 * util/mkisofs/hash.c: Likewise.
1310 * util/mkisofs/include/: Likewise.
1311 * util/mkisofs/include/fctldefs.h: Likewise.
1312 * util/mkisofs/include/mconfig.h: Likewise.
1313 * util/mkisofs/include/prototyp.h: Likewise.
1314 * util/mkisofs/include/statdefs.h: Likewise.
1315 * util/mkisofs/iso9660.h: Likewise.
1316 * util/mkisofs/joliet.c: Likewise.
1317 * util/mkisofs/match.c: Likewise.
1318 * util/mkisofs/match.h: Likewise.
1319 * util/mkisofs/mkisofs.c: Likewise.
1320 * util/mkisofs/mkisofs.h: Likewise.
1321 * util/mkisofs/msdos_partition.h: Likewise.
1322 * util/mkisofs/multi.c: Likewise.
1323 * util/mkisofs/name.c: Likewise.
1324 * util/mkisofs/rock.c: Likewise.
1325 * util/mkisofs/tree.c: Likewise.
1326 * util/mkisofs/write.c: Likewise.
1328 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1330 Unify grub-mkimage accross platforms.
1332 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1333 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1334 (grub_mkelfimage_SOURCES): Removed.
1335 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1336 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1337 (bin_UTILITIES): Add grub-mkimage.
1338 (grub_mkimage_SOURCES): New variable.
1339 (kernel_img_HEADERS): Remove machine/kernel.h.
1340 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1341 (pkglib_PROGRAMS): Add kernel.img.
1342 (kernel_img_HEADERS): Add machine/kernel.h.
1343 (kernel_img_FORMAT): Removed.
1344 (bin_UTILITIES): Remove grub-mkimage.
1345 (grub_mkimage_SOURCES): Removed.
1346 (grub_mkimage_CFLAGS): Likewise.
1347 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1348 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1349 (pkglib_PROGRAMS): Add kernel.img.
1350 (bin_UTILITIES): Remove grub-mkimage.
1351 (grub_mkimage_SOURCES): Removed.
1352 (grub_mkimage_CFLAGS): Likewise.
1353 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1354 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1355 (pkglib_PROGRAMS): Add kernel.img.
1356 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1357 (pkglib_PROGRAMS): Add kernel.img.
1358 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1359 (grub_mkimage_SOURCES): Removed.
1360 (grub_mkimage_CFLAGS): Likewise.
1361 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1362 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1363 (pkglib_PROGRAMS): Add kernel.img.
1364 (bin_UTILITIES): Remove grub-mkimage.
1365 (grub_mkimage_SOURCES): Removed.
1366 (grub_mkimage_CFLAGS): Likewise.
1367 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1368 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1369 (grub_mkimage_SOURCES): Removed.
1370 (grub_mkimage_CFLAGS): Likewise.
1371 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1372 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1373 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1374 (grub_pe32_optional_header): ... this.
1375 (grub_pe64_optional_header): ... and this. All users updated.
1376 (GRUB_PE32_PE32_MAGIC): Split into ..
1377 (GRUB_PE32_PE32_MAGIC): .. this.
1378 (GRUB_PE32_PE64_MAGIC): .. and this.
1379 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1380 * include/grub/elf.h (PT_GNU_STACK): New definition.
1381 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1382 * include/grub/i386/efi/kernel.h: Likewise.
1383 * include/grub/i386/kernel.h: Likewise.
1384 * include/grub/i386/pc/kernel.h: Likewise.
1385 * include/grub/i386/qemu/boot.h: Likewise.
1386 * include/grub/mips/kernel.h: Likewise.
1387 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1388 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1389 * include/grub/powerpc/kernel.h: Likewise.
1390 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1391 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1392 * include/grub/sparc64/kernel.h: Likewise.
1393 * include/grub/x86_64/efi/kernel.h: Likewise.
1394 * include/grub/x86_64/kernel.h: Likewise.
1395 * include/grub/offsets.h: New file.
1396 * include/grub/kernel.h (grub_module_info): Split into ...
1397 (grub_module_info32): ... this.
1398 (grub_module_info64): ... and this.
1399 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1400 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1401 (grub_boot_blocklist): Moved from here ...
1402 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1403 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1404 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1405 * include/grub/types.h (grub_target_to_host16): Removed.
1406 (grub_target_to_host32): Likewise.
1407 (grub_target_to_host64): Likewise.
1408 (grub_host_to_target16): Likewise.
1409 (grub_host_to_target32): Likewise.
1410 (grub_host_to_target64): Likewise.
1411 (grub_host_to_target_addr): Likewise.
1413 Support grub-mkrescue for efi, coreboot and qemu.
1415 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1416 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1417 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1418 * util/grub-mkrawimage.c: Moved from here ...
1419 * util/grub-mkimage.c: ... here. All users updated.
1420 (ALIGN_ADDR): Use image_target.
1421 (TARGET_NO_FIELD): New const.
1422 (image_target_desc): New type.
1423 (image_targets): New array.
1424 (grub_target_to_host64): Use image_target.
1425 (grub_target_to_host32): Likewise.
1426 (grub_target_to_host16): Likewise.
1427 (grub_host_to_target64): Likewise.
1428 (grub_host_to_target32): Likewise.
1429 (grub_host_to_target16): Likewise.
1430 (grub_host_to_target_addr): Likewise.
1431 (generate_image): Handle multiimage.
1432 (main): Require -O parameter. All users updated.
1433 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1434 util/efi/grub-mkimage.c
1435 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1436 New option --rom-directory.
1438 * util/i386/efi/grub-mkimage.c: Removed.
1439 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1440 (grub_target_to_host32): Likewise.
1441 (grub_target_to_host64): Likewise.
1442 (grub_host_to_target16): Likewise.
1443 (grub_host_to_target32): Likewise.
1444 (grub_host_to_target64): Likewise.
1445 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1446 (grub_target_to_host32): Likewise.
1447 (grub_target_to_host64): Likewise.
1448 (grub_host_to_target16): Likewise.
1449 (grub_host_to_target32): Likewise.
1450 (grub_host_to_target64): Likewise.
1452 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1454 Source tree is reorganized for emu build.
1456 * include/grub/util/console.h: Move from here...
1457 * include/grub/emu/console.h: ...to here.
1458 * include/grub/util/getroot.h: Move from here...
1459 * include/grub/emu/getroot.h: ...to here.
1460 * include/grub/util/hostdisk.h: Move from here...
1461 * include/grub/emu/hostdisk.h: ...to here.
1462 * util/console.c: Move from here...
1463 * kern/emu/console.c: ...to here.
1464 * util/getroot.c: Move from here...
1465 * kern/emu/getroot.c: ...to here.
1466 * util/grub-emu.c: Move from here...
1467 * kern/emu/main.c: ...to here.
1468 * util/hostdisk.c: Move from here...
1469 * kern/emu/hostdisk.c: ...to here.
1470 * util/hostfs.c: Move from here...
1471 * kern/emu/hostfs.c: ...to here.
1472 * util/mm.c: Move from here...
1473 * kern/emu/mm.c: ...to here.
1474 * util/pci.c: Move from here...
1475 * bus/emu/pci.c: ...to here.
1476 * util/sdl.c: Move from here...
1477 * video/emu/sdl.c: ...to here.
1478 * util/time.c: Move from here...
1479 * kern/emu/time.c: ...to here.
1480 * util/usb.c: Move from here...
1481 * bus/usb/emu/usb.c: ...to here.
1483 * include/grub/emu/misc.h: New header for grub-emu functions.
1484 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1486 * conf/any-emu.rmk: Rule updates for above renames.
1487 * conf/common.rmk: Likewise.
1488 * conf/i386-pc.rmk: Likewise.
1489 * conf/i386-qemu.rmk: Likewise.
1490 * conf/mips.rmk: Likewise.
1491 * conf/sparc64-ieee1275.rmk: Likewise.
1492 * conf/x86-efi.rmk: Likewise.
1494 * disk/lvm.h: #include updates for above renames.
1495 * util/grub-mkrelpath.c: Likewise.
1496 * util/grub-probe.c: Likewise.
1497 * util/i386/pc/grub-setup.c: Likewise.
1498 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1499 * kern/emu/console.c: Likewise.
1500 * kern/emu/getroot.c: Likewise.
1501 * kern/emu/hostdisk.c: Likewise.
1502 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1504 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1505 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1506 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1507 * util/misc.c: Remove grub-emu functions.
1509 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1512 Reported by: Thorsten Grützmacher.
1514 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1516 (circprog_set_property): Register and unregister timeout hook.
1517 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1518 (label_destroy): Free template. and unregister hook.
1519 (label_set_state): New function.
1520 (label_set_property): Handle templates and hooks.
1521 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1523 (progress_bar_set_property): Register and unregister timeout hook.
1524 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1525 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1526 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1527 (update_timeout_visit): Removed.
1528 (update_timeouts): New function.
1529 (redraw_timeouts): Likewise.
1530 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1531 (grub_gfxmenu_clear_timeout): Likewise.
1532 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1533 (grub_gfxmenu_timeout_notify): Likewise.
1534 (grub_gfxmenu_timeout_notifications): New external variable.
1535 (grub_gfxmenu_timeout_register): New function.
1536 (grub_gfxmenu_timeout_unregister): Likewise.
1538 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1540 Transform (broken) vga terminal into (working) vga video driver.
1542 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1543 video/i386/pc/vga.c.
1544 * include/grub/video.h (grub_video_driver_id):
1545 Add GRUB_VIDEO_DRIVER_VGA.
1546 * term/i386/pc/vga.c: Renamed to ...
1547 * video/i386/pc/vga.c: ...this
1548 (DEBUG_VGA): Removed.
1549 (CHAR_WIDTH): Likewise.
1550 (CHAR_HEIGHT): Likewise.
1551 (TEXT_WIDTH): Likewise.
1552 (TEXT_HEIGHT): Likewise.
1553 (DEFAULT_FG_COLOR): Likewise.
1554 (DEFAULT_BG_COLOR): Likewise.
1555 (colored_char): Likewise.
1558 (cursor_state): Likewise.
1559 (fg_color): Likewise.
1560 (bg_color): Likewise.
1561 (text_buf): Likewise.
1564 (framebuffer): New variable.
1565 (set_read_map): Disabled.
1566 (setup): New variable.
1567 (is_target): Likewise.
1568 (grub_vga_mod_init): Likewise.
1569 (grub_vga_mod_fini): Likewise.
1570 (check_vga_mem): Likewise.
1571 (write_char): Likewise.
1572 (write_cursor): Likewise.
1573 (scroll_up): Likewise.
1574 (grub_vga_putchar): Likewise.
1575 (grub_vga_getcharwidth): Likewise.
1576 (grub_vga_getwh): Likewise.
1577 (grub_vga_getxy): Likewise.
1578 (grub_vga_gotoxy): Likewise.
1579 (grub_vga_cls): Likewise.
1580 (grub_vga_setcolorstate): Likewise.
1581 (grub_vga_setcursor): Likewise.
1582 (grub_video_vga_init): New function.
1583 (grub_video_vga_setup): Likewise.
1584 (grub_video_vga_fini): Likewise.
1585 (update_target): Likewise.
1586 (grub_video_vga_blit_bitmap): Likewise.
1587 (grub_video_vga_blit_render_target): Likewise.
1588 (grub_video_vga_set_active_render_target): Likewise.
1589 (grub_video_vga_get_active_render_target): Likewise.
1590 (grub_video_vga_swap_buffers): Likewise.
1591 (grub_video_vga_set_palette): Likewise.
1592 (grub_video_vga_get_info_and_fini): Likewise.
1593 (grub_vga_term): Removed.
1594 (grub_video_vga_adapter): New variable.
1595 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1596 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1598 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1600 * video/readers/jpeg.c: Indented.
1602 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1604 Various jpeg cleanups.
1606 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1607 (grub_jpeg_decode_quan_table): Use sizeof.
1608 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1610 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1612 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1613 tables. Ignore non-last ac bit.
1614 (grub_jpeg_decode_quan_table): Likewise.
1616 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1618 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1619 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1620 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1621 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1622 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1623 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1625 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1627 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1630 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1632 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1634 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1636 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1639 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1641 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1644 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1646 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1649 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1651 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1653 2010-05-01 Christian Franke <franke@computer.org>
1655 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1656 Remove broken Cygwin path conversion.
1657 * util/misc.c: [__CYGWIN__] Add include and define.
1658 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1660 (make_system_path_relative_to_its_root): Simplify loop, replace early
1662 [__CYGWIN__] Add conversion to win32 path.
1663 Include "/" case in trailing slash removal.
1665 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1667 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1668 Reported by: Seth Goldberg
1670 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1672 * commands/help.c (grub_cmd_help): Fix a typo.
1673 Reported by: Seth Goldberg
1675 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1677 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1679 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1680 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1681 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1682 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1683 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1684 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1685 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1686 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1687 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1688 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1689 * normal/context.c (GRUB_MOD_INIT): Likewise.
1690 * normal/main.c (GRUB_MOD_INIT): Likewise.
1691 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1692 * term/serial.c (GRUB_MOD_INIT): Likewise.
1693 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1695 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1697 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1700 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1702 * commands/iorw.c: New file.
1703 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1704 (iorw_mod_SOURCES): New variable.
1705 (iorw_mod_CFLAGS): Likewise.
1706 (iorw_mod_LDFLAGS): Likewise.
1708 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1712 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1713 * normal/main.c (hotkey_aliases): New variable.
1714 (grub_normal_add_menu_entry): Parse "--hotkey".
1715 * normal/menu_text.c (run_menu): Handle hotkeys.
1717 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1719 * kern/i386/coreboot/init.c (grub_machine_init): Call
1720 grub_machine_mmap_init on qemu.
1722 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1724 * boot/i386/qemu/boot.S: Add a missing .code16.
1726 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1728 Use LBIO on coreboot.
1730 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1731 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1732 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1734 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1735 grub_machine_mmap_init on coreboot.
1736 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1737 GRUB_LINUXBIOS_MEMBER_LINK.
1738 (grub_machine_mmap_iterate): Fix declaration.
1739 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1741 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1743 Split coreboot and multiboot ports.
1745 * conf/i386-multiboot.rmk: New file.
1746 * configure.ac: Add multiboot port.
1747 * include/grub/i386/multiboot/boot.h: New file.
1748 * include/grub/i386/multiboot/console.h: Likewise.
1749 * include/grub/i386/multiboot/init.h: Likewise.
1750 * include/grub/i386/multiboot/kernel.h: Likewise.
1751 * include/grub/i386/multiboot/loader.h: Likewise.
1752 * include/grub/i386/multiboot/memory.h: Likewise.
1753 * include/grub/i386/multiboot/serial.h: Likewise.
1754 * include/grub/i386/multiboot/time.h: Likewise.
1755 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1756 * loader/multiboot.c: Likewise.
1757 * loader/multiboot_mbi2.c: Likewise.
1758 * util/grub-mkrescue.in: Generate multiboot rescue.
1760 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1762 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1764 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1766 Merge handling of input and output terminals. Fix a hang.
1768 * commands/terminal.c (abstract_terminal): New struct.
1769 (handle_command): New function. Based on grub_cmd_terminal_input.
1770 (grub_cmd_terminal_input): Use handle_command.
1771 (grub_cmd_terminal_output): Use handle_command.
1773 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1775 Fix comment handling.
1777 * tests/grub_script_comments.in: New testcase.
1778 * conf/tests.rmk: Rules for new testcase.
1779 * script/yylex.l: Updated flex rules.
1781 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1783 * docs/grub.texi (play): Document that zero pitches produce rests.
1784 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1787 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1789 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1792 2010-04-26 Christian Franke <franke@computer.org>
1794 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1795 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1796 (grub_get_prefix): Remove function.
1797 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1798 make_system_path_relative_to_its_root ().
1799 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1801 2010-04-24 Christian Franke <franke@computer.org>
1803 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1804 (kernel_img_LDFLAGS): Remove -static-libgcc.
1806 2010-04-24 Christian Franke <franke@computer.org>
1808 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1809 and CHECK_END_SYMBOL if grub-emu is built.
1810 Unset TARGET_OBJ2ELF if grub-emu is built
1811 without module support.
1813 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1817 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1818 (grub_fstest_SOURCES): Likewise.
1819 (pkglib_MODULES): Add nilfs2.mod.
1820 (nilfs2_mod_SOURCES): New variable.
1821 (nilfs2_mod_CFLAGS): Likewise.
1822 (nilfs2_mod_LDFLAGS): Likewise.
1823 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1824 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1825 * fs/nilfs2.c: New file.
1827 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1829 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1832 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1834 Add grub-mkconfig support for NetBSD.
1836 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1837 * util/grub-mkconfig.in: export new NetBSD specific variables.
1838 * po/POTFILES-shell: added 10_netbsd.in.
1839 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1841 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1843 Fix emu build with grub-emu-pci and grub-emu-modules.
1845 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1847 * include/grub/libpciaccess.h: New file.
1848 * conf/any-emu.rmk: Update kernel headers for emu build.
1850 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1852 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1854 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1856 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1858 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1860 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1861 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1862 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1863 util/ieee1275/ofpath.c.
1864 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1865 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1866 * include/grub/sparc64/ieee1275/boot.h
1867 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1868 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1869 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1870 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1872 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1873 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1874 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1877 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1879 * util/grub-mkconfig.in: Corrected two == equality tests.
1880 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1881 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1882 expect a number appended to it.
1883 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1884 expects a number appended to it.
1886 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1888 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1890 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1892 * util/hostdisk.c (make_device_name): Change to new partition naming.
1894 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1896 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1898 2010-04-17 Christian Franke <franke@computer.org>
1900 * Makefile.in: Add missing localedir setting.
1902 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1904 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1905 mistake in r2156. Noticed by Anthony Fok.
1907 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1909 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1911 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1913 Fix a spurious, uninitialized variable warning.
1915 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1916 Initialize variable, shdr.
1917 (grub_freebsd_load_elfmodule): Likewise.
1918 (grub_freebsd_load_elf_meta): Likewise.
1920 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1922 Fix for escaped dollar in double quoted strings.
1924 * script/yylex.l: Updated flex rules.
1925 * conf/tests.rmk: Rule for new testcase.
1926 * tests/grub_script_dollar.in: New testcase.
1928 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1929 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1931 Enclose all translated strings in grub.cfg in single quotes, and
1932 escape them appropriately (Ubuntu bug #552921).
1934 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1935 * util/grub.d/10_hurd.in: Use it.
1936 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1937 * util/grub.d/10_linux.in (linux_entry): Likewise.
1939 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1941 Fix cygwin compilation.
1943 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1944 * include/grub/misc.h (__register_frame_info)
1945 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1946 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1947 * kern/misc.c (__register_frame_info)
1948 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1949 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1951 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1953 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1955 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1957 Unify libgcc processing.
1959 * Makefile.in (kernel_img_LDFLAGS): New variable.
1960 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1961 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1963 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1964 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1965 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1966 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1967 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1968 overwriting. Remove -lgcc and -static-libgcc
1969 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1970 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1971 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1972 (kernel_img_LDFLAGS): Append instead of overwriting.
1973 Remove -lgcc and -static-libgcc
1974 * conf/sparc64-ieee1275.rmk: Likewise.
1975 * include/grub/powerpc/libgcc.h: Move to ...
1976 * include/grub/libgcc.h: .. this.
1977 * include/grub/libgcc.h: Don't export most of the function on x86.
1978 (__bswapsi2): New export.
1979 (__bswapdi2): Likewise.
1980 * include/grub/mips/libgcc.h: Removed.
1981 * include/grub/sparc64/libgcc.h: Likewise.
1983 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1985 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1986 disk_info_msg (conflicts with gettexting into languages with cases).
1988 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1990 Add grub-probe support for NetBSD.
1992 * util/getroot.c (find_root_device): Convert block device to
1993 character device on NetBSD.
1994 * util/probe.c (probe): Require character device on NetBSD.
1995 * util/hostdisk.c: NetBSD specific headers.
1996 (configure_device_driver): new function to tune device driver
1997 parameters (currently only for NetBSD floppy driver).
1998 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1999 via disklabel ioctl).
2000 (open_device): call configure_device_driver on NetBSD.
2001 (convert_system_partition_to_system_disk): NetBSD specific code.
2002 (device_is_wholedisk): Likewise.
2003 (grub_util_biosdisk_get_grub_dev): Likewise.
2004 (make_device_name): Fixed a typo in bsd_part_str.
2005 * configure.ac: check for opendisk() and getrawpartition() on
2006 NetBSD and set LIBUTIL.
2007 * Makefile.in: add LIBUTIL to LIBS.
2009 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2013 * util/grub-script-check.c: Better help message.
2015 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2019 * configure.ac: Flex version check.
2020 * conf/common.rmk: Add -Wno-error to sh.mod.
2021 * script/yylex.l: Remove all #pragma.
2023 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2025 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2027 Reported by: Seth Goldberg.
2029 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2031 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2032 Rename "module" to "module2".
2033 Reported by: Seth Goldberg.
2035 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2037 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2039 Reported by: Seth Goldberg.
2041 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2043 * lib/posix_wrap/locale.h: Add missing file.
2044 Reported by: Seth Goldberg.
2046 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2048 grub-emu module load support.
2050 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2051 NO_DYNAMIC_MODULES switched to this.
2052 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2054 * conf/any-emu.rmk: Generate symlist.
2055 (kernel_img_HEADERS): Add util/datetime.h.
2056 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2057 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2058 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2059 kern/$(target_cpu)/cache.S.
2060 * configure.ac (grub-emu-modules): New option.
2061 * genmk.rb: Handle multiple source lists.
2062 * include/grub/sdl.h: New file.
2063 * include/grub/libusb.h: Likewise.
2064 * util/grub-emu.c (main): Hanle (host) root.
2065 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2066 GRUB_ERR_UNKNOWN_DEVICE.
2067 * util/misc.c: Move mm functions to ...
2068 * util/mm.c: ... here. All users updated.
2070 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2072 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2073 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2075 (maintainer-clean): Remove libgcrypt-grub.
2077 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2079 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2081 2010-04-09 EFI Coder <eficoder@hotmail.com>
2083 * normal/menu_text.c (print_message): Clean up the message and show
2084 the Fn information when on EFI
2085 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2087 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2089 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2091 * normal/crypto.c (read_crypto_list): Likewise.
2092 * normal/dyncmd.c (read_command_list): Likewise.
2093 * normal/term.c (read_terminal_list): Likewise.
2094 * normal/main.c (read_lists): Use explicit prefix.
2095 (read_lists_hook): Use read_lists.
2096 (grub_normal_execute): Likewise.
2098 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2100 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2101 Reported by: Thomas Schmitt.
2102 Add -no-emul-boot to grub-mkisofs parameters.
2104 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2106 * font/font.c: Indented.
2108 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2110 Elif support to GRUB script (by Deepak Vankadaru).
2112 * tests/grub_script_if.in: New testcase.
2113 * conf/tests.rmk: Rule for new testcase.
2114 * script/parser.y: Grammar rules for elif.
2116 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2118 While and until loops support to GRUB script.
2120 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2121 (grub_script_create_cmdwhile): New function prototype.
2122 (grub_script_execute_cmdwhile): New function prototype.
2123 * script/execute.c (grub_script_execute_cmdwhile): New function.
2124 * script/parser.y (command): New commands.
2125 (whilecmd): New grammar rule.
2126 (untilcmd): New grammar rule.
2127 * script/script.c (grub_script_create_cmdwhile): New function.
2128 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2131 * tests/grub_script_while1.in: New testcase.
2132 * conf/tests.rmk: Rule for new testcase.
2134 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2136 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2139 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2141 GRUB_BACKGROUND support.
2143 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2144 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2146 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2148 Load fonts and modules for gfxmenu in grub-mkconfig.
2149 Idea by: Mario Vazquez
2151 * util/grub.d/00_header.in: Load pf2 and image modules.
2153 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2155 grub-mkconfig multiple terminal support.
2157 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2158 * util/grub.d/00_header.in: Likewise.
2160 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2162 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2163 we use cd $(srcdir).
2165 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2167 * util/grub.d/10_linux.in: Only use the first word of
2168 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2169 spaces in GRUB_DISTRIBUTOR.
2170 * util/grub.d/10_kfreebsd.in: Likewise.
2171 * util/grub.d/10_hurd.in: Likewise.
2173 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2175 Fix unit testing framework for Qemu 0.12.
2177 * tests/util/grub-shell.in: Remove -serial stdio option.
2179 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2181 POSIX header file wrappers.
2183 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2185 * lib/posix_wrap/ctype.h: Likewise.
2186 * lib/posix_wrap/errno.h: Likewise.
2187 * lib/posix_wrap/langinfo.h: Likewise.
2188 * lib/posix_wrap/limits.h: Likewise.
2189 * lib/posix_wrap/localcharset.h: Likewise.
2190 * lib/posix_wrap/stdint.h: Likewise.
2191 * lib/posix_wrap/stdio.h: Likewise.
2192 * lib/posix_wrap/stdlib.h: Likewise.
2193 * lib/posix_wrap/string.h: Likewise.
2194 * lib/posix_wrap/sys/types.h: Likewise.
2195 * lib/posix_wrap/unistd.h: Likewise.
2196 * lib/posix_wrap/wchar.h: Likewise.
2197 * lib/posix_wrap/wctype.h: Likewise.
2198 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2199 (grub_script.yy.h): Likewise.
2200 * script/yylex.l: Remove POSIX emulation #defines.
2201 * Makefile.in (POSIX_CFLAGS): New variable.
2202 (GNULIB_UTIL_CFLAGS): Likewise.
2206 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2207 (regexp_mod_SOURCES): New variable.
2208 (regexp_mod_CFLAGS): Likewise.
2209 (regexp_mod_LDFLAGS): Likewise.
2210 * commands/regexp.c: New file.
2211 * gnulib/regcomp.c: New file. Imported from gnulib.
2212 * gnulib/regex.c: Likewise.
2213 * gnulib/regex_internal.c: Likewise.
2214 * gnulib/regex_internal.h: Likewise.
2215 * gnulib/regexec.c: Likewise.
2216 * gnulib/regex.h: Likewise.
2218 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2220 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2221 unsupported video mode types.
2223 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2225 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2227 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2229 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2230 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2232 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2234 Remove unused grub_vga_get_font.
2236 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2237 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2239 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2241 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2242 * include/grub/misc.h: Likewise.
2244 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2246 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2247 for which failure is fatal.
2249 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2251 * util/grub-install.in: Use mkdir -p to create grub directory.
2252 * util/i386/efi/grub-install.in: Likewise.
2253 * util/ieee1275/grub-install.in: Likewise.
2255 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2257 * Makefile.in (LEX): new variable.
2259 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2261 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2262 `=' and added double quotes on operands of this equality test.
2264 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2266 * Makefile.in (uninstall): Remove a leftover debug echo.
2267 Reported by: Grégoire Sutre
2269 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2271 MIPS multiboot2 support.
2273 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2274 (multiboot2_mod_SOURCES): New variable.
2275 (multiboot2_mod_CFLAGS): Likewise.
2276 (multiboot2_mod_LDFLAGS): Likewise.
2277 (multiboot2_mod_ASFLAGS): Likewise.
2278 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2280 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2281 (MULTIBOOT_MBI_REGISTER): Likewise.
2282 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2283 (MULTIBOOT_ELF32_MACHINE): Likewise.
2284 (MULTIBOOT_ELF64_MACHINE): Likewise.
2285 * include/grub/mips/multiboot.h: New file.
2286 * include/grub/video.h (grub_video_driver_id): New type
2287 GRUB_VIDEO_DRIVER_SM712.
2288 (grub_video_get_info_and_fini): Export.
2289 (grub_video_get_palette): Likewise.
2290 (grub_video_get_driver_id): Likewise.
2291 * include/multiboot2.h: Resynced with spec.
2292 * loader/i386/multiboot.c: Moved from here ...
2293 * loader/multiboot.c: ... here. All users updated.
2294 (grub_multiboot_boot): Use platform-specific macros.
2295 * loader/i386/multiboot_elfxx.c: Moved from here ...
2296 * loader/multiboot_elfxx.c: ... here. All users updated.
2297 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2298 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2299 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2301 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2303 Import gnulib argp module.
2305 * gnulib/argp-ba.c: New file.
2306 * gnulib/argp-eexst.c: Likewise.
2307 * gnulib/argp-fmtstream.c: Likewise.
2308 * gnulib/argp-fmtstream.h: Likewise.
2309 * gnulib/argp-fs-xinl.c: Likewise.
2310 * gnulib/argp-help.c: Likewise.
2311 * gnulib/argp-namefrob.h: Likewise.
2312 * gnulib/argp-parse.c: Likewise.
2313 * gnulib/argp-pin.c: Likewise.
2314 * gnulib/argp-pv.c: Likewise.
2315 * gnulib/argp-pvh.c: Likewise.
2316 * gnulib/argp-version-etc.c: Likewise.
2317 * gnulib/argp-version-etc.h: Likewise.
2318 * gnulib/argp-xinl.c: Likewise.
2319 * gnulib/argp.h: Likewise.
2321 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2323 * kern/device.c (grub_device_iterate): Clear errors after failed
2326 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2328 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2329 returned by firmware.
2331 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2333 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2334 compilation on coreboot and qemu
2336 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2338 * include/multiboot2.h: Resync with spec.
2340 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2342 Multiboot2 tag support
2344 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2345 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2346 Remove loader/multiboot_loader.c.
2347 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2348 (grub_multiboot2_real_boot): Likewise.
2349 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2350 (grub_get_multiboot_mmap_count): New proto.
2351 (grub_fill_multiboot_mmap): Likewise.
2352 (grub_multiboot_set_video_mode): Likewise.
2353 (grub_multiboot_set_console): Likewise.
2354 (grub_multiboot_load): Likewise.
2355 (grub_multiboot_load_elf): Likewise.
2356 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2357 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2358 * include/multiboot.h: Resynced with specification.
2359 * include/multiboot2.h: Resynced with specification.
2360 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2361 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2362 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2363 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2365 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2366 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2367 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2369 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2371 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2372 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2374 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2375 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2376 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2378 * loader/i386/multiboot_mbi2.c: New file.
2380 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2384 * Makefile.in (GNULIB_CFLAGS): New variable.
2385 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2386 (grub_script_check_CFLAGS): New variable.
2387 * gnulib/alloca.h: Resync with gnulib.
2388 * gnulib/error.c: Likewise.
2389 * gnulib/error.h: Likewise.
2390 * gnulib/fnmatch.c: Likewise.
2391 * gnulib/fnmatch_loop.c: Likewise.
2392 * gnulib/getdelim.c: Likewise.
2393 * gnulib/getline.c: Likewise.
2394 * gnulib/getopt.c: Likewise.
2395 * gnulib/getopt1.c: Likewise.
2396 * gnulib/getopt_int.h: Likewise.
2397 * gnulib/gettext.h: Likewise.
2398 * gnulib/progname.c: Likewise.
2399 * gnulib/progname.h: Likewise.
2401 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2403 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2404 which is the case with --disabled-nls.
2406 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2407 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2408 * util/misc.c: Likewise.
2409 * util/mkisofs/mkisofs.c: Likewise.
2410 * util/mkisofs/mkisofs.h: Likewise.
2412 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2414 Simplify Apple CC support.
2416 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2417 Add 0 byte at the end not to have a symbol with empty target.
2418 * mmap/i386/pc/mmap_helper.S: Likewise.
2419 * genmk.rb: Ignore errors 2030 and 2050.
2420 * kern/i386/pc/startup.S: Use LOCAL when possible.
2422 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2424 Testcase and the fix for final semicolon on cmdline.
2426 * tests/grub_script_final_semicolon.in: New testcase.
2427 * conf/tests.rmk: Rules for the new testcase.
2428 * script/parser.y: Grammar fix.
2430 2010-03-26 BVK Chaitanya <bvk@localhost>
2432 Blank lines testcase for GRUB script.
2434 * tests/grub_script_blanklines.in: New testcase.
2435 * conf/tests.rmk: Rules for the new testcase.
2437 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2441 * genmk.rb: Add -DGRUB_FILE to all C targets.
2442 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2443 * include/grub/list.h: Likewise.
2444 * include/grub/misc.h: Likewise.
2445 * include/grub/mm.h: Likewise.
2446 * include/grub/test.h: Likewise.
2447 * kern/mm.c: Likewise.
2448 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2450 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2452 Sunpc partitions support.
2454 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2455 (grub_fstest_SOURCES): Likewise.
2456 (pkglib_MODULES): Add part_sunpc.mod.
2457 (part_sunpc_mod_SOURCES): New variable.
2458 (part_sunpc_mod_CFLAGS): Likewise.
2459 (part_sunpc_mod_LDFLAGS): Likewise.
2460 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2461 * partmap/sunpc.c: New file.
2463 2010-03-26 BVK Chaitanya <bvk@localhost>
2465 For loop support to GRUB script.
2467 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2468 (grub_script_create_cmdfor): New function prototype.
2469 (grub_script_execute_cmdfor): New function prototype.
2470 * script/execute.c (grub_script_execute_cmdfor): New function.
2471 * script/parser.y (command): New for command.
2472 (forcmd): New grammar rule.
2473 * script/script.c (grub_script_create_cmdfor): New function.
2474 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2476 * tests/grub_script_for1.in: New testcase.
2477 * conf/tests.rmk: Rules for new testcase.
2479 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2483 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2484 'partition' is NULL, grub_partition_get_start already does that.
2485 * commands/loadenv.c (check_blocklists): Likewise.
2486 (write_blocklists): Likewise.
2487 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2488 (grub_fstest_SOURCES): Likewise.
2489 (pkglib_MODULES): Add part_bsd.mod.
2490 (part_bsd_mod_SOURCES): New variable.
2491 (part_bsd_mod_CFLAGS): Likewise.
2492 (part_bsd_mod_LDFLAGS): Likewise.
2493 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2494 (grub_emu_SOURCES): Likewise.
2495 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2496 * include/grub/bsdlabel.h: New file.
2497 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2499 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2500 (grub_partition_map_list): New variable.
2501 (grub_partition_map_register): Inline.
2502 (grub_partition_map_unregister): Likewise.
2503 (FOR_PARTITION_MAPS): New macro.
2504 (grub_partition_map_iterate): Removed.
2505 (grub_partition_get_start): Handle nested partitions.
2506 * include/grub/msdos_partition.h: Remove bsd-related entries.
2507 (grub_pc_partition): Remove.
2508 * kern/disk.c (grub_disk_close): Free partition data.
2509 (grub_disk_adjust_range): Handle nested partitions.
2510 * kern/partition.c (grub_partition_map_probe): New function.
2511 (grub_partition_probe): Parse name to number, handle subpartitions.
2512 (get_partmap): New function.
2513 (grub_partition_iterate): Handle subpartitions.
2514 (grub_partition_get_name): Likewise.
2515 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2516 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2517 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2518 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2520 (acorn_partition_map_probe): Remove.
2521 (acorn_partition_map_get_name): Likewise.
2522 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2524 Set 'index' to 0 since there can be only one partition entry per sector.
2525 (amiga_partition_map_probe): Remove.
2526 (amiga_partition_map_get_name): Likewise.
2527 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2529 Set 'offset' and 'index' to real positions of partitions.
2530 (apple_partition_map_probe): Remove.
2531 (apple_partition_map_get_name): Likewise.
2532 * partmap/bsdlabel.c: New file.
2533 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2535 Allocate 'data' so it can be correctly freed.
2536 Set 'index' to offset inside sector.
2537 (gpt_partition_map_probe): Remove.
2538 (gpt_partition_map_get_name): Likewise.
2539 * partmap/msdos.c (grub_partition_parse): Remove.
2540 (pc_partition_map_iterate): Don't force raw access.
2542 Make 'ext_offset' a local variable.
2543 (pc_partition_map_probe): Remove.
2544 (pc_partition_map_get_name): Remove.
2545 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2547 (sun_partition_map_probe): Remove.
2548 (sun_partition_map_get_name): Likewise.
2549 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2550 (grub_pcpart_type): Likewise.
2551 * util/hostdisk.c (open_device): Handle new numbering scheme.
2552 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2553 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2554 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2555 * util/grub-install.in: Insert all subpartition modules.
2556 * util/ieee1275/grub-install.in: Likewise.
2558 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2560 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2563 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2565 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2567 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2569 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2570 match where 'make install' puts them.
2571 * util/i386/efi/grub-install.in: Likewise.
2573 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2575 * .bzrignore: Add gentrigtables, grub-script-check,
2576 grub_script_check_init.c, grub_script_check_init.h, and
2579 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2581 * kern/parser.c: Indented.
2583 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2585 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2587 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2589 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2590 alpha_mask_size == 0 case.
2592 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2594 GRUB shell lexer and parser improvements.
2596 * conf/any-emu.rmk: Build rule updates.
2597 * conf/common.rmk: Likewise.
2598 * conf/i386-coreboot.rmk: Likewise.
2599 * conf/i386-efi.rmk: Likewise.
2600 * conf/i386-ieee1275.rmk: Likewise.
2601 * conf/i386-pc.rmk: Likewise.
2602 * conf/powerpc-ieee1275.rmk: Likewise.
2603 * conf/x86_64-efi.rmk: Likewise.
2605 * configure.ac: Configure check for flex.
2607 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2609 (grub_lexer_param): Struct member updates.
2610 (grub_parser_param): Likewise.
2611 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2612 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2613 (grub_script_lexer_init): Prototype update.
2614 (grub_script_lexer_record_start): Likewise.
2615 (grub_script_lexer_record_stop): Likewise.
2616 (grub_script_lexer_yywrap): New function prototype.
2617 (grub_script_lexer_fini): Likewise.
2618 (grub_script_execute_argument_to_string): Removed by...
2619 (grub_script_execute_argument_to_argv): ...better version.
2621 * script/execute.c (ROUND_UPTO): New macro.
2622 (grub_script_execute_cmdline): Out of memory fixes.
2623 (grub_script_execute_menuentry): Likewise.
2624 (grub_script_execute_argument_to_string): Removed. Update all
2626 (grub_script_execute_argument_to_argv): ...better version.
2627 * script/function.c (grub_script_function_create): Use
2628 grub_script_execute_argument_to_argv instead of
2629 grub_script_execute_argument_to_string.
2631 * script/lexer.c (check_varstate): Removed.
2632 (check_textstate): Removed.
2633 (grub_script_lexer_record_start): Likewise.
2634 (grub_script_lexer_record_stop): Likewise.
2635 (recordchar): Replaced with...
2636 (grub_script_lexer_record): ...new function.
2637 (nextchar): Removed.
2638 (grub_script_lexer_init): Rewritten.
2639 (grub_script_yylex): Rewritten.
2640 (append_newline): New function.
2641 (grub_script_lexer_yywrap): New function.
2642 (grub_script_lexer_fini): New function.
2643 (grub_script_yyerror): Sets error flag.
2645 * script/yylex.l: New file.
2646 (grub_lexer_yyfree): Wrapper for flex yyffre.
2647 (grub_lexer_yyalloc): Likewise.
2648 (grub_lexer_yyrealloc): Likewise.
2649 * script/parser.y: Refactored.
2651 * script/script.c (grub_script_arg_add): Out of memory fixes.
2652 (grub_script_add_arglist): Likewise.
2653 (grub_script_create_cmdline): Likewise.
2654 (grub_script_create_cmdmenu): Likewise.
2655 (grub_script_add_cmd): Likewise.
2656 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2657 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2660 * tests/grub_script_echo1.in: New testcase.
2661 * tests/grub_script_vars1.in: New testcase.
2662 * tests/grub_script_echo_keywords.in: New testcase.
2664 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2666 Remove some redundancy in build system.
2668 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2669 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2670 (TARGET_LDFLAGS): Add -nostdlib.
2671 (TARGET_IMG_LDFLAGS): Likewise.
2672 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2673 anything since mmap isn't available.
2674 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2676 (pkglib_MODULES): Remove reboot.mod.
2677 (reboot_mod_SOURCES): Removed.
2678 (reboot_mod_CFLAGS): Likewise.
2679 (reboot_mod_LDFLAGS): Likewise.
2680 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2681 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2682 (DEFSYMFILES): Add kernel_syms.lst.
2683 (kernel_img_HEADERS): Add common headers.
2684 (symlist.c): New target.
2685 (kernel_syms.lst): Likewise.
2686 (pkglib_MODULES): Add memdisk.mod.
2687 (memdisk_mod_SOURCES): New variable.
2688 (memdisk_mod_CFLAGS): Likewise.
2689 (memdisk_mod_LDFLAGS): Likewise.
2690 (pkglib_MODULES): Add reboot.mod.
2691 (reboot_mod_SOURCES): New variable.
2692 (reboot_mod_CFLAGS): Likewise.
2693 (reboot_mod_LDFLAGS): Likewise.
2694 (pkglib_MODULES): Add date.mod.
2695 (date_mod_SOURCES): New variable.
2696 (date_mod_CFLAGS): Likewise.
2697 (date_mod_LDFLAGS): Likewise.
2698 (pkglib_MODULES): Add datehook.mod.
2699 (datehook_mod_SOURCES): New variable.
2700 (datehook_mod_CFLAGS): Likewise.
2701 (datehook_mod_LDFLAGS): Likewise.
2702 (pkglib_MODULES): Add lsmmap.mod.
2703 (lsmmap_mod_SOURCES): New variable.
2704 (lsmmap_mod_CFLAGS): Likewise.
2705 (lsmmap_mod_LDFLAGS): Likewise.
2706 (pkglib_MODULES): Add boot.mod.
2707 (boot_mod_SOURCES): New variable.
2708 (boot_mod_CFLAGS): Likewise.
2709 (boot_mod_LDFLAGS): Likewise.
2710 * conf/i386-coreboot.rmk: Removed redundant parts.
2711 * conf/i386-ieee1275.rmk: Likewise.
2712 * conf/i386-pc.rmk: Likewise.
2713 * conf/mips-yeeloong.rmk: Likewise.
2714 * conf/mips.rmk: Likewise.
2715 * conf/powerpc-ieee1275.rmk: Likewise.
2716 * conf/sparc64-ieee1275.rmk: Likewise.
2717 * conf/x86_64-efi.rmk: Likewise.
2718 * conf/i386-coreboot.rmk: Moved qemu parts ..
2719 * conf/i386-qemu.rmk: ... here
2720 * conf/i386-efi.rmk: Moved common parts to...
2721 * conf/x86-efi.rmk: ... here.
2722 * conf/i386.rmk: Added modules common to all x86 variants.
2723 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2724 * disk/memdisk.c: Remove grub/machine/kernel.h.
2725 * gensymlist.sh.in: Include symbol.h.
2726 * hook/datehook.c: Correct module name.
2727 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2728 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2729 * include/grub/i386/efi/serial.h: New file.
2730 * include/grub/x86_64/efi/serial.h: Likewise.
2731 * util/time.c: Likewise.
2732 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2734 2010-03-14 Colin King <colin.king@ubuntu.com>
2735 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2737 Shrink the pre-partition-table part of boot.img by eight bytes.
2739 * boot/i386/pc/boot.S (ERR): New macro.
2740 (chs_mode): Use ERR.
2741 (geometry_error): Likewise.
2742 (hd_probe_error): Remove. This is only used once, so we wrwite
2744 (read_error): Instead of printing read_error_string, just set up
2745 %si and fall through to ...
2746 (error_message): ... this new function, also used by ERR.
2748 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2750 Speed up consecutive hostdisk operations on the same device.
2752 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2753 (grub_util_biosdisk_open): Initialise disk->data.
2754 (struct linux_partition_cache): New structure.
2755 (linux_find_partition): Cache partition start positions; these are
2756 expensive to compute on every read and write.
2757 (open_device): Cache open file descriptor in disk->data, so that we
2758 don't have to reopen it and flush the buffer cache for consecutive
2759 operations on the same device.
2760 (grub_util_biosdisk_close): New function.
2761 (grub_util_biosdisk_dev): Set `close' member.
2763 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2764 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2765 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2766 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2767 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2769 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2771 Compile parts of grub-emu as modules.
2773 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2774 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2775 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2776 (all-local): Add $(GRUB_EMU).
2777 (install-local): Install $(GRUB_EMU).
2778 (uninstall): Uninstall $(GRUB_EMU).
2779 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2780 * kern/dl.c: Likewise.
2781 * commands/sleep.c: Not include machine/time.h.
2782 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2783 (COMMON_CFLAGS): Likewise.
2784 (sbin_UTILITIES): Remove grub-emu.
2785 (grub_emu_SOURCES): Removed.
2786 (kernel_img_RELOCATABLE): New variable.
2787 (pkglib_PROGRAMS): Add kernel.img.
2788 (kernel_img_SOURCES): New variable
2789 (kernel_img_CFLAGS): Likewise.
2790 (kernel_img_LDFLAGS): Likewise.
2791 (TARGET_NO_STRIP): Likewise.
2792 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2793 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2794 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2795 (grub-emu): New target.
2796 (GRUB_EMU): New variable.
2797 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2798 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2799 * loader/xnu.c: Likewise.
2800 * include/grub/pci.h: Likewise.
2801 * genemuinit.sh: New file.
2802 * genemuinitheader.sh: Likewise.
2803 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2804 Support TARGET_NO_DYNAMIC_MODULES.
2805 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2806 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2807 * disk/loopback.c: Likewise.
2808 * font/font_cmd.c: Likewise.
2809 * partmap/acorn.c: Likewise.
2810 * partmap/amiga.c: Likewise.
2811 * partmap/apple.c: Likewise.
2812 * partmap/gpt.c: Likewise.
2813 * partmap/msdos.c: Likewise.
2814 * partmap/sun.c: Likewise.
2815 * parttool/msdospart.c: Likewise.
2816 * term/gfxterm.c: Likewise.
2817 * video/bitmap.c: Likewise.
2818 * video/readers/jpeg.c: Likewise.
2819 * video/readers/png.c: Likewise.
2820 * video/readers/tga.c: Likewise.
2821 * video/video.c: Likewise.
2822 * util/grub-emu.c (read_command_list): Removed.
2823 (main): Don't call util_init_nls.
2824 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2825 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2827 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2829 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2830 date.mod, datehook.mod.
2831 (datetime_mod_SOURCES): New variable.
2832 (datetime_mod_CFLAGS): Likewise.
2833 (datetime_mod_LDFLAGS): Likewise.
2834 (date_mod_SOURCES): Likewise.
2835 (date_mod_CFLAGS): Likewise.
2836 (date_mod_LDFLAGS): Likewise.
2837 (datehook_mod_SOURCES): Likewise.
2838 (datehook_mod_CFLAGS): Likewise.
2839 (datehook_mod_LDFLAGS): Likewise.
2840 * conf/sparc64-ieee1275.rmk: Likewise.
2841 * lib/ieee1275/datetime.c: New file.
2843 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2845 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2846 (ieee1275_fb_mod_SOURCES): New variable.
2847 (ieee1275_fb_mod_CFLAGS): Likewise.
2848 (ieee1275_fb_mod_LDFLAGS): Likewise.
2849 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2851 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2852 (HEAP_MAX_ADDR): Likewise.
2853 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2855 Correct stop condition.
2856 (grub_ieee1275_devices_iterate): New function.
2857 * video/ieee1275.c: New file.
2859 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2861 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2863 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2865 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2866 SCRATCH_PAD_DISKBOOT as scratch.
2867 (bootit): Pass Openfirmware pointer in %o4.
2868 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2870 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2871 with util/grub-mkrawimage.c.
2872 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2873 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2874 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2875 (grub_aout_load) [GRUB_UTIL]: Likewise.
2876 * include/grub/kernel.h (grub_modules_get_end): New proto.
2877 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2878 (SCRATCH_PAD_BOOT): New definition.
2879 (SCRATCH_PAD_DISKBOOT): Likewise.
2880 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2881 * include/grub/sparc64/ieee1275/ieee1275.h
2882 (grub_ieee1275_original_stack): New variable
2883 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2885 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2886 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2887 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2888 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2889 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2890 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2891 (grub_platform_image_format_t): New type.
2892 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2893 * kern/main.c (grub_modules_get_end)
2894 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2895 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2896 (codestart): Switch stacks.
2897 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2899 (grub_heap_init): Use grub_modules_get_end.
2900 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2902 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2904 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2906 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2908 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2910 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2912 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2915 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2917 * genmoddep.awk: Output all missing symbols and not only first.
2919 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2921 * NEWS: Put the date of 1.98 release.
2923 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2925 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2928 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2930 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2931 completition in the middle of string.
2933 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2935 * util/grub-mkrescue.in: Use mktemp with explicit template.
2937 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2939 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2941 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2943 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2946 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2948 Fix FreeBSD compilation.
2950 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2951 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2953 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2955 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2957 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2959 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2961 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2963 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2965 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2967 Support relative image path in theme file.
2969 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2970 (image_set_property): Handle theme_dir and relative path.
2972 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2974 * configure.ac: Alias amd64 to x86_64.
2976 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2978 * NEWS: mention multiboot on EFI.
2980 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2982 * kern/main.c (grub_load_modules): Handle errors from init functions of
2985 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2987 * normal/autofs.c (autoload_fs_module): Handle errors.
2989 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2991 Disable linux.mod on qemu-mips since it's not functional and leads
2992 to compilation failure.
2994 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2995 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2996 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2997 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2998 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2999 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3000 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3001 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3002 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3003 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3004 Reported by: BVK Chaitanya
3006 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3008 * INSTALL: Add gettext as a dependency and add qemu to a new section
3009 "Prerequisites for make-check".
3011 2010-03-04 Christian Franke <franke@computer.org>
3013 * util/grub-pe2elf.c: Add missing include "progname.h".
3015 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3017 * normal/crypto.c (read_crypto_list): Fix a typo.
3018 Reported by: Seth Goldberg.
3020 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3022 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3023 Reported by: Seth Goldberg.
3025 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3027 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3030 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3032 * genmk.rb: Remove terminal*.lst in make clean.
3033 Reported by: Seth Goldberg.
3035 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3037 * util/i386/efi/grub-install.in: Copy gettext files.
3039 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3041 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3043 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3045 Wait for user entry basing on presence of output rather than on errors.
3047 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3048 (grub_install_newline_hook): Likewise.
3049 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3050 * normal/menu.c (show_menu): Check line_counter to determine presence
3052 * normal/term.c (grub_normal_line_counter): New variable.
3053 (grub_normal_get_line_counter): New function.
3054 (grub_install_newline_hook): Likewise.
3056 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3058 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3060 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3062 * configure.ac: Update version to 1.98.
3064 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3066 * util/grub.d/10_linux.in (linux_entry): Don't default to
3067 gfxpayload=keep if Linux doesn't support video handover.
3069 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3071 Don't compile video modules on yeeloong since video subsystem is part
3074 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3075 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3076 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3077 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3078 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3079 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3080 * include/grub/bitmap_scale.h: Likewise.
3081 * include/grub/bufio.h: Likewise.
3082 * include/grub/font.h: Likewise.
3083 * include/grub/gfxterm.h: Likewise.
3084 * include/grub/video.h: Likewise.
3085 * include/grub/vbe.h: Don't include video_fb.h.
3086 * video/i386/pc/vbe.c: Include video_fb.h.
3087 * commands/i386/pc/vbetest.c: Include video.h.
3089 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3091 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3092 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3093 default entry if GRUB_SAVEDEFAULT=true. This allows using
3094 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3095 saving a new default on every boot.
3097 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3099 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3100 * normal/term.c (read_terminal_list): Likewise.
3101 * normal/main.c (grub_normal_init_page): Likewise.
3102 (grub_normal_read_line_real): Likewise.
3104 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3106 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3108 Reported by: Seth Goldberg.
3110 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3112 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3113 duplicate declaration of `start'.
3115 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3117 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3119 Reported by: Georgy Buranov
3121 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3123 * util/grub-mkrawimage.c (usage): Change string formatting to
3126 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3128 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3131 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3133 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3134 Reported by: Michael Suchanek.
3136 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3138 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3139 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3141 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3143 Remove any reference to non-free fonts.
3145 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3146 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3147 uses non-free components.
3148 * font/font.c (grub_font_get_name): Remove example name.
3149 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3150 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3151 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3152 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3154 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3156 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3158 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3160 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3162 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3164 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3166 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3168 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3170 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3172 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3173 * docs/grub.texi (Command-line and menu entry commands): Document play
3176 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3178 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3179 parse arguments as inline tempo and notes. Move code for playing notes
3181 (play): ... new function.
3183 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3185 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3186 grub_uint16_t instead of short.
3187 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3188 disk from little endian to cpu endianness.
3190 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3192 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3193 GRUB_TICKS_PER_SECOND instead of 120.
3195 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3197 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3198 escape sequence after \e.
3200 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3202 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3203 non-ASCII characters.
3205 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3207 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3208 set root in single quotes to prevent \, from being unescaped.
3210 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3212 Prevent unknown commands from stopping menuentry execution.
3214 * script/execute.c (grub_script_execute_cmdline): Print error after
3217 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3219 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3220 Reported by: Pavel Pisa.
3222 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3224 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3226 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3228 Merge grub_ieee1275_map_physical into grub_map and rename to
3231 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3232 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3234 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3235 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3237 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3239 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3241 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3242 opening and not after.
3244 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3246 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3249 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3251 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3252 (alloc_phys): Use ALIGN_UP instead of align_addr.
3254 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3256 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3258 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3260 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3262 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3264 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3267 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3269 Fix over-4GiB seek on sparc64.
3271 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3272 Replace pos_i and pos_lo with pos. All users updated.
3273 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3275 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3277 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3280 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3282 * util/grub-mkrawimage.c (main): Call set_program_name.
3284 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3286 Properly align 64-bit targets.
3288 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3289 (generate_image): Use ALIGN_ADDR.
3291 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3293 Properly create cross-endian images.
3295 * include/grub/types.h (grub_host_to_target_addr): New macro
3296 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3298 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3300 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3302 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3304 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3306 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3307 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3308 (grub_linux_boot): Divide by 64K when on VESA.
3310 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3312 Support GRUB_GFXPAYLOAD_LINUX.
3314 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3315 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3317 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3319 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3320 to show messages instead of discarding them.
3321 Process errors after executing command and not before. Keep old method
3324 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3326 * configure.ac: Check for ft2build.h.
3328 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3330 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3332 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3334 * genkernsyms.sh.in: Use TARGET_CC.
3336 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3340 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3342 * include/grub/multiboot2.h: Remove leftover file.
3343 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3344 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3346 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3348 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3350 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3352 Fix warnings in grub-emu when compiling with maximum warning options.
3354 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3355 (grub_arch_modules_addr): Return 0 and not NULL.
3356 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3357 (xstrdup): Use newstr instead of dup.
3358 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3359 of disk to dsk to avoid shadowing.
3360 (find_free_slot): Fix prototype.
3361 * util/getroot.c (grub_util_is_dmraid): Make static.
3362 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3363 Add missing prototype.
3364 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3366 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3368 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3371 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3373 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3376 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3378 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3379 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3380 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3381 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3382 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3383 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3385 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3387 * include/grub/err.h (grub_err_printf): Don't export.
3389 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3391 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3393 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3395 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3396 * kern/misc.c (grub_gettext_dummy): Make static.
3398 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3400 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3402 * kern/term.c (grub_putchar): Likewise.
3404 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3406 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3407 buggy hook call and memory leak.
3409 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3411 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3413 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3415 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3417 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3419 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3421 Return grub_errno on allocation error.
3423 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3425 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3427 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3429 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3430 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3432 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3434 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3436 (grub_pxefs_open): Likewise.
3438 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3440 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3441 * util/grub.d/10_kfreebsd.in: Likewise.
3442 * util/grub.d/10_linux.in: Likewise.
3444 2010-02-06 Colin D Bennett <colin@gibibit.com>
3446 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3447 (gfxmenu_mod_SOURCES): New variable.
3448 (gfxmenu_mod_CFLAGS): Likewise.
3449 (gfxmenu_mod_LDFLAGS): Likewise.
3450 * include/grub/term.h (grub_term_set_current_output): Declare
3452 * docs/gfxmenu-theme-example.txt: New file.
3453 * gfxmenu/gfxmenu.c: Likewise.
3454 * gfxmenu/gui_box.c: Likewise.
3455 * gfxmenu/gui_canvas.c: Likewise.
3456 * gfxmenu/gui_circular_progress.c: Likewise.
3457 * gfxmenu/gui_image.c: Likewise.
3458 * gfxmenu/gui_label.c: Likewise.
3459 * gfxmenu/gui_list.c: Likewise.
3460 * gfxmenu/gui_progress_bar.c: Likewise.
3461 * gfxmenu/gui_string_util.c: Likewise.
3462 * gfxmenu/gui_util.c: Likewise.
3463 * gfxmenu/icon_manager.c: Likewise.
3464 * gfxmenu/model.c: Likewise.
3465 * gfxmenu/named_colors.c: Likewise.
3466 * gfxmenu/theme_loader.c: Likewise.
3467 * gfxmenu/view.c: Likewise.
3468 * gfxmenu/widget-box.c: Likewise.
3469 * include/grub/gfxmenu_model.h: Likewise.
3470 * include/grub/gfxmenu_view.h: Likewise.
3471 * include/grub/gfxwidgets.h: Likewise.
3472 * include/grub/gui.h: Likewise.
3473 * include/grub/gui_string_util.h: Likewise.
3474 * include/grub/icon_manager.h: Likewise.
3476 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3478 Agglomerate scrolling in gfxterm.
3480 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3481 (grub_virtual_screen_setup): Initialise 'total_screen'.
3482 (write_char): Split to ...
3483 (paint_char): ... this ...
3484 (write_char): ... and this.
3485 (paint_char): Handle delayed scrolling.
3486 (draw_cursor): Likewise.
3487 (scroll_up): Split to ...
3488 (real_scroll): ... this ...
3489 (scroll_up): ... and this.
3490 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3492 (grub_gfxterm_refresh): Call real_scroll.
3494 2010-02-06 Colin D Bennett <colin@gibibit.com>
3496 * include/grub/misc.h (grub_iscntrl): New inline function.
3497 (grub_isalnum): Likewise.
3498 (grub_strtol): Likewise.
3500 2010-02-06 Colin D Bennett <colin@gibibit.com>
3502 * normal/menu_text.c (get_entry_number): Move from here ...
3503 * normal/menu.c (get_entry_number): ... moved here.
3504 * include/grub/menu.h (grub_menu_get_default_entry_index):
3506 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3507 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3508 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3509 (grub_menu_viewer_should_return): Likewise.
3510 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3511 * normal/menu_text.c (run_menu): Enable menu switching.
3512 * normal/menu_viewer.c (should_return): New variable.
3513 (menu_viewer_changed): Likewise.
3514 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3515 (grub_menu_viewer_should_return): New function.
3516 (menuviewer_write_hook): Likewise.
3517 (grub_menu_viewer_init): Likewise.
3519 2010-02-06 Colin D Bennet <colin@gibibit.com>
3520 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3522 Support for gfxterm in a window.
3524 * include/grub/gfxterm.h: New file.
3525 * include/grub/video.h (struct grub_video_rect): New declaration.
3526 (grub_video_rect_t): Likewise.
3527 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3528 (refcount): New variable.
3529 (render_target): Likewise.
3531 (repaint_callback): Likewise.
3532 (grub_virtual_screen_setup): Use 'render_target'.
3533 (init_window): New function.
3534 (grub_gfxterm_init_window): Likewise.
3535 (grub_gfxterm_init): Check reference counter.
3537 (destroy_window): New function.
3538 (grub_gfxterm_destroy_window): Likewise.
3539 (grub_gfxterm_fini): Check reference counter.
3541 (redraw_screen_rect): Restore viewport.
3542 Use 'render_target' and 'window'.
3543 Call 'repaint_callback'.
3544 (write_char): Use 'render_target'.
3545 (draw_cursor): Likewise.
3546 (scroll_up): Restore viewport.
3547 Use 'render_target' and 'window'.
3548 Call 'repaint_callback'.
3549 (grub_gfxterm_cls): Likewise.
3550 (grub_gfxterm_refresh): Use 'window'.
3551 (grub_gfxterm_set_repaint_callback): New function.
3552 (grub_gfxterm_background_image_cmd): Use 'window'.
3553 (grub_gfxterm_get_term): New function.
3554 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3556 2010-02-06 Colin D Bennett <colin@gibibit.com>
3558 Bitmap scaling support.
3560 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3561 (bitmap_scale_mod_SOURCES): New variable.
3562 (bitmap_scale_mod_CFLAGS): Likewise.
3563 (bitmap_scale_mod_LDFLAGS): Likewise.
3564 * include/grub/bitmap_scale.h: New file.
3565 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3566 (background_image_cmd_options): New variable.
3567 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3568 (cmd): Rename and change type to ...
3569 (background_image_cmd_handle): ... this. All users updated.
3570 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3571 * video/bitmap_scale.c: New file.
3573 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3577 * Makefile.in (LIBSDL): New variable.
3578 (enable_grub_emu_sdl): Likewise.
3579 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3580 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3581 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3582 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3583 * util/sdl.c: New file.
3585 2010-02-06 Colin D Bennett <colin@gibibit.com>
3586 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3588 Double buffering support.
3590 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3591 * include/grub/video.h: Update comment.
3592 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3594 (grub_video_fb_doublebuf_blit_init): New prototype.
3595 * term/gfxterm.c (scroll_up): Support double buffering.
3596 (grub_gfxterm_refresh): Likewise.
3597 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3598 (grub_video_fb_doublebuf_blit_init): Likewise.
3599 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3600 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3601 'displayed_page', 'render_page' and 'update_screen'.
3602 (grub_video_vbe_fini): Free offscreen buffer.
3603 (doublebuf_pageflipping_commit): New function.
3604 (doublebuf_pageflipping_update_screen): Likewise.
3605 (doublebuf_pageflipping_init): Likewise.
3606 (double_buffering_init): Likewise.
3607 (grub_video_vbe_setup): Enable doublebuffering.
3608 (grub_video_vbe_swap_buffers): Implement.
3609 (grub_video_vbe_set_active_render_target): Handle double buffering.
3610 (grub_video_vbe_get_active_render_target): Likewise.
3611 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3612 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3613 (grub_video_vbe_enable_double_buffering): Likewise.
3614 (grub_video_vbe_swap_buffers): Use update_screen.
3615 (grub_video_set_mode): Use double buffering.
3617 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3619 * maintainance/gentrigtables.py: Remove.
3620 * lib/trig.c: Likewise.
3622 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3624 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3626 (trigtables.c): New rule.
3627 (gentrigtables): Likewise.
3628 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3630 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3632 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3635 2010-02-06 Colin D Bennet <colin@gibibit.com>
3637 Trigonometry support.
3639 * include/grub/trig.h: New file.
3640 * lib/trig.c: Likewise.
3641 * maintainance/gentrigtables.py: Likewise.
3642 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3643 (trig_mod_SOURCES): New variable.
3644 (trig_mod_CFLAGS): Likewise.
3645 (trig_mod_LDFLAGS): Likewise.
3647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3649 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3652 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3654 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3657 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3659 * util/hostdisk.c (open_device): Don't use partition device when reading
3660 before the partition.
3661 (grub_util_biosdisk_read): Don't read from partition and before the
3662 partition in single operation.
3663 (grub_util_biosdisk_write): Don't write to partition and before the
3664 partition in single operation.
3666 2010-02-03 Torsten Landschoff <torsten@debian.org>
3668 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3671 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3673 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3675 (grub_biosdisk_write): Refuse to write to CDROM.
3677 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3679 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3681 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3683 * font/font.c (find_glyph): Check that bmp_idx is available before
3685 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3686 with (font == NULL).
3688 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3690 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3692 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3694 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3695 * util/grub-script-check.c (getline): Fix empty lines case.
3697 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3699 * Makefile.in (check): Exit with fail status when one of the tests
3701 * tests/example_functional_test.c (example_test): Fix reversed assert.
3702 * tests/example_unit_test.c (example_test): Likewise.
3704 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3706 * util/grub.d/10_linux.in: This script does not use any of the
3707 contents of gettext.sh, only the external command `gettext', so stop
3708 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3709 the same prefix as GRUB.)
3710 * util/grub.d/10_kfreebsd.in: Likewise.
3712 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3714 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3717 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3719 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3722 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3724 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3725 having a 4KiB and not 32KiB buffer size.
3727 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3729 * util/hostfs.c: Include `<errno.h>'.
3730 (grub_hostfs_read): Handle errors from fseeko() and fread().
3732 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3734 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3735 loop when using read hooks on files whose size isn't sector-aligned.
3737 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3739 Remove unused parameter.
3741 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3742 (grub_iso9660_open): Remove initialization of `data->length'.
3744 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3746 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3749 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3751 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3752 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3754 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3756 * util/bin2h.c (usage): Fix warning (space after backslash).
3758 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3760 * font/font.c: Include `grub/fontformat.h.
3761 Remove font file format constants.
3762 (grub_font_load): Use the new macros.
3763 * include/grub/fontformat.h: New file.
3764 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3765 (write_font_pf2): Use the new macros.
3767 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3769 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3772 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3774 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3776 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3777 (_start): Macroify `0x7F'.
3779 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3780 (make_install_device): Use "(pxe)" as fallback prefix when booting
3783 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3785 * configure.ac: Reset LIBS after check for libgcc symbols.
3787 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3789 * util/hostdisk.c (open_device): Add trailing newline to debug
3792 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3794 * configure.ac: Check for `limits.h'.
3795 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3797 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3799 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3800 capitalize error strings.
3802 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3804 * util/grub.d/10_hurd.in: Add a recovery mode.
3806 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3808 * configure.ac: Check for libgcc symbols with -nostdlib.
3810 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3812 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3814 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3816 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3817 stack since heap may be unavailable at that point.
3818 (grub_ofconsole_gotoxy): Likewise.
3820 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3822 * configure.ac: Check for _restgpr_14_x.
3823 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3824 and _savegpr_* prototypes.
3826 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3828 Use generic grub_reboot() for i386-efi.
3830 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3831 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3832 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3834 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3836 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3837 presence of "prefix" variable as it breaks when normal.mod is
3840 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3842 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3843 stack since heap is unavailable at that point.
3845 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3847 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3848 (grub_freebsd_bootinfo): Rewritten.
3849 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3851 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3853 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3855 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3857 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3860 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3862 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3863 around for handling "/" to the correct fix. Fix a memory leak. Use
3864 xstrdup instead of strdup.
3866 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3868 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3870 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3872 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3874 * font/font.c (struct grub_font): New member 'bmp_idx'.
3875 (font_init): Initialise 'bmp_idx'.
3876 (load_font_index): Fill 'bmp_idx'.
3877 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3879 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3881 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3884 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3886 Move context handling out of the kernel.
3888 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3889 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3890 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3891 * conf/i386-efi.rmk: Likewise.
3892 * conf/i386-ieee1275.rmk: Likewise.
3893 * conf/i386-pc.rmk: Likewise.
3894 * conf/powerpc-ieee1275.rmk: Likewise.
3895 * conf/sparc64-ieee1275.rmk: Likewise.
3896 * conf/x86_64-efi.rmk: Likewise.
3897 * include/grub/env.h: Include grub/menu.h.
3898 (grub_env_var_type): Removed.
3899 (grub_env_var): Replaced field 'type' with 'global'.
3900 (grub_env_find): New prototype.
3901 (grub_env_context_open): Remove EXPORT_FUNC.
3902 (grub_env_context_close): Likewise.
3903 (grub_env_export): Likewise.
3904 (grub_env_set_data_slot): Removed.
3905 (grub_env_get_data_slot): Likewise.
3906 (grub_env_unset_data_slot): Likewise.
3907 (grub_env_unset_menu): New prototype.
3908 (grub_env_set_menu): Likewise.
3909 (grub_env_get_menu): Likewise.
3910 * include/grub/env_private.h: New file.
3911 * include/grub/normal.h (grub_context_init): New prototype.
3912 (grub_context_fini): Likewise.
3913 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3914 * normal/context.c (grub_cmd_export): ... to here.
3915 * kern/env.c: Include env_private.h.
3916 (HASHSZ): Moved to include/grub/env_private.h.
3917 (grub_env_context): Likewise.
3918 (grub_env_sorted_var): Likewise.
3919 (current_context): Renamed from this ...
3920 (grub_current_context): ...to this. 'static' removed. All users updated.
3921 (grub_env_find): Removed 'static'.
3922 (grub_env_context_open): Moved to normal/context.c.
3923 (grub_env_context_close): Likewise.
3924 (grub_env_export): Likewise.
3925 (mangle_data_slot_name): Removed.
3926 (grub_env_set_data_slot): Likewise.
3927 (grub_env_get_data_slot): Likewise.
3928 (grub_env_unset_data_slot): Likewise.
3929 * kern/main.c (grub_set_root_dev): Don't export root.
3930 It will be done later.
3931 (grub_main): Don't export prefix.
3932 It will be done later.
3933 * normal/context.c: New file.
3934 * normal/main.c (free_menu): Use grub_env_unset_menu.
3935 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3936 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3937 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3938 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3940 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3944 * commands/setpci.c: New file.
3945 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3946 (setpci_mod_SOURCES): New variable.
3947 (setpci_mod_CFLAGS): Likewise.
3948 (setpci_mod_LDFLAGS): Likewise.
3950 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3952 Byte-addressable PCI configuration space.
3954 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3956 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3957 GRUB_PCI_REG_CACHELINE.
3958 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3959 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3960 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3961 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3962 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3963 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3964 grub_pci_make_address.
3965 (lock_rom_area): Likewise.
3966 * commands/lspci.c (grub_lspci_iter): Use macroses
3967 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3968 of grub_pci_make_address.
3969 * disk/ata.c (grub_ata_pciinit): Likewise.
3970 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3971 (GRUB_PCI_REG_VENDOR): Likewise.
3972 (GRUB_PCI_REG_DEVICE): Likewise.
3973 (GRUB_PCI_REG_COMMAND): Likewise.
3974 (GRUB_PCI_REG_STATUS): Likewise.
3975 (GRUB_PCI_REG_REVISION): Likewise.
3976 (GRUB_PCI_REG_CLASS): Likewise.
3977 (GRUB_PCI_REG_CACHELINE): Likewise.
3978 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3979 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3980 (GRUB_PCI_REG_BIST): Likewise.
3981 (GRUB_PCI_REG_ADDRESSES): Likewise.
3982 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3983 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3984 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3985 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3986 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3987 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3988 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3989 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3990 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3991 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3992 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3993 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3994 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3995 (GRUB_PCI_REG_MIN_GNT): Likewise.
3996 (GRUB_PCI_REG_MAX_LAT): Likewise.
3997 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3998 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3999 * video/efi_uga.c (find_framebuf): Likewise.
4000 * video/sm712.c (grub_video_sm712_setup): Likewise.
4001 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4004 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4006 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4007 can be reliably determined to be supported.
4009 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4011 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4012 that VESA is supported.
4013 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4016 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4018 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4020 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4022 * util/misc.c (make_system_path_relative_to_its_root): Work around
4023 special-casing of "/", as previous incarnation of this routine did.
4025 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4027 Fix any-emu compilation.
4029 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4030 * grub_bin2h_SOURCES: New variable.
4032 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4034 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4036 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4038 * util/grub.d/00_header.in: Fix handling of locale_dir.
4040 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4042 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4043 as possible unifont location (Gentoo).
4044 Reported by: Alexander Brüning
4046 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4048 Don't try to generate lists for kernel.img.
4050 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4051 (pkglib_MODULES): Remove kernel.img.
4052 (kernel_img_EXPORTS): Removed.
4053 (kernel_img_RELOCATABLE): New variable.
4054 * conf/x86_64-efi.rmk: Likewise.
4055 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4057 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4059 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4060 grub_xasprintf or grub_snprintf.
4061 (grub_vsprintf): Likewise.
4062 (grub_snprintf): New proto.
4063 (grub_vsnprintf): Likewise.
4064 (grub_xasprintf): Likewise.
4065 (grub_xvasprintf): Likewise.
4066 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4067 (grub_sprintf): Removed.
4068 (grub_vsnprintf): New function.
4069 (grub_snprintf): Likewise.
4070 (grub_xvasprintf): Likewise.
4071 (grub_xasprintf): Likewise.
4072 (grub_vsprintf): Renamed to ...
4073 (grub_vsnprintf_real): ...this. New argument max_len.
4075 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4077 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4078 fix grub-script-check warning.
4080 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4082 * include/grub/font.h (grub_font_load): Fix prototype.
4084 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4086 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4088 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4090 * include/grub/x86_64/at_keyboard.h: New file.
4092 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4094 * loader/mips/linux.c: Include missing grub/i18n.h.
4096 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4098 * normal/menu.c (notify_execution_failure): Clarify error message.
4100 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4102 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4103 return value (and revert all return statements). Update users.
4105 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4107 * kern/device.c (grub_device_iterate): Allocate new part_ent
4108 structure based on sizeof (*p) rather than sizeof (p->next), to
4109 account for structure padding.
4111 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4112 disk is NULL, which might happen for LVM physical volumes with no
4115 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4117 * loader/mips/linux.c (grub_cmd_initrd)
4118 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4120 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4122 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4123 (grub_video_video_init, grub_video_bitmap_init)
4124 (grub_font_manager_init, grub_term_gfxterm_init)
4125 (grub_at_keyboard_init): New extern declarations.
4126 (grub_machine_init): Initialize gfxterm and at_keyboard.
4128 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4130 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4131 `gfxterm.mod' into core image.
4133 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4134 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4135 (kernel_img_FORMAT): Copy to ...
4137 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4138 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4139 (kernel_img_FORMAT): ... here, and ...
4141 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4142 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4143 (kernel_img_FORMAT): ... here.
4145 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4146 and input (at_keyboard) terminals in kernel.
4147 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4149 (pkglib_MODULES): Remove `pci.mod'.
4150 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4151 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4152 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4153 (at_keyboard_mod_LDFLAGS): Remove variables.
4155 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4157 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4159 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4161 * include/grub/mips/libgcc.h: Only export symbols for functions
4162 that libgcc provides.
4164 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4168 * bus/bonito.c: New file.
4169 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4170 GRUB_PCI_NUM_DEVICES.
4171 * term/i386/pc/serial.c: Move to ...
4172 * term/serial.c: ... here. All users updated.
4173 * util/i386/pc/grub-mkimage.c: Move to ...
4174 * util/grub-mkrawimage.c: ... here. All users updated.
4175 * term/i386/pc/at_keyboard.c: Move to ...
4176 * term/at_keyboard.c: ... here. All users updated.
4177 * conf/mips-qemu-mips.rmk: New file.
4178 * conf/mips-yeeloong.rmk: Likewise.
4179 * conf/mips.rmk: Likewise.
4180 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4182 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4184 (grub_ata_pciinit): Support CS5536.
4185 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4186 * font/font_cmd.c (loadfont_command): Open file before passing it to
4188 (pseudo_file_read): New function.
4189 (pseudo_file_close): Likewise.
4190 (pseudo_fs): New structure.
4191 (load_font_module): New function.
4192 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4193 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4194 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4195 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4196 * include/grub/i386/at_keyboard.h: Split into ...
4197 * include/grub/at_keyboard.h: ... this ...
4198 * include/grub/i386/at_keyboard.h: ... and this.
4199 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4201 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4203 (grub_elf64_size): Likewise.
4204 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4206 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4207 * include/grub/i386/coreboot/serial.h: Rewritten.
4208 * include/grub/i386/ieee1275/serial.h: Include
4209 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4210 * include/grub/i386/pc/serial.h: Moved from here ...
4211 * include/grub/serial.h: ... to here. All users updated.
4212 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4213 (GRUB_PCI_NUM_BUS): Likewise.
4214 (GRUB_PCI_NUM_DEVICES): Likewise.
4215 (grub_pci_device_map_range): Add missing volatile keyword.
4216 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4217 * include/grub/mips/at_keyboard.h: New file.
4218 * include/grub/mips/cache.h: Likewise.
4219 * include/grub/mips/io.h: Likewise.
4220 * include/grub/mips/kernel.h: Likewise.
4221 * include/grub/mips/libgcc.h: Likewise.
4222 * include/grub/mips/pci.h: Likewise.
4223 * include/grub/mips/qemu-mips/boot.h: Likewise.
4224 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4225 * include/grub/mips/qemu-mips/loader.h: Likewise.
4226 * include/grub/mips/qemu-mips/memory.h: Likewise.
4227 * include/grub/mips/qemu-mips/serial.h: Likewise.
4228 * include/grub/mips/qemu-mips/time.h: Likewise.
4229 * include/grub/mips/relocator.h: Likewise.
4230 * include/grub/mips/time.h: Likewise.
4231 * include/grub/mips/types.h: Likewise.
4232 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4233 * include/grub/mips/yeeloong/boot.h: Likewise.
4234 * include/grub/mips/yeeloong/kernel.h: Likewise.
4235 * include/grub/mips/yeeloong/loader.h: Likewise.
4236 * include/grub/mips/yeeloong/memory.h: Likewise.
4237 * include/grub/mips/yeeloong/pci.h: Likewise.
4238 * include/grub/mips/yeeloong/serial.h: Likewise.
4239 * include/grub/mips/yeeloong/time.h: Likewise.
4240 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4241 * kern/elf.c (grub_elf32_size): New parameter. All users
4243 (grub_elf64_size): Likewise.
4244 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4245 Load modules before saying "Welcome to GRUB!".
4246 Call grub_refresh after saying "Welcome to GRUB!".
4247 * kern/mips/cache.S: New file.
4248 * kern/mips/cache_flush.S: Likewise.
4249 * kern/mips/dl.c: Likewise.
4250 * kern/mips/init.c: Likewise.
4251 * kern/mips/qemu-mips/init.c: Likewise.
4252 * kern/mips/startup.S: Likewise.
4253 * kern/mips/yeeloong/init.c: Likewise.
4254 * kern/term.c (grub_putcode): Handle NULL terminal.
4255 (grub_getcharwidth): Likewise.
4256 (grub_getkey): Likewise.
4257 (grub_checkkey): Likewise.
4258 (grub_getkeystatus): Likewise.
4259 (grub_getxy): Likewise.
4260 (grub_getwh): Likewise.
4261 (grub_gotoxy): Likewise.
4262 (grub_cls): Likewise.
4263 (grub_setcolorstate): Likewise.
4264 (grub_setcolor): Likewise.
4265 (grub_getcolor): Likewise.
4266 (grub_refresh): Likewise.
4267 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4268 (write_jump): Add hatch nop.
4269 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4270 * lib/mips/setjmp.S: New file.
4271 * loader/mips/linux.c: Likewise.
4272 * term/i386/pc/at_keyboard.c: Move from here ...
4273 * term/at_keyboard.c: ... to here.
4274 * term/i386/pc/serial.c: Moved from here ...
4275 * term/serial.c: ... to here. All users updated.
4276 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4277 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4278 (serial_translate_key_sequence): Avoid deadlock.
4279 (grub_serial_getkey): Handle backspace.
4280 (grub_serial_putchar): Fix newline handling.
4281 * util/i386/pc/grub-mkimage.c: Move from here ...
4282 * util/grub-mkrawimage.c: ... to here. All users updated.
4283 (generate_image): New parameters 'font_path' and 'format'.
4284 Support embedding font.
4285 Use grub_host_to_target* instead of grub_cpu_to_le*.
4286 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4287 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4288 (options): New option "--font".
4290 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4291 (main): Handle "--font".
4292 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4293 (grub_virtual_screen_setup): Set bg_color_display.
4294 (redraw_screen_rect): Use bg_color_display instead of incorrect
4296 (grub_gfxterm_cls): Likewise.
4297 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4298 Support embedding config file.
4299 (add_segments): Likewise.
4300 (options): New option "--config".
4301 (main): Handle "--config".
4302 * video/sm712.c: New file.
4304 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4306 Fix parallel builds.
4308 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4309 font.c depend on ascii.h).
4311 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4313 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4315 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4317 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4318 By default: disabled.
4319 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4322 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4324 * font/font.c: Update copyright years.
4325 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4327 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4329 * font/font.c: Include `ascii.h'.
4330 (ASCII_BITMAP_SIZE): New macro.
4331 (ascii_font_glyph): Define.
4332 (ascii_glyph_lookup): New function.
4333 (grub_font_get_string_width): Change comment. If glyph not found, use
4335 (grub_font_get_glyph_with_fallback): If glyph not available returns
4337 * util/grub-mkfont.c (file_formats): New enum.
4338 (options): Add `ascii-bitmaps' new option.
4339 (usage): Add `asii-bitmaps' new option.
4340 (write_font_ascii_bitmap): New function.
4341 (write_font): Rename to ...
4342 (write_font_p2): ... this. Remove print_glyphs call.
4343 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4344 used. Call print_glyphs.
4345 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4347 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4349 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4350 (grub_bin2h_SOURCES): New variable.
4351 * util/bin2h.c: New file.
4353 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4355 * include/multiboot.h: Resynced with spec.
4356 * include/multiboot2.h: Likewise.
4357 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4358 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4360 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4362 * include/grub/term.h (grub_term_register_input,
4363 grub_term_register_output): Check return of terminal init()
4364 routines, and abort if errors are raised.
4366 * commands/terminal.c: Update copyright year.
4368 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4370 * commands/terminal.c (grub_cmd_terminal_input)
4371 (grub_cmd_terminal_output): Check return of terminal init()
4372 routines, and abort if errors are raised.
4374 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4376 * include/grub/i386/bsd.h: Fix include pathes.
4378 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4380 Add missing *BSD copyright headers.
4382 * include/grub/aout.h: Add BSD licence.
4383 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4384 * include/grub/i386/freebsd_linker.h: ... here,
4385 * include/grub/i386/freebsd_reboot.h: ... here,
4386 * include/grub/i386/netbsd_bootinfo.h: ... here,
4387 * include/grub/i386/netbsd_reboot.h: ... here,
4388 * include/grub/i386/openbsd_bootarg.h: ... here,
4389 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4390 licence to each file.
4392 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4394 * acinclude.m4: Remove `nop' assembly instruction; it's not
4395 implemented by all architectures.
4397 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4399 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4400 ELILO. This is no longer necessary.
4402 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4404 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4406 * util/grub-script-check.c: grub-script-check tool.
4407 * conf/common.rmk: Make rules for grub-script-check.
4409 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4411 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4412 spotting it back in 2008. Shame on me for forgetting he did.
4414 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4416 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4418 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4419 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4420 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4421 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4422 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4423 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4425 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4427 * include/grub/test.h: Add license header.
4428 * tests/example_functional_test.c: Likewise.
4429 * tests/example_unit_test.c: Likewise.
4430 * tests/lib/functional_test.c: Likewise.
4431 * tests/lib/test.c: Likewise.
4432 * tests/lib/unit_test.c: Likewise.
4434 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4436 Use flag-based instead of hook-based video mode selection and "auto"
4439 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4440 (grub_video_set_mode): Changed prototype. All users updated.
4441 (grub_video_check_mode_flag): New inline function.
4442 * video/video.c (parse_modespec): New function.
4443 (grub_video_set_mode): Parse flags and keywords.
4445 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4447 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4450 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4452 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4454 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4456 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4458 * util/grub-emu.c (usage): Likewise.
4459 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4460 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4461 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4462 * util/i386/pc/grub-setup.c (usage): Likewise.
4464 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4466 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4468 (grub_util_info): Likewise.
4469 (grub_util_error): Likewise.
4470 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4471 and/or new lines in `grub_util_warna', `grub_util_info',
4472 `grub_util_error' calls.
4473 * util/getroot.c: Likewise.
4474 * util/grub-editenv.c: Likewise.
4475 * util/grub-emu.c: Likewise.
4476 * util/grub-fstest.c: Likewise.
4477 * util/grub-mkdevicemap.c: Likewise.
4478 * util/grub-mkfont.c: Likewise.
4479 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4480 * util/grub-mkrelpath.c: Likewise.
4481 * util/grub-pe2elf.c: Likewise.
4482 * util/grub-probe.c: Likewise.
4483 * util/hostdisk.c: Likewise.
4484 * util/i386/efi/grub-mkimage.c: Likewise.
4485 * util/i386/pc/grub-mkimage.c: Likewise.
4486 * util/i386/pc/grub-setup.c: Likewise.
4487 * util/ieee1275/ofpath.c: Likewise.
4488 * util/mkisofs/eltorito.c: Likewise.
4489 * util/mkisofs/rock.c: Likewise.
4490 * util/mkisofs/write.c: Likewise.
4491 * util/raid.c: Likewise.
4492 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4493 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4495 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4497 Enable multiboot on non-pc.
4499 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4500 multiboot.mod and multiboot2.mod to ...
4501 * conf/i386.rmk (pkglib_MODULES): ... here.
4502 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4504 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4505 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4507 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4508 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4510 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4511 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4513 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4514 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4516 (ata_mod_SOURCES): Removed.
4517 (ata_mod_CFLAGS): Likewise.
4518 (ata_mod_LDFLAGS): Likewise.
4519 (relocator_mod_SOURCES): Removed.
4520 (relocator_mod_CFLAGS): Likewise.
4521 (relocator_mod_ASFLAGS): Likewise.
4522 (relocator_mod_LDFLAGS): Likewise.
4524 * include/grub/x86_64/multiboot.h: New file.
4525 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4528 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4530 Video multiboot support.
4532 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4534 * include/multiboot.h: Resynced with multiboot specification.
4535 * include/multiboot2.h: Likewise.
4536 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4537 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4538 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4539 (HAS_VGA_TEXT): Likewise.
4540 (accepts_video): New variable.
4541 (grub_multiboot_set_accepts_video): New function.
4542 (grub_multiboot_get_mbi_size): Account for video structures.
4543 (set_video_mode): New function.
4544 (retrieve_video_parameters): Likewise.
4545 (grub_multiboot_make_mbi): Fill video fields.
4547 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4551 * include/grub/video.h (grub_video_driver_id): New type.
4552 (grub_video_adapter): New member 'id'. All users updated.
4553 (grub_video_get_driver_id): New proto.
4554 * video/video.c (grub_video_get_driver_id): New function.
4556 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4558 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4561 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4563 * normal/cmdline.c (print_completion): Gettextizze.
4565 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4567 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4569 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4571 * gettext/gettext.c (grub_gettext_translate): Push and pop
4573 (grub_gettext_delete_list): Change comment style.
4574 * kern/err.c (grub_error): Gettextizze.
4575 (grub_fatal): Gettextizze.
4577 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4579 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4580 (grub_linux16_real_boot): ... this.
4581 * kern/i386/loader.S: Likewise.
4582 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4583 (grub_linux16_boot): New function. Switches to text mode and calls
4584 grub_linux16_real_boot().
4586 * loader/i386/bsd.c: Include `<grub/video.h>'.
4587 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4588 text mode before calling grub_unix_real_boot().
4590 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4591 (grub_multiboot_boot): Switch to text mode before calling
4592 grub_relocator32_boot().
4594 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4595 (grub_chainloader_boot): Switch to text mode before calling
4596 grub_chainloader_real_boot().
4598 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4599 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4601 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4604 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4605 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4607 * util/grub.d/00_header.in: Define a "savedefault" function for use
4609 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4611 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4612 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4614 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4615 saved_entry if boot_once is unset.
4616 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4617 previous saved entry (i.e. grub-reboot).
4619 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4621 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4623 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4625 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4627 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4629 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4631 * util/grub-reboot.in: Fix --version output.
4632 * util/grub-set-default.in: Likewise.
4634 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4636 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4639 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4641 * util/grub.d/00_header.in: Quote the value assigned to `default',
4642 in case it contains spaces.
4644 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4646 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4647 `save_default_entry' call from the macosx case to the linux case.
4649 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4650 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4652 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4653 in `chosen' environment variable.
4654 * normal/menu_text.c (get_entry_number): Check if the variable
4655 matches the title of a menu entry.
4656 (run_menu): Pass menu to get_entry_number.
4658 * util/grub-reboot.in: New file.
4659 * util/grub-set-default.in: New file.
4660 * conf/common.rmk (grub-reboot): New utility.
4661 (grub-set-default): New utility.
4663 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4664 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4665 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4666 move it to `saved_entry' for the next boot. Load environment on
4668 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4669 * util/grub.d/10_hurd.in: Likewise.
4670 * util/grub.d/10_linux.in (linux_entry): Likewise.
4671 * util/grub.d/10_windows.in: Likewise.
4672 * util/grub.d/30_os-prober.in: Likewise.
4674 * util/grub-install.in: Create environment block.
4675 * util/i386/efi/grub-install.in: Likewise.
4676 * util/ieee1275/grub-install.in: Likewise.
4677 * util/sparc64/ieee1275/grub-install.in: Likewise.
4679 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4681 Unit testing framework for GRUB.
4683 * Makefile.in: Test framework build rules for 'make check'.
4684 * conf/tests.rmk: Build rules for individual tests and framework.
4686 * include/grub/test.h: Header file for whitebox tests.
4687 * tests/lib/functional_test.c: Framework support for whitebox
4689 * tests/lib/test.c: Common whitebox testing code for unit and
4691 * tests/lib/unit_test.c: Framework support for whitebox unit
4694 * tests/util/grub-shell-tester.in: Support utility for grub-script
4696 * tests/util/grub-shell.in: Utility to execute grub-script
4697 commands in a Qemu instance.
4699 * tests/example_functional_test.c: Example whitebox functional
4701 * tests/example_grub_script_test.in: Example grub-script test.
4702 * tests/example_scripted_test.in: Example scripted test.
4703 * tests/example_unit_test.c: Example whitebox unit test.
4705 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4707 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4708 Add loader/i386/multiboot_mbi.c.
4709 (multiboot2_mod_SOURCES): Likewise.
4710 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4711 (multiboot2_mod_SOURCES): Likewise.
4712 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4713 (grub_multiboot_make_mbi): Likewise.
4714 (grub_multiboot_free_mbi): Likewise.
4715 (grub_multiboot_init_mbi): Likewise.
4716 (grub_multiboot_add_module): Likewise.
4717 (grub_multiboot_set_bootdev): Likewise.
4718 * loader/i386/multiboot.c (mbi): Removed.
4719 (mbi_dest): Likewise.
4720 (alloc_mbi): New variable.
4721 (grub_multiboot_payload_size): Removed. All users updated.
4722 (grub_multiboot_pure_size): New variable.
4723 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4724 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4725 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4726 (grub_fill_multiboot_mmap): Likewise.
4727 (grub_multiboot_get_bootdev): Likewise.
4728 (grub_multiboot): Use multiboot_mbi functions.
4729 * loader/i386/multiboot_mbi.c: New file.
4731 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4733 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4734 it would result in module crash.
4736 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4738 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4739 (grub_ofconsole_getwh): Split to ...
4740 (grub_ofconsole_getwh): ... this.
4741 (grub_ofconsole_dimensions): ...and this.
4742 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4744 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4746 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4748 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4750 * loader/i386/pc/multiboot2.c: Removed stalled file.
4752 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4754 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4755 Reported by: Grégoire Sutre
4757 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4759 * util/misc.c (canonicalize_file_name): New function.
4760 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4761 instead of realpath().
4763 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4765 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4766 and make it clearer that it's optional. Based on confusion
4769 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4771 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4772 in premature implicit newline.
4774 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4776 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4777 which resulted in garbled command line at the end of screen.
4779 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4781 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4782 initialization with similar approach as with other Linux loaders.
4784 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4786 Fix i386-ieee1275 build.
4788 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4789 and grub_term_height() for video_{width,height} initialization.
4791 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4795 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4797 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4798 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4800 Support for multiple terminals.
4802 * Makefile.in (pkglib_DATA): terminal.lst.
4803 (terminal.lst): New target.
4804 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4805 (GRUB_MOD_INIT(handler)): Likewise.
4806 (GRUB_MOD_FINI(handler)): Likewise.
4807 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4808 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4809 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4810 (grub_cmd_sleep): Use grub_term_save_pos.
4811 * commands/terminal.c: New file.
4812 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4813 commands/terminal.c and lib/charset.c.
4814 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4815 (pkglib_MODULES): Add terminal.mod.
4816 (terminal_mod_SOURCES): New variable.
4817 (terminal_mod_CFLAGS): Likewise.
4818 (terminal_mod_LDFLAGS): Likewise.
4819 * genhandlerlist.sh: Don't handle terminals.
4820 * genmk.rb: Generate terminal-*.lst.
4821 * genterminallist.sh: New file.
4822 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4823 (grub_is_valid_utf8): Likewise.
4824 (grub_utf8_to_ucs4_alloc): Likewise.
4825 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4826 (grub_menu_register_viewer): Changed argument.
4827 (grub_menu_try_text): New proto.
4828 (grub_gfxmenu_try_hook): New declaration.
4829 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4830 (grub_menu_init_page): Additional argument term.
4831 (grub_normal_init_page): Likewise.
4832 (grub_cmdline_get): Arguments simplified.
4833 (grub_utf8_to_ucs4_alloc): Removed.
4834 (grub_print_ucs4): Additional argument term.
4835 (grub_getstringwidth): Likewise.
4836 (grub_print_message_indented): Likewise.
4837 (grub_menu_text_register_instances): New proto.
4838 (grub_show_menu): Likewise.
4839 (read_terminal_list): Likewise.
4840 (grub_set_more): Likewise.
4841 * include/grub/parser.h: Include handler.h.
4842 * include/grub/reader.h: Rewritten.
4843 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4844 (GRUB_TERM_WIDTH): Changed to function.
4845 (GRUB_TERM_HEIGHT): Likewise.
4846 (GRUB_TERM_BORDER_WIDTH): Likewise.
4847 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4848 (GRUB_TERM_NUM_ENTRIES): Likewise.
4849 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4850 (GRUB_TERM_CURSOR_X): Likewise.
4851 (grub_term_input_class): Likewise.
4852 (grub_term_output_class): Likewise.
4853 (grub_term_outputs_disabled): New declaration.
4854 (grub_term_inputs_disabled): Likewise.
4855 (grub_term_outputs): Likewise.
4856 (grub_term_inputs): Likewise.
4857 (grub_term_register_input): Rewritten.
4858 (grub_term_register_output): Likewise.
4859 (grub_term_unregister_input): Likewise.
4860 (grub_term_unregister_output): Likewise.
4861 (FOR_ACTIVE_TERM_INPUTS): New macro.
4862 (FOR_DISABLED_TERM_INPUTS): Likewise.
4863 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4864 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4865 * include/grub/terminfo.h: Add oterm argument to all protypes.
4866 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4867 Use grub_rescue_run.
4868 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4870 * kern/reader.c: Removed. All users updated.
4871 * kern/rescue_reader.c (grub_rescue_init): Removed.
4872 (grub_rescue_reader): Likewise.
4873 (grub_register_rescue_reader): Likewise.
4874 (grub_rescue_run): New function based on kern/reader.c.
4875 * kern/term.c: Adapted for multiterm.
4876 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4877 (grub_is_valid_utf8): Likewise.
4878 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4879 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4881 * loader/i386/linux.c (grub_linux_boot): Likewise.
4882 * normal/auth.c (grub_username_get): New function.
4883 (grub_auth_check_authentication): Use grub_username_get.
4884 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4885 * normal/color.c: Adapt for multiterm.
4886 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4887 (grub_normal_init_page): Additional argument term.
4888 (read_lists): Call read_terminal_lists.
4889 (grub_enter_normal_mode): Call grub_cmdline_run.
4890 Handle grub_normal_exit_level.
4891 (grub_cmd_normal): Make reentrant.
4892 (grub_cmd_normal_exit): New function.
4893 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4894 * normal/menu.c: Adapt for multiterm.
4895 * normal/menu_entry.c: Likewise.
4896 * normal/menu_text.c: Likewise.
4897 * normal/menu_viewer.c: Removed. All users updated.
4898 * normal/term.c: New file.
4899 * util/console.c: Change order of includes to workaround a bug in
4901 * term/terminfo.c: New argument oterm on all exported functions.
4903 * util/grub-editenv.c (grub_term_input_class): Removed.
4904 (grub_term_output_class): Likewise.
4906 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4908 Make loader output a bit more user-friendly.
4910 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4911 is being loaded. Likewise for the Hurd.
4913 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4914 that kernel of FreeBSD ${version} is being loaded.
4916 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4918 (grub_cmd_initrd): Likewise.
4919 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4920 that Linux ${version} is being loaded. Likewise for initrd.
4922 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4924 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4926 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4928 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4929 (GRUB_MOD_INIT): Gettextizze.
4930 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4931 (GRUB_MOD_INIT): Gettextizze.
4932 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4933 (grub_cmd_linux): Capitalise Linux.
4934 (GRUB_MOD_INIT): Gettextizze.
4935 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4936 (grub_cmd_linux): Capitalise Linux.
4937 (GRUB_MOD_INIT): Gettextizze.
4938 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4939 (grub_cmd_linux): Capitalise Linux.
4940 (GRUB_MOD_INIT): Gettextizze.
4941 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4942 (GRUB_MOD_INIT): Gettextizze.
4943 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4944 (grub_cmd_linux): Capitalise Linux.
4945 (GRUB_MOD_INIT): Gettextizze.
4946 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4947 (grub_cpu_xnu_init): Gettextizze.
4948 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4949 (GRUB_MOD_INIT): Gettextizze.
4950 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4951 (GRUB_MOD_INIT): Gettextizze.
4952 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4953 (grub_linux_load64): Capitalise Linux.
4954 (GRUB_MOD_INIT): Gettextizze.
4955 * loader/xnu.c: Include `<grub/i18n.h>'.
4956 (GRUB_MOD_INIT): Gettextizze.
4957 * po/POTFILES: Add `loader/efi/appleloader.c',
4958 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4959 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4960 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4961 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4962 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4965 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4967 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4969 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4971 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4972 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4973 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4975 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4977 Reset Multiboot 2 support. New loader implements the draft in
4978 /branches/multiboot2 and shares as much code as possible with the
4979 production Multiboot 1 implementation.
4981 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4982 * loader/multiboot2.c: Likewise.
4983 * loader/i386/multiboot_helper.S: Likewise.
4984 * include/multiboot2.h: Replace with latest version from the draft
4985 in /branches/multiboot2.
4987 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4988 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4989 and `loader/multiboot2.c'.
4990 (pkglib_MODULES): Add `multiboot2.mod'.
4991 (multiboot2_mod_SOURCES): New variable.
4992 (multiboot2_mod_LDFLAGS): Likewise.
4993 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4995 * conf/i386-pc.rmk: Likewise.
4997 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4998 (multiboot_mod_SOURCES): Remove variable.
4999 (multiboot_mod_LDFLAGS): Likewise.
5000 (multiboot_mod_CFLAGS): Likewise.
5002 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5003 `<multiboot2.h>' instead of `<multiboot.h>'.
5004 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5005 (MULTIBOOT_HEADER_MAGIC): New macros.
5007 * loader/multiboot_loader.c (module_version_status): Remove variable.
5008 (find_multi_boot2_header): Remove function.
5009 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5010 logic. Always check for the Multiboot version we're compiling for.
5011 (grub_cmd_module_loader): Likewise.
5012 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5013 command instead of `multiboot'.
5015 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5017 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5018 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5021 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5022 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5024 Fix breakage introduced with previous commit.
5026 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5028 * normal/handler.c (read_handler_list): Revert part of previous commit
5029 affecting this file.
5030 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5031 (grub_normal_execute): ... here.
5033 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5035 Merge prefix-redefinition-fix branch.
5037 * normal/autofs.c (read_fs_list): Make function capable of being
5038 run multiple times, gracefuly replacing the previous data
5040 * normal/dyncmd.c (read_command_list): Likewise.
5041 * normal/handler.c (read_handler_list): Likewise.
5042 * normal/main.c (read_lists): New function. Calls all the
5043 list reading functions.
5044 (grub_normal_execute): Use read_lists() instead of calling all
5045 list reading functions explicitly. Register read_lists() as a
5046 variable hook attached to ${prefix}.
5048 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5050 Merge crypto branch.
5052 * Makefile.in (pkglib_DATA): Add crypto.lst.
5053 (crypto.lst): New target.
5054 * commands/hashsum.c: New file.
5055 * commands/password.c (check_password): Use grub_crypto_memcmp.
5056 * commands/password_pbkdf2.c: New file.
5057 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5058 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5059 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5060 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5061 -I$(srcdir)/lib/libgcrypt_wrap.
5062 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5063 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5064 password_pbkdf2.mod.
5065 (crypto_mod_SOURCES): New variable.
5066 (crypto_mod_CFLAGS): Likewise.
5067 (crypto_mod_LDFLAGS): Likewise.
5068 (hashsum_mod_SOURCES): New variable.
5069 (hashsum_mod_CFLAGS): Likewise.
5070 (hashsum_mod_LDFLAGS): Likewise.
5071 (pbkdf2_mod_SOURCES): New variable.
5072 (pbkdf2_mod_CFLAGS): Likewise.
5073 (pbkdf2_mod_LDFLAGS): Likewise.
5074 (password_pbkdf2_mod_SOURCES): New variable.
5075 (password_pbkdf2_mod_CFLAGS): Likewise.
5076 (password_pbkdf2_mod_LDFLAGS): Likewise.
5077 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5078 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5079 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5080 Include conf/gcry.rmk.
5081 * include/grub/auth.h: Rewritten.
5082 * include/grub/crypto.h: New file.
5083 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5084 * include/grub/normal.h (read_crypto_list): New prototype.
5085 * lib/crypto.c: New file.
5086 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5087 * lib/pbkdf2.c: Likewise.
5088 * normal/auth.c (grub_auth_strcmp): Removed.
5089 (grub_iswordseparator): Likewise.
5090 (grub_auth_strword): Likewise.
5091 (is_authenticated): Use grub_strword.
5092 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5093 and grub_strword. Pass entered password to authentication callback.
5094 * normal/crypto.c: New file.
5095 * normal/main.c: Call read_crypto_list.
5096 * util/grub-mkpasswd-pbkdf2.c: New file.
5097 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5099 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5101 Fix descent and ascent calculation.
5103 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5104 (options): New option "asce".
5106 (add_char): Ignore invalid glyphs for descent calculation.
5107 Calculate ascent from actual content.
5108 (print_glyphs): Use 'asce'.
5109 (write_font): Likewise. Allow ascent override.
5110 (main): Handle "asce" option.
5112 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5114 * kern/err.c: Include `<grub/i18n.h>'.
5115 (grub_print_error): Add full stop. Gettextizze.
5116 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5117 (grub_bsd_load_elf): Capitalise ELF.
5118 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5119 (grub_cmd_freebsd_module): Likewise.
5120 (grub_cmd_freebsd_module_elf): Likewise.
5121 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5123 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5125 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5126 * commands/search_file.c (HELP_MESSAGE): New macro.
5127 * commands/search_label.c (HELP_MESSAGE): Likewise.
5128 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5129 * po/POTFILES: Add `commands/search_file.c',
5130 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5131 `commands/search.c'.
5133 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5135 * config.rpath: Update from Gnulib.
5137 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5139 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5141 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5143 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5145 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5147 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5148 arguments to fread so that we get a return value in bytes, rather
5149 than something that will normally be rounded down to 0.
5150 Adjust error handling to avoid producing garbage when size_t is not
5151 the same size as long long.
5153 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5155 * util/mkisofs/write.c (padblock_write): Check return value of
5158 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5160 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5163 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5165 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5167 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5168 instead of manual alignment.
5169 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5170 verbose). Avoid attempts to read past end of the device
5171 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5172 but GRUB_DISK_CACHE_SIZE may exceed that).
5174 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5176 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5177 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5180 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5182 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5184 (grub_efi_piwg_device_path): New structure
5185 (grub_efi_piwg_device_path_t): New type.
5186 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5187 (devpath_1): Transform to a structure. All users updated.
5188 (devpath_2): Likewise.
5189 (devpath_3): Likewise.
5190 (devpath_4): Likewise.
5191 (devpath_5): Likewise.
5193 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5195 * loader/efi/appleloader.c: Restored. Update all users.
5197 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5199 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5201 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5202 (struct boot_blocklist): Move from here ...
5203 * include/grub/i386/pc/boot.h [ASM_FILE]
5204 (struct grub_boot_blocklist): ... to here. Update all users.
5205 (setup): Only initialize `start' member of `first_block'
5206 structure. Add assert() calls to verify the other members.
5208 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5209 (generate_image): Fix broken blocklist length initialization.
5210 Add assert() call to verify blocklist `segment' field.
5212 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5214 * loader/efi/appleloader.c: Remove. Update all users.
5216 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5218 * boot/i386/pc/boot.S: Update copyright year.
5219 * boot/i386/pc/cdboot.S: Likewise.
5220 * boot/i386/pc/diskboot.S: Likewise.
5221 * boot/i386/pc/lnxboot.S: Likewise.
5222 * boot/i386/pc/pxeboot.S: Likewise.
5223 * bus/pci.c: Likewise.
5224 * commands/cmp.c: Likewise.
5225 * commands/help.c: Likewise.
5226 * commands/hexdump.c: Likewise.
5227 * commands/i386/pc/halt.c: Likewise.
5228 * commands/i386/pc/play.c: Likewise.
5229 * commands/i386/pc/vbeinfo.c: Likewise.
5230 * commands/ls.c: Likewise.
5231 * commands/test.c: Likewise.
5232 * disk/dmraid_nvidia.c: Likewise.
5233 * disk/i386/pc/biosdisk.c: Likewise.
5234 * disk/ieee1275/nand.c: Likewise.
5235 * disk/ieee1275/ofdisk.c: Likewise.
5236 * disk/lvm.c: Likewise.
5237 * disk/raid.c: Likewise.
5238 * disk/raid6_recover.c: Likewise.
5239 * disk/scsi.c: Likewise.
5240 * fs/affs.c: Likewise.
5241 * fs/cpio.c: Likewise.
5242 * fs/ext2.c: Likewise.
5243 * fs/hfs.c: Likewise.
5244 * fs/iso9660.c: Likewise.
5245 * fs/ntfs.c: Likewise.
5246 * fs/sfs.c: Likewise.
5247 * fs/udf.c: Likewise.
5248 * fs/ufs.c: Likewise.
5249 * fs/xfs.c: Likewise.
5250 * gencmdlist.sh: Likewise.
5251 * genmk.rb: Likewise.
5252 * include/grub/disk.h: Likewise.
5253 * include/grub/efi/api.h: Likewise.
5254 * include/grub/efi/efi.h: Likewise.
5255 * include/grub/efi/pe32.h: Likewise.
5256 * include/grub/elf.h: Likewise.
5257 * include/grub/fs.h: Likewise.
5258 * include/grub/i386/at_keyboard.h: Likewise.
5259 * include/grub/i386/pc/memory.h: Likewise.
5260 * include/grub/i386/pc/vbe.h: Likewise.
5261 * include/grub/i386/pci.h: Likewise.
5262 * include/grub/i386/tsc.h: Likewise.
5263 * include/grub/ieee1275/ieee1275.h: Likewise.
5264 * include/grub/ntfs.h: Likewise.
5265 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5266 * include/grub/sparc64/libgcc.h: Likewise.
5267 * include/grub/symbol.h: Likewise.
5268 * include/grub/types.h: Likewise.
5269 * include/multiboot2.h: Likewise.
5270 * io/gzio.c: Likewise.
5271 * kern/device.c: Likewise.
5272 * kern/disk.c: Likewise.
5273 * kern/efi/efi.c: Likewise.
5274 * kern/efi/mm.c: Likewise.
5275 * kern/elf.c: Likewise.
5276 * kern/file.c: Likewise.
5277 * kern/i386/dl.c: Likewise.
5278 * kern/i386/pc/init.c: Likewise.
5279 * kern/i386/pc/startup.S: Likewise.
5280 * kern/ieee1275/ieee1275.c: Likewise.
5281 * kern/ieee1275/init.c: Likewise.
5282 * kern/main.c: Likewise.
5283 * kern/mm.c: Likewise.
5284 * kern/powerpc/dl.c: Likewise.
5285 * kern/sparc64/dl.c: Likewise.
5286 * kern/x86_64/dl.c: Likewise.
5287 * lib/hexdump.c: Likewise.
5288 * loader/efi/appleloader.c: Likewise.
5289 * loader/i386/ieee1275/linux.c: Likewise.
5290 * loader/i386/pc/chainloader.c: Likewise.
5291 * loader/i386/pc/linux.c: Likewise.
5292 * loader/i386/pc/multiboot2.c: Likewise.
5293 * loader/ieee1275/multiboot2.c: Likewise.
5294 * loader/multiboot2.c: Likewise.
5295 * loader/multiboot_loader.c: Likewise.
5296 * loader/powerpc/ieee1275/linux.c: Likewise.
5297 * normal/completion.c: Likewise.
5298 * normal/menu_entry.c: Likewise.
5299 * partmap/apple.c: Likewise.
5300 * util/grub.d/10_hurd.in: Likewise.
5301 * util/hostfs.c: Likewise.
5302 * video/readers/png.c: Likewise.
5304 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5306 * include/grub/misc.h (GNUC_PREREQ): New macro.
5307 (ATTRIBUTE_ERROR): New macro.
5308 * include/grub/list.h (grub_bad_type_cast_real): Use
5311 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5313 * normal/menu_text.c (print_message): Change messages.
5315 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5317 * normal/menu_entry.c (store_completion): Gettextizze.
5319 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5321 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5323 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5325 * po/POTFILES: Sort correctly.
5327 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5329 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5330 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5331 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5333 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5334 summary. Gettextizze the strings.
5335 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5336 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5337 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5339 (GRUB_MOD_INIT): Remove command name from summary.
5340 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5342 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5343 * term/i386/pc/serial.c (options): Add full stops.
5344 (GRUB_MOD_INIT): Remove command name from the summary.
5346 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5348 * commands/acpi.c: Gettextizze help strings and/or options. Include
5349 `grub/i18n.h' if needed.
5350 * commands/blocklist.c: Likewise.
5351 * commands/boot.c: Likewise.
5352 * commands/cat.c: Likewise.
5353 * commands/cmp.c: Likewise.
5354 * commands/configfile.c: Likewise.
5355 * commands/crc.c: Likewise.
5356 * commands/date.c: Likewise.
5357 * commands/echo.c: Likewise.
5358 * commands/efi/fixvideo.c: Likewise.
5359 * commands/efi/loadbios.c: Likewise.
5360 * commands/gptsync.c: Likewise.
5361 * commands/halt.c: Likewise.
5362 * commands/handler.c: Likewise.
5363 * commands/hdparm.c: Likewise.
5364 * commands/hexdump.c: Likewise.
5365 * commands/i386/cpuid.c: Likewise.
5366 * commands/i386/pc/drivemap.c: Likewise.
5367 * commands/i386/pc/halt.c: Likewise.
5368 * commands/i386/pc/pxecmd.c: Likewise.
5369 * commands/i386/pc/vbeinfo.c: Likewise.
5370 * commands/i386/pc/vbetest.c: Likewise.
5371 * commands/ieee1275/suspend.c: Likewise.
5372 * commands/keystatus.c: Likewise.
5373 * commands/loadenv.c: Likewise.
5374 * commands/ls.c: Likewise.
5375 * commands/lsmmap.c: Likewise.
5376 * commands/lspci.c: Likewise.
5377 * commands/memrw.c: Likewise.
5378 * commands/minicmd.c: Likewise.
5379 * commands/parttool.c: Likewise.
5380 * commands/password.c: Likewise.
5381 * commands/probe.c: Likewise.
5382 * commands/read.c: Likewise.
5383 * commands/reboot.c: Likewise.
5384 * commands/search.c: Likewise.
5385 * commands/sleep.c: Likewise.
5386 * commands/test.c: Likewise.
5387 * commands/true.c: Likewise.
5388 * commands/usbtest.c: Likewise.
5389 * commands/videotest.c: Likewise.
5390 * commands/xnu_uuid.c: Likewise.
5391 * disk/loopback.c: Likewise.
5392 * hello/hello.c: Likewise.
5393 * loader/i386/bsd.c: Likewise.
5394 * term/i386/pc/serial.c: Likewise.
5395 * po/POTFILES: Add new files.
5397 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5399 * term/i386/pc/at_keyboard.c
5400 (keyboard_controller_wait_untill_ready): Rename to ...
5401 (keyboard_controller_wait_until_ready): ... this. Update all users.
5403 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5405 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5406 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5407 string using string width.
5408 * normal/menu_text.c (grub_print_message_indented): Use
5409 grub_print_spaces and not print_spaces.
5410 (print_timeout): Likewise.
5411 (print_spaces): Move to...
5412 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5414 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5418 * gnulib/getdelim.c: New file.
5419 * gnulib/getline.c: Likewise.
5421 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5423 * include/grub/list.h (grub_assert_fail): Removed.
5424 (grub_bad_type_cast_real): New function.
5425 (grub_bad_type_cast): New macro.
5426 (GRUB_AS_LIST): Use grub_bad_type_cast.
5427 (GRUB_AS_LIST_P): Likewise.
5428 (GRUB_AS_NAMED_LIST): Likewise.
5429 (GRUB_AS_NAMED_LIST_P): Likewise.
5430 (GRUB_AS_PRIO_LIST): Likewise.
5431 (GRUB_AS_PRIO_LIST_P): Likewise.
5432 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5434 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5436 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5439 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5441 * configure.ac: Check for TARGET_CFLAGS initialization before we
5442 initialize it ourselves (sigh).
5443 Move a few modifications to TARGET_CFLAGS to be unconditional
5444 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5447 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5448 * term/i386/pc/at_keyboard.c
5449 (keyboard_controller_wait_untill_ready): Likewise.
5450 (keyboard_controller_led): Rename `led_status' paramter to avoid
5453 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5455 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5458 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5460 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5462 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5464 * normal/menu_text.c (grub_print_message_indented): Prevent
5465 past-the-end-of-array dereference.
5467 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5469 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5470 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5472 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5474 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5475 * normal/main.c (grub_normal_read_line): Remove a space from the
5478 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5480 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5481 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5482 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5483 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5484 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5485 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5486 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5488 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5490 * video/readers/jpeg.c (cmd): Declare.
5491 (grub_cmd_jpegtest): Use `grub_command_t' type.
5492 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5494 (GRUB_MOD_FINI): Use `cmd' to unregister.
5495 * video/readers/png.c (cmd): Declare.
5496 (grub_cmd_pngtest): Use `grub_command_t' type.
5497 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5499 (GRUB_MOD_FINI): Use `cmd' to unregister.
5500 * video/readers/tga.c (cmd): Declare.
5501 (grub_cmd_tgatest): Use `grub_command_t' type.
5502 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5504 (GRUB_MOD_FINI): Use `cmd' to unregister.
5506 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5508 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5510 * kern/corecmd.c (grub_register_core_commands): Likewise.
5511 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5512 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5513 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5514 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5515 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5516 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5517 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5518 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5519 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5520 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5521 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5522 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5523 * normal/handler.c (insert_handler): Likewise.
5524 * normal/main.c (GRUB_MOD_INIT): Likewise.
5525 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5527 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5529 * commands/help.c (grub_cmd_help): Print the command name before the
5531 (GRUB_MOD_INIT): Remove command name from the summary.
5532 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5534 * lib/arg.c (find_long): Print the command name before the summary.
5535 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5537 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5538 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5539 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5540 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5541 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5542 * commands/date.c (GRUB_MOD_INIT): Likewise.
5543 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5544 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5545 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5546 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5547 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5548 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5549 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5550 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5551 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5552 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5553 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5554 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5555 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5556 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5557 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5558 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5559 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5560 * commands/password.c (GRUB_MOD_INIT): Likewise.
5561 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5562 * commands/read.c (GRUB_MOD_INIT): Likewise.
5563 * commands/search.c (GRUB_MOD_INIT): Likewise.
5564 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5565 * commands/test.c (GRUB_MOD_INIT): Likewise.
5566 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5567 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5568 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5569 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5570 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5571 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5572 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5573 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5574 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5575 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5576 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5577 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5578 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5579 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5581 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5583 Use search command for preliminar UUID search.
5585 * commands/search.c: Split into ...
5586 * commands/search_wrap.c: ...this
5587 * commands/search.c: ...and this.
5588 * commands/search_file.c: New file.
5589 * commands/search_label.c: New file.
5590 * commands/search_uuid.c: New file.
5591 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5592 Add commands/search_wrap.c, commands/search_file.c,
5593 commands/search_label.c and commands/search_uuid.c.
5594 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5595 (search_mod_SOURCES): Set to commands/search_wrap.c.
5596 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5598 (search_fs_file_mod_SOURCES): New variable.
5599 (search_fs_file_mod_CFLAGS): Likewise.
5600 (search_fs_file_mod_LDFLAGS): Likewise.
5601 (search_label_mod_SOURCES): Likewise.
5602 (search_label_mod_CFLAGS): Likewise.
5603 (search_label_mod_LDFLAGS): Likewise.
5604 (search_fs_uuid_mod_SOURCES): New variable.
5605 (search_fs_uuid_mod_CFLAGS): Likewise.
5606 (search_fs_uuid_mod_LDFLAGS): Likewise.
5607 (fs_file_mod_SOURCES): Removed.
5608 (fs_file_mod_CFLAGS): Likewise.
5609 (fs_file_mod_LDFLAGS): Likewise.
5610 (fs_uuid_mod_SOURCES): Removed.
5611 (fs_uuid_mod_CFLAGS): Likewise.
5612 (fs_uuid_mod_LDFLAGS): Likewise.
5613 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5614 Set to util/grub-install.in.
5615 * disk/fs_file.c: Removed.
5616 * disk/fs_uuid.c: Likewise.
5617 * include/grub/search.h: New file.
5618 * util/grub-install.in: Handle sparc64.
5619 Create and use load.cfg.
5620 * util/sparc64/ieee1275/grub-install.in: Removed.
5622 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5624 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5625 Ignore return status if CF is cleared.
5626 (grub_biosdisk_get_diskinfo_standard): Likewise.
5628 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5630 * term/i386/pc/at_keyboard.c
5631 (keyboard_controller_wait_untill_ready): New function.
5632 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5633 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5634 for keyboard polling, rather than duplicate the same loop. This
5635 saves a few bytes in code size.
5637 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5639 Support for (pxe[:server[:gateway]]) syntax and
5640 use environment variable for PXE.
5642 * commands/i386/pc/pxecmd.c (options): Removed.
5643 (print_ip): Removed.
5644 (grub_cmd_pxe): Removed
5645 (grub_cmd_pxe_unload): New function.
5646 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5647 (grub_pxe_your_ip): Made static.
5648 (grub_pxe_default_server_ip): Likewise.
5649 (grub_pxe_default_gateway_ip): Likewise.
5650 (grub_pxe_blksize): Likewise.
5651 (parse_ip): New function.
5652 (grub_pxe_open): Support server and gateway specification.
5653 (grub_pxe_close): Free disk->data.
5654 (grub_pxefs_open): Use disk->data.
5655 (grub_pxefs_read): Likewise.
5656 (grub_env_write_readonly): New function.
5657 (set_mac_env): Likewise.
5658 (set_env_limn_ro): Likewise.
5659 (parse_dhcp_vendor): Likewise.
5660 (grub_pxe_detect): Set the environment variables.
5661 (set_ip_env): New function.
5662 (write_ip_env): Likewise.
5663 (grub_env_write_pxe_default_server): Likewise.
5664 (grub_env_write_pxe_default_gateway): Likewise.
5665 (grub_env_write_pxe_blocksize): Likewise.
5666 (GRUB_MOD_INIT(pxe)): Set environment variables.
5667 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5668 (grub_pxe_mac_addr_t): ... this. All users updated.
5669 (grub_pxe_your_ip): Removed.
5670 (grub_pxe_server_ip): Likewise.
5671 (grub_pxe_gateway_ip): Likewise.
5672 (grub_pxe_blksize): Likewise.
5674 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5676 * commands/help.c: Include `<grub/i18n.h>'.
5677 (grub_cmd_help): Gettextizze.
5678 (GRUB_MOD_INIT): Likewise.
5679 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5680 (GRUB_MOD_INIT): Gettextizze.
5681 * commands/search.c: Include `<grub/i18n.h>'.
5682 (options): Gettextizze.
5683 (GRUB_MOD_INIT): Gettextizze.
5684 * lib/arg.c: Include `<grub/i18n.h>'.
5685 (help_options): Gettextizze.
5686 (find_long): Likewise.
5687 (grub_arg_show_help): Likewise.
5688 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5689 (read_command_list): Gettextizze.
5690 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5691 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5693 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5695 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5696 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5697 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5698 (led_status): New variable.
5699 (keyboard_controller_led): New function.
5700 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5701 update led status for caps lock, num lock and scroll lock.
5703 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5705 * util/hostdisk.c (open_device): Fix a comment.
5707 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5709 * util/grub-install.in (host_os): New variable.
5710 * util/i386/efi/grub-install.in (host_os): Likewise.
5712 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5714 * util/mkisofs/write.c (padblock_write): Abort when given an
5715 excedingly large embed image, instead of silently truncating it.
5717 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5719 * include/multiboot.h: Indentation fixes.
5721 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5723 * include/multiboot.h (struct multiboot_aout_symbol_table)
5724 (struct multiboot_elf_section_header_table): New structure
5725 declarations (stolen from GRUB Legacy).
5726 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5729 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5730 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5733 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5735 * include/multiboot.h: Make comments src2texi-friendly.
5737 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5739 For consistency with [multiboot]/docs/boot.S.
5741 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5742 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5743 (MULTIBOOT_MAGIC2): Rename from this ...
5744 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5746 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5748 * include/multiboot.h: Remove `<grub/types.h>'.
5749 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5750 types. Update all users.
5752 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5754 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5755 `couldn't' and `can not' by `cannot'.
5756 * commands/i386/pc/drivemap.c: Likewise.
5757 * disk/ata.c: Likewise.
5758 * disk/ieee1275/nand.c: Likewise.
5759 * fs/affs.c: Likewise.
5760 * fs/fat.c: Likewise.
5761 * fs/hfs.c: Likewise.
5762 * fs/hfsplus.c: Likewise.
5763 * fs/iso9660.c: Likewise.
5764 * fs/jfs.c: Likewise.
5765 * fs/minix.c: Likewise.
5766 * fs/reiserfs.c: Likewise.
5767 * fs/sfs.c: Likewise.
5768 * fs/udf.c: Likewise.
5769 * fs/ufs.c: Likewise.
5770 * fs/xfs.c: Likewise.
5771 * loader/powerpc/ieee1275/linux.c: Likewise.
5772 * loader/sparc64/ieee1275/linux.c: Likewise.
5773 * util/grub-probe.c: Likewise.
5774 * util/misc.c: Likewise.
5776 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5778 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5780 * commands/acpi.c: Likewise.
5781 * commands/blocklist.c: Likewise.
5782 * commands/efi/loadbios.c: Likewise.
5783 * commands/i386/pc/drivemap.c: Likewise.
5784 * commands/loadenv.c: Likewise.
5785 * commands/memrw.c: Likewise.
5786 * commands/password.c: Likewise.
5787 * commands/videotest.c: Likewise.
5788 * disk/ata.c: Likewise.
5789 * disk/ata_pthru.c: Likewise.
5790 * disk/dmraid_nvidia.c: Likewise.
5791 * disk/ieee1275/nand.c: Likewise.
5792 * disk/ieee1275/ofdisk.c: Likewise.
5793 * disk/loopback.c: Likewise.
5794 * disk/lvm.c: Likewise.
5795 * disk/mdraid_linux.c: Likewise.
5796 * disk/raid.c: Likewise.
5797 * disk/raid6_recover.c: Likewise.
5798 * disk/scsi.c: Likewise.
5799 * efiemu/main.c: Likewise.
5800 * efiemu/mm.c: Likewise.
5801 * efiemu/pnvram.c: Likewise.
5802 * efiemu/symbols.c: Likewise.
5803 * font/font.c: Likewise.
5804 * fs/cpio.c: Likewise.
5805 * fs/hfsplus.c: Likewise.
5806 * fs/iso9660.c: Likewise.
5807 * fs/jfs.c: Likewise.
5808 * fs/minix.c: Likewise.
5809 * fs/ntfs.c: Likewise.
5810 * fs/ntfscomp.c: Likewise.
5811 * fs/reiserfs.c: Likewise.
5812 * fs/ufs.c: Likewise.
5813 * fs/xfs.c: Likewise.
5814 * gettext/gettext.c: Likewise.
5815 * include/grub/auth.h: Likewise.
5816 * kern/elf.c: Likewise.
5817 * kern/file.c: Likewise.
5818 * kern/ieee1275/init.c: Likewise.
5819 * kern/ieee1275/mmap.c: Likewise.
5820 * kern/ieee1275/openfw.c: Likewise.
5821 * kern/powerpc/dl.c: Likewise.
5822 * kern/sparc64/dl.c: Likewise.
5823 * lib/arg.c: Likewise.
5824 * loader/i386/bsd.c: Likewise.
5825 * loader/i386/bsdXX.c: Likewise.
5826 * loader/i386/efi/linux.c: Likewise.
5827 * loader/i386/efi/xnu.c: Likewise.
5828 * loader/i386/ieee1275/linux.c: Likewise.
5829 * loader/i386/linux.c: Likewise.
5830 * loader/i386/multiboot.c: Likewise.
5831 * loader/i386/pc/linux.c: Likewise.
5832 * loader/i386/pc/multiboot2.c: Likewise.
5833 * loader/i386/xnu.c: Likewise.
5834 * loader/ieee1275/multiboot2.c: Likewise.
5835 * loader/macho.c: Likewise.
5836 * loader/machoXX.c: Likewise.
5837 * loader/multiboot2.c: Likewise.
5838 * loader/multiboot_loader.c: Likewise.
5839 * loader/powerpc/ieee1275/linux.c: Likewise.
5840 * loader/sparc64/ieee1275/linux.c: Likewise.
5841 * loader/xnu.c: Likewise.
5842 * loader/xnu_resume.c: Likewise.
5843 * mmap/i386/pc/mmap.c: Likewise.
5844 * normal/menu_viewer.c: Likewise.
5845 * partmap/acorn.c: Likewise.
5846 * partmap/amiga.c: Likewise.
5847 * partmap/apple.c: Likewise.
5848 * script/lexer.c: Likewise.
5849 * term/gfxterm.c: Likewise.
5850 * term/i386/pc/serial.c: Likewise.
5851 * term/i386/pc/vga.c: Likewise.
5852 * term/ieee1275/ofconsole.c: Likewise.
5853 * term/terminfo.c: Likewise.
5854 * video/bitmap.c: Likewise.
5855 * video/efi_gop.c: Likewise.
5856 * video/efi_uga.c: Likewise.
5857 * video/fb/video_fb.c: Likewise.
5858 * video/i386/pc/vbe.c: Likewise.
5859 * video/readers/tga.c: Likewise.
5860 * video/video.c: Likewise.
5862 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5864 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5865 * commands/lspci.c: Likewise.
5866 * commands/probe.c: Likewise.
5867 * commands/xnu_uuid.c: Likewise.
5868 * conf/i386-coreboot.rmk: Likewise.
5869 * conf/i386-efi.rmk: Likewise.
5870 * conf/i386-ieee1275.rmk: Likewise.
5871 * conf/i386-pc.rmk: Likewise.
5872 * conf/powerpc-ieee1275.rmk: Likewise.
5873 * conf/sparc64-ieee1275.rmk: Likewise.
5874 * conf/x86_64-efi.rmk: Likewise.
5875 * fs/i386/pc/pxe.c: Likewise.
5876 * gettext/gettext.c: Likewise.
5877 * include/grub/efi/graphics_output.h: Likewise.
5878 * include/grub/i386/pc/memory.h: Likewise.
5879 * kern/env.c: Likewise.
5880 * kern/i386/qemu/startup.S: Likewise.
5881 * lib/i386/pc/biosnum.c: Likewise.
5882 * lib/i386/relocator.c: Likewise.
5883 * lib/i386/relocator_asm.S: Likewise.
5884 * lib/relocator.c: Likewise.
5885 * loader/i386/bsd.c: Likewise.
5886 * loader/i386/multiboot.c: Likewise.
5887 * loader/i386/pc/chainloader.c: Likewise.
5888 * loader/i386/xnu.c: Likewise.
5889 * loader/xnu.c: Likewise.
5890 * normal/main.c: Likewise.
5891 * normal/menu_text.c: Likewise.
5892 * util/getroot.c: Likewise.
5893 * util/grub-mkconfig_lib.in: Likewise.
5894 * util/grub.d/00_header.in: Likewise.
5895 * util/i386/pc/grub-mkimage.c: Likewise.
5896 * util/mkisofs/eltorito.c: Likewise.
5897 * util/mkisofs/exclude.h: Likewise.
5898 * util/mkisofs/hash.c: Likewise.
5899 * util/mkisofs/iso9660.h: Likewise.
5900 * util/mkisofs/joliet.c: Likewise.
5901 * util/mkisofs/mkisofs.c: Likewise.
5902 * util/mkisofs/mkisofs.h: Likewise.
5903 * util/mkisofs/multi.c: Likewise.
5904 * util/mkisofs/name.c: Likewise.
5905 * util/mkisofs/rock.c: Likewise.
5906 * util/mkisofs/tree.c: Likewise.
5907 * util/mkisofs/write.c: Likewise.
5908 * video/efi_gop.c: Likewise.
5910 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5912 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5915 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5917 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5918 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5920 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5922 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5923 (GRUB_MOD_INIT(memrw)): Update help line.
5925 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5927 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5928 Use grub_extcmd_t. All users updated.
5929 (options): New variable.
5930 (grub_cmd_read): Restructure for readability. Support "-v" option.
5931 (grub_cmd_write): Restructure for readability.
5933 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5935 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5937 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5939 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5940 with the actual contents of the correspondending make variable.
5941 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5942 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5943 specifying `*.lst' and `efiemu??.o'
5945 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5947 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5948 after function name.
5949 Noticed by Rene Engelhard <rene@debian.org>.
5951 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5953 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5954 (options): New variable.
5955 (iospace): Likewise.
5956 (grub_lspci_iter): List IO spaces if "-i" was given.
5957 (grub_cmd_lspci): Parse options.
5958 (GRUB_MOD_INIT(lspci)): Use extcmd.
5959 (GRUB_MOD_FINI(lspci)): Likewise.
5961 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5963 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5965 Patch by Tony Mancill <tmancill@debian.org>.
5967 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5969 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5970 (grub_uhci_portstatus): Likewise.
5971 (grub_uhci_portstatus): Add necessary delay.
5972 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5974 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5976 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5977 (GRUB_MOD_INIT): Likewise.
5978 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5979 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5980 * commands/echo.c (options): Fix capitalizations and/or full stops.
5981 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5982 (enable_rom_area): Likewise.
5983 (GRUB_MOD_INIT): Likewise.
5984 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5985 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5986 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5987 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5988 * commands/hexdump.c (options): Likewise.
5989 * commands/i386/cpuid.c (options): Likewise.
5990 (GRUB_MOD_INIT): Likewise.
5991 * commands/i386/pc/drivemap.c (options): Likewise.
5992 (GRUB_MOD_INIT): Likewise.
5993 * commands/i386/pc/halt (options): Likewise.
5994 (GRUB_MOD_INIT): Likewise.
5995 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5996 * commands/i386/pc/pxecmd.c (options): Likewise.
5997 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5998 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5999 * commands/keystatus.c (options): Likewise.
6000 (GRUB_MOD_INIT): Likewise.
6001 * commands/loadenv.c (options): Likewise.
6002 * commands/ls.c (options): Likewise.
6003 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6004 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6005 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6006 * commands/parttool.c (helpmsg): Likewise.
6007 * commands/probe.c (options): Likewise.
6008 * commands/read.c (GRUB_MOD_INIT): Likewise.
6009 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6010 * commands/search.c (options): Likewise.
6011 * commands/sleep.c (options): Likewise.
6012 * commands/test.c (GRUB_MOD_INIT): Likewise.
6013 * commands/true.c (GRUB_MOD_INIT): Likewise.
6014 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6015 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6016 * lib/arg.c (help_options): Likewise.
6017 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6019 * po/POTFILES: Add `commands/loadenv.c'.
6021 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6023 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6024 instead of specifying them explicit.
6026 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6028 * NEWS: Add grub-probe support for GNU/Hurd.
6030 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6032 * NEWS: gettext was added after 1.97.
6034 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6036 * util/mkisofs/msdos_partition.h: New file (based on
6037 include/grub/msdos_partition.h).
6038 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6039 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6040 (ld_options, main): Recognize --protective-msdos-label.
6041 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6042 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6043 (padblock_write): If `use_protective_msdos_label' is set, patch a
6044 protective DOS-style label in the output image.
6046 * util/grub-mkrescue.in: Use --protective-msdos-label.
6048 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6050 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6053 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6055 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6057 (ld_options, main): Recognize `--embedded-boot'.
6058 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6060 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6061 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6062 (padblock_write): Likewise. Rewrite to support embedded boot image.
6064 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6065 for BIOS-based disk boot instead of only ElTorito.
6067 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6069 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6070 build (not needed for bootstrap).
6072 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6074 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6075 from i386-pc build (not needed for bootstrap).
6076 Rewrite a pair of strings.
6078 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6080 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6082 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6084 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6086 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6088 * kern/env.c (grub_env_context_open): Mark exported variable for
6091 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6093 * kern/env.c (grub_env_export): Create nonexistent variables before
6096 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6098 * include/grub/auth.h: Include `<grub/i18n.h>'.
6099 (GRUB_GET_PASSWORD): Gettextizze string.
6100 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6102 (grub_utf8_to_ucs4_alloc): Fix indentation.
6103 (grub_print_ucs4): Likewise.
6104 (grub_getstringwidth): Likewise.
6105 (print_message_indented): New declaration.
6106 * normal/auth.c: Include `<grub/i18n.h>'.
6107 (grub_auth_check_authentication): Gettexttize string.
6108 * normal/cmdline.c: Include `<grub/i18n.h>'.
6109 (grub_cmdline_get): Gettextizze.
6110 * normal/color.c: Include `<grub/i18n.h>'.
6111 (grub_parse_color_name_pair): Gettexttize strings.
6112 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6113 string (use `print_message_indented').
6114 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6115 `include/grub/normal.h'.
6116 (print_message_indented): Renamed to ...
6117 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6118 used in normal/main.c).
6119 (print_message): Use `grub_print_message_indented' instead of
6120 `print_message_indented'.
6121 (print_timeout): Likewise.
6122 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6123 (grub_normal_print_device_info): Gettexttize strings.
6124 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6126 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6128 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6129 of arguments. Return number of tokens and not arguments. All users
6132 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6134 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6135 non-MSDOS paritions.
6137 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6139 * include/grub/types.h (UNUSED): Removed since it conflicts with
6140 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6141 Reported by Grégoire Sutre.
6143 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6145 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6146 (grub_print_ucs4_alloc): Likewise.
6147 (grub_getstringwidth): Likewise.
6148 * normal/main.c (grub_normal_init_page): Gettextize version string.
6149 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6150 (getstringwidth): Renamed to ...
6151 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6152 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6153 (grub_print_ucs4): Remove `static' qualifer (now used in
6155 * po/POTFILES: Add normal/main.c.
6157 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6159 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6160 (print_message_indented): Add `margin_left' and `margin_right'
6162 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6164 (print_timeout): Use `print_message_indented' to print the message.
6165 Deletes `second_stage' parameter.
6166 (run_menu): Update `print_timeout' calls.
6168 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6170 Fix console palette on OpenFirmware.
6172 * term/ieee1275/ofconsole.c (MAX): Removed.
6173 (colors): Redone based on VGA palette.
6174 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6175 colors are supported.
6176 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6178 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6180 Fix potential EfiEmu double prepare.
6182 * efiemu/main.c (prepared): New variable
6183 (grub_efiemu_unload): Set prepare to '0'.
6184 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6186 set_virtual_address_map support.
6188 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6190 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6192 (grub_efiemu_crc32): Likewise.
6193 (grub_efiemu_crc64): Likewise.
6194 (grub_efiemu_set_virtual_address_map): Likewise.
6195 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6197 (grub_autoefi_set_virtual_address_map): Likewise.
6198 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6199 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6200 Restructure flow to accomodate it.
6201 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6202 (grub_efiemu_crc): Recompute CRC32.
6203 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6204 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6205 * efiemu/symbols.c (relocated_handle): New variable.
6206 (grub_efiemu_free_syms): Free relocated_handle.
6207 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6208 (grub_efiemu_write_sym_markers): New function.
6209 (grub_efiemu_set_virtual_address_map): Likewise.
6211 Newer XNU parameters.
6213 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6214 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6215 (grub_xnu_fill_devicetree): New prototype.
6216 (grub_xnu_heap_real_start): New variable.
6217 * loader/xnu.c (get_name_ptr): New function.
6218 (grub_xnu_load_driver): Fill namelen and name.
6222 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6223 and 'loader/macho64.c'.
6224 * conf/i386-pc.rmk: Likewise.
6225 * conf/x86_64-efi.rmk: Likewise.
6226 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6227 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6228 * include/grub/macho.h (grub_macho_segment64): New structure.
6229 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6230 (grub_macho_size32): ... to this.
6231 (grub_macho32_get_entry_point): Renamed from ...
6232 (grub_macho_get_entry_point32): ... to this.
6233 (grub_macho_contains_macho64): New prototype.
6234 (grub_macho_size64): Likewise.
6235 (grub_macho_get_entry_point64): Likewise.
6236 (grub_macho32_load): Renamed from ...
6237 (grub_macho_load32): ... to this.
6238 (grub_macho32_filesize): Renamed from ...
6239 (grub_macho_filesize32): ... to this.
6240 (grub_macho32_readfile): Renamed from ...
6241 (grub_macho_readfile32): ... to this.
6242 (grub_macho_filesize64): New prototype.
6243 (grub_macho_readfile64): Likewise.
6244 (grub_macho_parse32): Likewise.
6245 (grub_macho_parse64): Likewise.
6246 * loader/macho.c: Split into ...
6247 * loader/machoXX.c: ... and this. Replace 32 with XX.
6248 * loader/macho32.c: New file.
6249 * loader/macho64.c: Likewise.
6250 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6251 (grub_cmd_xnu_kernel): Make 32-bit only.
6252 (grub_cmd_xnu_kernel64): New function.
6253 (grub_xnu_load_driver): Support Mach-O 64.
6254 (grub_cmd_xnu_mkext): Likewise.
6255 * util/grub.d/30_os-prober.in (osx_entry): New function.
6256 Generate entries for 64-bit boot too.
6258 Eliminate ad-hoc tree format in XNU and EfiEmu.
6260 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6261 * efiemu/pnvram.c: Rewritten to use environment variables.
6264 Inline utf16_to_utf8.
6266 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6267 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6269 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6271 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6272 * commands/usbtest.c (grub_usb_get_string): ... move here.
6273 (usb_print_str): Fix error handling.
6274 * include/grub/usb.h (grub_usb_get_string): Remove.
6276 UTF-8 to UTF-16 transformation.
6278 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6279 (charset_mod_SOURCES): New variable.
6280 (charset_mod_CFLAGS): Likewise.
6281 (charset_mod_LDFLAGS): Likewise.
6282 * include/grub/utf.h: New file.
6283 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6285 Support for device properties.
6287 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6288 (grub_xnu_devprop_device_header): Likewise.
6289 (grub_xnu_devprop_device_descriptor): Likewise.
6290 (grub_xnu_devprop_add_device): New prototype.
6291 (grub_xnu_devprop_remove_device): Likewise.
6292 (grub_xnu_devprop_remove_property): Likewise.
6293 (grub_xnu_devprop_add_property_utf8): Likewise.
6294 (grub_xnu_devprop_add_property_utf16): Likewise.
6295 (grub_cpu_xnu_init): Likewise.
6296 (grub_cpu_xnu_fini): Likewise.
6297 (grub_cpu_xnu_unload): Likewise.
6298 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6299 (property_descriptor): Likewise.
6300 (devices): New variable.
6301 (grub_xnu_devprop_remove_property): New function.
6302 (grub_xnu_devprop_add_device): Likewise.
6303 (grub_xnu_devprop_remove_device): Likewise.
6304 (grub_xnu_devprop_add_property): Likewise.
6305 (grub_xnu_devprop_add_property_utf8): Likewise.
6306 (grub_xnu_devprop_add_property_utf16): Likewise.
6307 (hextoval): Likewise.
6308 (grub_cpu_xnu_fill_devprop): Likewise.
6309 (grub_cmd_devprop_load): Likewise.
6310 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6311 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6312 (cmd_devprop_load): New variable.
6313 (grub_cpu_xnu_init): New function.
6314 (grub_cpu_xnu_fini): Likewise.
6315 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6316 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6317 (grub_cmd_xnu_devtree): Likewise.
6318 (hextoval): New function.
6319 (unescape): Likewise.
6320 (grub_xnu_fill_devicetree): Likewise.
6322 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6323 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6325 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6327 Workaround for broken ATI VBE.
6329 * video/i386/pc/vbe.c (last_set_mode): New variable.
6330 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6331 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6332 (grub_video_vbe_setup): Don't check for reserved flag.
6334 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6336 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6339 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6341 UUID support for HFS.
6343 * fs/hfs.c (grub_hfs_uuid): New function.
6344 (grub_hfs_fs): New value .uuid.
6345 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6347 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6349 Fix a segfault with parsing unknown long options.
6351 * util/grub-mkrelpath.c (options): Zero terminate it.
6353 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6355 * include/grub/misc.h (grub_puts): New declaration.
6356 (grub_puts_): Likewise.
6357 * kern/misc.c (grub_puts): New definition.
6358 (grub_puts_): Likewise.
6360 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6362 * util/grub-probe.c (probe): Improve error message.
6364 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6366 * loader/i386/multiboot_elfxx.c
6367 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6370 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6374 * loader/i386/xnu_helper.S: Removed. All users updated.
6375 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6376 (relocator_mod_SOURCES): New variable.
6377 (relocator_mod_CFLAGS): Likewise.
6378 (relocator_mod_LDFLAGS): Likewise.
6379 (relocator_mod_ASFLAGS): Likewise.
6380 * conf/x86_64.rmk: Likewise.
6381 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6382 (grub_multiboot_payload_entry_offset): Likewise.
6383 (grub_multiboot_forward_relocator): Likewise.
6384 (grub_multiboot_forward_relocator_end): Likewise.
6385 (grub_multiboot_backward_relocator): Likewise.
6386 (grub_multiboot_backward_relocator_end): Likewise.
6387 (grub_multiboot_payload_eip): New variable.
6388 (grub_multiboot_payload_orig): Likewise.
6389 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6390 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6391 * include/grub/i386/memory.h
6392 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6393 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6394 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6395 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6396 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6397 * include/grub/i386/relocator.h: New file.
6398 * include/grub/x86_64/relocator.h: Likewise.
6399 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6400 (XNU_RELOCATOR): New macro.
6401 (grub_xnu_launcher_start): Remove.
6402 (grub_xnu_launcher_end): Likewise.
6403 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6404 (grub_xnu_heap_real_start): Remove.
6405 (grub_xnu_heap_start): Change to void *. All users updated.
6406 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6407 * lib/i386/relocator.c: New file.
6408 * lib/i386/relocator_asm.S: Likewise.
6409 * lib/i386/relocator_backward.S: Likewise.
6410 * lib/mips/relocator.c: Likewise.
6411 * lib/mips/relocator_asm.S: Likewise.
6412 * lib/relocator.c: Likewise.
6413 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6415 (playground): Likewise.
6416 (grub_multiboot_payload_orig): New variable.
6417 (grub_multiboot_payload_dest): Likewise.
6418 (grub_multiboot_payload_size): Likewise.
6419 (grub_multiboot_payload_eip): Likewise.
6420 (grub_multiboot_payload_esp): Likewise.
6421 (grub_multiboot_boot): Use grub_relocator32_boot.
6422 (grub_multiboot_unload): Free relocators.
6423 (grub_multiboot): Setup stack. Use relocators.
6424 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6425 (grub_multiboot_load_elfXX): Use relocators.
6426 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6427 (grub_multiboot_payload_size): Likewise.
6428 (grub_multiboot_payload_dest): Likewise.
6429 (grub_multiboot_payload_entry_offset): Likewise.
6430 (grub_multiboot_forward_relocator): Likewise.
6431 (grub_multiboot_backward_relocator): Likewise.
6432 (grub_multiboot_real_boot): Likewise.
6433 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6434 (grub_xnu_entry_point): Likewise.
6435 (grub_xnu_arg1): Likewise.
6436 (grub_xnu_stack): Likewise.
6437 (grub_xnu_launch): Removed.
6438 (grub_xnu_boot_resume): New function.
6439 (grub_xnu_boot): Use relocators.
6440 * loader/i386/xnu_helper.S: Removed.
6441 * loader/xnu.c (grub_xnu_heap_start): New variable.
6442 (grub_xnu_heap_size): Likewise.
6443 (grub_xnu_heap_malloc): Use relocators.
6444 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6446 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6448 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6451 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6453 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6454 GRUB_ERR_NONE before calling grub_env_set.
6456 2009-12-12 Robert Millan <rmh@aybabtu.com>
6458 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6459 * genmk.rb (video): New variable.
6460 (CLEANFILES, VIDEOFILES): Add #{video}.
6461 (#{video}): New target rule.
6462 * genvideolist.sh: New file.
6463 * Makefile.in (pkglib_DATA): Add video.lst.
6464 (video.lst): New target rule.
6465 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6467 * util/grub.d/30_os-prober.in: Replace `vbe' with
6468 ${GRUB_VIDEO_BACKEND}.
6470 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6472 * THANKS: Add David Miller.
6474 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6476 libpciaccess support.
6478 * Makefile.in (LIBPCIACCESS): New variable.
6479 (enable_grub_emu_pci): Likewise.
6480 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6481 util/pci.c and commands/lspci.c.
6482 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6483 * configure.ac (grub-emu-pci): New option.
6484 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6485 (grub_pci_device_unmap_range): Likewise.
6486 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6487 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6488 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6489 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6490 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6491 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6492 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6493 * include/grub/pciutils.h: New file.
6494 * util/pci.c: Likewise.
6496 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6498 * util/misc.c: Don't include <errno.h> twice.
6500 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6502 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6503 name in an error message.
6504 (grub_biosdisk_rw): Likewise.
6506 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6508 Eliminate NTFS 4Gib barrier.
6510 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6511 (read_run_data): Likewise.
6512 (grub_ntfs_read_run_list): Likewise.
6513 (grub_ntfs_read_block): Likewise.
6514 (grub_ntfs_iterate_dir): Likewise.
6515 (read_mft): Likewise.
6516 (read_data): Likewise.
6518 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6519 to avoid 64-bit division
6520 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6521 (grub_ntfs_rlst): Use grub_disk_addr_t.
6523 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6525 Eliminate grub-fstest 4Gib barrier.
6527 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6528 (read_file): Fix error reporting.
6530 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6532 Eliminate hexdump 4Gib barrier.
6534 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6535 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6537 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6539 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6542 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6544 Remove miscellaneous files in distclean target.
6546 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6548 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6550 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6551 if they're already set. This resolves the conflict between my
6552 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6553 fixing the --grub-probe option again.
6554 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6555 change on 2009-10-06, so that we now once again source
6556 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6558 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6560 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6561 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6564 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6566 * include/grub/misc.h (grub_printf_): New declaration.
6567 * kern/misc.c (grub_printf_): New definition.
6568 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6569 instead of `grub_printf' and `_'.
6570 * normal/menu_entry.c (store_completion): Likewise.
6572 (grub_menu_entry_run): Likewise.
6573 * normal/menu_text.c (grub_wait_after_message): Likewise.
6574 (notify_booting): Likewise.
6575 (notify_fallback): Likewise.
6576 (notify_execution_failure): Likewise.
6578 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6580 * configure.ac: Check for vasprintf.
6581 * util/misc.c (asprintf): Move allocation from here ...
6582 (vasprintf): ... to here. New function.
6583 (xasprintf): New function.
6584 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6586 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6587 * util/grub-mkfont.c (write_font): Likewise.
6588 * util/grub-probe.c (probe): Likewise.
6589 * util/hostdisk.c (make_device_name): Likewise.
6591 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6593 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6594 anything even prefixed with 'cdrom' as a cdrom.
6596 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6598 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6601 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6603 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6604 grub_gettext_msg_list.
6605 (grub_gettext_gettranslation_from_position): Return const char *
6607 (grub_gettext_translate): Add the translated strings into a list,
6608 returns from the list if existing there.
6609 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6610 (grub_gettext_delete_list): Delete the list.
6611 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6612 lang environment variable is changed.
6613 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6615 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6617 Rename kernel.mod to kernel.img.
6619 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6620 (kernel_mod_EXPORTS): Rename to ...
6621 (kernel_img_EXPORTS): ... this.
6622 (kernel_mod_SOURCES): Rename to ...
6623 (kernel_img_SOURCES): ... this.
6624 (kernel_mod_HEADERS): Rename to ...
6625 (kernel_img_HEADERS): ... this. All users updated.
6626 (kernel_mod_CFLAGS): Rename to ...
6627 (kernel_img_CFLAGS): ... this.
6628 (kernel_mod_ASFLAGS): Rename to ...
6629 (kernel_img_ASFLAGS): ... this.
6630 (kernel_mod_LDFLAGS): Rename to ...
6631 (kernel_img_LDFLAGS): ... this.
6632 * conf/x86_64-efi.rmk: Likewise.
6633 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6634 (read_kernel_image): ... this. All users updated.
6635 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6637 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6639 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6640 (print_spaces): New function.
6641 (grub_print_ucs4): New function.
6642 (getstringwidth): New function.
6643 (print_message_indented): New function.
6644 (print_message): Gettexttize strings using print_message_indented.
6645 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6647 (get_entry_number): Gettextize and uses dynamic terminal width.
6648 (notify_booting, notify_fallback, notify_execution_failure):
6650 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6653 (grub_menu_entry_run): Likewise.
6654 * PO/POTFILES: Add normal/menu_entry.c.
6656 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6658 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6660 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6662 * util/grub-install.in: Install gettext .mo files.
6663 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6665 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6667 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6670 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6672 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6673 non-firmware-dependant one in realmode.S takes precedence.
6675 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6677 * commands/halt.c: Replace misc arch-specific headers with
6679 * commands/reboot.c: Likewise.
6680 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6682 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6683 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6684 (kernel_img_SOURCES): ... to here.
6686 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6687 * include/grub/i386/pc/init.h: Likewise.
6688 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6689 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6691 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6693 * include/grub/i386/halt.h: Remove.
6694 * include/grub/i386/reboot.h: Likewise.
6696 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6698 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6700 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6701 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6702 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6704 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6705 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6706 (usage): Add missing comma in printf.
6708 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6710 Use the same reboot approach on i386 coreboot and qemu as we do on
6713 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6714 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6715 * kern/i386/reboot.c: Remove.
6716 * include/grub/i386/reboot.h (grub_reboot): Export function.
6717 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6718 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6719 0xf000:0xfff0 instead of 0xffff:0x0000.
6720 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6721 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6723 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6725 Fix $srcdir != $objdir build.
6727 * Makefile.in (po/%.po): Rewrite as ...
6728 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6730 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6732 Fix GNU/Hurd grub-install crash.
6733 * util/grub-probe.c (probe): Try to access `path' only when it is not
6736 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6738 Correct module naming.
6740 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6741 (GRUB_MOD_INIT(efi_uga)): ... to this
6742 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6743 (GRUB_MOD_FINI(efi_uga)): ... to this
6744 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6745 (GRUB_MOD_INIT(efi_gop)): ... to this
6746 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6747 (GRUB_MOD_FINI(efi_gop)): ... to this
6749 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6751 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6753 (usage): Translate `arg' strings using gettext().
6754 Thanks to Jordi Mallach for the suggestion.
6756 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6758 GOP support. Based on patch from Bean
6759 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6761 * video/efi_gop.c: New file.
6762 * include/grub/efi/graphics_output.h: Likewise.
6763 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6764 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6766 * conf/x86_64-efi.rmk: Likewise.
6768 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6770 Rename efi_fb to efi_uga.
6772 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6774 (efi_fb_mod_SOURCES): Rename this ...
6775 (efi_uga_mod_SOURCES): ... to this.
6776 (efi_fb_mod_CFLAGS): Rename this ...
6777 (efi_uga_mod_CFLAGS): ... to this.
6778 (efi_fb_mod_LDFLAGS): Rename this ...
6779 (efi_uga_mod_LDFLAGS): ... to this.
6780 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6782 (efi_fb_mod_SOURCES): Rename this ...
6783 (efi_uga_mod_SOURCES): ... to this.
6784 (efi_fb_mod_CFLAGS): Rename this ...
6785 (efi_uga_mod_CFLAGS): ... to this.
6786 (efi_fb_mod_LDFLAGS): Rename this ...
6787 (efi_uga_mod_LDFLAGS): ... to this.
6788 * video/efi_fb.c: Move this ...
6789 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6791 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6793 * po/README: New file. Explain our PO file workflow.
6795 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6797 * po/ChangeLog: Remove. Move relevant entries back to ...
6798 * ChangeLog: ... here.
6799 * po/ca.po: Remove (now handled by TLP).
6800 * po/id.po: Likewise.
6801 * po/zh_CN.po: Likewise.
6802 * Makefile.in (LINGUAS): Initialize in a way that supports
6805 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6807 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6808 reliing on po/LINGUAS.
6809 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6810 (po/%.po): ... this.
6812 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6814 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6815 (main): Use `program_name' instead of nonexistent `progname'.
6817 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6819 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6820 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6822 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6824 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6826 * conf/i386-efi.rmk: Likewise.
6827 * conf/i386-ieee1275.rmk: Likewise.
6828 * conf/powerpc-ieee1275.rmk: Likewise.
6829 * conf/sparc64-ieee1275.rmk: Likewise.
6830 * conf/x86_64-efi.rmk: Likewise.
6832 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6834 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6836 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6838 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6840 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6842 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6843 (grub_mkdevicemap_SOURCES): New variable.
6844 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6845 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6846 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6847 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6848 (grub_mkdevicemap_SOURCES): Remove.
6849 * conf/i386-efi.rmk: Likewise.
6850 * conf/i386-ieee1275.rmk: Likewise.
6851 * conf/i386-pc.rmk: Likewise.
6852 * conf/powerpc-ieee1275.rmk: Likewise.
6853 * conf/sparc64-ieee1275.rmk: Likewise.
6854 * conf/x86_64-efi.rmk: Likewise.
6855 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6856 (usage): Fix strings to use `program_name'.
6857 (main): Initialize gettext.
6858 * util/grub-editenv.c: Likewise.
6859 * util/grub-emu.c: Likewise.
6860 * util/grub-fstest.c: Likewise.
6861 * util/grub-mkdevicemap.c: Likewise.
6862 * util/grub-mkfont.c: Likewise.
6863 * util/grub-mkrelpath.c: Likewise.
6864 * util/grub-pe2elf.c: Likewise.
6865 * util/grub-probe.c: Likewise.
6866 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6867 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6868 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6870 * util/misc.c: Include `"progname.h"'.
6871 (progname): Remove variable.
6872 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6874 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6876 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6877 printf and print a newline after the menuentry header line.
6878 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6880 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6882 autoconf >= 2.60 support $(localedir).
6884 * INSTALL: Note that autoconf 2.60 is required.
6885 * configure.ac (AC_PREREQ): Bump to 2.60.
6886 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6887 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6889 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6891 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6894 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6896 * normal/main.c (grub_normal_read_line): Fix off-by-one
6899 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6901 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6902 "parser.grub" in grub_command_execute() call.
6904 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6906 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6907 * conf/i386-efi.rmk: Likewise.
6908 * conf/i386-ieee1275.rmk: Likewise.
6909 * conf/i386-pc.rmk: Likewise.
6910 * conf/powerpc-ieee1275.rmk: Likewise.
6911 * conf/sparc64-ieee1275.rmk: Likewise.
6912 * conf/x86_64-efi.rmk: Likewise.
6913 * gettext/gettex.c: Include <grub/i18n.h>.
6914 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6916 * include/grub/i18n.h: ... to here
6917 * include/grub/i18n.h: ... to here.
6918 * kern/misc.c: Include <grub/i18n.h>
6919 (grub_gettext_dummy): Move above user.
6921 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6923 * util/Makefile.in (install-local): Convert a `for' into a normal
6926 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6928 * autogen.sh: Add automake call.
6929 * config.guess: Remove.
6930 * config.sub: Likewise.
6931 * install-sh: Likewise.
6933 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6935 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6937 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6939 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6940 function to a normal shell `for'.
6942 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6944 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6946 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6948 * util/grub-mkrelpath.c: New file.
6949 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6950 (grub_mkrelpath_SOURCES): New variable.
6951 * include/grub/util/misc.h: New function prototype.
6952 * util/misc.c (make_system_path_relative_to_its_root): New function.
6954 * util/grub-mkconfig_lib.in (bindir): New variable.
6955 (grub_mkrelpath): Likewise.
6956 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6958 * util/probe.c (probe): Make the file path relative to its root.
6959 Change a info message to use the GRUB path. Enable again the
6960 check if we can read the file with GRUB facilities.
6962 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6965 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6967 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6970 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6972 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6975 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6977 * util/getroot.c (grub_util_is_dmraid): New function.
6978 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6979 devices as normal ones, not as LVM.
6981 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6983 * conf/common.rmk: Add grub-gettext_lib target and updates
6984 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6986 * gettext/gettext.c: New file. (Reads mo files).
6987 * include/grub/file.h (grub_file_pread): New prototype.
6988 * include/grub/i18n.h (_): New prototype.
6989 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6991 * kern/misc.c (grub_gettext_dummy): New function.
6992 * normal/menu_text.c: Include <grub/i18n.h>.
6993 * normal/menu_text.c (print_timeout): Gettexttize string.
6994 * normal/menu_text.c (print_message): Gettexttize string.
6995 * po/POTFILES: Add `normal/menu_text.c'.
6996 * po/ca.po: Add new translations.
6997 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6998 gettext module and defines locale_dir and lang in grub.cfg.
6999 * NEWS: Add gettext support.
7001 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7003 * util/hostdisk.c: Include `<grub/i18n.h>'.
7004 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7005 (make_device_name): Rewrite using asprintf.
7006 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7007 (find_system_device): If a device is not found, generate one just
7008 by reusing the OS path name.
7009 (read_device_map): Make it permissible for device.map not to exist.
7011 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7013 * script/sh/execute.c: Move from here ...
7014 * script/execute.c: ... to here. Update all users.
7015 * script/sh/function.c: Move from here ...
7016 * script/function.c: ... to here. Update all users.
7017 * script/sh/lexer.c: Move from here ...
7018 * script/lexer.c: ... to here. Update all users.
7019 * script/sh/main.c: Move from here ...
7020 * script/main.c: ... to here. Update all users.
7021 * script/sh/parser.y: Move from here ...
7022 * script/parser.y: ... to here. Update all users.
7023 * script/sh/script.c: Move from here ...
7024 * script/script.c: ... to here. Update all users.
7026 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7028 * configure.ac: Detect all `emu' platforms. Define
7029 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7030 --enable-grub-emu logic. Disable include/grub/machine
7031 symlink on `emu' platforms.
7033 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7034 * gensymlist.sh.in: Likewise.
7036 * include/grub/i386/coreboot/machine.h: Remove file.
7037 * include/grub/i386/efi/machine.h: Likewise.
7038 * include/grub/i386/ieee1275/machine.h: Likewise.
7039 * include/grub/i386/pc/machine.h: Likewise.
7040 * include/grub/i386/qemu/machine.h: Likewise.
7041 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7042 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7043 * include/grub/x86_64/efi/machine.h: Likewise.
7045 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7046 * commands/halt.c: Likewise.
7047 * commands/reboot.c: Likewise.
7048 * include/grub/autoefi.h: Likewise.
7049 * include/grub/i386/at_keyboard.h: Likewise.
7050 * include/grub/i386/kernel.h: Likewise.
7051 * include/grub/i386/loader.h: Likewise.
7052 * include/grub/i386/pc/memory.h: Likewise.
7053 * kern/dl.c: Likewise.
7054 * kern/i386/coreboot/init.c: Likewise.
7055 * loader/i386/bsd.c: Likewise.
7056 * loader/i386/linux.c: Likewise.
7057 * loader/multiboot_loader.c: Likewise.
7058 * term/i386/pc/serial.c: Likewise.
7059 * term/usb_keyboard.c: Likewise.
7061 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7062 `<grub/machine/machine.h>'
7063 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7064 * util/misc.c: Remove `<grub/machine/machine.h>' and
7065 `<grub/machine/time.h>'.
7067 * Makefile.in (enable_grub_emu): Remove variable.
7068 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7070 * conf/any-emu.rmk: New file.
7071 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7072 (grub_emu_init.c): Move from here ...
7073 * conf/any-emu.rmk: ... to here.
7075 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7076 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7077 * conf/any-emu.rmk: ... to here.
7079 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7081 * include/grub/parser.h (grub_parser_register): Document need
7082 of `name' parameter.
7083 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7084 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7087 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7089 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7091 * include/grub/i18n.h (N_): New macro.
7092 * util/mkisofs/mkisofs.h: Likewise.
7093 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7095 (usage): Use gettext() to translate help strings when printing them.
7097 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7099 Based on patch from Bean
7100 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7102 * video/efi_fb.c: New file.
7103 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7104 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7106 * conf/x86_64-efi.rmk: Likewise.
7108 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7110 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7111 * util/i386/pc/grub-setup.c: Likewise.
7113 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7115 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7117 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7118 file_get_storage_info to implement grub_guess_root_device.
7120 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7122 * Makefile.in (target): Use make's builtin $(shell) function
7123 instead of calling directly $(SHELL) to create the locale directories,
7124 inside the $(foreach) function.
7126 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7128 * util/grub-mkrescue.in: Print an error and usage if output option
7131 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7133 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7134 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7135 root and /boot are on different devices.
7137 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7139 Fix build for srcdir != objdir.
7141 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7142 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7144 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7145 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7146 reference for input.
7148 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7150 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7151 or hardlinking it). Remove -J option, Joliet is not compatible with
7152 multiple source directories.
7154 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7155 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7157 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7158 (process_input_dir): New function. Process an arbitrary input
7160 Misc adjustments to support both "override mode" and system-wide mode.
7162 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7164 * configure.ac (UNIFONT_BDF): Rename to ...
7165 (FONT_SOURCE): ... this. Update all users.
7167 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7169 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7170 to the list of unifont files to look for.
7172 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7174 Patch from Joe Auricchio <jauricchio@gmail.com>
7175 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7176 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7177 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7179 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7181 * Makefile.in (install-local): Add a missing backslash.
7183 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7185 * include/grub/x86_64/io.h: New file.
7187 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7189 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7190 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7191 Include `"progname.h"'.
7192 (main): Initialize gettext.
7193 * util/i386/pc/grub-setup.c: Gettexttize.
7194 * util/i386/pc/grub-mkimage.c: Likewise.
7196 * Makefile.in (po/*.po): Redefine as ...
7197 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7199 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7201 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7203 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7204 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7205 (program_name): Remove.
7206 (main): Initialize gettext support.
7207 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7208 Include `<libintl.h>'.
7211 * util/mkisofs/eltorito.c: Gettexttize.
7212 * util/mkisofs/joliet.c: Likewise.
7213 * util/mkisofs/mkisofs.c: Likewise.
7214 * util/mkisofs/multi.c: Likewise.
7215 * util/mkisofs/rock.c: Likewise.
7216 * util/mkisofs/tree.c: Likewise.
7217 * util/mkisofs/write.c: Likewise.
7219 * po/POTFILES: Update with new files.
7221 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7223 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7224 * util/mkisofs/iso9660.h: Likewise.
7225 * util/mkisofs/joliet.c: Likewise.
7226 * util/mkisofs/mkisofs.c: Likewise.
7227 * util/mkisofs/mkisofs.h: Likewise.
7228 * util/mkisofs/rock.c: Likewise.
7229 * util/mkisofs/tree.c: Likewise.
7230 * util/mkisofs/write.c: Likewise.
7232 * util/mkisofs/eltorito.c (rcsid): Remove.
7233 * util/mkisofs/hash.c: Likewise.
7234 * util/mkisofs/joliet.c: Likewise.
7235 * util/mkisofs/name.c: Likewise.
7236 * util/mkisofs/rock.c: Likewise.
7237 * util/mkisofs/tree.c: Likewise.
7238 * util/mkisofs/write.c: Likewise.
7240 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7242 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7243 instead of static allocation.
7244 * util/mkisofs/match.h: Likewise.
7246 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7248 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7249 and `util/grub.d/10_linux.in'.
7250 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7251 translatable Shell files.
7253 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7255 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7257 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7259 * INSTALL: Document Automake is needed for bootstrap.
7260 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7261 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7262 Add gettext initialization.
7263 (kfreebsd_entry): Make menuentry output translatable.
7265 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7267 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7268 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7269 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7270 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7271 (LINGUAS): Auto-generate using `po/LINGUAS'.
7272 * po/LINGUAS: New file.
7274 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7276 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7278 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7279 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7280 bindtextdomain() calls for gettext initialization.
7282 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7284 * gnulib/progname.c: New file (imported from Gnulib).
7285 * gnulib/progname.h: Likewise.
7286 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7287 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7288 (usage): Replace `progname' with `program_name'.
7289 (main): Use set_program_name() for program name initialization.
7291 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7293 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7295 * Makefile.in (CPPFLAGS): ... to here.
7297 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7299 * aclocal.m4: Move from here ...
7300 * acinclude.m4: ... to here.
7301 * autogen.sh: Add call to `aclocal'.
7302 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7304 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7306 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7307 (LINGUAS): New variable.
7308 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7309 (install-local): Install MO files.
7310 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7311 * include/grub/i18n.h: New file.
7312 * po/POTFILES: New file.
7313 * po/ca.po: New file.
7314 * util/grub.d/10_linux.in (bindir): New variable.
7315 Add gettext initialization.
7316 (linux_entry): Make menuentry output translatable.
7317 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7318 (usage): Make --help output translatable.
7319 (main): Initialize gettext.
7321 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7323 * import_gcry.py: New file (written by Vladimir with minor
7325 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7327 * INSTALL: Document that Python is required for bootstrap.
7329 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7331 Import ciphers from libgcrypt 1.4.4.
7333 * lib/libgcrypt/cipher/ChangeLog
7334 * lib/libgcrypt/cipher/ac.c
7335 * lib/libgcrypt/cipher/arcfour.c
7336 * lib/libgcrypt/cipher/bithelp.h
7337 * lib/libgcrypt/cipher/blowfish.c
7338 * lib/libgcrypt/cipher/camellia-glue.c
7339 * lib/libgcrypt/cipher/camellia.c
7340 * lib/libgcrypt/cipher/camellia.h
7341 * lib/libgcrypt/cipher/cast5.c
7342 * lib/libgcrypt/cipher/cipher.c
7343 * lib/libgcrypt/cipher/crc.c
7344 * lib/libgcrypt/cipher/des.c
7345 * lib/libgcrypt/cipher/dsa.c
7346 * lib/libgcrypt/cipher/ecc.c
7347 * lib/libgcrypt/cipher/elgamal.c
7348 * lib/libgcrypt/cipher/hash-common.c
7349 * lib/libgcrypt/cipher/hash-common.h
7350 * lib/libgcrypt/cipher/hmac-tests.c
7351 * lib/libgcrypt/cipher/md.c
7352 * lib/libgcrypt/cipher/md4.c
7353 * lib/libgcrypt/cipher/md5.c
7354 * lib/libgcrypt/cipher/primegen.c
7355 * lib/libgcrypt/cipher/pubkey.c
7356 * lib/libgcrypt/cipher/rfc2268.c
7357 * lib/libgcrypt/cipher/rijndael-tables.h
7358 * lib/libgcrypt/cipher/rijndael.c
7359 * lib/libgcrypt/cipher/rmd.h
7360 * lib/libgcrypt/cipher/rmd160.c
7361 * lib/libgcrypt/cipher/rsa.c
7362 * lib/libgcrypt/cipher/seed.c
7363 * lib/libgcrypt/cipher/serpent.c
7364 * lib/libgcrypt/cipher/sha1.c
7365 * lib/libgcrypt/cipher/sha256.c
7366 * lib/libgcrypt/cipher/sha512.c
7367 * lib/libgcrypt/cipher/tiger.c
7368 * lib/libgcrypt/cipher/twofish.c
7369 * lib/libgcrypt/cipher/whirlpool.c
7371 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7373 Fix build for systems without error().
7375 * gnulib/error.c: New file (imported from Gnulib).
7376 * gnulib/error.h: Likewise.
7377 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7378 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7379 (this variable is now used by error()).
7381 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7383 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7384 instead of relying that char is signed.
7386 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7388 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7389 blocksize different from specified.
7390 (grub_pxefs_read): Likewise.
7392 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7394 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7396 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7397 (grub_ata_readwrite): Likewise. Update 2 format strings.
7398 (grub_atapi_read): Likewise.
7400 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7401 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7402 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7403 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7404 (ata_mod_LDFLAGS): Move from here ...
7405 * conf/i386.rmk: ... to here ...
7406 * conf/x86_64-efi.rmk: ... and here.
7407 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7408 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7410 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7412 Relicense multiboot.h, with RMS' blessing.
7414 * include/multiboot.h: Change to X11 license.
7416 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7418 Support --version in grub-mkisofs.
7420 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7421 (OPTION_VERSION): New macro.
7422 (ld_options): Recognize --version.
7423 (usage): Move `program_name' from here ...
7424 (program_name): ... to here. Add `static' qualifier.
7425 (main): Recognize `OPTION_VERSION'.
7427 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7429 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7430 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7432 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7434 Fix help2man generation for mkisofs.
7436 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7437 (usage): Send output to stdout (rather than stderr).
7439 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7441 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7442 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7443 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7444 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7445 (bin_SCRIPTS): Add `grub-mkfloppy'.
7446 (grub_mkfloppy_SOURCES): New variable.
7448 * util/grub-mkrescue.in: New file.
7449 * util/i386/pc/grub-mkfloppy.in: New file.
7451 * util/i386/coreboot/grub-mkrescue.in: Remove.
7452 * util/i386/pc/grub-mkrescue.in: Remove.
7454 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7456 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7458 * include/multiboot.h (struct multiboot_header): ... to here. Update
7460 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7462 * include/multiboot.h (struct multiboot_info): ... to here. Update
7464 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7466 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7468 * include/grub/multiboot.h (struct grub_mod_list): Move
7470 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7473 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7475 * include/multiboot2.h (multiboot_word): Rename from this ...
7476 (multiboot2_word): ... to this. Update all users.
7477 (multiboot_header): Rename from this ...
7478 (multiboot2_header): ... to this. Update all users.
7479 (multiboot_tag_header): Rename from this ...
7480 (multiboot2_tag_header): ... to this. Update all users.
7481 (multiboot_tag_start): Rename from this ...
7482 (multiboot2_tag_start): ... to this. Update all users.
7483 (multiboot_tag_name): Rename from this ...
7484 (multiboot2_tag_name): ... to this. Update all users.
7485 (multiboot_tag_module): Rename from this ...
7486 (multiboot2_tag_module): ... to this. Update all users.
7487 (multiboot_tag_memory): Rename from this ...
7488 (multiboot2_tag_memory): ... to this. Update all users.
7489 (multiboot_tag_unused): Rename from this ...
7490 (multiboot2_tag_unused): ... to this. Update all users.
7491 (multiboot_tag_end): Rename from this ...
7492 (multiboot2_tag_end): ... to this. Update all users.
7494 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7496 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7497 this platform we should support Multiboot1 first.
7499 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7500 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7501 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7503 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7505 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7506 of write calls (converting them to fwrite() if they aren't already).
7507 (get_torito_desc): Likewise.
7508 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7510 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7512 * util/i386/pc/grub-install.in: Move from here ...
7513 * util/grub-install.in: ... to here. Update all users.
7515 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7517 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7519 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7521 Support for El Torito without floppy emulation.
7523 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7524 (init_boot_catalog): Improve error handling.
7525 (get_torito_desc): Don't use floppy emulation unless requested by
7526 user. Patch boot information table when requested via
7528 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7529 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7530 (use_boot_info_table): New variables.
7531 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7532 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7533 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7534 `--eltorito-emul-floppy'.
7535 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7536 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7537 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7538 (use_boot_info_table, get_731): New prototypes.
7539 * util/mkisofs/write.c (get_731): New function.
7541 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7543 Fix the generation of the man page.
7545 * util/pc/i386/grub-install.in: Source
7546 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7548 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7550 Large file support for grub-mkisofs.
7552 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7553 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7554 (session_start): Upgrade type to `uint64_t'. Update all users.
7555 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7556 (struct directory_entry): Upgrade type of `starting_block' and
7557 `size' to `uint64_t'. Update all users.
7558 (struct deferred): Remove unused structure.
7559 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7561 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7562 file is larger than `UINT32_MAX'.
7563 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7564 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7566 (struct deferred_write): Upgrade type of `extent' and `size' to
7567 `uint64_t'. Update all users.
7568 (last_extent_written): Upgrade type to `uint64_t'. Update all
7570 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7571 Update all users. Upgrade type of `remain' to `int64_t' and
7572 `use' to `size_t'. Use error() to handle fread() errors.
7573 (write_files): Rely on write_one_file() rather than calling
7576 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7578 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7580 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7582 * util/mkisofs/fnmatch.c: Remove.
7583 * util/mkisofs/getopt1.c: Likewise.
7584 * util/mkisofs/getopt.c: Likewise.
7585 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7586 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7587 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7588 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7589 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7591 * configure.ac: Detect `mingw32msvc' host_os.
7592 Check for lstat(), getuid() and getgid().
7594 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7595 instances of `u_char' with `uint8_t'.
7597 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7598 [!HAVE_GETUID] (getuid): New function (stub).
7599 [!HAVE_GETGID] (getgid): Likewise.
7600 [!HAVE_LSTAT] (lstat): Likewise.
7601 [!S_IROTH] (S_IROTH): New macro (dummy).
7602 [!S_IRGRP] (S_IRGRP): Likewise.
7604 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7606 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7607 conditional expression).
7609 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7613 * gnulib/fnmatch.c: New file.
7614 * gnulib/fnmatch.h: Likewise.
7615 * gnulib/fnmatch_loop.c: Likewise.
7616 * gnulib/getopt.c: Likewise.
7617 * gnulib/getopt.h: Likewise.
7618 * gnulib/getopt1.c: Likewise.
7619 * gnulib/getopt_int.h: Likewise.
7620 * gnulib/gettext.h: Likewise.
7622 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7624 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7625 * normal/handler.c (read_handler_list): Likewise.
7627 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7631 * kern/command.c (grub_register_command_prio): Use
7632 grub_zalloc() instead of explicitly zeroing data.
7633 * kern/list.c: Include `<grub/mm.h>'.
7634 (grub_named_list_find): Replace `0' with `NULL'.
7635 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7636 (fs_module_list): Change type to `grub_named_list_t'. Update all
7638 * normal/dyncmd.c (read_command_list): Add space between function
7639 call and parenthesis.
7640 * normal/handler.c (read_handler_list): Likewise.
7642 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7644 * normal/auth.c (punishment_delay): Moved from here ...
7645 (grub_auth_strcmp): ... to here (inside function).
7647 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7649 * include/grub/list.h (struct grub_named_list): Remove `const'
7650 qualifier from `name'.
7651 (struct grub_prio_list): Likewise.
7653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7655 * normal/auth.c: Include `<grub/time.h>'.
7656 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7658 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7660 * normal/auth.c (punishment_delay): New variable.
7661 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7662 (grub_auth_check_authentication): Punish failed login attempts with
7663 an incremental (2^N) delay.
7665 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7667 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7668 path with $(srcdir).
7670 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7672 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7674 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7676 * util/i386/coreboot/grub-mkrescue.in: New file.
7677 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7680 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7681 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7682 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7684 * util/mkisofs/defaults.h: New file.
7685 * util/mkisofs/eltorito.c: Likewise.
7686 * util/mkisofs/exclude.h: Likewise.
7687 * util/mkisofs/fnmatch.c: Likewise.
7688 * util/mkisofs/getopt.c: Likewise.
7689 * util/mkisofs/getopt1.c: Likewise.
7690 * util/mkisofs/hash.c: Likewise.
7691 * util/mkisofs/include/fctldefs.h: Likewise.
7692 * util/mkisofs/include/mconfig.h: Likewise.
7693 * util/mkisofs/include/prototyp.h: Likewise.
7694 * util/mkisofs/include/statdefs.h: Likewise.
7695 * util/mkisofs/iso9660.h: Likewise.
7696 * util/mkisofs/joliet.c: Likewise.
7697 * util/mkisofs/match.c: Likewise.
7698 * util/mkisofs/match.h: Likewise.
7699 * util/mkisofs/mkisofs.c: Likewise.
7700 * util/mkisofs/mkisofs.h: Likewise.
7701 * util/mkisofs/multi.c: Likewise.
7702 * util/mkisofs/name.c: Likewise.
7703 * util/mkisofs/rock.c: Likewise.
7704 * util/mkisofs/tree.c: Likewise.
7705 * util/mkisofs/write.c: Likewise.
7707 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7709 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7712 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7714 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7715 `grub-mkimage' (and use $0 when possible).
7717 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7719 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7720 error message for excessively large memory map.
7722 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7724 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7727 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7729 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7730 message for coreboot users.
7732 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7734 Fix build with GNU gold.
7736 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7737 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7738 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7740 * aclocal.m4: Likewise.
7742 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7744 * configure.ac (AC_PREREQ): Bump to 2.59d.
7745 * INSTALL: Make it more clear when Autoconf and Ruby are
7746 needed and when to run `./autogen.sh'.
7748 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7750 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7753 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7755 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7757 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7759 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7760 giving it to GNU Mach.
7762 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7764 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7765 GNU partition number to get internal GRUB partition number.
7767 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7769 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7770 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7772 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7774 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7775 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7778 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7780 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7782 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7786 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7787 `-isystem=$(srcdir)/include'.
7789 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7791 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7792 checked (grub-install doesn't currently rely on it).
7794 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7798 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7799 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7800 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7801 * conf/i386-ieee1275.rmk: Likewise.
7802 * conf/i386-pc.rmk: Likewise.
7803 * conf/powerpc-ieee1275.rmk: Likewise.
7804 * conf/sparc64-ieee1275.rmk: Likewise.
7805 * conf/x86_64-efi.rmk: Likewise.
7807 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7809 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7811 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7813 * include/grub/misc.h: Stop checking for APPLE_CC.
7815 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7817 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7818 doesn't cause an infinite call loop.
7820 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7822 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7825 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7827 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7829 * Makefile.in: Likewise.
7831 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7833 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7835 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7837 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7839 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7841 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7843 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7845 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7847 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7849 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7851 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7852 in $(MAKEINFO) invocation. This makes it clear in output that
7853 errors are being ignored.
7855 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7857 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7859 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7860 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7861 * conf/i386-ieee1275.rmk: Likewise.
7862 * conf/i386-pc.rmk: Likewise.
7863 * conf/powerpc-ieee1275.rmk: Likewise.
7864 * conf/sparc64-ieee1275.rmk: Likewise.
7865 * conf/x86_64-efi.rmk: Likewise.
7867 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7869 * util/grub-editenv.c (main): If only a command is given, use
7870 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7871 (usage): FILENAME is now optional and has a default.
7873 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7875 Improve grub-mkconfig performance when there are several menu
7876 entries on a single filesystem.
7878 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7879 prepare_grub_to_access_device.
7880 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7881 * util/grub.d/30_os-prober.in: Likewise.
7883 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7885 * util/grub.d/10_freebsd.in: Remove.
7886 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7887 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7889 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7891 * docs/grub.cfg: Fix example usage of *BSD loaders.
7893 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7895 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7896 grub_util_error() call.
7898 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7900 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7901 `reserved_first_sector' member.
7902 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7903 `reserved_first_sector' to 1.
7904 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7905 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7906 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7907 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7908 filesystems which begin at first sector.
7909 (options): New option --skip-fs-probe.
7910 (main): Handle --skip-fs-probe and pass it to setup().
7912 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7914 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7915 (memset): Fix function prototype.
7917 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7918 2009-10-25 Vasily Averin <vvs@parallels.com>
7920 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7921 `dirent.direntlen == 0'.
7923 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7925 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7927 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7929 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7931 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7932 `__trampoline_setup' and `__ucmpdi2'.
7933 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7934 that libgcc provides.
7936 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7938 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7939 * include/grub/sparc64/libgcc.h (memset): Likewise.
7940 * include/grub/misc.h (memset, memcmp): New function prototypes.
7942 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7944 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7946 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7948 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7950 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7951 * docs/grub.cfg: Compensate for recent change in multiboot
7952 loader (since 2009-08-14 it won't pass filename to payload).
7953 * util/grub.d/10_hurd.in: Likewise.
7955 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7957 * config.guess: Update to latest version from config git
7959 * config.sub: Likewise.
7961 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7963 Fix build on sparc64.
7965 * configure.ac: Perform checks for libgcc symbols before
7966 adding `-nostdlib' to LDFLAGS.
7968 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7970 Let user specify OpenBSD root device.
7972 * loader/i386/bsd.c (openbsd_root): New variable.
7973 (openbsd_opts): New option 'root'.
7974 (OPENBSD_ROOT_ARG): New macro.
7975 (grub_openbsd_boot): Use 'openbsd_root'.
7976 (grub_cmd_openbsd): Fill 'openbsd_root'.
7978 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7980 * NEWS: Misc adjustments.
7982 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7984 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7986 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7988 * configure.ac: Bump version to 1.97.
7990 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7992 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7993 -mno-3dnow on x86 architectures. Some toolchains enable these
7994 features by default, but they rely on registers that aren't enabled
7995 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7997 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7999 Make entry text a bit more readable.
8001 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8003 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8005 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8007 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8009 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8012 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8014 * configure.ac: Add missing dollar.
8016 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8018 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8020 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8021 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8023 * include/grub/sparc64/libgcc.h: Likewise. Use
8024 preprocessor conditionals.
8026 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8028 * conf/common.rmk (grub-dumpbios): Remove rule.
8029 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8030 * util/grub-dumpbios.in: Remove file.
8032 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8034 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8035 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8037 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8038 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8041 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8042 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8043 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8044 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8047 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8049 * term/tparm.c: Switch to GPLv3.
8051 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8053 * include/grub/i386/cpuid.h: Add header protection.
8055 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8057 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8059 * include/grub/i386/cpuid.h: New file.
8060 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8061 (has_longmode): Rename to ...
8062 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8064 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8065 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8066 on a CPU that doesn't implement AMD64 instruction set.
8068 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8070 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8071 that version.texi is rebuilt on version number changes.
8073 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8075 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8078 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8080 * util/i386/pc/grub-install.in: Source
8081 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8082 that the --grub-probe option will work.
8083 * util/sparc64/ieee1275/grub-install.in: Likewise.
8085 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8087 * configure.ac: Bump version to 1.97~beta4.
8089 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8091 Resync grub-mkdevicemap in x86_64-efi.
8093 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8094 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8097 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8099 * util/grub-editenv.c (create_envblk_file): Write new block with a
8100 .new suffix and then rename it into place, to ensure atomic
8103 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8105 Do not automatically install headers.
8107 * Makefile.in (include_DATA): Remove. Update all users.
8109 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8111 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8112 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8114 * util/osdetect.lua: Remove.
8115 * script/lua/lauxlib.c: Likewise.
8116 * script/lua/ldebug.c: Likewise.
8117 * script/lua/grub_main.c: Likewise.
8118 * script/lua/lauxlib.h: Likewise.
8119 * script/lua/ldebug.h: Likewise.
8120 * script/lua/ltablib.c: Likewise.
8121 * script/lua/liolib.c: Likewise.
8122 * script/lua/lstrlib.c: Likewise.
8123 * script/lua/lualib.h: Likewise.
8124 * script/lua/ldo.c: Likewise.
8125 * script/lua/ldump.c: Likewise.
8126 * script/lua/ldo.h: Likewise.
8127 * script/lua/loslib.c: Likewise.
8128 * script/lua/lundump.c: Likewise.
8129 * script/lua/grub_lib.c: Likewise.
8130 * script/lua/ldblib.c: Likewise.
8131 * script/lua/lundump.h: Likewise.
8132 * script/lua/lmem.c: Likewise.
8133 * script/lua/grub_lib.h: Likewise.
8134 * script/lua/lmathlib.c: Likewise.
8135 * script/lua/lstate.c: Likewise.
8136 * script/lua/ltm.c: Likewise.
8137 * script/lua/lvm.c: Likewise.
8138 * script/lua/lmem.h: Likewise.
8139 * script/lua/lstate.h: Likewise.
8140 * script/lua/ltm.h: Likewise.
8141 * script/lua/ltable.c: Likewise.
8142 * script/lua/lvm.h: Likewise.
8143 * script/lua/llex.c: Likewise.
8144 * script/lua/lgc.c: Likewise.
8145 * script/lua/grub_lua.h: Likewise.
8146 * script/lua/loadlib.c: Likewise.
8147 * script/lua/lfunc.c: Likewise.
8148 * script/lua/lopcodes.c: Likewise.
8149 * script/lua/lparser.c: Likewise.
8150 * script/lua/ltable.h: Likewise.
8151 * script/lua/llex.h: Likewise.
8152 * script/lua/lgc.h: Likewise.
8153 * script/lua/lfunc.h: Likewise.
8154 * script/lua/lbaselib.c: Likewise.
8155 * script/lua/lopcodes.h: Likewise.
8156 * script/lua/lparser.h: Likewise.
8157 * script/lua/lzio.c: Likewise.
8158 * script/lua/linit.c: Likewise.
8159 * script/lua/lobject.c: Likewise.
8160 * script/lua/llimits.h: Likewise.
8161 * script/lua/lstring.c: Likewise.
8162 * script/lua/lzio.h: Likewise.
8163 * script/lua/lapi.c: Likewise.
8164 * script/lua/lcode.c: Likewise.
8165 * script/lua/lua.h: Likewise.
8166 * script/lua/lobject.h: Likewise.
8167 * script/lua/lstring.h: Likewise.
8168 * script/lua/lapi.h: Likewise.
8169 * script/lua/lcode.h: Likewise.
8170 * script/lua/luaconf.h: Likewise.
8172 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8174 * docs/grub.texi (Command-line and menu entry commands): Document
8175 date and echo commands.
8177 2009-09-24 Pavel Roskin <proski@gnu.org>
8179 * include/grub/kernel.h (struct grub_module_header): Remove
8180 `grub_module_header_types'. Make `type' unsigned. Make `size'
8181 32-bit on all platforms.
8182 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8183 8-bit field. Use grub_host_to_target32() for `size'.
8184 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8185 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8186 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8188 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8190 Fix "lost keypress" bug in at_keyboard.
8192 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8193 Checks for readyness of input buffer (without flushing it).
8194 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8195 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8197 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8199 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8200 size check within GRUB_MACHINE_PCBIOS section.
8202 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8204 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8206 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8207 KEYBOARD_ISREADY check.
8208 (grub_at_keyboard_checkkey): Rename to ...
8209 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8210 Remove gratuitous cast.
8212 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8214 * configure.ac: Call AC_PROG_MKDIR_P.
8215 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8216 version.texi in $(builddir) rather than $(srcdir).
8217 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8218 to makeinfo's @include search path.
8220 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8222 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8224 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8226 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8229 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8231 Build info documentation. Some code borrowed from Automake.
8233 * configure.ac: Check for makeinfo.
8234 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8235 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8237 (MOSTLYCLEANFILES): Add vti.tmp.
8238 (docs/version.texi, docs/stamp-vti): Update automatically.
8239 (docs/grub.info): Build info documentation. Use --force and ignore
8241 (all-local): Add $(INFOS).
8242 (install-local): Install info files.
8243 (uninstall): Uninstall info files.
8244 * docs/version.texi: Remove from revision control. This file is
8245 automatically generated on build now.
8246 * gendistlist.sh: Add `*.info'.
8248 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8250 * kern/term.c: Fix indentation.
8252 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8254 * util/hostdisk.c: Fix a comment.
8256 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8258 Fix regression introduced in r2539.
8260 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8263 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8265 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8266 os-prober. Under normal operation, it does not print anything to
8267 stderr; if it does, we need to debug it, and throwing away stderr
8268 makes that excessively difficult.
8270 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8272 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8274 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8276 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8277 AC_LANG_PROGRAM from autoconf.
8278 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8279 prototypes (fixes warning).
8281 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8282 `--disable-werror' was used.
8284 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8286 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8287 uninitialized `lastaddr'.
8289 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8291 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8293 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8295 * commands/test.c (get_fileinfo): Return immediately if
8296 grub_fs_probe fails.
8298 2009-09-14 José Martínez <xosemp@gmail.com>
8300 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8302 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8304 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8307 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8309 * configure.ac: Remove --enable-grub-pe2elf. Only build
8310 grub-pe2elf when needed by the build system itself.
8311 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8313 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8315 * configure.ac: Bump version to 1.97~beta3.
8316 * docs/version.texi: Likewise.
8318 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8320 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8321 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8323 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8324 (grub_linux_setup_video): ... to here (with some adjustments).
8326 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8328 Fix memory corruption issue (spotted by Colin Watson).
8330 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8331 causing returned size to be stored in an incorrect memory location.
8332 Fix use of uninitialized value when storing the returned size.
8334 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8336 Change clean rules to properly remove files
8338 * genmk.rb: add new clean rules
8339 * Makefile.in (clean): add the new targets
8340 (mostlyclean): likewise
8342 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8344 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8346 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8349 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8351 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8354 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8356 * util/grub-mkconfig.in: Make the created config mode 400 and
8357 print a warning if it fails.
8359 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8361 * util/grub.d/40_custom.in: Ask user to type custom entries below
8362 comment, rather than below 'exec tail' line.
8364 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8366 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8367 visible in grub.cfg.
8369 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8371 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8374 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8376 * docs/grub.cfg: Add an example menu entry for memtest86+.
8378 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8380 * config.guess: Update to latest version from config git.
8381 * config.sub: Likewise.
8383 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8385 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8386 unknown-command case. Fixes bug #27320.
8388 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8390 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8391 `help' if the command exists.
8393 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8395 * INSTALL: Require GCC 4.1.3 or later.
8397 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8399 * Makefile.in (RMKFILES): add i386-qemu.rmk
8400 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8401 $(srcdir)/stamp-h.in
8403 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8405 * util/grub-probe.c (probe): Comment out buggy codepath, which
8406 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8407 should be re-enabled after 1.97.
8409 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8411 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8414 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8416 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8417 unnecessary calls to grub_error.
8419 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8421 * NEWS: Mention `keystatus' and Unicode fonts.
8423 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8425 * configure.ac: Bump version to 1.97~beta2.
8426 * docs/version.texi: Likewise.
8428 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8430 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8431 containing unwind information in some cases where it previously did
8432 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8433 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8436 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8438 Embedding loadenv module into grub-emu
8440 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8442 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8443 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8444 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8446 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8447 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8449 2009-09-03 Magnus Granberg <zorry@ume.nu>
8451 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8452 include -fPIE in the default specs.
8453 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8456 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8458 * INSTALL: Note that GNU Bison 2.3 or later is required.
8460 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8462 * kern/i386/pc/startup.S: Fix typo.
8464 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8466 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8469 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8471 * docs/grub.texi (Naming convention): Describe one-based partition
8473 (Device syntax): Likewise.
8474 (File name syntax): Likewise.
8475 (Block list syntax): Likewise.
8476 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8478 (File name syntax): Likewise.
8479 (Command-line and menu entry commands): Document acpi, blocklist,
8480 crc, export, insmod, keystatus, ls, set, and unset commands.
8482 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8484 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8485 to avoid implying that only one of --shift, --ctrl, or --alt may be
8488 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8490 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8491 rather than comparing against S_IFREG, which will almost never work.
8493 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8495 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8496 (write_blocklists): Likewise.
8498 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8500 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8501 argument to grub_printf.
8503 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8505 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8508 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8510 * kern/file.c (grub_file_read): Spelling fix
8512 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8514 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8515 loading of headers in some cases.
8517 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8519 * configure.ac: Bump version to 1.97~beta1.
8520 * docs/version.texi: Likewise.
8522 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8524 * include/grub/i386/xnu.h: Add license header.
8525 include grub/err.h explicitly.
8527 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8529 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8530 to `ufs' in the vfs.root.mountfrom kernel parameter.
8532 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8534 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8536 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8537 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8539 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8542 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8544 * kern/file.c (grub_file_read): Check offset.
8545 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8546 * fs/jfs.c (grub_jfs_read_file): Likewise.
8547 * fs/ntfs.c (grub_ntfs_read): Likewise.
8548 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8549 * fs/minix.c (grub_minix_read_file): Correct offset check.
8550 * fs/ufs.c (grub_ufs_read_file): Likewise.
8552 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8554 * term/i386/pc/console.c (bios_data_area): Cast
8555 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8557 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8559 1-bit optimised blitters.
8561 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8563 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8564 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8565 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8566 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8567 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8568 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8569 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8571 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8572 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8573 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8574 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8575 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8576 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8577 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8579 * video/video.c (grub_video_get_blit_format): Return
8580 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8582 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8584 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8585 the first argument to grub_printf.
8587 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8588 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8590 Add `getkeystatus' terminal method. Add a new `keystatus' command
8593 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8594 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8595 modifier key bitmasks.
8596 (struct grub_term_input): Add `getkeystatus' member.
8597 (grub_getkeystatus): Add prototype.
8598 * kern/term.c (grub_getkeystatus): New function.
8600 * include/grub/i386/pc/memory.h
8601 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8602 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8604 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8605 (grub_console_term_input): Set `getkeystatus' member.
8606 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8608 (grub_usb_keyboard_getreport): Likewise.
8609 (grub_usb_keyboard_checkkey): Likewise.
8610 (grub_usb_keyboard_getkeystatus): New function.
8611 (grub_usb_keyboard_term): Set `getkeystatus' member.
8613 * commands/keystatus.c: New file.
8614 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8615 (keystatus_mod_SOURCES): New variable.
8616 (keystatus_mod_CFLAGS): Likewise.
8617 (keystatus_mod_LDFLAGS): Likewise.
8618 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8619 commands/keystatus.c.
8620 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8621 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8622 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8624 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8625 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8627 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8629 Split befs.mod and afs.mod into *_be.mod and *.mod
8631 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8632 (grub_fstest_SOURCES): Likewise.
8633 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8634 (afs_be_mod_SOURCES): New variable.
8635 (afs_be_mod_CFLAGS): Likewise.
8636 (afs_be_mod_LDFLAGS): Likewise.
8637 (befs_be_mod_SOURCES): Likewise.
8638 (befs_be_mod_CFLAGS): Likewise.
8639 (befs_be_mod_LDFLAGS): Likewise.
8640 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8641 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8643 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8644 (grub_emu_SOURCES): Likewise.
8645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8646 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8647 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8648 * fs/afs_be.c: New file.
8649 * fs/befs_be.c: New file.
8650 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8651 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8652 (U16): Replaced with ...
8653 (grub_afs_to_cpu16): ...this. All users updated.
8654 (U32): Replaced with ...
8655 (grub_afs_to_cpu32): ...this. All users updated.
8656 (U64): Replaced with ...
8657 (grub_afs_to_cpu64): ...this. All users updated.
8658 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8659 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8660 (grub_afs_validate_sblock): Check only one endianness.
8661 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8662 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8663 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8664 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8665 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8666 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8667 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8668 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8670 2009-08-26 Bean <bean123ch@gmail.com>
8672 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8674 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8675 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8676 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8678 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8680 NetBSD memory map support.
8682 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8683 (grub_netbsd_btinfo_mmap_header): New structure.
8684 (grub_netbsd_btinfo_mmap_entry): Likewise.
8685 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8687 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8689 Enable bsd.mod on coreboot.
8691 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8692 (bsd_mod_SOURCES): New variable.
8693 (bsd_mod_CFLAGS): Likewise.
8694 (bsd_mod_LDFLAGS): Likewise.
8695 (bsd_mod_ASFLAGS): Likewise.
8696 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8697 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8699 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8701 Cleanup NetBSD root support.
8703 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8704 grub_bsd_get_device.
8707 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8709 * util/grub.d/00_header.in: Move check for the video backend of
8710 gfxterm from here ...
8711 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8712 a suitable video backend.
8714 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8716 Fix breakage in grub-setup.
8718 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8719 "msdos_partition_map".
8721 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8723 Fix breakage in normal/auth.c.
8725 * normal/auth.c (grub_iswordseparator): New function.
8727 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8729 Authentication support.
8731 * commands/password.c: New file.
8732 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8733 (password_mod_SOURCES): New variable.
8734 (password_mod_CFLAGS): Likewise.
8735 (password_mod_LDFLAGS): Likewise.
8736 (normal_mod_SOURCES): Add normal/auth.c.
8737 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8739 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8741 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8744 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8745 * include/grub/auth.h: New file.
8746 * include/grub/err.h (grub_err_t): New enum value
8747 GRUB_ERR_ACCESS_DENIED.
8748 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8750 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8751 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8753 * normal/auth.c: New file.
8754 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8755 (grub_cmdline_run): Don't allow to go to command line without
8757 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8758 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8759 menuentry without superuser rights.
8760 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8761 user isn't a superuser.
8763 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8765 Save space by inlining misc.c functions.
8767 * kern/misc.c (grub_iswordseparator): Made static.
8768 * kern/misc.c (grub_strcat): Moved from here ...
8769 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8770 * kern/misc.c (grub_strncat): Moved from here ...
8771 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8772 * kern/misc.c (grub_strcasecmp): Moved from here ...
8773 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8774 * kern/misc.c (grub_strncasecmp): Moved from here ...
8775 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8776 * kern/misc.c (grub_isalpha): Moved from here ...
8777 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8778 * kern/misc.c (grub_isdigit): Moved from here ...
8779 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8780 * kern/misc.c (grub_isgraph): Moved from here ...
8781 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8782 * kern/misc.c (grub_tolower): Moved from here ...
8783 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8785 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8787 * script/sh/function.c (grub_script_function_find): Cut error message
8788 not to flood terminal.
8789 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8791 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8793 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8795 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8796 `report' grub_uint8_t *.
8797 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8798 Use a 50-millisecond timeout rather than just repeating
8799 grub_usb_keyboard_getreport 50 times.
8800 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8802 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8804 Rename *_partition_map to part_*
8806 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8807 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8808 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8809 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8811 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8813 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8814 * util/grub-probe.c (probe_partmap): Don't transform partition name
8817 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8819 Fix OpenBSD and NetBSD support.
8821 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8822 memory address conflict.
8823 (OPENBSD_MMAP_ACPI): New definition.
8824 (OPENBSD_MMAP_NVS): Likewise.
8825 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8826 and OPENBSD_MMAP_NVS.
8827 Add memory map terminator
8828 Explicit cast when calling grub_unix_real_boot.
8829 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8831 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8833 Let user specify NetBSD root device.
8835 * loader/i386/bsd.c (netbsd_root): New variable.
8836 (netbsd_opts): New option 'root'.
8837 (NETBSD_ROOT_ARG): New macro.
8838 (grub_netbsd_boot): Use 'netbsd_root'.
8839 (grub_bsd_unload): Free 'netbsd_root'.
8840 (grub_cmd_netbsd): Fill 'netbsd_root'.
8842 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8844 Support for 64-bit NetBSD.
8846 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8847 point when booting non-FreeBSD.
8849 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8851 Support --no-smp and --no-acpi for NetBSD.
8853 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8854 (NETBSD_AB_NOACPI): Likewise.
8855 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8856 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8858 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8860 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8862 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8863 errors. Call grub_error when needed.
8865 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8867 * commands/search.c (search_fs): Try searching without autoload first.
8868 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8869 filesystem module explicitly for faster booting.
8871 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8873 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8875 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8877 * util/grub.d/30_os-prober.in: Disable os-prober if
8878 `GRUB_DISABLE_OS_PROBER' was set to true.
8880 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8882 * partmap/pc.c: Rename to ...
8883 * partmap/msdos.c: ... this. Update all users.
8884 (grub_pc_partition_map): Rename to ...
8885 (grub_msdos_partition_map): ... this. Update all users.
8887 * parttool/pcpart.c: Rename to ...
8888 * parttool/msdospart.c: ... this. Update all users.
8890 * include/grub/pc_partition.h: Rename to ...
8891 * include/grub/msdos_partition.h: ... this. Update all users.
8892 (grub_pc_partition_bsd_entry): Rename to ...
8893 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8894 (grub_pc_partition_disk_label): Rename to ...
8895 (grub_msdos_partition_disk_label): ... this. Update all users.
8896 (grub_pc_partition_entry): Rename to ...
8897 (grub_msdos_partition_entry): ... this. Update all users.
8898 (grub_pc_partition_mbr): Rename to ...
8899 (grub_msdos_partition_mbr): ... this. Update all users.
8900 (grub_pc_partition): Rename to ...
8901 (grub_msdos_partition): ... this. Update all users.
8902 (grub_pc_partition_is_empty): Rename to ...
8903 (grub_msdos_partition_is_empty): ... this. Update all users.
8904 (grub_pc_partition_is_extended): Rename to ...
8905 (grub_msdos_partition_is_extended): ... this. Update all users.
8906 (grub_pc_partition_is_bsd): Rename to ...
8907 (grub_msdos_partition_is_bsd): ... this. Update all users.
8909 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8910 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8911 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8912 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8913 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8914 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8915 (gpt_mod_LDFLAGS): Rename to ...
8916 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8917 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8918 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8919 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8920 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8921 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8922 (part_gpt_mod_LDFLAGS): ... this.
8923 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8924 `pcpart.mod' to `msdospart.mod'.
8925 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8927 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8928 (msdospart_mod_LDFLAGS): ... this.
8930 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8932 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8933 (openbsd_opts): Likewise.
8934 (netbsd_opts): Likewise.
8935 (freebsd_flags): Added 0 terminator.
8936 (openbsd_flags): Likewise.
8937 (netbsd_flags): Likewise.
8938 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8939 (grub_cmd_freebsd): Transformed into extended command.
8940 (grub_cmd_openbsd): Likewise.
8941 (grub_cmd_netbsd): Likewise.
8942 (cmd_freebsd): Changed type to grub_extcmd_t.
8943 (cmd_openbsd): Likewise.
8944 (cmd_netbsd): Likewise.
8945 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8946 grub_cmd_openbsd as extended commands.
8947 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8948 cmd_netbsd and cmd_openbsd
8950 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8952 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8954 2009-08-21 Pavel Roskin <proski@gnu.org>
8956 * Makefile.in (install-local): When checking if a file is in the
8957 build directory, use "test -e" to detect symlinks.
8959 * Makefile.in (install-local): Remove all files in
8960 $(DESTDIR)$(pkglibdir) before installing new files there.
8962 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8964 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8967 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8969 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8970 explicitly specified by the user.
8972 2009-08-18 Pavel Roskin <proski@gnu.org>
8974 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8975 grub_uint8_t pointer for data.
8976 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8978 * video/fb/fbutil.c: Remove unnecessary casts.
8980 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8984 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8985 (grub_vbe_set_video_mode): Save active mode info
8986 only after setting the mode.
8987 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8990 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8992 Rename variables for clarity.
8994 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8995 (active_vbe_mode_info): ... this. All users updated.
8996 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8998 (initial_mode): Rename to ...
8999 (initial_vbe_mode): ... this. All users updated.
9000 (mode_in_use): Rename to ..
9001 (vbe_mode_in_use): ... this. All users updated.
9002 (mode_list): Rename to ..
9003 (vbe_mode_list): ... this. All users updated.
9004 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9005 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9006 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9007 'mode_list_size' to 'vbe_mode_list_size'.
9008 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9009 'best_mode_info' to 'best_vbe_mode_info' and
9010 'best_mode' to 'best_vbe_mode'
9012 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9014 Remove duplicate grub_video_fb_get_video_ptr.
9016 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9017 (grub_video_fb_get_video_ptr): ... this.
9018 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9019 * video/fb/fbutil.c: Add comment about addressing.
9020 (get_data_ptr): Rename to ...
9021 (grub_video_fb_get_video_ptr): ... this. All users updated.
9022 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9024 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9026 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9027 grub_dprintf() that was just added.
9029 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9031 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9032 (DEFAULT_VIDEO_MODE): Remove macros.
9033 (grub_linux_boot): Remove assumption that Linux has FB support,
9034 and use "text" as default video mode.
9036 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9038 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9040 * fs/fat.c (grub_fat_read_data): Likewise.
9042 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9044 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9046 (grub_module): Likewise.
9048 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9050 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9051 mbi->cmdline but free playground.
9053 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9055 Handle group offset on UFS1.
9057 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9058 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9060 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9062 Split ufs.mod into ufs1.mod and ufs2.mod.
9064 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9065 (grub_fstest_SOURCES): Likewise.
9066 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9067 (ufs_mod_SOURCES): Remove.
9068 (ufs_mod_CFLAGS): Likewise.
9069 (ufs_mod_LDFLAGS): Likewise.
9070 (ufs1_mod_SOURCES): New variable.
9071 (ufs1_mod_CFLAGS): Likewise.
9072 (ufs1_mod_LDFLAGS): Likewise.
9073 (ufs2_mod_SOURCES): New variable.
9074 (ufs2_mod_CFLAGS): Likewise.
9075 (ufs2_mod_LDFLAGS): Likewise.
9076 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9077 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9079 (grub_emu_SOURCES): Likewise.
9080 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9081 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9082 (grub_setup_SOURCES): Likewise.
9083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9084 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9085 (grub_setup_SOURCES): Likewise.
9086 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9088 * fs/ufs2.c: New file.
9089 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9091 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9095 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9096 subsystem at the end.
9097 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9098 (video_fb_mod_SOURCES): New variable.
9099 (video_fb_mod_CFLAGS): Likewise.
9100 (video_fb_mod_LDFLAGS): Likewise.
9101 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9102 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9103 * video/i386/pc/vbeblit.c: Moved from here ...
9104 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9105 * video/i386/pc/vbefill.c: Moved from here ...
9106 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9107 * video/i386/pc/vbeutil.c: Moved from here ...
9108 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9109 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9110 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9111 * include/grub/i386/pc/vbefill.h: Moved from here ...
9112 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9113 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9114 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9115 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9116 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9117 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9118 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9119 (grub_video_adapter): Added 'get_info_and_fini'.
9120 (grub_video_get_info_and_fini): New prototype.
9121 (grub_video_set_mode): make modestring const char *.
9122 * loader/i386/linux.c (grub_linux_setup_video): Use
9123 grub_video_get_info_and_fini.
9124 (grub_linux_boot): Move modesetting just before booting.
9125 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9126 grub_video_get_info_and_fini.
9127 * video/i386/pc/vbe.c: Moved framebuffer part ...
9128 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9129 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9130 grub_video_fbstd_colors and grub_video_fb_set_palette.
9131 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9133 (grub_video_vbe_fini): Use grub_video_fb_fini.
9134 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9135 render_target and use grub_video_fb_set_active_render_target and
9136 grub_video_fb_set_palette.
9137 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9138 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9139 (grub_video_vbe_adapter): Use framebuffer.
9140 * video/video.c (grub_video_get_info_and_fini): New function.
9141 (grub_video_set_mode): Make modestring const char *.
9142 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9143 values are already initialised.
9145 2009-08-14 Pavel Roskin <proski@gnu.org>
9147 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9149 * boot/i386/pc/diskboot.S: Likewise.
9150 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9151 sectors allow compilation on MacOSX.
9152 * conf/i386-pc.rmk: Enable unconditional compilation of
9155 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9157 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9158 * util/grub.d/00_header.in: Enter interruptible sleep if
9159 GRUB_HIDDEN_TIMEOUT is set.
9161 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9163 * include/grub/symbol.h: Add the LOCAL macro.
9164 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9167 2009-08-13 Pavel Roskin <proski@gnu.org>
9169 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9170 any modern compilers we support.
9172 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9173 Use local labels starting with "L_" so that Apple assembler
9174 knows they are local.
9176 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9178 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9179 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9180 (bsd_kernel_types): ... this enum.
9182 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9183 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9184 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9186 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9187 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9188 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9191 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9193 * util/grub-dumpdevtree: Moved from here ...
9194 * util/i386/efi/grub-dumpdevtree: ... to here.
9195 (hexify): New function. Converts a string to its hex version.
9196 Generate hex versions of "efi" and "device-properties" by calling
9197 hexify() on the ASCII strings rather than by hardcoding numbers.
9199 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9201 * fs/jfs.c: Update copyright year.
9203 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9205 * util/grub.d/00_header.in: Fix a comment.
9206 * util/grub.d/10_linux.in: Likewise.
9207 * util/grub.d/10_windows.in: Likewise.
9208 * util/grub.d/10_hurd.in: Likewise.
9210 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9212 * util/grub-mkconfig.in: Allow the user to specify the used font
9215 2009-08-08 Pavel Roskin <proski@gnu.org>
9217 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9218 available, xfs.mod needs it now.
9220 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9221 the "g" modifier in sed when the intention is to strip something
9222 once. This fixes comparison of kernels with multiple dashes.
9224 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9225 on it. Add missing space before closing bracket. Fix
9226 misleading formatting.
9228 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9230 * docs/grub.texi: Major overhaul. Remove all sections that are
9231 specific to GRUB Legacy, or mostly composed of Legacy-specific
9234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9236 * docs/version.texi: New file. Provides version information for
9239 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9241 * docs/grub.texi: Update CVS information to SVN.
9242 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9244 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9246 * util/grub-mkconfig.in: Remove a wrong `fi'.
9248 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9250 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9251 (grub_jfs_uuid): New function.
9252 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9254 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9256 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9258 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9259 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9261 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9263 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9264 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9267 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9268 not just "vmlinu[zx]".
9270 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9273 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9274 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9277 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9279 * util/grub.d/10_freebsd.in: Use an absolute device path for
9280 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9282 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9284 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9285 handling of multiple abstraction modules.
9287 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9289 Fix a bug resulting in black screen when loading Linux using a
9292 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9295 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9296 (grub_vbe_bios_getset_dac_palette_width): New function.
9297 (grub_vbe_bios_get_dac_palette_width)
9298 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9299 grub_vbe_bios_getset_dac_palette_width()).
9301 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9302 check for return status.
9303 (grub_vbe_get_video_mode_info): When getting information for a packed
9304 mode (<= 8 bpp), obtain DAC palette width using
9305 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9306 {red,green,blue}_mark_size.
9308 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9310 * commands/search.c (options): Fix help output to match actual code.
9312 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9314 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9317 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9319 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9322 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9324 Support Apple partition map with sector size different from 512 bytes.
9326 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9327 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9328 and 'apart.partmap_size'.
9330 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9331 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9335 * commands/i386/cpuid.c (options): New variable.
9336 (grub_cmd_cpuid): Return real error.
9337 (GRUB_MOD_INIT(cpuid)): Declare options.
9339 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9341 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9344 2009-07-31 Bean <bean123ch@gmail.com>
9346 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9348 (grub_fshelp_node): Move inode field to the end.
9349 (grub_xfs_data): Remove inode field.
9350 (grub_xfs_inode_block): Calculate inode size using sblock.
9351 (grub_xfs_inode_offset): Likewise.
9352 (grub_xfs_read_inode): Calculate inode size using sblock.
9353 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9354 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9355 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9356 to match inode size.
9357 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9358 not accessible when data is null.
9359 (grub_xfs_open): Likewise.
9361 2009-07-31 Bean <bean123ch@gmail.com>
9363 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9364 Don't change pv->disk if it's already set.
9366 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9367 (grub_raid_register): ... here.
9368 (grub_raid_rescan): Removed.
9370 * include/grub/raid.h (grub_raid_rescan): Removed.
9372 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9373 (fstest): Replace grub_raid_rescan with module fini function followed
9376 * util/grub-probe.c: Add include file <grub/raid.h>.
9377 (probe_raid_level): New function.
9378 (probe): Detect abstraction by walking the disk device, support two
9379 level of abstraction (LVM on RAID) when detecting partition map.
9381 2009-07-31 Pavel Roskin <proski@gnu.org>
9383 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9384 to grub_zalloc(), it was erroneous.
9385 Reported by Bean <bean123ch@gmail.com>
9387 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9389 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9390 embedding zone, not only the first one.
9392 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9394 * term/gfxterm.c (clear_char): New function.
9395 (grub_virtual_screen_setup): Use clear_char.
9396 (scroll_up): Likewise.
9397 (grub_virtual_screen_cls): Likewise.
9399 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9401 * util/deviceiter.c (get_acceleraid_disk_name): New static
9403 (grub_util_iterate_devices): Handle Accelraid devices.
9404 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9406 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9408 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9409 separator for the suggested gfxpayload string (';' collides with the
9410 parser and needs escaping).
9412 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9414 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9415 Clear direction flag before jumping to OS.
9416 (grub_multiboot2_real_boot): Likewise.
9418 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9420 * util/i386/pc/grub-install: Fix parsing of --disk-module
9423 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9425 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9428 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9430 * util/grub-mkconfig.in (package_version): New variable.
9431 Use it do display the version.
9433 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9435 * kern/file.c (grub_file_open): Revert to previous check with
9438 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9440 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9441 from help line. It's out of sync with code.
9443 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9445 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9446 entries on failed boot.
9448 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9450 * kern/file.c (grub_file_open): Fix an error check.
9452 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9454 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9455 partition map couldn't be identified.
9457 2009-07-23 Pavel Roskin <proski@gnu.org>
9459 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9460 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9461 case of little endian words becomes just an optimization.
9462 Respect const modifier.
9463 (md5_final): Use code that doesn't depend on endianness.
9465 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9466 to avoid loss of upper bits if align is unsigned and shorter
9469 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9471 UUID support for UFS
9473 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9474 (grub_ufs_uuid): New function.
9475 (grub_ufs_fs): add .uuid
9477 2009-07-21 Pavel Roskin <proski@gnu.org>
9479 * kern/dl.c (grub_dl_check_header): Make static.
9481 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9483 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9484 add drivemap for Vista. It breaks Windows 7.
9486 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9488 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9491 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9495 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9496 (grub_fstest_SOURCES): Likewise.
9497 (pkglib_MODULES): Add befs.mod.
9498 (befs_mod_SOURCES): New variable.
9499 (befs_mod_CFLAGS): Likewise.
9500 (befs_mod_LDFLAGS): Likewise.
9501 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9502 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9503 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9504 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9505 (grub_setup_SOURCES): Likewise.
9506 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9507 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9508 (grub_setup_SOURCES): Likewise.
9509 * fs/befs.c: New file.
9510 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9511 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9512 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9513 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9514 (B_KEY_INDEX_ALIGN): New declaration.
9515 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9516 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9517 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9518 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9519 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9520 (grub_afs_mount) [MODE_BFS]: Likewise.
9521 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9522 (grub_afs_fs): Use GRUB_AFS_FSNAME
9523 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9524 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9525 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9526 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9528 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9530 * util/getroot.c (find_root_device): Add support for MacOSX.
9531 * util/hostdisk.c: Likewise.
9533 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9535 * font/font.c (find_glyph): Check whether a font is present to avoid
9538 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9540 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9542 2009-07-20 Pavel Roskin <proski@gnu.org>
9544 * configure.ac: Trim excessively wordy excuses.
9546 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9548 Add symlink, mtime and label support to AtheFS.
9550 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9551 (grub_afs_iterate_dir): Handle symlinks.
9552 (grub_afs_open): Use grub_afs_read_symlink.
9553 (grub_afs_dir): Likewise.
9555 (grub_afs_label): New function.
9556 (grub_afs_fs): Add grub_afs_label.
9557 (grub_afs_read_symlink): New function.
9559 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9563 * fs/afs.c: Fix comments style.
9564 (grub_afs_blockrun): Declare as packed.
9565 (grub_afs_datastream): Likewise.
9566 (grub_afs_bnode): Likewise.
9567 (grub_afs_btree): Likewise.
9568 (grub_afs_sblock): Likewise.
9569 Declare `name' as char.
9570 (grub_afs_inode): Declare as packed.
9571 Change void *vnode to grub_uint32_t unused.
9572 (grub_afs_iterate_dir): Check that key_size is positive.
9573 (grub_afs_mount): Don't read superblock twice.
9574 (grub_afs_dir): Don't free node in case of error,
9575 grub_fshelp_find_file already handles this.
9576 (grub_afs_open): Likewise.
9578 2009-07-19 Pavel Roskin <proski@gnu.org>
9580 * Makefile.in: Remove LIBLZO and enable_lzo.
9581 * conf/i386-pc.rmk: Remove lzo support.
9582 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9583 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9585 * kern/i386/pc/lzo1x.S: Remove.
9586 * kern/i386/pc/startup.S: Remove lzo support.
9587 * util/i386/pc/grub-mkimage.c: Likewise.
9589 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9591 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9592 * fs/xfs.c (grub_xfs_dir): Likewise.
9593 * fs/afs.c (grub_afs_dir): Likewise.
9594 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9595 (grub_iso9660_open): Likewise.
9596 * fs/jfs.c (grub_jfs_open): Likewise.
9597 * fs/ext2.c (grub_ext2_dir): Likewise.
9598 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9599 * script/sh/lexer.c (grub_script_yylex): Likewise.
9601 2009-07-16 Pavel Roskin <proski@gnu.org>
9603 * configure.ac: Never add "-c" to CFLAGS.
9605 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9607 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9608 grub_cv_cc_efiemu should be used.
9610 * configure.ac: Typo fixes.
9612 * kern/mm.c (grub_zalloc): New function.
9613 (grub_debug_zalloc): Likewise.
9614 * include/grub/mm.h: Declare grub_zalloc() and
9615 grub_debug_zalloc().
9616 * util/misc.c (grub_zalloc): New function.
9617 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9618 instead of grub_malloc(), remove unneeded initializations.
9619 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9620 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9621 * commands/parttool.c (grub_cmd_parttool): Likewise.
9622 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9623 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9624 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9625 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9626 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9627 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9628 (grub_cmd_efiemu_pnvram): Likewise.
9629 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9630 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9631 (grub_iso9660_iterate_dir): Likewise.
9632 * fs/jfs.c (grub_jfs_opendir): Likewise.
9633 * fs/ntfs.c (list_file): Likewise.
9634 (grub_ntfs_mount): Likewise.
9635 * kern/disk.c (grub_disk_open): Likewise.
9636 * kern/dl.c (grub_dl_load_core): Likewise.
9637 * kern/elf.c (grub_elf_file): Likewise.
9638 * kern/env.c (grub_env_context_open): Likewise.
9639 (grub_env_set): Likewise.
9640 (grub_env_set_data_slot): Likewise.
9641 * kern/file.c (grub_file_open): Likewise.
9642 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9643 * loader/i386/multiboot.c (grub_module): Likewise.
9644 * loader/xnu.c (grub_xnu_create_key): Likewise.
9645 (grub_xnu_create_value): Likewise.
9646 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9647 (read_config_file): Likewise.
9648 * normal/menu_entry.c (make_screen): Likewise.
9649 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9650 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9651 * script/sh/script.c (grub_script_parse): Likewise.
9652 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9653 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9654 * video/readers/png.c (grub_png_output_byte): Likewise.
9655 (grub_video_reader_png): Likewise.
9657 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9659 Enable all targets that can be built by default
9661 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9662 grub-mkfont and grub-fstest if they can be built
9664 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9666 Fix hang and segmentation fault in grub-emu-usb
9668 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9669 * util/usb.c (grub_libusb_devices): likewise
9670 (grub_libusb_init): rename to ...
9671 (GRUB_MOD_INIT (libusb)):...this
9672 (grub_libusb_fini): rename to ..
9673 (GRUB_MOD_FINI (libusb)):...this
9674 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9675 * include/grub/disk.h (grub_raid_init): removed, it's useless
9676 (grub_raid_fini): likewise
9677 (grub_lvm_init): likewise
9678 (grub_lvm_fini): likewise
9679 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9682 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9686 * Makefile.in (LIBUSB): new macro
9687 * genmk.rb (Utility/print_tail): new method
9688 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9689 (top level): call util.print_tail at the end.
9691 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9693 Make FreeBSD accept zpool.cache
9695 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9696 type is /boot/zfs/zpool.cache
9698 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9702 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9703 correct wrong typedef
9704 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9706 2009-07-15 Pavel Roskin <proski@gnu.org>
9708 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9709 * kern/disk.c (struct grub_disk_cache): Likewise.
9711 * commands/probe.c (options): Typo fix.
9713 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9714 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9716 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9718 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9719 the end of "Error" to make the message more readable.
9721 * boot/i386/pc/boot.S (kernel_segment): Remove.
9722 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9725 * boot/i386/pc/boot.S (boot_version): Remove.
9726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9729 * include/grub/i386/pc/boot.h: Sort all offsets.
9730 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9731 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9732 * boot/i386/pc/boot.S: Assert location of every offset listed in
9733 include/grub/i386/pc/boot.h.
9735 2009-07-13 Pavel Roskin <proski@gnu.org>
9737 * include/grub/i386/coreboot/machine.h: Rename
9738 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9739 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9740 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9742 * kern/dl.c: Force native word size to suppress warnings when
9745 * kern/device.c (grub_device_iterate): Change struct part_ent to
9746 hold the name, not a pointer to it. Use one grub_malloc() per
9747 partition, not two. Free partition_name if grub_malloc() fails.
9748 Set ents to NULL only before grub_partition_iterate() is called.
9750 2009-07-11 Bean <bean123ch@gmail.com>
9752 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9755 2009-07-10 Bean <bean123ch@gmail.com>
9756 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9758 * kern/ieee1275/openfw.c (grub_children_iterate)
9759 (grub_devalias_iterate): Fix size evaluation for property or path
9760 strings, which was broken since r2132.
9762 2009-07-07 Pavel Roskin <proski@gnu.org>
9764 * commands/search.c (search_file): Merge into ...
9765 (search_fs): ... this. Accept search type as argument.
9766 (grub_cmd_search): Pass search type to search_fs().
9768 * include/grub/util/console.h: New file.
9769 * util/console.c: Use it instead of grub/machine/console.h.
9770 * util/grub-emu.c: Likewise.
9772 * lib/arg.c (find_long_option): Remove.
9773 (find_long): Add `len' argument, make `s' const char *.
9774 (grub_arg_parse): Parse long options in place, not in a
9777 2009-07-06 Pavel Roskin <proski@gnu.org>
9779 * commands/search.c (search_fs): Fix potential NULL pointer
9782 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9785 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9787 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9790 2009-07-05 Pavel Roskin <proski@gnu.org>
9792 * include/grub/i386/linux.h (struct linux_kernel_params):
9793 Restore padding3, it's still needed.
9795 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9797 * util/osdetect.lua: Likewise.
9799 2009-07-05 Bean <bean123ch@gmail.com>
9801 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9803 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9804 (grub_lua_getenv): Likewise.
9805 (grub_lua_setenv): Likewise.
9806 (save_errno): New function.
9807 (push_result): Likewise.
9808 (grub_lua_enum_device): Likewise.
9809 (grub_lua_enum_file): Likewise.
9810 (grub_lua_file_open): Likewise.
9811 (grub_lua_file_close): Likewise.
9812 (grub_lua_file_seek): Likewise.
9813 (grub_lua_file_read): Likewise.
9814 (grub_lua_file_getline): Likewise.
9815 (grub_lua_file_getsize): Likewise.
9816 (grub_lua_file_getpos): Likewise.
9817 (grub_lua_file_eof): Likewise.
9818 (grub_lua_file_exist): Likewise.
9819 (grub_lua_add_menu): Likewise.
9821 * script/lua/grub_lua.h (isupper): New inline function.
9822 (islower): Likewise.
9823 (ispunct): Likewise.
9824 (isxdigit): Likewise.
9825 (strcspn): Change to normal function.
9826 (strpbkr): New function declaration.
9829 * script/lua/grub_main.c (scan_str): New function.
9830 (strcspn): Likewise.
9831 (strpbrk): Likewise.
9834 * script/lua/linit.c (lualibs): Enable the string library.
9836 * util/osdetect.lua: New file.
9838 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9840 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9841 `capabilities' member.
9843 2009-07-02 Pavel Roskin <proski@gnu.org>
9845 * genparttoollist.sh: Add missing newline at the end.
9847 2009-07-01 Pavel Roskin <proski@gnu.org>
9849 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9851 * util/hostdisk.c (open_device): Remove `const' from
9852 `sysctl_size', as sysctlbyname() can change it (in this case it
9853 doesn't actually happen).
9855 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9856 using signed long int constants.
9858 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9859 constant to avoid a warning on FreeBSD.
9861 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9864 * Makefile.in: Install include/grub/machine symlink.
9866 * Makefile.in: When installing symlinks, use "cp -fR", which
9867 works on FreeBSD and MacOSX.
9868 From Yves Blusseau <cl7m42e02@sneakemail.com>
9870 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9871 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9873 * util/misc.c: Move grub_reboot() and grub_halt() ...
9874 * util/grub-emu.c: ... here. Make main_env static.
9875 * include/grub/util/misc.h: Remove main_env.
9877 * kern/mm.c: Use correct format to print size_t.
9879 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9880 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9881 * kern/powerpc/dl.c: Likewise.
9882 * kern/sparc64/dl.c: Likewise.
9883 * kern/x86_64/dl.c: Likewise.
9885 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9887 Fix grub-emu build on sparc64-ieee1275.
9889 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9892 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9894 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9895 (grub_reboot, grub_halt): New functions.
9897 * util/i386/pc/misc.c: Delete. Update all users.
9898 * util/sparc64/ieee1275/misc.c: Likewise.
9899 * util/powerpc/ieee1275/misc.c: Likewise.
9901 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9903 * conf/i386.rmk (setjmp_mod_SOURCES)
9904 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9905 * conf/common.rmk (setjmp_mod_SOURCES)
9906 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9907 to use $(target_cpu).
9908 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9909 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9910 * conf/powerpc-ieee1275.rmk: Likewise.
9911 * conf/sparc64-ieee1275.rmk: Likewise.
9913 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9914 $(target_cpu) for kern/$(target_cpu)/dl.c.
9915 * conf/i386-efi.rmk: Likewise.
9916 * conf/i386-ieee1275.rmk: Likewise.
9917 * conf/x86_64-efi.rmk: Likewise.
9918 * conf/i386-coreboot.rmk: Likewise.
9919 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9920 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9921 kern/$(target_cpu)/cache.S.
9922 * conf/sparc64-ieee1275.rmk: Likewise.
9924 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9926 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9927 type to `grub_uint8_t', and adjust `padding9' accordingly.
9929 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9931 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9933 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9934 assembly in final jump, using register constraints.
9936 (grub_linux_boot): For text mode, initialize `have_vga' using
9937 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9939 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9940 right before the final jump.
9942 Set `video_mode' to 0x3.
9944 Document initialization of `video_page', `video_mode' and
9947 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9949 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9950 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9951 and set GRUB_LINUX_FLAG_QUIET appropriately.
9953 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9955 Fix build on Debian / sparc.
9957 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9959 2009-06-28 Pavel Roskin <proski@gnu.org>
9961 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9964 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9966 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9968 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9971 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9975 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9976 file can't be opened. grub_file_open() is already supposed to set
9977 grub_errno / grub_errmsg appropriately.
9978 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9980 2009-06-27 Pavel Roskin <proski@gnu.org>
9981 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9983 * include/grub/dl.h: Include grub/elf.h.
9984 (struct grub_dl): Add symtab field.
9985 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9986 GRUB_MODULES_MACHINE_READONLY.
9987 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9988 of the header for read-only modules.
9989 (grub_dl_unload): Free mod->symtab for read-only modules.
9990 * kern/i386/dl.c: Use mod->symtab.
9991 * kern/powerpc/dl.c: Likewise.
9992 * kern/sparc64/dl.c: Likewise.
9993 * kern/x86_64/dl.c: Likewise.
9995 * conf/i386-qemu.rmk: New file.
9996 * kern/i386/qemu/startup.S: Likewise.
9997 * kern/i386/qemu/mmap.c: Likewise.
9998 * boot/i386/qemu/boot.S: Likewise.
9999 * include/grub/i386/qemu/time.h: Likewise.
10000 * include/grub/i386/qemu/serial.h: Likewise.
10001 * include/grub/i386/qemu/kernel.h: Likewise.
10002 * include/grub/i386/qemu/console.h: Likewise.
10003 * include/grub/i386/qemu/boot.h: Likewise.
10004 * include/grub/i386/qemu/init.h: Likewise.
10005 * include/grub/i386/qemu/machine.h: Likewise.
10006 * include/grub/i386/qemu/loader.h: Likewise.
10007 * include/grub/i386/qemu/memory.h: Likewise.
10009 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10010 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10011 [qemu] (pkglib_IMAGES): Add `boot.img'.
10012 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10013 [qemu] (boot_img_FORMAT): New variables.
10014 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10015 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10016 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10017 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10018 [qemu] (kernel_img_FORMAT): New variables.
10020 * configure.ac: Recognise `i386-qemu'.
10022 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10023 (for no compression).
10024 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10025 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10026 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10027 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10030 2009-06-27 Pavel Roskin <proski@gnu.org>
10032 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10034 * efiemu/prepare32.c: Likewise.
10035 * efiemu/prepare64.c: Likewise.
10037 2009-06-26 Pavel Roskin <proski@gnu.org>
10039 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10040 * include/grub/elf.h: Define symbols without "32" or "64" based
10041 on GRUB_TARGET_WORDSIZE.
10042 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10043 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10045 * efiemu/loadcore64.c: Likewise.
10046 * loader/i386/bsd32.c: Likewise.
10047 * loader/i386/bsd64.c: Likewise.
10048 * kern/dl.c: Remove own ELF definitions.
10049 * util/i386/efi/grub-mkimage.c: Likewise.
10051 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10053 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10054 segment 0x0 unconditionally, because the reference generated by
10055 GAS is an absolute address.
10057 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10059 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10060 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10062 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10064 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10065 indexes. Check for -f explicitly.
10066 (search_file): Improve error message.
10067 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10069 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10071 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10072 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10074 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10076 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10077 * conf/i386-ieee1275.rmk: Likewise.
10078 * conf/i386-coreboot.rmk: Likewise.
10080 * kern/i386/pc/startup.S (grub_stop): Remove function.
10081 * kern/i386/ieee1275/startup.S: Likewise.
10082 * kern/i386/coreboot/startup.S: Likewise.
10083 * kern/i386/misc.S (grub_stop): New function.
10085 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10087 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10088 * kern/i386/realmode.S (real_to_prot): ... to here.
10090 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10092 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10094 (kernel_elf_SOURCES): Rename to ...
10095 (kernel_img_SOURCES): ... this.
10096 (kernel_elf_HEADERS): Rename to ...
10097 (kernel_img_HEADERS): ... this. Update all users.
10098 (kernel_elf_ASFLAGS): Rename to ...
10099 (kernel_img_ASFLAGS): ... this.
10100 (kernel_elf_CFLAGS): Rename to ...
10101 (kernel_img_CFLAGS): ... this.
10102 (kernel_elf_LDFLAGS): Rename to ...
10103 (kernel_img_LDFLAGS): ... this.
10104 * conf/i386-coreboot.rmk: Likewise.
10105 * conf/powerpc-ieee1275.rmk: Likewise.
10107 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10110 2009-06-21 Pavel Roskin <proski@gnu.org>
10112 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10113 to match nested functions.
10114 * loader/sparc64/ieee1275/linux.c: Likewise.
10116 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10118 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10120 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10121 all i386 platforms.
10123 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10125 Fix asm file handling on ELF, and remove workarounds.
10127 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10128 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10129 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10130 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10132 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10134 Load BSD ELF modules
10136 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10137 and loader/i386/bsd64.c
10138 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10139 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10140 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10141 (grub_freebsd_load_elfmodule32): New declaration
10142 (grub_freebsd_load_elfmoduleobj64): Likewise
10143 (grub_freebsd_load_elf_meta32): Likewise
10144 (grub_freebsd_load_elf_meta64): Likewise
10145 (grub_freebsd_add_meta): Likewise
10146 (grub_freebsd_add_meta_module): Likewise
10147 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10148 (grub_freebsd_add_meta_module): Likewise and move module-specific
10149 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10150 (grub_cmd_freebsd): Add elf-kernel specific parts
10151 based on grub_freebsd_add_meta_module
10152 (grub_cmd_freebsd_module): Add type parsing moved from
10153 grub_freebsd_add_meta_module
10154 (grub_cmd_freebsd_module_elf): New function
10155 (cmd_freebsd_module_elf): New variable
10156 (GRUB_MOD_INIT): Register freebsd_module_elf
10157 * loader/i386/bsd32.c: New file
10158 * loader/i386/bsd64.c: Likewise
10159 * loader/i386/bsdXX.c: Likewise
10160 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10161 (grub_elf64_load): Likewise
10162 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10164 (grub_elf64_load_hook_t): Likewise
10166 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10168 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10170 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10171 don't write a menu entry for recovery mode.
10173 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10175 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10176 after it's no longer needed.
10178 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10180 * include/grub/i386/loader.h (grub_linux_prot_size)
10181 (grub_linux_tmp_addr, grub_linux_real_addr)
10182 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10183 GRUB_MACHINE_PCBIOS.
10184 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10185 common grub_util_info() call to ...
10186 (generate_image): ... here.
10187 Fix use of uninitialized memory, comparison of signed with
10188 unsigned integers and memory leak.
10189 Remove bogus module address message.
10191 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10193 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10195 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10197 2009-06-19 Pavel Roskin <proski@gnu.org>
10199 * configure.ac: Remove stray AC_MSG_CHECKING.
10201 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10203 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10205 2009-06-18 Pavel Roskin <proski@gnu.org>
10207 * conf/common.rmk: Add fs_file.mod.
10208 * disk/fs_file.c: New file.
10209 * include/grub/disk.h (enum grub_disk_dev_id): Add
10210 GRUB_DISK_DEVICE_FILE_ID.
10212 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10214 Fix build with Apple's toolchain. Part 2
10216 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10219 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10221 Fix build with Apple's toolchain. Part 1
10223 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10225 * configure.ac: remove a leftover AC_MSG_RESULT
10226 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10229 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10233 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10234 (decomp_block): initialize ch
10235 use grub_memcpy instead of memcpy
10237 2009-06-17 Pavel Roskin <proski@gnu.org>
10239 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10240 version, use declarations needed to use vga_text as the startup
10243 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10244 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10246 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10247 and grub_at_keyboard_fini(), it's done on module load and
10250 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10252 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10253 file can't be found.
10254 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10256 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10258 Fix newline handling
10260 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10261 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10262 (grub_script_yylex): don't segfault on unterminated script
10263 newline terminates command and variable
10265 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10267 avoid double grub_adjust_range call. Bug reported by David Simner
10269 * kern/disk.c (grub_disk_write): change to raw disk access before
10272 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10274 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10275 spaces, for the benefit of help2man.
10276 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10278 2009-06-16 Pavel Roskin <proski@gnu.org>
10280 * kern/i386/halt.c: Include grub/machine/init.h.
10281 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10283 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10285 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10286 drivemap menuentry.
10288 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10290 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10293 2009-06-16 Pavel Roskin <proski@gnu.org>
10295 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10296 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10297 save %dx, we only need %dl and we never change it.
10298 * boot/i386/pc/cdboot.S: Don't set the root drive.
10299 * boot/i386/pc/pxeboot.S: Likewise.
10300 * include/grub/i386/pc/boot.h: Remove
10301 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10302 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10303 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10304 * kern/i386/pc/init.c (make_install_device): Remove references
10305 to grub_root_drive.
10306 * kern/i386/pc/startup.S: Likewise.
10307 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10309 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10313 * commands/xnu_uuid.c: new file
10314 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10315 (xnu_uuid_mod_SOURCES): new variable
10316 (xnu_uuid_mod_CFLAGS): likewise
10317 (xnu_uuid_mod_LDFLAGS): likewise
10318 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10319 * conf/i386-ieee1275.rmk: likewise
10320 * conf/i386-pc.rmk: likewise
10321 * conf/powerpc-ieee1275.rmk: likewise
10322 * conf/sparc64-ieee1275.rmk: likewise
10323 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10325 2009-06-16 Pavel Roskin <proski@gnu.org>
10327 * configure.ac: Avoid '==' in test command, it's not portable.
10329 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10333 * commands/probe.c: new file
10334 * conf/common.rmk (pkglib_MODULES): add probe.mod
10335 (probe_mod_SOURCES): new variable
10336 (probe_mod_CFLAGS): likewise
10337 (probe_mod_LDFLAGS): likewise
10338 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10339 * conf/i386-ieee1275.rmk: likewise
10340 * conf/i386-pc.rmk: likewise
10341 * conf/powerpc-ieee1275.rmk: likewise
10342 * conf/sparc64-ieee1275.rmk: likewise
10344 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10346 Fix handling of string like \"hello\" and "a
10349 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10350 (grub_script_yylex): fix parsing of quoting, escaping and newline
10352 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10354 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10357 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10359 * util/grub-mkconfig.in: Fix parsing of --output option.
10361 2009-06-12 Pavel Roskin <proski@gnu.org>
10363 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10364 genmk.rb don't need to be generated or installed.
10366 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10368 * commands/i386/pc/drivemap_int13h.S: add more comments
10370 2009-06-11 Pavel Roskin <proski@gnu.org>
10372 * Makefile.in (uninstall): Uninstall manuals.
10374 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10375 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10376 and update-grub_lib in two places.
10377 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10379 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10380 a compiler warning.
10382 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10383 `entry_lo' to fix variable shadowing.
10385 2009-06-11 Christian Franke <franke@computer.org>
10387 * kern/misc.c (__enable_execute_stack): Add missing return type
10388 to prevent gcc warning.
10390 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10392 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10394 2009-06-11 Pavel Roskin <proski@gnu.org>
10396 * Makefile.in: Don't rely on any scripts being executable.
10397 Always use $(SHELL) to run shell scripts.
10399 * configure.ac: Always define ___main if using -nostdlib. This
10400 fixes tests on Cygwin.
10402 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10406 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10407 is in bytes and not in blocks
10409 2009-06-11 Pavel Roskin <proski@gnu.org>
10411 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10414 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10416 * util/grub.d/30_os-prober.in: Fix a comment. Source
10417 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10418 to set the root device. Place drivemap command in the generated
10421 2009-06-11 Pavel Roskin <proski@gnu.org>
10423 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10424 have long been resolved.
10426 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10428 * util/grub.d/10_linux.in: Capitalise "Linux".
10430 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10432 2009-06-11 Pavel Roskin <proski@gnu.org>
10434 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10435 fix a gcc warning and ensure that the function won't ever exit.
10437 * kern/i386/ieee1275/init.c: Add missing prototype for
10438 grub_stop_floppy().
10440 * loader/ieee1275/multiboot2.c [__i386__]: Include
10441 grub/cpu/multiboot.h.
10443 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10444 casts to short - they are not portable and cause warnings. Fix
10445 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10447 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10451 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10453 (grub_get_root_biosnumber_saved): new variable
10454 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10455 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10456 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10457 %dx after the call if necessary
10458 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10459 (boot_mod_SOURCES): remove
10460 (boot_mod_CFLAGS): remove
10461 (boot_mod_LDFLAGS): remove
10462 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10463 (boot_mod_SOURCES): new variable
10464 (boot_mod_CFLAGS): likewise
10465 (boot_mod_LDFLAGS): likewise
10466 * conf/i386-efi.rmk: likewise
10467 * conf/i386-ieee1275.rmk: likewise
10468 * conf/i386-pc.rmk: likewise
10469 * conf/powerpc-ieee1275.rmk: likewise
10470 * conf/sparc64-ieee1275.rmk: likewise
10471 * conf/x86_64-efi.rmk: likewise
10472 * include/grub/i386/pc/biosnum.h: new file
10473 * lib/i386/pc/biosnum.c: likewise
10474 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10475 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10476 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10478 2009-06-10 Pavel Roskin <proski@gnu.org>
10480 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10481 Use separate variables. Read only the file size at the end, but
10482 not the checksum that we don't use.
10484 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10485 Adjust all callers.
10487 * kern/ieee1275/openfw.c: Remove libc includes.
10488 * kern/ieee1275/cmain.c: Likewise.
10489 * include/grub/ieee1275/ieee1275.h: Likewise.
10491 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10494 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10496 * Makefile.in: Remove all trailing whitespace.
10497 * conf/i386-pc.rmk: Likewise.
10498 * conf/powerpc-ieee1275.rmk: Likewise.
10499 * conf/sparc64-ieee1275.rmk: Likewise.
10500 * docs/grub.texi: Likewise.
10501 * docs/texinfo.tex: Likewise.
10502 * disk/fs_uuid.c: Likewise.
10503 * disk/lvm.c: Likewise.
10504 * disk/scsi.c: Likewise.
10505 * disk/ata.c: Likewise.
10506 * disk/ieee1275/ofdisk.c: Likewise.
10507 * disk/i386/pc/biosdisk.c: Likewise.
10508 * disk/host.c: Likewise.
10509 * disk/raid.c: Likewise.
10510 * disk/efi/efidisk.c: Likewise.
10511 * disk/usbms.c: Likewise.
10512 * disk/memdisk.c: Likewise.
10513 * disk/loopback.c: Likewise.
10514 * kern/powerpc/dl.c: Likewise.
10515 * kern/device.c: Likewise.
10516 * kern/dl.c: Likewise.
10517 * kern/sparc64/dl.c: Likewise.
10518 * kern/ieee1275/ieee1275.c: Likewise.
10519 * kern/term.c: Likewise.
10520 * kern/fs.c: Likewise.
10521 * kern/i386/dl.c: Likewise.
10522 * kern/i386/pc/startup.S: Likewise.
10523 * kern/i386/pc/init.c: Likewise.
10524 * kern/i386/pc/mmap.c: Likewise.
10525 * kern/i386/pc/lzo1x.S: Likewise.
10526 * kern/i386/ieee1275/init.c: Likewise.
10527 * kern/i386/realmode.S: Likewise.
10528 * kern/i386/tsc.c: Likewise.
10529 * kern/partition.c: Likewise.
10530 * kern/corecmd.c: Likewise.
10531 * kern/file.c: Likewise.
10532 * kern/efi/efi.c: Likewise.
10533 * kern/efi/init.c: Likewise.
10534 * kern/efi/mm.c: Likewise.
10535 * kern/main.c: Likewise.
10536 * kern/err.c: Likewise.
10537 * kern/env.c: Likewise.
10538 * kern/disk.c: Likewise.
10539 * kern/generic/millisleep.c: Likewise.
10540 * kern/generic/rtc_get_time_ms.c: Likewise.
10541 * kern/misc.c: Likewise.
10542 * kern/parser.c: Likewise.
10543 * genmk.rb: Likewise.
10544 * configure.ac: Likewise.
10545 * boot/i386/pc/diskboot.S: Likewise.
10546 * boot/i386/pc/pxeboot.S: Likewise.
10547 * boot/i386/pc/boot.S: Likewise.
10548 * boot/i386/pc/lnxboot.S: Likewise.
10549 * boot/i386/pc/cdboot.S: Likewise.
10550 * parttool/pcpart.c: Likewise.
10551 * video/readers/tga.c: Likewise.
10552 * video/video.c: Likewise.
10553 * video/bitmap.c: Likewise.
10554 * lib/envblk.c: Likewise.
10555 * lib/i386/setjmp.S: Likewise.
10556 * fs/xfs.c: Likewise.
10557 * fs/afs.c: Likewise.
10558 * fs/fat.c: Likewise.
10559 * fs/ntfs.c: Likewise.
10560 * fs/udf.c: Likewise.
10561 * fs/affs.c: Likewise.
10562 * fs/iso9660.c: Likewise.
10563 * fs/hfs.c: Likewise.
10564 * fs/fshelp.c: Likewise.
10565 * fs/ext2.c: Likewise.
10566 * fs/jfs.c: Likewise.
10567 * fs/reiserfs.c: Likewise.
10568 * fs/hfsplus.c: Likewise.
10569 * fs/minix.c: Likewise.
10570 * fs/cpio.c: Likewise.
10571 * fs/sfs.c: Likewise.
10572 * fs/ufs.c: Likewise.
10573 * efiemu/prepare.c: Likewise.
10574 * efiemu/loadcore_common.c: Likewise.
10575 * efiemu/runtime/efiemu.sh: Likewise.
10576 * efiemu/runtime/efiemu.S: Likewise.
10577 * efiemu/runtime/efiemu.c: Likewise.
10578 * efiemu/pnvram.c: Likewise.
10579 * efiemu/main.c: Likewise.
10580 * efiemu/i386/pc/cfgtables.c: Likewise.
10581 * efiemu/i386/loadcore64.c: Likewise.
10582 * efiemu/i386/loadcore32.c: Likewise.
10583 * efiemu/loadcore.c: Likewise.
10584 * efiemu/symbols.c: Likewise.
10585 * efiemu/mm.c: Likewise.
10586 * include/grub/autoefi.h: Likewise.
10587 * include/grub/datetime.h: Likewise.
10588 * include/grub/term.h: Likewise.
10589 * include/grub/hfs.h: Likewise.
10590 * include/grub/lvm.h: Likewise.
10591 * include/grub/i386/tsc.h: Likewise.
10592 * include/grub/i386/linux.h: Likewise.
10593 * include/grub/i386/xnu.h: Likewise.
10594 * include/grub/i386/efiemu.h: Likewise.
10595 * include/grub/i386/pc/biosdisk.h: Likewise.
10596 * include/grub/i386/pc/memory.h: Likewise.
10597 * include/grub/i386/pc/vbe.h: Likewise.
10598 * include/grub/parttool.h: Likewise.
10599 * include/grub/video.h: Likewise.
10600 * include/grub/memory.h: Likewise.
10601 * include/grub/fs.h: Likewise.
10602 * include/grub/partition.h: Likewise.
10603 * include/grub/xnu.h: Likewise.
10604 * include/grub/efi/api.h: Likewise.
10605 * include/grub/efi/pe32.h: Likewise.
10606 * include/grub/efi/memory.h: Likewise.
10607 * include/grub/multiboot.h: Likewise.
10608 * include/grub/usbdesc.h: Likewise.
10609 * include/grub/multiboot2.h: Likewise.
10610 * include/grub/acpi.h: Likewise.
10611 * include/grub/efiemu/efiemu.h: Likewise.
10612 * include/grub/disk.h: Likewise.
10613 * include/grub/ieee1275/ieee1275.h: Likewise.
10614 * include/grub/net.h: Likewise.
10615 * include/grub/machoload.h: Likewise.
10616 * include/grub/macho.h: Likewise.
10617 * include/multiboot.h: Likewise.
10618 * genmoddep.awk: Likewise.
10619 * normal/main.c: Likewise.
10620 * normal/menu_entry.c: Likewise.
10621 * normal/menu_viewer.c: Likewise.
10622 * normal/completion.c: Likewise.
10623 * normal/cmdline.c: Likewise.
10624 * normal/misc.c: Likewise.
10625 * normal/datetime.c: Likewise.
10626 * bus/usb/usbtrans.c: Likewise.
10627 * bus/usb/ohci.c: Likewise.
10628 * bus/usb/uhci.c: Likewise.
10629 * bus/usb/usb.c: Likewise.
10630 * mmap/efi/mmap.c: Likewise.
10631 * mmap/i386/pc/mmap_helper.S: Likewise.
10632 * mmap/i386/pc/mmap.c: Likewise.
10633 * mmap/i386/mmap.c: Likewise.
10634 * mmap/i386/uppermem.c: Likewise.
10635 * mmap/mmap.c: Likewise.
10636 * commands/acpi.c: Likewise.
10637 * commands/echo.c: Likewise.
10638 * commands/blocklist.c: Likewise.
10639 * commands/loadenv.c: Likewise.
10640 * commands/usbtest.c: Likewise.
10641 * commands/boot.c: Likewise.
10642 * commands/parttool.c: Likewise.
10643 * commands/search.c: Likewise.
10644 * commands/cat.c: Likewise.
10645 * commands/i386/pc/play.c: Likewise.
10646 * commands/i386/pc/drivemap.c: Likewise.
10647 * commands/i386/pc/vbeinfo.c: Likewise.
10648 * commands/i386/pc/acpi.c: Likewise.
10649 * commands/i386/pc/vbetest.c: Likewise.
10650 * commands/ls.c: Likewise.
10651 * commands/cmp.c: Likewise.
10652 * commands/test.c: Likewise.
10653 * commands/efi/acpi.c: Likewise.
10654 * commands/gptsync.c: Likewise.
10655 * commands/help.c: Likewise.
10656 * partmap/amiga.c: Likewise.
10657 * partmap/apple.c: Likewise.
10658 * partmap/acorn.c: Likewise.
10659 * partmap/pc.c: Likewise.
10660 * partmap/sun.c: Likewise.
10661 * partmap/gpt.c: Likewise.
10662 * script/sh/lexer.c: Likewise.
10663 * script/sh/function.c: Likewise.
10664 * font/font.c: Likewise.
10665 * font/font_cmd.c: Likewise.
10666 * loader/powerpc/ieee1275/linux.c: Likewise.
10667 * loader/efi/chainloader.c: Likewise.
10668 * loader/multiboot_loader.c: Likewise.
10669 * loader/macho.c: Likewise.
10670 * loader/i386/multiboot.c: Likewise.
10671 * loader/i386/linux.c: Likewise.
10672 * loader/i386/pc/linux.c: Likewise.
10673 * loader/i386/pc/multiboot2.c: Likewise.
10674 * loader/i386/pc/chainloader.c: Likewise.
10675 * loader/i386/pc/xnu.c: Likewise.
10676 * loader/i386/bsd_trampoline.S: Likewise.
10677 * loader/i386/efi/linux.c: Likewise.
10678 * loader/i386/multiboot_elfxx.c: Likewise.
10679 * loader/i386/bsd_helper.S: Likewise.
10680 * loader/i386/bsd.c: Likewise.
10681 * loader/i386/linux_trampoline.S: Likewise.
10682 * loader/i386/xnu_helper.S: Likewise.
10683 * loader/i386/xnu.c: Likewise.
10684 * loader/i386/bsd_pagetable.c: Likewise.
10685 * loader/i386/multiboot_helper.S: Likewise.
10686 * loader/xnu.c: Likewise.
10687 * loader/xnu_resume.c: Likewise.
10688 * io/gzio.c: Likewise.
10689 * term/efi/console.c: Likewise.
10690 * term/terminfo.c: Likewise.
10691 * term/ieee1275/ofconsole.c: Likewise.
10692 * term/i386/pc/serial.c: Likewise.
10693 * term/i386/pc/vesafb.c: Likewise.
10694 * term/i386/pc/vga.c: Likewise.
10695 * term/usb_keyboard.c: Likewise.
10696 * term/gfxterm.c: Likewise.
10697 * aclocal.m4: Likewise.
10698 * util/lvm.c: Likewise.
10699 * util/grub.d/30_os-prober.in: Likewise.
10700 * util/grub.d/10_hurd.in: Likewise.
10701 * util/console.c: Likewise.
10702 * util/grub-macho2img.c: Likewise.
10703 * util/grub-probe.c: Likewise.
10704 * util/hostfs.c: Likewise.
10705 * util/i386/pc/grub-mkimage.c: Likewise.
10706 * util/i386/pc/grub-setup.c: Likewise.
10707 * util/i386/efi/grub-mkimage.c: Likewise.
10708 * util/grub-mkconfig.in: Likewise.
10709 * util/raid.c: Likewise.
10710 * util/resolve.c: Likewise.
10711 * util/grub-mkdevicemap.c: Likewise.
10712 * util/grub-emu.c: Likewise.
10713 * util/getroot.c: Likewise.
10714 * util/hostdisk.c: Likewise.
10715 * util/usb.c: Likewise.
10716 * util/grub-editenv.c: Likewise.
10717 * util/misc.c: Likewise.
10719 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10721 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10722 `genparttoollist.sh'.
10723 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10724 Add `*.sh' to the list find searches for and change `mdate.sh'
10727 2009-06-10 Pavel Roskin <proski@gnu.org>
10729 * include/grub/multiboot2.h: Provide compatibility defines for
10731 * include/multiboot2.h: Include stdint.h only if needed, using
10733 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10735 * loader/ieee1275/multiboot2.c: Likewise.
10736 * loader/multiboot2.c: Likewise.
10737 * loader/multiboot_loader.c: Likewise.
10739 * configure.ac: Use -nostdlib when probing for the target. It
10740 should not be required to have libc for the target.
10742 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10743 they fail without libc headers for the target.
10744 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10746 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10747 preprocessor conditionals.
10749 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10750 build system doesn't need to be aware of the tar.c internals.
10752 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10754 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10756 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10758 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10759 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10761 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10763 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10764 aren't available if ata.mod gets used.
10766 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10768 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10769 initialising controller.
10770 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10772 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10774 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10775 to choose between ata and biosdisk module on i386-pc.
10777 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10779 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10780 Subclass and Programming Interface fields in terms of the 3 byte
10781 Class Code register.
10782 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10784 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10785 interface is OHCI. Add grub_dprintf for symmetry with
10787 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10788 interface is UHCI. Add interf variable for programming
10789 interface. Print interface with class/subclass.
10791 * bus/usb/ohci.c: Set interf with correct field.
10793 * bus/usb/uhci.c: Remove unneeded doubled lines.
10794 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10795 Remove whitespace inside comment.
10797 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10799 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10800 as fallback an equivalent option without depth.
10802 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10804 Not fail if unable to retrieve C/H/S on LBA disks
10806 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10807 if unable to retrieve C/H/S on LBA disks
10809 2009-06-08 Pavel Roskin <proski@gnu.org>
10811 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10814 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10816 * Makefile.in (uninstall): Remove all $lib_DATA files.
10818 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10820 Bugfix: install on partitionless device
10822 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10825 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10827 * Makefile.in (uninstall): Remove all $include_DATA files.
10829 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10831 * commands/true.c: New file. Implement the true and false commands.
10832 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10833 (true_mod_SOURCES): New variable.
10834 (true_mod_CFLAGS): Likewise.
10835 (true_mod_LDFLAGS): Likewise.
10837 2009-06-05 Colin D Bennett <colin@gibibit.com>
10839 Optimized font character lookup using binary search instead of linear
10840 search. Fonts now are required to have the character index ordered by
10843 * font/font.c (load_font_index): Verify that fonts have ordered
10845 (find_glyph): Use binary search instead of linear search to find a
10846 character in a font.
10848 2009-06-05 Michael Scherer <misc@mandriva.org>
10850 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10851 uses case sensitive btree.
10852 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10853 only for case insensitive filesystems.
10855 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10857 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10858 * conf/common.rmk (search_mod_CFLAGS): likewise
10860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10862 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10863 compensate a compiler bug
10865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10867 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10870 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10872 Definitions for creating asm symbols with Apple's CC
10874 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10875 [APPLE_CC] (VARIABLE): likewise
10877 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10879 Disable lnxboot.img when compiled
10882 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10883 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10884 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10885 [! APPLE_CC] (CODE_LENG): skip
10886 [! APPLE_CC] (setup_sects): likewise
10887 [! APPLE_CC]: skip filling
10889 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10891 Address in trampolines based on 32-bit registers when compiled
10894 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10896 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10898 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10900 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10902 * kern/misc.c [APPLE_CC] (memcpy): new function
10903 [APPLE_CC] (memmove): likewise
10904 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10905 (memcpy): define alias conditionally on !APPLE_CC
10908 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10909 APPLE_CC are defined
10910 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10911 (grub_assert_fail): make prototype conditional
10913 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10915 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10917 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10919 (CLEANFILES): add grub-macho2img
10920 (grub_macho2img_SOURCES): new variable
10921 * kern/i386/pc/startup.S (bss_start): new variable
10922 (bss_end): likewise
10923 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10924 * util/grub-macho2img.c: new file
10926 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10928 Use objconv when compiling with Apple's CC
10930 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10931 (efiemu64.o): likewise
10932 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10933 when compiling with Apple's CC
10934 (efiemu64_s.o): likewise
10935 * configure.ac: check for objconv when compiling with Apple's CC
10936 * genmk.rb: use objconv for modules when compiled with Apple's CC
10938 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10940 Define segment as well as section when compiling with
10943 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10944 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10945 (efiemu_convert_pointer): likewise
10946 (efiemu_set_virtual_address_map): likewise
10947 (efiemu_convert_pointer): likewise
10948 (efiemu_getcrc32): likewise
10949 (init_crc32_table): likewise
10950 (reflect): likewise
10951 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10952 (GRUB_MOD_DEP): likewise
10954 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10956 Allow a compilation without -mcmodel=large
10958 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10959 when compiled without -mcmodel=large
10960 (filter_memory_map): remove memory post 4 GiB when compiled
10961 without -mcmodel=large
10962 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10963 TARGET_CFLAGS when -mcmodel=large isn't supported
10965 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10967 Remove nested functions in efiemu core
10969 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10973 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10975 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10977 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10979 (grub_cpu_is_tsc_supported): likewise
10980 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10982 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10984 Absolute addressing through constant with Apple's cc
10986 * kern/i386/pc/startup.S: Define necessary constants
10987 and address through it when using ABS with Apple's CC
10988 * boot/i386/pc/diskboot.S: likewise
10989 * boot/i386/pc/boot.S: likewise
10990 * boot/i386/pc/lnxboot.S: likewise
10991 * boot/i386/pc/cdboot.S: likewise
10992 * mmap/i386/pc/mmap_helper.S: likewise
10993 * commands/i386/pc/drivemap_int13h.S: likewise
10995 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10997 Check if compiler is apple cc
10999 * Makefile.in (ASFLAGS): new variable
11000 (TARGET_ASFLAGS): likewise
11001 (TARGET_MODULE_FORMAT): likewise
11002 (TARGET_APPLE_CC): likewise
11003 (OBJCONV): likewise
11004 (TARGET_IMG_CFLAGS): likewise
11005 (TARGET_CPPFLAGS): add includedir
11006 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11007 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11008 Check for linker script only if compiler isn't Apple's CC
11009 (TARGET_MODULE_FORMAT): set
11010 (TARGET_APPLE_CC): likewise
11011 (TARGET_ASFLAGS): likewise
11012 (ASFLAGS): likewise
11013 Check for objcopy only if compiler isn't Apple's CC
11014 Check for BSS symbol only if compiler isn't Apple's CC
11015 * genmk.rb: adapt nm options if we use Apple's utils
11016 * aclocal.m4 (grub_apple_cc): new test
11017 (grub_apple_target_cc): likewise
11019 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11021 Simplify sed expressions and improve awk
11023 * Makefile.in (install-local): simplify sed expression
11024 * gencmdlist.sh: likewise
11025 * genmoddep.awk: avoid adding module as a dependency of itself
11027 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11029 Add missing start symbols
11031 * boot/i386/pc/boot.S: add start
11032 * boot/i386/pc/pxeboot.S: likewise
11034 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11036 Fix wrong assumptions with grub-mkimage on EFI
11038 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11039 (relocate_addresses): consider both r_addend and value at offset
11040 (make_mods_section): zerofill modinfo and header
11041 (convert_elf): write prefix here
11043 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11045 Use .asciz instead of .string
11047 * i386/pc/diskboot.S: use .asciz instead of .string
11048 * i386/pc/boot.S: likewise
11049 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11050 (GRUB_MOD_NAME): likewise
11052 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11056 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11057 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11058 (grub_video_setup): remove
11059 (grub_video_set_mode): new prototype
11060 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11062 (linux_vesafb_res): compile only on PCBIOS
11063 (grub_linux_boot): support gfxpayload
11064 * loader/i386/pc/xnu.c (video_hook): new function
11065 (grub_xnu_set_video): support gfxpayload
11066 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11067 (DEFAULT_VIDEO_HEIGHT): likewise
11068 (DEFAULT_VIDEO_FLAGS): likewise
11069 (DEFAULT_VIDEO_MODE): new definition
11070 (video_hook): new function
11071 (grub_gfxterm_init): use grub_video_set_mode
11072 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11074 * video/video.c (grub_video_setup): removed
11075 (grub_video_set_mode): new function based on grub_gfxterm_init and
11078 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11080 Avoid calling biosdisk in drivemap
11082 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11083 (revparse_biosdisk): likewise
11084 (list_mappings): derive name from id directly
11085 (grub_cmd_drivemap): use tryparse_diskstring
11087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11091 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11092 (grub_lexer_param): add tokenonhold
11093 (grub_script_create_cmdline): remove cmdline. All callers updated
11094 (grub_script_function_create): make functionname
11095 grub_script_arg. All callers updated
11096 (grub_script_execute_argument_to_string): new prototype
11097 * kern/parser.c (state_transitions): reorder
11098 (grub_parser_cmdline_state): fix a bug and make more compact
11099 * script/sh/execute.c (grub_script_execute_argument_to_string):
11101 (grub_script_execute_cmdline): use new format
11102 * script/sh/function.c (grub_script_function_create): make functionname
11103 grub_script_arg. All callers updated
11104 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11105 (grub_script_yylex): remove
11106 (grub_script_yylex2): renamed to ...
11107 (grub_script_yylex): ...renamed
11108 parse the expressions like a${b}c
11109 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11110 (GRUB_PARSER_TOKEN_VAR): remove
11111 (GRUB_PARSER_TOKEN_NAME): likewise
11112 ("if"): declare as typeless
11113 ("while"): likewise
11114 ("function"): likewise
11119 (argument): likewise
11120 (script): accept empty scripts and make exit on error
11121 (arguments): use GRUB_PARSER_TOKEN_ARG
11122 (function): likewise
11123 (command): move error handling to script
11124 (menuentry): move grub_script_lexer_ref before
11125 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11126 argument. All callers updated
11128 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11130 Prevent GRUB from probing floppies during boot.
11132 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11133 * commands/search.c (options): Add --no-floppy.
11134 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11135 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11136 --no-floppy when searching for UUIDs.
11138 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11140 Simplify the code duplication in commands/search.c.
11142 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11143 (search_fs): ... this. Update all users.
11145 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11147 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11149 2009-05-28 Pavel Roskin <proski@gnu.org>
11151 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11152 Remove the original symlink explicitly.
11154 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11155 just one slash. That's how grub_fshelp_find_file() does it.
11157 2009-05-26 Pavel Roskin <proski@gnu.org>
11159 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11162 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11165 2009-05-25 Christian Franke <franke@computer.org>
11167 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11169 (grub_atapi_identify): Add wait after drive select.
11170 (grub_ata_identify): Do more strict status register check before
11171 calling grub_atapi_identify (). Suppress error message if status
11172 register is 0x00 after command failure. Add status register
11173 check after PIO read to avoid bogus identify due to stuck DRQ.
11174 Thanks to Pavel Roskin for testing.
11175 (grub_device_initialize): Remove unsafe status register check.
11176 Thanks to 'phcoder' for problem report and patch.
11177 Prevent sign extension in debug message.
11179 2009-05-23 Colin D Bennett <colin@gibibit.com>
11181 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11182 definition file, and functions defined in `normal/menu.c' have had
11183 their prototypes moved to `include/grub/menu.h' for consistency.
11185 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11187 (grub_menu_get_entry): Likewise.
11188 (grub_menu_get_timeout): Likewise.
11189 (grub_menu_set_timeout): Likewise.
11190 (grub_menu_execute_entry): Likewise.
11191 (grub_menu_execute_with_fallback): Likewise.
11192 (grub_menu_entry_run): Likewise.
11194 * include/grub/normal.h: Re-ordered and grouped function
11195 prototypes by file that the function is defined in.
11196 (grub_menu_execute_callback): Removed; moved to menu.h.
11197 (grub_menu_get_entry): Likewise.
11198 (grub_menu_get_timeout): Likewise.
11199 (grub_menu_set_timeout): Likewise.
11200 (grub_menu_execute_entry): Likewise.
11201 (grub_menu_execute_with_fallback): Likewise.
11202 (grub_menu_entry_run): Likewise.
11203 (grub_menu_addentry): Renamed from this ...
11204 (grub_normal_add_menu_entry): ... to this.
11206 * normal/main.c (grub_menu_addentry): Renamed from this ...
11207 (grub_normal_add_menu_entry): ... to this.
11209 * script/sh/execute.c (grub_script_execute_menuentry): Update
11210 reference to renamed grub_menu_addentry function.
11212 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11214 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11216 2009-05-22 Pavel Roskin <proski@gnu.org>
11218 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11219 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11220 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11221 compiling for the i386 targets, but not for the utilities.
11223 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11225 (grub_root_drive): Likewise.
11226 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11228 (grub_root_drive): Change size to byte.
11229 (grub_start_addr): Remove.
11230 (grub_end_addr): Likewise.
11231 (grub_apm_bios_info): Likewise.
11233 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11235 * normal/i386: Remove.
11236 * normal/powerpc: Likewise.
11237 * normal/sparc64: Likewise.
11238 * normal/x86_64: Likewise.
11240 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11242 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11243 * loader/i386/linux_trampoline.S: Fix indentation
11244 * loader/i386/xnu_helper.S: Likewise
11246 2009-05-18 Colin D Bennett <colin@gibibit.com>
11248 Display error messages when parsing a Lua statement fails.
11249 Previously, executing a syntactically invalid statement like
11250 ")foo" or "bar;" would silently fail.
11252 * script/lua/grub_main.c (handle_lua_error): New function.
11253 (grub_lua_parse_line): Improved reporting of Lua parser and
11256 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11258 Remove -Werror which causes build to fail on some systems
11260 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11261 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11262 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11264 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11266 trampoline for linux on 64-bit platform
11268 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11269 loader/i386/efi/linux_trampoline.S
11270 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11272 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11274 * loader/i386/linux_trampoline.S: moved here
11275 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11277 (jumpvector): removed
11278 (grub_linux_trampoline_start): new declaration
11279 (grub_linux_trampoline_end): likewise
11280 (grub_linux_boot): use trampoline when on 64-bit platform
11281 * loader/i386/linux.c: likewise
11283 2009-05-16 Pavel Roskin <proski@gnu.org>
11285 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11286 const to avoid a warning.
11287 (grub_lua_setenv): Likewise.
11288 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11289 lmsg to fix a warning.
11291 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11293 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11294 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11295 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11296 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11297 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11298 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11299 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11300 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11302 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11304 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11306 2009-05-16 Bean <bean123ch@gmail.com>
11308 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11309 (lua_mod_SOURCES): New variable.
11310 (lua_mod_CFLAGS): Likewise.
11311 (lua_mod_LDFLAGS): Likewise.
11313 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11314 (setjmp_mod_SOURCES): New variable.
11315 (setjmp_mod_CFLAGS): Likewise.
11316 (setjmp_LDFLAGS): Likewise.
11318 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11319 (setjmp_mod_SOURCES): New variable.
11320 (setjmp_mod_CFLAGS): Likewise.
11321 (setjmp_LDFLAGS): Likewise.
11323 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11324 (setjmp_mod_SOURCES): New variable.
11325 (setjmp_mod_CFLAGS): Likewise.
11326 (setjmp_LDFLAGS): Likewise.
11328 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11329 (setjmp_mod_SOURCES): New variable.
11330 (setjmp_mod_CFLAGS): Likewise.
11331 (setjmp_LDFLAGS): Likewise.
11333 * normal/i386/setjmp.S: Moved from here ...
11334 * lib/i386/setjmp.S: ... Moved here
11335 * normal/x86_64/setjmp.S: Moved from here ...
11336 * lib/x86_64/setjmp.S: ... Moved here
11337 * normal/powerpc/setjmp.S: Moved from here ...
11338 * lib/powerpc/setjmp.S: ... Moved here
11339 * normal/sparc64/setjmp.S: Moved from here ...
11340 * lib/sparc64/setjmp.S: ... Moved here
11342 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11343 returns_twice in mingw.
11345 * script/lua/grub_lib.c: New file.
11346 * script/lua/grub_lib.h: Likewise.
11347 * script/lua/grub_lua.h: Likewise.
11348 * script/lua/grub_main.c: Likewise.
11349 * script/lua/lapi.c: Likewise.
11350 * script/lua/lapi.h: Likewise.
11351 * script/lua/lauxlib.c: Likewise.
11352 * script/lua/lauxlib.h: Likewise.
11353 * script/lua/lbaselib.c: Likewise.
11354 * script/lua/lcode.c: Likewise.
11355 * script/lua/lcode.h: Likewise.
11356 * script/lua/ldblib.c: Likewise.
11357 * script/lua/ldebug.c: Likewise.
11358 * script/lua/ldebug.h: Likewise.
11359 * script/lua/ldo.c: Likewise.
11360 * script/lua/ldo.h: Likewise.
11361 * script/lua/ldump.c: Likewise.
11362 * script/lua/lfunc.c: Likewise.
11363 * script/lua/lfunc.h: Likewise.
11364 * script/lua/lgc.c: Likewise.
11365 * script/lua/lgc.h: Likewise.
11366 * script/lua/linit.c: Likewise.
11367 * script/lua/liolib.c: Likewise.
11368 * script/lua/llex.c: Likewise.
11369 * script/lua/llex.h: Likewise.
11370 * script/lua/llimits.h: Likewise.
11371 * script/lua/lmathlib.c: Likewise.
11372 * script/lua/lmem.c: Likewise.
11373 * script/lua/lmem.h: Likewise.
11374 * script/lua/loadlib.c: Likewise.
11375 * script/lua/lobject.c: Likewise.
11376 * script/lua/lobject.h: Likewise.
11377 * script/lua/lopcodes.c: Likewise.
11378 * script/lua/lopcodes.h: Likewise.
11379 * script/lua/loslib.c: Likewise.
11380 * script/lua/lparser.c: Likewise.
11381 * script/lua/lparser.h: Likewise.
11382 * script/lua/lstate.c: Likewise.
11383 * script/lua/lstate.h: Likewise.
11384 * script/lua/lstring.c: Likewise.
11385 * script/lua/lstring.h: Likewise.
11386 * script/lua/lstrlib.c: Likewise.
11387 * script/lua/ltable.c: Likewise.
11388 * script/lua/ltable.h: Likewise.
11389 * script/lua/ltablib.c: Likewise.
11390 * script/lua/ltm.c: Likewise.
11391 * script/lua/ltm.h: Likewise.
11392 * script/lua/lua.h: Likewise.
11393 * script/lua/luaconf.h: Likewise.
11394 * script/lua/lualib.h: Likewise.
11395 * script/lua/lundump.c: Likewise.
11396 * script/lua/lundump.h: Likewise.
11397 * script/lua/lvm.c: Likewise.
11398 * script/lua/lvm.h: Likewise.
11399 * script/lua/lzio.c: Likewise.
11400 * script/lua/lzio.h: Likewise.
11402 2009-05-16 Bean <bean123ch@gmail.com>
11404 * include/grub/kernel.h (grub_module_header_types): Add type
11407 * kern/main.c (grub_load_config): New function.
11408 (grub_main): Call grub_load_config to read boot config.
11410 * grub-mkimage (generate_image): New parameter config_path.
11411 (options): New option --config.
11412 (main): Parse --config option, and pass it to generate_image.
11414 2009-05-14 Christian Franke <franke@computer.org>
11416 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11417 This fixes build on Cygwin.
11419 2009-05-14 Pavel Roskin <proski@gnu.org>
11421 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11422 jump. This saves two bytes, so the typical case of 2 swapped
11423 drives would fit 32 bytes.
11425 2009-05-13 Pavel Roskin <proski@gnu.org>
11427 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11428 grub_uint32_t to avoid a warning.
11430 * loader/i386/linux.c (allocate_pages): When assigning
11431 real_mode_mem, cast through grub_size_t to fix a warning. The
11432 code already makes sure that the value would fit a pointer.
11433 (grub_linux_setup_video): Cast render_target->data to
11434 grub_size_t to fix a warning.
11436 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11438 * commands/i386/pc/drivemap.c: New file - implement drivemap
11440 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11441 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11443 2009-05-13 Pavel Roskin <proski@gnu.org>
11445 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11446 embedding_area_exists.
11448 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11450 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11451 it easier to understand / work with.
11452 Improve warning messages for cases where there's no embedding area,
11453 or when it is too small (or core.img too large).
11455 2009-05-13 Pavel Roskin <proski@gnu.org>
11457 * loader/i386/pc/multiboot2.c: Add necessary includes for
11458 grub_multiboot2_real_boot().
11460 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11461 PX record is always little-endian. We only need the lower 2
11464 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11465 facilitate code reuse.
11466 (grub_cpio_mount): Use "struct head", not a char buffer. This
11467 fixes a warning reported by gcc 4.4.
11469 * kernel/disk.c (grub_disk_read): Use void pointer for the
11471 (grub_disk_write): Use const void pointer for the buffer.
11472 Adjust all callers. Remove unnecessary casts.
11474 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11476 * util/i386/pc/grub-install.in: Update copyright year.
11478 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11482 * commands/gptsync.c: new file
11483 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11484 (gptsync_mod_SOURCES): new variable
11485 (gptsync_mod_CFLAGS): likewise
11486 (gptsync_mod_LDFLAGS): likewise
11487 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11489 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11491 * conf/i386-ieee1275.rmk: likewise
11492 * conf/i386-pc.rmk: likewise
11493 * conf/powerpc-ieee1275.rmk: likewise
11495 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11499 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11500 (grub_dl_ref): likewise
11502 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11504 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11505 split in two functions (one for msdos and one for gpt).
11507 2009-05-08 Pavel Roskin <proski@gnu.org>
11509 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11512 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11513 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11514 Initialize them with -1. Add sanity check for bad1. Eliminate
11517 2009-05-08 David S. Miller <davem@davemloft.net>
11519 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11521 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11523 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11526 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11529 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11531 2009-05-05 David S. Miller <davem@davemloft.net>
11533 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11535 2009-05-05 Pavel Roskin <proski@gnu.org>
11537 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11538 of grub_dl_ref() and grub_dl_unref().
11539 * commands/parttool.c: Remove preprocessor conditionals around
11540 grub_dl_ref() and grub_dl_unref().
11541 * fs/affs.c: Likewise.
11542 * fs/afs.c: Likewise.
11543 * fs/cpio.c: Likewise.
11544 * fs/ext2.c: Likewise.
11545 * fs/fat.c: Likewise.
11546 * fs/hfs.c: Likewise.
11547 * fs/hfsplus.c: Likewise.
11548 * fs/iso9660.c: Likewise.
11549 * fs/jfs.c: Likewise.
11550 * fs/minix.c: Likewise.
11551 * fs/ntfs.c: Likewise.
11552 * fs/reiserfs.c: Likewise.
11553 * fs/sfs.c: Likewise.
11554 * fs/udf.c: Likewise.
11555 * fs/ufs.c: Likewise.
11556 * fs/xfs.c: Likewise.
11557 * include/grub/dl.h: Likewise.
11558 * loader/xnu.c: Likewise.
11560 2009-05-04 Pavel Roskin <proski@gnu.org>
11562 * commands/acpi.c: Remove unused variable my_mod.
11563 * partmap/amiga.c: Likewise.
11564 * partmap/apple.c: Likewise.
11565 * partmap/gpt.c: Likewise.
11566 * partmap/pc.c: Likewise.
11567 * partmap/sun.c: Likewise.
11568 * term/gfxterm.c: Likewise.
11569 * term/i386/pc/vesafb.c: Likewise.
11570 * term/i386/pc/vga.c: Likewise.
11572 2009-05-04 David S. Miller <davem@davemloft.net>
11574 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11575 pointer args to grub_ieee1275_get_property().
11577 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11579 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11580 devices, and do not traverse down under controller nodes.
11582 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11583 (grub_ofdisk_open): Use it to un-escape "," characters.
11584 * kern/disk.c (find_part_sep): New.
11585 (grub_disk_open): Use it to find the first non-escaped ','
11586 character in the disk name.
11587 * util/ieee1275/devicemap.c (escape_of_path): New.
11588 (grub_util_emit_devicemap_entry): Use it.
11589 * util/sparc64/ieee1275/grub-install.in: Update script to
11590 strip partition specifiers properly by not triggering on
11591 '\' escaped ',' characters.
11593 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11595 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11597 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11599 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11600 on documentation from Wikipedia).
11602 2009-05-04 Pavel Roskin <proski@gnu.org>
11604 * disk/ata.c: Spelling fixes.
11605 * disk/raid.c: Likewise.
11606 * disk/usbms.c: Likewise.
11607 * disk/dmraid_nvidia.c: Likewise.
11608 * kern/ieee1275/openfw.c: Likewise.
11609 * kern/ieee1275/init.c: Likewise.
11610 * kern/ieee1275/cmain.c: Likewise.
11611 * boot/i386/pc/cdboot.S: Likewise.
11612 * video/readers/png.c: Likewise.
11613 * video/i386/pc/vbe.c: Likewise.
11614 * fs/udf.c: Likewise.
11615 * fs/hfs.c: Likewise.
11616 * fs/reiserfs.c: Likewise.
11617 * efiemu/runtime/efiemu.c: Likewise.
11618 * efiemu/main.c: Likewise.
11619 * efiemu/mm.c: Likewise.
11620 * include/grub/elf.h: Likewise.
11621 * include/grub/xnu.h: Likewise.
11622 * include/grub/usbdesc.h: Likewise.
11623 * include/grub/usb.h: Likewise.
11624 * include/grub/script_sh.h: Likewise.
11625 * include/grub/lib/LzmaEnc.h: Likewise.
11626 * include/grub/efiemu/efiemu.h: Likewise.
11627 * include/grub/command.h: Likewise.
11628 * normal/menu.c: Likewise.
11629 * normal/main.c: Likewise.
11630 * normal/datetime.c: Likewise.
11631 * bus/usb/uhci.c: Likewise.
11632 * mmap/i386/uppermem.c: Likewise.
11633 * mmap/mmap.c: Likewise.
11634 * commands/acpi.c: Likewise.
11635 * commands/test.c: Likewise.
11636 * partmap/apple.c: Likewise.
11637 * font/font.c: Likewise.
11638 * loader/sparc64/ieee1275/linux.c: Likewise.
11639 * loader/macho.c: Likewise.
11640 * loader/i386/bsd_trampoline.S: Likewise.
11641 * loader/i386/bsd.c: Likewise.
11642 * loader/xnu.c: Likewise.
11643 * term/i386/pc/vesafb.c: Likewise.
11644 * term/usb_keyboard.c: Likewise.
11645 * util/resolve.c: Likewise.
11646 * util/getroot.c: Likewise.
11648 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11650 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11652 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11654 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11657 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11659 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11660 parameter only available on BIOS.
11662 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11664 Removed wrong semicolon in declaration
11666 * grub/misc.h (grub_dprintf): remove semicolon
11668 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11670 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11671 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11672 is done by grub_cmd_linux() now).
11673 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11674 restore video to text mode.
11675 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11676 indicates lack of "vga=" parameter. "vga=0" is mapped to
11677 `GRUB_LINUX_VID_MODE_NORMAL'.
11679 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11681 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11682 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11683 and `normal/script.c'. Add `kern/rescue_reader.c',
11684 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11685 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11686 `grub_script.tab.c'.
11688 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11689 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11692 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11694 * Makefile.in: Remove duplicated 2008 in Copyright line.
11696 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11698 * util/misc.c (grub_util_warn): New function. Emits a warning
11700 * include/grub/util/misc.h (grub_util_warn): New declaration.
11702 * util/i386/pc/grub-install.in: Understand --force and pass it down
11705 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11707 (setup): Improve error messages and add warnings when requested to
11708 install in odd layouts. Refuse to install using blocklists unless
11711 2009-05-04 martin f. krafft <madduck@madduck.net>
11713 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11715 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11717 Updated copyright year
11719 * fs/hfsplus.c: updated copyright year
11721 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11725 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11726 in the space previously used by unused3
11727 (grub_hfsplus_uuid): new function
11728 (grub_hfsplus_fs): added uuid field
11730 2009-05-03 Pavel Roskin <proski@gnu.org>
11732 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11733 suppress warnings. It's no longer needed.
11734 * disk/host.c: Likewise.
11735 * disk/ata_pthru.c: Likewise.
11736 * disk/loopback.c: Likewise.
11737 * hook/datehook.c: Likewise.
11738 * parttool/pcpart.c: Likewise.
11739 * fs/i386/pc/pxe.c: Likewise.
11740 * fs/ntfscomp.c: Likewise.
11741 * efiemu/main.c: Likewise.
11742 * mmap/mmap.c: Likewise.
11743 * commands/crc.c: Likewise.
11744 * commands/hexdump.c: Likewise.
11745 * commands/hdparm.c: Likewise.
11746 * commands/acpi.c: Likewise.
11747 * commands/echo.c: Likewise.
11748 * commands/minicmd.c: Likewise.
11749 * commands/blocklist.c: Likewise.
11750 * commands/memrw.c: Likewise.
11751 * commands/loadenv.c: Likewise.
11752 * commands/usbtest.c: Likewise.
11753 * commands/lsmmap.c: Likewise.
11754 * commands/boot.c: Likewise.
11755 * commands/parttool.c: Likewise.
11756 * commands/configfile.c: Likewise.
11757 * commands/search.c: Likewise.
11758 * commands/ieee1275/suspend.c: Likewise.
11759 * commands/cat.c: Likewise.
11760 * commands/i386/pc/pxecmd.c: Likewise.
11761 * commands/i386/pc/play.c: Likewise.
11762 * commands/i386/pc/halt.c: Likewise.
11763 * commands/i386/pc/vbeinfo.c: Likewise.
11764 * commands/i386/pc/vbetest.c: Likewise.
11765 * commands/lspci.c: Likewise.
11766 * commands/date.c: Likewise.
11767 * commands/handler.c: Likewise.
11768 * commands/ls.c: Likewise.
11769 * commands/test.c: Likewise.
11770 * commands/cmp.c: Likewise.
11771 * commands/efi/loadbios.c: Likewise.
11772 * commands/efi/fixvideo.c: Likewise.
11773 * commands/halt.c: Likewise.
11774 * commands/help.c: Likewise.
11775 * commands/reboot.c: Likewise.
11776 * hello/hello.c: Likewise.
11777 * script/sh/main.c: Likewise.
11778 * loader/xnu.c: Likewise.
11779 * term/terminfo.c: Likewise.
11780 * term/i386/pc/serial.c: Likewise.
11781 * term/usb_keyboard.c: Likewise.
11783 2009-05-03 David S. Miller <davem@davemloft.net>
11785 * normal/menu.c: Include grub/parser.h
11787 2009-05-03 Pavel Roskin <proski@gnu.org>
11789 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11791 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11792 Suggested by Javier Martín <lordhabbit@gmail.com>
11794 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11795 efiemu??.o doesn't exist.
11796 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11799 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11801 FreeBSD 64-bit support
11803 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11804 and loader/i386/bsd_trampoline.S
11805 (bsd_mod_ASFLAGS): new variable
11806 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11807 (FREEBSD_MODTYPE_KERNEL64): likewise
11808 (grub_bsd64_trampoline_start): likewise
11809 (grub_bsd64_trampoline_end): likewise
11810 (grub_bsd64_trampoline_selfjump): likewise
11811 (grub_bsd64_trampoline_gdt): likewise
11812 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11813 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11814 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11815 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11816 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11818 * loader/i386/bsd_pagetable.c: new file
11819 * loader/i386/bsd_trampoline.S: likewise
11820 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11821 (ALIGN_VAR): likewise
11822 (entry_hi): new variable
11823 (kern_end_mdofs): likewise
11824 (is_64bit): likewise
11825 (grub_freebsd_add_meta): use ALIGN_VAR
11826 (grub_e820_mmap): new declaration
11827 (grub_freebsd_add_mmap): new function
11828 (grub_freebsd_add_meta_module): support 64 bit kernels
11829 (grub_freebsd_list_modules): use ALIGN_VAR
11830 (gdt_descriptor): new declaration
11831 (grub_freebsd_boot): support 64 bit kernels
11832 (grub_bsd_elf64_hook): new function
11833 (grub_bsd_load_elf): support elf64
11835 2009-05-03 Bean <bean123ch@gmail.com>
11837 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11838 after we get the result of if statement.
11840 2009-05-03 Bean <bean123ch@gmail.com>
11842 * Makefile.in (enable_efiemu): New variable.
11844 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11846 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11848 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11849 path, add -mno-red-zone option.
11850 (efiemu64_s.o): Likewise.
11851 (efiemu64.o): Use macro $^ for source file.
11853 * configure.ac (--enable-efiemu): New option.
11855 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11859 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11860 (pkglib_MODULES): add xnu.mod
11861 (xnu_mod_SOURCES): new variable
11862 (xnu_mod_CFLAGS): likewise
11863 (xnu_mod_LDFLAGS): likewise
11864 (xnu_mod_ASFLAGS): likewise
11865 * conf/i386-pc.rmk: likewise
11866 * conf/x86_64-efi.rmk: likewise
11867 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11869 * include/grub/i386/macho.h: new file
11870 * include/grub/i386/xnu.h: likewise
11871 * include/grub/macho.h: likewise
11872 * include/grub/machoload.h: likewise
11873 * include/grub/x86_64/macho.h: likewise
11874 * include/grub/x86_64/xnu.h: likewise
11875 * include/grub/xnu.h: likewise
11876 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11877 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11878 * loader/i386/efi/xnu.c: new file
11879 * loader/i386/pc/xnu.c: likewise
11880 * loader/i386/xnu.c: likewise
11881 * loader/i386/xnu_helper.S: likewise
11882 * loader/macho.c: likewise
11883 * loader/xnu.c: likewise
11884 * loader/xnu_resume.c: likewise
11885 * util/grub-dumpdevtree: likewise
11886 * include/grub/i386/pit.h: include grub/err.h
11887 (grub_pit_wait): export
11888 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11890 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11894 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11895 _linux_efi, linux_efi.
11896 new files in grub-emu
11897 new targets efiemu32.o and efiemu64.o
11898 * loader/linux_normal_efiemu.c: likewise
11899 * loader/i386/efi/linux.c: added preliminary efiemu support
11900 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11902 * include/grub/autoefi.h: new file
11903 * include/grub/i386/efiemu.h: likewise
11904 * include/grub/i386/pc/efiemu.h: likewise
11905 * include/grub/efi/api.h: add LL suffix when necessary
11906 new definitions relating to tables
11907 * include/grub/efiemu/efiemu.h: new file
11908 * include/grub/efiemu/runtime.h: likewise
11909 * efiemu/prepare.c: likewise
11910 * efiemu/loadcore_common.c: likewise
11911 * efiemu/loadcore64.c: likewise
11912 * efiemu/runtime/efiemu.sh: likewise
11913 * efiemu/runtime/efiemu.S: likewise
11914 * efiemu/runtime/efiemu.c: likewise
11915 * efiemu/runtime/config.h: likewise
11916 * efiemu/prepare32.c: likewise
11917 * efiemu/main.c: likewise
11918 * efiemu/modules/pnvram.c: likewise
11919 * efiemu/modules/i386: likewise
11920 * efiemu/modules/i386/pc: likewise
11921 * efiemu/modules/acpi.c: likewise
11922 * efiemu/i386/pc/cfgtables.c: likewise
11923 * efiemu/i386/loadcore64.c: likewise
11924 * efiemu/i386/loadcore32.c: likewise
11925 * efiemu/prepare64.c: likewise
11926 * efiemu/loadcore.c: likewise
11927 * efiemu/symbols.c: likewise
11928 * efiemu/mm.c: likewise
11929 * efiemu/loadcore32.c: likewise
11931 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11935 * commands/acpi.c: new file
11936 * commands/i386/pc/acpi.c: likewise
11937 * commands/efi/acpi.c: likewise
11938 * include/grub/acpi.h: likewise
11939 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11940 (acpi_mod_SOURCES): new variable
11941 (acpi_mod_CFLAGS): likewise
11942 (acpi_mod_LDFLAGS): likewise
11943 * conf/i386-efi.rmk: likewise
11944 * conf/x86_64-efi.rmk: likewise
11946 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11948 Missing part from mmap patch
11950 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11951 (grub_mmap_unregister)
11952 (grub_mmap_free_and_unregister): use grub_mmap_register
11954 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11958 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11959 * loader/i386/linux.c (find_mmap_size): likewise
11960 (allocate_pages): likewise
11961 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11962 (grub_fill_multiboot_mmap): likewise
11963 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11964 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11965 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11966 (OPENBSD_MMAP_RESERVED): likewise
11967 * include/grub/i386/pc/memory.h: include grub/memory.h
11968 (grub_lower_mem): removed
11969 (grub_upper_mem): likewise
11970 (GRUB_MACHINE_MEMORY_ACPI): new definition
11971 (GRUB_MACHINE_MEMORY_NVS): likewise
11972 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11973 (GRUB_MACHINE_MEMORY_HOLE): likewise
11974 (grub_machine_mmap_register): likewise
11975 (grub_machine_mmap_unregister): likewise
11976 (grub_machine_get_upper): likewise
11977 (grub_machine_get_lower): likewise
11978 (grub_machine_get_post64): likewise
11979 * include/grub/i386/efi/memory.h: new file
11980 * include/grub/x86_64/efi/memory.h: likewise
11981 * include/grub/efi/memory.h: likewise
11982 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11983 (mmap_mod_SOURCES): new variable
11984 (mmap_mod_LDFLAGS): likewise
11985 (mmap_mod_ASFLAGS): likewise
11986 * conf/i386-coreboot.rmk: likewise
11987 * conf/i386-ieee1275.rmk: likewise
11988 * conf/i386-efi.rmk: likewise
11989 * conf/x86_64-efi.rmk: likewise
11990 * include/grub/types.h (UINT_TO_PTR): new macro
11991 (PTR_TO_UINT32): likewise
11992 (PTR_TO_UINT64): likewise
11993 * include/grub/memory.h: new file
11994 * mmap/i386/pc/mmap.c: likewise
11995 * mmap/i386/pc/mmap_helper.S: likewise
11996 * mmap/i386/uppermem.c: likewise
11997 * mmap/mmap.c: likewise
11998 * mmap/efi/mmap.c: likewise
11999 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12001 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12002 (grub_upper_mem): likewise
12003 (grub_machine_init): don't use grub_upper_mem,
12004 make grub_lower_mem local
12005 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12006 grub_mmap_iterate and grub_mmap_get_upper
12007 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12009 2009-05-02 Bean <bean123ch@gmail.com>
12011 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12012 script/sh/parser.y.
12013 (pkglib_MODULES): Add normal.mod and sh.mod.
12014 (normal_SOURCES): New variable.
12015 (normal_mod_CFLAGS): Likewise.
12016 (normal_mod_LDFLAGS): Likewise.
12017 (sh_mod_SOURCES): Likewise.
12018 (sh_mod_CFLAGS): Likewise.
12019 (sh_mod_LDFLAGS): Likewise.
12021 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12022 script/sh/lexer.c_DEPENDENCIES.
12023 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12024 kern/rescue_reader.c and kern/rescue_parser.c.
12025 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12026 (grub_emu_SOURCES): Change source files.
12027 (pkglib_MODULES): Remove normal.mod.
12028 (normal_SOURCES): Removed.
12029 (normal_mod_CFLAGS): Likewise.
12030 (normal_mod_LDFLAGS): Likewise.
12031 * conf/i386-coreboot.rmk: Likewise.
12032 * conf/i386-efi.rmk: Likewise.
12033 * conf/i386-ieee1276.rmk: Likewise.
12034 * conf/powerpc-ieee1275.rmk: Likewise.
12035 * conf/sparc64-ieee1275.rmk: Likewise.
12036 * conf/x86_64-efi.rmk: Likewise.
12038 * include/grub/command.h (grub_command_execute): New inline function.
12040 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12042 * include/grub/normal.h: Remove <grub/setjmp.h>.
12043 (grub_fs_module_list): Moved to normal/autofs.c.
12044 (grub_exit_env): Removed.
12045 (grub_command_execute): Likewise.
12046 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12048 (read_command_list): New function declaration.
12049 (read_fs_list): Likewise.
12051 * include/parser.h: Include <grub/reader.h>.
12052 (grub_parser_split_cmdline): Change type of getline parameter.
12053 (grub_parser): New structure.
12054 (grub_parser_class): New variable.
12055 (grub_parser_execute): New function declaration.
12056 (grub_register_rescue_parser): Likewise.
12057 (grub_parser_register): New inline function.
12058 (grub_parser_unregister): Likewise.
12059 (grub_parser_get_current): Likewise.
12060 (grub_parser_set_current): Likewise.
12062 * include/grub/reader.h: New file.
12063 * kern/reader.c: Likewise.
12064 * kern/rescue_parser.c: Likewise.
12065 * kern/rescue_reader.c: Likewise.
12066 * normal/autofs.c: Likewise.
12067 * normal/dyncmd.c: Likewise.
12069 * include/grub/rescue.h: Removed.
12070 * normal/command.h: Likewise.
12072 * include/grub/script.h: Moved to ...
12073 * include/grub/script_sh.h: ... Moved here.
12074 * normal/execute.c: Moved to ...
12075 * script/sh/execute.c: ... Moved here.
12076 * normal/function.c: Moved to ...
12077 * script/sh/function.c: ... Moved here.
12078 * normal/lexer.c: Moved to ...
12079 * script/sh/lexer.c: ... Moved here.
12080 * normal/parser.y: Moved to ...
12081 * script/sh/parser.y: ... Moved here.
12082 * normal/script.c: Moved to ...
12083 * script/sh/script.c: ... Moved here.
12085 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12087 (grub_exit_env): Removed.
12088 (fs_module_list): Moved to normal/autofs.c.
12089 (grub_file_getline): Don't handle comment here.
12090 (free_menu): Skip removed field entry->commands.
12091 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12093 (read_config_file): Removed nested parameter, change getline function.
12094 (grub_enter_normal_mode): Removed.
12095 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12096 (read_command_list): Likewise.
12097 (autoload_fs_module): Moved to normal/autofs.c.
12098 (read_fs_list): Likewise.
12099 (reader_nested): New variable.
12100 (grub_normal_execute): Run parser.sh to switch to sh parser.
12101 (grub_cmd_rescue): Removed.
12102 (cmd_normal): Removed.
12103 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12105 (grub_cmdline_run): New function.
12106 (grub_normal_reader_init): Likewise.
12107 (grub_normal_read_line): Likewise.
12108 (grub_env_write_pager): Likewise.
12109 (cmdline): New variable.
12110 (grub_normal_reader): Likewise.
12111 (GRUB_MOD_INIT): Register normal reader and set as current, register
12112 pager hook, register normal command with grub_register_command_prio,
12113 so that it won't show up in command.lst.
12114 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12115 grub_fs_autoload_hook.
12117 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12118 (grub_menu_execute_entry): Replace grub_script_execute with
12119 grub_parser_execute, change parameter to grub_command_execute.
12121 * normal/menu_text.c: Remove <grub/script.h>.
12123 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12124 and <grub/parser.h>.
12125 (run): Change editor_getline to use new parser interface. Change
12126 parameter to grub_command_execute.
12128 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12129 <grub/reader.h> and <grub/parser.h>.
12130 (grub_load_normal_mode): Execute normal command.
12131 (grub_main): Call grub_register_core_commands,
12132 grub_register_rescue_parser and grub_register_rescue_reader, use
12133 grub_reader_loop to enter input loop.
12135 * kern/parser.c (grub_parser_split_cmdline): Change type of
12137 (grub_parser_class): New variable.
12138 (grub_parser_execute): New function.
12140 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12141 * loader/multiboot2.c: Likewise.
12142 * loader/sparc64/ieee1275/linux.c: Likewise.
12144 * util/grub-emu.c (read_command_list): New dummy function.
12146 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12148 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12149 count to 16 for CCISS and IDA.
12151 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12153 * normal/menu_text.c (grub_wait_after_message): Print a newline
12154 after waiting for user input.
12156 * loader/i386/linux.c: Include `<grub/normal.h>'.
12157 (grub_cmd_linux): Improve the error message about `ask' mode, by
12158 waiting for user input so it's not missed (we can do this, since
12159 user requested interaction).
12161 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12163 Added missing lst to grub-mkrescue
12165 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12166 and ${input_dir}/parttool.lst
12168 2009-04-30 David S. Miller <davem@davemloft.net>
12170 * util/hostdisk.c (device_is_wholedisk): New function.
12171 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12172 zero only if device_is_wholedisk() returns true.
12174 * util/hostdisk.c (convert_system_partition_to_system_disk):
12175 Handle virtual disk devices named /dev/vdiskX as found on sparc
12178 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12179 lettered partition specifier is found, convert to numbered.
12181 2009-04-29 David S. Miller <davem@davemloft.net>
12183 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12184 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12186 * normal/command.c: Add missing newline at end of file.
12188 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12190 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12191 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12192 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12193 ihandles have a 32-bit type but need to be stored in a "void *".
12195 2009-04-28 Pavel Roskin <proski@gnu.org>
12197 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12198 not disk. Adjust all dependencies.
12199 (grub_fs_uuid_close): Use grub_device_close(), not
12202 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12203 parent's partition, don't copy it by reference, as it gets freed
12206 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12208 Preboot hooks support
12210 * commands/boot.c (struct grub_preboot_t): new declaration
12211 (preboots_head): new variable
12212 (preboots_tail): likewise
12213 (grub_loader_register_preboot_hook): new function
12214 (grub_loader_unregister_preboot_hook): likewise
12215 (grub_loader_set): launch preboot hooks
12216 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12217 (grub_loader_register_preboot_hook): new declaration
12218 (grub_loader_unregister_preboot_hook): likewise
12220 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12224 * disk/scsi.c (grub_scsi_open): added missing cast when
12225 calling grub_dprintf
12227 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12229 Bug and warning fixes
12231 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12233 * commands/test.c (test_parse): fixed bug with file tests and corrected
12234 declaration of find_file
12236 2009-04-26 Pavel Roskin <proski@gnu.org>
12238 * Makefile.in: Don't install empty manual pages if help2man is
12239 missing. Use help2man option for output, not shell redirection.
12241 2009-04-26 David S. Miller <davem@davemloft.net>
12243 * util/grub-mkdevicemap.c (make_device_map): Add missing
12244 NESTED_FUNC_ATTR to process_device().
12246 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12250 * commands/test.c: rewritten to use bash-like test
12252 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12254 Parttool autoloading and improvements
12256 * Makefile.in (pkglib_DATA): add parttool.lst
12257 (parttool.lst): new target
12258 * genmk.rb: generate parttool-*
12259 (CLEANFILES): add #{parttool}
12260 (PARTTOOLFILES): new variable
12261 * genparttoollist.sh: new file
12262 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12263 (grub_pcpart_type): likewise
12264 * commands/parttool.c (helpmsg): new variable
12265 (grub_cmd_parttool): output help if not enough arguments are supplied
12267 (GRUB_MOD_INIT(parttool)): use helpmsg
12269 2009-04-24 David S. Miller <davem@davemloft.net>
12271 Avoiding opening same device multiple times in device iterator.
12273 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12274 and use it to build a list of partitions in iterate_disk() and
12275 iterate_partition().
12277 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12280 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12281 grub_devalias_iterate() result instead of unconditional 0.
12282 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12283 Also, capture hook return value, either directly or via
12284 grub_children_iterate(), and propagate to caller.
12285 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12286 grub_children_iterate): Return value is now 'int' instead of
12288 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12289 like a proper iterator, stopping when hooks return non-zero.
12290 (grub_devalias_iterate): Likewise.
12292 2009-04-23 David S. Miller <davem@davemloft.net>
12294 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12296 2009-04-22 David S. Miller <davem@davemloft.net>
12298 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12299 is larger than address_cells, use that value for address_cells too.
12301 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12302 IEEE1275_MAX_PATH_LEN): Define.
12303 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12304 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12305 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12306 'devtype'. Explicitly NULL terminate devalias expansion.
12308 * util/sparc64/ieee1275/misc.c: New file.
12309 * util/sparc64/ieee1275/grub-setup.c: New file.
12310 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12311 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12312 * util/sparc64/ieee1275/grub-install.in: New file.
12313 * util/ieee1275/ofpath.c: New file.
12314 * util/ieee1275/devicemap.c: New file.
12315 * util/devicemap.c: New file.
12316 * util/deviceiter.c: New file.
12317 * kern/sparc64/ieee1275/init.c: New file.
12318 * include/grub/util/ofpath.h: New file.
12319 * include/grub/util/deviceiter.h: New file.
12320 * util/grub-mkdevicemap.c: Include deviceiter.h.
12321 Implement using grub_util_emit_devicemap_entry and
12322 grub_util_iterate_devices.
12323 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12324 util/devicemap.c into grub-mkdevicemap
12325 * conf/i386-efi.rmk: Likewise.
12326 * conf/i386-ieee1275.rmk: Likewise.
12327 * conf/i386-pc.rmk: Likewise.
12328 * conf/powerpc-ieee1275.rmk: Likewise.
12329 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12330 images and installation utilities. Build kernel as image
12331 instead of as elf binary. Use common rules as much as possible.
12333 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12335 Correct GPT definition
12337 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12340 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12342 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12344 2009-04-19 David S. Miller <davem@davemloft.net>
12346 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12347 (grub_rescue_cmd_linux): Rename to...
12348 (grub_cmd_linux): and fix prototype.
12349 (grub_rescue_cmd_initrd): Rename to...
12350 (grub_cmd_initrd): and fix prototype.
12351 (cmd_linux, cmd_initrd): New.
12352 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12353 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12355 2009-04-17 Pavel Roskin <proski@gnu.org>
12357 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12359 (grub_ohci_transfer): Likewise.
12361 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12363 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12364 return without a value. Fix inconsistent indentation.
12366 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12367 match struct grub_fs.
12369 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12370 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12371 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12372 * commands/lspci.c (grub_lspci_iter): Likewise.
12374 2009-04-16 Bean <bean123ch@gmail.com>
12376 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12379 2009-04-15 Pavel Roskin <proski@gnu.org>
12381 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12382 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12383 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12386 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12388 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12389 that no multiple data or metadata areas are supported and `Unknown
12392 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12394 Move loader out of the kernel
12396 * kern/loader.c: moved to ...
12397 * commands/boot.c: ... moved here
12398 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12399 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12400 * include/grub/kernel.h (grub_machine_fini): export
12401 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12402 (grub_loader_set): likewise
12403 (grub_loader_unset): likewise
12404 (grub_loader_boot): likewise
12405 * conf/common.rmk: new module boot.mod
12406 (pkglib_MODULES): add boot.mod
12407 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12408 (grub_emu_SOURCES): likewise
12409 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12410 (grub_emu_SOURCES): likewise
12411 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12412 (grub_emu_SOURCES): likewise
12413 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12414 (grub_emu_SOURCES): likewise
12415 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12416 (grub_emu_SOURCES): likewise
12417 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12418 (grub_emu_SOURCES): likewise
12419 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12420 (grub_emu_SOURCES): likewise
12422 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12424 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12426 * kern/misc.c (grub_itoa): Removed function
12427 (grub_ltoa): likewise
12428 (grub_vsprintf): use grub_lltoa
12430 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12434 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12435 * conf/i386-coreboot.rmk: likewise
12436 * conf/i386-ieee1275.rmk: likewise
12437 * conf/powerpc-ieee1275.rmk: likewise
12439 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12441 * INSTALL: Add that `./autogen.sh' needs to be run before
12444 2009-04-14 Bean <bean123ch@gmail.com>
12446 * Makefile.in (pkglib_DATA): Add handler.lst.
12447 (handler.lst): New rule.
12449 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12450 * conf/i386-coreboot.rmk: Likewise.
12451 * conf/i386-ieee1275.rmk: Likewise.
12452 * conf/i386-efi.rmk: Likewise.
12453 * conf/x86_64-efi.rmk: Likewise.
12454 * conf/powerpc-ieee1275.rmk: Likewise.
12455 * conf/sparc64-ieee1275.rmk: Likewise.
12457 * genhandlerlist.sh: New file.
12459 * genmk.rb: Add rules to generate handler.lst.
12461 * include/grub/normal.h (grub_file_getline): New function definition.
12462 (read_handler_list): Likewise.
12463 (free_handler_list): Likewise.
12465 * include/grub/term.h (grub_term_register_input): Add name parameter
12466 for auto generation of handler.lst.
12467 (grub_term_register_output): Likewise.
12469 * normal/handler.c: New file.
12471 * normal/main.c (get_line): Renamed to grub_file_getline.
12472 (read_config_file): Use the newly renamed grub_file_getline.
12473 (read_command_list): Likewise.
12474 (read_fs_list): Likewise.
12475 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12476 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12478 * term/efi/console.c (grub_console_init): Add name parameter for auto
12479 generation of handler.lst.
12480 * term/gfxterm.c: Likewise.
12481 * term/i386/pc/at_keyboard.c: Likewise.
12482 * term/i386/pc/console.c: Likewise.
12483 * term/i386/pc/serial.c: Likewise.
12484 * term/i386/pc/vesafb.c: Likewise.
12485 * term/i386/pc/vga.c: Likewise.
12486 * term/i386/pc/vga_text.c: Likewise.
12487 * term/ieee1275/ofconsole.c: Likewise.
12488 * term/usb_keyboard.c: Likewise.
12490 2009-04-14 Bean <bean123ch@gmail.com>
12492 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12493 properly with null character.
12495 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12497 * configure: Remove.
12498 * config.h.in: Likewise.
12499 * stamp-h.in: Likewise.
12500 * DISTLIST: Likewise.
12501 * conf/common.mk: Likewise.
12502 * conf/i386-coreboot.mk: Likewise.
12503 * conf/i386-efi.mk: Likewise.
12504 * conf/i386-ieee1275.mk: Likewise.
12505 * conf/i386.mk: Likewise.
12506 * conf/i386-pc.mk: Likewise.
12507 * conf/powerpc-ieee1275.mk: Likewise.
12508 * conf/sparc64-ieee1275.mk: Likewise.
12509 * conf/x86_64-efi.mk: Likewise.
12511 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12514 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12515 David S. Miller <davem@davemloft.net>
12517 * util/hostdisk.c (make_device_name): Fix buffer length
12520 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12522 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12523 <sys/param.h> and <sys/sysctl.h>.
12524 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12525 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12526 opening the device and reset them afterwards.
12528 2009-04-13 Pavel Roskin <proski@gnu.org>
12530 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12531 Reported by John Stanley <jpsinthemix@verizon.net>
12533 2009-04-13 Robert Millan <rmh@aybabtu.com>
12535 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12536 that name for menuentries when appropriate.
12538 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12540 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12542 2009-04-13 Robert Millan <rmh@aybabtu.com>
12544 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12545 to Linux, simply abort telling the user it's no longer supported.
12547 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12549 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12550 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12551 `freebsd_loadenv' only when devices.hints exist.
12553 2009-04-13 Pavel Roskin <proski@gnu.org>
12555 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12557 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12559 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12561 (grub_drive): Likewise.
12563 2009-04-13 David S. Miller <davem@davemloft.net>
12565 * kern/sparc64/ieee1275/ieee1275.c: New file.
12566 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12567 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12568 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12569 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12570 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12571 grub_ieee1275_alloc_physmem): Declare new exported functions.
12573 * include/grub/sparc64/ieee1275/loader.h: New file.
12574 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12575 * include/grub/sparc64/kernel.h: Likewise.
12576 * loader/sparc64/ieee1275/linux.c: Likewise.
12578 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12579 (grub_fstest_SOURCES): Likewise.
12581 * util/hostdisk.c (make_device_name): Do not make any assumptions
12582 about the length of drive names.
12584 * kern/dl.c (grub_dl_load_file): Close file immediately when
12585 we are done using it.
12587 2009-04-12 David S. Miller <davem@davemloft.net>
12589 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12590 values. Noticed by Pavel Roskin.
12592 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12595 * genmk.rb: Add more flexible image type specification, also
12596 pass --strip-unneeded to objcopy.
12597 * conf/i386-pc.rmk: Use *_FORMAT.
12598 * conf/i386-pc.mk: Rebuilt.
12600 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12601 (OFDISK_HASH_SZ): Define.
12602 (ofdisk_hash): New hash table.
12603 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12604 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12605 instead of device phandle which is not unique.
12607 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12608 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12609 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12610 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12611 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12612 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12613 GRUB_KERNEL_MACHINE_DATA_END): Define.
12614 (grub_kernel_image_size, grub_total_module_size): Declare.
12616 2009-04-12 Pavel Roskin <proski@gnu.org>
12618 * configure.ac: Change the logic when we check for target tools.
12619 Do it when the target is specified and it's different from the
12620 specified value of the host.
12622 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12624 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12625 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12626 GNU/kFreeBSD. Check if a device is a character device. Use
12627 DIOCGMEDIASIZE to get the size.
12628 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12629 support for GNU/kFreeBSD.
12630 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12631 is a character device instead of a block device. Add support for
12632 FreeBSD device names.
12634 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12635 is a character device instead of a block device.
12637 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12638 is a character device instead of a block device.
12640 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12642 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12643 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12644 FreeBSD. Check if a device is a character device. Use
12645 DIOCGMEDIASIZE to get the size.
12646 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12647 support for FreeBSD.
12648 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12649 is a character device instead of a block device. Add support for
12650 FreeBSD device names.
12652 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12653 a character device instead of a block device.
12654 (grub_util_check_char_device): New function.
12656 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12657 a character device instead of a block device.
12659 * include/grub/util/getroot.h (grub_util_check_char_device): New
12662 2009-04-11 David S. Miller <davem@davemloft.net>
12664 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12666 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12667 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12668 function, if present.
12669 (__bswapdi2): Likewise.
12671 * include/grub/sparc64/ieee1275/boot.h: New file.
12672 * boot/sparc64/ieee1275/boot.S: Likewise.
12673 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12675 * kern/misc.c (grub_ltoa): New function.
12676 (grub_vsprintf): Use it to format 'long' integers.
12678 2009-04-10 David S. Miller <davem@davemloft.net>
12680 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12681 slots are of type grub_ieee1275_cell_t.
12682 (grub_nand_read): Likewise.
12683 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12684 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12685 macros are used to compare values in arg/ret block of the call.
12686 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12687 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12688 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12689 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12690 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12691 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12692 grub_ieee1275_close, grub_ieee1275_set_property,
12693 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12694 grub_ieee1275_cell_t.
12695 * kern/ieee1275/openfw.c (grub_map): Likewise.
12696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12697 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12699 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12700 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12701 (grub_devalias_iterate): Likewise.
12703 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12707 * fs/ufs.c (INODE_NBLOCKS): new definition
12708 (struct grub_ufs_dirent): added fields for non-BSD dirents
12709 (grub_ufs_get_file_block): fixed double indirect handling
12710 (grub_ufs_lookup_symlink): use more robust way to determine whether
12712 (grub_ufs_find_file): support for non-BSD dirents
12713 (grub_ufs_dir): support for non-BSD dirents
12715 2009-04-10 Bean <bean123ch@gnail.com>
12717 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12718 attribute, otherwise the size would be wrong for i386 platform.
12720 * include/grub/pci.h (grub_pci_read_word): New inline function.
12721 (grub_pci_read_byte): Likewise.
12722 (grub_pci_write): Likewise.
12723 (grub_pci_write_word): Likewise.
12724 (grub_pci_write_byte): Likewise.
12726 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12728 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12729 (find_framebuf): Scan pci to locate the frame buffer address.
12731 * commands/efi/fixvideo.c: New file.
12733 * commands/efi/loadbios.c: Likewise.
12735 * commands/memrw.c: Likewise.
12737 * util/grub-dumpbios.in: Likewise.
12739 * conf/common.rmk (grub-dumpbios): New utility.
12740 (pkglib_MODULES): New module memrw.mod.
12741 (memrw_mod_SOURCE): New macro.
12742 (memrw_mod_CFLAGS): Likewise.
12743 (memrw_mod_LDFLAGS): Likewise.
12745 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12747 (loadbios_mod_SOURCE): New macro.
12748 (loadbios_mod_CFLAGS): Likewise.
12749 (loadbios_mod_LDFLAGS): Likewise.
12750 (fixvideo_mod_SOURCE): Likewise.
12751 (fixvideo_mod_CFLAGS): Likewise.
12752 (fixvideo_mod_LDFLAGS): Likewise.
12754 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12756 (loadbios_mod_SOURCE): New macro.
12757 (loadbios_mod_CFLAGS): Likewise.
12758 (loadbios_mod_LDFLAGS): Likewise.
12759 (fixvideo_mod_SOURCE): Likewise.
12760 (fixvideo_mod_CFLAGS): Likewise.
12761 (fixvideo_mod_LDFLAGS): Likewise.
12763 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12765 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12767 2009-04-07 David S. Miller <davem@davemloft.net>
12769 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12770 support for R_SPARC_OLO10 relocations. Fix compile warning for
12771 R_SPARC_WDISP30 case.
12772 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12774 2009-04-06 Pavel Roskin <proski@gnu.org>
12776 * include/grub/misc.h (ARRAY_SIZE): New macro.
12777 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12779 * loader/i386/linux.c (allocate_pages): Use free_pages().
12780 (grub_linux_unload): Don't use free_pages().
12781 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12782 wrong index. Treat all other modes as text modes.
12783 (grub_cmd_linux): Initialize vid_mode unconditionally to
12784 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12786 * commands/help.c (print_command_help): Use cmd->prio, not
12787 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12789 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12793 * parttool/pcpart.c: new file
12794 * commands/parttool.c: likewise
12795 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12796 (parttool_mod_SOURCES): new variable
12797 (parttool_mod_CFLAGS): likewise
12798 (parttool_mod_LDFLAGS): likewise
12799 (pcpart_mod_SOURCES): likewise
12800 (pcpart_mod_CFLAGS): likewise
12801 (pcpart_mod_LDFLAGS): likewise
12802 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12803 and parttool/pcpart.c
12804 * conf/i386-efi.rmk: likewise
12805 * conf/i386-ieee1275.rmk: likewise
12806 * conf/i386-pc.rmk: likewise
12807 * conf/powerpc-ieee1275.rmk: likewise
12808 * conf/sparc64-ieee1275.rmk: likewise
12809 * conf/x86_64-ieee1275.rmk: likewise
12811 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12813 Support for mtime and further expandability of dir command
12815 * include/grub/lib/datetime.h: moved to ...
12816 * include/grub/datetime.h: ... moved here and added
12817 declaration of grub_unixtime2datetime. All users updated
12818 * include/grub/fs.h: new syntax for dir and mtime functions in
12820 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12821 and GRUB_FSHELP_FLAGS_MASK
12822 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12823 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12824 (grub_ext2_mtime): new function
12825 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12826 (grub_hfsplus_mtime): new function
12827 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12828 (GRUB_UFS_ATTR_FILE): likewise
12829 (GRUB_UFS_ATTR_LNK): likewise
12830 (struct grub_ufs_sblock): new fields mtime
12831 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12833 (grub_ufs_dir): mtime support
12834 (grub_ufs_mtime): new function
12835 * fs/affs.c (grub_affs_dir): use new dir syntax
12836 * fs/afs.c (grub_afs_dir): likewise
12837 * fs/cpio.c (grub_cpio_dir): likewise
12838 * fs/fat.c (grub_fat_find_dir): likewise
12839 * fs/hfs.c (grub_hfs_dir): likewise
12840 * fs/iso9660.c (grub_iso9660_dir): likewise
12841 * fs/jfs.c (grub_jfs_dir): likewise
12842 * fs/minix.c (grub_minix_dir): likewise
12843 * fs/ntfs.c (grub_ntfs_dir): likewise
12844 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12845 * fs/sfs.c (grub_sfs_dir): likewise
12846 * fs/xfs.c (grub_xfs_dir): likewise
12847 * util/hostfs.c (grub_hostfs_dir): likewise
12848 * lib/datetime.c: moved to ...
12849 * normal/datetime.c: ... moved here
12850 (grub_unixtime2datetime): new function
12851 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12852 * normal/completion.c (iterate_dir): use new dir syntax
12853 * normal/misc.c (grub_normal_print_device_info): tell the
12854 last modification time of a volume
12855 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12856 * conf/common.rmk: added lib/datetime.c to ls.mod
12857 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12858 (normal_mod_SOURCES): likewise
12859 (datetime_mod_SOURCES): Removed lib/datetime.c
12860 * conf/i386-efi.rmk: likewise
12861 * conf/i386-ieee1275.rmk: likewise
12862 * conf/i386-pc.rmk: likewise
12863 * conf/powerpc-ieee1275.rmk: likewise
12864 * conf/sparc64-ieee1275.rmk: likewise
12865 * conf/x86_64-efi.rmk: likewise
12867 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12869 Trim trailing spaces in FAT label and support mtools-like labels
12871 * fs/fat.c (grub_fat_iterate_dir): New function based
12872 on grub_fat_find_dir
12873 (grub_fat_find_dir): use grub_fat_iterate_dir
12874 (grub_fat_label): likewise
12876 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12878 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12880 remove extraneous kernel_elf_HEADERS
12882 2009-04-04 Bean <bean123ch@gnail.com>
12884 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12886 * util/misc.c: Likewise.
12888 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12890 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12891 instead of grub_printf.
12893 2009-04-03 Robert Millan <rmh@aybabtu.com>
12895 * loader/i386/linux.c (grub_linux_setup_video): Fill
12896 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12897 values from `mode info' structure instead of hardcoded
12900 2009-04-01 Pavel Roskin <proski@gnu.org>
12902 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12904 * genmk.rb: Likewise.
12905 * configure.ac: Likewise.
12907 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12909 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12910 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12912 2009-04-01 David S. Miller <davem@davemloft.net>
12914 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12915 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12916 (grub_setjmp): Mark with 'returns_twice' attribute.
12917 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12918 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12919 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12921 2009-04-01 Robert Millan <rmh@aybabtu.com>
12923 Reapply fix from 2008-07-28 which was accidentally reverted; also
12924 perform the same fix to a similar check in same function.
12926 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12927 with the same number are found, just use issue a warning with
12928 grub_dprintf(), as this error has been reported to be non-fatal.
12930 2009-03-31 Pavel Roskin <proski@gnu.org>
12932 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12933 for cross-compilation.
12935 2009-03-30 Robert Millan <rmh@aybabtu.com>
12937 Fix i386-ieee1275 build.
12939 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12940 Remove declaration.
12942 2009-03-30 Pavel Roskin <proski@gnu.org>
12944 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12945 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12946 zero-terminated, rely only on the strlen value. Fix comparison
12947 of strings differing in length.
12949 2009-03-30 Robert Millan <rmh@aybabtu.com>
12951 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12952 checking for abi version. Improve error messages on BIOS to notify
12953 user about `linux16' command.
12955 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12959 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12960 in case of collision
12961 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12963 2009-03-29 Robert Millan <rmh@aybabtu.com>
12965 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12966 set `vid_mode' accordingly.
12967 (grub_linux_boot): Process `vid_mode' and set video mode.
12969 2009-03-29 Robert Millan <rmh@aybabtu.com>
12971 * util/grub.d/10_linux.in (linux_entry): New function.
12972 Factorize generation of Linux boot entries.
12974 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12976 Make the format of Environment Block plain text. The boot loader
12977 part is not tested well yet.
12979 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12981 (envblk): Likewise.
12982 (usage): Remove "info" and "clear". Add "unset". Update the
12983 description of "set", as this does not delete variables any
12985 (create_envblk_file): Complete rewrite.
12986 (open_envblk_file): Likewise.
12987 (cmd_info): Removed.
12988 (cmd_list): Likewise.
12989 (cmd_set): Likewise.
12990 (cmd_clear): Likewise.
12991 (list_variables): New function.
12992 (write_envblk): Likewise.
12993 (set_variables): Likewise.
12994 (unset_variables): Likewise.
12995 (main): Complete rewrite.
12997 * commands/loadenv.c (buffer): Removed.
12998 (envblk): Likewise.
12999 (open_envblk_file): New function.
13000 (read_envblk_file): Complete rewrite.
13001 (grub_cmd_load_env): Likewise.
13002 (grub_cmd_list_env): Likewise.
13003 (struct blocklist): New struct.
13004 (free_blocklists): New function.
13005 (check_blocklists): Likewise.
13006 (write_blocklists): Likewise.
13007 (grub_cmd_save_env): Complete rewrite.
13009 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13010 a plain text signature.
13011 (GRUB_ENVBLK_MAXLEN): Removed.
13012 (struct grub_envblk): Complete rewrite.
13013 (grub_envblk_find): Removed.
13014 (grub_envblk_insert): Likewise.
13015 (grub_envblk_open): New prototype.
13016 (grub_envblk_set): Likewise.
13017 (grub_envblk_delete): Put const to VALUE.
13018 (grub_envblk_iterate): Put const to NAME and VALUE.
13019 (grub_envblk_close): New prototype.
13020 (grub_envblk_buffer): New inline function.
13021 (grub_envblk_size): Likewise.
13023 * lib/envblk.c: Include grub/mm.h.
13024 (grub_env_find): Removed.
13025 (grub_envblk_open): New function.
13026 (grub_envblk_close): Likewise.
13027 (escaped_value_len): Likewise.
13028 (find_next_line): Likewise.
13029 (grub_envblk_insert): Removed.
13030 (grub_envblk_set): New function.
13031 (grub_envblk_delete): Complete rewrite.
13032 (grub_envblk_iterate): Likewise.
13034 2009-03-28 Robert Millan <rmh@aybabtu.com>
13036 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13037 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13038 variables. Use 16-bit loader.
13039 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13041 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13042 (grub_linux16_boot): ... this. Update all users.
13043 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13044 (grub_linux_boot): ... this. Update all users.
13046 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13047 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13048 commands to `linux16' and `initrd16'.
13049 (GRUB_MOD_FINI(linux)): Rename to ...
13050 (GRUB_MOD_FINI(linux16)): ... this.
13052 2009-03-24 Pavel Roskin <proski@gnu.org>
13054 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13055 not just for compilation.
13057 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13059 Move multiboot helper out of kernel
13061 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13062 `loader/i386/multiboot_helper.S'.
13063 * conf/i386-coreboot.rmk: Likewise
13064 * conf/i386-ieee1275.rmk: Likewise
13066 * kern/i386/loader.S: Move multiboot helpers from here...
13067 * loader/i386/multiboot_helper.S: ...moved here
13068 * include/grub/i386/loader.h: Move declarations of multiboot
13069 helpers from here...
13070 * include/grub/i386/multiboot.h: ...moved here
13071 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13073 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13075 * kern/env.c (grub_env_context_open): Added an argument to specify
13076 whether a new context inherits exported variables from current
13077 one. This is useful when making a sandbox to interpret a config
13079 All callers updated.
13081 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13083 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13085 * kern/env.c (grub_env_context_close): Fix memory leaks.
13087 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13089 * normal/main.c (grub_normal_execute): Added an argument
13090 BATCH to specify if an interactive interface should be provided
13091 after reading a config file.
13092 All callers updated.
13093 (read_command_list): Prevent being executed twice.
13094 (read_fs_list): Likewise.
13096 * include/grub/normal.h (grub_normal_execute): Updated the
13099 2009-03-22 Pavel Roskin <proski@gno.org>
13101 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13103 * kern/i386/pc/startup.S: Likewise.
13104 * kern/i386/efi/startup.S: Likewise.
13105 * kern/i386/ieee1275/startup.S: Likewise.
13106 * kern/i386/coreboot/startup.S: Likewise.
13107 * kern/x86_64/efi/startup.S: Likewise.
13109 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13110 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13111 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13113 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13115 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13117 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13119 Use vaddr of correct segment for entry_point.
13121 2009-03-21 Bean <bean123ch@gmail.com>
13123 * commands/blocklist.c: Add include file <grub/command.h>, remove
13124 <grub/normal.h> and <grub/arg.h>.
13125 (grub_cmd_blocklist): Use the new command interface.
13126 (GRUB_MOD_INIT): Likewise.
13127 (GRUB_MOD_FINI): Likewise.
13128 * commands/boot.c: Likewise.
13129 * commands/cat.c: Likewise.
13130 * commands/cmp.c: Likewise.
13131 * commands/configfile.c: Likewise.
13132 * commands/crc.c: Likewise.
13133 * commands/echo.c: Likewise.
13134 * commands/halt.c: Likewise.
13135 * commands/handler.c: Likewise.
13136 * commands/hdparm.c: Likewise.
13137 * commands/help.c: Likewise.
13138 * commands/hexdump.c: Likewise.
13139 * commands/loadenv.c: Likewise.
13140 * commands/ls.c: Likewise.
13141 * commands/lsmmap.c: Likewise.
13142 * commands/lspci.c: Likewise.
13143 * commands/loadenv.c: Likewise.
13144 * commands/read.c: Likewise.
13145 * commands/reboot.c: Likewise.
13146 * commands/search.c: Likewise.
13147 * commands/sleep.c: Likewise.
13148 * commands/test.c: Likewise.
13149 * commands/usbtest.c: Likewise.
13150 * commands/videotest.c: Likewise.
13151 * commands/i386/cpuid.c: Likewise.
13152 * commands/i386/pc/halt.c: Likewise.
13153 * commands/i386/pc/play.c: Likewise.
13154 * commands/i386/pc/pxecmd.c: Likewise.
13155 * commands/i386/pc/vbeinfo.c: Likewise.
13156 * commands/i386/pc/vbetest.c: Likewise.
13157 * commands/ieee1275/suspend.c: Likewise.
13158 * disk/loopback.c: Likewise.
13159 * font/font_cmd.c: Likewise.
13160 * hello/hello.c: Likewise.
13161 * loader/efi/appleloader.c: Likewise.
13162 * loader/efi/chainloader.c: Likewise.
13163 * loader/i386/bsd.c: Likewise.
13164 * loader/i386/efi/linux.c: Likewise.
13165 * loader/i386/ieee1275/linux.c: Likewise.
13166 * loader/i386/linux.c: Likewise.
13167 * loader/i386/pc/chainloader.c: Likewise.
13168 * loader/i386/pc/linux.c: Likewise.
13169 * loader/powerpc/ieee1275/linux.c: Likewise.
13170 * loader/multiboot_loader.c: Likewise.
13171 * term/gfxterm.c: Likewise.
13172 * term/i386/pc/serial.c: Likewise.
13173 * term/terminfo.c: Likewise.
13175 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13176 * term/i386/pc/vga.c: Likewise.
13177 * video/readers/jpeg.c: Likewise.
13178 * video/readers/png.c: Likewise.
13179 * video/readers/tga.c: Likewise.
13181 * util/grub-fstest (cmd_loopback): Removed.
13182 (cmd_blocklist): Likewise.
13183 (cmd_ls): Likewise.
13184 (grub_register_command): Likewise.
13185 (grub_unregister_command): Likewise.
13186 (execute_command): Use grub_command_find to locate command and execute
13189 * include/grub/efi/chainloader.h: Removed.
13190 * loader/efi/chainloader_normal.c: Likewise.
13191 * loader/i386/bsd_normal.c: Likewise.
13192 * loader/i386/pc/chainloader_normal.c: Likewise.
13193 * loader/i386/pc/multiboot_normal.c: Likewise.
13194 * loader/linux_normal.c: Likewise.
13195 * loader/multiboot_loader_normal.c: Likewise.
13196 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13198 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13199 and grub_register_command_p1.
13201 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13202 kern/command.c, lib/arg.c and commands/extcmd.c.
13203 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13204 (minicmd_mod_SOURCES): New variable.
13205 (minicmd_mod_CFLAGS): Likewise.
13206 (minicmd_mod_LDFLAGS): Likewise.
13207 (extcmd_mod_SOURCES): Likewise.
13208 (extcmd_mod_CFLAGS): Likewise.
13209 (extcmd_mod_LDFLAGS): Likewise.
13210 (boot_mod_SOURCES): Removed.
13211 (boot_mod_CFLAGS): Likewise.
13212 (boot_mod_LDFLAGS): Likewise.
13214 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13216 (kernel_img_HEADERS): Add command.h.
13217 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13218 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13220 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13221 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13222 remove the corresponding normal mode command.
13223 (normal_mod_SOURCES): Remove normal/arg.c.
13224 * conf/i386-coreboot.rmk: Likewise.
13225 * conf/i386-efi.rmk: Likewise.
13226 * conf/i386-ieee1275.rmk: Likewise.
13227 * conf/powerpc-ieee1275.rmk: Likewise.
13228 * conf/x86_64-efi.rmk: Likewise.
13230 * include/grub/arg.h: Move from here ...
13231 * include/grub/lib/arg.h: ... to here.
13233 * normal/arg.c: Move from here ...
13234 * lib/arg.c: ... to here.
13236 * commands/extcmd.c: New file.
13237 * commands/minicmd.c: Likewise.
13238 * include/grub/command.h: Likewise.
13239 * include/grub/extcmd.h: Likewise.
13240 * kern/command.c: Likewise.
13241 * kern/corecmd.c: Likewise.
13243 * kern/list.c (grub_list_iterate): Return int instead of void.
13244 (grub_list_insert): New function.
13245 (grub_prio_list_insert): Likewise.
13247 * kern/rescue.c (grub_rescue_command): Removed.
13248 (grub_rescue_command_list): Likewise.
13249 (grub_rescue_register_command): Likewise.
13250 (grub_rescue_unregister_command): Likewise.
13251 (grub_rescue_cmd_boot): Move to minicmd.c
13252 (grub_rescue_cmd_help): Likewise.
13253 (grub_rescue_cmd_info): Likewise.
13254 (grub_rescue_cmd_boot): Likewise.
13255 (grub_rescue_cmd_testload): Likewise.
13256 (grub_rescue_cmd_dump): Likewise.
13257 (grub_rescue_cmd_rmmod): Likewise.
13258 (grub_rescue_cmd_lsmod): Likewise.
13259 (grub_rescue_cmd_exit): Likewise.
13260 (grub_rescue_print_devices): Moved to corecmd.c.
13261 (grub_rescue_print_files): Likewise.
13262 (grub_rescue_cmd_ls): Likewise.
13263 (grub_rescue_cmd_insmod): Likewise.
13264 (grub_rescue_cmd_set): Likewise.
13265 (grub_rescue_cmd_unset): Likewise.
13266 (attempt_normal_mode): Use grub_command_find to get normal module.
13267 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13268 commands, remove grub_rescue_register_command calls.
13270 * normal/command.c (grub_register_command): Removed.
13271 (grub_unregister_command): Likewise.
13272 (grub_command_find): Likewise.
13273 (grub_iterate_commands): Likewise.
13274 (rescue_command): Likewise.
13275 (export_command): Moved to corecmd.c.
13276 (set_command): Removed.
13277 (unset_command): Likewise.
13278 (insmod_command): Likewise.
13279 (rmmod_command): Likewise.
13280 (lsmod_command): Likewise.
13281 (grub_command_init): Likewise.
13283 * normal/completion.c (iterate_command): Use cmd->prio to check for
13285 (complete_arguments): Use grub_extcmd_t structure to find options.
13286 (grub_normal_do_completion): Change function grub_iterate_commands to
13287 grub_command_iterate.
13289 * normal/execute.c (grub_script_execute_cmd): No need to parse
13292 * normal/main.c (grub_dyncmd_dispatcher): New function.
13293 (read_command_list): Register unload commands as dyncmd.
13294 (grub_cmd_normal): Use new command interface, register rescue,
13295 unregister normal at entry, register normal, unregister rescue at exit.
13297 * include/grub/list.h (grub_list_test_t): New type.
13298 (grub_list_iterate): Return int instead of void.
13299 (grub_list_insert): New function.
13300 (GRUB_AS_NAMED_LIST_P): New macro.
13301 (GRUB_AS_PRIO_LIST): Likewise.
13302 (GRUB_AS_PRIO_LIST_P): Likewise.
13303 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13304 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13305 (grub_prio_list): New structure.
13306 (grub_prio_list_insert): New function.
13307 (grub_prio_list_remove): New inline function.
13309 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13310 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13311 (GRUB_COMMAND_FLAG_MENU): Likewise.
13312 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13313 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13314 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13315 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13316 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13317 (grub_command): Likewise.
13318 (grub_register_command): Likewise.
13319 (grub_command_find): Likewise.
13320 (grub_iterate_commands): Likewise.
13321 (grub_command_init): Likewise.
13322 (grub_arg_parse): Likewise.
13323 (grub_arg_show_help): Likewise.
13325 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13326 (grub_rescue_unregister_command): Likewise.
13328 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13329 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13330 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13332 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13333 grub_rescue_cmd_initrd.
13334 * include/grub/i386/loader.h: Likewise.
13335 * include/grub/x86_64/loader.h: Likewise.
13337 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13339 2009-03-21 Bean <bean123ch@gmail.com>
13341 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13342 instead of stat in mingw environment.
13344 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13346 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13348 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13351 2009-03-21 Bean <bean123ch@gmail.com>
13353 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13354 out of range error.
13356 2009-03-18 Michel Dänzer <michel@daenzer.net>
13358 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13359 checking inode flags for EXT4_EXTENTS_FLAG.
13361 2009-03-18 Robert Millan <rmh@aybabtu.com>
13363 * loader/i386/linux.c: Include `<grub/video.h>' and
13364 `<grub/i386/pc/vbe.h>'..
13365 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13366 (grub_linux32_boot): Attempt to configure video settings with
13367 grub_linux_setup_video().
13368 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13369 to avoid grub_console_fini() which would step out of graphical mode
13372 2009-03-14 Robert Millan <rmh@aybabtu.com>
13374 Fix build on powerpc.
13375 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13377 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13379 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13380 background image command.
13382 2009-03-12 Colin D Bennett <colin@gibibit.com>
13384 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13385 (grub_gfxterm_putchar): Extract pairs of identical calls to
13386 draw_cursor out of conditional blocks.
13388 2009-03-11 Pavel Roskin <proski@gnu.org>
13390 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13391 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13393 2009-03-11 Robert Millan <rmh@aybabtu.com>
13395 * loader/i386/multiboot_elfxx.c
13396 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13398 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13400 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13403 2009-03-11 Robert Millan <rmh@aybabtu.com>
13405 * loader/i386/multiboot.c (code_size): New variable.
13406 (grub_multiboot): Define offsets by adding to `code_size' rather
13407 than subtracting from `grub_multiboot_payload_size'. Provide
13408 4-byte alignment to MBI and others by increasing
13409 `boot_loader_name_length' appropriately.
13411 * loader/i386/multiboot_elfxx.c
13412 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13414 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13419 2009-03-08 Robert Millan <rmh@aybabtu.com>
13421 Make loader/i386/linux.c usable on i386-pc again.
13423 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13425 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13428 2009-03-07 Bean <bean123ch@gmail.com>
13430 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13433 2009-03-06 Robert Millan <rmh@aybabtu.com>
13435 Fix display issue on terminals with screen size other than 80x25
13436 (e.g. gfxterm with resolution higher than 640x480).
13438 * normal/main.c (grub_normal_init_page): Display title text in a
13439 position relative to the center of the terminal instead of relying
13440 on a hardcoded offset.
13442 2009-03-04 Robert Millan <rmh@aybabtu.com>
13444 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13447 * Makefile.in (host_kernel): New variable.
13448 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13449 scripts instead of just the windows one.
13450 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13452 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13454 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13456 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13457 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13460 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13461 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13463 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13465 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13466 or if there's no space for the disk label and print the partition number on a
13469 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13471 * util/misc.c: Include <time.h>.
13472 (grub_millisleep): New function.
13474 2009-03-04 Bean <bean123ch@gmail.com>
13476 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13477 another option -mno-red-zone.
13479 * commands/handler.c: Change module description.
13481 * kern/handler.c: Add missing space at the end of description line.
13483 * kern/list.c: Likewise.
13485 2009-03-03 Robert Millan <rmh@aybabtu.com>
13487 Move more components to the relocation area, and fix mbi pointer
13488 handling to use the destination rather than the origin (thanks to
13489 Vladimir Serbinenko for spotting).
13491 * loader/i386/multiboot.c (mbi_dest): New variable.
13492 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13493 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13496 2009-03-01 Bean <bean123ch@gmail.com>
13498 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13499 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13500 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13501 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13503 * loader/i386/efi/linux.c (acpi_guid): New variable.
13504 (acpi_guid): Likewise.
13505 (EBDA_SEG_ADDR): New constant.
13506 (LOW_MEM_ADDR): Likewise.
13507 (FAKE_EBDA_SEG): Likewise.
13508 (fake_bios_data): New function.
13509 (grub_linux_boot): Call fake_bios_data.
13511 2009-03-01 Bean <bean123ch@gmail.com>
13513 * commands/terminal.c: Removed.
13515 * commands/handler.c: New file.
13517 * include/grub/list.h: Likewise.
13519 * include/grub/handler.h: Likewise.
13521 * kern/list.c: Likewise.
13523 * kern/handler.c: Likewise.
13525 * kern/term.h: Include header file <grub/handler.h>.
13526 (grub_term_input): Move next field to the beginning.
13527 (grub_term_output): Likewise.
13528 (grub_term_input_class): New variable.
13529 (grub_term_output_class): Likewise.
13530 (grub_term_register_input): Changed to inline function.
13531 (grub_term_register_output): Likewise.
13532 (grub_term_unregister_input): Likewise.
13533 (grub_term_unregister_output): Likewise.
13534 (grub_term_set_current_input): Likewise.
13535 (grub_term_set_current_output): Likewise.
13536 (grub_term_get_current_input): Likewise.
13537 (grub_term_get_current_output): Likewise.
13538 (grub_term_iterate_input): Removed.
13539 (grub_term_iterate_output): Likewise.
13541 * kern/term.c (grub_term_list_input): Removed.
13542 (grub_term_list_output): Likewise.
13543 (grub_term_input_class): New variable.
13544 (grub_term_output_class): Likewise.
13545 (grub_cur_term_input): Change variable as macro.
13546 (grub_cur_term_output): Likewise.
13547 (grub_term_register_input): Removed.
13548 (grub_term_register_output): Likewise.
13549 (grub_term_unregister_input): Likewise.
13550 (grub_term_unregister_output): Likewise.
13551 (grub_term_set_current_input): Likewise.
13552 (grub_term_set_current_output): Likewise.
13553 (grub_term_iterate_input): Likewise.
13554 (grub_term_iterate_output): Likewise.
13555 (grub_term_get_current_input): Likewise.
13556 (grub_term_get_current_output): Likewise.
13558 * util/grub-editenv.c: Include header file <grub/handler.h>.
13559 (grub_term_get_current_input): Removed.
13560 (grub_term_get_current_output): Likewise.
13561 (grub_term_input_class): New variable.
13562 (grub_term_output_class): Likewise.
13564 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13565 (grub_term_get_current_output): Likewise.
13566 (grub_term_input_class): New variable.
13567 (grub_term_output_class): Likewise.
13569 * util/grub-probe.c (grub_term_get_current_input): Removed.
13570 (grub_term_get_current_output): Likewise.
13571 (grub_term_input_class): New variable.
13572 (grub_term_output_class): Likewise.
13574 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13575 (grub_term_get_current_output): Likewise.
13576 (grub_term_input_class): New variable.
13577 (grub_term_output_class): Likewise.
13579 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13580 (terminal_mod_SOURCES): Likewise.
13581 (terminal_mod_CFLAGS): Likewise.
13582 (terminal_mod_LDFLAGS): Likewise.
13584 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13586 (kernel_img_SOURCES): Add list.c and handler.c.
13587 (kernel_img_HEADERS): Add list.h and handler.h.
13589 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13591 (kernel_mod_SOURCES): Add list.c and handler.c.
13592 (kernel_mod_HEADERS): Add list.h and handler.h.
13594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13596 (kernel_elf_SOURCES): Add list.c and handler.c.
13597 (kernel_elf_HEADERS): Add list.h and handler.h.
13599 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13601 (kernel_elf_SOURCES): Add list.c and handler.c.
13602 (kernel_elf_HEADERS): Add list.h and handler.h.
13604 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13606 (kernel_mod_SOURCES): Add list.c and handler.c.
13607 (kernel_mod_HEADERS): Add list.h and handler.h.
13609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13611 (kernel_elf_SOURCES): Add list.c and handler.c.
13612 (kernel_elf_HEADERS): Add list.h and handler.h.
13614 2009-02-27 Robert Millan <rmh@aybabtu.com>
13616 Factorize elf32 / elf64 code in Multiboot loader. This will
13617 prevent it from getting out of sync again.
13619 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13620 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13621 grub_multiboot_load_elf64): Move from here ...
13622 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13623 grub_multiboot_load_elf): ... to here (new file).
13625 2009-02-27 Robert Millan <rmh@aybabtu.com>
13627 * util/grub.d/10_linux.in: Rename "single-user mode" to
13630 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13632 Don't leak in SCSI code.
13633 * disk/scsi.c (grub_scsi_close): free `scsi'.
13635 2009-02-27 Robert Millan <rmh@aybabtu.com>
13637 * loader/i386/pc/multiboot.c: Move from here ...
13638 * loader/i386/multiboot.c: ... to here. Update all users.
13640 2009-02-27 Robert Millan <rmh@aybabtu.com>
13642 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13643 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13645 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13647 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13650 2009-02-27 Robert Millan <rmh@aybabtu.com>
13652 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13653 `0x' qualifier as 0 when base is specified as parameter).
13655 2009-02-24 Bean <bean123ch@gmail.com>
13657 * configure.ac: Check for -mcmodel=large in x86_64 target.
13659 * include/grub/efi/api.h (efi_call_10): New macro.
13660 (efi_wrap_10): New function.
13662 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13663 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13664 (GRUB_PE32_REL_BASED_LOW): Likewise.
13665 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13666 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13667 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13668 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13669 (GRUB_PE32_REL_BASED_REL): Likewise.
13670 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13671 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13672 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13674 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13677 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13678 (efi_wrap_10): New function.
13680 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13682 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13683 MB/MBP model (NV chipset).
13684 (devdata_devs): Add devpath_5 to the list.
13686 * load/i386/efi/linux.c (video_base): Remove variable.
13687 (RGB_MASK): New macro.
13688 (RGB_MAGIC): Likewise.
13689 (LINE_MIN): Likewise.
13690 (LINE_MAX): Likewise.
13691 (FBTEST_STEP): Likewise.
13692 (FBTEST_COUNT): Likewise.
13693 (fb_list): New variable.
13694 (grub_find_video_card): Remove function.
13695 (find_framebuf): New function.
13696 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13699 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13700 problem for x86_64.
13702 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13704 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13706 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13709 2009-02-22 Robert Millan <rmh@aybabtu.com>
13711 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13712 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13713 in our relocation, instead of using it directly from heap. Also
13714 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13716 2009-02-21 Robert Millan <rmh@aybabtu.com>
13718 Implement USB keyboard support (based on patch by Marco Gerards)
13720 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13721 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13722 (usb_keyboard_mod_LDFLAGS): New variables.
13724 * term/usb_keyboard.c: New file.
13726 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13728 Corrected wrong declaration
13730 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13732 2009-02-14 Christian Franke <franke@computer.org>
13734 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13735 (grub_lspci_iter): Print class code and programming interface byte.
13737 2009-02-14 Christian Franke <franke@computer.org>
13739 * gendistlist.sh: Ignore `.svn' directories.
13741 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13743 * fs/fat.c: Add 2009 to Copyright line.
13745 2009-02-14 Christian Franke <franke@computer.org>
13747 * commands/hdparm.c: New file. Provides `hdparm' command
13748 which sends ATA commands via grub_disk_ata_pass_through ().
13750 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13752 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13753 and <grub/cpu/io.h> to include/grub/ata.h.
13754 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13755 (GRUB_CDROM_SECTOR_SIZE): Remove.
13756 (GRUB_ATA_*): Move to include/grub/ata.h.
13757 (GRUB_ATAPI_*): Likewise.
13758 (enum grub_ata_commands): Likewise.
13759 (enum grub_ata_timeout_milliseconds): Likewise.
13760 (struct grub_ata_device): Likewise.
13761 (grub_ata_regset): Likewise.
13762 (grub_ata_regget): Likewise.
13763 (grub_ata_regset2): Likewise.
13764 (grub_ata_regget2): Likewise.
13765 (grub_ata_check_ready): Likewise.
13766 (grub_ata_wait_not_busy): Remove static, exported in
13767 include/grub/ata.h.
13768 (grub_ata_wait_drq): Likewise.
13769 (grub_ata_pio_read): Likewise.
13771 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13772 function for hdparm.mod.
13774 * include/grub/ata.h: New file, contains declarations from
13776 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13778 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13779 (grub_disk_ata_pass_through): New exported variable.
13781 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13783 2009-02-13 Colin D Bennett <colin@gibibit.com>
13785 Support multiple fallback entries, and provide an API to support
13786 executing default+fallback menu entries. Renamed the `terminal' menu
13789 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13790 variable declaration.
13791 (grub_menu_execute_callback): New structure declaration.
13792 (grub_menu_execute_callback_t): New typedef.
13793 (grub_menu_execute_with_fallback): New function declaration.
13794 (grub_menu_get_entry): Likewise.
13795 (grub_menu_get_timeout): Likewise.
13796 (grub_menu_set_timeout): Likewise.
13798 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13800 * normal/menu.c (grub_wait_after_message): Moved to
13801 `normal/menu_text.c'.
13802 (draw_border): Likewise.
13803 (print_message): Likewise.
13804 (print_entry): Likewise.
13805 (print_entries): Likewise.
13806 (grub_menu_init_page): Likewise.
13807 (get_entry_number): Likewise.
13808 (print_timeout): Likewise.
13809 (run_menu): Likewise.
13810 (grub_menu_execute_entry): Likewise.
13811 (show_text_menu): Likewise.
13812 (get_and_remove_first_entry_number): New function.
13813 (grub_menu_execute_with_fallback): Likewise.
13814 (get_entry): Renamed to ...
13815 (grub_menu_get_entry): .. this and made it global.
13816 (get_timeout): Renamed to ...
13817 (grub_menu_get_timeout): ... this and made it global.
13818 (set_timeout): Renamed to ...
13819 (grub_menu_set_timeout): ... this and made it global.
13820 (grub_normal_terminal_menu_viewer): Renamed to ...
13821 (grub_normal_text_menu_viewer): ... this.
13823 * normal/menu_text.c: New file. Extracted text-menu-specific code
13824 from normal/menu.c.
13826 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13827 (normal_mod_SOURCES): Likewise.
13829 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13830 (normal_mod_SOURCES): Likewise.
13832 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13833 (normal_mod_SOURCES): Likewise.
13835 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13836 (normal_mod_SOURCES): Likewise.
13838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13839 (normal_mod_SOURCES): Likewise.
13841 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13842 (normal_mod_SOURCES): Likewise.
13844 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13845 (normal_mod_SOURCES): Likewise.
13847 2009-02-11 Robert Millan <rmh@aybabtu.com>
13849 * util/grub.d/00_header.in: Update old reference to `font' command.
13851 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13853 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13855 Based on patch from Javier Martín.
13857 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13859 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13860 to avoid false positives with FAT.
13861 (grub_fstest_SOURCES): Likewise.
13862 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13863 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13865 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13867 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13869 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13871 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13872 bpb.version_specific.fat12_or_fat16.fstype and
13873 bpb.version_specific.fat32.fstype.
13875 2009-02-08 Robert Millan <rmh@aybabtu.com>
13877 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13879 2009-02-08 Robert Millan <rmh@aybabtu.com>
13881 * Makefile.in (host_os, host_cpu): New variables.
13882 (target_os): Remove. Update all users.
13884 2009-02-08 Marco Gerards <marco@gnu.org>
13886 * Makefile.in (enable_grub_emu_usb): New variable.
13887 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13888 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13889 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13890 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13891 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13892 `usbtest.mod' and `usbms.mod'.
13893 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13894 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13895 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13896 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13897 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13900 * disk/usbms.c: New file.
13902 * include/grub/usb.h: Likewise.
13904 * include/grub/usbtrans.h: Likewise.
13906 * include/grub/usbdesc.h: Likewise.
13908 * bus/usb/usbtrans.c: Likewise.
13910 * bus/usb/ohci.c: Likewise.
13912 * bus/usb/uhci.c: Likewise.
13914 * bus/usb/usbhub.c: Likewise.
13916 * bus/usb/usb.c: Likewise.
13918 * commands/usbtest.c: Likewise.
13920 * util/usb.c: Likewise.
13922 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13924 * configure.ac: Test for libusb presence.
13926 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13928 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13930 * kern/mm.c: Add more comments.
13932 2009-02-08 Robert Millan <rmh@aybabtu.com>
13934 Patch from Javier Martín.
13935 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13936 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13938 2009-02-08 Robert Millan <rmh@aybabtu.com>
13940 * fs/cpio.c: Split tar functionality to ...
13941 * fs/tar.c: ... here (new file). Update all users.
13943 2009-02-07 Robert Millan <rmh@aybabtu.com>
13945 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13946 backward-incompatible features.
13948 Based on patch from Javier Martín, with some adjustments.
13950 2009-02-07 Michael Scherer <misc@mandriva.org>
13952 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13954 2009-02-07 Robert Millan <rmh@aybabtu.com>
13956 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13957 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13958 after the RAID stuff.
13960 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13962 Fixes problem when running vbetest command as reported by
13963 Vladimir Serbinenko <phcoder@gmail.com>.
13965 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13967 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13969 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13970 /dev/md/NpN style mdraid devices.
13972 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13974 * util/unifont2pff.rb: Remove.
13976 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13978 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13981 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13983 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13984 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13985 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13986 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13988 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13989 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13991 2009-02-02 Christian Franke <franke@computer.org>
13993 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13995 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13997 * INSTALL: Note that we now require at least autoconf 2.59 and
13998 that LZO is optional.
14000 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14002 Base on patch on bug #24154 created by Tomas Tintera
14003 <trosos@seznam.cz>.
14005 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14007 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14009 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14010 <bero@arklinux.org>.
14012 * normal/parser.y (script_init): Add missing semicolon.
14014 2009-01-31 Colin D Bennett <colin@gibibit.com>
14016 * normal/main.c: Add include to grub/menu_viewer.h.
14017 (free_menu_entry_classes): Added.
14018 (grub_normal_menu_addentry): Added class property handling.
14019 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14020 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14022 * normal/menu_viewer.c: New file.
14024 * normal/menu.c (run_menu_entry): Renamed to ...
14025 (grub_menu_execute_entry): ... this and made it as global.
14026 (grub_menu_run): Renamed to ...
14027 (show_text_menu): ... this and made it local.
14028 (show_text_menu): Adapt to new function names.
14029 (grub_normal_terminal_menu_viewer): New global variable.
14031 * include/grub/menu.h: New file.
14033 * include/grub/menu_viewer.h: New file.
14035 * include/grub/normal.h: Added include to grub/menu.h.
14036 (grub_menu_entry): Moved to include/grub/menu.h.
14037 (grub_menu_entry_t): Likewise.
14038 (grub_menu): Likewise.
14039 (grub_menu_t): Likewise.
14040 (grub_normal_terminal_menu_viewer): Added.
14041 (grub_menu_execute_entry): Likewise.
14042 (grub_menu_run): Removed.
14044 * DISTLIST: Added include/grub/menu.h.
14045 Added include/grub/menu_viewer.h.
14046 Added normal/menu_viewer.c.
14048 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14050 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14051 arglist for menutitle arguments.
14053 * normal/main.c (grub_normal_menu_addentry): Likewise.
14055 * normal/parser.y (menuentry): Likewise.
14057 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14059 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14060 (grub_script_create_cmdmenu): Likewise.
14062 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14064 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14067 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14069 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14071 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14073 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14075 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14077 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14079 2009-01-30 Christian Franke <franke@computer.org>
14081 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14082 in option help text.
14084 2009-01-27 Pavel Roskin <proski@gnu.org>
14086 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14088 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14090 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14092 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14094 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14095 unregister function.
14097 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14099 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14101 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14103 * util/grub-mkfont.c (usage): Fix typo.
14105 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14107 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14109 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14111 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14113 * kern/misc.c (grub_strcasecmp): New function.
14114 (grub_strcasecmp): Use grub_size_t instead of int for length.
14116 * include/grub/misc.h: Update function prototypes.
14118 2009-01-26 Robert Millan <rmh@aybabtu.com>
14120 * configure.ac: Fix cross-compilation check.
14122 2009-01-22 Christian Franke <franke@computer.org>
14124 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14125 (precision) digit string. Allow `.format2' without `format1' (width).
14126 Limit input chars for `%s' output to `format2' if specified. This is
14127 compatible with standard printf ().
14129 2009-01-22 Christian Franke <franke@computer.org>
14131 * disk/ata.c (grub_ata_wait_status): Replace by ...
14132 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14133 other status bits may be invalid while BSY is asserted.
14134 (grub_ata_check_ready): New function.
14135 (grub_ata_cmd): Removed.
14136 (grub_ata_wait_drq): New function.
14137 (grub_ata_strncpy): Remove inline.
14138 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14139 and error check now done by grub_ata_wait_drq ().
14140 (grub_ata_pio_write): Likewise.
14141 (grub_atapi_identify): Set DEV before check for !BSY. Use
14142 grub_ata_wait_drq () to wait for data.
14143 (grub_ata_device_initialize): Add status register check to
14144 detect missing SATA slave devices. Add debug messages.
14145 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14146 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14147 transfer loop by grub_ata_pio_write ().
14148 (grub_ata_identify): Set DEV before check for !BSY. Use
14149 grub_ata_wait_drq () to wait for data.
14150 (grub_ata_setaddress): Set DEV before check for !BSY.
14151 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14152 read/write in one loop. Fix invalid command on write. Fix incomplete
14153 command on (size % batch) == 0. Add missing error check after write of
14154 last block. Add debug messages.
14155 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14157 2009-01-19 Christian Franke <franke@computer.org>
14159 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14160 (GRUB_ATAPI_IREASON_*): Likewise.
14161 (grub_ata_pio_write): Fix timeout error return.
14162 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14163 (grub_atapi_wait_drq): New function.
14164 (grub_atapi_packet): New parameter `size'.
14165 Use grub_atapi_wait_drq () and direct write instead of
14166 grub_ata_pio_write ().
14167 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14168 reads the number of bytes requested by the device for each DRQ
14170 (grub_atapi_write): Remove old implementation, return not
14171 implemented instead.
14173 2009-01-19 Christian Franke <franke@computer.org>
14175 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14176 of 512 to calculate data size.
14177 (grub_scsi_read12): Likewise.
14178 (grub_scsi_write10): Likewise.
14179 (grub_scsi_write12): Likewise.
14180 (grub_scsi_read): Adjust size according to blocksize.
14181 Add checks for invalid blocksize and unaligned transfer.
14183 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14185 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14187 * term/gfxterm.c (write_char): Fix background rendering for wide
14190 2009-01-19 Robert Millan <rmh@aybabtu.com>
14192 * config.guess: Update to latest version from config git.
14193 * config.sub: Likewise.
14195 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14197 * Makefile.in: Change font compilation to use new grub-mkfont instead
14200 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14201 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14202 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14203 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14204 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14205 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14206 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14207 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14208 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14210 2009-01-16 Christian Franke <franke@computer.org>
14212 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14213 (enum grub_ata_timeout_milliseconds): New enum.
14214 (grub_ata_wait_status): Add parameter milliseconds.
14215 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14216 recovery from timed-out commands.
14217 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14218 return grub_errno instead of REG_ERROR.
14219 (grub_ata_pio_write): Add parameter milliseconds.
14220 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14221 Pass milliseconds to grub_ata_wait_status () and
14222 grub_ata_pio_read ().
14223 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14224 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14225 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14226 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14227 It is not suitable for device detection, because DEV bit is ignored,
14228 the command may run too long, and not all devices set the signature
14230 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14231 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14232 Fix device selection, DEV bit must be set first to address the registers
14233 of the correct device.
14234 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14235 grub_ata_pio_read/write ().
14236 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14237 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14239 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14241 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14243 2009-01-13 Bean <bean123ch@gmail.com>
14245 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14247 2009-01-13 Bean <bean123ch@gmail.com>
14249 * Makefile.in: (enable_grub_mkfont): New variable.
14250 (freetype_cflags): Likewise.
14251 (freetype_libs): Likewise.
14253 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14254 (grub_mkfont_SOURCES): New variable.
14255 (grub_mkfont_CFLAGS): Likewise.
14256 (grub_mkfont_LDFLAGS): Likewise.
14258 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14259 library if `--enable-grub-mkfont' is requested.
14260 (enable_grub_mkfont): New variable.
14261 (freetype_cflags): Likewise.
14262 (freetype_libs): Likewise.
14264 * util/grub-mkfont.c: New file.
14266 2009-01-12 Christian Franke <franke@computer.org>
14268 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14269 mode check. Fix setting of compat_use[].
14271 2009-01-10 Robert Millan <rmh@aybabtu.com>
14273 Update a few copyright years which we forgot to do in 2008 (only for
14274 files whose changes made in 2008 were copyright-significant)
14276 * Makefile.in: Add 2008 to Copyright line.
14277 * disk/ieee1275/ofdisk.c: Likewise.
14278 * disk/efi/efidisk.c: Likewise.
14279 * kern/dl.c: Likewise.
14280 * kern/sparc64/ieee1275/init.c: Likewise.
14281 * kern/mm.c: Likewise.
14282 * kern/efi/mm.c: Likewise.
14283 * boot/i386/pc/boot.S: Likewise.
14284 * genfslist.sh: Likewise.
14285 * fs/iso9660.c: Likewise.
14286 * fs/hfs.c: Likewise.
14287 * fs/jfs.c: Likewise.
14288 * fs/minix.c: Likewise.
14289 * fs/ufs.c: Likewise.
14290 * gensymlist.sh.in: Likewise.
14291 * genkernsyms.sh.in: Likewise.
14292 * include/grub/misc.h: Likewise.
14293 * include/grub/types.h: Likewise.
14294 * include/grub/symbol.h: Likewise.
14295 * include/grub/elf.h: Likewise.
14296 * include/grub/kernel.h: Likewise.
14297 * include/grub/disk.h: Likewise.
14298 * include/grub/dl.h: Likewise.
14299 * include/grub/i386/linux.h: Likewise.
14300 * include/grub/i386/pc/biosdisk.h: Likewise.
14301 * include/grub/efi/api.h: Likewise.
14302 * include/grub/efi/pe32.h: Likewise.
14303 * include/grub/util/misc.h: Likewise.
14304 * normal/execute.c: Likewise.
14305 * normal/arg.c: Likewise.
14306 * normal/completion.c: Likewise.
14307 * normal/lexer.c: Likewise.
14308 * normal/parser.y: Likewise.
14309 * normal/misc.c: Likewise.
14310 * commands/i386/pc/vbeinfo.c: Likewise.
14311 * commands/hexdump.c: Likewise.
14312 * commands/terminal.c: Likewise.
14313 * commands/ls.c: Likewise.
14314 * commands/help.c: Likewise.
14315 * partmap/pc.c: Likewise.
14316 * loader/efi/chainloader.c: Likewise.
14317 * loader/multiboot_loader.c: Likewise.
14318 * loader/i386/pc/multiboot2.c: Likewise.
14319 * term/efi/console.c: Likewise.
14320 * term/i386/pc/serial.c: Likewise.
14321 * util/lvm.c: Likewise.
14322 * util/console.c: Likewise.
14323 * util/i386/efi/grub-mkimage.c: Likewise.
14324 * util/raid.c: Likewise.
14326 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14328 * commands/videotest.c: Removed include to grub/machine/memory.h.
14330 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14331 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14332 (video_mod_SOURCES): Removed.
14333 (video_mod_CFLAGS): Likewise.
14334 (video_mod_LDFLAGS): Likewise.
14335 (gfxterm_mod_SOURCES): Likewise.
14336 (gfxterm_mod_CFLAGS): Likewise.
14337 (gfxterm_mod_LDFLAGS): Likewise.
14338 (videotest_mod_SOURCES): Likewise.
14339 (videotest_mod_CFLAGS): Likewise.
14340 (videotest_mod_LDFLAGS): Likewise.
14341 (bitmap_mod_SOURCES): Likewise.
14342 (bitmap_mod_CFLAGS): Likewise.
14343 (bitmap_mod_LDFLAGS): Likewise.
14344 (tga_mod_SOURCES): Likewise.
14345 (tga_mod_CFLAGS): Likewise.
14346 (tga_mod_LDFLAGS): Likewise.
14347 (jpeg_mod_SOURCES): Likewise.
14348 (jpeg_mod_CFLAGS): Likewise.
14349 (jpeg_mod_LDFLAGS): Likewise.
14350 (png_mod_SOURCES): Likewise.
14351 (png_mod_CFLAGS): Likewise.
14352 (png_mod_LDFLAGS): Likewise.
14354 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14355 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14356 (video_mod_SOURCES): Added.
14357 (video_mod_CFLAGS): Likewise.
14358 (video_mod_LDFLAGS): Likewise.
14359 (videotest_mod_SOURCES): Likewise.
14360 (videotest_mod_CFLAGS): Likewise.
14361 (videotest_mod_LDFLAGS): Likewise.
14362 (bitmap_mod_SOURCES): Likewise.
14363 (bitmap_mod_CFLAGS): Likewise.
14364 (bitmap_mod_LDFLAGS): Likewise.
14365 (tga_mod_SOURCES): Likewise.
14366 (tga_mod_CFLAGS): Likewise.
14367 (tga_mod_LDFLAGS): Likewise.
14368 (jpeg_mod_SOURCES): Likewise.
14369 (jpeg_mod_CFLAGS): Likewise.
14370 (jpeg_mod_LDFLAGS): Likewise.
14371 (png_mod_SOURCES): Likewise.
14372 (png_mod_CFLAGS): Likewise.
14373 (png_mod_LDFLAGS): Likewise.
14374 (gfxterm_mod_SOURCES): Likewise.
14375 (gfxterm_mod_CFLAGS): Likewise.
14376 (gfxterm_mod_LDFLAGS): Likewise.
14378 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14379 grub/machine/console.h.
14381 2009-01-04 Jerone Young <jerone@gmail.com>
14383 Make on screen instructions clearer
14385 Based on patch created by Jidanni <jidanni@jidanni.org>
14387 * normal/menu.c: print clearer instructions on the screen
14389 2009-01-02 Colin D Bennett <colin@gibibit.com>
14393 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14394 build system and fixed gfxterm.c to work with different sized fonts.
14396 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14398 * configure: Re-generated.
14400 * DISTLIST: Removed font/manager.c.
14402 Added font/font_cmd.c.
14404 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14407 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14409 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14411 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14413 * normal/menu.c: Likewise.
14415 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14416 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14418 * include/grub/font.h: Replaced with new file.
14420 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14421 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14422 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14423 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14424 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14425 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14426 fg_red, fg_green, fg_blue, fg_alpha.
14427 (grub_video_adapter): Removed blit_glyph.
14428 (grub_video_blit_glyph): Removed.
14430 * font/manager.c: Removed file.
14432 * font/font.c: New file.
14434 * font/font_cmd.c: Likewise.
14436 * video/video.c (grub_video_blit_glyph): Removed.
14438 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14439 (grub_video_vbe_map_rgba): Likewise.
14440 (grub_video_vbe_unmap_color_int): Likewise.
14441 (grub_video_vbe_blit_glyph): Removed.
14442 (grub_video_vbe_adapter): Removed blit_glyph.
14444 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14445 (get_pixel): Likewise.
14446 (set_pixel): Likewise.
14448 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14450 * term/gfxterm.c: Adapted to new font engine.
14452 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14454 * term/i386/pc/vga.c: Likewise.
14456 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14458 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14460 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14462 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14464 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14466 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14468 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14470 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14472 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14474 * util/grub.d/00_header.in: Changed to use new loadfont command.
14476 * util/grub-mkconfig_lib.in: Changed font extension.
14478 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14480 * util/getroot.c (grub_util_get_grub_dev): Add support for
14481 /dev/md/dNNpNN style partitionable mdraid devices.
14483 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14485 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14486 at a time limit of the PXE TFTP API correctly.
14487 (grub_pxefs_close): Likewise.
14489 2008-11-29 Robert Millan <rmh@aybabtu.com>
14491 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14492 grub_ata_device_initialize() calls.
14494 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14496 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14498 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14500 2008-11-28 Robert Millan <rmh@aybabtu.com>
14502 Fix build on powerpc-ieee1275. Based on patch created by
14503 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14504 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14505 `kern/ieee1275/mmap.c'.
14506 * include/grub/powerpc/ieee1275/memory.h: New file.
14508 Provide grub-install on coreboot.
14509 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14510 (grub_install_SOURCES): New variable.
14511 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14512 usable on coreboot.
14514 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14516 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14517 to `grub_term_input_t'.
14518 (grub_term_get_current_output): Change return type to
14519 `grub_term_output_t'.
14521 2008-11-22 Robert Millan <rmh@aybabtu.com>
14523 Fix breakage on coreboot due to declaration mismatch.
14524 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14525 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14526 grub_vga_text_cls().
14528 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14529 comments. Avoid copying one more byte than necessary (just in case).
14531 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14532 to 0x200000 (avoids trouble with some OFW implementations, and matches
14533 with the one in Yaboot).
14534 Reported by Manoel Abranches
14536 2008-11-20 Robert Millan <rmh@aybabtu.com>
14538 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14539 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14541 * util/grub-mkconfig_lib.in (grub_warn): New function.
14542 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14543 warnings, to obtain consistent formatting.
14544 * util/grub.d/00_header.in: Likewise.
14545 * util/update-grub_lib.in: Likewise.
14547 * loader/i386/linux.c (allocate_pages): Fix a warning.
14548 Move comment text to `#error' stanza.
14550 Harmonize ieee1275's grub_available_iterate() with the generic
14551 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14552 build problem on i386-ieee1275):
14553 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14554 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14555 parameter `type'. Update all users of this function.
14556 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14557 `kern/ieee1275/mmap.c'.
14558 * kern/ieee1275/init.c
14559 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14561 (grub_machine_mmap_iterate): ... this.
14562 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14563 return type to `grub_err_t'. Update all implementations of this
14564 function prototype.
14565 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14568 Add `lsmmap' command (lists firmware-provided memory map):
14569 * commands/lsmmap.c: New file.
14570 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14571 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14573 * conf/powerpc-ieee1275.rmk: Likewise.
14574 * conf/i386-coreboot.rmk: Likewise.
14575 * conf/i386-ieee1275.rmk: Likewise.
14577 2008-11-19 Robert Millan <rmh@aybabtu.com>
14579 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14580 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14581 constraints to initrd allocation (based on code from
14582 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14583 for Linux to find it.
14585 2008-11-14 Robert Millan <rmh@aybabtu.com>
14587 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14588 order to cope with duplicate slashes.
14590 2008-11-14 Robert Millan <rmh@aybabtu.com>
14592 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14593 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14594 don't want to mess with lower memory, because it is used in the Linux
14597 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14598 an appropriate place in lower memory, between 0x10000 and 0x90000,
14599 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14600 is in our heap (probably as a result of it being corrupted during
14601 decompression). Add #error instance with comment to explain why this
14602 loader isn't currently usable on PC/BIOS.
14604 2008-11-14 Robert Millan <rmh@aybabtu.com>
14606 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14607 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14609 2008-11-12 Robert Millan <rmh@aybabtu.com>
14611 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14613 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14614 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14616 * include/grub/i386/pc/memory.h: ... to here.
14618 2008-11-12 Robert Millan <rmh@aybabtu.com>
14620 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14623 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14624 (grub_console_cur_color, grub_console_real_putchar)
14625 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14626 (grub_console_setcolorstate, grub_console_setcolor)
14627 (grub_console_getcolor): Move from here ...
14628 * include/grub/i386/vga_common.h: ... to here (new file).
14630 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14631 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14632 `<grub/i386/io.h>'.
14633 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14634 `<grub/i386/vga_common.h>'.
14636 2008-11-12 Robert Millan <rmh@aybabtu.com>
14638 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14639 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14640 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14642 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14643 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14645 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14646 grub_console_init() with call to grub_vga_text_init().
14647 (grub_machine_fini): Replace call to
14648 grub_console_fini() with call to grub_vga_text_fini() and
14649 grub_at_keyboard_fini().
14651 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14652 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14653 (grub_console_setcolorstate, grub_console_setcolor)
14654 (grub_console_getcolor): New function prototypes.
14656 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14657 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14658 (grub_vga_text_setcursor): Static-ize.
14659 (grub_vga_text_term): New structure.
14660 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14662 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14663 (grub_console_cur_color, grub_console_standard_color)
14664 (grub_console_normal_color, grub_console_highlight_color)
14665 (map_char, grub_console_putchar, grub_console_getcharwidth)
14666 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14667 (grub_console_getcolor): Move from here ...
14668 * term/i386/vga_common.c: ... to here (same function names).
14670 2008-11-12 Robert Millan <rmh@aybabtu.com>
14672 Use newly-added Multiboot support in coreboot.
14674 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14675 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14677 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14678 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14679 (codestart): Store the MBI in `startup_multiboot_info' when we're
14680 being loaded using Multiboot.
14682 * kern/i386/coreboot/init.c (grub_machine_init): Move
14683 grub_at_keyboard_init() call to beginning of function (useful for
14684 debugging). Call grub_machine_mmap_init() before attempting to use
14685 grub_machine_mmap_iterate().
14686 (grub_lower_mem, grub_upper_mem): Move from here ...
14687 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14690 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14691 function prototype.
14693 2008-11-12 Robert Millan <rmh@aybabtu.com>
14695 Fix a regression introduced by the at_keyboard.mod split. Because
14696 some terminals are default on some platforms and non-default on
14697 others, the first terminal being registered determines which is
14698 going to be default.
14700 * kern/term.c (grub_term_register_input): If this is the first
14701 terminal being registered, set it as the current one.
14702 (grub_term_register_output): Likewise.
14704 * term/efi/console.c (grub_console_init): Do not call
14705 grub_term_set_current_output() or grub_term_set_current_input().
14706 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14707 * term/i386/pc/console.c (grub_console_init): Likewise.
14708 (grub_console_fini): Do not call grub_term_set_current_input()
14709 (but leave grub_term_set_current_output() to restore text mode).
14711 2008-11-10 Robert Millan <rmh@aybabtu.com>
14713 * util/grub.d/00_header.in: Add backward compatibility check for
14714 versions of terminal.mod that don't understand `terminal_input' or
14717 2008-11-09 Robert Millan <rmh@aybabtu.com>
14719 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14720 `terminal_input' / `terminal_output', not `terminal'.
14722 2008-11-08 Robert Millan <rmh@aybabtu.com>
14724 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14725 (DISTCLEANFILES): Add `build_env.mk'.
14727 2008-11-08 Robert Millan <rmh@aybabtu.com>
14729 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14730 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14731 members. Update all users.
14732 * util/console.c (grub_ncurses_term): Split in ...
14733 (grub_ncurses_term_input): ... this, and ...
14734 (grub_ncurses_term_output): ... this. Update all users.
14735 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14737 2008-11-08 Robert Millan <rmh@aybabtu.com>
14739 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14740 (PKGDATA): Add $(pkgdata_SRCDIR).
14741 (pkglib_BUILDDIR): New variable.
14742 (pkgdata_SRCDIR): New variable.
14743 (build_env.mk): New target.
14744 (include_DATA): New variable.
14745 (install-local): Install $(include_DATA) files in $(includedir).
14747 2008-11-07 Pavel Roskin <proski@gnu.org>
14749 * gendistlist.sh: Use C locale for sorting to ensure consistent
14750 output on all systems.
14752 * util/grub.d/00_header.in: Remove incorrect space before
14755 2008-11-07 Robert Millan <rmh@aybabtu.com>
14757 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14759 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14760 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14761 (based on find_multi_boot1_header).
14762 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14763 using find_multi_boot2_header(), and abort if neither Multiboot or
14764 Multiboot headers were found.
14766 2008-11-07 Robert Millan <rmh@aybabtu.com>
14768 Modularize at_keyboard.mod:
14770 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14771 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14772 (at_keyboard_mod_LDFLAGS): New variables.
14774 Actual terminal split:
14776 * include/grub/term.h (struct grub_term): Split in ...
14777 (struct grub_term_input): ... this, and ...
14778 (struct grub_term_output): ... this. Update all users.
14779 (grub_term_set_current): Split in ...
14780 (grub_term_set_current_input): ... this, and ...
14781 (grub_term_set_current_output): ... this.
14782 (grub_term_get_current): Split in ...
14783 (grub_term_get_current_input): ... this, and ...
14784 (grub_term_get_current_output): ... this.
14785 (grub_term_register): Split in ...
14786 (grub_term_register_input): ... this, and ...
14787 (grub_term_register_output): ... this.
14788 (grub_term_unregister): Split in ...
14789 (grub_term_unregister_input): ... this, and ...
14790 (grub_term_unregister_output): ... this.
14791 (grub_term_iterate): Split in ...
14792 (grub_term_iterate_input): ... this, and ...
14793 (grub_term_iterate_output): ... this.
14795 * kern/term.c (grub_term_list): Split in ...
14796 (grub_term_list_input): ... this, and ...
14797 (grub_term_list_output): ... this. Update all users.
14798 (grub_cur_term): Split in ...
14799 (grub_cur_term_input): ... this, and ...
14800 (grub_cur_term_output): ... this. Update all users.
14801 (grub_term_set_current): Split in ...
14802 (grub_term_set_current_input): ... this, and ...
14803 (grub_term_set_current_output): ... this.
14804 (grub_term_get_current): Split in ...
14805 (grub_term_get_current_input): ... this, and ...
14806 (grub_term_get_current_output): ... this.
14807 (grub_term_register): Split in ...
14808 (grub_term_register_input): ... this, and ...
14809 (grub_term_register_output): ... this.
14810 (grub_term_unregister): Split in ...
14811 (grub_term_unregister_input): ... this, and ...
14812 (grub_term_unregister_output): ... this.
14813 (grub_term_iterate): Split in ...
14814 (grub_term_iterate_input): ... this, and ...
14815 (grub_term_iterate_output): ... this.
14817 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14818 a check for input and one for output (and only attempt to get keys
14819 from user when input works).
14821 * util/grub-probe.c (grub_term_get_current): Split in ...
14822 (grub_term_get_current_input): ... this, and ...
14823 (grub_term_get_current_output): ... this.
14824 * util/grub-fstest.c: Likewise.
14825 * util/i386/pc/grub-setup.c: Likewise.
14826 * util/grub-editenv.c: Likewise.
14828 Portability adjustments:
14830 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14831 `term/i386/pc/at_keyboard.c'.
14832 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14833 grub_keyboard_controller_init() (now handled by terminal .init).
14834 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14835 grub_at_keyboard_init().
14836 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14837 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14838 at_keyboard.mod via input terminal interface).
14839 * include/grub/i386/coreboot/console.h: Convert into a stub for
14840 `<grub/i386/pc/console.h>'.
14842 Migrate full terminals to new API:
14844 * term/efi/console.c (grub_console_term): Split into ...
14845 (grub_console_term_input): ... this, and ...
14846 (grub_console_term_output): ... this. Update all users.
14847 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14848 (grub_ofconsole_init): Split into ...
14849 (grub_ofconsole_init_input): ... this, and ...
14850 (grub_ofconsole_init_output): ... this.
14851 (grub_ofconsole_term): Split into ...
14852 (grub_ofconsole_term_input): ... this, and ...
14853 (grub_ofconsole_term_output): ... this. Update all users.
14854 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14855 (grub_serial_term_input): ... this, and ...
14856 (grub_serial_term_output): ... this. Update all users.
14857 * term/i386/pc/console.c (grub_console_term): Split into ...
14858 (grub_console_term_input): ... this, and ...
14859 (grub_console_term_output): ... this. Update all users.
14860 (grub_console_term_input): Only enable it on PC/BIOS platform.
14861 (grub_console_init): Remove grub_keyboard_controller_init() call.
14863 Migrate input terminals to new API:
14865 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14866 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14867 i386-specific anyway).
14868 (grub_console_checkkey): Rename to ...
14869 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14871 (grub_keyboard_controller_orig): New variable.
14872 (grub_console_getkey): Rename to ...
14873 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14875 (grub_keyboard_controller_init): Static-ize. Save original
14876 controller value so that it can be restored ...
14877 (grub_keyboard_controller_fini): ... here (new function).
14878 (grub_at_keyboard_term): New structure.
14879 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14882 Migrate output terminals to new API:
14884 * term/i386/pc/vga.c (grub_vga_term): Change type to
14885 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14886 members. Update all users.
14887 * term/gfxterm.c (grub_video_term): Change type to
14888 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14889 members. Update all users.
14890 * include/grub/i386/pc/console.h (grub_console_checkkey)
14891 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14894 Migrate `terminal' command and userland tools to new API:
14896 * commands/terminal.c (grub_cmd_terminal): Split into ...
14897 (grub_cmd_terminal_input): ... this, and ...
14898 (grub_cmd_terminal_output): ... this.
14899 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14900 `terminal_input' and `terminal_output'.
14901 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14902 `terminal_input' / `terminal_output' API.
14903 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14904 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14905 provided ${GRUB_TERMINAL}, convert it).
14907 2008-11-04 Robert Millan <rmh@aybabtu.com>
14909 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14911 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14913 2008-11-03 Bean <bean123ch@gmail.com>
14915 * kern/elf.c (grub_elf32_load): Revert to previous code.
14916 (grub_elf64_load): Likewise.
14918 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14920 2008-11-01 Robert Millan <rmh@aybabtu.com>
14922 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14923 (TARGET_CPPFLAGS): Likewise.
14924 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14926 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14928 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14930 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14932 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14933 addition of objects until the code is not going to be able to fail.
14935 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14937 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14938 (add a missing NULL check, and correct them by moving the pointer
14939 operations after the actual check).
14941 2008-10-29 Robert Millan <rmh@aybabtu.com>
14943 * util/i386/pc/grub-install.in: Handle empty string as output from
14944 make_system_path_relative_to_its_root().
14946 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14948 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14949 circular metadata worst case scenario. If the metadata is circular
14950 then copy the wrap in place.
14951 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14952 project lib/format_text/layout.h
14953 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14955 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14957 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14959 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14961 * util/update-grub_lib.in: Mention filename in warning message.
14963 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14965 * NEWS: Update for rename of update-grub to grub-mkconfig.
14967 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14969 * util/update-grub_lib.in: Copy to ...
14970 * util/grub-mkconfig_lib.in: ... this. Update all users.
14971 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14972 * util/update-grub.in: Rename to ...
14973 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14974 option. Add `--output' option to allow users to specify the generated
14975 configuration file. Default to stdout.
14976 (update_grub_dir): Rename to ...
14977 (grub_mkconfig_dir): ... this.
14978 (grub_cfg): Default to an empty string.
14979 * conf/common.rmk (update-grub): Rename to ...
14980 (grub-mkconfig): ... this.
14981 (update-grub_lib): Copy to ...
14982 (grub-mkconfig_lib): ... this.
14983 (update-grub_SCRIPTS): Copy to ...
14984 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14985 (update-grub_DATA): Rename to ...
14986 (grub-mkconfig_DATA): ... this.
14988 2008-09-28 Robert Millan <rmh@aybabtu.com>
14990 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14991 to `modified'. Add the real `created' field.
14992 (grub_iso9660_uuid): Use `modified' rather than `created' for
14993 constructing the UUID.
14995 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14997 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14998 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15000 2008-09-28 Bean <bean123ch@gmail.com>
15002 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15003 Thanks to Christian Franke for finding this bug.
15005 2008-09-25 Robert Millan <rmh@aybabtu.com>
15007 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15008 instances of grub_util_get_disk_name() (see previous commit).
15010 2008-09-25 Robert Millan <rmh@aybabtu.com>
15012 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15013 `util/i386/get_disk_name.c'.
15014 * conf/i386-efi.rmk: Likewise.
15015 * conf/x86_64-efi.rmk: Likewise.
15016 * conf/i386-coreboot.rmk: Likewise.
15017 * conf/i386-ieee1275.rmk: Likewise.
15018 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15019 `util/ieee1275/get_disk_name.c'.
15020 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15021 * util/ieee1275/get_disk_name.c: Remove file.
15022 * util/i386/get_disk_name.c: Remove file.
15023 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15024 "hd%d" for device.map entries, rather than using
15025 grub_util_get_disk_name().
15027 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15029 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15031 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15033 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15035 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15037 (GRUB_TERM_PPAGE): Changed to 0x4900.
15039 2008-09-24 Robert Millan <rmh@aybabtu.com>
15041 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15042 macros (they were i386-pc specific).
15043 * include/grub/sparc64/ieee1275/console.h: Likewise.
15044 * include/grub/efi/console.h: Likewise.
15046 2008-09-22 Bean <bean123ch@gmail.com>
15048 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15049 resident and in attribute list.
15051 * include/grub/ntfs.h (BMP_LEN): Removed.
15053 2008-09-22 Bean <bean123ch@gmail.com>
15055 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15056 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15058 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15059 error occurs, as grub_disk_open will call grub_disk_close, which will
15060 call p->close (scsi).
15062 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15064 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15065 (AC_PREREQ): Bumped to 2.59.
15066 (AC_TRY_COMPILE): Replace obsolete macro with ...
15067 (AC_COMPILE_IFELSE): ... this.
15068 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15069 (AC_LINK_IFELSE): ... this.
15071 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15073 * autogen.sh: Add a call to `gendistlist.sh'.
15075 2008-09-19 Christian Franke <franke@computer.org>
15077 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15078 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15079 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15080 Export __enable_execute_stack() to modules.
15081 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15084 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15086 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15089 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15091 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15092 #include <grub/util/hostdisk.h>.
15094 2008-09-08 Robert Millan <rmh@aybabtu.com>
15096 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15097 segments when their filesz is zero (grub_file_read() interprets
15098 zero-size as "read until EOF", which results in memory corruption).
15099 Use `lowest_segment' rather than 0 for calculating the current
15100 segment load address.
15102 2008-09-08 Robert Millan <rmh@aybabtu.com>
15104 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15105 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15106 clobbered useful information.
15108 2008-09-08 Robert Millan <rmh@aybabtu.com>
15110 * include/grub/util/biosdisk.h: Move to ...
15111 * include/grub/util/hostdisk.h: ... here. Update all users.
15112 * util/biosdisk.c: Move to ...
15113 * util/hostdisk.c: ... here. Update all users.
15115 2008-09-07 Robert Millan <rmh@aybabtu.com>
15117 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15119 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15120 and length can be stored directly in the `mbi->mmap_addr' and
15121 `mbi->mmap_length' struct fields.
15123 2008-09-07 Robert Millan <rmh@aybabtu.com>
15125 * conf/i386.rmk: New file. Provides declaration for building
15127 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15128 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15130 Include `conf/i386.mk'.
15131 * conf/i386-efi.rmk: Likewise.
15132 * conf/x86_64-efi.rmk: Likewise.
15133 * conf/i386-coreboot.rmk: Likewise.
15134 * conf/i386-ieee1275.rmk: Likewise.
15136 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15138 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15139 Adds optimization support for BGR based modes.
15141 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15142 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15143 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15145 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15146 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15147 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15148 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15149 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15150 (grub_video_i386_vbeblit_index_index): Likewise.
15151 (grub_video_i386_vbeblit_replace_directN): Added.
15152 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15153 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15154 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15155 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15156 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15157 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15158 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15159 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15160 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15161 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15162 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15163 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15164 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15166 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15167 (grub_video_i386_vbefill_R8G8B8): Likewise.
15168 (grub_video_i386_vbefill_index): Likewise.
15169 (grub_video_i386_vbefill_direct32): Added.
15170 (grub_video_i386_vbefill_direct24): Likewise.
15171 (grub_video_i386_vbefill_direct16): Likewise.
15172 (grub_video_i386_vbefill_direct8): Likewise.
15174 * include/grub/video.h (grub_video_blit_format): Removed
15175 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15176 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15177 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15178 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15179 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15181 * video/video.c (grub_video_get_blit_format): Updated to use new
15182 blit formats. Added handling for 16 bit color modes.
15184 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15186 (common_blitter): Updated to use new blitters.
15188 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15190 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15191 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15192 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15193 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15194 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15195 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15196 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15197 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15198 (grub_video_i386_vbeblit_index_index): Likewise.
15199 (grub_video_i386_vbeblit_replace_directN): Added.
15200 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15201 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15202 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15203 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15204 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15205 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15206 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15207 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15208 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15209 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15210 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15211 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15212 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15214 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15215 (grub_video_i386_vbefill_R8G8B8): Likewise.
15216 (grub_video_i386_vbefill_index): Likewise.
15217 (grub_video_i386_vbefill_direct32): Added.
15218 (grub_video_i386_vbefill_direct24): Likewise.
15219 (grub_video_i386_vbefill_direct16): Likewise.
15220 (grub_video_i386_vbefill_direct8): Likewise.
15222 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15225 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15228 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15231 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15234 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15236 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15239 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15241 * fs/iso9660.c (grub_iso9660_date): New structure.
15242 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15243 (grub_iso9660_uuid): New function.
15245 2008-09-05 Bean <bean123ch@gmail.com>
15247 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15249 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15250 insensitive bit for names in Win32 and Win32 & DOS namespace.
15252 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15254 * include/grub/types.h (LONG_MAX): Likewise.
15256 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15258 * util/getroot.c: Include <config.h>.
15259 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15260 add support for /dev/md/N devices and handle LVM double dash escaping.
15262 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15264 * config.guess: Update to latest version from config git.
15265 * config.sub: Likewise.
15267 2008-09-03 Robert Millan <rmh@aybabtu.com>
15269 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15270 `disk->total_sectors'.
15272 2008-09-01 Colin D Bennett <colin@gibibit.com>
15274 * include/grub/normal.h: Fixed incorrect comment for
15275 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15277 2008-09-01 Colin D Bennett <colin@gibibit.com>
15279 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15280 values with defines.
15282 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15283 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15284 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15285 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15286 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15287 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15288 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15289 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15290 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15291 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15292 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15293 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15294 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15295 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15296 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15297 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15298 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15299 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15300 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15302 2008-08-31 Robert Millan <rmh@aybabtu.com>
15304 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15306 (grub_multiboot): Fix a few warnings.
15308 2008-08-31 Robert Millan <rmh@aybabtu.com>
15310 * loader/i386/pc/multiboot.c: Update comment not to say that
15311 boot_device support is unimplemented.
15313 2008-08-31 Robert Millan <rmh@aybabtu.com>
15315 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15316 or memory map support are unimplemented.
15318 2008-08-31 Colin D Bennett <colin@gibibit.com>
15320 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15322 2008-08-31 Colin D Bennett <colin@gibibit.com>
15324 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15325 total video memory in 'vbeinfo' output; show color format details for
15328 2008-08-30 Pavel Roskin <proski@gnu.org>
15330 * util/genmoddep.c: Remove for real this time.
15331 * DISTLIST: Remove util/genmoddep.c.
15333 2008-08-30 Robert Millan <rmh@aybabtu.com>
15335 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15336 as required by Multiboot spec (it was already 4-byte aligned, but
15339 2008-08-29 Pavel Roskin <proski@gnu.org>
15341 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15342 * kern/powerpc/ieee1275/startup.S: ... this.
15343 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15344 * DISTLIST: Likewise.
15346 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15347 grub/cpu/kernel.h. Add start label for consistency with other
15348 platforms. Add grub_prefix immediately after start. Add jump
15349 to the code after grub_prefix.
15350 * include/grub/powerpc/kernel.h: Provide valid values for
15351 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15353 2008-08-29 Bean <bean123ch@gmail.com>
15355 * configure.ac: Change host_os to cygwin for mingw.
15356 (asprintf): New check for function.
15358 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15359 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15361 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15362 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15363 sync, sleep and grub_util_get_disk_size for mingw.
15365 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15366 to get size in mingw.
15367 (open_device): Use flag O_BINARY if it's defined.
15368 (find_root_device): Add dummy code for mingw.
15370 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15371 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15372 (get_scsi_disk_name): Return 0 for mingw.
15374 * util/hostfs.c: #include <grub/util/misc.h>.
15375 (grub_hostfs_open): Use "rb" flag to open file, use
15376 grub_util_get_disk_size to get disk size for mingw.
15378 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15379 (asprintf): New function if HAVE_ASPRINTF is not set.
15380 (sync): New function for mingw.
15382 (grub_util_get_disk_size): Likewise.
15384 2008-08-28 Pavel Roskin <proski@gnu.org>
15386 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15389 2008-08-28 Robert Millan <rmh@aybabtu.com>
15391 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15393 2008-08-28 Robert Millan <rmh@aybabtu.com>
15395 Change find_grub_drive() syntax so it doesn't prevent it from
15396 detecting NULL names as errors.
15398 * util/biosdisk.c (find_grub_drive): Move free slot search code
15400 (find_free_slot): ... to here.
15401 (read_device_map): Use find_free_slot() to search for free slots.
15403 2008-08-27 Marco Gerards <marco@gnu.org>
15405 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15406 (scsi_mod_SOURCES): New variable.
15407 (scsi_mod_CFLAGS): Likewise
15408 (scsi_mod_LDFLAGS): Likewise.
15410 * disk/scsi.c: New file.
15412 * include/grub/scsi.h: Likewise.
15414 * include/grub/scsicmd.h: Likewise.
15416 * disk/ata.c: Include <grub/scsi.h>.
15417 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15419 (grub_ata_iterate): Skip ATAPI devices.
15420 (grub_ata_open): Only handle ATAPI devices.
15421 (struct grub_atapi_read): Removed.
15422 (grub_atapi_readsector): Likewise.
15423 (grub_ata_read): No longer handle ATAPI devices.
15424 (grub_ata_write): Likewise.
15425 (grub_atapi_iterate): New function.
15426 (grub_atapi_read): Likewise.
15427 (grub_atapi_write): Likewise.
15428 (grub_atapi_open): Likewise.
15429 (grub_atapi_close): Likewise.
15430 (grub_atapi_dev): New variable.
15431 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15432 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15434 * include/grub/disk.h (enum grub_disk_dev_id): Add
15435 `GRUB_DISK_DEVICE_SCSI_ID'.
15437 2008-08-26 Robert Millan <rmh@aybabtu.com>
15439 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15440 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15443 2008-08-23 Bean <bean123ch@gmail.com>
15445 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15446 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15447 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15448 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15450 (raid5rec_mod_SOURCES): New macro.
15451 (raid5rec_mod_CFLAGS): Likewise.
15452 (raid5rec_mod_LDFLAGS): Likewise.
15453 (raid6rec_mod_SOURCES): Likewise.
15454 (raid6rec_mod_CFLAGS): Likewise.
15455 (raid6rec_mod_LDFLAGS): Likewise.
15456 (mdraid_mod_SOURCES): Likewise.
15457 (mdraid_mod_CFLAGS): Likewise.
15458 (mdraid_mod_LDFLAGS): Likewise.
15459 (dm_nv_mod_SOURCES): Likewise.
15460 (dm_nv_mod_CFLAGS): Likewise.
15461 (dm_nv_mod_LDFLAGS): Likewise.
15463 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15464 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15465 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15467 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15468 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15470 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15472 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15474 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15478 * disk/raid5_recover.c: New file.
15480 * disk/raid6_recover.c: Likewise.
15482 * disk/mdraid_linux.c: Likewise.
15484 * disk/dmraid_nvidia.c: Likewise.
15486 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15489 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15490 calculate the size of raid device.
15491 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15492 different layout of raid5.
15493 (grub_raid_scan_device): Remove code specific to mdraid.
15494 (grub_raid_list): New variable.
15495 (free_array): New function.
15496 (grub_raid_register): Likewise.
15497 (grub_raid_unregister): Likewise.
15498 (grub_raid_rescan): Likewise.
15499 (GRUB_MOD_INIT): Don't iterate device here.
15500 (GRUB_MOD_FINI): Use free_array to release resource.
15502 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15503 (grub_raid5_recover_func_t): New function variable type.
15504 (grub_raid6_recover_func_t): Likewise.
15505 (grub_raid5_recover_func): New variable.
15506 (grub_raid6_recover_func): Likewise.
15507 (grub_raid_register): New function.
15508 (grub_raid_unregister): Likewise.
15509 (grub_raid_rescan): Likewise.
15510 (grub_raid_block_xor): Likewise.
15512 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15513 (CMD_CRC): New macro.
15515 (read_file): Handle device as well as file.
15516 (cmd_crc): New function.
15517 (fstest): Handle multiple disks.
15518 (options): Remove part, raw and long, add root and diskcount.
15519 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15520 (main): Find the first non option entry and ignore subsequent options,
15521 add handling for the new options, support multiple disks.
15523 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15525 2008-08-23 Bean <bean123ch@gmail.com>
15527 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15529 * genfslist.sh: Ignore kernel.mod.
15531 * genpartmaplist.sh: Likewise.
15533 2008-08-23 Robert Millan <rmh@aybabtu.com>
15535 * util/getroot.c (find_root_device): Skip anything that starts with
15536 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15538 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15540 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15541 * util/grub.d/00_header.in: Allow the administrator to change default
15542 gfxmode via ${GRUB_GFXMODE}.
15544 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15546 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15548 2008-08-21 Robert Millan <rmh@aybabtu.com>
15550 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15552 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15553 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15555 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15557 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15558 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15560 2008-08-19 Robert Millan <rmh@aybabtu.com>
15562 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15563 (struct grub_virtual_screen): Remove `cursor_color'.
15564 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15566 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15568 2008-08-18 Robert Millan <rmh@aybabtu.com>
15570 Unify (identical) linux_normal.c files.
15571 * loader/i386/efi/linux_normal.c: Move from here ...
15572 * loader/linux_normal.c: ... to here. Update all users.
15573 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15574 * loader/i386/ieee1275/linux_normal.c: Likewise.
15576 2008-08-18 Robert Millan <rmh@aybabtu.com>
15578 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15579 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15580 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15581 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15582 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15584 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15585 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15586 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15587 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15588 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15589 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15590 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15591 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15592 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15593 portably using grub_getxy().
15594 Replace `-EFI' with `-bzImage' in boot message.
15596 2008-08-17 Robert Millan <rmh@aybabtu.com>
15598 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15600 2008-08-17 Robert Millan <rmh@aybabtu.com>
15602 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15604 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15605 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15606 (grub_machine_mmap_iterate): New function declaration.
15607 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15609 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15612 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15613 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15614 Move e820 parsing from here ...
15615 * kern/i386/pc/mmap.c: New file.
15616 (grub_machine_mmap_iterate): ... to here.
15618 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15619 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15620 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15621 (grub_available_iterate): Redeclare to return `void', and redeclare
15622 its hook to use grub_uint64_t as addr and size parameters, and rename
15624 (grub_machine_mmap_iterate): ... this. Update all users.
15626 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15627 to make it more readable. Rename to ...
15628 (grub_machine_mmap_iterate): ... this.
15630 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15631 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15632 (grub_multiboot): Allocate an extra region after the payload, and fill
15633 it with a Multiboot memory map. Adjust a.out loader to calculate size
15634 with the extra space.
15635 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15636 with the extra space.
15638 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15640 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15642 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15644 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15645 mdate-sh to the list `find' searches for.
15646 * DISTLIST: Regenerated.
15648 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15650 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15651 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15652 genmoddep.awk, gensymlist.sh.in.
15653 (DISTDIRS): Add bus, docs, hook, lib.
15654 * DISTLIST: Regenerated.
15655 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15657 2008-08-16 Robert Millan <rmh@aybabtu.com>
15659 * disk/raid.c (grub_raid_init): Handle/report errors set by
15660 grub_device_iterate().
15661 * disk/lvm.c (grub_lvm_init): Likewise.
15663 2008-08-15 Bean <bean123ch@gmail.com>
15665 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15667 (datetime_mod_SOURCES): New macro.
15668 (datetime_mod_CFLAGS): Likewise.
15669 (datetime_mod_LDFLAGS): Likewise.
15670 (date_mod_SOURCES): Likewise.
15671 (date_mod_CFLAGS): Likewise.
15672 (date_mod_LDFLAGS): Likewise.
15673 (datehook_mod_SOURCES): Likewise.
15674 (datehook_mod_CFLAGS): Likewise.
15675 (datehook_mod_LDFLAGS): Likewise.
15677 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15679 (datetime_mod_SOURCES): New macro.
15680 (datetime_mod_CFLAGS): Likewise.
15681 (datetime_mod_LDFLAGS): Likewise.
15682 (date_mod_SOURCES): Likewise.
15683 (date_mod_CFLAGS): Likewise.
15684 (date_mod_LDFLAGS): Likewise.
15685 (datehook_mod_SOURCES): Likewise.
15686 (datehook_mod_CFLAGS): Likewise.
15687 (datehook_mod_LDFLAGS): Likewise.
15689 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15691 (datetime_mod_SOURCES): New macro.
15692 (datetime_mod_CFLAGS): Likewise.
15693 (datetime_mod_LDFLAGS): Likewise.
15694 (date_mod_SOURCES): Likewise.
15695 (date_mod_CFLAGS): Likewise.
15696 (date_mod_LDFLAGS): Likewise.
15697 (datehook_mod_SOURCES): Likewise.
15698 (datehook_mod_CFLAGS): Likewise.
15699 (datehook_mod_LDFLAGS): Likewise.
15701 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15703 (datetime_mod_SOURCES): New macro.
15704 (datetime_mod_CFLAGS): Likewise.
15705 (datetime_mod_LDFLAGS): Likewise.
15706 (date_mod_SOURCES): Likewise.
15707 (date_mod_CFLAGS): Likewise.
15708 (date_mod_LDFLAGS): Likewise.
15709 (datehook_mod_SOURCES): Likewise.
15710 (datehook_mod_CFLAGS): Likewise.
15711 (datehook_mod_LDFLAGS): Likewise.
15713 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15715 (datetime_mod_SOURCES): New macro.
15716 (datetime_mod_CFLAGS): Likewise.
15717 (datetime_mod_LDFLAGS): Likewise.
15718 (date_mod_SOURCES): Likewise.
15719 (date_mod_CFLAGS): Likewise.
15720 (date_mod_LDFLAGS): Likewise.
15721 (datehook_mod_SOURCES): Likewise.
15722 (datehook_mod_CFLAGS): Likewise.
15723 (datehook_mod_LDFLAGS): Likewise.
15725 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15727 * commands/date.c: New file.
15729 * hook/datehook.c: Likewise.
15731 * include/grub/lib/datetime.h: Likewise.
15733 * include/grub/i386/cmos.h: Likewise.
15735 * lib/datetime.c: Likewise.
15737 * lib/i386/datetime.c: Likewise.
15739 * lib/efi/datetime.c: Likewise.
15741 2008-08-14 Robert Millan <rmh@aybabtu.com>
15743 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15744 (grub_mkelfimage_SOURCES): New variable.
15745 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15747 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15748 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15749 * conf/powerpc-ieee1275.rmk: Likewise.
15750 * conf/i386-ieee1275.rmk: Likewise.
15752 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15753 * kern/i386/coreboot/init.c: Likewise.
15755 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15756 with `<grub/cpu/kernel.h>'.
15757 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15759 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15760 * kern/i386/coreboot/startup.S: Likewise.
15762 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15763 (GRUB_MOD_GAP): Remove.
15764 * include/grub/powerpc/kernel.h: New file.
15765 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15766 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15767 * include/grub/i386/kernel.h: New file.
15768 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15769 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15770 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15772 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15774 Use --directory when invoking grub_mkimage.
15776 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15777 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15778 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15779 and GRUB_KERNEL_CPU_PREFIX.
15781 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15783 * include/grub/err.h (grub_err_printf): New function prototype.
15784 * util/misc.c (grub_err_printf): New function.
15785 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15787 * kern/err.c (grub_print_error): Use grub_err_printf.
15789 2008-08-13 Robert Millan <rmh@aybabtu.com>
15791 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15793 2008-08-13 Robert Millan <rmh@aybabtu.com>
15795 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15798 2008-08-12 Robert Millan <rmh@aybabtu.com>
15800 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15801 of the relocation code from here ...
15802 (grub_multiboot): ... to here.
15803 (forward_relocator, backward_relocator): Move from here ...
15804 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15805 (grub_multiboot_backward_relocator): ... to here.
15806 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15807 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15808 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15809 (grub_multiboot_forward_relocator_end)
15810 (grub_multiboot_backward_relocator)
15811 (grub_multiboot_backward_relocator_end): New variables.
15813 2008-08-12 Bean <bean123ch@gmail.com>
15815 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15817 2008-08-11 Robert Millan <rmh@aybabtu.com>
15819 * kern/i386/linuxbios/startup.S: Move from here ...
15820 * kern/i386/coreboot/startup.S: ... to here.
15822 * kern/i386/linuxbios/init.c: Move from here ...
15823 * kern/i386/coreboot/init.c: ... to here.
15825 * kern/i386/linuxbios/table.c: Move from here ...
15826 * kern/i386/coreboot/mmap.c: ... to here.
15828 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15830 2008-08-11 Robert Millan <rmh@aybabtu.com>
15832 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15833 errors. Leave it to the upper layer to handle them.
15835 2008-08-09 Christian Franke <franke@computer.org>
15837 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15838 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15839 Install `grub.d/10_windows' only on Cygwin.
15840 * configure.ac: Add subst of `target_os'.
15841 Check `target_os' also before setting TARGET_OBJ2ELF.
15842 Add `--enable-grub-pe2elf'.
15844 2008-08-08 Robert Millan <rmh@aybabtu.com>
15846 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15847 (grub_last_time): Change type to grub_uint64_t.
15848 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15849 (grub_disk_close): Likewise.
15851 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15852 (run_menu): Migrate code from to using grub_get_time_ms().
15854 * util/misc.c (grub_get_time_ms): New function.
15856 2008-08-08 Marco Gerards <marco@gnu.org>
15858 * disk/ata.c (grub_ata_regget): Change return type to
15860 (grub_ata_regget2): Likewise.
15861 (grub_ata_wait_status): New function.
15862 (grub_ata_wait_busy): Removed function, updated all users to use
15863 `grub_ata_wait_status'.
15864 (grub_ata_wait_drq): Likewise.
15865 (grub_ata_cmd): New function.
15866 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15868 (grub_ata_pio_write): Add error handling.
15869 (grub_atapi_identify): Likewise.
15870 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15872 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15873 handling. Actually use the detected registers. Reorder the
15874 detection logic such that it is easier to read.
15875 (grub_ata_pciinit): Do not assign the same ID to each controller.
15876 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15878 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15880 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15882 2008-08-08 Marco Gerards <marco@gnu.org>
15886 2008-08-07 Bean <bean123ch@gmail.com>
15888 * include/grub/x86_64/pci.h: New file.
15890 2008-08-07 Christian Franke <franke@computer.org>
15892 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15893 (TIMER2_GATE): Likewise.
15894 (grub_pit_wait): Add enable/disable of the timer2 gate
15895 bit of port 0x61. This fixes a possible infinite loop.
15897 2008-08-07 Bean <bean123ch@gmail.com>
15899 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15900 kern/i386/tsc.c and kern/i386/pit.c.
15902 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15905 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15908 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15910 2008-08-07 Bean <bean123ch@gmail.com>
15912 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15914 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15916 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15917 multiple inclusion. Add #include <grub/types.h>.
15919 2008-08-06 Christian Franke <franke@computer.org>
15921 * conf/common.rmk: Build and install `10_windows'.
15922 * util/grub.d/10_windows.in: New script.
15924 2008-08-06 Pavel Roskin <proski@gnu.org>
15926 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15928 2008-08-06 Robert Millan <rmh@aybabtu.com>
15930 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15931 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15933 2008-08-06 Bean <bean123ch@gmail.com>
15935 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15936 (grub_pxefs_fs_int): Remove dummy definition.
15937 (grub_pxefs_open): Use data->block_size to store the current block
15939 (grub_pxefs_read): Use block size stored in data->block_size. As the
15940 value of grub_pxe_blksize can be changed after the file is opened.
15942 2008-08-06 Bean <bean123ch@gmail.com>
15944 * fs/i386/pc/pxe.c (curr_file): new variable.
15945 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15946 require the dummy internal file system anymore.
15947 (grub_pxefs_read): Removed.
15948 (grub_pxefs_close): Likewise.
15949 (grub_pxefs_fs_int): Likewise.
15950 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15951 connection when we switch file.
15952 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15954 2008-08-06 Robert Millan <rmh@aybabtu.com>
15956 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15958 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15959 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15961 * kern/i386/halt.c: New file.
15962 * kern/i386/reboot.c: Likewise.
15963 * include/grub/i386/reboot.h: Likewise.
15964 * include/grub/i386/halt.h: Likewise.
15966 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15967 Include `<grub/cpu/halt.h>'.
15968 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15969 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15971 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15972 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15973 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15974 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15975 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15976 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15978 * include/grub/i386/at_keyboard.h: ... to here.
15980 2008-08-05 Robert Millan <rmh@aybabtu.com>
15982 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15983 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15984 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15985 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15986 `kern/generic/millisleep.c'.
15988 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15989 instead of grub_get_rtc().
15990 (grub_tsc_init): Initialize `tsc_boot_time'.
15992 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15993 (grub_machine_init): Use grub_tsc_init() rather than
15994 installing an RTC-based handler via grub_install_get_time_ms().
15996 * kern/i386/pit.c: New file.
15997 * include/grub/i386/pit.h: Likewise.
15999 2008-08-05 Bean <bean123ch@gmail.com>
16001 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16003 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16004 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16005 (pxe_mod_SOURCES): New macro.
16006 (pxe_mod_CFLAGS): Likewise.
16007 (pxe_mod_LDFLAGS): Likewise.
16008 (pxecmd_mod_SOURCES): Likewise.
16009 (pxecmd_mod_CFLAGS): Likewise.
16010 (pxecmd_mod_LDFLAGS): Likewise.
16012 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16013 (grub_pxe_call): Likewise.
16015 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16017 * commands/i386/pc/pxecmd.c: New file.
16019 * fs/i386/pc/pxe.c: Likewise.
16021 * include/grub/i386/pc/pxe.h: Likewise.
16023 2008-08-05 Bean <bean123ch@gmail.com>
16025 * util/console.c (grub_console_cur_color): New variable.
16026 (grub_console_standard_color): Likewise.
16027 (grub_console_normal_color): Likewise.
16028 (grub_console_highlight_color): Likewise.
16029 (color_map): Likewise.
16030 (use_color): Likewise.
16031 (NUM_COLORS): New macro.
16032 (grub_ncurses_setcolorstate): Handle color properly.
16033 (grub_ncurses_setcolor): Don't change color here, just remember the
16034 settings, color will be set in grub_ncurses_setcolorstate.
16035 (grub_ncurses_getcolor): New function.
16036 (grub_ncurses_init): Initialize color pairs.
16037 (grub_ncurses_term): New member grub_ncurses_getcolor.
16039 2008-08-05 Colin D Bennett <colin@gibibit.com>
16041 High resolution timer support. Implemented for x86 CPUs using TSC.
16042 Extracted generic grub_millisleep() so it's linked in only as needed.
16043 This requires a Pentium compatible CPU; if the RDTSC instruction is
16044 not supported, then it falls back on the generic grub_get_time_ms()
16045 implementation that uses the machine's RTC.
16047 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16048 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16049 `kern/generic/millisleep.c'.
16051 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16052 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16054 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16055 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16057 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16059 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16060 `kern/generic/millisleep.c'.
16062 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16064 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16066 * kern/generic/rtc_get_time_ms.c: New file.
16068 * kern/generic/millisleep.c: New file.
16070 * kern/misc.c: Don't include
16071 <kern/time.h> anymore.
16072 (grub_millisleep_generic): Removed.
16074 * commands/sleep.c (grub_interruptible_millisleep): Uses
16075 grub_get_time_ms() instead of grub_get_rtc().
16077 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16079 (grub_cpu_is_cpuid_supported): New inline function.
16080 (grub_cpu_is_tsc_supported): New inline function.
16081 (grub_tsc_init): New function prototype.
16082 (grub_tsc_get_time_ms): New function prototype.
16084 * kern/i386/tsc.c (grub_get_time_ms): New file.
16086 * include/grub/time.h: Include <grub/types.h.
16087 (grub_millisleep_generic): Removed.
16088 (grub_get_time_ms): New prototype.
16089 (grub_install_get_time_ms): New prototype.
16090 (grub_rtc_get_time_ms): New prototype.
16092 * kern/time.c (grub_get_time_ms): New function.
16093 (grub_install_get_time_ms): New function.
16095 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16096 <grub/time.h> anymore.
16097 (grub_millisleep): Removed.
16098 (grub_machine_init): Call grub_tsc_init.
16100 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16101 get_time_ms() implementation.
16103 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16104 (ieee1275_get_time_ms): New function.
16105 (grub_machine_init): Install get_time_ms() implementation.
16107 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16108 (grub_machine_init): Call grub_tsc_init().
16109 (grub_millisleep): Removed.
16111 * kern/ieee1275/init.c (grub_millisleep): Removed.
16112 (grub_machine_init): Install ieee1275_get_time_ms()
16114 (ieee1275_get_time_ms): New function.
16115 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16118 2008-08-05 Marco Gerards <marco@gnu.org>
16120 * disk/ata.c: Include <grub/pci.h>.
16121 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16122 (grub_ata_initialize): Rewritten.
16123 (grub_ata_device_initialize): New function.
16125 2008-08-04 Pavel Roskin <proski@gnu.org>
16127 * kern/main.c: Include grub/mm.h.
16129 2008-08-04 Robert Millan <rmh@aybabtu.com>
16131 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16132 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16133 corruption problem).
16135 2008-08-04 Robert Millan <rmh@aybabtu.com>
16137 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16138 warnings introduced in my last commit.
16140 2008-08-03 Robert Millan <rmh@aybabtu.com>
16142 Make PCI available on all i386 architectures.
16144 * include/grub/i386/pc/pci.h: Move from here ...
16145 * include/grub/i386/pci.h: ... to here.
16147 * include/grub/i386/pc/pci.h: Remove.
16148 * include/grub/i386/efi/pci.h: Remove.
16149 * include/grub/x86_64/efi/pci.h: Remove.
16151 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16152 `<grub/cpu/pci.h>'.
16154 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16155 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16156 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16158 * conf/i386-ieee1275.rmk: Likewise.
16160 2008-08-03 Robert Millan <rmh@aybabtu.com>
16162 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16163 (grub_console_setcursor): Make it possible to set cursor off.
16165 2008-08-03 Robert Millan <rmh@aybabtu.com>
16167 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16168 of modules instead of assuming which platform provides what.
16169 * util/update-grub.in: Likewise.
16171 2008-08-03 Robert Millan <rmh@aybabtu.com>
16173 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16174 instead of `grub_install_dos_part' to determine whether a drive needs
16175 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16176 because it can be overridden when loading GRUB via Multiboot).
16178 2008-08-02 Robert Millan <rmh@aybabtu.com>
16180 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16182 2008-08-02 Robert Millan <rmh@aybabtu.com>
16184 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16185 of informational grub_dprintf() calls.
16187 2008-08-02 Robert Millan <rmh@aybabtu.com>
16189 * disk/memdisk.c (memdisk_size): Don't initialize.
16190 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16192 * include/grub/i386/pc/kernel.h
16193 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16194 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16195 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16196 (grub_arch_memdisk_size): Remove.
16198 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16199 field (was only used to transfer a constant). Add `type' field to
16200 support multiple module types.
16201 (grub_module_iterate): New function.
16203 * kern/device.c (grub_device_open): Do not hide error messages
16204 when grub_disk_open() fails. Use grub_print_error() instead.
16206 * kern/i386/pc/init.c (grub_arch_modules_addr)
16207 (grub_arch_memdisk_size): Remove functions.
16208 (grub_arch_modules_addr): Return the module address in high memory
16209 (now that it isn't copied anymore).
16211 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16212 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16213 decompression routine (grub_total_module_size already includes that
16214 now). Don't copy modules back to low memory.
16216 * kern/main.c: Include `<grub/mm.h>'.
16217 (grub_load_modules): Split out (and use) ...
16218 (grub_module_iterate): ... this function, which iterates through
16219 module objects and runs a hook.
16220 Comment out grub_mm_init_region() call, as it would cause non-ELF
16221 modules to be overwritten.
16223 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16224 the memdisk image in its own region, make it part of the module list.
16225 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16226 (main): Parse --memdisk|-m option, and pass user-provided path as
16227 parameter to generate_image().
16228 (add_segments): Pass `memdisk_path' down to load_modules().
16229 (load_modules): Embed memdisk image in module section when requested.
16230 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16231 `header.type' instead of `header.offset'.
16233 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16234 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16235 (memdisk_mod_LDFLAGS): New variables.
16236 * conf/i386-coreboot.rmk: Likewise.
16237 * conf/i386-ieee1275.rmk: Likewise.
16239 2008-08-02 Robert Millan <rmh@aybabtu.com>
16241 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16242 (backward_relocator): New variables. Used to allocate and relocate
16243 the payload, respectively.
16244 (grub_multiboot_load_elf32): Load into heap instead of requested
16245 address, install the appropriate relocator code in each bound of
16246 the payload, and set the entry point such that
16247 grub_multiboot_real_boot() will jump to one of them.
16249 * kern/i386/loader.S (grub_multiboot_payload_size)
16250 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16251 (grub_multiboot_payload_entry_offset): New variables.
16252 (grub_multiboot_real_boot): Set cpu context to what the relocator
16253 expects, and jump to the relocator instead of the payload.
16255 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16256 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16257 (grub_multiboot_payload_entry_offset): Export.
16259 2008-08-01 Bean <bean123ch@gmail.com>
16261 * normal/menu_entry.c (editor_getline): Don't return the original
16262 string as result, as it will be released by lexer once it has done
16265 2008-08-01 Robert Millan <rmh@aybabtu.com>
16267 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16268 within menuentries, not before them.
16269 util/grub.d/10_hurd.in: Likewise.
16271 2008-08-01 Bean <bean123ch@gmail.com>
16273 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16274 (bufio_mod_SOURCES): New macro.
16275 (bufio_mod_CFLAGS): Likewise.
16276 (bufio_mod_LDFLAGS): Likewise.
16278 * include/grub/bufio.h: New file.
16280 * io/bufio.c: Likewise.
16282 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16283 (grub_video_reader_png): Use grub_buffile_open to open file.
16285 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16286 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16288 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16289 (grub_video_reader_tga): Use grub_buffile_open to open file.
16291 * font/manager.c: Include <grub/bufio.h>.
16292 (add_font): Use grub_buffile_open to open file.
16294 2008-07-31 Robert Millan <rmh@aybabtu.com>
16296 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16297 ELF segments, use a macro for arbitrarily accessing any of them instead
16298 of preparing a pointer that allows access to one at a time.
16299 (grub_multiboot_load_elf64): Likewise.
16301 2008-07-31 Bean <bean123ch@gmail.com>
16303 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16304 GRUB_KERNEL_MACHINE_DATA_END.
16306 2008-07-30 Robert Millan <rmh@aybabtu.com>
16308 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16309 Increase from 0x50 to 0x60.
16310 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16311 use UUIDs to identify the root drive for them. If that's not
16313 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16314 check, for cross-disk installs.
16316 2008-07-30 Robert Millan <rmh@aybabtu.com>
16318 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16319 is non-empty, use it to set the `prefix' environment variable instead
16320 of the usual approach.
16321 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16322 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16323 environment variable instead of dummy make_install_device().
16325 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16326 (start): Insert a data section, with `grub_prefix' variable.
16327 * kern/i386/linuxbios/startup.S: Likewise.
16329 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16330 New variable reference.
16331 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16332 New macro. Defines offset of `grub_prefix' within startup.S (relative
16334 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16335 section within startup.S (relative to `start').
16336 * include/grub/i386/coreboot/kernel.h: Likewise.
16338 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16339 Overwrite grub_prefix with its contents, at the beginning of the
16341 (main): Understand -p|--prefix.
16343 2008-07-30 Robert Millan <rmh@aybabtu.com>
16345 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16347 2008-07-30 Robert Millan <rmh@aybabtu.com>
16349 * term/i386/pc/vga_text.c (grub_console_cls): Use
16350 grub_console_gotoxy() to go back to beginning of the screen.
16351 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16353 2008-07-29 Christian Franke <franke@computer.org>
16355 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16356 Add conversion of emulated mount points on Cygwin.
16358 2008-07-29 Christian Franke <franke@computer.org>
16360 * util/update-grub.in: Add a check for admin
16362 Remove old `grub.cfg.new' before creation.
16363 Add `-f' to `mv' to handle the different filesystem
16364 semantics of Windows.
16366 2008-07-29 Bean <bean123ch@gmail.com>
16368 * normal/main.c (get_line): Fix buffer overflow bug.
16370 2008-07-28 Robert Millan <rmh@aybabtu.com>
16372 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16373 (struct grub_apple_header): New struct. Describes the layout of
16374 the partmap header.
16375 (apple_partition_map_iterate): Check the header magic as well as the
16376 partition magic (which was already being checked).
16378 2008-07-28 Pavel Roskin <proski@gnu.org>
16380 * genmk.rb: Add a warning to the beginning of the output that
16381 it's a generated file and should not be edited.
16383 2008-07-28 Robert Millan <rmh@aybabtu.com>
16385 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16386 with the same number are found, just use issue a warning with
16387 grub_dprintf(), as this error has been reported to be non-fatal.
16389 2008-07-27 Robert Millan <rmh@aybabtu.com>
16391 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16394 2008-07-27 Bean <bean123ch@gmail.com>
16396 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16397 (grub_fat_find_dir): Ignore case when comparing filename.
16399 2008-07-27 Bean <bean123ch@gmail.com>
16401 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16402 smallino, as it's more descriptive, and i8count can be confused with
16403 the other field count.
16404 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16407 2008-07-27 Bean <bean123ch@gmail.com>
16409 * commands/crc.c: New file.
16411 * lib/crc.c: Likewise.
16413 * include/grub/lib/crc.h: Likewise.
16415 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16417 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16418 (hexdump): Move this function to ...
16420 * lib/hexdump.c: ... here.
16422 * include/grub/hexdump.h: Renamed to ...
16424 * include/grub/lib/hexdump.h: ... this.
16426 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16428 * util/grub-editenv.c: Likewise.
16430 * include/envblk.h: Renamed to ...
16432 * include/lib/envblk.h: ... this.
16434 * util/envblk.c: Renamed to ...
16436 * lib/envblk.c: ... this.
16438 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16440 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16441 (pkglib_MODULES): Add crc.mod.
16442 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16443 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16444 (crc_mod_SOURCES): New macro.
16445 (crc_mod_CFLAGS): Likewise.
16446 (crc_mod_LDFLAGS): Likewise.
16448 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16450 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16452 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16456 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16458 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16460 * commands/help.c: Include <grub/term.h>.
16461 (TERM_WIDTH): Removed. Updated all users.
16463 2008-07-27 Pavel Roskin <proski@gnu.org>
16465 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16466 spurious warnings about a comment within a comment.
16468 2008-07-25 Robert Millan <rmh@aybabtu.com>
16470 * util/getroot.c (find_root_device): Skip devices that match
16471 /dev/dm-[0-9]. This lets the real device be found for any type of
16472 abstraction (LVM, EVMS, RAID..).
16473 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16474 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16475 device is found first, find_root_device() will now skip it.
16477 2008-07-24 Pavel Roskin <proski@gnu.org>
16479 * include/grub/types.h: Use __builtin_bswap32() and
16480 __builtin_bswap64() with gcc 4.3 and newer.
16482 2008-07-24 Christian Franke <franke@computer.org>
16484 * util/i386/pc/grub-install.in: If `--debug' is specified,
16485 pass `--verbose' to grub-setup.
16486 Abort script if make_system_path_relative_to_its_root() fails.
16488 2008-07-24 Bean <bean123ch@gmail.com>
16490 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16491 variable `target_platform' should be `platform'.
16493 2008-07-24 Bean <bean123ch@gmail.com>
16495 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16496 (grub_png_init_fixed_block): New function.
16497 (grub_png_decode_image_data): Handle fixed huffman code compression.
16499 2008-07-24 Bean <bean123ch@gmail.com>
16501 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16502 (grub_pe2elf_SOURCES): New macro.
16503 (CLEANFILES): Add grub-pe2elf.
16505 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16506 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16507 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16508 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16509 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16510 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16511 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16512 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16513 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16514 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16515 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16516 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16517 (GRUB_PE32_DT_FUNCTION): Likewise.
16518 (GRUB_PE32_REL_I386_DIR32): Likewise.
16519 (GRUB_PE32_REL_I386_REL32): Likewise.
16520 (grub_pe32_symbol): New structure.
16521 (grub_pe32_reloc): Likewise.
16523 * util/grub-pe2elf.c: New file.
16525 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16526 start symbol in non pc platform.
16528 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16530 The following patches are from Christian Franke.
16532 * include/grub/dl.h: Remove .previous, gas supports this only
16535 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16536 Remove .type, gas supports this only for ELF format.
16538 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16539 nullbytes in symbol table. This fixes an infinite loop if table is
16542 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16543 TARGET_IMG_LDFLAGS and EXEEXT.
16545 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16546 TARGET_IMG_LDFLAGS_AC.
16547 (grub_CHECK_STACK_ARG_PROBE): New function.
16549 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16551 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16553 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16554 to set TARGET_IMG_LD* accordingly.
16555 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16556 Add call to grub_CHECK_STACK_ARG_PROBE.
16557 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16559 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16561 * genmk.rb: Add EXEEXT to CLEANFILES.
16563 2008-07-23 Robert Millan <rmh@aybabtu.com>
16565 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16566 define the codes for arrows and lines used for the menu).
16567 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16570 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16571 fonts, because the latter are too slow.
16573 2008-07-21 Bean <bean123ch@gmail.com>
16575 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16576 a20. Run keyboard test last, as it will cause macbook to halt.
16578 2008-07-18 Pavel Roskin <proski@gnu.org>
16580 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16581 load foreign architecture modules correctly anyway. Keep
16582 support for loading host architecture modules, whether we
16583 compile them or not.
16585 2008-07-17 Pavel Roskin <proski@gnu.org>
16587 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16588 change target_cpu. The compiler default can mismatch target_cpu
16591 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16592 * kern/efi/efi.c: Likewise.
16594 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16595 target compiler is functional.
16596 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16599 * configure.ac: Default to efi platform for x86_64-apple. Allow
16600 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16601 adjustments from the rest, only do them if target is not
16602 explicitly given. Merge other adjustments with the final sanity
16603 check. Remove an extraneous check for supported CPU. Be
16604 specific which CPU and which platform is not supported.
16606 * configure.ac: Default to pc platform for x86_64.
16608 2008-07-17 Robert Millan <rmh@aybabtu.com>
16610 Partial LinuxBIOS -> Coreboot rename.
16612 * conf/i386-linuxbios.rmk: Renamed to ...
16613 * conf/i386-coreboot.rmk: ... this.
16614 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16615 * configure.ac: Accept "coreboot" as input platform (but maintain
16616 compatibility with "linuxbios").
16617 * include/grub/i386/linuxbios: Renamed to ...
16618 * include/grub/i386/coreboot: ... this.
16620 2008-07-17 Bean <bean123ch@gmail.com>
16622 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16623 (appleldr_mod_SOURCE): New variable.
16624 (appleldr_mod_CFLAGS): Likewise.
16625 (appleldr_mod_LDFLAGS): Likewise.
16626 (pci_mod_SOURCES): Likewise.
16627 (pci_mod_CFLAGS): Likewise.
16628 (pci_mod_LDFLAGS): Likewise.
16629 (lspci_mod_SOURCES): Likewise.
16630 (lspci_mod_CFLAGS): Likewise.
16631 (lspci_mod_LDFLAGS): Likewise.
16633 * conf/x86_64-efi.rmk: New file.
16635 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16637 (grub_efidisk_write): Likewise.
16639 * include/efi/api.h (efi_call_0): New macro.
16640 (efi_call_1): Likewise.
16641 (efi_call_2): Likewise.
16642 (efi_call_3): Likewise.
16643 (efi_call_4): Likewise.
16644 (efi_call_5): Likewise.
16645 (efi_call_6): Likewise.
16647 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16648 grub_rescue_cmd_chainloader.
16650 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16651 (grub_pe32_optional_header): Change some fields based on i386 or
16653 (GRUB_PE32_PE32_MAGIC): Likewise.
16655 * include/grub/efi/uga_draw.h: New file.
16657 * include/grub/elf.h (STN_ABS): New constant.
16658 (R_X86_64_NONE): Relocation constant for x86_64.
16659 (R_X86_64_64): Likewise.
16660 (R_X86_64_PC32): Likewise.
16661 (R_X86_64_GOT32): Likewise.
16662 (R_X86_64_PLT32): Likewise.
16663 (R_X86_64_COPY): Likewise.
16664 (R_X86_64_GLOB_DAT): Likewise.
16665 (R_X86_64_JUMP_SLOT): Likewise.
16666 (R_X86_64_RELATIVE): Likewise.
16667 (R_X86_64_GOTPCREL): Likewise.
16668 (R_X86_64_32): Likewise.
16669 (R_X86_64_32S): Likewise.
16670 (R_X86_64_16): Likewise.
16671 (R_X86_64_PC16): Likewise.
16672 (R_X86_64_8): Likewise.
16673 (R_X86_64_PC8): Likewise.
16675 * include/grub/i386/efi/pci.h: New file.
16677 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16678 Change it value based on platform.
16679 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16680 (GRUB_E820_RAM): Likewise.
16681 (GRUB_E820_RESERVED): Likewise.
16682 (GRUB_E820_ACPI): Likewise.
16683 (GRUB_E820_NVS): Likewise.
16684 (GRUB_E820_EXEC_CODE): Likewise.
16685 (GRUB_E820_MAX_ENTRY): Likewise.
16686 (grub_e820_mmap): New structure.
16687 (linux_kernel_header): Change the efi field according to different
16688 kernel version, also field from linux_kernel_header.
16690 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16692 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16693 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16694 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16695 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16696 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16697 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16698 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16699 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16700 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16701 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16703 * include/grub/x86_64/efi/kernel.h: New file.
16705 * include/grub/x86_64/efi/loader.h: Likewise.
16707 * include/grub/x86_64/efi/machine.h: Likewise.
16709 * include/grub/x86_64/efi/pci.h: Likewise.
16711 * include/grub/x86_64/efi/time.h: Likewise.
16713 * include/grub/x86_64/linux.h: Likewise.
16715 * include/grub/x86_64/setjmp.h: Likewise.
16717 * include/grub/x86_64/time.h: Likewise.
16719 * include/grub/x86_64/types.h: Likewise.
16721 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16722 GRUB_TARGET_SIZEOF_VOID_P.
16724 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16725 (grub_efi_locate_handle): Likewise.
16726 (grub_efi_open_protocol): Likewise.
16727 (grub_efi_set_text_mode): Likewise.
16728 (grub_efi_stall): Likewise.
16729 (grub_exit): Likewise.
16730 (grub_reboot): Likewise.
16731 (grub_halt): Likewise.
16732 (grub_efi_exit_boot_services): Likewise.
16733 (grub_get_rtc): Likewise.
16735 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16736 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16737 (grub_efi_allocate_pages): Wrap efi calls.
16738 (grub_efi_free_pages): Wrap efi calls.
16739 (grub_efi_get_memory_map): Wrap efi calls.
16741 * kern/x86_64/dl.c: New file.
16743 * kern/x86_64/efi/callwrap.S: Likewise.
16745 * kern/x86_64/efi/startup.S: Likewise.
16747 * loader/efi/appleloader.c: Likewise.
16749 * loader/efi/chainloader.c (cmdline): New variable.
16750 (grub_chainloader_unload): Wrap efi calls.
16751 (grub_chainloader_boot): Likewise.
16752 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16755 * loader/efi/chainloader_normal.c (chainloader_command):
16756 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16759 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16761 (grub_e820_add_region): New function.
16762 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16764 (grub_find_video_card): New function.
16765 (grub_linux_setup_video): New function.
16766 (grub_rescue_cmd_linux): Probe for video information.
16768 * normal/x86_64/setjmp.S: New file.
16770 * term/efi/console.c (map_char): New function.
16771 (grub_console_putchar): Map unicode char.
16772 (grub_console_checkkey): Wrap efi calls.
16773 (grub_console_getkey): Likewise.
16774 (grub_console_getwh): Likewise.
16775 (grub_console_gotoxy): Likewise.
16776 (grub_console_cls): Likewise.
16777 (grub_console_setcolorstate): Likewise.
16778 (grub_console_setcursor): Likewise.
16780 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16782 2008-07-16 Pavel Roskin <proski@gnu.org>
16784 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16787 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16788 pointer, not an integer. This fixes a warning and prevents
16789 precision loss on 64-bit systems.
16790 (relocate_addresses): Remove unneeded cast.
16792 2008-07-15 Pavel Roskin <proski@gnu.org>
16794 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16796 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16798 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16799 Fix comparison between signed and unsigned.
16801 * include/grub/i386/ieee1275/console.h: Declare
16802 grub_console_init() and grub_console_fini().
16804 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16805 It's empty and unused.
16807 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16808 beginning to avoid warnings with some compilers.
16810 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16811 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16813 2008-07-14 Pavel Roskin <proski@gnu.org>
16815 * kern/env.c (grub_register_variable_hook): Don't copy empty
16816 string, it leaks memory. Pass "" to grub_env_set(), it should
16817 handle constant strings.
16819 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16820 * commands/cmp.c (grub_cmd_cmp): Likewise.
16821 * kern/dl.c (grub_dl_flush_cache): Likewise.
16822 (grub_dl_load_core): Likewise.
16823 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16824 (grub_elf64_load_phdrs): Likewise.
16826 2008-07-13 Pavel Roskin <proski@gnu.org>
16828 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16829 between signed and unsigned.
16830 (LzmaEnc_Finish): Fix warning about an unused parameter.
16832 2008-07-13 Bean <bean123ch@gmail.com>
16834 * Makefile.in (enable_lzo): New rule.
16836 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16838 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16840 * boot/i386/pc/lnxboot.S: #include <config.h>.
16842 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16843 its value according to the compression algorithm used, lzo or lzma.
16845 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16846 compression algorithm according to configure macro.
16848 * kern/i386/pc/startup.S (codestart): Likewise.
16850 * kern/i386/pc/lzma_decode.S: New file.
16852 * include/grub/lib/LzFind.h: Likewise.
16854 * include/grub/lib/LzHash.h: Likewise.
16856 * include/grub/lib/LzmaDec.h: Likewise.
16858 * include/grub/lib/LzmaEnc.h: Likewise.
16860 * include/grub/lib/LzmaTypes.h: Likewise.
16862 * lib/LzFind.c: Likewise.
16864 * lib/LzmaDec.c: Likewise.
16866 * lib/LzmaEnc.c: Likewise.
16868 2008-07-13 Bean <bean123ch@gmail.com>
16870 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16871 (grub_ext4_extent_header): New structure.
16872 (grub_ext4_extent): Likewise.
16873 (grub_ext4_extent_idx): Likewise.
16874 (grub_ext4_find_leaf): New function.
16875 (grub_ext2_read_block): Handle extents.
16877 2008-07-12 Robert Millan <rmh@aybabtu.com>
16879 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16881 2008-07-11 Robert Millan <rmh@aybabtu.com>
16883 * util/grub.d/40_custom.in: New file. Example on how to add custom
16884 entries to /etc/grub.d.
16885 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16886 40_custom (implicitly, by merging all the grub.d rules).
16888 2008-07-11 Pavel Roskin <proski@gnu.org>
16890 * commands/read.c (grub_getline): Fix invalid memory access.
16891 Don't add newline to the variable value.
16893 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16894 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16895 (serial_hw_get_port): Check validity of the port number.
16896 (grub_cmd_serial): Check return value of serial_hw_get_port().
16898 2008-07-07 Pavel Roskin <proski@gnu.org>
16900 * boot/i386/pc/diskboot.S (notification_string): Replace
16901 "Loading kernel" with just "loading". This is shorter, less
16902 confusing and saves a few bytes for possible future changes.
16904 2008-07-05 Pavel Roskin <proski@gnu.org>
16906 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16907 size for ATAPI devices, they are undefined. Output sector
16908 number in decimal form.
16910 * disk/ata.c: Use named constants for status bits.
16912 2008-07-04 Pavel Roskin <proski@gnu.org>
16914 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16915 grub_addr_t before casting it to the void pointer to fix a
16916 warning. Non-addressable regions are discarded earlier.
16917 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16918 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16919 (check_signature): Don't shadow table_header.
16920 (grub_linuxbios_table_iterate): Cast numeric constants to
16921 grub_linuxbios_table_header_t.
16922 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16925 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16928 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16929 pointer, which can cause warnings. Support 64-bit addresses.
16931 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16932 of sizeof(long). This fixes PowerPC image generation on x86_64.
16934 2008-07-04 Robert Millan <rmh@aybabtu.com>
16936 This fixes a performance issue when pc & gpt partmap iterators
16937 didn't abort iteration even after our hook found what it was
16938 looking for (often causing expensive probes of non-existent drives).
16940 Some callers relied on previous buggy behaviour, since they would
16941 raise an error when their own hooks caused early abortion of its
16944 * kern/device.c (grub_device_open): Improve error message.
16945 * disk/lvm.c (grub_lvm_open): Likewise.
16946 * disk/raid.c (grub_raid_open): Likewise.
16948 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16949 when hook requests it, independently of grub_errno.
16950 (pc_partition_map_probe): Do not fail when find_func() caused
16951 early abortion of pc_partition_map_iterate().
16953 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16954 when hook requests it, independently of grub_errno.
16955 (gpt_partition_map_probe): Do not fail when find_func() caused
16956 early abortion of gpt_partition_map_iterate().
16958 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16959 when hook requests it, independently of grub_errno. Do not fail when
16960 part_map_iterate_hook() caused early abortion of p->iterate().
16962 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16963 when grub_partition_iterate() returned with non-zero.
16965 2008-07-03 Pavel Roskin <proski@gnu.org>
16967 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16968 like we do in grub_ata_pio_read().
16969 (grub_ata_readwrite): Always write individual sectors. Fix the
16970 sector count for the remainder.
16971 (grub_ata_write): Enable writing to ATA devices. Correctly
16972 report error for ATAPI devices.
16974 2008-07-02 Pavel Roskin <proski@gnu.org>
16976 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16979 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16980 for every read sector, we already increment it for the whole
16981 batch. This fixes reading more than 256 sectors at once.
16983 * util/grub-editenv.c (cmd_info): Cast argument to long
16984 explicitly. ptrdiff_t reduces to int on i386.
16986 * util/grub-editenv.c (main): Be specific which parameter is
16989 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16990 (memdisk): Make memdisk_orig_addr a pointer.
16992 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16993 for file offsets, use grub_off_t instead. Fix printf format
16996 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16997 there. Real unexpected warnings should not drown in the noise
16998 about known problems.
17000 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17001 grub_disk_addr_t for memory addresses.
17003 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17004 explicitly to fix a warning.
17006 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17008 * Makefile.in (MODULE_LDFLAGS): New variable.
17009 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17010 the linker accepts --build-id=none.
17011 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17013 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17015 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17016 those in Linux XFS code. Provide a way to access 64-bit parent
17018 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17019 the end of struct grub_xfs_dir_header.
17021 2008-07-02 Bean <bean123ch@gmail.com>
17023 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17024 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17025 and GRUB_IEEE1275_FLAG_NO_ANSI.
17027 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17028 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17029 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17031 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17032 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17034 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17035 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17037 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17038 esc sequence on non ANSI terminal.
17039 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17041 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17044 2008-07-02 Bean <bean123ch@gmail.com>
17046 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17047 (grub_editenv_SOURCES): New variable.
17048 (pkglib_MODULES): Add loadenv.mod.
17049 (loadenv_mod_SOURCES): New variable.
17050 (loadenv_mod_CFLAGS): Likewise.
17051 (loadenv_mod_LDFLAGS): Likewise.
17053 * include/grub/envblk.h: New file.
17055 * util/envblk.c: New file.
17057 * util/grub-editenv.c: New file.
17059 * commands/loadenv.c: New file.
17061 2008-07-01 Pavel Roskin <proski@gnu.org>
17063 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17064 not unsigned char. This fixes warnings and is consistent with
17067 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17069 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17071 * term/tparm.c (analyze): Always set *popcount.
17073 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17074 cast to fix a warning.
17076 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17077 cast to suppress a warning.
17079 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17080 grub_fshelp_read_file() expects.
17082 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17083 write uuid as a 32-bit value in CPU byte order, so declare and
17086 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17087 long if the format specifier expects it.
17088 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17089 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17090 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17091 long to fix a warning.
17092 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17093 grub_dprintf() arguments to fix warnings.
17095 2008-06-30 Pavel Roskin <proski@gnu.org>
17097 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17098 install_bsd_part immediately before core.img is embedded or
17099 modified on disk. This fixes core.img verification if core.img
17100 cannot be embedded.
17102 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17103 core_path to calculate the blocklist.
17104 Patch from Javier Martín <lordhabbit@gmail.com>
17106 2008-06-29 Robert Millan <rmh@aybabtu.com>
17108 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17109 block to disk block.
17110 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17111 Patch from Niels Böhm <bitbucket@arcor.de>
17113 2008-06-29 Robert Millan <rmh@aybabtu.com>
17115 * util/update-grub_lib.in (font_path): Search for fonts in
17116 /boot/grub first, which is more likely to be readable (we aren't
17117 deciding where fonts live, just looking for them).
17119 2008-06-26 Pavel Roskin <proski@gnu.org>
17121 * util/biosdisk.c (read_device_map): Don't leave dead map
17122 entries for devices failing stat() check.
17124 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17125 core_path_dev for the core.img path on the target device.
17127 2008-06-26 Robert Millan <rmh@aybabtu.com>
17129 * disk/fs_uuid.c: New file.
17130 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17131 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17132 (fs_uuid_mod_LDFLAGS): New variables.
17133 * include/grub/disk.h (grub_disk_dev_id): Add
17134 `GRUB_DISK_DEVICE_UUID_ID'.
17135 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17136 implement iterate().
17138 2008-06-26 Robert Millan <rmh@aybabtu.com>
17140 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17141 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17142 Linux image includes no initrd.
17144 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17146 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17147 call to resolve the core image location that effectively appended the
17150 2008-06-21 Robert Millan <rmh@aybabtu.com>
17152 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17155 * util/grub.d/10_hurd.in: ... to here ...
17156 * util/grub.d/10_linux.in: ... and here.
17158 2008-06-19 Robert Millan <rmh@aybabtu.com>
17160 * kern/main.c (grub_main): Export `prefix' variable immediately
17161 after it has been set by grub_machine_set_prefix().
17163 2008-06-19 Robert Millan <rmh@aybabtu.com>
17165 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17166 search result when not saving to variable, not the other way around.
17167 When saving to variable, abort iteration as soon as a match is found.
17169 2008-06-19 Robert Millan <rmh@aybabtu.com>
17171 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17172 check for partition that provides /boot/grub. Its logic is flawed,
17173 as it prevents prepare_grub_to_access_device() from being called
17176 2008-06-19 Robert Millan <rmh@aybabtu.com>
17178 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17179 "insmod" command directly when abstraction modules are needed,
17180 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17181 since it had already been processed).
17183 2008-06-19 Pavel Roskin <proski@gnu.org>
17185 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17186 changed. This is needed in case GRUB_LIBDIR changes.
17187 * conf/i386-ieee1275.rmk: Likewise.
17188 * conf/i386-linuxbios.rmk: Likewise.
17189 * conf/i386-pc.rmk: Likewise.
17190 * conf/powerpc-ieee1275.rmk: Likewise.
17192 2008-06-18 Pavel Roskin <proski@gnu.org>
17194 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17195 kernel_elf_symlist.c to symlist.c for consistency with other
17196 architectures. Update all users.
17197 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17199 2008-06-18 Robert Millan <rmh@aybabtu.com>
17201 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17204 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17205 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17206 a RAID device, run setup() for all members independently on whether
17207 LVM abstraction is being used.
17208 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17209 If grub-mkimage has set `*install_dos_part == -2', don't override this
17211 Perform *install_dos_part adjustments independently on whether
17212 we're embedding or not.
17213 Clarify error message when image is too big for embedding.
17214 Remove duplicate *install_dos_part stanza.
17216 2008-06-17 Robert Millan <rmh@aybabtu.com>
17218 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17219 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17221 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17222 values in grub_ofconsole_normal_color and
17223 grub_ofconsole_highlight_color (they're not directly related to
17224 background and foreground).
17225 (grub_ofconsole_setcolorstate): Extract background and foreground
17226 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17228 2008-06-17 Robert Millan <rmh@aybabtu.com>
17230 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17231 /boot/grub for the check in last commit, not /boot (they could be
17232 different partitions).
17234 2008-06-16 Robert Millan <rmh@aybabtu.com>
17236 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17237 asked to setup access for the same partition that provides /boot,
17238 don't bother using UUIDs since our root already has the value we
17241 2008-06-16 Robert Millan <rmh@aybabtu.com>
17243 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17245 Patch from Sven Mueller <sven@debian.org>.
17247 2008-06-16 Robert Millan <rmh@aybabtu.com>
17249 * util/update-grub.in: Check for $EUID instead of $UID.
17250 Reported by Vincent Zweije.
17252 2008-06-16 Bean <bean123ch@gmail.com>
17254 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17255 (grub_ext2_read_block): Likewise.
17256 (grub_ext2_read_inode): Likewise.
17257 (grub_ext2_mount): Likewise.
17258 (grub_ext2_close): Likewise.
17259 (grub_ext3_get_journal): Removed.
17261 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17262 (grub_reiserfs_read_symlink): Likewise.
17263 (grub_reiserfs_mount): Likewise.
17264 (grub_reiserfs_open): Likewise.
17265 (grub_reiserfs_read): Likewise.
17266 (grub_reiserfs_close): Likewise.
17267 (grub_reiserfs_get_journal): Removed.
17269 * fs/fshelp.c (grub_fshelp_read): Removed.
17270 (grub_fshelp_map_block): Likewise.
17272 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17273 (grub_fshelp_journal): Likewise.
17274 (grub_fshelp_read): Likewise.
17275 (grub_fshelp_map_block): Likewise.
17277 2008-06-16 Pavel Roskin <proski@gnu.org>
17279 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17280 floating point anymore.
17281 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17283 2008-06-15 Pavel Roskin <proski@gnu.org>
17285 * commands/ls.c (grub_ls_list_files): Use integer calculations
17286 for human readable format, avoid floating point use.
17287 * kern/misc.c (grub_ftoa): Remove.
17288 (grub_vsprintf): Remove floating point support.
17290 2008-06-15 Robert Millan <rmh@aybabtu.com>
17292 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17294 Reported by Max Vozeler.
17296 2008-06-15 Robert Millan <rmh@aybabtu.com>
17298 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17299 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17301 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17302 the beginning of the prefix.
17304 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17305 It is assumed that if we have a memdisk, grub-mkimage has set
17306 grub_prefix to include the "(memdisk)" drive in it.
17308 2008-06-15 Robert Millan <rmh@aybabtu.com>
17310 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17311 Initialize keyboard controller after registering the terminal, so that
17312 grub_printf() can be called from grub_keyboard_controller_init().
17314 2008-06-15 Robert Millan <rmh@aybabtu.com>
17316 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17317 extent-btree which is written as big endian on disk.
17318 Reported by Alain Greppin <al@chilibi.org>.
17320 2008-06-14 Robert Millan <rmh@aybabtu.com>
17322 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17323 * util/i386/pc/grub-install.in (modules): Likewise.
17325 2008-06-13 Pavel Roskin <proski@gnu.org>
17327 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17329 2008-06-13 Bean <bean123ch@gmail.com>
17331 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17333 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17335 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17336 to indicate sparse block.
17338 2008-06-12 Pavel Roskin <proski@gnu.org>
17340 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17341 number, grub_fshelp_read() does it for us.
17343 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17344 linear disk read with journal translation.
17345 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17346 * include/grub/fshelp.h: Declare grub_fshelp_read().
17348 2008-06-09 Pavel Roskin <proski@gnu.org>
17350 * fs/minix.c (grub_minix_mount): Handle error reading
17353 2008-06-08 Robert Millan <rmh@aybabtu.com>
17355 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17356 don't append the RAID prefix afterwards.
17357 Reported by Clint Adams.
17359 2008-06-08 Robert Millan <rmh@aybabtu.com>
17361 Based on description from Pavel:
17362 * kern/disk.c (grub_disk_check_range): Rename to ...
17363 (grub_disk_adjust_range): ... this. Add a comment explaining the
17364 tasks performed by this function.
17366 2008-06-08 Robert Millan <rmh@aybabtu.com>
17368 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17369 `num_serial' (for consistency with other variables).
17370 (struct grub_ntfs_data): Add `uuid' member.
17371 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17372 (grub_ntfs_uuid): New function.
17373 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17375 2008-06-07 Pavel Roskin <proski@gnu.org>
17377 * util/biosdisk.c (open_device): Revert last change to the
17378 function, it broke installation. The sector needs to be
17379 different dependent on which device is opened.
17381 2008-06-06 Robert Millan <rmh@aybabtu.com>
17383 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17384 rest of GRUB, and breakage doesn't happen if its value were modified.
17386 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17387 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17388 a constant (same value).
17389 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17390 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17392 2008-06-06 Robert Millan <rmh@aybabtu.com>
17394 * util/biosdisk.c (open_device): Do not modify sector offset when
17395 accessing a partition. kern/disk.c already handles this for us.
17397 2008-06-06 Robert Millan <rmh@aybabtu.com>
17399 * util/grub-emu.c (grub_machine_init): Move code in this function from
17401 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17402 segfault in case grub_printf() is called).
17404 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17405 grub_probe. Update all users not to explicitly add it again.
17406 (grub_device): New variable; contains corresponding device for grubdir.
17407 (fs_module, partmap_module, devabstraction_module): Pass
17408 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17411 2008-06-05 Robert Millan <rmh@aybabtu.com>
17413 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17414 is found, print it (same layout as with labels).
17416 2008-06-04 Robert Millan <rmh@aybabtu.com>
17418 * util/biosdisk.c (get_drive): Rename to ...
17419 (find_grub_drive): ... this. Update all users.
17421 (get_os_disk): Rename to ...
17422 (convert_system_partition_to_system_disk): ... this. Update all users.
17424 (find_drive): Rename to ...
17425 (find_system_device): ... this. Update all users.
17427 2008-06-04 Robert Millan <rmh@aybabtu.com>
17429 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17430 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17431 (make_device_map): Likewise.
17433 2008-06-01 Robert Millan <rmh@aybabtu.com>
17435 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17436 before dereferencing it.
17438 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17439 union with fat12/fat16-specific ones. Add some new fields, including
17440 `num_serial' for both versions.
17441 (struct grub_fat_data): Add `uuid' member.
17442 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17443 names. Initialize `data->uuid' using `num_serial'.
17444 (grub_fat_uuid): New function.
17445 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17447 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17448 (grub_reiserfs_uuid): New function.
17449 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17452 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17453 (grub_xfs_uuid): New function.
17454 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17456 2008-06-01 Robert Millan <rmh@aybabtu.com>
17458 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17459 code that is backward compatible with pre-uuid search command.
17461 2008-05-31 Robert Millan <rmh@aybabtu.com>
17463 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17464 floppies after everything else, to ensure floppy drive isn't accessed
17465 unnecessarily (patch from Bean).
17467 2008-05-31 Robert Millan <rmh@aybabtu.com>
17469 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17470 not print device names when we were asked to set a variable.
17472 2008-05-31 Robert Millan <rmh@aybabtu.com>
17474 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17475 using "cursor-on" and "cursor-off" commands (understood at least by
17476 the Open Firmware flavour on OLPC).
17478 2008-05-31 Michael Gorven <michael@gorven.za.net>
17480 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17481 on and off sequences.
17483 2008-05-31 Robert Millan <rmh@aybabtu.com>
17485 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17486 * util/update-grub.in: Likewise.
17488 2008-05-30 Pavel Roskin <proski@gnu.org>
17490 * util/biosdisk.c (linux_find_partition): Simplify logic and
17491 make the code more universal. Keep special processing for
17492 devfs, but use a simple rule for all other devices. If the
17493 device ends with a number, append 'p' and the partition number.
17494 Otherwise, append only the partition number.
17496 2008-05-30 Robert Millan <rmh@aybabtu.com>
17498 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17499 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17500 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17501 the `root' parameter to Linux.
17503 2008-05-30 Robert Millan <rmh@aybabtu.com>
17505 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17506 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17507 --fs_uuid with --fs-uuid.
17508 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17509 all filesystems support them).
17511 2008-05-30 Robert Millan <rmh@aybabtu.com>
17513 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17514 grub_printf() flags, since we're printing in units of 2 bytes.
17516 2008-05-30 Robert Millan <rmh@aybabtu.com>
17518 * util/grub.d/00_header.in: Remove obsolete comment referencing
17519 convert_system_path_to_grub_path().
17520 * util/update-grub.in: Likewise.
17521 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17522 (convert_system_path_to_grub_path): Add a warning message explaining
17523 that this function is deprecated. Rely on is_path_readable_by_grub()
17524 for the readability checks.
17525 (font_path): Use is_path_readable_by_grub() for the readability
17526 check rather than convert_system_path_to_grub_path().
17528 2008-05-30 Robert Millan <rmh@aybabtu.com>
17530 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17531 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17532 converting it first.
17533 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17534 grub.cfg for access to font file, and afterwards call it again to set
17537 2008-05-30 Robert Millan <rmh@aybabtu.com>
17539 * commands/search.c (options): Add --fs_uuid option.
17540 (search_fs_uuid): New function.
17541 (grub_cmd_search): Fix --set argument passing.
17542 Use search_fs_uuid() when requested via --fs_uuid.
17543 (grub_search_init): Update help message.
17544 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17545 and redeclare it as an array of 16-bit words.
17546 (grub_ext2_uuid): New function.
17547 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17548 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17549 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17550 (GRUB_DEVICE_BOOT_UUID): New variables.
17551 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17552 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17554 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17555 just assume `root' variable has the right value.
17556 * util/grub.d/10_linux.in: Likewise.
17557 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17559 (main): Recognise `-t fs_uuid' argument.
17561 2008-05-30 Robert Millan <rmh@aybabtu.com>
17563 * util/biosdisk.c (map): Redefine structure to hold information
17564 about GRUB drive name.
17565 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17567 (call_hook): Remove.
17568 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17569 member. Assume drive has partitions.
17570 (grub_util_biosdisk_open): Access device names via `.device' struct
17572 (open_device): Likewise.
17573 (find_drive): Likewise.
17574 (read_device_map): Adjust map[] usage to match the new struct
17575 definition. Don't check for duplicates (still possible, but not cheap
17577 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17578 (make_device_name): Remove assumption of BIOS-like drive names.
17580 2008-05-30 Pavel Roskin <proski@gnu.org>
17582 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17583 compiling execute.c doesn't need grub_script.tab.h anymore.
17584 (normal/command.c_DEPENDENCIES): Likewise.
17585 (normal/function.c_DEPENDENCIES): Likewise.
17586 * conf/i386-ieee1275.rmk: Likewise.
17587 * conf/i386-linuxbios.rmk: Likewise.
17588 * conf/i386-pc.rmk: Likewise.
17589 * conf/powerpc-ieee1275.rmk: Likewise.
17590 * conf/sparc64-ieee1275.rmk: Likewise.
17592 2008-05-29 Pavel Roskin <proski@gnu.org>
17594 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17595 when scanning metadata for volume group name.
17597 * include/grub/script.h: Don't include grub_script.tab.h. It's
17598 a generated file, which may only be included from the files with
17599 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17600 use union YYSTYPE, as the later allows forward declaration.
17601 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17603 2008-05-29 Robert Millan <rmh@aybabtu.com>
17605 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17606 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17607 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17608 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17611 2008-05-29 Robert Millan <rmh@aybabtu.com>
17613 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17614 control key combinations.
17616 2008-05-29 Robert Millan <rmh@aybabtu.com>
17618 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17619 * util/ieee1275/grub-install.in: ... to here.
17620 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17621 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17622 (grub_install_SOURCES): Likewise.
17624 2008-05-29 Robert Millan <rmh@aybabtu.com>
17626 * fs/affs.c: Update copyright year.
17627 * fs/ext2.c: Likewise.
17628 * fs/fshelp.c: Likewise.
17629 * fs/hfsplus.c: Likewise.
17630 * fs/ntfs.c: Likewise.
17631 * fs/xfs.c: Likewise.
17632 * include/grub/fshelp.h: Likewise.
17633 * util/grub-mkdevicemap.c: Likewise.
17635 2008-05-28 Robert Millan <rmh@aybabtu.com>
17637 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17638 might need to be fatfs to support some firmware implementations
17641 2008-05-28 Robert Millan <rmh@aybabtu.com>
17643 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17645 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17646 (make_device_map): Likewise.
17648 2008-05-20 Bean <bean123ch@gmail.com>
17650 * fs/fshelp.c (grub_fshelp_map_block): New function.
17651 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17652 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17654 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17655 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17656 (grub_fshelp_journal): New structure.
17657 (grub_fshelp_map_block): New function prototype.
17658 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17659 (grub_fshelp_map_block): Likewise.
17661 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17662 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17663 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17664 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17665 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17666 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17667 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17668 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17669 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17670 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17671 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17672 (grub_ext2_sblock): New members for journal support.
17673 (grub_ext3_journal_header): New structure.
17674 (grub_ext3_journal_revoke_header): Likewise.
17675 (grub_ext3_journal_block_tag): Likewise.
17676 (grub_ext3_journal_sblock): Likewise.
17677 (grub_fshelp_node): New members logfile and journal.
17678 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17679 grub_fshelp_map_block to get real block number.
17680 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17682 (grub_ext2_read_inode): Likewise.
17683 (grub_ext3_get_journal): New function.
17684 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17685 (grub_ext2_close): Release memory used by journal.
17687 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17688 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17689 (grub_reiserfs_transaction_header): Renamed to
17690 grub_reiserfs_description_block, replace field data with real_blocks.
17691 (grub_reiserfs_commit_block): New structure.
17692 (grub_reiserfs_data): New member journal.
17693 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17695 (grub_reiserfs_read_symlink): Likewise.
17696 (grub_reiserfs_iterate_dir): Likewise.
17697 (grub_reiserfs_open): Likewise.
17698 (grub_reiserfs_read): Likewise.
17699 (grub_reiserfs_get_journal): New function.
17700 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17701 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17702 using grub_reiserfs_get_journal.
17703 (grub_reiserfs_close): Release memory used by journal.
17705 * fs/affs.c (grub_affs_read_block): Change block type to
17706 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17708 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17710 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17712 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17714 * fs/udf.c (grub_udf_read_block): Change block type to
17715 grub_disk_addr_t. Use type cast to avoid warning.
17717 * fs/xfs.c (grub_xfs_read_block): Likewise.
17719 2008-05-16 Christian Franke <franke@computer.org>
17721 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17722 to ensure that break with ESC will always work.
17723 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17724 Remove ESC from keyboard queue.
17726 2008-05-16 Christian Franke <franke@computer.org>
17728 * util/biosdisk.c: [__CYGWIN__] Add includes.
17729 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17730 (get_os_disk): Move variable declarations to OS specific
17731 parts to avoid warning.
17732 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17733 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17734 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17736 * util/getroot.c: [__CYGWIN__] Add includes.
17737 (strip_extra_slashes): Fix "/" case.
17738 [__CYGWIN__] (get_win32_path): New function.
17739 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17740 [__CYGWIN__] (find_root_device): Disable.
17741 [__CYGWIN__] (get_bootsec_serial): New function.
17742 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17743 [__linux__] (grub_guess_root_device): Add early returns to simplify
17745 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17746 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17747 check for Linux only.
17749 2008-05-15 Bean <bean123ch@gmail.com>
17751 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17752 keyboard hang problem in apple's intel mac.
17754 2008-05-09 Robert Millan <rmh@aybabtu.com>
17756 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17758 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17759 (make_device_map): Likewise.
17760 Reported by Aurelien Jarno <aurel32@debian.org>
17762 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17764 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17765 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17766 (make_device_map): Output entries for xvd type disks.
17768 2008-05-07 Robert Millan <rmh@aybabtu.com>
17770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17772 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17773 (make_device_map): Likewise.
17774 Reported by Roland Dreier <rdreier@cisco.com>
17776 2008-05-07 Robert Millan <rmh@aybabtu.com>
17778 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17779 grub_strstr() call. Correct a few mistakes in failure path handling.
17781 2008-05-06 Robert Millan <rmh@aybabtu.com>
17783 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17784 Do not print a trailing slash (therefore, the root directory is an
17786 (convert_system_path_to_grub_path): Do not remove trailing slash
17787 from make_system_path_relative_to_its_root() output.
17789 * util/i386/pc/grub-install.in: Add trailing slash to output from
17790 make_system_path_relative_to_its_root().
17792 2008-05-06 Robert Millan <rmh@aybabtu.com>
17794 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17795 ensures that output lines aren't intermangled with those sent to
17796 stderr (via grub_util_info()).
17797 * util/grub-probe.c (grub_refresh): Likewise.
17798 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17800 2008-05-05 Christian Franke <franke@computer.org>
17802 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17803 Add Cygwin device names.
17804 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17805 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17806 (check_device): Return error instead of success on empty name.
17807 (make_device_map): Move label inside linux specific code to
17808 prevent compiler warning.
17810 2008-04-30 Robert Millan <rmh@aybabtu.com>
17812 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17813 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17815 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17817 2008-04-29 Robert Millan <rmh@aybabtu.com>
17819 * docs/grub.cfg: New file (example GRUB configuration).
17821 2008-04-26 Robert Millan <rmh@aybabtu.com>
17823 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17824 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17825 and `disk/ieee1275/nand.c'.
17827 2008-04-25 Bean <bean123ch@gmail.com>
17829 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17832 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17833 change the buffer size to 4096 for cdrom device.
17835 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17837 (_linux_mod_SOURCES): New variable.
17838 (_linux_mod_CFLAGS): Likewise.
17839 (_linux_mod_LDFLAGS): Likewise.
17840 (linux_mod_SOURCES): Likewise.
17841 (linux_mod_CFLAGS): Likewise.
17842 (linux_mod_LDFLAGS): Likewise.
17843 (nand_mod_SOURCES): Likewise.
17844 (nand_mod_CFLAGS): Likewise.
17845 (nand_mod_LDFLAGS): Likewise.
17847 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17848 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17849 type property. (nand device in olpc don't have this property)
17851 * include/grub/disk.h (grub_disk_dev_id): New macro
17852 GRUB_DISK_DEVICE_NAND_ID.
17854 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17855 function prototype.
17856 (grub_rescue_cmd_initrd): Likewise.
17858 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17859 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17860 ofw_cif_handler and ofw_idt, adjust padding number.
17862 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17863 GRUB_MACHINE_IEEE1275 is defined.
17865 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17866 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17868 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17869 on nested function heap_init.
17870 (grub_upper_mem): New variable for i386-ieee1275.
17871 (grub_get_extended_memory): New function for i386-ieee1275.
17872 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17874 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17875 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17878 * loader/i386/ieee1275/linux.c: New file.
17880 * loader/i386/ieee1275/linux_normal.c: New file.
17882 * disk/ieee1275/nand.c: New file.
17884 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17886 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17888 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17890 2008-04-18 Robert Millan <rmh@aybabtu.com>
17892 Restructures early code path on ieee1275 to unify grub_main() as
17893 the first C function that is executed in every platform.
17895 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17896 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17898 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17899 * kern/ieee1275/cmain.c (cmain): Rename to ...
17900 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17901 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17904 2008-04-18 Robert Millan <rmh@aybabtu.com>
17906 * util/update-grub.in: Fix syntax error when setting
17907 `GRUB_PRELOAD_MODULES'.
17908 Reported by Stephane Chazelas <stephane@artesyncp.com>
17910 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17912 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17913 section into account, newer toolchains generate unique build ids
17914 * configure.ac: remove the test for --build-id=none acceptance,
17915 we want build ids to be preserved
17916 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17917 far from other sections don't cause the raw binary images grow
17920 2008-04-15 Robert Millan <rmh@aybabtu.com>
17922 * disk/lvm.c: Update copyright year.
17923 * kern/misc.c: Likewise.
17925 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17927 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17928 there is no memory left for physical volume name.
17930 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17932 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17933 volume name mapping to support bigger than 9 character names properly.
17935 2008-04-13 Robert Millan <rmh@aybabtu.com>
17937 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17938 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17940 2008-04-13 Christian Franke <franke@computer.org>
17942 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17943 to create a floppy emulation boot CD when non emulation mode
17945 Enable Joliet CD filesystem extension.
17947 2008-04-13 Robert Millan <rmh@aybabtu.com>
17949 * kern/misc.c (grub_strncat): Fix off-by-one error.
17950 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17952 * kern/env.c (grub_env_context_close): Clear current context, not
17954 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17956 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17958 2008-04-13 Robert Millan <rmh@aybabtu.com>
17960 Improve robustness when handling LVM.
17962 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17963 (and leave `*p' unmodified).
17964 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17966 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17967 iterating through it.
17968 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17970 (grub_lvm_scan_device): Check the return value (and fail gracefully
17971 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17972 Don't assume `vg->pvs != NULL' when iterating through it.
17974 2008-04-13 Robert Millan <rmh@aybabtu.com>
17976 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17977 * genmk.rb (partmap): New variable.
17978 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17979 (#{partmap}): New target rule.
17980 * genpartmaplist.sh: New file.
17981 * Makefile.in (pkglib_DATA): Add partmap.lst.
17982 (partmap.lst): New target rule.
17983 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17984 modules (including all partition maps), instead of preloading them.
17986 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17988 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17989 `linux-boot-prober' (if installed) to detect other operating
17990 systems which are installed on the computer and add them to
17992 * conf/common.rmk: Build and install 30_os-prober.
17994 2008-04-12 Robert Millan <rmh@aybabtu.com>
17996 * kern/powerpc/ieee1275/init.c: Move from here ...
17997 * kern/ieee1275/init.c: ... to here. Update all users.
17999 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18000 * kern/ieee1275/cmain.c: ... to here. Update all users.
18002 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18003 * kern/ieee1275/openfw.c: ... to here. Update all users.
18005 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18006 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18008 2008-04-10 Pavel Roskin <proski@gnu.org>
18010 * configure.ac: Always use "_cv_" in cache variables for
18011 compatibility with Autoconf 2.62.
18013 2008-04-07 Robert Millan <rmh@aybabtu.com>
18015 Revert grub/machine/init.h addition by Pavel (since it breaks on
18016 i386-ieee1275 and others):
18017 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18018 * util/powerpc/ieee1275/misc.c: Likewise.
18020 2008-04-07 Robert Millan <rmh@aybabtu.com>
18022 * util/grub-probe.c (probe): Improve error message.
18024 2008-04-07 Robert Millan <rmh@aybabtu.com>
18026 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18027 (this prevents the presence of a bogus entry from ruining the whole
18030 2008-04-06 Pavel Roskin <proski@gnu.org>
18032 * util/biosdisk.c: Include grub/util/biosdisk.h.
18033 * util/grub-fstest.c (execute_command): Make static.
18034 * util/grub-mkdevicemap.c (check_device): Likewise.
18035 * util/i386/pc/misc.c: Include grub/machine/init.h.
18036 * util/powerpc/ieee1275/misc.c: Likewise.
18037 * util/lvm.c: Include grub/util/lvm.h.
18038 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18040 * util/raid.c: Include grub/util/raid.h.
18041 (grub_util_getdiskname): Make static.
18043 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18044 grub_hostfs_fini(), as they are called from grub_init_all() and
18045 grub_fini_all() respectively. This fixes an infinite loop in
18046 grub-fstest due to double registration of hostfs.
18047 Reported by Christian Franke <Christian.Franke@t-online.de>
18049 2008-04-05 Pavel Roskin <proski@gnu.org>
18051 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18052 all 8 functions. Otherwise, probe function 0 only.
18054 2008-04-04 Pavel Roskin <proski@gnu.org>
18056 * commands/lspci.c (grub_lspci_iter): Print the bus number
18059 * commands/lspci.c (grub_pci_classes): Fix typos.
18060 (grub_lspci_iter): Don't print func twice. Print vendor ID
18061 before device ID, as it's normally done.
18063 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18064 Fix signedness warnings.
18065 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18067 * util/ieee1275/get_disk_name.c: Include config.h so that
18068 _GNU_SOURCE is defined and getline() is declared. Mark an
18069 unused argument as such. Fix a signedness warning.
18071 2008-04-02 Pavel Roskin <proski@gnu.org>
18073 * genkernsyms.sh.in: Use more robust assignments for CC and
18074 srcdir. Quote srcdir.
18075 * gensymlist.sh.in: Likewise. Assert at the compile time that
18076 the symbol table is not empty.
18078 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18079 * fs/cpio.c (grub_cpio_read): Likewise.
18081 2008-04-01 Pavel Roskin <proski@gnu.org>
18083 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18084 * disk/host.c (grub_host_open): Likewise.
18085 * disk/loopback.c (grub_loopback_open): Likewise.
18086 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18087 disk->id as in disk/host.c, not a multi-character constant.
18089 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18090 later is obsolete, potentially dangerous and sets a bad example.
18091 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18092 * util/misc.c (grub_util_get_image_size): Likewise.
18094 * disk/loopback.c (options): Improve help for "--partitions".
18096 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18097 options to align them with the short options, e.g. "echo -e".
18099 2008-03-31 Bean <bean123ch@gmail.com>
18101 * video/reader/png.c (grub_png_data): New member is_16bit and
18103 (grub_png_decode_image_header): Detect 16 bit png image.
18104 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18105 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18106 (grub_video_reader_png): Release memory occupied by image_data.
18108 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18110 (grub_nfs_mount): Skip the test for sector per cluster.
18112 * include/grub/ntfs.h (MAX_SPC): Removed.
18114 2008-03-31 Bean <bean123ch@gmail.com>
18116 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18117 (grub_probe_SOURCES): Add fs/afs.c.
18118 (grub_fstest_SOURCES): Likewise.
18119 (afs_mod_SOURCES): New variable.
18120 (afs_mod_CFLAGS): Likewise.
18121 (afs_mod_LDFLAGS): Likewise.
18123 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18124 (grub_emu_SOURCES): Likewise.
18126 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18128 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18130 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18134 * fs/afs.c: New file.
18136 2008-03-30 Pavel Roskin <proski@gnu.org>
18138 * disk/host.c: Include grub/misc.h to fix a warning.
18139 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18140 warnings about implicit declarations.
18142 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18144 * include/grub/i386/loader.h: Change declaration of
18145 grub_linux_boot() to match what grub_loader_set() expects.
18146 * util/getroot.c (grub_guess_root_device): Return const char* to
18148 * util/grub-probe.c (probe): Fix a warning about uninitialized
18149 abstraction_name variable.
18150 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18151 second argument as unused to fix a warning.
18153 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18154 missing grub_error() call.
18156 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18157 2.60 and newer uses it to define datadir.
18159 * commands/sleep.c: Fix warning about implicit declaration.
18160 * disk/memdisk.c: Likewise.
18161 * loader/aout.c: Likewise.
18162 * loader/i386/bsd_normal.c: Likewise.
18163 * util/grub-probe.c: Likewise.
18165 * commands/i386/cpuid.c (has_longmode): Make static.
18166 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18167 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18169 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18170 GDT. This is more robust, as %ds can change.
18171 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18172 calling real_to_prot().
18173 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18175 2008-03-28 Pavel Roskin <proski@gnu.org>
18177 * kern/i386/pc/startup.S: Assert that uncompressed functions
18178 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18179 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18180 code, as they push parts of the code (error handlers) beyond
18181 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18182 code as correctness and size.
18184 2008-03-28 Pavel Roskin <proski@gnu.org>
18186 * kern/i386/pc/startup.S
18187 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18188 data block address to the real mode, keep offset minimal. This
18189 works around a bug in AWARD BIOS on old Athlon systems, which
18190 makes CD detection hang.
18192 2008-03-26 Pavel Roskin <proski@gnu.org>
18194 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18196 * include/grub/normal.h: Add grub_parse_color_name_pair()
18199 2008-03-24 Bean <bean123ch@gmail.com>
18201 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18202 (cd_count): Removed.
18203 (cd_drive): New variable.
18204 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18205 (grub_biosdisk_call_hook): Likewise.
18206 (grub_biosdisk_iterate): Change cdrom detection method.
18207 (grub_biosdisk_open): Replace cd_start with cd_drive.
18208 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18209 detect cdrom device.
18211 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18213 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18214 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18215 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18216 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18217 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18218 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18219 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18220 (grub_biosdisk_cdrp): New structure.
18221 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18223 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18225 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18228 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18231 2008-03-20 Robert Millan <rmh@aybabtu.com>
18233 Remove 2 TiB limit in ata.mod.
18234 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18235 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18236 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18237 grub_uint64_t instead of grub_uint32_t.
18239 2008-03-05 Bean <bean123ch@gmail.com>
18241 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18242 (grub_multiboot): Set boot device.
18244 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18246 2008-03-02 Bean <bean123ch@gmail.com>
18248 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18251 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18253 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18256 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18259 * docs/fdl.texi: New file.
18261 * docs/mdate-sh: New file. Copied from gnulib.
18262 * docs/texinfo.tex: Likewise.
18264 * config.guess: Updated from gnulib.
18265 * install-sh: Likewise.
18267 2008-02-28 Robert Millan <rmh@aybabtu.com>
18269 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18270 (aout_mod_SOURCES): New variable.
18271 (aout_mod_CFLAGS): Likewise.
18272 (aout_mod_LDFLAGS): Likewise.
18274 * conf/i386-ieee1275.rmk: Likewise.
18276 2008-02-28 Robert Millan <rmh@aybabtu.com>
18278 * util/update-grub.in: Reorganise terminal validity check. Accept
18279 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18280 Based on suggestion by Franklin PIAT.
18282 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18284 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18286 * util/getroot.c (grub_util_check_block_device): New function that
18287 returns the given argument if it is a block device and returns NULL else.
18288 * util/grub-probe.c (argument_is_device): New variable.
18289 (probe): Promote device_name from a variable to an argument. Receive
18290 device_name from grub_util_check_block_device() if path is NULL and from
18291 grub_guess_root_device() else. Do not free() device_name anymore.
18292 (options): Introduce new parameter '-d, --device'.
18293 (main): Add description of the new parameter to the help screen.
18294 Rename path variable to argument. Set argument_is_device if the '-d'
18295 option is given. Pass argument to probe() depending on
18296 argument_is_device.
18298 2008-02-24 Bean <bean123ch@gmail.com>
18300 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18301 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18302 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18303 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18304 (GRUB_ISO9660_VOLDESC_END): Likewise.
18305 (grub_iso9660_primary_voldesc): New member escape.
18306 (grub_iso9660_data): New member joliet.
18307 (grub_iso9660_convert_string): New function.
18308 (grub_iso9660_mount): Detect joliet extension.
18309 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18310 (grub_iso9660_iso9660_label): Likewise.
18312 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18313 (grub_setup_SOURCES): Add fs/udf.c.
18314 (grub_fstest_SOURCES): Likewise.
18315 (udf_mod_SOURCES): New variable.
18316 (udf_mod_CFLAGS): Likewise.
18317 (udf_mod_LDFLAGS): Likewise.
18319 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18320 (grub_emu_SOURCES): Likewise.
18322 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18324 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18326 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18330 * fs/udf.c: New file.
18332 2008-02-24 Robert Millan <rmh@aybabtu.com>
18334 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18335 (normal/lexer.c_DEPENDENCIES): New variables.
18336 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18337 (normal/lexer.c_DEPENDENCIES): Likewise.
18338 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18339 (normal/lexer.c_DEPENDENCIES): Likewise.
18340 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18341 (normal/lexer.c_DEPENDENCIES): Likewise.
18342 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18343 (normal/lexer.c_DEPENDENCIES): Likewise.
18344 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18345 (normal/lexer.c_DEPENDENCIES): Likewise.
18347 2008-02-23 Robert Millan <rmh@aybabtu.com>
18349 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18350 since they were intended to be in hex. This didn't break previously
18351 because of a bug in gpt_partition_map_iterate() (see below).
18353 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18354 when checking the validity of GPT header.
18355 Remove `partno', since it always provides the same information as `i'.
18357 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18359 * include/grub/efi/time.h: Fix a wrong comment.
18361 2008-02-19 Pavel Roskin <proski@gnu.org>
18363 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18366 2008-02-19 Bean <bean123ch@gmail.com>
18368 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18369 (aout_mod_SOURCES): New variable.
18370 (aout_mod_CFLAGS): Likewise.
18371 (aout_mod_LDFLAGS): Likewise.
18372 (_bsd_mod_SOURCES): New variable.
18373 (_bsd_mod_CFLAGS): Likewise.
18374 (_bsd_mod_LDFLAGS): Likewise.
18375 (bsd_mod_SOURCES): New variable.
18376 (bsd_mod_CFLAGS): Likewise.
18377 (bsd_mod_LDFLAGS): Likewise.
18379 * include/grub/aout.h: New file.
18381 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18383 * include/grub/i386/bsd.h: New file.
18385 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18388 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18389 function is called, so that it's possible to change it inside the hook.
18390 (grub_elf64_load): Likewise.
18391 (grub_elf_file): Don't close the file if elf header is not found.
18392 (grub_elf_close): Close the file if grub_elf_file fails (The new
18393 grub_elf_file won't close it).
18394 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18395 (grub_elf64_size): Likewise.
18397 * kern/i386/loader.S (grub_unix_real_boot): New function.
18399 * loader/aout.c: New file.
18401 * loader/i386/bsd.c: New file.
18403 * loader/i386/bsd_normal.c: New file.
18405 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18407 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18408 can test other formats.
18410 2008-02-19 Robert Millan <rmh@aybabtu.com>
18412 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18413 (grub_gpt_partition_type_empty): Redefine with macro from
18414 `<grub/gpt_partition.h>'.
18415 (gpt_partition_map_iterate): Adjust partition type comparison.
18417 Export `entry' as partmap-specific `part.data' struct.
18418 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18420 * include/grub/gpt_partition.h (grub_gpt_header)
18421 (grub_gpt_partentry): ... to here (new file).
18423 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18425 (grub_gpt_partition_type_bios_boot): New const variable, defined
18426 with macro from `<grub/gpt_partition.h>'.
18428 (setup): Replace `first_start' with `embed_region', which keeps
18429 track of the embed region (and is partmap-agnostic).
18431 Replace find_first_partition_start() with find_usable_region(),
18432 which finds a usable region for embedding using partmap-specific
18433 knowledge (supports PC/MSDOS and GPT).
18435 Fix all assumptions that the embed region start at sector 1, using
18436 `embed_region.start' from now on. Similarly, use `embed_region.end'
18437 rather than `first_start' to calculate available size.
18439 In grub_util_info() message, replace "into after the MBR" with an
18440 indication of the specific sector our embed region starts at.
18442 2008-02-19 Robert Millan <rmh@aybabtu.com>
18444 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18445 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18446 `commands/reboot.c'.
18447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18448 (halt_mod_SOURCES): Likewise.
18449 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18450 (halt_mod_SOURCES): Likewise.
18452 2008-02-17 Christian Franke <franke@computer.org>
18454 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18456 2008-02-17 Robert Millan <rmh@aybabtu.com>
18458 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18459 set `first_start' to 0 for non-PC/MSDOS partition maps.
18461 2008-02-16 Robert Millan <rmh@aybabtu.com>
18463 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18464 do not assume partition map is PC/MSDOS before performing checks that
18465 are specific to that layout.
18467 2008-02-13 Robert Millan <rmh@aybabtu.com>
18469 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18470 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18471 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18473 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18475 * configure.ac: Only a cosmetic change on the handling of
18476 -fno-stack-protector.
18478 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18480 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18481 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18483 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18484 (halt_mod_SOURCES): New variable.
18485 (halt_mod_CFLAGS): Likewise.
18486 (halt_mod_LDFLAGS): Likewise.
18487 (reboot_mod_SOURCES): Likewise.
18488 (reboot_mod_CFLAGS): Likewise.
18489 (reboot_mod_LDFLAGS): Likewise.
18491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18492 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18494 (halt_mod_SOURCES): Likewise.
18495 (reboot_mod_SOURCES): Likewise.
18497 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18498 commands/i386/pc/reboot.c by commands/reboot.c.
18499 (reboot_mod_SOURCES): Likewise.
18501 * commands/i386/pc/reboot.c: merge this file ...
18503 * commands/ieee1275/reboot.c: ... and this file ...
18505 * commands/reboot.c: ... to this file.
18506 Add some precompiler directive to include the correct header for
18509 * commands/ieee1275/halt.c: move this file ...
18511 * commands/halt.c: ... to here.
18512 Add some precompiler directive to include the correct header for
18515 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18516 (grub_halt): Likewise.
18518 * kern/efi/efi.c (grub_reboot): New function.
18519 (grub_halt): Likewise.
18521 2008-02-12 Robert Millan <rmh@aybabtu.com>
18523 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18524 /dev (like it is done for /dev/mapper). This doesn't provide support
18525 for EVMS, but at least it is now easy to identify the problem when it
18528 2008-02-11 Robert Millan <rmh@aybabtu.com>
18530 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18531 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18532 comparing it with -1, not 0.
18534 2008-02-10 Robert Millan <rmh@aybabtu.com>
18536 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18539 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18541 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18542 `disk/lvm.c' to the end of the list.
18543 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18544 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18546 2008-02-10 Robert Millan <rmh@aybabtu.com>
18548 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18549 grub_print_error() instead. This will let user know why we're entering
18551 Based on suggestions from Sam Morris.
18553 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18555 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18556 on remaining N args, instead of "--" arg N times.
18558 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18560 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18561 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18562 pattern for unknown glyphs.
18564 2008-02-09 Robert Millan <rmh@aybabtu.com>
18566 * configure.ac: Probe for `help2man'.
18567 * Makefile.in (builddir): New variable.
18568 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18569 or otherwise add a few flags/options to it.
18570 (install-local): For every executable utility or script that is
18571 installed, invoke $(HELP2MAN) to install a manpage based on --help
18574 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18575 that it doesn't prevent --help from working in build tree.
18577 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18578 with `bug-grub@gnu.org'.
18579 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18580 * util/update-grub.in (usage): New function.
18581 Implement proper argument check, with support for --help and --version
18582 (as well as existing -y).
18584 2008-02-09 Christian Franke <franke@computer.org>
18586 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18587 avoid overwriting previous output.
18588 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18590 2008-02-09 Robert Millan <rmh@aybabtu.com>
18592 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18595 2008-02-09 Robert Millan <rmh@aybabtu.com>
18597 * commands/sleep.c: New file.
18598 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18599 (sleep_mod_SOURCES): New variable.
18600 (sleep_mod_CFLAGS): Likewise.
18601 (sleep_mod_LDFLAGS): Likewise.
18603 2008-02-09 Robert Millan <rmh@aybabtu.com>
18605 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18606 situations in which we can deduce the RAID size and the superblock
18609 2008-02-09 Robert Millan <rmh@aybabtu.com>
18611 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18612 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18613 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18615 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18616 and return a grub_diskmemberlist_t composed of physical array members.
18617 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18619 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18621 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18622 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18623 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18625 * util/grub-probe.c (probe): Move partmap probing code from here ...
18626 (probe_partmap): ... to here.
18627 (probe): Use probe_partmap() once for the disk we're probing, and
18628 additionally, when such disk contains a memberlist() struct member,
18629 once for each disk that is contained in the structure returned by
18632 2008-02-09 Robert Millan <rmh@aybabtu.com>
18634 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18635 environment variable to 'all' in order to obtain debug output from
18637 * util/i386/pc/grub-setup.c (main): Likewise.
18639 2008-02-08 Robert Millan <rmh@aybabtu.com>
18641 * disk/raid.c (grub_raid_scan_device): Check for
18642 `array->device[sb.this_disk.number]' rather than for
18643 `array->device[sb.this_disk.number]->name', since the latter is not
18644 guaranteed to be accessible.
18646 2008-02-08 Robert Millan <rmh@aybabtu.com>
18648 * disk/raid.c: Update copyright.
18649 * fs/cpio.c: Likewise.
18650 * include/grub/raid.h: Likewise.
18651 * loader/i386/pc/multiboot.c: Likewise.
18652 * util/hostfs.c: Likewise.
18654 2008-02-08 Robert Millan <rmh@aybabtu.com>
18656 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18657 to a grub_disk_t array.
18658 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18660 (grub_raid_scan_device): Replace `device[x].name' accesses with
18661 `device[x]->name'. Simplify initialization of `array->device[x]'.
18663 2008-02-08 Robert Millan <rmh@aybabtu.com>
18665 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18666 grub_dprintf() calls.
18667 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18670 2008-02-07 Christian Franke <franke@computer.org>
18672 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18673 instead of fseek and ftell to support large files.
18674 (grub_hostfs_read): Likewise.
18676 2008-02-07 Robert Millan <rmh@aybabtu.com>
18678 Patch from Jeroen Dekkers.
18679 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18680 failure, since successfully reading all array members might not be
18683 2008-02-06 Robert Millan <rmh@aybabtu.com>
18685 * util/grub-probe.c (probe): Simplify partmap probing (with the
18686 assumption that the first word up to the underscore equals to
18689 2008-02-06 Christian Franke <franke@computer.org>
18691 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18692 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18693 last block of a cpio or tar stream.
18694 Check for "TRAILER!!!" instead of any empty data
18695 block to detect last block of a cpio stream.
18696 (grub_cpio_dir): Fix constness of variable np.
18697 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18698 cpio or tar trailer is detected. This fixes a crash
18699 on open of a non existing file.
18701 2008-02-05 Bean <bean123ch@gmail.com>
18703 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18705 (grub_multiboot_load_elf64): Likewise.
18706 (grub_multiboot): Initialize mbi structure.
18708 * util/grub-fstest.c: Don't include unused header file script.h.
18710 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18712 (grub_fstest_SOURCES): Likewise.
18714 2008-02-05 Robert Millan <rmh@aybabtu.com>
18716 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18717 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18718 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18719 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18721 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18722 (translation_table): Replace hardcoded values with macros
18723 provided by `<grub/term.h>'.
18725 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18726 (keyboard_map): Correct/add a few values, with macros provided
18727 by `<grub/term.h>'.
18728 (keyboard_map_shift): Zero values that don't differ from their
18729 `keyboard_map' equivalents.
18730 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18731 Discard the second scan code that is always sent by Caps lock.
18732 Only use `keyboard_map_shift' when it provides a non-zero value,
18733 otherwise fallback to `keyboard_map'.
18735 2008-02-04 Bean <bean123ch@gmail.com>
18737 * Makefile.in (enable_grub_fstest): New variable.
18739 * conf/common.rmk (grub_fstest_init.lst): New rule.
18740 (grub_fstest_init.h): Likewise.
18741 (grub_fstest_init.c): Likewise.
18742 (util/grub-fstest.c_DEPENDENCIES): New variable.
18743 (grub_fstest_SOURCES): Likewise.
18745 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18747 * util/grub-fstest.c: New file.
18749 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18751 Make grub-setup handle a separate root device.
18753 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18754 so that the root device can be compared with the destination
18756 When embedding the core image, if the root and destination devices
18757 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18759 When not embedding, set ROOT_DRIVE to 0xFF.
18761 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18763 Add support for having a grub directory in a different drive. This
18764 is still only the data handling part.
18766 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18767 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18768 (grub_root_drive): New variable.
18770 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18771 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18772 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18775 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18777 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18779 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18781 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18782 is bogus, because PXE booting does not specify any drive
18785 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18786 am not sure if this is really correct.
18788 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18789 is always identical to the boot drive when booting from a CD.
18791 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18793 (root_drive): New variable.
18794 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18795 (setup_sectors): Push %dx right after popping it, because %dh will
18797 (copy_buffer): Restore %dx.
18799 2008-02-03 Robert Millan <rmh@aybabtu.com>
18801 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18802 use `cdboot.img' for cdrom images.
18804 2008-02-03 Robert Millan <rmh@aybabtu.com>
18806 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18807 only setup gfxterm when `font' command has succeeded.
18809 2008-02-03 Robert Millan <rmh@aybabtu.com>
18811 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18812 (grub_rescue_cmd_multiboot_loader)
18813 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18815 2008-02-03 Pavel Roskin <proski@gnu.org>
18817 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18818 %edx and %esi from stack only after grub_gate_a20() is called.
18819 grub_gate_a20() clobbers %edx.
18821 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18823 * configure.ac (AC_INIT): Bumped to 1.96.
18825 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18826 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18827 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18828 video/readers/png.c.
18830 2008-02-03 Bean <bean123ch@gmail.com>
18832 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18833 (cdboot_img_SOURCES): New variable.
18834 (cdboot_img_ASFLAGS): New variable.
18835 (cdboot_img_LDFLAGS): New variable.
18837 * boot/i386/pc/cdboot.S: New file.
18839 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18840 (cd_count): Likewise.
18841 (grub_biosdisk_get_drive): Add support for cd device.
18842 (grub_biosdisk_call_hook): Likewise.
18843 (grub_biosdisk_iterate): Likewise.
18844 (grub_biosdisk_open): Likewise.
18845 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18846 (grub_biosdisk_rw): Support reading from cd device.
18847 (GRUB_MOD_INIT): Iterate cd devices.
18849 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18850 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18851 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18853 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18855 2008-02-02 Robert Millan <rmh@aybabtu.com>
18857 * commands/read.c: New file.
18858 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18859 (read_mod_SOURCES): New variable.
18860 (read_mod_CFLAGS): Likewise.
18861 (read_mod_LDFLAGS): Likewise.
18863 2008-02-02 Robert Millan <rmh@aybabtu.com>
18865 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18866 determining whether menu has to be displayed.
18868 2008-02-02 Marco Gerards <marco@gnu.org>
18870 * bus/pci.c: New file.
18872 * include/grub/pci.h: Likewise.
18874 * include/grub/i386/pc/pci.h: Likewise.
18876 * commands/lspci.c: Likewise.
18878 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18880 (pci_mod_SOURCES): New variable.
18881 (pci_mod_CFLAGS): Likewise.
18882 (pci_mod_LDFLAGS): Likewise.
18883 (lspci_mod_SOURCES): Likewise.
18884 (lspci_mod_CFLAGS): Likewise.
18885 (lspci_mod_LDFLAGS): Likewise.
18887 2008-02-02 Bean <bean123ch@gmail.com>
18889 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18890 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18892 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18893 (grub_xfs_btree_node): New structure.
18894 (grub_xfs_btree_root): New structure.
18895 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18896 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18897 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18898 (GRUB_XFS_EXTENT_SIZE): Likewise.
18899 (grub_xfs_read_block): Support btree format type.
18900 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18901 Use directory block as basic unit.
18903 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18905 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18906 __attribute__ ((__regparm__ (1))).
18908 2008-02-01 Robert Millan <rmh@aybabtu.com>
18910 Correct a mistake in previous commit.
18912 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18914 (normal/command.c_DEPENDENCIES): New variable.
18916 2008-02-01 Robert Millan <rmh@aybabtu.com>
18918 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18920 (normal/command.c_DEPENDENCIES): New variable.
18921 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18922 * conf/i386-ieee1275.rmk: Likewise.
18923 * conf/i386-linuxbios.rmk: Likewise.
18924 * conf/i386-pc.rmk: Likewise.
18925 * conf/sparc64-ieee1275.rmk: Likewise.
18926 * conf/powerpc-ieee1275.rmk: Likewise.
18927 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18929 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18931 2008-02-01 Robert Millan <rmh@aybabtu.com>
18933 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18934 call at beginning of function.
18936 2008-01-31 Pavel Roskin <proski@gnu.org>
18938 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18939 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18940 (grub_mkrescue_SOURCES): Likewise.
18941 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18943 2008-01-30 Robert Millan <rmh@aybabtu.com>
18945 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18946 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18947 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18948 (grub_probe_SOURCES): ... to here.
18950 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18951 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18952 * conf/i386-ieee1275.rmk: Likewise.
18953 * conf/i386-linuxbios.rmk: Likewise.
18954 * conf/powerpc-ieee1275.rmk: Likewise.
18956 2008-01-30 Tristan Gingold <gingold@free.fr>
18958 * kern/rescue.c: Silently accept empty lines.
18960 2008-01-29 Bean <bean123ch@gmail.com>
18962 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18963 (real_code_2): Code cleanup and change comment style.
18964 (move_memory): Avoid using 32-bit address mode.
18966 2008-01-29 Bean <bean123ch@gmail.com>
18968 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18969 (png_mod_SOURCES): New variable.
18970 (png_mod_CFLAGS): Likewise.
18971 (png_mod_LDFLAGS): Likewise.
18973 * video/readers/png.c: New file.
18975 2008-01-28 Robert Millan <rmh@aybabtu.com>
18977 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18978 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18979 `ifndef GRUB_MOD_GAP' hack.
18980 * util/elf/grub-mkimage.c (add_segments): Likewise.
18982 2008-01-27 Robert Millan <rmh@aybabtu.com>
18984 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18985 `GRUB_MOD_GAP' for platforms in which it's not defined.
18986 * util/elf/grub-mkimage.c (add_segments): Likewise.
18988 2008-01-27 Robert Millan <rmh@aybabtu.com>
18990 Get grub-emu to build again (including parallel builds).
18992 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18994 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18995 (normal/execute.c_DEPENDENCIES): ... this, ...
18996 (grub-emu_DEPENDENCIES): ... and this.
18998 * conf/i386-efi.rmk: Likewise.
18999 * conf/i386-linuxbios.rmk: Likewise.
19000 * conf/i386-ieee1275.rmk: Likewise.
19001 * conf/powerpc-ieee1275.rmk: Likewise.
19002 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19004 2008-01-27 Robert Millan <rmh@aybabtu.com>
19006 * NEWS: Add a few items.
19008 2008-01-27 Robert Millan <rmh@aybabtu.com>
19010 Fix parallel builds with grub-emu. Based on earlier commit for
19011 grub-probe and grub-setup.
19013 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19014 (util/grub-emu.c_DEPENDENCIES): ... this.
19015 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19016 (util/grub-emu.c_DEPENDENCIES): ... this.
19017 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19018 (util/grub-emu.c_DEPENDENCIES): ... this.
19019 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19020 (util/grub-emu.c_DEPENDENCIES): ... this.
19021 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19022 (util/grub-emu.c_DEPENDENCIES): ... this.
19024 2008-01-27 Pavel Roskin <proski@gnu.org>
19026 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19027 to create a gap between _end and the modules added to the image
19028 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19029 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19030 * util/elf/grub-mkimage.c (add_segments): Likewise.
19032 2008-01-26 Pavel Roskin <proski@gnu.org>
19034 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19035 just return an error.
19037 2008-01-26 Bean <bean123ch@gmail.com>
19039 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19040 (grub_reiserfs_get_item): Save offset of the next item.
19041 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19043 2008-01-25 Robert Millan <rmh@aybabtu.com>
19045 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19046 make all filesystem sources appear together (possibly fixing omissions
19048 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19049 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19050 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19053 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19055 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19056 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19057 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19058 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19060 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19061 (probe): Add a sanity check to make sure of our ability to read
19062 requested files when probing for filesystem type.
19064 * genmk.rb: Update copyright year (2007).
19066 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19067 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19068 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19069 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19070 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19071 : Remove function prototypes.
19073 2008-01-25 Robert Millan <rmh@aybabtu.com>
19075 Revert my previous commits (based on wrong assumption of how grub_errno
19078 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19079 * kern/file.c (grub_file_open): Likewise.
19081 2008-01-24 Pavel Roskin <proski@gnu.org>
19083 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19084 that hang if GRUB tries to setup colors.
19085 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19086 colors for firmwares that don't support it.
19087 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19088 Recognize Open Hack'Ware, set flags to work around its
19091 2008-01-24 Robert Millan <rmh@aybabtu.com>
19093 * kern/file.c (grub_file_open): Do not account previous failures of
19094 unrelated functions when grub_errno is checked for.
19095 Reported by Oleg Strikov.
19097 2008-01-24 Bean <bean123ch@gmail.com>
19099 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19100 (grub_ufs_sblock): New member volume name.
19101 (grub_ufs_find_file): Fix string copy bug.
19102 (grub_ufs_label): Implement this function properly.
19104 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19105 (grub_hfs_iterate_records): Use the correct file number for extents
19106 and catalog file. Fix problem in next index calculation.
19107 (grub_hfs_find_node): Replace recursive function call with loop.
19108 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19110 2008-01-23 Robert Millan <rmh@aybabtu.com>
19112 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19113 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19114 (grub_multiboot2_real_boot): New function prototype.
19116 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19117 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19119 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19120 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19122 2008-01-23 Robert Millan <rmh@aybabtu.com>
19124 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19125 #ifdef'ed out grub_printf().
19127 2008-01-23 Robert Millan <rmh@aybabtu.com>
19129 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19130 grub_dprintf calls, since they make "debug=all" mode unusable.
19131 (grub_console_checkkey): Likewise.
19133 2008-01-23 Robert Millan <rmh@aybabtu.com>
19135 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19136 `term/i386/pc/at_keyboard.c'.
19137 (pkglib_MODULES): Add `serial.mod'.
19138 (serial_mod_SOURCES): New variable.
19139 (serial_mod_CFLAGS): Likewise.
19140 (serial_mod_LDFLAGS): Likewise.
19142 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19143 `<grub/powerpc/ieee1275/console.h>'.
19144 (grub_keyboard_controller_init): New function prototype.
19145 (grub_console_checkkey): Likewise.
19146 (grub_console_getkey): Likewise.
19148 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19151 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19152 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19154 2008-01-23 Robert Millan <rmh@aybabtu.com>
19156 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19157 present, "(memdisk)/boot/grub" becomes the default prefix.
19159 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19160 a memdisk tarball with all the modules. Add --overlay=DIR option that
19161 allows users to overlay additional files into the image.
19163 2008-01-23 Robert Millan <rmh@aybabtu.com>
19165 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19166 and `machine/memory.h'.
19167 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19168 (_multiboot_mod_SOURCES): New variable.
19169 (_multiboot_mod_CFLAGS): Likewise.
19170 (_multiboot_mod_LDFLAGS): Likewise.
19171 (multiboot_mod_SOURCES): Likewise.
19172 (multiboot_mod_CFLAGS): Likewise.
19173 (multiboot_mod_LDFLAGS): Likewise.
19175 * include/grub/i386/ieee1275/loader.h: New file.
19177 * include/grub/i386/ieee1275/machine.h: Likewise.
19179 * include/grub/i386/ieee1275/memory.h: Likewise.
19181 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19182 variable declaration.
19183 (grub_os_area_size): Likewise.
19185 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19186 (grub_lower_mem, grub_upper_mem): New variables.
19187 (grub_stop_floppy): New function (just to make
19188 grub_multiboot2_real_boot() happy).
19190 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19191 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19192 (grub_stop): New function.
19193 Include `"../realmode.S"' and `"../loader.S"'.
19195 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19196 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19198 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19199 rely on grub_multiboot2_real_boot() for final boot.
19201 2008-01-22 Robert Millan <rmh@aybabtu.com>
19203 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19204 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19205 device that doesn't look like an SD card.
19206 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19207 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19208 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19209 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19212 2008-01-22 Robert Millan <rmh@aybabtu.com>
19214 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19215 avoid claiming over our own code.
19217 2008-01-22 Bean <bean123ch@gmail.com>
19219 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19220 (jpeg_mod_SOURCES): New variable.
19221 (jpeg_mod_CFLAGS): Likewise.
19222 (jpeg_mod_LDFLAGS): Likewise.
19224 * video/readers/jpeg.c : New file.
19226 2008-01-22 Bean <bean123ch@gmail.com>
19228 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19229 there are no more items.
19231 2008-01-21 Robert Millan <rmh@aybabtu.com>
19233 * kern/mm.c (grub_mm_init_region): Improve debug message.
19235 2008-01-21 Robert Millan <rmh@aybabtu.com>
19237 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19238 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19240 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19242 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19243 Indicates start of upper memory.
19244 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19245 (generate_image): Abort when image size is big enough to corrupt
19248 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19249 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19250 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19251 instead of hardcoding 0xA0000.
19252 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19253 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19254 instead of hardcoding 0xA0000.
19256 2008-01-21 Robert Millan <rmh@aybabtu.com>
19258 * disk/memdisk.c (memdisk_size): New variable.
19259 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19261 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19262 image to dynamic memory.
19263 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19264 `memdisk_size'. Free memdisk block.
19266 2008-01-21 Robert Millan <rmh@aybabtu.com>
19268 Fix detection of very small filesystems (like tar).
19270 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19271 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19272 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19273 a problem with this disk).
19275 2008-01-21 Robert Millan <rmh@aybabtu.com>
19277 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19278 on grub_biosdisk_rw_standard() error.
19280 2008-01-21 Robert Millan <rmh@aybabtu.com>
19282 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19284 * kern/elf.c: Likewise.
19285 * kern/ieee1275/ieee1275.c: Likewise.
19286 * kern/powerpc/ieee1275/openfw.c: Likewise.
19287 * term/ieee1275/ofconsole.c: Likewise.
19289 2008-01-21 Robert Millan <rmh@aybabtu.com>
19291 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19293 * include/grub/kernel.h (grub_arch_memdisk_addr)
19294 (grub_arch_memdisk_size): Moved from here ...
19296 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19297 (grub_arch_memdisk_size): ... to here.
19299 2008-01-21 Robert Millan <rmh@aybabtu.com>
19301 Mostly based on bugfix from Bean.
19303 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19304 attribute with hook() parameter.
19305 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19307 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19308 attribute with hook() parameter.
19309 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19312 2008-01-21 Robert Millan <rmh@aybabtu.com>
19314 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19315 (pkglib_MODULES): Add `memdisk.mod'.
19316 (memdisk_mod_SOURCES): New variable.
19317 (memdisk_mod_CFLAGS): Likewise.
19318 (memdisk_mod_LDFLAGS): Likewise.
19320 * disk/memdisk.c: New file.
19322 * include/grub/disk.h (grub_disk_dev_id): Add
19323 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19325 * include/grub/i386/pc/kernel.h
19326 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19327 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19328 (grub_kernel_image_size): New variable declaration.
19329 (grub_total_module_size): Likewise.
19330 (grub_memdisk_image_size): Likewise.
19332 * include/grub/i386/pc/memory.h
19333 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19335 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19336 (grub_arch_memdisk_addr): New variable declaration.
19337 (grub_arch_memdisk_size): Likewise.
19339 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19340 (grub_arch_memdisk_size): Likewise.
19342 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19343 (codestart): Replace hardcoded `0x100000' with
19344 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19346 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19347 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19348 not NULL, append the contents of the file it refers to, at the end of
19349 the compressed kernel image. Initialize `grub_memdisk_image_size'
19350 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19351 (options): Add "memdisk"|'m' option.
19352 (main): Parse --memdisk|-m option, and pass user-provided path as
19353 parameter to generate_image().
19355 2008-01-20 Robert Millan <rmh@aybabtu.com>
19357 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19358 grub_dprintf() calls from here ...
19359 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19361 2008-01-20 Robert Millan <rmh@aybabtu.com>
19363 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19365 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19367 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19368 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19369 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19370 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19372 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19373 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19375 2008-01-19 Robert Millan <rmh@aybabtu.com>
19377 Get rid of confusing function (superseded by
19378 `grub_ieee1275_get_integer_property')
19379 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19381 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19383 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19384 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19385 in native endianness from grub_ieee1275_get_integer_property().
19387 2008-01-19 Robert Millan <rmh@aybabtu.com>
19389 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19390 command after "shut-down", since implementations differ on which
19391 the command for halt is.
19393 2008-01-19 Robert Millan <rmh@aybabtu.com>
19395 * include/grub/i386/linuxbios/console.h: Add header protection.
19396 (grub_keyboard_controller_init): New function prototype.
19397 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19398 (KEYBOARD_COMMAND_READ): Likewise.
19399 (KEYBOARD_COMMAND_WRITE): Likewise.
19400 (KEYBOARD_SCANCODE_SET1): Likewise.
19401 (grub_keyboard_controller_write): New function.
19402 (grub_keyboard_controller_read): Likewise.
19403 (grub_keyboard_controller_init): Likewise.
19405 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19406 (grub_console_init): On coreboot/LinuxBIOS, call
19407 grub_keyboard_controller_init().
19409 2008-01-19 Robert Millan <rmh@aybabtu.com>
19411 PowerPC changes provided by Pavel Roskin.
19413 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19414 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19415 don't rely on cmain() doing it.
19416 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19417 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19419 2008-01-16 Robert Millan <rmh@aybabtu.com>
19421 * include/grub/i386/linuxbios/memory.h
19422 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19423 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19424 receive `table_header' as argument. Instead, probe for it in the
19425 known memory ranges where it can be present.
19426 (grub_available_iterate): Do not pass a fixed `table_header' address
19427 to grub_linuxbios_table_iterate().
19429 2008-01-15 Robert Millan <rmh@aybabtu.com>
19431 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19432 * conf/i386-ieee1275.rmk: New file.
19433 * include/grub/i386/ieee1275/console.h: Likewise.
19434 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19435 * include/grub/i386/ieee1275/kernel.h: Likewise.
19436 * include/grub/i386/ieee1275/time.h: Likewise.
19437 * kern/i386/ieee1275/init.c: Likewise.
19438 * kern/i386/ieee1275/startup.S: Likewise.
19440 2008-01-15 Robert Millan <rmh@aybabtu.com>
19442 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19443 when pointers are 32-bit (but still do set it to one when they are
19446 2008-01-15 Robert Millan <rmh@aybabtu.com>
19448 * include/grub/ieee1275/ieee1275.h
19449 (grub_ieee1275_get_integer_property): New function prototype.
19451 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19452 (grub_ieee1275_get_integer_property): New function. Wraps around
19453 grub_ieee1275_get_property() to handle endianness.
19455 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19456 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19458 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19459 (grub_map): Likewise.
19460 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19462 2008-01-15 Bean <bean123ch@gmail.com>
19464 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19465 (grub_script_execute_cmdline): Reset grub_errno.
19467 * normal/main.c (read_config_file): Reset grub_errno.
19469 * normal/parse.y (script_init): New.
19470 (script): Move function and menuentry here.
19472 (command): Add delimiter at the end of command.
19473 (commands): Adjust to match the new command.
19474 (commandblock): Remove grub_script_lexer_record_start.
19475 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19476 (if): Use the new commands.
19478 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19480 2008-01-15 Robert Millan <rmh@aybabtu.com>
19482 * normal/menu.c (run_menu): Move timeout message from here ...
19483 (print_timeout): ... to here.
19484 (run_menu): Use print_timeout() once during initial draw to print
19485 the whole message, and again in every clock tick to update only
19486 the number of seconds.
19488 2008-01-15 Robert Millan <rmh@aybabtu.com>
19490 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19491 actual size of `available' from grub_ieee1275_get_property(), and
19492 restrict parsing to that bound.
19494 2008-01-15 Christian Franke <franke@computer.org>
19496 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19497 (argp_program_version): Remove variable.
19498 (argp_program_bug_address): Likewise.
19499 (options): Convert from struct argp_option to struct option.
19500 (struct arguments): Remove.
19501 (parse_opt): Remove.
19502 (usage): New function.
19503 (main): Replace struct args members by simple variables.
19504 Replace argp_parse() by getopt_long().
19505 Add switch to evaluate options.
19506 Add missing "(...)" around root_dev in prefix string.
19508 2008-01-14 Robert Millan <rmh@aybabtu.com>
19510 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19511 for grub_ieee1275_exit(), in order to improve portability.
19513 2008-01-14 Robert Millan <rmh@aybabtu.com>
19515 * util/grub.d/10_linux.in (prefix): Define.
19516 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19518 2008-01-13 Pavel Roskin <proski@gnu.org>
19520 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19521 grub_errno if no errors have been detected.
19523 2008-01-12 Robert Millan <rmh@aybabtu.com>
19525 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19526 (grub_util_get_dev_abstraction): New function prototype.
19528 * util/getroot.c: Include `<grub/util/getroot.h>'
19529 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19530 (grub_util_get_dev_abstraction): ... here (new function).
19532 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19533 `PRINT_ABSTRACTION'.
19534 (probe): Probe for abstraction type when requested.
19535 (main): Understand `--target=abstraction'.
19537 * util/i386/efi/grub-install.in: Add abstraction module to core
19538 image when it is found to be necessary.
19539 * util/i386/pc/grub-install.in: Likewise.
19540 * util/powerpc/ieee1275/grub-install.in: Likewise.
19542 * util/update-grub_lib.in (font_path): Return system path without
19543 converting to GRUB path.
19544 * util/update-grub.in: Convert system path returned by font_path()
19545 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19546 abstraction module is needed for loading fonts (if any). Export
19547 that as `GRUB_PRELOAD_MODULES'.
19548 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19551 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19553 Remove some unused code from reiserfs.
19555 * fs/reiserfs.c (struct grub_reiserfs_key)
19556 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19557 (struct grub_reiserfs_node_body): Removed.
19558 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19560 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19562 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19564 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19566 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19568 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19570 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19571 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19572 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19574 2008-01-10 Robert Millan <rmh@aybabtu.com>
19576 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19577 Determines if a file is garbage left by packaging systems, etc.
19578 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19579 for processing /etc/grub.d scripts.
19580 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19581 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19582 as a condition for processing Linux images.
19584 2008-01-10 Pavel Roskin <proski@gnu.org>
19586 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19587 to compile reiserfs.c on PowerPC.
19589 2008-01-10 Robert Millan <rmh@aybabtu.com>
19591 * kern/device.c (grub_device_iterate): Do not abort device iteration
19592 when one of the devices cannot be opened.
19593 * kern/disk.c (grub_disk_open): Do not account previous failures of
19594 unrelated functions when grub_errno is checked for.
19596 2008-01-08 Robert Millan <rmh@aybabtu.com>
19598 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19599 `! grub_linux_is_bzimage', change order of address comparison to make
19600 it more intuitive, and improve "too big zImage" error message.
19602 2008-01-08 Robert Millan <rmh@aybabtu.com>
19604 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19605 `$(update-grub_DATA)'.
19606 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19609 2008-01-07 Robert Millan <rmh@aybabtu.com>
19611 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19612 which instruction is modified by grub-setup during installation
19613 (since it wasn't obvious by only looking at this file).
19615 2008-01-07 Robert Millan <rmh@aybabtu.com>
19617 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19618 listing actual TODO items.
19620 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19622 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19624 (grub_reiserfs_get_key_offset): Likewise.
19625 (grub_reiserfs_set_key_offset): Likewise.
19626 (grub_reiserfs_set_key_type): Likewise.
19627 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19629 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19630 better to remove the bitfield version completely.
19632 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19634 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19635 allocated from the heap, due to the fshelp implementation.
19636 (grub_reiserfs_dir): Free NODE, due to the same reason.
19638 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19640 Mostly from Vincent Pelletier:
19642 * fs/reiserfs.c: New file.
19644 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19645 (reiserfs_mod_SOURCES): New variable.
19646 (reiserfs_mod_CFLAGS): Likewise.
19647 (reiserfs_mod_LDFLAGS): Likewise.
19649 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19650 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19651 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19654 2008-01-06 Robert Millan <rmh@aybabtu.com>
19656 * normal/color.c: Remove `<grub/env.h>'.
19658 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19660 * include/grub/normal.h: Include <grub/env.h>.
19662 2008-01-05 Robert Millan <rmh@aybabtu.com>
19664 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19665 usage example with `(hd0,1)'.
19666 Reported by Samuel Thibault.
19668 2008-01-05 Robert Millan <rmh@aybabtu.com>
19670 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19671 (grub_linux_boot_zimage): Rename to ...
19672 (grub_linux_boot): ... this.
19673 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19674 (grub_linux_boot_zimage): Conditionalize zImage copy.
19676 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19677 (grub_linux_boot_bzimage): Remove prototype.
19678 (grub_linux_boot_zimage): Rename to ...
19679 (grub_linux_boot): ... this.
19681 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19682 (grub_linux_boot): Remove function.
19684 2008-01-05 Robert Millan <rmh@aybabtu.com>
19686 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19687 (grub_env_write_color_highlight): Likewise.
19688 (grub_wait_after_message): Likewise.
19690 * normal/color.c: New file.
19692 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19693 (normal_mod_DEPENDENCIES): Likewise.
19695 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19696 (normal_mod_DEPENDENCIES): Likewise.
19698 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19699 (normal_mod_DEPENDENCIES): Likewise.
19701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19702 (normal_mod_DEPENDENCIES): Likewise.
19704 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19705 for waiting after a message is printed.
19706 * normal/main.c (read_config_file): Likewise.
19707 (grub_normal_init): Register grub_env_write_color_normal() and
19708 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19709 `color_highlight' variables as global.
19711 * normal/menu.c (grub_wait_after_message): New function.
19712 (grub_color_menu_normal): New variable. Replaces ...
19713 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19714 (grub_color_menu_highlight): New variable. Replaces ...
19715 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19716 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19717 `GRUB_TERM_COLOR_STANDARD'.
19718 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19719 `normal_code' and `highlight_code' to `old_color_normal' and
19720 `old_color_highlight', respectively.
19721 (grub_menu_init_page): Update colors when drawing the menu, based on
19722 `menu_color_normal' and `menu_color_highlight' variables.
19723 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19724 a message is printed.
19726 2008-01-05 Robert Millan <rmh@aybabtu.com>
19728 * kern/env.c (grub_env_context_open): Propagate hooks for global
19729 variables to new context.
19731 * kern/main.c (grub_set_root_dev): Export `root' variable.
19733 2008-01-05 Robert Millan <rmh@aybabtu.com>
19735 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19736 discs unconditionally, since udev and others have options to provide
19739 2008-01-05 Robert Millan <rmh@aybabtu.com>
19741 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19743 2008-01-04 Christian Franke <franke@computer.org>
19745 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19748 2008-01-03 Pavel Roskin <proski@gnu.org>
19750 * kern/i386/linuxbios/init.c: Put "void" to all function
19751 declarations with no arguments.
19752 * kern/powerpc/ieee1275/init.c: Likewise.
19753 * term/i386/pc/at_keyboard.c: Likewise.
19754 * term/i386/pc/vga_text.c: Likewise.
19755 * util/grub-mkdevicemap.c: Likewise.
19757 2008-01-02 Robert Millan <rmh@aybabtu.com>
19759 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19760 message when loaded image is out of bounds.
19761 (grub_multiboot_load_elf64): Likewise.
19763 2008-01-02 Pavel Roskin <proski@gnu.org>
19765 * util/grub.d/10_linux.in: Try version without ".old" when
19766 looking for initrd. It's better to use initrd from the newer
19767 kernel of the same version than no initrd at all.
19769 2008-01-01 Robert Millan <rmh@aybabtu.com>
19771 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19773 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19775 * include/grub/video.h: Added grub_video_unmap_color and
19776 grub_video_get_active_render_target.
19777 (grub_video_adapter): Added unmap_color and get_active_render_target.
19779 * video/video.c: Added grub_video_unmap_color and
19780 grub_video_get_active_render_target.
19781 (grub_video_get_info): Changed method to accept NULL pointer as an
19782 argument to allow detection of active video adapter.
19784 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19785 grub_video_vbe_unmap_color_int.
19786 Added grub_video_vbe_unmap_color and
19787 grub_video_vbe_get_active_render_target.
19788 (grub_video_vbe_adapter): Added unmap_color and
19789 get_active_render_target.
19791 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19792 with grub_video_vbe_unmap_color_int.
19794 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19795 (DEFAULT_NORMAL_COLOR): Likewise.
19796 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19797 (DEFAULT_FG_COLOR): Removed.
19798 (DEFAULT_BG_COLOR): Likewise.
19799 (DEFAULT_CURSOR_COLOR): Changed value.
19800 (grub_virtual_screen): Added standard_color_setting,
19801 normal_color_setting, highlight_color_setting and term_color.
19802 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19803 (bitmap_width): Added.
19804 (bitmap_height): Likewise.
19805 (bitmap): Likewise.
19806 (set_term_color): Likewise.
19807 (grub_virtual_screen_setup): Changed to use new terminal coloring
19809 (grub_gfxterm_init): Added init for bitmap.
19810 (grub_gfxterm_fini): Added destroy for bitmap.
19811 (redraw_screen_rect): Updated to use background bitmap and new
19813 (scroll_up): Added optimization for case when there is no bitmap.
19814 (grub_gfxterm_cls): Fixed to use correct background color.
19815 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19817 (grub_virtual_screen_setcolor): Likewise.
19818 (grub_virtual_screen_getcolor): Added.
19819 (grub_gfxterm_background_image_cmd): Likewise.
19820 (grub_video_term): Added setcolor and getcolor.
19821 (MOD_INIT): Added registration of background_image command.
19822 (MOD_TERM): Added unregistration for background_image command.
19824 2007-12-30 Pavel Roskin <proski@gnu.org>
19826 * loader/multiboot_loader.c: Fix multiboot command
19827 unregistration. Fix all typos in the word "multiboot".
19829 2007-12-29 Pavel Roskin <proski@gnu.org>
19831 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19832 support for initrd names used in Fedora.
19834 2007-12-26 Bean <bean123ch@gmail.com>
19836 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19837 (cpio_mod_SOURCES): New variable.
19838 (cpio_mod_CFLAGS): Likewise.
19839 (cpio_mod_LDFLAGS): Likewise.
19841 * fs/cpio.c: New file.
19843 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19845 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19847 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19851 2007-12-25 Robert Millan <rmh@aybabtu.com>
19853 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19854 (grub_getcolor): New function.
19856 * kern/term.c (grub_getcolor): New function.
19857 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19858 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19859 (print_entry): Set normal and highlight colors to
19860 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19861 respectively, before printing and restore them to old
19863 (grub_menu_init_page): Likewise. Fill an additional colored space
19864 that would otherwise be left blank.
19866 * term/efi/console.c (grub_console_getcolor): New function.
19867 (struct grub_console_term.getcolor): New variable.
19868 * term/i386/pc/console.c (grub_console_getcolor): New function.
19869 (struct grub_console_term.getcolor): New variable.
19870 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19871 (struct grub_console_term.getcolor): New variable.
19873 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19874 (struct grub_console_term.setcolor): Remove variable.
19875 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19876 (struct grub_console_term.setcolor): Remove variable.
19877 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19878 (struct grub_console_term.setcolor): Remove variable.
19879 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19880 (struct grub_console_term.setcolor): Remove variable.
19882 2007-12-25 Robert Millan <rmh@aybabtu.com>
19884 * configure.ac: Search for possible unifont.hex locations, and
19885 define UNIFONT_HEX if found.
19887 * Makefile.in (UNIFONT_HEX): Define variable.
19888 (DATA): Rename to ...
19889 (PKGLIB): ... this. Update all users.
19890 (PKGDATA): New variable.
19891 (pkgdata_IMAGES): Rename to ...
19892 (pkglib_IMAGES): ... this. Update all users.
19893 (pkgdata_MODULES): Rename to ...
19894 (pkglib_MODULES): ... this. Update all users.
19895 (pkgdata_PROGRAMS): Rename to ...
19896 (pkglib_PROGRAMS): ... this. Update all users.
19897 (pkgdata_DATA): Rename to ...
19898 (pkglib_DATA): ... this. Update all users.
19899 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19900 (unicode.pff, ascii.pff): New rules.
19901 (all-local): Add `$(PKGDATA)' dependency.
19902 (install-local): Process `$(PKGDATA)'.
19904 * util/update-grub_lib.in (font_path): Search for *.pff files in
19905 a few more locations, including `${pkgdata}'.
19907 2007-12-23 Robert Millan <rmh@aybabtu.com>
19909 Patch from Bean <bean123ch@gmail.com>:
19910 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19913 2007-12-21 Bean <bean123ch@gmail.com>
19915 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19916 (ntfscomp_mod_SOURCES): New variable.
19917 (ntfscomp_mod_CFLAGS): Likewise.
19918 (ntfscomp_mod_LDFLAGS): Likewise.
19920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19921 (grub_probe_SOURCES): Likewise.
19922 (grub_emu_SOURCES): Likewise.
19924 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19925 (grub_emu_SOURCES): Likewise.
19927 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19928 (grub_emu_SOURCES): Likewise.
19930 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19931 (grub_emu_SOURCES): Likewise.
19933 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19934 (read_run_list): Renamed to grub_ntfs_read_run_list.
19935 (decomp_nextvcn): Moved to ntfscomp.c.
19936 (decomp_getch): Likewise.
19937 (decomp_get16): Likewise.
19938 (decomp_block): Likewise.
19939 (read_block): Likewise.
19940 (read_data): Partially moved to ntfscomp.c.
19941 (fixup): Change unsigned to grub_uint16_t.
19942 (read_mft): Change unsigned long to grub_uint32_t.
19943 (read_attr): Likewise.
19944 (read_data): Likewise.
19945 (read_run_data): Likewise.
19946 (read_run_list): Likewise.
19947 (read_mft): Likewise.
19949 * fs/ntfscomp.c: New file.
19951 * include/grub/ntfs.h: New file.
19953 2007-12-16 Robert Millan <rmh@aybabtu.com>
19955 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19956 IDE disk check, since Linux is known to support 20 IDE disks.
19957 Reported by Colin Watson.
19959 2007-12-15 Bean <bean123ch@gmail.com>
19961 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19962 (lnxboot_img_SOURCES): New variable.
19963 (lnxboot_img_ASFLAGS): Likewise.
19964 (lnxboot_img_LDFLAGS): Likewise.
19966 * boot/i386/pc/lnxboot.S: New file.
19968 2007-11-24 Pavel Roskin <proski@gnu.org>
19970 * configure.ac: Test if '--build-id=none' is supported by the
19971 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19972 objcopy to generate incorrect binary files (binutils
19973 2.17.50.0.18-1 as shipped by Fedora 8).
19974 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19975 linking, so that build ID doesn't break the test.
19977 2007-11-24 Pavel Roskin <proski@gnu.org>
19979 * include/grub/i386/time.h: use "void" in the argument list
19980 of grub_cpu_idle().
19981 * include/grub/powerpc/time.h: Likewise.
19982 * include/grub/sparc64/time.h: Likewise.
19984 2007-11-18 Christian Franke <franke@computer.org>
19986 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19987 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19988 This fixes the problem that function keys did not work in grub-emu.
19990 2007-11-18 Christian Franke <franke@computer.org>
19992 * disk/host.c (grub_host_open): Remove attribute unused from
19993 name parameter. Add check for "host". This fixes the problem
19994 that grub-emu does not find partitions.
19996 2007-11-18 Christian Franke <franke@computer.org>
19998 * util/hostfs.c (is_dir): New function.
19999 (grub_hostfs_dir): Handle missing dirent.d_type case.
20000 (grub_hostfs_read): Add missing fseek().
20001 (grub_hostfs_label): Clear label pointer. This fixes a crash
20002 of grub-emu on "ls (host)".
20004 2007-11-18 Christian Franke <franke@computer.org>
20006 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20007 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20008 to 64 bit boundary by default.
20010 2007-11-18 Bean <bean123ch@gmail.com>
20012 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20013 (hexdump_mod_SOURCES): New variable.
20014 (hexdump_mod_CFLAGS): Likewise.
20015 (hexdump_mod_LDFLAGS): Likewise.
20017 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20019 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20021 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20025 * include/grub/hexdump.h: New file.
20027 * commands/hexdump.c: New file.
20029 2007-11-10 Robert Millan <rmh@aybabtu.com>
20031 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20032 in grub_outb() calls.
20033 (beep_on): Likewise.
20035 2007-11-10 Christian Franke <franke@computer.org>
20037 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20038 (grub_menu_run): Likewise.
20040 2007-11-10 Robert Millan <rmh@aybabtu.com>
20042 * include/grub/i386/efi/machine.h: New file.
20043 * include/grub/i386/linuxbios/machine.h: Likewise.
20044 * include/grub/i386/pc/machine.h: Likewise.
20045 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20046 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20048 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20049 (serial_hw_io_addr): New variable.
20050 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20051 instead of `(unsigned short *) 0x400'.
20053 2007-11-10 Bean <bean123ch@gmail.com>
20055 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20057 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20059 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20060 (vga_mod_SOURCES): Added.
20061 (vga_mod_CFLAGS): Likewise.
20062 (vga_mod_LDFLAGS): Likewise.
20064 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20066 (set_map_mask): Likewise.
20067 (set_read_map): Likewise.
20068 (set_read_address): Likewise.
20069 (vga_font): Removed variable.
20070 (get_vga_glyph): Removed function.
20071 (invalidate_char): Likewise.
20072 (write_char): Changed to use grub_font_get_glyph() for font
20074 (grub_vga_putchar): Likewise.
20075 (grub_vga_getcharwidth): Likewise.
20077 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20079 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20081 (pxeboot_img_LDFLAGS): Likewise.
20082 (diskboot_img_LDFLAGS): Likewise.
20083 (kernel_img_LDFLAGS): Likewise.
20085 2007-11-06 Robert Millan <rmh@aybabtu.com>
20087 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20088 in grub_outb() calls.
20089 (serial_hw_init): Likewise.
20091 2007-11-05 Robert Millan <rmh@aybabtu.com>
20093 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20094 spaces. Skip non-regular files.
20096 2007-11-05 Robert Millan <rmh@aybabtu.com>
20098 * kern/disk.c (grub_disk_firmware_fini)
20099 (grub_disk_firmware_is_tainted): New variables.
20101 * include/grub/disk.h (grub_disk_firmware_fini)
20102 (grub_disk_firmware_is_tainted): Likewise.
20104 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20105 (grub_disk_biosdisk_fini): ... to here.
20106 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20107 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20108 is set. Register grub_disk_biosdisk_fini() in
20109 `grub_disk_firmware_fini'.
20111 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20112 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20113 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20114 to finish existing firmware disk interface.
20116 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20117 (ata_mod_SOURCES): New variable.
20118 (ata_mod_CFLAGS): Likewise.
20119 (ata_mod_LDFLAGS): Likewise.
20121 2007-11-05 Robert Millan <rmh@aybabtu.com>
20123 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20124 (grub_ata_wait): Reimplement using grub_millisleep().
20126 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20127 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20129 2007-11-03 Marco Gerards <marco@gnu.org>
20131 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20132 (CRTC_ADDR_PORT): New macro.
20133 (CRTC_DATA_PORT): Likewise.
20134 (CRTC_CURSOR): Likewise.
20135 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20136 (CRTC_CURSOR_ADDR_LOW): Likewise.
20137 (update_cursor): New function.
20138 (grub_console_real_putchar): Call `update_cursor'.
20139 (grub_console_gotoxy): Likewise.
20140 (grub_console_cls): Set the default color when clearing the
20142 (grub_console_setcursor): Implemented.
20144 2007-11-03 Marco Gerards <marco@gnu.org>
20146 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20148 (grub_ata_pio_write): Likewise.
20150 (grub_atapi_identify): Wait after issuing an ATA command.
20151 (grub_atapi_packet): Likewise.
20152 (grub_ata_identify): Likewise.
20153 (grub_ata_readwrite): Likewise.
20155 2007-11-03 Marco Gerards <marco@gnu.org>
20157 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20158 (grub_ata_pio_write): Likewise.
20159 (grub_ata_readwrite): Use `grub_error', instead of
20160 returning `grub_errno'.
20162 2007-11-03 Marco Gerards <marco@gnu.org>
20164 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20165 grub_ata_pio_write once for every single sector, instead of for
20168 2007-10-31 Robert Millan <rmh@aybabtu.com>
20170 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20172 * conf/i386-linuxbios.rmk: New file.
20174 * kern/i386/pc/hardware.c: Likewise.
20175 * term/i386/pc/at_keyboard.c: Likewise.
20176 * term/i386/pc/vga_text.c: Likewise.
20178 * include/grub/i386/linuxbios/boot.h: Likewise.
20179 * include/grub/i386/linuxbios/console.h: Likewise.
20180 * include/grub/i386/linuxbios/init.h: Likewise.
20181 * include/grub/i386/linuxbios/kernel.h: Likewise.
20182 * include/grub/i386/linuxbios/loader.h: Likewise.
20183 * include/grub/i386/linuxbios/memory.h: Likewise.
20184 * include/grub/i386/linuxbios/serial.h: Likewise.
20185 * include/grub/i386/linuxbios/time.h: Likewise.
20187 * kern/i386/linuxbios/init.c: Likewise.
20188 * kern/i386/linuxbios/startup.S: Likewise.
20189 * kern/i386/linuxbios/table.c: Likewise.
20191 2007-10-31 Marco Gerards <marco@gnu.org>
20193 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20194 (ata_mod_SOURCES): New variable.
20195 (ata_mod_CFLAGS): Likewise.
20196 (ata_mod_LDFLAGS): Likewise.
20198 * disk/ata.c: New file.
20200 * include/grub/disk.h (grub_disk_dev_id): Add
20201 `GRUB_DISK_DEV_ATA_ID'.
20203 2007-10-31 Robert Millan <rmh@aybabtu.com>
20205 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20206 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20208 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20209 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20211 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20214 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20216 2007-10-27 Robert Millan <rmh@aybabtu.com>
20218 * include/grub/types.h (ULONG_MAX): Define macro.
20220 2007-10-22 Robert Millan <rmh@aybabtu.com>
20222 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20224 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20226 2007-10-22 Robert Millan <rmh@aybabtu.com>
20228 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20229 (pkgdata_MODULES): Add `biosdisk.mod'.
20230 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20233 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20234 (grub_biosdisk_init): Replace with ...
20235 (GRUB_MOD_INIT(biosdisk)): ... this.
20236 (grub_biosdisk_fini): Replace with ...
20237 (GRUB_MOD_FINI(biosdisk)): ... this.
20239 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20240 (grub_machine_init): Remove call to grub_biosdisk_init().
20241 (grub_machine_fini): Remove call to grub_machine_fini().
20243 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20245 2007-10-22 Robert Millan <rmh@aybabtu.com>
20247 * include/grub/time.h: New file.
20248 * include/grub/i386/time.h: Likewise.
20249 * include/grub/powerpc/time.h: Likewise.
20250 * include/grub/sparc64/time.h: Likewise.
20252 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20254 (KERNEL_MACHINE_TIME_HEADER): ... this.
20255 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20257 (KERNEL_MACHINE_TIME_HEADER): ... this.
20258 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20260 (KERNEL_MACHINE_TIME_HEADER): ... this.
20262 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20263 (grub_millisleep): New function.
20264 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20265 (grub_millisleep): New function.
20266 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20267 Remove `grub/machine/time.h' include.
20268 (grub_millisleep): New function.
20269 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20270 Remove `grub/machine/time.h' include.
20271 (grub_millisleep): New function.
20273 * include/grub/misc.h (grub_div_roundup): New function.
20275 * kern/misc.c: Include `<grub/time.h>'.
20276 (grub_millisleep_generic): New function.
20278 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20280 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20282 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20283 `machine/time.h'. Add `time.h'.
20284 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20286 2007-10-21 Robert Millan <rmh@aybabtu.com>
20288 * include/grub/misc.h (grub_max): New function.
20290 2007-10-21 Robert Millan <rmh@aybabtu.com>
20292 * util/misc.c (grub_util_info): Call fflush() before returning.
20294 2007-10-20 Robert Millan <rmh@aybabtu.com>
20296 * genmk.rb (Image): Copy `extra_flags' from here ...
20297 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20299 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20300 to `argc' and `args' arguments.
20302 2007-10-17 Robert Millan <rmh@aybabtu.com>
20304 * kern/i386/loader.S: New file.
20306 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20307 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20308 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20309 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20310 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20311 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20312 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20313 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20314 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20315 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20316 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20317 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20318 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20319 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20321 * kern/i386/realmode.S: New file.
20323 * kern/i386/pc/startup.S (protstack): Moved from here ...
20324 * kern/i386/realmode.S (protstack)... to here.
20325 * kern/i386/pc/startup.S (gdt): Moved from here ...
20326 * kern/i386/realmode.S (gdt)... to here.
20327 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20328 * kern/i386/realmode.S (prot_to_real)... to here.
20330 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20331 `kern/i386/realmode.S'.
20333 2007-10-17 Robert Millan <rmh@aybabtu.com>
20335 * include/grub/i386/loader.h: New file.
20337 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20338 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20339 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20340 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20341 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20342 * include/grub/i386/loader.h (grub_linux_prot_size)
20343 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20344 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20345 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20346 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20348 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20350 2007-10-15 Robert Millan <rmh@aybabtu.com>
20352 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20353 filesystem when dev->disk is unset.
20354 Do probe for filesystem even when dev->disk->has_partitions is set.
20355 In case a filesystem is found, always report it.
20356 In case it isn't, if dev->disk->has_partitions is set, report that
20357 a partition table was found instead of reporting that no filesystem
20358 could be identified.
20360 2007-10-12 Robert Millan <rmh@aybabtu.com>
20362 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20363 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20365 * include/grub/types.h (grub_host_to_target16): New macro.
20366 (grub_host_to_target32): Likewise.
20367 (grub_host_to_target64): Likewise.
20368 (grub_target_to_host16): Likewise.
20369 (grub_target_to_host32): Likewise.
20370 (grub_target_to_host64): Likewise.
20372 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20373 Renamed from to ...
20374 (GRUB_MOD_ALIGN): ...this. Update all users.
20376 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20377 grub_host_to_target32.
20378 Replace grub_be_to_cpu32 with grub_target_to_host32.
20379 (load_modules): Likewise.
20380 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20381 Replace grub_be_to_cpu32 with grub_target_to_host32.
20382 Replace grub_cpu_to_be16 with grub_host_to_target16.
20383 Replace grub_cpu_to_be32 grub_host_to_target32.
20385 2007-10-12 Robert Millan <rmh@aybabtu.com>
20387 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20388 * util/elf/grub-mkimage.c: ... here.
20390 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20391 `util/powerpc/ieee1275/grub-mkimage.c'.
20393 2007-10-07 Robert Millan <rmh@aybabtu.com>
20395 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20396 and make it easier to figure out.
20397 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20398 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20399 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20400 leave us with less than HEAP_MIN_SIZE total heap.
20401 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20403 2007-10-03 Robert Millan <rmh@aybabtu.com>
20405 * include/grub/i386/io.h: New file.
20406 * commands/i386/pc/play.c (inb): Removed.
20408 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20410 * term/i386/pc/serial.c (inb): Removed.
20412 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20414 * term/i386/pc/vga.c (inb): Removed.
20416 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20419 2007-10-02 Robert Millan <rmh@aybabtu.com>
20421 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20423 Reported by Marcin Kurek.
20425 2007-09-07 Robert Millan <rmh@aybabtu.com>
20427 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20428 SmartFirmware version updates (as released by Sven Luther), and avoid
20429 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20430 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20433 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20435 From Hitoshi Ozeki:
20436 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20437 when merging two regions.
20439 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20441 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20442 * normal/completion.c (grub_normal_do_completion): Likewise.
20443 Reported by Hitoshi Ozeki.
20445 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20447 Do not use devices at boot in chainloading.
20449 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20450 (boot_part_addr): Likewise.
20451 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20452 with BOOT_DRIVE and BOOT_PART_ADDR.
20453 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20454 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20456 2007-08-29 Robert Millan <rmh@aybabtu.com>
20458 Patch from Simon Peter <dn.tlp@gmx.net>:
20459 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20460 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20461 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20462 util/i386/pc/grub-setup.c_DEPENDENCIES.
20463 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20464 util/grub-probe.c_DEPENDENCIES.
20465 * conf/powerpc-ieee1275.rmk: Likewise.
20467 2007-08-28 Robert Millan <rmh@aybabtu.com>
20469 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20470 to tell grub-mkdevicemap how to name devices.
20471 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20474 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20475 util/i386/get_disk_name.c.
20476 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20477 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20478 util/ieee1275/get_disk_name.c.
20480 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20482 * DISTLIST: Add util/i386/get_disk_name.c and
20483 util/ieee1275/get_disk_name.c.
20485 * util/grub-mkdevicemap.c: Replace device naming logic with
20486 grub_util_get_disk_name() calls.
20488 2007-08-20 Robert Millan <rmh@aybabtu.com>
20490 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20491 (so that it works for both plural and singular quantities).
20493 2007-08-05 Robert Millan <rmh@aybabtu.com>
20495 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20496 so that [xz] isn't taken into account when determining order.
20498 2007-08-02 Marco Gerards <marco@gnu.org>
20500 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20501 `include/multiboot2.h', `include/grub/elfload.h',
20502 `include/multiboot.h', `include/grub/multiboot.h',
20503 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20504 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20505 `kern/elf.c', `loader/multiboot_loader.c',
20506 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20507 `loader/i386/pc/multiboot2.c',
20508 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20509 `util/i386/pc/grub-mkrescue.in'. Remove
20510 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20511 `include/grub/i386/pc/util/biosdisk.h' and
20512 `include/grub/powerpc/ieee1275/multiboot.h'.
20514 2007-08-02 Bean <bean123ch@gmail.com>
20516 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20517 (ntfs_mod_SOURCES): New variable.
20518 (ntfs_mod_CFLAGS): Likewise.
20519 (ntfs_mod_LDFLAGS): Likewise.
20521 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20522 (grub_probe_SOURCES): Likewise.
20523 (grub_emu_SOURCES): Likewise.
20525 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20526 (grub_emu_SOURCES): Likewise.
20528 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20529 (grub_emu_SOURCES): Likewise.
20531 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20533 * fs/ntfs.c: New file.
20535 2007-08-02 Bean <bean123ch@gmail.com>
20537 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20539 * file.h (grub_file): Likewise.
20541 * fshelp.h (grub_fshelp_read_file): Likewise.
20543 * util/i386/pc/grub-setup.c (setup): Likewise.
20544 (save_first_sector): Likewise.
20545 (save_blocklists): Likewise.
20547 * fs/affs.c (grub_affs_read_file): Likewise.
20549 * fs/ext2.c (grub_ext2_read_file): Likewise.
20551 * fs/fat.c (grub_fat_read_data): Likewise.
20553 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20555 * fs/hfs.c (grub_hfs_read_file): Likewise.
20557 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20559 * fs/jfs.c (grub_jfs_read_file): Likewise.
20561 * fs/minix.c (grub_minix_read_file): Likewise.
20563 * fs/sfs.c (grub_sfs_read_file): Likewise.
20565 * fs/ufs.c (grub_ufs_read_file): Likewise.
20567 * fs/xfs.c (grub_xfs_read_file): Likewise.
20569 * command/blocklist.c (read_blocklist): Likewise.
20570 (print_blocklist): Likewise.
20572 2007-08-02 Marco Gerards <marco@gnu.org>
20574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20577 * disk/host.c: New file.
20579 * util/hostfs.c: Likewise.
20581 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20582 return `GRUB_ERR_BAD_FS'.
20583 * fs/sfs.c (grub_sfs_mount): Likewise.
20584 * fs/xfs.c (grub_xfs_mount): Likewise.
20586 * include/grub/disk.h (enum grub_disk_dev_id): Add
20587 `GRUB_DISK_DEVICE_HOST_ID'.
20589 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20591 2007-07-24 Jerone Young <jerone@gmail.com>
20593 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20594 modules for compilation.
20595 * conf/powerpc-ieee1275.rmk: Likewise.
20597 * include/multiboot.h: Move multiboot definitions to one file. Rename
20598 many definitions to not get grub specific.
20599 * include/multiboot2.h: Create header with multiboot 2 definitions.
20600 * include/grub/multiboot.h: Header for grub specific function
20601 prototypes and definitions.
20602 * include/grub/multiboot2.h: Likewise.
20603 * include/grub/multiboot_loader.h: Likewise.
20604 * include/grub/i386/pc/multiboot.h: Removed.
20605 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20607 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20608 and 2 to allow for one multiboot and module commands.
20609 * loader/multiboot2.c: Add multiboot2 functionality.
20610 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20611 and definition names.
20612 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20614 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20615 ieee1275 specific multiboot2 code.
20617 * kern/i386/pc/startup.S: Change headers and definition names for
20618 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20620 2007-07-22 Robert Millan <rmh@aybabtu.com>
20622 * geninitheader.sh: Process file specified in first parameter rather
20623 than hardcoding grub_modules_init.lst.
20624 * geninit.sh: Likewise. Also, construct header name dynamically rather
20625 than hardcoding grub_modules_init.h.
20627 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20628 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20629 grub_probe_init.[ch] and grub_setup_init.[ch].
20631 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20632 grub_modules_init.h with grub_emu_init.h.
20633 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20634 grub_probe_init.[ch] files.
20635 * conf/i386-efi.rmk: Likewise.
20636 * conf/i386-pc.rmk: Likewise.
20637 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20638 grub_setup_init.[ch] files.
20640 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20641 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20642 to initialize modules rather than a list of hardcoded functions.
20643 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20644 grub_init_all() to initialize modules rather than a list of hardcoded
20647 2007-07-22 Robert Millan <rmh@aybabtu.com>
20649 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20650 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20652 2007-07-22 Robert Millan <rmh@aybabtu.com>
20654 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20655 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20656 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20657 flag when running on SmartFirmware.
20658 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20659 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20662 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20663 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20664 rather than decreasing it.
20666 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20667 there's not enough space to do it, fail in the same way as when it
20668 can't be done because there are no partitions.
20670 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20671 when nvsetenv failed.
20673 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20675 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20676 because this rule is automatically generated.
20677 (grub-mkrescue): Removed for the same reason as above.
20679 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20681 Migrate to GNU General Public License Version 3.
20683 * COPYING: Replaced with the plain text version of GPLv3.
20685 * config.guess: Updated from gnulib.
20686 * config.sub: Likewise.
20688 * geninit.sh: Output a GPLv3 copyright notice.
20689 * geninitheader.sh: Likewise.
20690 * genmodsrc.sh: Likewise.
20691 * gensymlist.sh.in: Likewise.
20693 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20694 * boot/i386/pc/diskboot.S: Likewise.
20695 * boot/i386/pc/pxeboot.S: Likewise.
20696 * commands/blocklist.c: Likewise.
20697 * commands/boot.c: Likewise.
20698 * commands/cat.c: Likewise.
20699 * commands/cmp.c: Likewise.
20700 * commands/configfile.c: Likewise.
20701 * commands/echo.c: Likewise.
20702 * commands/help.c: Likewise.
20703 * commands/ls.c: Likewise.
20704 * commands/search.c: Likewise.
20705 * commands/terminal.c: Likewise.
20706 * commands/test.c: Likewise.
20707 * commands/videotest.c: Likewise.
20708 * commands/i386/cpuid.c: Likewise.
20709 * commands/i386/pc/halt.c: Likewise.
20710 * commands/i386/pc/play.c: Likewise.
20711 * commands/i386/pc/reboot.c: Likewise.
20712 * commands/i386/pc/vbeinfo.c: Likewise.
20713 * commands/i386/pc/vbetest.c: Likewise.
20714 * commands/ieee1275/halt.c: Likewise.
20715 * commands/ieee1275/reboot.c: Likewise.
20716 * commands/ieee1275/suspend.c: Likewise.
20717 * disk/loopback.c: Likewise.
20718 * disk/lvm.c: Likewise.
20719 * disk/raid.c: Likewise.
20720 * disk/efi/efidisk.c: Likewise.
20721 * disk/i386/pc/biosdisk.c: Likewise.
20722 * disk/ieee1275/ofdisk.c: Likewise.
20723 * font/manager.c: Likewise.
20724 * fs/affs.c: Likewise.
20725 * fs/ext2.c: Likewise.
20726 * fs/fat.c: Likewise.
20727 * fs/fshelp.c: Likewise.
20728 * fs/hfs.c: Likewise.
20729 * fs/hfsplus.c: Likewise.
20730 * fs/iso9660.c: Likewise.
20731 * fs/jfs.c: Likewise.
20732 * fs/minix.c: Likewise.
20733 * fs/sfs.c: Likewise.
20734 * fs/ufs.c: Likewise.
20735 * fs/xfs.c: Likewise.
20736 * hello/hello.c: Likewise.
20737 * include/grub/acorn_filecore.h: Likewise.
20738 * include/grub/arg.h: Likewise.
20739 * include/grub/bitmap.h: Likewise.
20740 * include/grub/boot.h: Likewise.
20741 * include/grub/cache.h: Likewise.
20742 * include/grub/device.h: Likewise.
20743 * include/grub/disk.h: Likewise.
20744 * include/grub/dl.h: Likewise.
20745 * include/grub/elfload.h: Likewise.
20746 * include/grub/env.h: Likewise.
20747 * include/grub/err.h: Likewise.
20748 * include/grub/file.h: Likewise.
20749 * include/grub/font.h: Likewise.
20750 * include/grub/fs.h: Likewise.
20751 * include/grub/fshelp.h: Likewise.
20752 * include/grub/gzio.h: Likewise.
20753 * include/grub/hfs.h: Likewise.
20754 * include/grub/kernel.h: Likewise.
20755 * include/grub/loader.h: Likewise.
20756 * include/grub/lvm.h: Likewise.
20757 * include/grub/misc.h: Likewise.
20758 * include/grub/mm.h: Likewise.
20759 * include/grub/net.h: Likewise.
20760 * include/grub/normal.h: Likewise.
20761 * include/grub/parser.h: Likewise.
20762 * include/grub/partition.h: Likewise.
20763 * include/grub/pc_partition.h: Likewise.
20764 * include/grub/raid.h: Likewise.
20765 * include/grub/rescue.h: Likewise.
20766 * include/grub/script.h: Likewise.
20767 * include/grub/setjmp.h: Likewise.
20768 * include/grub/symbol.h: Likewise.
20769 * include/grub/term.h: Likewise.
20770 * include/grub/terminfo.h: Likewise.
20771 * include/grub/tparm.h: Likewise.
20772 * include/grub/types.h: Likewise.
20773 * include/grub/video.h: Likewise.
20774 * include/grub/efi/api.h: Likewise.
20775 * include/grub/efi/chainloader.h: Likewise.
20776 * include/grub/efi/console.h: Likewise.
20777 * include/grub/efi/console_control.h: Likewise.
20778 * include/grub/efi/disk.h: Likewise.
20779 * include/grub/efi/efi.h: Likewise.
20780 * include/grub/efi/pe32.h: Likewise.
20781 * include/grub/efi/time.h: Likewise.
20782 * include/grub/i386/linux.h: Likewise.
20783 * include/grub/i386/setjmp.h: Likewise.
20784 * include/grub/i386/types.h: Likewise.
20785 * include/grub/i386/efi/kernel.h: Likewise.
20786 * include/grub/i386/efi/loader.h: Likewise.
20787 * include/grub/i386/efi/time.h: Likewise.
20788 * include/grub/i386/pc/biosdisk.h: Likewise.
20789 * include/grub/i386/pc/boot.h: Likewise.
20790 * include/grub/i386/pc/chainloader.h: Likewise.
20791 * include/grub/i386/pc/console.h: Likewise.
20792 * include/grub/i386/pc/init.h: Likewise.
20793 * include/grub/i386/pc/kernel.h: Likewise.
20794 * include/grub/i386/pc/loader.h: Likewise.
20795 * include/grub/i386/pc/memory.h: Likewise.
20796 * include/grub/i386/pc/multiboot.h: Likewise.
20797 * include/grub/i386/pc/serial.h: Likewise.
20798 * include/grub/i386/pc/time.h: Likewise.
20799 * include/grub/i386/pc/vbe.h: Likewise.
20800 * include/grub/i386/pc/vbeblit.h: Likewise.
20801 * include/grub/i386/pc/vbefill.h: Likewise.
20802 * include/grub/i386/pc/vbeutil.h: Likewise.
20803 * include/grub/i386/pc/vga.h: Likewise.
20804 * include/grub/ieee1275/ieee1275.h: Likewise.
20805 * include/grub/ieee1275/ofdisk.h: Likewise.
20806 * include/grub/powerpc/libgcc.h: Likewise.
20807 * include/grub/powerpc/setjmp.h: Likewise.
20808 * include/grub/powerpc/types.h: Likewise.
20809 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20810 * include/grub/powerpc/ieee1275/console.h: Likewise.
20811 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20812 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20813 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20814 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20815 * include/grub/powerpc/ieee1275/time.h: Likewise.
20816 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20817 * include/grub/sparc64/libgcc.h: Likewise.
20818 * include/grub/sparc64/setjmp.h: Likewise.
20819 * include/grub/sparc64/types.h: Likewise.
20820 * include/grub/sparc64/ieee1275/console.h: Likewise.
20821 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20822 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20823 * include/grub/sparc64/ieee1275/time.h: Likewise.
20824 * include/grub/util/biosdisk.h: Likewise.
20825 * include/grub/util/getroot.h: Likewise.
20826 * include/grub/util/lvm.h: Likewise.
20827 * include/grub/util/misc.h: Likewise.
20828 * include/grub/util/raid.h: Likewise.
20829 * include/grub/util/resolve.h: Likewise.
20830 * io/gzio.c: Likewise.
20831 * kern/device.c: Likewise.
20832 * kern/disk.c: Likewise.
20833 * kern/dl.c: Likewise.
20834 * kern/elf.c: Likewise.
20835 * kern/env.c: Likewise.
20836 * kern/err.c: Likewise.
20837 * kern/file.c: Likewise.
20838 * kern/fs.c: Likewise.
20839 * kern/loader.c: Likewise.
20840 * kern/main.c: Likewise.
20841 * kern/misc.c: Likewise.
20842 * kern/mm.c: Likewise.
20843 * kern/parser.c: Likewise.
20844 * kern/partition.c: Likewise.
20845 * kern/rescue.c: Likewise.
20846 * kern/term.c: Likewise.
20847 * kern/efi/efi.c: Likewise.
20848 * kern/efi/init.c: Likewise.
20849 * kern/efi/mm.c: Likewise.
20850 * kern/i386/dl.c: Likewise.
20851 * kern/i386/efi/init.c: Likewise.
20852 * kern/i386/efi/startup.S: Likewise.
20853 * kern/i386/pc/init.c: Likewise.
20854 * kern/i386/pc/lzo1x.S: Likewise.
20855 * kern/i386/pc/startup.S: Likewise.
20856 * kern/ieee1275/ieee1275.c: Likewise.
20857 * kern/powerpc/cache.S: Likewise.
20858 * kern/powerpc/dl.c: Likewise.
20859 * kern/powerpc/ieee1275/cmain.c: Likewise.
20860 * kern/powerpc/ieee1275/crt0.S: Likewise.
20861 * kern/powerpc/ieee1275/init.c: Likewise.
20862 * kern/powerpc/ieee1275/openfw.c: Likewise.
20863 * kern/sparc64/cache.S: Likewise.
20864 * kern/sparc64/dl.c: Likewise.
20865 * kern/sparc64/ieee1275/init.c: Likewise.
20866 * kern/sparc64/ieee1275/openfw.c: Likewise.
20867 * loader/efi/chainloader.c: Likewise.
20868 * loader/efi/chainloader_normal.c: Likewise.
20869 * loader/i386/efi/linux.c: Likewise.
20870 * loader/i386/efi/linux_normal.c: Likewise.
20871 * loader/i386/pc/chainloader.c: Likewise.
20872 * loader/i386/pc/chainloader_normal.c: Likewise.
20873 * loader/i386/pc/linux.c: Likewise.
20874 * loader/i386/pc/linux_normal.c: Likewise.
20875 * loader/i386/pc/multiboot.c: Likewise.
20876 * loader/i386/pc/multiboot_normal.c: Likewise.
20877 * loader/powerpc/ieee1275/linux.c: Likewise.
20878 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20879 * normal/arg.c: Likewise.
20880 * normal/cmdline.c: Likewise.
20881 * normal/command.c: Likewise.
20882 * normal/completion.c: Likewise.
20883 * normal/execute.c: Likewise.
20884 * normal/function.c: Likewise.
20885 * normal/lexer.c: Likewise.
20886 * normal/main.c: Likewise.
20887 * normal/menu.c: Likewise.
20888 * normal/menu_entry.c: Likewise.
20889 * normal/misc.c: Likewise.
20890 * normal/parser.y: Likewise.
20891 * normal/script.c: Likewise.
20892 * normal/i386/setjmp.S: Likewise.
20893 * normal/powerpc/setjmp.S: Likewise.
20894 * normal/sparc64/setjmp.S: Likewise.
20895 * partmap/acorn.c: Likewise.
20896 * partmap/amiga.c: Likewise.
20897 * partmap/apple.c: Likewise.
20898 * partmap/gpt.c: Likewise.
20899 * partmap/pc.c: Likewise.
20900 * partmap/sun.c: Likewise.
20901 * term/gfxterm.c: Likewise.
20902 * term/terminfo.c: Likewise.
20903 * term/efi/console.c: Likewise.
20904 * term/i386/pc/console.c: Likewise.
20905 * term/i386/pc/serial.c: Likewise.
20906 * term/i386/pc/vesafb.c: Likewise.
20907 * term/i386/pc/vga.c: Likewise.
20908 * term/ieee1275/ofconsole.c: Likewise.
20909 * util/biosdisk.c: Likewise.
20910 * util/console.c: Likewise.
20911 * util/genmoddep.c: Likewise.
20912 * util/getroot.c: Likewise.
20913 * util/grub-emu.c: Likewise.
20914 * util/grub-mkdevicemap.c: Likewise.
20915 * util/grub-probe.c: Likewise.
20916 * util/lvm.c: Likewise.
20917 * util/misc.c: Likewise.
20918 * util/raid.c: Likewise.
20919 * util/resolve.c: Likewise.
20920 * util/update-grub.in: Likewise.
20921 * util/update-grub_lib.in: Likewise.
20922 * util/grub.d/00_header.in: Likewise.
20923 * util/grub.d/10_hurd.in: Likewise.
20924 * util/grub.d/10_linux.in: Likewise.
20925 * util/i386/efi/grub-install.in: Likewise.
20926 * util/i386/efi/grub-mkimage.c: Likewise.
20927 * util/i386/pc/grub-install.in: Likewise.
20928 * util/i386/pc/grub-mkimage.c: Likewise.
20929 * util/i386/pc/grub-mkrescue.in: Likewise.
20930 * util/i386/pc/grub-setup.c: Likewise.
20931 * util/i386/pc/misc.c: Likewise.
20932 * util/powerpc/ieee1275/grub-install.in: Likewise.
20933 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20934 * util/powerpc/ieee1275/misc.c: Likewise.
20935 * video/bitmap.c: Likewise.
20936 * video/video.c: Likewise.
20937 * video/i386/pc/vbe.c: Likewise.
20938 * video/i386/pc/vbeblit.c: Likewise.
20939 * video/i386/pc/vbefill.c: Likewise.
20940 * video/i386/pc/vbeutil.c: Likewise.
20941 * video/readers/tga.c: Likewise.
20943 2007-07-02 Robert Millan <rmh@aybabtu.com>
20945 * conf/i386-efi.rmk: Replace obsolete reference to
20946 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20947 with util/getroot.c.
20948 * conf/powerpc-ieee1275.rmk: Likewise.
20949 * conf/sparc64-ieee1275.rmk: Likewise.
20951 * util/grub-emu.c (main): Fix unchecked pointer handling.
20953 2007-07-02 Robert Millan <rmh@aybabtu.com>
20955 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20956 invocation to fail, in order to support partition-less media.
20958 * util/i386/pc/grub-install.in: Likewise.
20960 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20961 which fs or partmap modules are needed (akin to its sister scripts).
20963 Also use grub-probe to get rid of unportable /proc/mounts check.
20965 Print the same informational message that the other scripts do, before
20968 2007-06-23 Robert Millan <rmh@aybabtu.com>
20970 * util/update-grub_lib.in (font_path): New function. Determine whether
20971 a font file can be found and, if so, echo the GRUB path to it.
20973 * util/update-grub.in: Handle multiple terminals depending on user
20974 input, platform availability and font file presence. Propagate
20975 variables of our findings to /etc/grub.d/ children.
20977 * util/grub.d/00_header.in: Handle multiple terminals, based on
20978 environment setup by update-grub.
20980 2007-06-23 Robert Millan <rmh@aybabtu.com>
20982 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20984 2007-06-21 Robert Millan <rmh@aybabtu.com>
20986 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20987 indicate end of data section in kernel image.
20988 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20989 GRUB_KERNEL_MACHINE_DATA_END.
20991 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20993 * kern/i386/efi/startup.S: Likewise.
20995 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20996 during image generation. Implement --prefix option to override this
20998 * util/i386/efi/grub-mkimage.c: Likewise.
21000 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21001 code to make path relative to its root into a separate function.
21003 * util/i386/pc/grub-install.in: Use newly provided
21004 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21005 pass the result to grub-install --prefix.
21007 2007-06-13 Robert Millan <rmh@aybabtu.com>
21009 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21010 DEFAULT_DEVICE_MAP.
21011 * util/grub-emu.c: Use above definitions from misc.h instead of
21013 * util/grub-mkdevicemap.c: Likewise.
21014 * util/i386/pc/grub-setup.c: Likewise.
21015 * util/grub-probe.c: Likewise.
21016 (probe): Abort with grub_util_error() when either
21017 grub_guess_root_device or grub_util_get_grub_dev fails.
21019 2007-06-12 Robert Millan <rmh@aybabtu.com>
21021 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21022 "pager" assignment.
21023 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21025 * util/grub-probe.c (probe): Likewise for "drive_name".
21027 2007-06-11 Robert Millan <rmh@aybabtu.com>
21029 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21030 not just the cdrom one.
21032 2007-06-11 Robert Millan <rmh@aybabtu.com>
21034 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21035 Add --pkglibdir=DIR option to override pkglibdir.
21036 Mention --image-type=TYPE in help output.
21037 Fix --grub-mkimage (it was a no-op).
21038 Abort gracefully when no parameter is given.
21040 2007-06-11 Robert Millan <rmh@aybabtu.com>
21042 * util/i386/pc/grub-mkrescue.in: New file.
21043 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21044 * Makefile.in: Handle bin_SCRIPTS.
21046 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21048 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21049 list of video modes.
21051 2007-06-06 Robert Millan <rmh@aybabtu.com>
21053 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21054 file doesn't exist, or if it is in a filesystem grub can't read.
21056 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21057 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21058 header comment to fit in 80 columns when the variables are resolved.
21060 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21061 could be identified by update-grub. Remove redundant check for
21062 unifont.pff existence (since convert_system_path_to_grub_path now
21065 2007-06-04 Robert Millan <rmh@aybabtu.com>
21067 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21069 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21071 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21073 2007-06-04 Robert Millan <rmh@aybabtu.com>
21075 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21077 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21078 grub_apple_partition_map_fini.
21081 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21082 to access >2 TiB disks).
21084 Print disk->total_sectors with %llu instead of %lu, since this
21085 variable is always 64-bit (prevents wrong disk size from being displayed
21086 on either >2 TiB disk or big-endian CPU).
21088 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21089 into a generic case that supports all (sane) partition maps.
21091 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21094 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21095 and grub_apple_partition_map_fini() after that.
21097 2007-06-01 Robert Millan <rmh@aybabtu.com>
21099 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21101 * util/grub.d/00_header.in: Only enable gfxterm when
21102 convert_system_path_to_grub_path() succeeds.
21104 2007-05-20 Robert Millan <rmh@aybabtu.com>
21106 * util/update-grub_lib.in: New file.
21107 * DISTLIST: Add update-grub_lib.in.
21108 * conf/common.rmk: Generate update-grub_lib and install it in
21110 * Makefile.in: Add install routine for $(lib_DATA).
21112 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21113 function provided by update-grub_lib to support arbitrary paths of
21115 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21116 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21118 2007-05-19 Robert Millan <rmh@aybabtu.com>
21120 * commands/i386/cpuid.c: New module.
21121 * DISTLIST: Add it.
21122 * conf/i386-efi.rmk: Enable cpuid.mod.
21123 * conf/i386-pc.rmk: Likewise.
21125 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21127 * kern/disk.c (grub_disk_read): Check return value of
21130 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21132 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21134 * disk/raid.c (grub_raid_open): Likewise.
21136 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21138 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21139 stack instead of on the heap.
21141 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21142 before doing a read on it.
21144 * configure.ac: Only use -fno-stack-protector for the target
21147 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21149 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21150 __attribute_ ((unused)) to mode_type argument.
21152 * util/getroot.c (grub_guess_root_device): Fix #endif.
21154 * kern/misc.c (memcmp): Fix prototype.
21156 * include/grub/partition.h [GRUB_UTIL]
21157 (grub_gpt_partition_map_init): Add prototype.
21158 (grub_gpt_partition_map_fini): Likewise.
21160 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21161 at the right place.
21163 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21164 (grub_fat_read_data): Likewise.
21165 (grub_fat_find_dir): Likewise.
21167 * font/manager.c (find_glyph): Make table a const.
21168 (grub_font_get_glyph): Remove bitmap from if statement.
21170 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21172 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21173 code, first search for device in /dev/mapper, then in /dev.
21174 (grub_util_get_grub_dev): New function.
21175 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21177 * util/grub-probe.c (probe): Remove check for RAID, call
21178 grub_util_get_grub_dev() instead of
21179 grub_util_biosdisk_get_grub_dev().
21180 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21181 grub_util_biosdisk_get_grub_dev().
21182 * util/i386/pc/grub-setup.c (main): Likewise.
21184 2007-05-16 Robert Millan <rmh@aybabtu.com>
21186 * DISTLIST: Update for the latest changes.
21187 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21188 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21189 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21190 grub/util/biosdisk.h.
21191 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21192 grub/util/biosdisk.h.
21194 2007-05-16 Robert Millan <rmh@aybabtu.com>
21196 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21198 2007-05-16 Robert Millan <rmh@aybabtu.com>
21200 * util/i386/efi/grub-install.in: New.
21201 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21202 newly added grub-install.
21203 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21205 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21206 grub/util/biosdisk.h.
21207 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21208 grub/util/biosdisk.h.
21210 2007-05-16 Robert Millan <rmh@aybabtu.com>
21212 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21213 * include/grub/util/biosdisk.h: ... here.
21214 * util/i386/pc/biosdisk.c: Moved to ...
21215 * util/biosdisk.c: ... here.
21216 * util/i386/pc/getroot.c: Moved to ...
21217 * util/getroot.c: ... here.
21218 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21219 * util/grub-mkdevicemap.c: ... here.
21220 * util/i386/pc/grub-probe.c: Moved to ...
21221 * util/grub-probe.c: ... here.
21223 2007-05-15 Robert Millan <rmh@aybabtu.com>
21225 * util/update-grub.in: Remove duplicated line in grub.cfg header
21228 2007-05-13 Robert Millan <rmh@aybabtu.com>
21230 * util/update-grub.in: Fix a few assumptions about the devices holding
21231 /, /boot and /boot/grub being the same.
21232 * util/grub.d/00_header.in: Likewise.
21233 * util/grub.d/10_hurd.in: Likewise.
21234 * util/grub.d/10_linux.in: Likewise.
21236 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21237 patterns. Use that to define the `.old' suffix as older than `'.
21239 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21241 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21242 the grub.cfg header message.
21244 2007-05-11 Robert Millan <rmh@aybabtu.com>
21246 * util/update-grub.in: Create device.map if it doesn't already exist,
21247 before attempting to run grub-probe.
21248 Check for grub-probe and grub-mkdevicemap with the same code
21249 grub-install is using.
21252 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21254 * Makefile.in: Add the datarootdir autoconf variable.
21256 2007-05-09 Robert Millan <rmh@aybabtu.com>
21258 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21259 fail gracefully if dev->disk->partition == NULL.
21261 2007-05-07 Robert Millan <rmh@aybabtu.com>
21263 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21264 determine partition map module.
21265 * util/i386/pc/grub-install.in: Use this feature to decide which
21266 partition module to load, instead of hardcoding pc and gpt.
21268 2007-05-07 Robert Millan <rmh@aybabtu.com>
21270 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21271 source directory differs from build directory.
21273 2007-05-05 Robert Millan <rmh@aybabtu.com>
21275 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21278 2007-05-05 Robert Millan <rmh@aybabtu.com>
21280 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21282 2007-05-05 Robert Millan <rmh@aybabtu.com>
21284 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21285 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21287 2007-05-05 Robert Millan <rmh@aybabtu.com>
21289 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21290 (grub_probe_SOURCES): Likewise.
21291 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21292 GPT and initialize dos_part and bsd_part accordingly.
21293 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21295 (main): Activate gpt module for use during partition identification,
21296 and deactivate it afterwards.
21297 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21298 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21299 partition identification, and deactivate it afterwards.
21301 2007-05-05 Robert Millan <rmh@aybabtu.com>
21303 * term/i386/pc/console.c (grub_console_fini): Call
21304 grub_term_set_current() before grub_term_unregister().
21306 2007-05-04 Robert Millan <rmh@aybabtu.com>
21308 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21309 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21310 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21311 and update-grub_DATA.
21312 * conf/common.rmk: Build and install update-grub components.
21313 * conf/common.mk: Regenerate.
21314 * util/update-grub.in: New. Core of update-grub.
21315 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21316 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21317 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21318 * util/grub.d/README: New. Document grub.d directory layout.
21320 2007-05-01 Robert Millan <rmh@aybabtu.com>
21322 * util/grub-emu.c: Move initialization functions
21323 grub_util_biosdisk_init() and grub_init_all() before
21324 grub_util_biosdisk_get_grub_dev(), which relies on them.
21326 2007-04-19 Robert Millan <rmh@aybabtu.com>
21328 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21331 2007-04-18 Jerone Young <jerone@gmail.com>
21333 * kernel/elf.c: Add missing parenthesis for conditional statement
21336 2007-04-10 Jerone Young <jerone@gmail.com>
21338 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21339 continue on and look for device node with real device name.
21341 2007-04-10 Jerone Young <jerone@gmail.com>
21343 * configure.ac: Add argument for autoconf to use transformation
21345 * Makefile.in: Add autoconf package transformation code.
21346 * util/i386/pc/grub-install.in: Likewise.
21347 * util/powerpc/ieee1275/grub-install.in: Likewise.
21349 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21351 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21352 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21353 (EXT2_REVISION): Likewise.
21354 (EXT2_INODE_SIZE): Likewise.
21355 (struct grub_ext2_block_group): Added a missing member
21357 (grub_ext2_read_inode): Divide by the inode size in a superblock
21358 instead of 128 to obtain INODES_PER_BLOCK.
21359 Use the macro EXT2_INODE_SIZE instead of directly using
21360 SBLOCK->INODE_SIZE.
21362 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21364 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21365 superblock instead of the structure size to compute an
21366 offset. This fixes the problem that GRUB could not read a
21367 filesystem when inode size is different from 128-byte.
21369 2007-03-05 Marco Gerards <marco@gnu.org>
21371 * normal/main.c (read_config_file): When "menu" is not set, create
21372 an initial context.
21374 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21376 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21377 (HEAP_LIMIT): New macro.
21378 (grub_claim_heap): Claim memory up to `heaplimit'.
21380 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21382 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21383 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21384 (_start): Likewise.
21385 (grub_arch_modules_addr): Return address after `_end'.
21386 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21387 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21388 (add_segments): Calculate `_end' from phdr size and location.
21389 (ALIGN_UP): Moved to ...
21390 * include/grub/misc.h: here.
21391 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21393 (GRUB_IEEE1275_MODULE_BASE): Removed.
21395 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21397 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21400 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21402 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21404 (grub_elf64_load_hook_t): Likewise.
21405 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21408 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21410 * kern/mm.c: Update copyright.
21411 (grub_mm_debug): Correct syntax error.
21412 (grub_mm_dump_free): New function.
21413 (grub_debug_free): Call `grub_free'.
21414 * include/grub/mm.h: Update copyright.
21415 (grub_mm_dump_free): Add declaration.
21417 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21419 * include/grub/ieee1275/ieee1275.h: Update copyright.
21420 * kern/powerpc/ieee1275/init.c: Likewise.
21421 * kern/powerpc/ieee1275/openfw.c: Likewise.
21423 * loader/powerpc/ieee1275/linux.c: Likewise.
21424 * include/grub/elfload.h: Likewise.
21425 * kern/elf.c: Likewise.
21426 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21428 (grub_elf64_load): Likewise.
21429 (grub_elf32_load_segment): Move to a nested function.
21430 (grub_elf64_load_segment): Likewise.
21432 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21434 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21436 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21437 (grub_heap_len): Likewise.
21438 (HEAP_SIZE): New macro.
21439 (grub_claim_heap): New function.
21440 (grub_machine_init): Don't claim heap directly. Call
21442 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21443 (grub_available_iterate): New function.
21445 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21447 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21448 * configure.ac: Use it for testing the HOST and TARGET compilers.
21450 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21452 * Makefile.in (enable_grub_emu): New variable.
21453 * configure.ac (--enable-grub-emu): New option.
21454 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21455 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21456 * conf/i386-pc.rmk: Likewise.
21457 * conf/powerpc-ieee1275.rmk: Likewise.
21458 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21460 2006-12-12 Marco Gerards <marco@gnu.org>
21462 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21464 * kern/env.c (grub_env_unset): Don't free the member `value' when
21465 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21468 * normal/main.c (current_menu): Removed.
21469 (free_menu): Unset the `menu' environment variable.
21470 (grub_normal_menu_addentry): Make use of the environment variable
21471 `menu', instead of using the global `current_menu'. Allocate
21472 memory for the sourcecode of this entry.
21473 (read_config_file): New argument `nested', changed all callers.
21474 Only in the case of a new context, initialize a new menu. Set the
21475 `menu' environment variable.
21476 (grub_normal_execute): Don't set and unset the environment
21477 variable `menu' here anymore. Only free the menu when leaving the
21480 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21483 2006-12-11 Marco Gerards <marco@gnu.org>
21485 * normal/menu_entry.c (run): Fix off by one bug so the last line
21486 is executed. Move the loader check to outside the loop.
21488 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21490 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21492 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21494 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21495 the number of sectors. Reported by Andrey Shuvikov
21496 <mr_hyro@yahoo.com>.
21498 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21500 * kern/disk.c (grub_disk_read): When there is a read error, always
21501 try to read only the necessary data.
21503 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21505 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21507 [GRUB_UTIL] (grub_raid_fini): Likewise.
21508 [GRUB_UTIL] (grub_lvm_init): Likewise.
21509 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21510 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21511 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21512 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21513 and grub_raid_fini().
21515 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21517 * include/grub/types.h (__unused): Rename to UNUSED.
21518 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21519 (grub_elf64_size): Likewise.
21521 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21523 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21524 grub_error_push and grub_error_pop in the error-handling path.
21525 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21528 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21530 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21531 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21533 (kernel_elf_SOURCES): Likewise.
21534 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21535 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21536 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21537 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21538 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21539 (elf_mod_SOURCES): New variable.
21540 (elf_mod_CFLAGS): Likewise.
21541 (elf_mod_LDFLAGS): Likewise.
21542 * include/grub/types.h (__unused): New macro.
21543 * include/grub/elfload.h: New file.
21544 * kern/elf.c: Likewise.
21545 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21546 (ELF32_LOADMASK): New macro.
21547 (ELF64_LOADMASK): Likewise.
21548 (vmlinux): Removed.
21549 (grub_linux_load32): New function.
21550 (grub_linux_load64): Likewise.
21551 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21552 Use grub_elf_t instead of grub_file_t.
21554 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21556 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21557 `catch_result' to struct set_color_args.
21559 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21561 * normal/menu.c: Include grub/script.h.
21562 * normal/menu_entry.c: Likewise.
21563 * include/grub/normal.h: Do not include grub/script.h.
21565 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21567 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21569 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21571 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21573 (grub_disk_close): Print debug messages when closing a disk.
21574 (grub_disk_read): Print debug messages when disk read fails.
21575 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21577 * kern/partition.c: Include misc.h.
21578 (grub_partition_iterate): Print debug messages when detecting
21581 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21583 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21585 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21587 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21589 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21590 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21592 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21594 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21595 instead of sizeof(lv). Patch by Michael Guntsche.
21597 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21599 * disk/lvm.c: Rename VGS to VG_LIST.
21600 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21601 (grub_lvm_open): Likewise.
21602 Thanks to Michael Guntsche for finding this bug.
21604 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21606 * configure.ac (AC_INIT): Bumped to 1.95.
21608 2006-10-14 Robert Millan <rmh@aybabtu.com>
21610 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21611 with "/dev/.static/dev/md".
21613 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21615 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21616 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21617 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21618 DRIVE_NAME are always freed.
21620 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21621 DOS_PART, as a DOS partition is counted from one instead of zero
21622 now. Reported by Robert Millan.
21624 2006-10-14 Robert Millan <rmh@aybabtu.com>
21626 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21627 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21628 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21629 string returned by grub_guess_root_device.
21630 * util/i386/pc/grub-setup.c: Likewise.
21631 * util/i386/pc/grub-probefs.c: Likewise.
21633 * util/i386/pc/grub-probefs.c: Rename to ...
21634 * util/i386/pc/grub-probe.c: ... this.
21635 * DISTLIST: Remove grub-probefs, add grub-probe.
21636 * conf/i386-efi.rmk: Likewise.
21637 * conf/i386-pc.rmk: Likewise.
21638 * util/i386/pc/grub-install.in: Likewise.
21640 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21641 choose which information we want to print.
21643 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21645 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21646 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21647 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21648 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21649 video/readers/tga.c and video/i386/pc/vbeutil.c.
21651 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21653 Added support for RAID and LVM.
21655 * disk/lvm.c: New file.
21656 * disk/raid.c: Likewise.
21657 * include/grub/lvm.h: Likewise.
21658 * include/grub/raid.h: Likewise.
21659 * include/grub/util/lvm.h: Likewise.
21660 * include/grub/util/raid.h: Likewise.
21661 * util/lvm.c: Likewise.
21662 * util/raid.c: Likewise.
21664 * include/grub/disk.h (grub_disk_dev_id): Add
21665 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21666 (grub_disk_get_size): New prototype.
21667 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21668 returns a partition.
21669 (grub_disk_get_size): New function.
21671 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21672 verbatim if grub_install_dos_part is -2.
21674 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21677 * util/i386/pc/grub-setup.c (setup): New argument
21678 MUST_EMBED. Force embedding of GRUB when the argument is
21679 true. Close FILE before returning.
21680 (main): Add support for RAID and LVM.
21682 * conf/common.rmk: Add RAID and LVM modules.
21683 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21685 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21687 * kern/misc.c (grub_strstr): New function.
21688 * include/grub/misc.h (grub_strstr): New prototype.
21690 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21692 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21694 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21696 * kern/misc.c (grub_strtoull): Guess the base only if not
21699 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21701 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21704 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21708 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21709 Remove `flags' argument. All callers changed.
21710 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21711 (IEEE1275_IHANDLE_INVALID): New variable.
21712 (IEEE1275_CELL_INVALID): New variable.
21713 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21714 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21715 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21716 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21717 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21718 codes from Open Firmware. All callers updated.
21719 (grub_ieee1275_next_property): Directly return Open Firmware return
21721 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21722 Standardize error checking from `grub_ieee1275_get_property'.
21723 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21724 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21726 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21728 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21729 `instance_to_package_args' to `instance_to_path_args'.
21731 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21732 `grub_ieee1275_chosen'.
21734 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21735 `grub_ieee1275_interpret'.
21737 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21739 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21741 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21743 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21744 (__cmpdi): Likewise.
21746 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21747 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21750 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21752 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21753 to type `grub_ssize_t'.
21754 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21756 2006-09-22 Marco Gerards <marco@gnu.org>
21758 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21761 2006-09-22 Marco Gerards <marco@gnu.org>
21763 * commands/echo.c: New file.
21765 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21767 * conf/common.rmk (echo_mod_SOURCES): New variable.
21768 (echo_mod_CFLAGS): Likewise.
21769 (echo_mod_LDFLAGS): Likewise.
21771 2006-09-22 Marco Gerards <marco@gnu.org>
21773 * normal/main.c (get_line): Malloc memory instead of using
21774 preallocated memory. Removed the arguments `cmdline' and
21775 `max_len'. Updated all callers.
21777 2006-09-22 Marco Gerards <marco@gnu.org>
21779 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21780 (normal_mod_DEPENDENCIES): Likewise.
21782 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21783 (normal_mod_DEPENDENCIES): Likewise.
21785 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21787 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21789 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21791 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21792 (normal_mod_DEPENDENCIES): Likewise.
21793 * conf/i386-pc.mk: Regenerate.
21794 * conf/i386-efi.mk: Likewise
21795 * conf/common.mk: Likewise.
21796 * conf/powerpc-ieee1275.mk: Likewise.
21797 * conf/sparc64-ieee1275.mk: Likewise.
21799 2006-09-22 Robert Millan <rmh@aybabtu.com>
21801 Sync with i386 version.
21802 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21803 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21805 2006-09-21 Robert Millan <rmh@aybabtu.com>
21807 Import from GRUB Legacy (lib/device.c):
21808 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21809 (init_device_map) [__linux__]: Add support for I2O devices.
21811 2006-09-14 Marco Gerards <marco@gnu.org>
21813 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21816 2006-09-14 Robert Millan <rmh@aybabtu.com>
21818 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21821 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21823 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21824 before adding it to device.map.
21826 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21828 * genmk.rb: Let GCC generate dependencies the first time it
21829 compiles a file; using the -MD option.
21830 * conf/common.mk: Regenerate.
21831 * conf/i386-pc.mk: Likewise.
21832 * conf/i386-efi.mk: Likewise.
21833 * conf/powerpc-ieee1275.mk: Likewise.
21834 * conf/sparc64-ieee1275.mk: Likewise.
21836 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21838 Move the prototypes of grub_setjmp and grub_longjmp to
21839 cpu/setjmp.h, so that each architecture may specify different
21842 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21843 (grub_longjmp): Likewise.
21844 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21845 (grub_longjmp): Likewise.
21846 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21847 (grub_longjmp): Likewise.
21849 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21850 [!GRUB_UTIL] (grub_longjmp): Removed.
21852 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21854 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21855 "color!" method does not return any value.
21857 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21859 * include/grub/bitmap.h: New file.
21861 * include/grub/i386/pc/vbeutil.h: Likewise.
21863 * video/bitmap.c: Likewise.
21865 * video/readers/tga.c: Likewise.
21867 * video/i386/pc/vbeutil.c: Likewise.
21869 * commands/videotest.c: Code cleanup and updated to reflect to new
21872 * term/gfxterm.c: Likewise.
21874 * video/video.c: Likewise.
21876 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21877 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21878 (bitmap_mod_SOURCES): New entry.
21879 (bitmap_mod_CFLAGS): Likewise.
21880 (bitmap_mod_LDFLAGS): Likewise.
21881 (tga_mod_SOURCES): Likewise.
21882 (tga_mod_CFLAGS): Likewise.
21883 (tga_mod_LDFLAGS): Likewise.
21885 * include/grub/video.h (grub_video_blit_operators): New enum type.
21886 (grub_video_render_target): Changed as forward declaration and moved
21887 actual definition to be video driver specific.
21888 (grub_video_adapter.blit_bitmap): Added blitting operator.
21889 (grub_video_adapter.blit_render_target): Likewise.
21890 (grub_video_blit_bitmap): Likewise.
21891 (grub_video_blit_render_target): Likewise.
21893 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21894 driver specific render target definition.
21895 (grub_video_vbe_map_rgba): Added driver internal helper.
21896 (grub_video_vbe_unmap_color): Updated to use
21897 grub_video_i386_vbeblit_info.
21898 (grub_video_vbe_get_video_ptr): Likewise.
21900 * include/grub/i386/pc/vbeblit.h
21901 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21902 grub_video_i386_vbeblit_info.
21903 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21904 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21905 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21906 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21907 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21908 (grub_video_i386_vbeblit_index_index): Likewise.
21909 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21910 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21911 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21912 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21914 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21917 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21918 include/grub/i386/pc/vbeblit.h.
21920 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21921 Updated to use grub_video_i386_vbeblit_info.
21922 (grub_video_i386_vbefill_R8G8B8): Likewise.
21923 (grub_video_i386_vbefill_index): Likewise.
21924 (grub_video_i386_vbefill): Added generic filler.
21926 * video/i386/pc/vbefill.c: Updated to reflect changes on
21927 include/grub/i386/pc/vbefill.h.
21929 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21930 grub_video_i386_vbeblit_info.
21931 (grub_video_vbe_unmap_color): Likewise.
21932 (grub_video_vbe_blit_glyph): Likewise.
21933 (grub_video_vbe_scroll): Likewise.
21934 (grub_video_vbe_draw_pixel): Removed function.
21935 (grub_video_vbe_get_pixel): Likewise.
21936 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21937 updated code to use it.
21938 (common_blitter): Added common blitter for render target and bitmap.
21939 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21940 (grub_video_vbe_blit_render_target): Likewise.
21942 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21944 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21945 is in text mode if there is no console control protocol instance
21948 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21950 * include/grub/video.h: Code cleanup.
21952 * include/grub/i386/pc/vbe.h: Likewise.
21954 * video/i386/pc/vbe.c: Likewise.
21956 * video/i386/pc/vbeblit.c: Likewise.
21958 * video/i386/pc/vbefill.c: Likewise.
21960 * video/video.c: Likewise. Also added more comments.
21962 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21964 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21965 (struct grub_biosdisk_dap): Likewise.
21967 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21968 linkage settings for all functions.
21970 2006-07-12 Marco Gerards <marco@gnu.org>
21972 * configure.ac (--enable-mm-debug): Fix typo.
21974 * genkernsyms.sh.in: Use proper quoting for `CC'.
21976 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21978 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21979 (normal_mod_ASFLAGS): Remove "-m32".
21981 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21983 * util/misc.c: Include config.h.
21984 [!HAVE_MEMALIGN]: Do not include malloc.h.
21985 (grub_memalign): Use posix_memalign, if present. Then, use
21986 memalign, if present. Otherwise, emit an error.
21988 * util/grub-emu.c: Do not include malloc.h.
21990 * include/grub/util/misc.h: Include unistd.h. This is required for
21991 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21992 D. Eades III <hde@foobar-qux.org>.
21994 * configure.ac (AC_GNU_SOURCE): Added.
21995 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21998 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22000 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22001 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22003 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22005 * include/grub/types.h (grub_host_addr_t): Rename to
22006 grub_target_addr_t.
22007 (grub_host_off_t): Rename to grub_target_off_t.
22008 (grub_host_size_t): Rename to grub_target_size_t.
22009 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22010 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22012 * include/grub/kernel.h (struct grub_module_header): Change type
22013 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22014 (grub_module_info): Likewise.
22016 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22018 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22019 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22020 Velazquez <jesus.velazquez@gmail.com>.
22022 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22024 Count partitions from 1 instead of 0 in the string representation
22025 of partitions. Still use 0-based internally.
22027 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22028 (sun_partition_map_iterate): Use grub_partition_t instead of
22029 struct grub_partition *. Cast DESC->START_CYLINDER to
22030 grub_uint64_t after converting the endian.
22031 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22032 (sun_partition_map_get_name): Add 1 to P->INDEX.
22034 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22036 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22038 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22039 zero instead of one.
22040 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22041 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22043 * partmap/apple.c (apple_partition_map_iterate): Change the type
22044 of POS to unsigned.
22045 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22046 (apple_partition_map_get_name): Add 1 into P->INDEX.
22048 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22049 of POS to unsigned.
22050 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22051 calculate the offset of a partition.
22052 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22053 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22055 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22056 SECTOR to grub_disk_addr_t.
22057 (acorn_partition_map_iterate): Likewise.
22058 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22059 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22061 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22063 * kern/i386/pc/init.c (make_install_device): Add 1 into
22064 GRUB_INSTALL_DOS_PART.
22066 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22069 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22071 Clean up the code to support 64-bit addressing in disks and
22072 files. This change is not enough for filesystems yet.
22074 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22075 type of "start" to grub_uint64_t.
22076 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22077 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22078 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22081 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22082 to grub_disk_addr_t.
22084 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22087 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22089 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22092 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22094 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22096 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22098 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22099 to grub_off_t, to detect an error from grub_file_seek.
22100 (grub_multiboot_load_elf32): Likewise.
22102 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22103 maximum unsigned long value when an overflow is detected.
22104 (grub_strtoull): New function.
22105 (grub_divmod64): Likewise.
22106 (grub_lltoa): use grub_divmod64.
22108 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22110 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22111 the pointer to next character. Use grub_strtoull instead of
22113 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22114 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22117 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22118 return value is signed.
22119 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22120 test if OFFSET is less than zero, as OFFSET is unsigned now.
22122 * kern/disk.c (struct grub_disk_cache): Change the type of
22123 "sector" to grub_disk_addr_t.
22124 (grub_disk_cache_get_index): Change the type of SECTOR to
22125 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22126 unsigned after shifting.
22127 (grub_disk_cache_invalidate): Change the type of SECTOR to
22129 (grub_disk_cache_unlock): Likewise.
22130 (grub_disk_cache_store): Likewise.
22131 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22132 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22133 grub_disk_addr_t and grub_uint64_t, respectively.
22134 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22135 body, as the value of OFFSET is tweaked by
22136 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22137 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22139 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22140 body, as the value of OFFSET is tweaked by
22141 grub_disk_check_range. Change the types of LEN and N to
22144 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22145 and "saved_offset" to grub_off_t.
22146 (test_header): Cast BUF to char *.
22147 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22149 (grub_gzio_read): Change the types of OFFSET and SIZE to
22150 grub_off_t and grub_size_t, respectively.
22152 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22154 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22155 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22156 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22157 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22158 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22160 * include/grub/types.h (grub_off_t): Unconditionally set to
22162 (grub_disk_addr_t): Changed to grub_uint64_t.
22164 * include/grub/partition.h (struct grub_partition): Change the
22165 types of "start", "len" and "offset" to grub_disk_addr_t,
22166 grub_uint64_t and grub_disk_addr_t, respectively.
22167 (grub_partition_get_start): Return grub_disk_addr_t.
22168 (grub_partition_get_len): Return grub_uint64_t.
22170 * include/grub/misc.h (grub_strtoull): New prototype.
22171 (grub_divmod64): Likewise.
22173 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22174 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22175 grub_off_t, respectively.
22176 All callers and references changed.
22178 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22179 grub_size_t in "read".
22180 All callers and references changed.
22182 * include/grub/file.h (struct grub_file): Change the types of
22183 "offset" and "size" to grub_off_t and grub_off_t,
22184 respectively. Change the type of SECTOR to grub_disk_addr_t in
22186 (grub_file_read): Change the type of LEN to grub_size_t.
22187 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22189 (grub_file_size): Return grub_off_t.
22190 (grub_file_tell): Likewise.
22191 All callers and references changed.
22193 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22194 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22196 (struct grub_disk): Change the type of "total_sectors" to
22197 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22199 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22200 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22201 (grub_disk_write): Likewise.
22202 All callers and references changed.
22204 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22205 char * for grub_strncmp to silence gcc.
22206 (grub_iso9660_mount): Likewise.
22207 (grub_iso9660_mount): Likewise.
22208 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22210 (grub_iso9660_iterate_dir): Likewise.
22211 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22213 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22214 LEN to grub_disk_addr_t and grub_size_t, respectively.
22216 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22218 * fs/jfs.c (grub_jfs_read_file): Likewise.
22220 * fs/minix.c (grub_jfs_read_file): Likewise.
22222 * fs/sfs.c (grub_jfs_read_file): Likewise.
22224 * fs/ufs.c (grub_jfs_read_file): Likewise.
22226 * fs/xfs.c (grub_jfs_read_file): Likewise.
22228 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22229 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22232 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22233 BLKNR to -1 instead of returning GRUB_ERRNO.
22234 (grub_ext2_read_file): Change the types of SECTOR and
22235 LEN to grub_disk_addr_t and grub_size_t, respectively.
22237 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22238 LEN to grub_disk_addr_t and grub_size_t, respectively.
22240 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22243 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22244 string. Do not cast SECTOR explicitly.
22246 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22247 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22248 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22249 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22250 over 2TB and LBA mode is not supported, raise an error.
22251 (get_safe_sectors): New function.
22252 (grub_biosdisk_read): Use get_safe_sectors.
22253 (grub_biosdisk_write): Likewise.
22255 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22256 (grub_efidisk_write): Likewise.
22258 * disk/loopback.c (delete_loopback): Cosmetic changes.
22259 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22261 (grub_loopback_open): Likewise.
22262 (grub_loopback_read): Likewise. Also, change the type of POS to
22263 grub_off_t, and fix the usage of grub_memset.
22265 * commands/i386/pc/play.c: Include grub/machine/time.h.
22267 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22270 * commands/configfile.c: Include grub/env.h.
22272 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22273 GRUB_ERRNO directly instead. Change the type of POS to
22274 grub_off_t. Follow the coding standard.
22276 * commands/blocklist.c: Include grub/partition.h.
22277 (grub_cmd_blocklist): Return an error if the underlying device is
22278 not a disk. Take the starting sector of a partition into account,
22279 if a partition is used.
22281 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22283 (lba_mode): Support 64-bit addresses.
22284 (chs_mode): Likewise.
22285 (copy_buffer): Adapted to the new offsets of a length field and a
22287 (blocklist_default_start): Allocate 64-bit space.
22289 * boot/i386/pc/boot.S (force_lba): Removed.
22290 (boot_drive): Moved to under KERNEL_SECTOR.
22291 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22293 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22295 (lba_mode): Refactored to support a 64-bit address. More size
22297 (setup_sectors): Likewise.
22299 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22301 * DISTLIST: Added include/grub/i386/linux.h. Removed
22302 include/grub/i386/pc/linux.h
22304 * configure.ac (AC_INIT): Bumped to 1.94.
22306 * config.guess: Updated from gnulib.
22307 * config.sub: Likewise.
22308 * install-sh: Likewise.
22309 * mkinstalldirs: Likewise.
22311 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22313 * conf/common.rmk (grub_modules_init.lst): Depended on
22314 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22317 * genmk.rb (PModule::rule): Reverted the previous change.
22319 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22321 * conf/common.rmk (grub_modules_init.lst): Depends on
22322 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22323 that the target does not exist before producing.
22324 (grub_modules_init.h): Remove the target before generating.
22325 (grub_emu_init.c): Likewise.
22327 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22329 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22331 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22332 for the target-specific tests. Make sure that we also have the
22333 up-to-date target variables for those tests.
22335 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22337 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22338 (PModule::rule): Likewise.
22340 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22342 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22343 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22344 target-specific flags should be prefixed.
22345 (PModule::rule): Likewise.
22347 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22349 * configure.ac (CMP): Check if cmp is available explicitly.
22351 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22353 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22354 (target_cpu): New variable.
22355 (pkglibdir): Use target_cpu instead of host_cpu.
22357 * util/i386/pc/grub-install.in (host_cpu): Removed.
22358 (target_cpu): New variable.
22359 (pkglibdir): Use target_cpu instead of host_cpu.
22361 * util/genmoddep.c: Removed.
22363 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22364 instead of GRUB_HOST_SIZEOF_VOID_P.
22365 * kern/dl.c: Likewise.
22367 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22369 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22370 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22371 (GRUB_TARGET_SIZEOF_LONG): ... this.
22372 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22373 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22374 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22376 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22377 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22378 (GRUB_TARGET_SIZEOF_LONG): ... this.
22379 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22380 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22381 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22383 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22384 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22385 (GRUB_TARGET_SIZEOF_LONG): ... this.
22386 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22387 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22389 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22390 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22391 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22392 instead of GRUB_HOST_SIZEOF_LONG.
22393 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22394 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22395 GRUB_CPU_WORDS_BIGENDIAN.
22396 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22397 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22400 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22401 (genmoddep_SOURCES): Likewise.
22402 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22403 (genmoddep_SOURCES): Likewise.
22404 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22405 (genmoddep_SOURCES): Likewise.
22406 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22408 (genmoddep_SOURCES): Likewise.
22410 * genmoddep.awk: New file.
22412 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22413 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22414 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22415 (PModule::rule): Likewise.
22416 (Program::rule): Likewise.
22417 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22418 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22421 * configure.ac: Rewritten intensively to use host and target
22422 instead of build and host, respectively.
22424 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22425 (host_cpu): Removed.
22426 (target_cpu): New variable.
22427 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22428 (BUILD_CC): Removed.
22429 (BUILD_CFLAGS): Likewise.
22430 (BUILD_CPPFLAGS): Likewise.
22431 (TARGET_CC): New variable.
22432 (TARGET_CFLAGS): Likewise.
22433 (TARGET_CPPFLAGS): Likewise.
22434 (TARGET_LDFLAGS): Likewise.
22436 (include): Use target_cpu instead of host_cpu.
22437 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22439 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22441 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22443 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22444 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22445 field 'false' to 'exec_on_false'.
22446 (grub_script_create_cmdif): Renamed argument names to reflect above
22449 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22451 * normal/script.c (grub_script_create_cmdif): Likewise.
22453 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22455 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22457 (grub_hfsplus_btree_recptr): Likewise.
22458 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22459 FILEBLOCK both to pass a block number and store next block
22461 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22462 overflow file correctly. Specify errors appropriately, because
22463 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22464 grub_hfsplus_btree_recptr to get the pointer to a found key.
22465 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22468 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22470 (_linux_mod_SOURCES): New variable.
22471 (_linux_mod_CFLAGS): Likewise.
22472 (_linux_mod_LDFLAGS): Likewise.
22473 (linux_mod_SOURCES): Likewise.
22474 (linux_mod_CFLAGS): Likewise.
22475 (linux_mod_LDFLAGS): Likewise.
22477 * DISTLIST: Added loader/i386/efi/linux.c,
22478 loader/i386/efi/linux_normal.c and
22479 include/grub/i386/efi/loader.h.
22481 * loader/i386/efi/linux.c: New file.
22482 * loader/i386/efi/linux_normal.c: Likewise.
22483 * include/grub/i386/efi/loader.h: Likewise.
22485 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22487 * commands/blocklist.c: New file.
22489 * DISTLIST: Added commands/blocklist.c.
22491 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22492 color for the background, and a darker color for the foreground.
22493 (grub_console_checkkey): Return READ_KEY.
22494 (grub_console_cls): Set the background to
22495 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22497 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22499 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22500 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22502 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22505 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22506 BG. The spec is wrong again.
22508 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22510 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22512 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22513 commands/blocklist.c.
22514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22516 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22517 (blocklist_mod_SOURCES): New variable.
22518 (blocklist_mod_CFLAGS): Likewise.
22519 (blocklist_mod_LDFLAGS): Likewise.
22521 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22523 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22525 (lba_mode): Use %eax more intensively to reduce the code size.
22527 2006-05-20 Marco Gerards <marco@gnu.org>
22529 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22531 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22533 (script): Accept leading newlines.
22534 (newlines): New rule to describe 0 or more newlines.
22535 (commands): Accept `command' with trailing newline. Fixed the
22536 order in which arguments were passed to `grub_script_add_cmd'.
22537 Accept commands separated by newlines.
22538 (function): Changed to accept newlines.
22539 (menuentry) Rewritten.
22541 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22542 front of the list, instead of to the end.
22544 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22546 * util/i386/pc/grub-install.in (bindir): New variable.
22547 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22548 Shaver <lbgwjl@gmail.com>.
22550 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22552 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22553 grub/machine/linux.h
22554 * loader/i386/pc/linux.c: Likewise.
22556 * include/grub/i386/pc/linux.h: Moved to ...
22557 * include/grub/i386/linux.h: ... here.
22559 * include/grub/i386/linux.h (struct linux_kernel_params): New
22562 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22564 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22566 (grub_video_vbe_blit_glyph): Likewise.
22567 (grub_video_vbe_blit_bitmap): Likewise.
22568 (grub_video_vbe_blit_render_target): Likewise.
22570 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22572 * configure.ac (--with-platform): Properly quote the square
22575 2006-05-08 Marco Gerards <marco@gnu.org>
22577 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22579 (kernel_elf_HEADERS): ...to this. Updated all users.
22580 (grubof_symlist.c): Renamed from this...
22581 (kernel_elf_symlist.c): ...to this. Updated all users.
22582 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22583 (grubof_SOURCES): Renamed from this...
22584 (kernel_elf_SOURCES): ...to this.
22585 (grubof_HEADERS): Renamed from this...
22586 (kernel_elf_HEADERS): ...to this.
22587 (grubof_CFLAGS): Renamed from this...
22588 (kernel_elf_CFLAGS): ...to this.
22589 (grubof_ASFLAGS): Renamed from this...
22590 (kernel_elf_ASFLAGS): ...to this.
22591 (grubof_LDFLAGS): Renamed from this...
22592 (kernel_elf_LDFLAGS): ...to this.
22594 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22596 (kernel_elf_HEADERS): ...to this. Updated all users.
22597 (grubof_symlist.c): Renamed from this...
22598 (kernel_elf_symlist.c): ...to this. Updated all users.
22599 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22600 (grubof_SOURCES): Renamed from this...
22601 (kernel_elf_SOURCES): ...to this.
22602 (grubof_HEADERS): Renamed from this...
22603 (kernel_elf_HEADERS): ...to this.
22604 (grubof_CFLAGS): Renamed from this...
22605 (kernel_elf_CFLAGS): ...to this.
22606 (grubof_ASFLAGS): Renamed from this...
22607 (kernel_elf_ASFLAGS): ...to this.
22608 (grubof_LDFLAGS): Renamed from this...
22609 (kernel_elf_LDFLAGS): ...to this.
22611 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22612 `kernel.elf' instead of `grubof'.
22614 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22616 Add --with-platform to configure. Use pkglibdir instead of
22617 pkgdatadir. This is reported by Roger Leigh.
22619 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22620 (host_vendor): Likewise.
22621 (host_os): Likewise.
22622 (pkgdatadir): Likewise.
22623 (platform): New variable.
22624 (pkglibdir): Likewise.
22625 Use PKGLIBDIR instead of PKGDATADIR.
22627 * util/i386/pc/grub-install.in (datadir): Removed.
22628 (host_vendor): Likewise.
22629 (host_os): Likewise.
22630 (pkgdatadir): Likewise.
22631 (platform): New variable.
22632 (pkglibdir): Likewise.
22633 Use PKGLIBDIR instead of PKGDATADIR.
22635 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22636 instead of GRUB_DATADIR.
22638 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22640 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22643 * configure.ac (--with-platform): New option.
22644 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22646 * Makefile.in: Include a makefile based on PLATFORM instead of
22648 (pkgdatadir): Not appended by the machine type.
22649 (pkglibdir): Appended by the machine type.
22650 (host_vendor): Removed.
22651 (platform): New variable.
22652 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22653 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22654 (uninstall): Likewise.
22656 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22658 Use the environment context in the menu. Remove the commands
22659 "default" and "timeout", and use variables instead.
22661 * normal/menu.c: Include grub/env.h.
22662 (print_entry): Cast TITLE to silence gcc.
22663 (get_timeout): New function.
22664 (set_timeout): Likewise.
22665 (get_entry_number): Likewise.
22666 (run_menu): Use a default entry, a fallback entry and a timeout
22667 in the environment variables "default", "fallback" and
22668 "timeout". Also, tweak the default entry if it is not within the
22669 current menu entries.
22670 (grub_menu_run): Use a fallback entry in the environment variable
22673 * normal/main.c (read_config_file): Do not initialize
22674 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22676 (grub_normal_execute): Use a data slot to store the menu.
22678 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22679 fallback_entry and timeout.
22680 (struct grub_menu_list): Removed.
22681 (grub_menu_list_t): Likewise.
22682 (struct grub_context): Likewise.
22683 (grub_context_t): Likewise.
22684 (grub_context_get): Likewise.
22685 (grub_context_get_current_menu): Likewise.
22686 (grub_context_push_menu): Likewise.
22687 (grub_context_pop_menu): Likewise.
22688 (grub_default_init): Likewise.
22689 (grub_default_fini): Likewise.
22690 (grub_timeout_init): Likewise.
22691 (grub_timeout_fini): Likewise.
22693 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22695 (normal_mod_SOURCES): Removed normal/context.c.
22697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22698 commands/default.c, commands/timeout.c and normal/context.c.
22699 (normal_mod_SOURCES): Removed normal/context.c.
22701 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22702 commands/timeout.c and normal/context.c.
22703 (normal_mod_SOURCES): Removed normal/context.c.
22705 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22706 commands/default.c, commands/timeout.c and normal/context.c.
22707 (normal_mod_SOURCES): Removed normal/context.c.
22709 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22711 (default_mod_SOURCES): Removed.
22712 (default_mod_CFLAGS): Likewise.
22713 (default_mod_LDFLAGS): Likewise.
22714 (timeout_mod_SOURCES): Removed.
22715 (timeout_mod_CFLAGS): Likewise.
22716 (timeout_mod_LDFLAGS): Likewise.
22718 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22721 * commands/default.c: Removed.
22722 * commands/timeout.c: Likewise.
22723 * normal/context.c: Likewise.
22725 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22727 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22729 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22731 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22732 "next" to "prev" for readability.
22733 (struct grub_env_sorted_var): New struct.
22734 (grub_env_context): Renamed to ...
22735 (initial_context): ... this.
22736 (grub_env_var_context): Renamed to ...
22737 (current_context): ... this.
22738 (grub_env_find): Look only at CURRENT_CONTEXT.
22739 (grub_env_context_open): Rewritten to copy exported variables from
22741 (grub_env_context_close): Rewritten according to the new
22742 scheme. Also, add an assertion to prevent the initial context from
22744 (grub_env_insert): Removed the code for the sorted list.
22745 (grub_env_remove): Likewise.
22746 (grub_env_export): Simply mark the variable with
22747 GRUB_ENV_VAR_GLOBAL.
22748 (grub_env_set): A cosmetic change for naming consistency.
22749 (grub_env_get): Likewise.
22750 (grub_env_unset): Likewise.
22751 (grub_env_iterate): Rewritten to sort variables within this
22753 (grub_register_variable_hook): Fixed for naming consistency. Call
22754 grub_env_find again, only if NAME is not found at the first time.
22755 (mangle_data_slot_name): New function.
22756 (grub_env_set_data_slot): Likewise.
22757 (grub_env_get_data_slot): Likewise.
22758 (grub_env_unset_data_slot): Likewise.
22760 * include/grub/env.h (grub_env_var_type): New enum.
22761 (GRUB_ENV_VAR_LOCAL): New constant.
22762 (GRUB_ENV_VAR_GLOBAL): Likewise.
22763 (GRUB_ENV_VAR_DATA): Likewise.
22764 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22766 (grub_env_set): Replace VAR with NAME for consistency.
22767 (grub_register_variable_hook): Likewise.
22768 (grub_env_export): Specify the name of the argument.
22769 (grub_env_set_data_slot): New prototype.
22770 (grub_env_get_data_slot): Likewise.
22771 (grub_env_unset_data_slot): Likewise.
22773 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22775 Extend the loader so that GRUB can accept a loader which comes
22776 back to GRUB when a loaded image exits. Also, this change adds
22777 support for a chainloader on EFI.
22779 * term/efi/console.c: Include grub/misc.h.
22780 (grub_console_checkkey): Display a scan code on the top for
22781 debugging. This will be removed once the EFI port gets stable.
22782 Correct the scan code mapping.
22784 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22785 allocate memory from larger regions, in order to reduce the number
22786 of allocated regions. Otherwise, the MacOSX loader panics.
22787 (filter_memory_map): Avoid less than 1MB for compatibility with
22789 (add_memory_regions): Allocate from the tail of a region, if
22790 possible, to avoid allocating a region near to 1MB, for the MacOSX
22793 * kern/efi/init.c (grub_efi_set_prefix): Specify
22794 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22796 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22797 argument IMAGE_HANDLE and specify it to get a loaded image.
22798 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22799 grub_efi_get_loaded_image.
22800 (grub_efi_get_filename): Divide the length by the size of
22802 (grub_efi_get_device_path): New function.
22803 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22804 the length by the size of grub_efi_char16_t for a file path device
22807 * kern/loader.c (grub_loader_noreturn): New variable.
22808 (grub_loader_set): Accept a new argument NORETURN. Set
22809 GRUB_LOADER_NORETURN to NORETURN.
22810 All callers changed.
22811 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22814 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22816 (grub_efi_get_loaded_image): Take an argument to specify an image
22819 * include/grub/loader.h (grub_loader_set): Added one more argument
22822 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22823 instead of grub_efi_open_protocol.
22824 (grub_efidisk_get_device_name): Likewise.
22825 (grub_efidisk_close): Print a newline.
22826 (grub_efidisk_get_device_handle): Fixed to use
22827 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22828 GRUB_EFI_DEVICE_PATH_TYPE.
22830 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22831 * kern/efi/efi.c (device_path_guid): ... here.
22833 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22835 (kernel_mod_HEADERS): Added efi/disk.h.
22836 (_chain_mod_SOURCES): New variable.
22837 (_chain_mod_CFLAGS): Likewise.
22838 (_chain_mod_LDFLAGS): Likewise.
22839 (chain_mod_SOURCES): Likewise.
22840 (chain_mod_CFLAGS): Likewise.
22841 (chain_mod_LDFLAGS): Likewise.
22843 * DISTLIST: Added include/grub/efi/chainloader.h,
22844 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22846 * include/grub/efi/chainloader.h: New file.
22847 * loader/efi/chainloader.c: Likewise.
22848 * loader/efi/chainloader_normal.c: Likewise.
22850 2006-04-30 Marco Gerards <marco@gnu.org>
22852 * commands/configfile.c (grub_cmd_source): New function.
22853 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22854 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22856 2006-04-30 Marco Gerards <marco@gnu.org>
22858 * normal/execute.c (grub_script_execute_cmd): Change the return
22859 type to `grub_err_t'. Correctly return the error.
22860 (grub_script_execute_cmdline): In case a command line is not a
22861 command or a function, try to interpret it as an assignment.
22863 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22865 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22866 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22867 skip a node whose name is obviously invalid as UTF-16,
22868 i.e. contains a NUL character. Stop the iteration when the last
22869 directory entry is found. Instead of using the return value of
22870 grub_hfsplus_btree_iterate_node, store the value in RET and use
22871 it, because the iterator can be stopped by the last directory
22874 2006-04-30 Marco Gerards <marco@gnu.org>
22876 * include/grub/env.h (grub_env_export): New prototype. Reported
22877 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22879 2006-04-30 Marco Gerards <marco@gnu.org>
22881 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22882 size of the extents in a catalog file record.
22884 2006-04-29 Marco Gerards <marco@gnu.org>
22886 * commands/configfile.c (grub_cmd_configfile): Execute the
22887 configfile within its own context.
22889 * include/grub/env.h (grub_env_context_open): New prototype.
22890 (grub_env_context_close): Likewise.
22892 * kern/env.c (grub_env): Removed.
22893 (grub_env_sorted): Likewise.
22894 (grub_env_context): New variable.
22895 (grub_env_var_context): Likewise.
22896 (grub_env_find): Search both the active context and the global
22898 (grub_env_context_open): New function.
22899 (grub_env_context_close): Likewise.
22900 (grub_env_insert): Likewise.
22901 (grub_env_remove): Likewise.
22902 (grub_env_export): Likewise.
22903 (grub_env_set): Changed to use helper functions to avoid code
22905 (grub_env_iterate): Rewritten so both the current context and the
22906 global context are being used.
22908 * normal/command.c (export_command): New function.
22909 (grub_command_init): Register the `export' function.
22911 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22913 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22914 explicitly to suppress gcc's warnings.
22915 * fs/fat.c (grub_fat_find_dir): Likewise.
22916 (grub_fat_label): Likewise.
22917 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22918 (grub_xfs_mount): Likewise.
22919 (grub_xfs_label): Likewise.
22920 * fs/affs.c (grub_affs_mount): Likewise.
22921 (grub_affs_label): Likewise.
22922 (grub_affs_iterate_dir): Likewise.
22923 * fs/sfs.c (grub_sfs_mount): Likewise.
22924 (grub_sfs_iterate_dir): Likewise.
22925 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22926 * fs/hfs.c (grub_hfs_mount): Likewise.
22927 (grub_hfs_cmp_catkeys): Likewise.
22928 (grub_hfs_find_dir): Likewise.
22929 (grub_hfs_dir): Likewise.
22930 (grub_hfs_label): Likewise.
22931 * fs/jfs.c (grub_jfs_mount): Likewise.
22932 (grub_jfs_opendir): Likewise.
22933 (grub_jfs_getent): Likewise.
22934 (grub_jfs_lookup_symlink): Likewise.
22935 (grub_jfs_label): Likewise.
22936 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22937 (grub_hfsplus_iterate_dir): Likewise.
22938 (grub_hfsplus_btree_iterate_node): Made static.
22940 * util/grub-emu.c (prefix): New variable.
22941 (grub_machine_set_prefix): New function.
22942 (main): Do not set the environment variable "prefix" here. Only
22943 set PREFIX, which is used later by grub_machine_set_prefix.
22945 * include/grub/video.h: Do not include grub/symbol.h.
22946 (grub_video_register): Not exported. This symbol is not defined in
22948 (grub_video_unregister): Likewise.
22949 (grub_video_iterate): Likewise.
22950 (grub_video_setup): Likewise.
22951 (grub_video_restore): Likewise.
22952 (grub_video_get_info): Likewise.
22953 (grub_video_get_blit_format): Likewise.
22954 (grub_video_set_palette): Likewise.
22955 (grub_video_get_palette): Likewise.
22956 (grub_video_set_viewport): Likewise.
22957 (grub_video_get_viewport): Likewise.
22958 (grub_video_map_color): Likewise.
22959 (grub_video_map_rgb): Likewise.
22960 (grub_video_map_rgba): Likewise.
22961 (grub_video_fill_rect): Likewise.
22962 (grub_video_blit_glyph): Likewise.
22963 (grub_video_blit_bitmap): Likewise.
22964 (grub_video_blit_render_target): Likewise.
22965 (grub_video_scroll): Likewise.
22966 (grub_video_swap_buffers): Likewise.
22967 (grub_video_create_render_target): Likewise.
22968 (grub_video_delete_render_target): Likewise.
22969 (grub_video_set_active_render_target): Likewise.
22971 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22973 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22975 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22976 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22977 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22978 instead of $(srcdir)/genkernsyms.sh.
22980 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22981 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22982 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22983 instead of $(srcdir)/genkernsyms.sh.
22985 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22986 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22987 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22988 instead of $(srcdir)/genkernsyms.sh.
22990 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22991 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22992 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22993 instead of $(srcdir)/genkernsyms.sh.
22995 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22998 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23000 (gensymlist.sh): New target.
23001 (genkernsyms.sh): Likewise.
23003 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23004 genkernsyms.sh.in and gensymlist.sh.in.
23006 * genkernsyms.sh: Removed.
23007 * gensymlist.sh: Likewise.
23009 * genkernsyms.sh.in: New file.
23010 * gensymlist.sh.in: Likewise.
23012 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23014 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23015 clobber "prefix", since we may have already set it manually.
23017 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23019 * kern/misc.c (abort): New alias for grub_abort.
23021 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23023 A new machine-specific function "grub_machine_set_prefix" is
23024 defined. This is called after loading modules, so that a prefix
23025 initialization can use modules. Also, this change adds an
23026 intensive debugging feature for the memory manager via the
23027 configure option "--enable-mm-debug".
23029 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23032 * kern/sparc64/ieee1275/init.c (abort): Removed.
23033 (grub_stop): Likewise.
23034 (grub_exit): New function.
23035 (grub_set_prefix): Renamed to ...
23036 (grub_machine_set_prefix): ... this.
23037 (grub_machine_init): Do not call grub_set_prefix.
23039 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23040 (grub_machine_set_prefix): ... this.
23041 (grub_machine_init): Do not call grub_set_prefix.
23043 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23044 (grub_machine_init): Do not set the prefix here.
23046 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23048 * kern/efi/init.c: Include grub/mm.h.
23049 (grub_efi_set_prefix): New function.
23051 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23052 (grub_efi_get_filename): New function.
23053 (grub_print_device_path): Renamed to ...
23054 (grub_efi_print_device_path): ... this.
23056 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23057 [MM_DEBUG] (grub_realloc): Likewise.
23058 [MM_DEBUG] (grub_free): Likewise.
23059 [MM_DEBUG] (grub_memalign): Likewise.
23060 [MM_DEBUG] (grub_mm_debug): New variable.
23061 [MM_DEBUG] (grub_debug_malloc): New function.
23062 [MM_DEBUG] (grub_debug_free): New function.
23063 [MM_DEBUG] (grub_debug_realloc): New function.
23064 [MM_DEBUG] (grub_debug_memalign): New function.
23066 * kern/misc.c (grub_abort): Print a newline to distinguish
23069 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23070 grub_set_root_dev after loading modules. This is necessary when
23071 setting a prefix depends on modules.
23073 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23074 (grub_efi_print_device_path): ... this.
23075 (grub_efi_get_filename): New prototype.
23076 (grub_efi_set_prefix): Likewise.
23078 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23080 (grub_efidisk_get_device_handle): New prototype.
23081 (grub_efidisk_get_device_name): Likewise.
23083 * include/grub/mm.h: Include config.h.
23084 (MM_DEBUG): Removed.
23085 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23086 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23087 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23088 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23089 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23090 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23091 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23092 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23093 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23095 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23097 * disk/efi/efidisk.c: Include grub/partition.h.
23098 (iterate_child_devices): New function.
23099 (add_device): First, compare only last device path nodes, so that
23100 devices are sorted by the types.
23101 (grub_efidisk_get_device_handle): New function.
23102 (grub_efidisk_get_device_name): Likewise.
23104 * configure.ac (--enable-mm-debug): New option to enable the
23105 memory manager debugging feature. This makes the binary much
23106 bigger, so is disabled by default.
23108 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23110 Use grub_abort instead of grub_stop, and grub_exit must be
23111 define in each architecture now. Also, this change adds support
23114 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23115 (grub_getkey): New function.
23116 (grub_term_get_current): Likewise.
23118 * util/i386/pc/grub-setup.c: Include grub/term.h.
23119 (grub_getkey): New function.
23120 (grub_term_get_current): Likewise.
23122 * util/misc.c (grub_stop): Renamed to ...
23123 (grub_exit): ... this.
23125 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23126 (grub_exit): ... this.
23127 (grub_machine_init): Use grub_abort instead of abort.
23128 (grub_stop): Removed.
23130 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23133 * kern/i386/pc/startup.S (grub_exit): New function.
23134 (cold_reboot): New label.
23136 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23137 (grub_efi_init): Call grub_efidisk_init.
23138 (grub_efi_fini): Call grub_efidisk_fini.
23140 * kern/efi/efi.c: Include grub/mm.h.
23141 (grub_efi_console_control_guid): Renamed to ...
23142 (console_control_guid): ... this.
23143 (grub_efi_loaded_image_guid): Renamed to ...
23144 (loaded_image_guid): ... this.
23145 (grub_efi_locate_handle): New function.
23146 (grub_efi_open_protocol): Likewise.
23147 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23148 GRUB_EFI_CONSOLE_CONTROL_GUID.
23149 (grub_efi_exit): Removed.
23150 (grub_stop): Likewise.
23151 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23152 (grub_exit): New function.
23153 (grub_print_device_path): Likewise.
23155 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23156 (grub_enter_rescue_mode): Register "exit".
23158 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23159 (grub_abort): New function.
23161 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23163 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23165 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23167 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23168 (grub_print_device_path): New prototype.
23169 (grub_efi_locate_handle): Likewise.
23170 (grub_efi_open_protocol): Likewise.
23172 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23173 * disk/efi/efidisk.c: Likewise.
23175 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23177 * include/grub/efi/console_control.h
23178 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23180 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23181 last 8 bytes as an array.
23182 (GRUB_EFI_DISK_IO_GUID): New macro.
23183 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23184 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23185 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23187 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23188 (struct grub_efi_device_path): Rename the member "sub_type" to
23190 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23191 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23192 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23193 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23194 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23195 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23196 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23197 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23198 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23199 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23200 (struct grub_efi_pci_device_path): New structure.
23201 (grub_efi_pci_device_path_t): New type.
23202 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23203 (struct grub_efi_pccard_device_path): New structure.
23204 (grub_efi_pccard_device_path_t): New type.
23205 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23206 (struct grub_efi_memory_mapped_device_path): New structure.
23207 (grub_efi_memory_mapped_device_path_t): New type.
23208 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23209 (struct grub_efi_vendor_device_path): New structure.
23210 (grub_efi_vendor_device_path_t): New type.
23211 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23212 (struct grub_efi_controller_device_path): New structure.
23213 (grub_efi_controller_device_path_t): New type.
23214 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23215 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23216 (struct grub_efi_acpi_device_path): New structure.
23217 (grub_efi_acpi_device_path_t): New type.
23218 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23219 (struct grub_efi_expanded_acpi_device_path): New structure.
23220 (grub_efi_expanded_acpi_device_path_t): New type.
23221 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23222 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23223 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23224 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23225 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23226 (struct grub_efi_atapi_device_path): New structure.
23227 (grub_efi_atapi_device_path_t): New type.
23228 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23229 (struct grub_efi_fibre_channel_device_path): New structure.
23230 (grub_efi_fibre_channel_device_path_t): New type.
23231 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23232 (struct grub_efi_1394_device_path): New structure.
23233 (grub_efi_1394_device_path_t): New type.
23234 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23235 (struct grub_efi_usb_device_path): New structure.
23236 (grub_efi_usb_device_path_t): New type.
23237 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23238 (struct grub_efi_usb_class_device_path): New structure.
23239 (grub_efi_usb_class_device_path_t): New type.
23240 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23241 (struct grub_efi_i2o_device_path): New structure.
23242 (grub_efi_i2o_device_path_t): New type.
23243 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23244 (struct grub_efi_mac_address_device_path): New structure.
23245 (grub_efi_mac_address_device_path_t): New type.
23246 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23247 (struct grub_efi_ipv4_device_path): New structure.
23248 (grub_efi_ipv4_device_path_t): New type.
23249 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23250 (struct grub_efi_ipv6_device_path): New structure.
23251 (grub_efi_ipv6_device_path_t): New type.
23252 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23253 (struct grub_efi_infiniband_device_path): New structure.
23254 (grub_efi_infiniband_device_path_t): New type.
23255 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23256 (struct grub_efi_uart_device_path): New structure.
23257 (grub_efi_uart_device_path_t): New type.
23258 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23259 (struct grub_efi_vendor_messaging_device_path): New structure.
23260 (grub_efi_vendor_messaging_device_path_t): New type.
23261 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23262 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23263 (struct grub_efi_hard_drive_device_path): New structure.
23264 (grub_efi_hard_drive_device_path_t): New type.
23265 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23266 (struct grub_efi_cdrom_device_path): New structure.
23267 (grub_efi_cdrom_device_path_t): New type.
23268 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23269 (struct grub_efi_vendor_media_device_path): New structure.
23270 (grub_efi_vendor_media_device_path_t): New type.
23271 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23272 (struct grub_efi_file_path_device_path): New structure.
23273 (grub_efi_file_path_device_path_t): New type.
23274 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23275 (struct grub_efi_protocol_device_path): New structure.
23276 (grub_efi_protocol_device_path_t): New type.
23277 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23278 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23279 (struct grub_efi_bios_device_path): New structure.
23280 (grub_efi_bios_device_path_t): New type.
23281 (struct grub_efi_disk_io): New structure.
23282 (grub_efi_disk_io_t): New type.
23283 (struct grub_efi_block_io_media): New structure.
23284 (grub_efi_block_io_media_t): New type.
23285 (struct grub_efi_block_io): New structure.
23286 (grub_efi_block_io_t): New type.
23288 * include/grub/misc.h (grub_stop): Removed.
23289 (grub_exit): New prototype.
23290 (grub_abort): Likewise.
23292 * include/grub/disk.h (enum grub_disk_dev_id): Added
23293 GRUB_DISK_DEVICE_EFIDISK_ID.
23295 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23296 disk/efi/efidisk.c.
23297 (kernel_syms.lst): Remove the target if an error occurs.
23299 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23301 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23302 as it was simply too buggy.
23304 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23306 * kern/misc.c (grub_lltoa): New function.
23307 (grub_vsprintf): Added support for the long long suffix,
23310 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23312 * Makefile.in (LDFLAGS): Add variable.
23313 (LD): Remove variable.
23314 * configure.ac: Add -m32 to LDFLAGS.
23315 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23316 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23317 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23318 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23319 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23321 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23322 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23323 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23325 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23327 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23328 length for unknown glyph.
23330 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23332 Add support for pre-loaded modules into the EFI port.
23334 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23335 completely. Accept one more argument DIR. The caller has changed.
23337 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23339 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23340 (grub_efi_loaded_image_guid): New variable.
23341 (grub_efi_get_loaded_image): New function.
23342 (grub_arch_modules_addr): Likewise.
23344 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23347 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23348 (struct grub_efi_loaded_image): New structure.
23349 (grub_efi_loaded_image_t): New type.
23351 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23353 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23354 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23355 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23357 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23359 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23361 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23363 * DISTLIST: Added include/grub/efi/console.h,
23364 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23365 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23367 * include/grub/efi/console.h: New file.
23368 * include/grub/efi/time.h: Likewise.
23369 * include/grub/i386/efi/kernel.h: Likewise.
23370 * kern/efi/init.c: Likewise.
23371 * kern/efi/mm.c: Likewise.
23372 * term/efi/console.c: Likewise.
23374 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23375 (grub_stop): Removed.
23376 (grub_get_rtc): Likewise.
23377 (grub_machine_init): Simply call grub_efi_init.
23378 (grub_machine_fini): Call grub_efi_fini.
23380 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23381 (grub_efi_output_string): Removed.
23382 (grub_efi_stall): New function.
23383 (grub_stop): Likewise.
23384 (grub_get_rtc): Likewise.
23386 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23387 (grub_efi_stall): New prototype.
23388 (grub_efi_allocate_pages): Likewise.
23389 (grub_efi_free_pages): Likewise.
23390 (grub_efi_get_memory_map): Likewise.
23391 (grub_efi_mm_init): Likewise.
23392 (grub_efi_mm_fini): Likewise.
23393 (grub_efi_init): Likewise.
23394 (grub_efi_fini): Likewise.
23396 * include/grub/i386/efi/time.h: Do not include
23397 grub/symbol.h. Include grub/efi/time.h.
23398 (GRUB_TICKS_PER_SECOND): Removed.
23399 (grub_get_rtc): Likewise.
23401 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23402 Added padding. The EFI spec is buggy.
23403 (GRUB_EFI_BLACK): New macro.
23404 (GRUB_EFI_BLUE): Likewise.
23405 (GRUB_EFI_GREEN): Likewise.
23406 (GRUB_EFI_CYAN): Likewise.
23407 (GRUB_EFI_RED): Likewise.
23408 (GRUB_EFI_MAGENTA): Likewise.
23409 (GRUB_EFI_BROWN): Likewise.
23410 (GRUB_EFI_LIGHTGRAY): Likewise.
23411 (GRUB_EFI_BRIGHT): Likewise.
23412 (GRUB_EFI_DARKGRAY): Likewise.
23413 (GRUB_EFI_LIGHTBLUE): Likewise.
23414 (GRUB_EFI_LIGHTGREEN): Likewise.
23415 (GRUB_EFI_LIGHTCYAN): Likewise.
23416 (GRUB_EFI_LIGHTRED): Likewise.
23417 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23418 (GRUB_EFI_YELLOW): Likewise.
23419 (GRUB_EFI_WHITE): Likewise.
23420 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23421 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23422 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23423 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23424 (GRUB_EFI_BACKGROUND_RED): Likewise.
23425 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23426 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23427 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23428 (GRUB_EFI_TEXT_ATTR): Likewise.
23430 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23431 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23432 (kernel_mod_HEADERS): Added efi/time.h.
23434 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23436 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23437 include/grub/efi/api.h, include/grub/efi/console_control.h,
23438 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23439 include/grub/i386/efi/time.h, kern/efi/efi.c,
23440 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23441 and util/i386/efi/grub-mkimage.c.
23443 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23445 * genmk.rb (PModule#rule): Do not export symbols if
23446 #{prefix}_EXPORTS is set to "no".
23448 * conf/i386-efi.mk: New file.
23449 * conf/i386-efi.rmk: Likewise.
23450 * include/grub/efi/api.h: Likewise.
23451 * include/grub/efi/console_control.h: Likewise.
23452 * include/grub/efi/efi.h: Likewise.
23453 * include/grub/efi/pe32.h: Likewise.
23454 * include/grub/i386/efi/time.h: Likewise.
23455 * kern/efi/efi.c: Likewise.
23456 * kern/i386/efi/init.c: Likewise.
23457 * kern/i386/efi/startup.S: Likewise.
23458 * util/i386/efi/grub-mkimage.c: Likewise.
23460 2006-04-17 Marco Gerards <marco@gnu.org>
23462 * include/grub/script.h: Include <grub/parser.h> and
23463 "grub_script.tab.h".
23464 (struct grub_lexer_param): New struct.
23465 (struct grub_parser_param): Likewise.
23466 (grub_script_create_arglist): Pass the state in an argument.
23467 (grub_script_add_arglist): Likewise.
23468 (grub_script_create_cmdline): Likewise.
23469 (grub_script_create_cmdblock): Likewise.
23470 (grub_script_create_cmdif): Likewise.
23471 (grub_script_create_cmdmenu): Likewise.
23472 (grub_script_add_cmd): Likewise.
23473 (grub_script_arg_add): Likewise.
23474 (grub_script_lexer_ref): Likewise.
23475 (grub_script_lexer_deref): Likewise.
23476 (grub_script_lexer_record_start): Likewise.
23477 (grub_script_lexer_record_stop): Likewise.
23478 (grub_script_mem_record): Likewise.
23479 (grub_script_mem_record_stop): Likewise.
23480 (grub_script_malloc): Likewise.
23481 (grub_script_yylex): Likewise.
23482 (grub_script_yyparse): Likewise.
23483 (grub_script_yyerror): Likewise.
23484 (grub_script_yylex): Likewise.
23485 (grub_script_lexer_init): Return the state.
23487 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23488 (grub_script_lexer_done): Likewise.
23489 (grub_script_lexer_getline): Likewise.
23490 (grub_script_lexer_refs): Likewise.
23491 (script): Likewise.
23492 (newscript): Likewise.
23493 (record): Likewise.
23494 (recording): Likewise.
23495 (recordpos): Likewise.
23496 (recordlen): Likewise.
23497 (grub_script_lexer_init): Return the state instead of setting
23499 (grub_script_lexer_ref): Use the newly added argument for state
23500 instead of globals.
23501 (grub_script_lexer_deref): Likewise.
23502 (grub_script_lexer_record_start): Likewise.
23503 (grub_script_lexer_record_stop): Likewise.
23504 (recordchar): Likewise.
23505 (nextchar): Likewise.
23506 (grub_script_yylex2): Likewise.
23507 (grub_script_yylex): Likewise.
23508 (grub_script_yyerror): Likewise.
23510 * normal/parser.y (func_mem): Removed variable.
23511 (menu_entry): Likewise.
23513 (%lex-param): New parser option.
23514 (%parse-param): Likewise.
23515 (script): Always return the AST.
23516 (argument): Pass the state around.
23517 (arguments): Likewise.
23518 (grubcmd): Likewise.
23519 (commands): Likewise.
23520 (function): Likewise.
23521 (menuentry): Likewise.
23522 (if_statement): Likewise.
23525 * normal/script.c (grub_script_memused): Removed variable.
23526 (grub_script_parsed): Likewise.
23527 (grub_script_malloc): Added a state argument. Use that instead of
23529 (grub_script_mem_record): Likewise.
23530 (grub_script_mem_record_stop): Likewise.
23531 (grub_script_arg_add): Likewise.
23532 (grub_script_add_arglist): Likewise.
23533 (grub_script_create_cmdline): Likewise.
23534 (grub_script_create_cmdif): Likewise.
23535 (grub_script_create_cmdmenu): Likewise.
23536 (grub_script_add_cmd): Likewise.
23537 (grub_script_parse): Setup the state before calling the parser.
23539 2006-04-16 Marco Gerards <marco@gnu.org>
23541 * normal/command.c (grub_command_init): Remove the title command.
23543 * normal/lexer.c (grub_script_yylex): Renamed from this...
23544 (grub_script_yylex2): ... to this.
23545 (grub_script_yylex): New function. Temporary
23546 introduced to filter some tokens.
23547 (grub_script_yyerror): Print a newline.
23549 * normal/main.c (read_config_file): Output information about the
23550 lines that contain errors. Wait for a key after all lines have
23551 been processed. Don't return an empty menu.
23553 * normal/parser.y (func_mem): Don't initialize.
23554 (menu_entry): Likewise.
23555 (err): New variable.
23556 (script): Don't return anything when an error was encountered.
23557 (ws, returns): Removed rules.
23558 (argument): Disabled concatenated variable support.
23559 (arguments): Remove explicit separators.
23560 (grubcmd): Likewise.
23561 (function): Likewise.
23562 (menuentry): Likewise.
23564 (commands): Likewise. Add error handling.
23566 * normal/script.c (grub_script_create_cmdline): If
23567 `grub_script_parsed' is 0, assume the parser encountered an error.
23569 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23571 * configure.ac: Add support for EFI. Fix the typo
23572 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23574 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23576 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23577 foreign multibyte characters should be shown correctly.
23579 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23581 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23583 (read_config_file): Made it to close file before returning.
23585 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23587 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23588 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23589 video/i386/pc/vbefill.c.
23591 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23592 video/i386/pc/vbefill.c.
23594 * include/grub/video.h (grub_video_blit_format): New enum.
23595 (grub_video_mode_info): Added new member blit_format.
23596 (grub_video_get_blit_format): New function prototype.
23598 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23599 function prototype.
23600 (grub_video_vbe_map_rgb): Likewise.
23601 (grub_video_vbe_unmap_color): Likewise.
23603 * include/grub/i386/pc/vbeblit.h: New file.
23605 * include/grub/i386/pc/vbefill.h: New file.
23607 * video/video.c (grub_video_get_blit_format): New function.
23608 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23609 (grub_video_vbe_map_rgb): Likewise.
23610 (grub_video_vbe_unmap_color): Likewise.
23612 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23614 (grub_video_vbe_blit_render_target): Changed to use more optimized
23616 (grub_video_vbe_setup): Added detection for optimized settings.
23617 (grub_video_vbe_create_render_target): Likewise.
23619 * video/i386/pc/vbeblit.c: New file.
23621 * video/i386/pc/vbefill.c: New file.
23623 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23625 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23628 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23629 parsing to support both hex and dec ranges. If filename was missing
23630 show usage information.
23632 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23634 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23635 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23637 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23638 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23639 (video_mod_SOURCES): Added.
23640 (video_mod_CFLAGS): Likewise.
23641 (video_mod_LDFLAGS): Likewise.
23642 (gfxterm_mod_SOURCES): Likewise.
23643 (gfxterm_mod_CFLAGS): Likewise.
23644 (gfxterm_mod_LDFLAGS): Likewise.
23645 (videotest_mod_SOURCES): Likewise.
23646 (videotest_mod_CFLAGS): Likewise.
23647 (videotest_mod_LDFLAGS): Likewise.
23648 (vesafb_mod_SOURCES): Removed.
23649 (vesafb_mod_CFLAGS): Likewise.
23650 (vesafb_mod_LDFLAGS): Likewise.
23651 (vga_mod_SOURCES): Likewise.
23652 (vga_mod_CFLAGS): Likewise.
23653 (vga_mod_LDFLAGS): Likewise.
23655 * commands/videotest.c: New file.
23657 * font/manager.c (fill_with_default_glyph): Modified to use
23659 (grub_font_get_glyph): Likewise.
23660 (fontmanager): Renamed from this...
23661 (font_manager): ... to this.
23663 * include/grub/font.h (grub_font_glyph): Added new structure.
23664 (grub_font_get_glyph): Modified to use grub_font_glyph.
23666 * include/grub/misc.h (grub_abs): Added as inline function.
23668 * include/grub/video.h: New file.
23670 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23671 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23672 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23673 (grub_vbe_get_controller_info): Renamed from this...
23674 (grub_vbe_bios_get_controller_info): ... to this.
23675 (grub_vbe_get_mode_info): Renamed from this...
23676 (grub_vbe_bios_get_mode_info): ... to this.
23677 (grub_vbe_set_mode): Renamed from this...
23678 (grub_vbe_bios_set_mode): ... to this.
23679 (grub_vbe_get_mode): Renamed from this...
23680 (grub_vbe_bios_get_mode): ... to this.
23681 (grub_vbe_set_memory_window): Renamed from this...
23682 (grub_vbe_bios_set_memory_window): ... to this.
23683 (grub_vbe_get_memory_window): Renamed from this...
23684 (grub_vbe_bios_get_memory_window): ... to this.
23685 (grub_vbe_set_scanline_length): Renamed from this...
23686 (grub_vbe_set_scanline_length): ... to this.
23687 (grub_vbe_get_scanline_length): Renamed from this...
23688 (grub_vbe_bios_get_scanline_length): ... to this.
23689 (grub_vbe_set_display_start): Renamed from this...
23690 (grub_vbe_bios_set_display_start): ... to this.
23691 (grub_vbe_get_display_start): Renamed from this...
23692 (grub_vbe_bios_get_display_start): ... to this.
23693 (grub_vbe_set_palette_data): Renamed from this...
23694 (grub_vbe_bios_set_palette_data): ... to this.
23695 (grub_vbe_set_pixel_rgb): Removed.
23696 (grub_vbe_set_pixel_index): Likewise.
23698 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23700 (grub_vbe_bios_get_controller_info): ... to this.
23701 (grub_vbe_get_mode_info): Renamed from this...
23702 (grub_vbe_bios_get_mode_info): ... to this.
23703 (grub_vbe_set_mode): Renamed from this...
23704 (grub_vbe_bios_set_mode): ... to this.
23705 (grub_vbe_get_mode): Renamed from this...
23706 (grub_vbe_bios_get_mode): ... to this.
23707 (grub_vbe_set_memory_window): Renamed from this...
23708 (grub_vbe_bios_set_memory_window): ... to this.
23709 (grub_vbe_get_memory_window): Renamed from this...
23710 (grub_vbe_bios_get_memory_window): ... to this.
23711 (grub_vbe_set_scanline_length): Renamed from this...
23712 (grub_vbe_set_scanline_length): ... to this.
23713 (grub_vbe_get_scanline_length): Renamed from this...
23714 (grub_vbe_bios_get_scanline_length): ... to this.
23715 (grub_vbe_set_display_start): Renamed from this...
23716 (grub_vbe_bios_set_display_start): ... to this.
23717 (grub_vbe_get_display_start): Renamed from this...
23718 (grub_vbe_bios_get_display_start): ... to this.
23719 (grub_vbe_set_palette_data): Renamed from this...
23720 (grub_vbe_bios_set_palette_data): ... to this.
23721 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23722 getting corrupted after calling it. Added more pushes and pops.
23723 (grub_vbe_bios_set_mode): Likewise.
23724 (grub_vbe_bios_get_mode): Likewise.
23725 (grub_vbe_bios_get_memory_window): Likewise.
23726 (grub_vbe_bios_set_scanline_length): Likewise.
23727 (grub_vbe_bios_get_scanline_length): Likewise.
23728 (grub_vbe_bios_get_display_start): Likewise.
23729 (grub_vbe_bios_set_palette_data): Likewise.
23731 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23732 (cl_insert): Likewise.
23733 (cl_delete): Likewise.
23735 * term/gfxterm.c: New file.
23737 * term/i386/pc/vesafb.c: Removed file.
23739 * video/video.c: New file.
23741 * video/i386/pc/vbe.c (real2pm): Added new function.
23742 (grub_video_vbe_draw_pixel): Likewise.
23743 (grub_video_vbe_get_video_ptr): Likewise.
23744 (grub_video_vbe_get_pixel): Likewise
23745 (grub_video_vbe_init): Likewise.
23746 (grub_video_vbe_fini): Likewise.
23747 (grub_video_vbe_setup): Likewise.
23748 (grub_video_vbe_get_info): Likewise.
23749 (grub_video_vbe_set_palette): Likewise.
23750 (grub_video_vbe_get_palette): Likewise.
23751 (grub_video_vbe_set_viewport): Likewise.
23752 (grub_video_vbe_get_viewport): Likewise.
23753 (grub_video_vbe_map_color): Likewise.
23754 (grub_video_vbe_map_rgb): Likewise.
23755 (grub_video_vbe_map_rgba): Likewise.
23756 (grub_video_vbe_unmap_color): Likewise.
23757 (grub_video_vbe_fill_rect): Likewise.
23758 (grub_video_vbe_blit_glyph): Likewise.
23759 (grub_video_vbe_blit_bitmap): Likewise.
23760 (grub_video_vbe_blit_render_target): Likewise.
23761 (grub_video_vbe_scroll): Likewise.
23762 (grub_video_vbe_swap_buffers): Likewise.
23763 (grub_video_vbe_create_render_target): Likewise.
23764 (grub_video_vbe_delete_render_target): Likewise.
23765 (grub_video_vbe_set_active_render_target): Likewise.
23766 (grub_vbe_set_pixel_rgb): Remove function.
23767 (grub_vbe_set_pixel_index): Likewise.
23768 (index_color_mode): Remove static variable.
23769 (active_mode): Likewise.
23770 (framebuffer): Likewise.
23771 (bytes_per_scan_line): Likewise.
23772 (grub_video_vbe_adapter): Added new static variable.
23773 (framebuffer): Likewise.
23774 (render_target): Likewise.
23775 (initial_mode): Likewise.
23776 (mode_in_use): Likewise.
23777 (mode_list): Likewise.
23779 2006-03-10 Marco Gerards <marco@gnu.org>
23781 * configure.ac (AC_INIT): Bumped to 1.93.
23783 * DISTLIST: Added `include/grub/hfs.h'.
23785 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23787 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23788 18H, which might help the BIOS falling back to next boot media.
23790 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23792 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23793 Poe Chen <poe.poechen@gmail.com>.
23795 2006-01-17 Marco Gerards <marco@gnu.org>
23797 * include/grub/normal.h: Include <grub/script.h>.
23798 (grub_command_list): Removed struct.
23799 (grub_command_list_t): Removed type.
23800 (grub_menu_entry): Remove members `num' and `command_list'. Add
23801 members `commands' and `sourcecode'.
23802 * include/grub/script.h: Add inclusion guards.
23803 (grub_script_cmd_menuentry): New struct.
23804 (grub_script_execute_menuentry): New prototype.
23805 (grub_script_lexer_record_start): Likewise.
23806 (grub_script_lexer_record_stop): Likewise.
23807 * normal/execute.c (grub_script_execute_menuentry): New function.
23808 * normal/lexer.c (record, recording, recordpos, recordlen): New
23810 (grub_script_lexer_record_start): New function.
23811 (grub_script_lexer_record_stop): Likewise.
23812 (recordchar): Likewise.
23813 (nextchar): Likewise.
23814 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23815 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23816 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23817 (current_menu): New variable.
23818 (free_menu): Mainly rewritten.
23819 (grub_normal_menu_addentry): New function.
23820 (read_config_file): Rewritten.
23821 * normal/menu.c (run_menu_entry): Mainly rewritten.
23822 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23824 (run): Mainly rewritten.
23825 * normal/parser.y (menu_entry): New variable.
23826 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23827 (menuentry): New rule.
23828 (command): Add `menuentry'.
23829 (if_statement): Allow additional returns before `fi'.
23830 * normal/script.c (grub_script_create_cmdmenu): New function.
23832 2006-01-03 Marco Gerards <marco@gnu.org>
23834 * INSTALL: GNU Bison is required.
23835 * configure.ac: Rewritten the test to detect Bison.
23836 * Makefile.in (YACC): New variable. Reported by Xun Sun
23837 <xun.sun.cn@gmail.com>.
23839 2006-01-03 Marco Gerards <marco@gnu.org>
23841 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23842 the HFS+ filesystem to filesystem blocks.
23843 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23844 GCC warning is silenced.
23846 2006-01-03 Marco Gerards <marco@gnu.org>
23848 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23849 read from disk from big endian to host byte order.
23851 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23853 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23855 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23856 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23857 embedded HFS+ filesystem.
23858 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23859 (grub_hfs_sblock): Move from here...
23860 * include/grub/hfs.h: To here... New file.
23861 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23863 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23865 (grub_hfsplus_volheader): Change type of member `magic' to
23867 (grub_hfsplus_data): Add new member `embedded_offset'.
23868 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23870 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23871 Calculate the offset.
23873 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23875 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23877 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23879 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23881 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23882 ENV->NAME is NULL after allocating ENV->VALUE.
23884 2005-12-25 Marco Gerards <marco@gnu.org>
23886 * kern/env.c (grub_env_set): Rewritten the error handling code.
23888 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23890 * geninit.sh: Made more robust, and more portable.
23892 2005-12-25 Marco Gerards <marco@gnu.org>
23894 Add support for Apple HFS+ filesystems.
23896 * fs/hfsplus.c: New file.
23898 * DISTLIST: Added `fs/hfsplus.c'.
23900 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23901 (hfsplus_mod_SOURCES): New variable.
23902 (hfsplus_mod_CFLAGS): Likewise.
23903 (hfsplus_mod_LDFLAGS): Likewise.
23904 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23905 (grub_setup_SOURCES): Likewise.
23906 (grub_mkdevicemap_SOURCES): Likewise.
23907 (grub_emu_SOURCES): Likewise.
23908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23910 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23912 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23914 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23916 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23917 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23918 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23919 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23920 normal/lexer.c, normal/parser.y, normal/script.c, and
23922 Removed kern/sparc64/cache.c.
23924 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23925 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23928 * configure.ac (AC_INIT): Bumped to 1.92.
23930 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23932 * kern/err.c (grub_error_push): Added new function to support error
23934 (grub_error_pop): Likewise.
23935 (grub_error_stack_items): New local variable to support error stacks.
23936 (grub_error_stack_pos): Likewise.
23937 (grub_error_stack_assert): Likewise.
23938 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23940 (grub_print_error): Added support to print errors from error stack.
23942 * include/grub/err.h (grub_error_push): Added function prototype.
23943 (grub_error_pop): Likewise.
23945 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23947 * configure.ac: Accept `powerpc64' as host_cpu.
23948 (amd64): Rename to `biarch32'.
23950 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23951 non-cacheline-aligned addresses.
23953 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23954 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23955 if `size' is non-zero.
23957 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23959 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23960 and `cd' to make sure the filename is not prefixed with a
23962 (pkgdata_MODULES): Add `gpt.mod'.
23963 (gpt_mod_SOURCES): New variable.
23964 (gpt_mod_CFLAGS): Likewise.
23965 (gpt_mod_LDFLAGS): Likewise.
23967 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23969 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23972 * partmap/gpt.c: New file.
23974 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23975 GPT partition map is detected.
23977 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23979 * commands/i386/pc/play.c: New file.
23980 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23981 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23984 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23986 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23987 ((unused))' to silence gcc warning.
23989 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23991 * configure.ac: Correct `AC_PROG_YACC' test.
23993 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23995 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23996 check before installing files.
23998 2005-11-22 Mike Small <smallm@panix.com>
24000 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24001 number regex so multidigit numbers are recognized correctly.
24003 2005-11-22 Mike Small <smallm@panix.com>
24005 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24006 debugging message before attempting to claim memory.
24007 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24008 multiple addresses in case of failure.
24010 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24012 * term/tparm.c (get_space): Remove empty `if' statement.
24014 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24016 * kern/parser.c (check_varstate): Rename `state' to 's'.
24018 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24020 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24021 variable definitions to the beginning of each function. Sort stack
24023 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24024 `buf' argument to `char *'.
24026 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24028 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24029 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24030 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24031 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24032 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24033 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24034 configfile.mod, search.mod, gzio.mod and test.mod.
24035 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24036 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24037 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24038 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24039 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24040 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24041 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24042 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24043 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24044 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24045 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24046 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24047 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24048 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24049 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24050 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24051 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24052 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24053 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24054 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24055 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24056 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24057 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24059 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24061 (pkgdata_MODULES): Add test.mod.
24063 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24065 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24066 appending to variables with "+=".
24067 (PModule): Use full pathname to generate *.lst filenames.
24069 * Makefile.in: Fixed list rules moved from genmk.rb.
24070 (.DELETE_ON_ERROR): New special target.
24071 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24073 * conf/i386-pc.rmk: Include conf/common.mk.
24074 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24075 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24076 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24077 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24078 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24079 configfile.mod, search.mod, gzio.mod and test.mod.
24080 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24081 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24082 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24083 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24084 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24085 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24086 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24087 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24088 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24089 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24090 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24091 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24092 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24093 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24094 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24095 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24096 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24097 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24098 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24099 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24100 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24101 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24102 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24104 * conf/common.rmk: ... to here. New file.
24106 * conf/common.mk: New file.
24108 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24110 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24111 (grub_script.tab.c): ... here.
24113 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24114 (grub_script.tab.c): ... here.
24116 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24117 (grub_script.tab.c): ... here.
24119 * normal/command.c (grub_command_find): Fixed a memory leak of
24120 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24122 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24124 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24125 "@" which marks the start of a comment on ARM.
24126 (VARIABLE): Likewise.
24128 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24130 Add support for Linux/ADFS partition tables.
24132 * partmap/acorn.c: New file.
24134 * include/grub/acorn_filecore.h: Likewise.
24136 * DISTLIST: Added `partmap/acorn.c' and
24137 `include/grub/acorn_filecore.h'.
24139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24141 (pkgdata_MODULES): Add `acorn.mod'.
24142 (acorn_mod_SOURCES): New variable.
24143 (acorn_mod_CFLAGS): Likewise.
24145 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24147 (pkgdata_MODULES): Add `acorn.mod'.
24148 (acorn_mod_SOURCES): New variable.
24149 (acorn_mod_CFLAGS): Likewise.
24151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24152 (pkgdata_MODULES): Add `acorn.mod'.
24153 (acorn_mod_SOURCES): New variable.
24154 (acorn_mod_CFLAGS): Likewise.
24155 (acorn_mod_LDFLAGS): Likewise.
24157 * include/types.h (grub_disk_addr_t): New typedef.
24159 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24161 * geninit.sh: New file.
24163 * geninitheader.sh: Likewise.
24165 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24166 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24167 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24168 * commands/configfile.c (grub_configfile_init)
24169 (grub_configfile_fini): Likewise.
24170 * commands/default.c (grub_default_init, grub_default_fini):
24172 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24173 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24174 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24175 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24177 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24178 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24180 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24181 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24183 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24185 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24187 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24188 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24189 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24190 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24191 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24192 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24193 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24194 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24195 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24196 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24197 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24198 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24199 * partmap/amiga.c (grub_amiga_partition_map_init)
24200 (grub_amiga_partition_map_fini): Likewise.
24201 * partmap/apple.c (grub_apple_partition_map_init)
24202 (grub_apple_partition_map_fini): Likewise.
24203 * partmap/pc.c (grub_pc_partition_map_init)
24204 (grub_pc_partition_map_fini): Likewise.
24205 * partmap/sun.c (grub_sun_partition_map_init,
24206 grub_sun_partition_map_fini): Likewise.
24207 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24210 * util/grub-emu.c: Include <grub_modules_init.h>.
24211 (main): Don't initialize and de-initialize any modules directly,
24212 use `grub_init_all' and `grub_fini_all' instead.
24214 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24215 `grub_vesafb_mod_init'.
24216 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24218 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24219 `grub_vga_mod_init'. Updated all users.
24220 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24223 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24226 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24227 Generate a function to initialize the module in utilities.
24228 Updated all callers.
24229 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24230 initialize the module in utilities. Updated all callers.
24232 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24234 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24235 escape sequence and a literal ^L to clear the screen.
24237 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24238 when returning from Open Firmware.
24240 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24242 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24243 (grub_ofconsole_height): Likewise.
24244 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24245 manually insert a '\n'.
24246 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24247 `grub_ofconsole_height'. Return early if these are already set.
24249 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24251 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24252 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24253 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24254 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24255 and `normal/script.c'.
24256 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24257 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24258 (test_mod_SOURCES): New variable.
24259 (test_mod_CFLAGS): Likewise.
24260 (test_mod_LDFLAGS): Likewise.
24261 (pkgdata_MODULES): Add `test.mod'.
24262 (grub_script.tab.c): New rule.
24263 (grub_script.tab.h): Likewise.
24265 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24268 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24269 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24270 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24271 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24272 (test_mod_SOURCES): New variable.
24273 (test_mod_CFLAGS): Likewise.
24274 (pkgdata_MODULES): Add `test.mod'.
24275 (grub_script.tab.c): New rule.
24276 (grub_script.tab.h): Likewise.
24278 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24280 Add initial scripting support.
24282 * commands/test.c: New file.
24283 * include/grub/script.h: Likewise.
24284 * normal/execute.c: Likewise.
24285 * normal/function.c: Likewise.
24286 * normal/lexer.c: Likewise.
24287 * normal/parser.y: Likewise.
24288 * normal/script.c: Likewise.
24290 * configure.ac: Add `AC_PROG_YACC' test.
24292 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24293 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24294 `normal/function.c' and `normal/script.c'.
24295 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24296 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24297 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24299 (pkgdata_MODULES): Add `test.mod'.
24300 (grub_script.tab.c): New rule.
24301 (grub_script.tab.h): Likewise.
24303 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24305 * include/grub/normal.h (grub_test_init): New prototype.
24306 (grub_test_fini): Likewise.
24308 * normal/command.c: Include <grub/script.h>.
24309 (grub_command_execute): Rewritten.
24311 * util/grub-emu.c (main): Call `grub_test_init' and
24314 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24316 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24318 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24319 there are no pending characters.
24321 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24323 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24324 `grub_strndup' to drop device arguments. Replace unnecessary
24325 `grub_strndup' with `grub_strdup'.
24327 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24329 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24330 `debug' environment variable has been set.
24332 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24334 * Makefile.in (install-local): Use $(DATA).
24335 (uninstall): Likewise.
24336 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24337 (sbin_UTILITIES): ... to here.
24338 (sbin_SCRIPTS): New variable.
24339 (grub_install_SOURCES): New variable.
24340 * util/powerpc/ieee1275/grub-install.in: New file.
24341 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24343 (add_segments): Call `grub_util_get_path'.
24345 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24347 From Timothy Baldwin:
24348 * commands/ls.c (grub_ls_list_files): Close FILE with
24350 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24352 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24354 * include/grub/parser.h: New file.
24356 * kern/parser.c: Likewise.
24358 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24359 (grub_setup_SOURCES): Likewise.
24360 (grub_probefs_SOURCES): Likewise.
24361 (grub_emu_SOURCES): Likewise.
24362 (kernel_img_HEADERS): Add `parser.h'.
24364 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24365 (grub_emu_SOURCES): Add `kern/parser.c'.
24366 (grubof_SOURCES): Likewise.
24368 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24369 (grubof_SOURCES): Add `kern/parser.c'.
24371 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24373 * kern/misc.c (grub_split_cmdline): Removed function.
24375 * kern/rescue.c: Include <grub/parser.h>.
24376 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24377 of `grub_split_cmdline'.
24379 * normal/command.c: Include <grub/parser.h>.
24380 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24381 of `grub_split_cmdline'.
24383 * normal/completion.c: Include <grub/parser.h>.
24384 (cmdline_state): New variable.
24385 (iterate_dir): End the filename with a quote depending on the
24386 command line state.
24387 (get_state): new function.
24388 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24389 split the arguments and determine the current argument. When the
24390 argument string is not quoted, escape all spaces.
24392 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24394 * normal/sparc64/setjmp.S: New file.
24396 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24398 * include/grub/sparc64/libgcc.h: New file.
24399 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24400 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24401 normal/sparc64/setjmp.c.
24403 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24405 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24406 * kern/sparc64/cache.S: New file.
24407 * kern/sparc64/cache.c: Removed.
24408 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24409 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24411 (COMMON_LDFLAGS): Add -melf64_sparc.
24412 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24413 (grubof_SOURCES): Use cache.S instead of cache.c.
24414 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24415 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24416 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24418 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24419 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24420 (linux_mod_CFLAGS): Commented out.
24421 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24422 out because module isn't built.
24423 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24424 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24425 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24426 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24427 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24428 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24429 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24430 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24431 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24432 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24433 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24434 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24435 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24436 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24438 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24440 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24441 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24442 longer, because HFS should not be used on PC.
24444 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24446 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24447 consistently within the loop.
24449 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24451 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24452 directory can not be read.
24454 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24456 * configure.ac (AC_INIT): Increase the version number to 1.91.
24458 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24459 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24460 term/i386/pc/serial.c.
24462 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24464 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24465 file size must be permitted.
24467 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24468 between %ah and %al.
24470 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24472 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24474 Call the hook with a NUL-terminated filename.
24475 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24478 * kern/term.c (cursor_state): New variable.
24479 (grub_term_set_current): Reset the cursor state on a new
24481 (grub_setcursor): Rewritten to use CURSOR_STATE.
24482 (grub_getcursor): New function.
24484 * include/grub/term.h (grub_getcursor): New prototype.
24486 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24487 integers on ARM. Reported by Timothy Baldwin
24488 <T.E.Baldwin99@members.leeds.ac.uk>.
24490 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24492 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24494 (grub_sfs_dir): Likewise.
24496 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24498 Add support for the SFS filesystem.
24500 * fs/sfs.c: New file.
24502 * DISTLIST: Added `fs/sfs.c'.
24504 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24505 (grub_probefs_SOURCES): Likewise.
24506 (grub_emu_SOURCES): Likewise.
24507 (pkgdata_MODULES): Add `sfs.mod'.
24508 (sfs_mod_SOURCES): New variable.
24509 (sfs_mod_CFLAGS): Likewise.
24510 (sfs_mod_LDFLAGS): Likewise.
24512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24513 (pkgdata_MODULES): Add `sfs.mod'.
24514 (sfs_mod_SOURCES): New variable.
24515 (sfs_mod_CFLAGS): Likewise.
24517 * util/grub-emu.c (main): Call `grub_sfs_init' and
24520 * include/grub/fs.h (grub_sfs_init): New prototype.
24521 (grub_sfs_fini): Likewise.
24523 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24525 Add support for the AFFS filesystem.
24527 * fs/affs.c: New file.
24529 * DISTLIST: Added `fs/affs.c'.
24531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24532 (grub_probefs_SOURCES): Likewise.
24533 (grub_emu_SOURCES): Likewise.
24534 (pkgdata_MODULES): Add `affs.mod'.
24535 (affs_mod_SOURCES): New variable.
24536 (affs_mod_CFLAGS): Likewise.
24537 (affs_mod_LDFLAGS): Likewise.
24539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24540 (pkgdata_MODULES): Add `affs.mod'.
24541 (affs_mod_SOURCES): New variable.
24542 (affs_mod_CFLAGS): Likewise.
24544 * util/grub-emu.c (main): Call `grub_affs_init' and
24547 * include/grub/fs.h (grub_affs_init): New prototype.
24548 (grub_affs_fini): Likewise.
24550 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24552 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24554 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24556 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24559 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24562 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24563 (COMMON_LDFLAGS): New variable.
24564 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24565 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24566 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24567 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24568 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24569 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24570 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24571 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24572 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24573 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24574 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24575 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24576 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24577 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24578 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24580 (normal_mod_ASFLAGS): Add `-m32'.
24582 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24583 (grub_host_size_t, grub_host_ssize_t): New types.
24584 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24585 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24586 `GRUB_HOST_SIZEOF_VOID_P'.
24588 * include/grub/kernel.h (struct grub_module_header): Type of
24589 member offset changed to `grub_host_off_t'. Type of member size
24590 changed to `grub_host_size_t'.
24591 (struct grub_module_info): Type of member offset changed to
24592 `grub_host_off_t'. Type of member size changed to
24593 `grub_host_size_t'.
24595 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24597 Make GRUB's kernel compliant to Multiboot Specification.
24599 * kern/i386/pc/startup.S (multiboot_header): New label.
24600 (multiboot_entry): Likewise.
24601 (multiboot_trampoline): Likewise.
24603 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24604 Increased to 0x4A0.
24606 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24607 put parentheses after a question mark.
24608 [!GRUB_UTIL] (my_mod): New variable.
24610 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24612 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24614 Adds support for the XFS filesystem. Btrees are not supported
24617 * fs/xfs.c: New file.
24619 * DISTLIST: Added `fs/xfs.c'.
24621 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24622 (grub_probefs_SOURCES): Likewise.
24623 (grub_emu_SOURCES): Likewise.
24624 (pkgdata_MODULES): Add `xfs.mod'.
24625 (xfs_mod_SOURCES): New variable.
24626 (xfs_mod_CFLAGS): Likewise.
24628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24629 (pkgdata_MODULES): Add `xfs.mod'.
24630 (xfs_mod_SOURCES): New variable.
24631 (xfs_mod_CFLAGS): Likewise.
24633 * util/grub-emu.c (main): Call `grub_xfs_init' and
24636 * include/grub/fs.h (grub_xfs_init): New prototype.
24637 (grub_xfs_fini): Likewise.
24640 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24642 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24643 color modes, allow greater than 16 colors to be configured as
24646 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24648 * normal/completion.c (complete_arguments): Add the qualifier
24649 const into OPTIONS.
24651 From Omniflux <omniflux+lists@omniflux.com>:
24652 * include/grub/terminfo.h: New file.
24653 * include/grub/tparm.h: Likewise.
24654 * include/grub/i386/pc/serial.h: Likewise.
24655 * term/terminfo.c: Likewise.
24656 * term/tparm.c: Likewise.
24657 * term/i386/pc/serial.c: Likewise.
24658 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24660 (terminfo_mod_SOURCES): New variable.
24661 (terminfo_mod_CFLAGS): Likewise.
24662 (serial_mod_SOURCES): Likewise.
24663 (serial_mod_CFLAGS): Likewise.
24665 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24667 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24668 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24669 and kern/powerpc/ieee1275/cmain.c, respectively.
24671 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24672 * kern/powerpc/ieee1275/crt0.S: ... here.
24674 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24675 * kern/powerpc/ieee1275/cmain.c: ... here.
24677 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24678 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24679 instead of boot/powerpc/ieee1275/crt0.S and
24680 boot/powerpc/ieee1275/cmain.c, respectively.
24682 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24683 sectors. It was not used anyway.
24685 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24687 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24688 `unused parameter' warning.
24690 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24692 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24694 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24697 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24699 * include/grub/normal.h (enum grub_completion_type): Added
24700 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24702 * normal/cmdline.c (print_completion): Handle
24703 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24704 * normal/menu_entry.c (store_completion): Likewise.
24706 * normal/completion.c (complete_arguments): New function.
24707 (grub_normal_do_completion): Call `complete_arguments' when the
24708 current words start with a dash.
24710 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24712 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24713 `gzio.mod' instead of `io.mod').
24715 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24717 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24718 (DISTDIRS): Added io and video.
24719 Rewrite the search routine to make an output consistently.
24721 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24722 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24723 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24724 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24725 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24726 util/powerpc/ieee1275/misc.c.
24728 * include/grub/gzio.h: New file.
24729 * io/gzio.c: Likewise.
24731 * kern/file.c (grub_file_close): Call grub_device_close only if
24732 FILE->DEVICE is not NULL.
24734 * include/grub/mm.h [!NULL] (NULL): New macro.
24736 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24739 (pkgdata_MODULES): Added gzio.mod.
24740 (gzio_mod_SOURCES): New variable.
24741 (gzio_mod_CFLAGS): Likewise.
24743 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24744 (pkgdata_MODULES): Added gzio.mod.
24745 (gzio_mod_SOURCES): New variable.
24746 (gzio_mod_CFLAGS): Likewise.
24748 * commands/cat.c: Include grub/gzio.h.
24749 (grub_cmd_cat): Use grub_gzfile_open instead of
24752 * commands/cmp.c: Include grub/gzio.h.
24753 (grub_cmd_cmp): Use grub_gzfile_open instead of
24756 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24757 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24759 (grub_rescue_cmd_module): Likewise.
24761 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24763 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24764 kern/sparc64/ieee1275/init.c because it contains _start.
24765 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24767 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24769 * configure.ac: Add support for sparc64 host with ieee1275
24771 * configure: Generated from configure.ac.
24772 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24774 (grub_ofdisk_read): Likewise.
24775 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24776 pointers as (void *) to remove a warning.
24777 (grub_ofdisk_close): Likewise.
24778 (grub_ofdisk_read): Likewise.
24779 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24780 returns, so make it return void to remove a warning.
24781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24782 Corresponding prototype change.
24783 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24784 values, and cast the pointers as (void *) to remove a warning.
24785 (grub_mm_dump): Likewise.
24786 * conf/sparc64-ieee1275.mk: New file.
24787 * conf/sparc64-ieee1275.rmk: Likewise.
24788 * include/grub/sparc64/setjmp.h: Likewise.
24789 * include/grub/sparc64/types.h: Likewise.
24790 * include/grub/sparc64/ieee1275/console.h: Likewise.
24791 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24792 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24793 * include/grub/sparc64/ieee1275/time.h: Likewise.
24794 * kern/sparc64/cache.c: Likewise.
24795 * kern/sparc64/dl.c: Likewise.
24796 * kern/sparc64/ieee1275/init.c: Likewise.
24797 * kern/sparc64/ieee1275/openfw.c: Likewise.
24799 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24801 * util/console.c (grub_ncurses_putchar): If C is greater than
24802 0x7f, set C to a question mark.
24803 (grub_ncurses_getcharwidth): New function.
24804 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24807 * normal/menu.c (print_entry): Made aware of Unicode. First,
24808 convert TITLE to UCS-4, and predict the cursor position by
24811 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24813 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24815 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24817 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24818 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24821 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24822 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24823 grub_strcpy and grub_strlen. Take it into account that a space
24824 character is inserted as a delimiter.
24826 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24828 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24829 invalid magic in the error.
24831 * commands/search.c: New file.
24833 * util/grub-emu.c (main): Call grub_search_init and
24836 * kern/rescue.c (grub_rescue_print_disks): Removed.
24837 (grub_rescue_print_devices): New function.
24838 (grub_rescue_cmd_ls): Use grub_device_iterate with
24839 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24840 grub_rescue_print_disks.
24842 * kern/partition.c (grub_partition_iterate): Return the result of
24843 PARTMAP->ITERATE instead of GRUB_ERRNO.
24845 * kern/device.c: Include grub/partition.h.
24846 (grub_device_iterate): New function.
24848 * include/grub/partition.h (grub_partition_iterate): Return int
24849 instead of grub_err_t.
24851 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24853 [GRUB_UTIL] (grub_search_fini): Likewise.
24855 * include/grub/device.h (grub_device_iterate): New prototype.
24857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24859 (pkgdata_MODULES): Added search.mod.
24860 (search_mod_SOURCES): New variable.
24861 (search_mod_CFLAGS): Likewise.
24863 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24864 (pkgdata_MODULES): Added search.mod.
24865 (search_mod_SOURCES): New variable.
24866 (search_mod_CFLAGS): Likewise.
24868 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24869 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24870 All callers changed.
24872 * DISTLIST: Added commands/search.c.
24874 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24876 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24878 (grub_getcharwidth): New function.
24880 * kern/misc.c (grub_utf8_to_ucs4): New function.
24882 * include/grub/term.h (struct grub_term): Added a new member
24884 (grub_getcharwidth): New prototype.
24886 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24888 * term/i386/pc/console.c (map_char): New function. Segregated from
24889 grub_console_putchar.
24890 (grub_console_putchar): Use map_char.
24891 (grub_console_getcharwidth): New function.
24892 (grub_console_term): Specified grub_console_getcharwidth as
24895 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24896 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24898 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24900 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24901 on grub_strtoul completely.
24902 (write_char): Declare local variables in the beginning of the
24904 (grub_vesafb_getcharwidth): New function.
24905 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24908 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24910 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24911 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24912 commands/i386/pc/vbetest.c.
24914 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24915 call grub_vbe_get_controller_info again, because the returned
24916 information is volatile.
24917 (grub_vbe_set_video_mode): Mostly rewritten.
24918 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24919 grub_vbe_status_t correctly.
24920 (grub_vbe_get_video_mode_info): Likewise.
24921 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24922 several if statements.
24924 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24925 * commands/i386/pc/vbeinfo.c: ... this.
24927 * commands/i386/pc/vbe_test.c: Renamed to ...
24928 * commands/i386/pc/vbetest.c: ... this.
24930 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24932 (grub_cmd_vbeinfo): ... this. Save video modes before
24933 iterating. Skip a video mode, if it is not available, not enough
24934 information is given or it is monochrome. Show the memory
24935 model. Leave the interpretation of MODEVAR to grub_strtoul
24937 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24938 (GRUB_MOD_FINI): Likewise.
24940 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24941 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24942 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24943 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24944 grub_strtoul completely.
24945 (real2pm): Removed.
24946 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24947 (GRUB_MOD_FINI): Likewise.
24949 * normal/misc.c: Include grub/mm.h.
24951 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24952 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24953 (vbe_list_modes_mod_SOURCES): Removed.
24954 (vbe_list_modes_mod_CFLAGS): Likewise.
24955 (vbe_test_mod_SOURCES): Likewise.
24956 (vbe_test_mod_CFLAGS): Likewise.
24957 (vbeinfo_mod_SOURCES): New variable.
24958 (vbeinfo_mod_CFLAGS): Likewise.
24959 (vbetest_mod_SOURCES): Likewise.
24960 (vbetest_mod_CFLAGS): Likewise.
24962 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24964 * normal/misc.c: New file.
24966 * DISTLIST: Added normal/misc.c.
24968 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24969 DISK to HOOK. Call HOOK with DISK.
24970 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24971 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24972 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24974 * normal/menu_entry.c (struct screen): Added a new member
24975 "completion_shown".
24976 (completion_buffer): New global variable.
24977 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24978 (store_completion): New function.
24979 (complete): Likewise.
24980 (clear_completions): Likewise.
24981 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24982 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24983 a tab, call complete.
24985 * normal/completion.c (disk_dev): Removed.
24986 (print_simple_completion): Likewise.
24987 (print_partition_completion): Likewise.
24988 (print_func): New global variable.
24989 (add_completion): Do not take the arguments WHAT or PRINT any
24990 longer. Added a new argument TYPE. Instead of printing directly,
24991 call PRINT_FUNC if not NULL.
24992 All callers changed.
24993 (complete_device): Use a local variable DEV instead of
24994 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24995 (grub_normal_do_completion): Take a new argument HOOK. Do not
24996 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24997 empty string, return NULL instead.
24998 All callers changed.
25000 * normal/cmdline.c (print_completion): New function.
25002 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25004 All callers changed.
25006 * kern/disk.c (grub_print_partinfo): Removed.
25008 * include/grub/partition.h (struct grub_partition_map): Add a new
25009 argument DISK into HOOK of ITERATE.
25010 (grub_partition_iterate): Add a new argument DISK to HOOK.
25012 * include/grub/normal.h (enum grub_completion_type): New enum.
25013 (grub_completion_type_t): New type.
25014 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25015 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25016 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25017 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25018 (grub_normal_do_completion): Added a new argument HOOK.
25019 (grub_normal_print_device_info): New prototype.
25021 * include/grub/disk.h (grub_print_partinfo): Removed.
25023 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25024 (normal_mod_SOURCES): Likewise.
25025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25026 (normal_mod_SOURCES): Likewise.
25028 * commands/ls.c (grub_ls_list_disks): Use
25029 grub_normal_print_device_info instead of grub_print_partinfo. Free
25031 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25032 duplicating the code.
25034 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25036 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25037 follow GCS more precisely.
25038 * commands/i386/pc/vbe_test.c: Likewise.
25039 * include/grub/i386/pc/vbe.h: Likewise.
25040 * term/i386/pc/vesafb.c: Likewise.
25041 * video/i386/pc/vbe.c: Likewise.
25043 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25045 * DISTLIST: Added term/i386/pc/vesafb.c
25046 DISTLIST: Added video/i386/pc/vbe.c
25047 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25048 DISTLIST: Added commands/i386/pc/vbe_test.c.
25049 * commands/i386/pc/vbe_list_modes.c: New file.
25050 * commands/i386/pc/vbe_test.c: Likewise.
25051 * term/i386/pc/vesafb.c: Likewise.
25052 * video/i386/pc/vbe.c: Likewise.
25053 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25054 (grub_vbe_probe) Added prototype.
25055 (grub_vbe_set_video_mode) Likewise.
25056 (grub_vbe_get_video_mode) Likewise.
25057 (grub_vbe_get_video_mode_info) Likewise.
25058 (grub_vbe_set_pixel_rgb) Likewise.
25059 (grub_vbe_set_pixel_index) Likewise.
25060 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25061 (pkgdata_MODULES): Added vesafb.mod.
25062 (pkgdata_MODULES): Added vbe_list_modes.mod.
25063 (pkgdata_MODULES): Added vbe_test.mod.
25064 (vbe_mod_SOURCES): Added.
25065 (vbe_mod_CFLAGS): Likewise.
25066 (vesafb_mod_SOURCES): Likewise.
25067 (vesafb_mod_CFLAGS): Likewise.
25068 (vbe_list_modes_mod_SOURCES): Likewise.
25069 (vbe_list_modes_mod_CFLAGS): Likewise.
25070 (vbe_test_mod_SOURCES): Likewise.
25071 (vbe_test_mod_CFLAGS): Likewise.
25073 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25075 * normal/command.c (grub_command_execute): If INTERACTIVE is
25076 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25077 CMDLINE. Disable the pager if INTERACTIVE is true.
25078 All callers are changed.
25080 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25081 before reading a config file.
25082 * normal/main.c (read_config_file): Even if a command is not
25083 found, register it if it is within an entry.
25085 * util/grub-emu.c: Include sys/types.h and unistd.h.
25086 (options): Added --hold.
25087 (struct arguments): Added a new member "hold".
25088 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25090 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25091 cleared by a debugger, if it is not zero.
25093 * include/grub/normal.h (grub_command_execute): Add an argument
25096 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25098 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25100 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25102 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25103 program with another one, because the old one didn't detect a bug
25104 in gcc-3.4. Always use regparm 2, because the new test is still
25105 not enough for gcc-4.0. Someone must investigate a simple test
25106 case which detects a bug in gcc-4.0.
25108 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25110 * DISTLIST: Added normal/completion.c.
25112 * normal/completion.c: New file.
25114 * term/i386/pc/console.c (grub_console_getwh): New function.
25115 (grub_console_term): Assign grub_console_getwh to getwh.
25117 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25118 function is defined in normal/completion.c as
25119 grub_normal_do_completion.
25120 (grub_cmdline_get): Use grub_normal_do_completion instead of
25123 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25124 returns non-zero, otherwise return 0.
25125 (grub_partition_iterate): First, probe the partition map. Then,
25126 call ITERATE only for this partition map.
25128 * kern/misc.c (grub_strncmp): Rewritten.
25130 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25131 returns non-zero. Otherwise return 0.
25133 * include/grub/partition.h (grub_partition_map_iterate): Return
25134 int instead of void.
25136 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25138 * include/grub/misc.h (grub_strncmp): Change the type of N to
25141 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25144 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25145 unsigned explicitly before comparing it with I.
25147 * kern/main.c (grub_env_write_root): Add the attribute unused into
25150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25151 normal/completion.c.
25152 (normal_mod_SOURCES): Likewise.
25153 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25154 (normal_mod_SOURCES): Likewise.
25156 * normal/command.c (grub_iterate_commands): If ITERATE returns
25157 non-zero, return one immediately.
25159 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25161 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25162 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25164 (grub_vbe_get_controller_info): New function.
25165 (grub_vbe_get_mode_info): Likewise.
25166 (grub_vbe_set_mode): Likewise.
25167 (grub_vbe_get_mode): Likewise.
25168 (grub_vbe_set_memory_window): Likewise.
25169 (grub_vbe_get_memory_window): Likewise.
25170 (grub_vbe_set_scanline_length): Likewise.
25171 (grub_vbe_get_scanline_length): Likewise.
25172 (grub_vbe_set_display_start): Likewise.
25173 (grub_vbe_get_display_start): Likewise.
25174 (grub_vbe_set_palette_data): Likewise.
25175 * include/grub/i386/pc/vbe.h: New file.
25177 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25179 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25180 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25181 * DISTLIST: Likewise.
25182 * kern/ieee1275/of.c: Moved to ...
25183 * kern/ieee1275/ieee1275.c: ... here.
25185 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25187 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25188 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25189 Pass 0 as `end' parameter to grub_strtoul().
25191 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25193 * include/grub/powerpc/ieee1275/console.h: Do not include
25194 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25196 (grub_console_cur_color): Remove i386-specific prototype.
25197 (grub_console_real_putchar): Likewise.
25198 (grub_console_checkkey): Likewise.
25199 (grub_console_getkey): Likewise.
25200 (grub_console_getxy): Likewise.
25201 (grub_console_gotoxy): Likewise.
25202 (grub_console_cls): Likewise.
25203 (grub_console_setcursor): Likewise.
25204 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25205 Include <grub/machine/console.h>.
25206 * term/ieee1275/ofconsole.c: Likewise.
25208 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25210 * Makefile.in (LIBLZO): New variable.
25212 * configure.ac: Check for LZO version 2.
25214 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25215 lzo/lzo1x.h instead of lzo1x.h.
25217 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25220 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25221 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25223 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25224 copying the data from PARTITION to P.
25226 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25228 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25229 negative, unload the module.
25231 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25232 map is "pc_partition_map" but not "pc".
25233 (usage): Fix the description. The options are --boot-image and
25234 --core-image but not --boot-file or --core-file.
25235 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25236 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25239 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25240 --core-file. Specify INSTALL_DEVICE as an argument.
25242 * util/console.c: Include config.h.
25243 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25244 [HAVE_NCURSES_H]: Include ncurses.h.
25245 [HAVE_CURSES_H]: Include curses.h.
25246 [!A_NORMAL] (A_NORMAL): Defined as zero.
25247 [!A_STANDOUT] (A_STANDOUT): Likewise.
25249 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25251 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25253 * configure.ac: Check for curses libraries and headers.
25255 * Makefile.in (LIBCURSES): New variable.
25257 * genmk.rb (Script::rule): Set the executable bits.
25259 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25260 name of the PC partition map is "pc_partition_map" but not "pc".
25262 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25264 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25265 (modules): Likewise.
25266 (usage): Added descriptions for --modules and --grub-probefs.
25267 Handle --modules and --grub-probefs. Save the arguments in MODULES
25268 and GRUB_PROBEFS, respectively.
25269 Auto-detect a filesystem module against GRUBDIR. If the result is
25270 empty and modules are not specified explicitly, abort the
25271 installation. Add the result to MODULES.
25273 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25274 disk/powerpc/ieee1275/ofdisk.c,
25275 include/grub/powerpc/ieee1275/init.h and
25276 term/powerpc/ieee1275/ofconsole.c.
25277 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25278 term/ieee1275/ofconsole.c.
25280 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25282 * COPYING: Upgraded to the latest version. Only the address of the
25283 FSF office has changed.
25285 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25287 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25288 kern/ieee1275.c with kern/ieee1275/of.c.
25290 * kern/ieee1275.c: Moved to ...
25291 * kern/ieee1275/of.c: ... here.
25293 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25295 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25298 * config.guess: Updated to the latest version from gnulib.
25299 * config.sub: Likewise.
25300 * install.sh: Likewise.
25301 * mkinstalldirs: Likewise.
25303 * include/grub/console.h: Removed. This file is arch-specific. Do
25304 not put this in include/grub.
25306 * include/grub/i386/pc/console.h: Resurrected.
25308 * util/console.c: Include grub/machine/console.h instead of
25310 * util/grub-emu.c: Likewise.
25312 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25314 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25317 From Vincent Pelletier <subdino2004@yahoo.fr>
25318 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25319 Redefined to use grub_getwh.
25320 (grub_term): New member named getwh.
25321 (grub_getwh): New prototype.
25322 * kern/term.c (grub_getwh): New function.
25323 * term/i386/pc/console.c (grub_console_getwh): New function.
25324 (grub_console_term): New member `getwh'.
25325 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25326 (grub_vga_term): New member `getwh'.
25327 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25329 (grub_ofconsole_getw): New function.
25330 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25331 (grub_ofconsole_term): New field named getwh and new initial
25334 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25336 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25337 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25338 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25339 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25340 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25341 of <grub/machine/ieee1275.h>.
25342 * commands/ieee1275/reboot.c: Likewise.
25343 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25344 * kern/ieee1275.c: ... to here. All users updated. Change all
25345 parameter structs to use new type `grub_ieee1275_cell_t'.
25346 * term/powerpc/ieee1275/ofconsole.c: Move ...
25347 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25348 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25349 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25350 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25352 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25353 Remove unused prototypes. All users updated.
25354 * include/grub/powerpc/ieee1275/console.h: Removed.
25355 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25356 `grub_ieee1275_cell_t'.
25357 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25358 Cast comparisons with -1 to the correct type.
25359 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25360 type to match `grub_ieee1275_entry_fn'.
25362 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25364 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25366 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25367 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25369 (grub_probefs_SOURCES): New variable.
25371 * util/i386/pc/grub-probefs.c: New file.
25373 * util/i386/pc/grub-setup.c (main): Call
25374 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25375 grub_hfs_init and grub_jfs_init to initialize the system. Call
25376 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25377 grub_pc_partition_map_fini to finish the system.
25379 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25381 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25383 (grub_multiboot_load_elf32): Likewise.
25384 (grub_multiboot_is_elf64): Likewise.
25385 (grub_multiboot_load_elf64): Likewise.
25386 (grub_multiboot_load_elf): Likewise.
25387 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25388 an ELF32 or ELF64 file.
25389 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25391 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25392 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25393 NULL before calling FS->LABEL.
25394 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25395 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25396 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25397 before calling FS->LABEL.
25399 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25401 * util/i386/pc/grub-install.in (datadir): New variable.
25403 (pkgdatadir): New variable.
25404 (pkglibdir): Removed.
25406 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25408 * DISTLIST: Added util/i386/pc/grub-install.in.
25410 * util/i386/pc/grub-install.in: New file.
25412 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25413 (grub_install_SOURCES): Likewise.
25415 * genmk.rb: Added support for scripts.
25416 (Script): New class.
25417 (scripts): New variable.
25419 * Makefile.in (install-local): Install sbin_SCRIPTS by
25421 (uninstall): Remove sbin_SCRIPTS.
25423 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25424 device, try to get a GRUB device by
25425 grub_util_biosdisk_get_grub_dev.
25428 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25429 description for --device-map.
25431 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25433 Change the semantics of variable hooks. They now return strings
25434 instead of error values.
25436 * util/i386/pc/grub-setup.c: Include grub/env.h.
25437 (setup): Use grub_device_set_root instead of grub_env_set.
25439 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25440 grub_env_get instead of grub_device_set_root and
25441 grub_device_get_root, respectively.
25443 * kern/main.c (grub_env_write_root): New function.
25444 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25445 grub_env_set instead of grub_device_set_root.
25447 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25449 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25450 rather than calling ENV->WRITE_HOOK afterwards.
25451 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25452 passing a pointer of a pointer.
25453 (grub_register_variable_hook): Change the types of "read_hook" and
25454 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25456 Allocate the default empty string on the heap, because this string
25457 may be freed later.
25459 * kern/device.c: Include grub/env.h.
25460 (grub_device_set_root): Removed.
25461 (grub_device_get_root): Likewise.
25462 (grub_device_open): Use grub_env_get instead of
25463 grub_device_get_root.
25465 * include/grub/env.h (grub_env_read_hook_t): New type.
25466 (grub_env_write_hook_t): Likewise.
25467 (grub_env_var): Change the types of "read_hook" and "write_hook"
25468 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25469 (grub_register_variable_hook): Likewise.
25471 * include/grub/device.h (grub_device_set_root): Removed.
25472 (grub_device_set_root): Likewise.
25474 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25475 make sure that DIRNAME terminates with '/', so that
25476 grub_fat_find_dir will fail if PATH is not a directory.
25478 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25480 Use the qualifier auto for print_files and print_files_long.
25481 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25483 Put a newline only if there is no error.
25484 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25487 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25489 * kern/partition.c (grub_partition_probe): Initialize PART to
25490 NULL. Otherwise, when no partition map is registered, this returns
25493 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25495 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25496 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25499 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25501 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25502 information on each device, if it does not have partitions. Print
25503 "Device" instead of "Disk", because this function is not specific
25506 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25507 static to ensure that it is put on the memory rather than a
25510 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25512 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25513 (grub_cat_init): Likewise.
25514 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25515 (options): Likewise.
25516 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25517 (grub_configfile_init): Likewise.
25518 * font/manager.c (GRUB_MOD_INIT): Likewise.
25519 * commands/help.c (GRUB_MOD_INIT): Likewise.
25520 (grub_help_init): Likewise.
25521 * normal/command.c (grub_command_init): Likewise.
25522 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25523 * disk/loopback.c (grub_loop_init): Likewise.
25524 (GRUB_MOD_INIT): Likewise.
25525 * commands/ls.c (grub_ls_init): Likewise.
25526 (GRUB_MOD_INIT): Likewise.
25527 (options): Likewise.
25528 * commands/boot.c (grub_boot_init): Likewise.
25529 (GRUB_MOD_INIT): Likewise.
25530 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25531 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25532 (GRUB_MOD_INIT): Likewise.
25533 * commands/cmp.c (grub_cmp_init): Likewise.
25534 (GRUB_MOD_INIT): Likewise.
25536 * normal/arg.c: Use <> instead of "" to include header files.
25537 (SHORT_ARG_HELP): New macro.
25538 (SHORT_ARG_USAGE): Likewise.
25539 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25540 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25542 (find_short): Check if C is 'h' or 'u' explicitly.
25543 (grub_arg_show_help): Use space characters instead of tabs. Treat
25544 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25545 are shown with --help and --usage only if they are not used for
25546 the command itself.
25547 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25550 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25551 const into "longarg". Change the type of "shortarg" to int.
25553 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25555 * boot/i386/pc/boot.S (boot_drive_check): New label.
25557 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25560 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25561 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25563 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25565 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25566 When turning off Gate A20, skip the check and return immediately,
25567 because this is not fatal usually.
25569 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25571 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25572 be 0x7C00 instead of 0x8000.
25574 * boot/i386/pc/pxeboot.S: Rewritten.
25576 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25578 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25581 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25583 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25584 robustness. This routine now supports a BIOS call and System
25585 Control Port A to modify the gate A20.
25587 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25588 Increased to 0x440.
25590 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25592 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25593 device path and resulting ihandle.
25594 (grub_ofdisk_close): dprintf the ihandle being closed.
25595 (grub_ofdisk_read): dprintf function parameters.
25596 * kern/mm.c (grub_mm_init_region): Likewise.
25597 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25598 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25599 size, and boot arguments.
25600 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25601 before loading into memory.
25602 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25603 before loading into memory.
25605 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25607 * kern/mm.c: Added much documentation.
25608 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25609 8, set to 5 instead of 8.
25611 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25613 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25615 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25616 (grub_mkdevicemap_SOURCES): New variable.
25618 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25619 lib/device.c of GRUB Legacy.
25621 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25623 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25624 instead of PATH is NULL.
25626 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25628 * commands/cmp.c (BUFFER_SIZE): New macro.
25629 (grub_cmd_cmp): Close the right file at the right time. Compare
25630 only data just read. Don't report files of different size as
25631 identical. Dynamically allocate buffers. Move variable
25632 declarations at the beginning of function.
25634 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25636 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25639 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25641 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25642 when backspace is pressed at beginning of line.
25644 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25646 * DISTLIST: Added genfslist.sh.
25648 * normal/main.c (fs_module_list): New variable.
25649 (autoload_fs_module): New function.
25650 (read_fs_list): Likewise.
25651 (grub_normal_execute): Call read_fs_list.
25653 * kern/fs.c (grub_fs_autoload_hook): New variable.
25654 (grub_fs_probe): Added support for auto-loading.
25656 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25657 (grub_fs_module_list_t): New type.
25659 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25660 (grub_fs_autoload_hook): New prototype.
25662 * genfslist.sh: New file.
25664 * genmk.rb: Added a rule to generate a filesystem list.
25666 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25668 * configure.ac: Fix the test for cross-compiling.
25670 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25671 define GRUB_UTIL anymore.
25673 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25674 so this function works on other systems than just big endian.
25675 (load_modules): Likewise.
25676 (add_segments): Likewise.
25678 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25680 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25681 contains `l' modifier, get a long from va_arg().
25683 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25685 * kern/mm.c (grub_free): If the next free block which is being
25686 merged is the first free block, set the first block to the block
25688 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25690 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25692 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25693 `grub_ieee1275_chosen'.
25695 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25697 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25698 (grub_ieee1275_chosen): New variable.
25699 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25701 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25702 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25703 Rename first argument to `phandle' for consistency.
25704 (grub_ieee1275_get_property_length): Likewise.
25705 (grub_ieee1275_next_property): Likewise. Change type of first argument
25706 to grub_ieee1275_phandle_t.
25707 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25708 Move export next to declaration.
25709 (grub_ieee1275_chosen): New variable.
25710 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25711 Correct cosmetic typo.
25712 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25713 `grub_ieee1275_chosen'.
25714 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25715 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25716 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25717 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25718 `grub_ieee1275_chosen'.
25720 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25722 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25724 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25725 /chosen/bootargs as "variable=value" pairs.
25727 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25729 * include/grub/misc.h (grub_dprintf): New macro.
25730 (grub_real_dprintf): New prototype.
25731 (grub_strword): Likewise.
25732 (grub_iswordseparator): Likewise.
25733 * kern/misc.c (grub_real_dprintf): New function.
25734 (grub_strword): Likewise.
25735 (grub_iswordseparator): Likewise.
25737 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25739 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25740 (roundup): Remove macro.
25741 (grub_ieee1275_flags): Make static.
25742 (grub_ieee1275_realmode): Remove.
25743 (grub_ieee1275_test_flag): New function.
25744 (grub_ieee1275_set_flag): Likewise.
25745 (find_options): Rename to `grub_ieee1275_find_options'; update
25746 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25747 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25748 (cmain): New prototype.
25749 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25750 `grub_ieee1275_flags' directly.
25751 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25752 machine/biosdisk.h.
25753 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25754 Don't include grub/machine/init.h.
25755 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25756 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25758 (grub_ieee1275_realmode): Likewise.
25759 (grub_ieee1275_flag): New enum.
25760 (grub_ieee1275_test_flag): New prototype.
25761 (grub_ieee1275_set_flag): New prototype.
25762 * include/grub/powerpc/ieee1275/init.h: Remove file.
25763 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25764 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25765 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25766 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25768 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25769 `grub_ieee1275_test_flag'.
25770 (grub_ieee1275_encode_devname): Likewise.
25772 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25774 * include/grub/powerpc/ieee1275/ieee1275.h
25775 (grub_ieee1275_encode_devname): New prototype.
25776 (grub_ieee1275_get_filename): Likewise.
25777 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25779 (grub_set_prefix): Likewise.
25780 (grub_machine_init): Call grub_set_prefix.
25781 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25782 (grub_parse_type): New enum.
25783 (grub_ieee1275_get_devargs): New function.
25784 (grub_ieee1275_get_devname): Likewise.
25785 (grub_ieee1275_parse_args): Likewise.
25786 (grub_ieee1275_get_filename): Likewise.
25787 (grub_ieee1275_encode_devname): Likewise.
25789 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25791 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25792 `grub_loader_unset'.
25794 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25796 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25797 instead of grub_ieee1275_interpret.
25798 (grub_halt_init): New function.
25799 (grub_halt_fini): Likewise.
25800 (GRUB_MOD_INIT): Correct message grammar.
25801 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25802 instead of grub_ieee1275_interpret.
25803 (grub_reboot_init): New function.
25804 (grub_reboot_fini): Likewise.
25805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25806 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25807 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25808 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25809 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25811 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25813 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25815 (grub_halt): Likewise.
25816 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25817 (cmain): Remove __attribute__((unused)).
25818 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25819 (grub_heap_len): Likewise.
25820 (grub_machine_fini): New function.
25821 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25822 (grub_halt): Likewise.
25823 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25825 * util/powerpc/ieee1275/misc.c: New file.
25827 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25829 * DISTLIST: New file.
25830 * gendistlist.sh: Likewise.
25832 * Makefile.in (COMMON_DISTFILES): Removed.
25833 (BOOT_DISTFILES): Likewise.
25834 (CONF_DISTFILES): Likewise.
25835 (DISK_DISTFILES): Likewise.
25836 (FS_DISTFILES): Likewise.
25837 (INCLUDE_DISTFILES): Likewise.
25838 (KERN_DISTFILES): Likewise.
25839 (LOADER_DISTFILES): Likewise.
25840 (TERM_DISTFILES): Likewise.
25841 (UTIL_DISTFILES): Likewise.
25842 (DISTFILES): Likewise.
25843 (uninstall): Uninstall files in $(pkgdata_DATA).
25844 (DISTLIST): New target.
25845 (distdir): Use the contents of the file DISTLIST to get a list of
25848 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25850 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25851 descriptor. This is ported from GRUB Legacy.
25853 * gencmdlist.sh: Added an extra semicolon to make it work with
25854 old sed versions. Reported by Robert Bihlmeyer
25855 <robbe@orcus.priv.at>.
25857 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25859 Automatic loading of commands is supported.
25861 * normal/main.c (read_command_list): New function.
25862 (grub_normal_execute): Call read_command_list.
25864 * normal/command.c (grub_register_command): Return zero or CMD.
25865 Allocate CMD->NAME from the heap.
25866 Initialize CMD->MODULE_NAME to zero.
25867 Find the same name as well. If the same command is found and it is
25868 a dummy command, overwrite members. If it is not a dummy command,
25870 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25871 (grub_command_find): If a dummy command is found, load a module
25872 and retry to find a command only once.
25874 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25875 make sure that each command is loaded.
25877 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25879 (struct grub_command): Remove const from the member `name'.
25880 Add a new member `module_name'.
25881 (grub_register_command): Return grub_command_t.
25883 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25884 sure that each command is loaded.
25886 * genmk.rb (PModule::rule): Specify a module name without the
25887 suffix ".mod" to gencmdlist.sh.
25889 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25891 * gencmdlist.sh: New file.
25893 * genmk.rb (PModule::rule): Generate a rule for a command list.
25895 Generate command.lst from $(COMMANDFILES).
25897 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25898 (DATA): Added $(pkgdata_DATA).
25899 (install-local): Install files in $(pkgdata_DATA).
25901 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25903 * term/i386/pc/vga.c (debug_command): Removed.
25904 (GRUB_MOD_INIT): Do not register the command "debug".
25906 From Hollis Blanchard:
25907 * commands/configfile.c: New file.
25908 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25909 commands/configfile.c.
25910 (pkgdata_MODULES): Added configfile.mod.
25911 (configfile_mod_SOURCES): New variable.
25912 (configfile_mod_CFLAGS): Likewise.
25913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25914 commands/configfile.c.
25915 (pkgdata_MODULES): Added configfile.mod.
25916 (configfile_mod_SOURCES): New variable.
25917 (configfile_mod_CFLAGS): Likewise.
25918 * util/grub-emu.c (main): Call grub_configfile_init and
25919 grub_configfile_fini.
25920 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25922 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25924 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25926 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25929 * commands/help.c (grub_cmd_help): Do not print newlines after
25930 the last command in print_command_help.
25932 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25934 * commands/default.h: New file.
25935 * commands/timeout.h: Likewise.
25936 * normal/context.c: Likewise.
25938 * util/misc.c: Do not include sys/times.h.
25939 Include sys/time.h and grub/machine/time.h.
25940 (grub_get_rtc): Rewritten with gettimeofday.
25942 * util/grub-emu.c (main): Call grub_default_init and
25943 grub_timeout_init before grub_normal_init, and call
25944 grub_timeout_fini and grub_default_fini after grub_main.
25946 * util/console.c (grub_ncurses_checkkey): Return the read
25949 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25952 * normal/main.c (read_config_file): Push MENU. If this fails,
25953 print an error and wait for a user input.
25954 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25955 If a menu is empty or an error occurs, pop MENU.
25956 (grub_normal_execute): Pop and free MENU after grub_menu_run
25959 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25961 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25963 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25965 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25967 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25970 * include/grub/normal.h (struct grub_menu_list): New struct.
25971 (grub_menu_list_t): New type.
25972 (struct grub_context): New struct.
25973 (grub_context_t): New type.
25974 (grub_register_command): Got rid of EXPORT_FUNC.
25975 (grub_unregister_command): Likewise.
25976 (grub_context_get): New prototype.
25977 (grub_context_get_current_menu): Likewise.
25978 (grub_context_push_menu): Likewise.
25979 (grub_context_pop_menu): Likewise.
25980 [GRUB_UTIL] (grub_default_init): Likewise.
25981 [GRUB_UTIL] (grub_default_fini): Likewise.
25982 [GRUB_UTIL] (grub_timeout_init): Likewise.
25983 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25985 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25986 commands/timeout.c and normal/context.c.
25987 (pkgdata_MODULES): Added default.mod and timeout.mod.
25988 (normal_mod_SOURCES): Added normal/context.c.
25989 (default_mod_SOURCES): New variable.
25990 (default_mod_CFLAGS): Likewise.
25991 (timeout_mod_SOURCES): Likewise.
25992 (timeout_mod_CFLAGS): Likewise.
25993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25995 (pkgdata_MODULES): Added default.mod and timeout.mod.
25996 (normal_mod_SOURCES): Added normal/context.c.
25997 (default_mod_SOURCES): New variable.
25998 (default_mod_CFLAGS): Likewise.
25999 (timeout_mod_SOURCES): Likewise.
26000 (timeout_mod_CFLAGS): Likewise.
26002 * Makefile.in (all-local): Added $(MKFILES).
26004 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26006 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26007 (grub_emu_SOURCES): Likewise.
26008 (pkgdata_MODULES): Add `sun.mod'.
26009 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26012 (pkgdata_MODULES): Add `sun.mod'.
26013 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26014 * include/grub/partition.h (grub_sun_partition_map_init): New
26016 (grub_sun_partition_map_fini): Likewise.
26017 * partmap/sun.c: New file.
26018 * util/grub-emu.c (main): Initialize and de-initialize the sun
26019 partitionmap support.
26021 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26023 This implements an Emacs-like menu entry editor.
26025 * normal/menu_entry.c: New file.
26027 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26028 characters to ASCII.
26029 (saved_char): New variable.
26030 (grub_ncurses_checkkey): Rewritten completely.
26031 (grub_ncurses_getkey): Likewise.
26032 (grub_ncurses_init): Call raw instead of cbreak.
26034 * normal/menu.c (print_entry): Do not put a space.
26035 (init_page): Renamed to ...
26036 (grub_menu_init_page): ... this. All callers changed.
26037 (edit_menu_entry): Removed.
26038 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26040 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26042 * kern/misc.c (grub_vprintf): Call grub_refresh.
26044 * normal/menu.c (DISP_LEFT): Renamed to ...
26045 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26046 * normal/menu.c (DISP_UP): Renamed to ...
26047 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26048 * normal/menu.c (DISP_RIGHT): Renamed to ...
26049 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26050 * normal/menu.c (DISP_DOWN): Renamed to ...
26051 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26052 * normal/menu.c (DISP_HLINE): Renamed to ...
26053 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26054 * normal/menu.c (DISP_VLINE): Renamed to ...
26055 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26056 * normal/menu.c (DISP_UL): Renamed to ...
26057 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26058 * normal/menu.c (DISP_UR): Renamed to ...
26059 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26060 * normal/menu.c (DISP_LL): Renamed to ...
26061 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26062 * normal/menu.c (DISP_LR): Renamed to ...
26063 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26064 * normal/menu.c (TERM_WIDTH): Renamed to ...
26065 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26066 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26067 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26068 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26069 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26070 * normal/menu.c (TERM_MARGIN): Renamed to ...
26071 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26072 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26073 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26074 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26075 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26076 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26077 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26078 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26079 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26080 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26081 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26082 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26083 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26084 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26085 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26086 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26087 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26088 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26089 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26090 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26091 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26092 All callers changed.
26094 * include/grub/normal.h: New prototype.
26096 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26097 normal/menu_entry.c.
26098 (normal_mod_SOURCES): Likewise.
26099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26100 (normal_mod_SOURCES): Likewise.
26102 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26104 * include/grub/normal.h (grub_halt_init): New prototype.
26105 (grub_halt_fini): Likewise.
26106 (grub_reboot_init): Likewise.
26107 (grub_reboot_fini): Likewise.
26109 * util/grub-emu.c: Include signal.h.
26110 (main_env): New global variable.
26111 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26113 (grub_machine_fini): New function.
26114 (main): Call grub_halt_init and grub_reboot_init before
26115 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26116 Call setjmp with MAIN_ENV to go back afterwards.
26117 Call grub_machine_fini right before return.
26119 * include/grub/util/misc.h: Include setjmp.h.
26120 (main_env): New prototype.
26122 * include/grub/kernel.h (grub_machine_fini): New prototype.
26123 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26124 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26126 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26127 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26128 * term/i386/pc/console.c (grub_console_fini): Likewise.
26130 * util/i386/pc/misc.c: New file.
26132 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26133 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26134 commands/i386/pc/reboot.c.
26136 2005-02-14 Guillem Jover <guillem@hadrons.org>
26138 * include/grub/dl.h (grub_dl_check_header): New prototype.
26139 (grub_arch_dl_check_header): Change return type to grub_err_t,
26140 remove size parameter and export function. Update all callers.
26141 * kern/dl.c (grub_dl_check_header): New function.
26142 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26143 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26144 are inside the core.
26145 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26146 independent ELF header checks.
26147 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26148 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26149 `grub_dl_check_header' instead of explicit checks. Check for the
26151 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26152 `grub_dl_check_header' instead of explicit checks. Remove arch
26153 specific ELF header checks.
26155 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26158 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26160 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26161 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26163 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26165 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26166 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26167 (part_map_iterate): Clear `grub_errno' and return 0 if
26168 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26169 * partmap/amiga.c (amiga_partition_map_iterate): Return
26170 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26171 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26173 2005-02-01 Guillem Jover <guillem@hadrons.org>
26175 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26178 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26180 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26182 (grub_rescue_cmd_linux): New prototype.
26183 (grub_rescue_cmd_initrd): Likewise.
26184 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26186 (grub_linux_release_mem): Release the memory for the initrd.
26187 (grub_load_linux): Renamed from this...
26188 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26189 Changed `entry' not to be static. Loop over memory regions to
26190 find another one when the default fails.
26191 (grub_rescue_cmd_initrd): New function.
26192 (grub_linux_init): Remove function.
26193 (grub_linux_fini): Likewise.
26194 (GRUB_MOD_INIT): Register `initrd'.
26195 (GRUB_MOD_FINI): Unregister `initrd'.
26196 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26198 (grub_linux_normal_fini): Likewise.
26199 (GRUB_MOD_INIT): Register `initrd'.
26200 (GRUB_MOD_FINI): Unregister `initrd'.
26202 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26204 * commands/help.c: New file.
26205 * normal/arg.c (show_help): Renamed to...
26206 (grub_arg_show_help): ... this.
26207 * commands/i386/pc/halt.c: New file.
26208 * commands/i386/pc/reboot.c: Likewise.
26209 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26210 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26211 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26212 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26216 (pkgdata_MODULES): Add `help.mod'.
26217 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26218 * grub/i386/pc/init.h (grub_reboot): New prototype.
26219 (grub_halt): Likewise.
26220 * include/grub/normal.h (grub_arg_show_help): New prototype.
26221 (grub_help_init): Likewise.
26222 (grub_help_fini): Likewise.
26223 * util/grub-emu.c (main): Initialize and deinitialize the help
26226 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26228 * normal/command.c (grub_command_init): Fixed the description of
26229 the `set' and `unset' commands.
26231 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26233 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26235 * commands/ieee1275/halt.c: New file.
26236 * commands/ieee1275/reboot.c: Likewise.
26237 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26238 `__attribute__ ((unused))'. Some GCS related fixed.
26239 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26240 (grub_suspend_fini): Likewise.
26241 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26243 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26244 (halt_mod_CFLAGS): New variables.
26245 * include/grub/powerpc/ieee1275/ieee1275.h
26246 (grub_ieee1275_interpret): New prototype.
26248 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26250 * include/grub/misc.h (memmove): New prototype.
26251 (memcpy): Likewise.
26253 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26255 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26256 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26258 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26260 * kern/misc.c (grub_strndup): Function rewritten.
26262 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26264 * normal/menu.c (TERM_WIDTH): Macro redefined.
26265 (TERM_TOP_BORDER_Y): Likewise.
26266 (draw_border): Replaced while-loop by a for-loop. Make the number
26267 of lines consistent with the number of lines displayed in
26268 print_entries. Added a margin below the rectangle.
26269 (print_entry): Make the entry fit in the rectangle.
26270 (print_entries): Display the scroll arrows next to the right
26273 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26275 * fs/minix.c (grub_minix_find_file): Reserve more space for
26276 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26277 `grub_strncpy' to copy `path' into it.
26279 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26281 Add the loopback device, a device via which files can be accessed
26284 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26285 (pkgdata_MODULES): Add loopback.mod.
26286 (loopback_mod_SOURCES): New variable.
26287 (loopback_mod_CFLAGS): Likewise.
26288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26290 (pkgdata_MODULES): Add loopback.mod.
26291 (loopback_mod_SOURCES): New variable.
26292 (loopback_mod_CFLAGS): Likewise.
26293 * disk/loopback.c: new file.
26294 * include/grub/normal.h (grub_loop_init): New prototype.
26295 (grub_loop_fini): New prototype.
26296 * util/grub-emu.c (main): Initialize and de-initialize loopback
26298 * include/grub/disk.h (grub_disk_dev_id): Add
26299 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26301 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26303 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26305 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26306 (suspend_mod_SOURCES): New variable.
26307 (suspend_mod_CFLAGS): Likewise.
26308 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26310 * commands/ieee1275/suspend.c: New file.
26312 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26314 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26315 ((unused))' to `__attribute__ ((used))'.
26316 (GRUB_MOD_FINI): Likewise.
26317 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26318 * genmk.rb (PModule): Assign space to common symbols when linking
26321 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26323 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26324 `unsigned' arguments to `grub_size_t'.
26325 (grub_malloc): Likewise.
26326 (grub_realloc): Likewise.
26327 (grub_memalign): Likewise.
26328 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26329 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26330 * util/misc.c (grub_malloc): Likewise.
26331 (grub_realloc): Likewise.
26332 * kern/mm.c (get_header_from_pointer): Change the casts to
26333 `unsigned' into a cast to `grub_size_t'.
26335 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26336 point to `currnode' when `currnode' is changed.
26338 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26339 Schottelius <nico-linux@schottelius.org>.
26341 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26343 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26344 (note_path): Remove variable.
26345 (GRUB_IEEE1275_NOTE_NAME): New macro.
26346 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26347 (grub_ieee1275_note_hdr): New structure.
26348 (grub_ieee1275_note_desc): Likewise.
26349 (grub_ieee1275_note): Likewise.
26350 (load_note): Remove `dir' argument. All callers updated. Remove
26351 `note_img' and `path'. Do not load a file from `note_path'.
26352 Initialize a struct grub_ieee1275_note and write that to `out'.
26353 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26355 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26357 * util/misc.c (grub_util_read_image): Revert last change. It
26358 called `grub_util_read_at', which seeks from the beginning of the
26361 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26363 * TODO: Add note about endianness in grub-mkimage.
26364 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26366 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26367 (grub_mkimage_SOURCES): New target.
26368 * include/grub/kernel.h (grub_start_addr): Remove variable.
26369 (grub_end_addr): Likewise.
26370 (grub_total_module_size): Likewise.
26371 (grub_kernel_image_size): Likewise.
26372 (GRUB_MODULE_MAGIC): New constant.
26373 (grub_module_info): New structure.
26374 (grub_arch_modules_addr): New prototype.
26375 (grub_get_end_addr): Remove prototype.
26376 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26377 * include/grub/powerpc/ieee1275/kernel.h: New file.
26378 * include/grub/util/misc.h (grub_util_get_fp_size): New
26380 (grub_util_read_at): Likewise.
26381 (grub_util_write_image_at): Likewise.
26382 * kern/main.c (grub_get_end_addr): Remove function.
26383 (grub_load_modules): Call grub_arch_modules_addr instead of using
26384 grub_end_addr. Look for a grub_module_info struct in memory. Use
26385 the grub_module_info fields instead of calling grub_get_end_addr
26386 as loop conditions. Move grub_add_unused_region code here.
26387 (grub_add_unused_region): Remove function.
26388 * kern/i386/pc/init.c: Include grub/cache.h.
26389 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26390 one call to add_mem_region.
26391 (grub_arch_modules_addr): New function.
26392 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26393 (grub_total_module_size): Likewise.
26394 Include grub/machine/kernel.h.
26395 (grub_arch_modules_addr): New function.
26396 * util/grub-emu.c (grub_end_addr): Remove variable.
26397 (grub_total_module_size): Likewise.
26398 (grub_arch_modules_addr): New function.
26399 * util/misc.c: Include unistd.h.
26400 (grub_util_get_fp_size): New function.
26401 (grub_util_read_at): Likewise.
26402 (grub_util_write_image_at): Likewise.
26403 (grub_util_read_image): Call grub_util_read_at.
26404 (grub_util_write_image): Call grub_util_write_image_at.
26405 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26406 additional memory in kernel_img for a struct grub_module_info.
26407 Fill in that grub_module_info.
26408 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26410 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26412 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26414 * include/grub/powerpc/ieee1275/ieee1275.h
26415 (grub_ieee1275_milliseconds): New prototype.
26416 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26418 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26419 grub_ieee1275_milliseconds.
26421 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26423 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26425 (find_options): New function.
26426 (cmain): Call find_options.
26427 * include/grub/powerpc/ieee1275/ieee1275.h
26428 (grub_ieee1275_realmode): New extern variable.
26429 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26430 grub_map if grub_ieee1275_realmode is false.
26432 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26434 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26435 lines are inserted and make it work like readline. Reported by
26436 Vincent Pelletier <subdino2004@yahoo.fr>.
26438 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26440 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26443 `kern/powerpc/cache.S'.
26445 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26447 * genmk.rb: Handle the `Program' class in the main loop. Written
26448 by Johan Rydberg <jrydberg@gnu.org>.
26449 (Program): New class.
26450 (programs): New variable.
26451 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26452 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26453 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26454 (help_arch): Function removed.
26455 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26456 `powerpc/libgcc.h' and `loader.h'.
26457 (pkgdata_PROGRAMS): New variable.
26458 (sbin_UTILITIES): Variable removed.
26459 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26460 (grubof_SOURCES): Variable re-defined so it only includes the
26461 core functionality.
26462 (grubof_CFLAGS): Remove `-DGRUBOF'.
26463 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26464 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26465 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26466 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26467 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26468 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26469 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26470 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26471 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26472 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26473 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26474 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26475 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26476 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26477 (pc_mod_CFLAGS): New variables.
26478 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26479 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26480 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26481 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26483 * include/grub/i386/pc/init.h (grub_os_area_addr)
26484 (rub_os_area_size): ... to here.
26485 * include/grub/powerpc/ieee1275/ieee1275.h
26486 (grub_ieee1275_entry_fn): Export symbol.
26487 * include/grub/powerpc/ieee1275/init.h: New file.
26488 * include/grub/powerpc/libgcc.h: Likewise.
26489 * include/grub/cache.h: Likewise.
26490 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26491 <hollis@penguinppc.org>.
26492 * kern/dl.c: Include <grub/cache.h>.
26493 (grub_dl_flush_cache): New function.
26494 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26496 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26497 (grub_console_init): Removed prototypes.
26498 (grub_machine_init): Don't initialize the modules anymore.
26499 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26501 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26502 Macro undef removed.
26503 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26504 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26505 relocation `R_PPC_REL32'. Return an error when the relocation is
26507 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26508 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26509 * util/misc.c (grub_arch_sync_caches): Likewise.
26511 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26513 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26514 `symlist.c', add `grubof_symlist.c'.
26515 (symlist.c): Variable removed.
26516 (grubof_HEADERS): Variable added.
26517 (grubof_symlist.c): New target.
26518 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26519 `kernel_img_HEADERS'.
26520 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26521 * kern/powerpc/dl.c: New file.
26522 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26524 (grub_arch_dl_relocate_symbols): Likewise.
26525 (grub_register_exported_symbols): Likewise.
26527 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26529 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26530 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26531 to fail instead. Reported by Vincent Pelletier
26532 <subdino2004@yahoo.fr>.
26534 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26535 it is not allocated. Reported by Vincent Pelletier
26536 <subdino2004@yahoo.fr>.
26538 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26539 output so the output looks better.
26541 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26543 Modulize the partition map support and add support for the amiga
26546 * commands/ls.c: Include <grub/partition.h> instead of
26547 <grub/machine/partition.h>.
26548 * kern/disk.c: Likewise.
26549 * kern/rescue.c: Likewise.
26550 * loader/i386/pc/chainloader.c: Likewise.
26551 * normal/cmdline.c: Likewise.
26552 * kern/powerpc/ieee1275/init.c: Likewise.
26553 (grub_machine_init): Call `grub_pc_partition_map_init',
26554 `grub_amiga_partition_map_init' and
26555 `grub_apple_partition_map_init'.
26556 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26557 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26558 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26559 `partition.h' and `pc_partition.h'.
26560 (grub_setup_SOURCES): Remove
26561 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26562 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26563 (grub_emu_SOURCES): Likewise.
26564 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26565 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26566 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26568 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26569 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26570 (grubof_SOURCES): Likewise.
26571 * disk/i386/pc/partition.c: File removed.
26572 * disk/powerpc/ieee1275/partition.c: Likewise.
26573 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26574 * include/grub/i386/pc/partition.h: Likewise.
26575 * kern/partition.c: New file.
26576 * partmap/amiga.c: Likewise.
26577 * partmap/apple.c: Likewise.
26578 * partmap/pc.c: Likewise.
26579 * include/grub/partition.h: Likewise..
26580 * include/grub/pc_partition.h: Likewise.
26581 * util/grub-emu.c: Include <grub/partition.h> instead of
26582 <grub/machine/partition.h>.
26583 (main): Call `grub_pc_partition_map_init',
26584 `grub_amiga_partition_map_init' and
26585 `grub_apple_partition_map_init' and deinitialize afterwards.
26586 * util/i386/pc/biosdisk.c: Include `#include
26587 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26588 `<grub/machine/partition.h>'.
26589 * util/i386/pc/grub-setup.c: Likewise.
26590 * util/i386/pc/biosdisk.c: Likewise.
26591 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26592 partition information in case of a PC partition.
26593 * util/i386/pc/grub-setup.c: Include `#include
26594 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26595 `<grub/machine/partition.h>'.
26596 (setup): Only access the PC specific partition information in case
26599 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26601 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26602 (grub_longjmp): Likewise.
26603 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26605 * normal/powerpc/setjmp.S: New file.
26606 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26607 `normal/powerpc/setjmp.S'.
26608 (grubof_CFLAGS): Add `-DGRUBOF'.
26609 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26610 [GRUB_UTIL && !GRUBOF].
26612 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26614 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26615 property named `name'. Correctly handle the error returned by
26616 `grub_ieee1275_finddevice' if a device can not be opened.
26618 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26620 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26621 `actual' for negativity.
26622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26625 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26627 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26628 (PAGE_OFFSET): New macro.
26629 (CRTC_ADDR_PORT): Likewise.
26630 (CRTC_DATA_PORT): Likewise.
26631 (START_ADDR_HIGH_REGISTER): Likewise.
26632 (START_ADDR_LOW_REGISTER): Likewise.
26633 (GRAPHICS_ADDR_PORT): Likewise.
26634 (GRAPHICS_DATA_PORT): Likewise.
26635 (READ_MAP_REGISTER): Likewise.
26636 (INPUT_STATUS1_REGISTER): Likewise.
26637 (INPUT_STATUS1_VERTR_BIT): Likewise.
26638 (page): New variable.
26639 (wait_vretrace): New function.
26640 (set_read_map): Likewise.
26641 (set_start_address): Likewise.
26642 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26644 (check_vga_mem): Take the page into account.
26645 (write_char): Likewise.
26646 (write_cursor): Likewise.
26647 (scroll_up): Likewise. Copy the page to the page that is not
26648 shown and switch between both pages.
26649 (grub_vga_putchar): Fix off by one error.
26650 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26653 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26655 Add support for iso9660 (including rockridge).
26657 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26658 (iso9660_mod_SOURCES): New variable.
26659 (iso9660_mod_CFLAGS): Likewise.
26660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26661 * include/grub/fs.h (grub_iso9660_init): New prototype.
26662 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26663 * fs/iso9660.c: New file.
26665 * include/grub/misc.h (grub_strncat): New prototype.
26666 * kern/misc.c (grub_strncat): New function.
26668 * fs/hfs.c (grub_hfs_mount): Translate the error
26669 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26670 * fs/jfs.c (grub_jfs_mount): Likewise.
26671 * fs/ufs.c (grub_ufs_mount): Likewise.
26673 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26675 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26676 which initialized BAT registers.
26677 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26678 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26680 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26681 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26683 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26684 (grub_mapclaim): Likewise.
26685 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26686 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26689 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26691 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26692 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26693 -ffreestanding and -msoft-float.
26695 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26698 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26699 set in grub_ieee1275_flags.
26701 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26703 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26705 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26706 grub_console_init first.
26707 Change the memory range used for grub_ieee1275_claim and
26708 grub_mm_init_region.
26709 Print an error message if the claim fails.
26710 Include <grub/misc.h>.
26712 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26714 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26715 Call grub_children_iterate for device nodes of type `scsi',
26717 (grub_ofdisk_open): Remove manual device alias resolution.
26718 Fix memory leak when device cannot be opened.
26719 * include/grub/powerpc/ieee1275/ieee1275.h
26720 (grub_children_iterate): New prototype.
26721 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26723 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26724 Return -1 if args.size was -1.
26726 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26728 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26729 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26730 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26731 Open Firmware's memory for it; claim memory from _start to _end.
26732 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26733 (_end): New extern.
26734 (_start): Zero BSS from __bss_start to _end.
26735 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26737 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26739 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26741 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26742 -1 if args.base was -1.
26744 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26746 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26747 escape sequence instead of a literal ^L. Also call
26748 grub_ofconsole_gotoxy.
26750 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26752 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26753 void * arguments to grub_addr_t. All callers updated. Also make
26754 the `result' argument optional.
26755 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26756 All callers updated.
26758 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26760 * commands/ls.c (grub_ls_list_files): Use the string following the
26761 initial ')', if present, as the filesystem path.
26762 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26764 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26766 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26768 Make the source code of the menu interface more readable.
26770 * normal/menu.c: Include grub/mm.h.
26771 (TERM_WIDTH): New macro.
26772 (TERM_HEIGHT): Likewise.
26773 (TERM_INFO_HEIGHT): Likewise.
26774 (TERM_MARGIN): Likewise.
26775 (TERM_SCROLL_WIDTH): Likewise.
26776 (TERM_TOP_BORDER_Y): Likewise.
26777 (TERM_LEFT_BORDER_X): Likewise.
26778 (TERM_BORDER_WIDTH): Likewise.
26779 (TERM_MESSAGE_HEIGHT): Likewise.
26780 (TERM_BORDER_HEIGHT): Likewise.
26781 (TERM_NUM_ENTRIES): Likewise.
26782 (TERM_FIRST_ENTRY_Y): Likewise.
26783 (TERM_ENTRY_WIDTH): Likewise.
26784 (TERM_CURSOR_X): Likewise.
26785 (draw_border): Use macros instead of magic numbers.
26786 (print_entry): Likewise.
26787 (print_entries): Likewise.
26788 (run_menu): Likewise. Also, handle the key 'e'.
26789 (run_menu_entry): Ignore empty command lines.
26790 (print_message): Added a new argument EDIT. If EDIT is true,
26791 print a different message.
26792 (init_page): Likewise.
26793 (edit_menu_entry): New function. Not implemented yet.
26795 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26797 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26798 can be loaded from normal mode.
26800 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26802 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26803 (multiboot_mod_CFLAGS): New variables.
26804 * loader/i386/pc/linux_normal.c: New file.
26805 * loader/i386/pc/multiboot_normal.c: Likewise.
26807 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26808 attribute `unused'.
26810 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26811 `fdiro' to read the mode information from instead of `diro'.
26813 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26814 looking up a symlink.
26816 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26818 * normal/command.c (grub_command_execute): Don't parse the
26819 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26820 flags of the command.
26822 * normal/menu.c (grub_menu_run): Fix typo.
26824 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26826 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26828 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26829 `y + 1' instead of `y - 1'.
26831 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26833 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26835 From Hollis Blanchard <hollis@penguinppc.org>:
26836 * kern/misc.c (memmove): New alias for grub_memmove.
26837 (memcmp): New alias for grub_memcmp.
26838 (memset): New alias for grub_memset.
26839 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26840 Change "int handle" to "grub_ieee1275_phandle_t handle".
26841 * include/grub/powerpc/ieee1275/ieee1275.h
26842 (grub_ieee1275_get_property): Likewise.
26844 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26846 Added normal mode command `chainloader' as module chain.mod, which
26847 depends on normal.mod and _chain.mod.
26849 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26850 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26851 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26853 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26854 but arguments parsing moved to ...
26855 (grub_chainloader_cmd): ... here. New function.
26856 * include/grub/i386/pc/chainloader.h: New file.
26857 * loader/i386/pc/chainloader_normal.c: Likewise.
26859 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26861 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26862 (grub_mkimage_LDFLAGS): Likewise.
26863 (grub_emu_SOURCES): Likewise.
26864 (kernel_img_HEADERS): Added fshelp.h.
26865 * fs/ext2.c: Include <grub/fshelp.h>.
26866 (FILETYPE_REG): New macro.
26867 (FILETYPE_INO_REG): Likewise.
26868 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26870 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26872 (grub_fshelp_node): New struct.
26873 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26875 (grub_ext2_get_file_block): Removed function.
26876 (grub_ext2_read_block): New function.
26877 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26878 This function was written.
26879 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26880 (grub_ext2_find_file): Removed function.
26881 (grub_ext2_read_symlink): New function.
26882 (grub_ext2_iterate_dir): Likewise.
26883 (grub_ext2_open): Rewritten.
26884 (grub_ext2_dir): Rewritten.
26885 * include/grub/fshelp.h: New file.
26886 * fs/fshelp.c: Likewise.
26888 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26890 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26891 (print_message): Add a missing newline.
26892 (run_menu): Added timeout support.
26893 (run_menu_entry): New local function.
26894 (grub_menu_run): Added support for booting.
26896 * kern/loader.c (grub_loader_is_loaded): New function.
26898 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26899 (grub_get_rtc): Exported.
26901 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26902 (grub_get_rtc): Exported.
26904 * include/grub/normal.h (struct grub_command_list): Remove
26905 constant from the member `command'.
26907 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26909 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26911 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26913 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26915 Add support for the JFS filesystem.
26917 * fs/jfs.c: New file.
26918 * include/grub/fs.h (grub_jfs_init): New prototype.
26919 (grub_jfs_fini): New prototype.
26920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26921 (grub_emu_SOURCES): Likewise.
26922 (pkgdata_MODULES): Add jfs.mod.
26923 (jfs_mod_SOURCES): New variable.
26924 (jfs_mod_CFLAGS): Likewise.
26925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26926 (grubof_SOURCES): Likewise.
26927 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26929 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26930 endian to the host endian.
26931 (grub_fat_utf16_to_utf8): Move function from there...
26932 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26933 the endianness of the source string anymore.
26934 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26936 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26938 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26939 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26940 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26941 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26943 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26944 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26945 for `node_found' and `it_dir'.
26946 (grub_hfs_dir): Add prototype for `dir_hook'.
26948 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26949 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26950 and `indir32' to silence a gcc warning.
26952 * include/grub/fs.h (grub_hfs_init): New prototype.
26953 (grub_hfs_fini): Likewise.
26956 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26958 Each disk device has its own id now. This is useful to make use
26959 of multiple disk devices.
26961 * include/grub/disk.h (grub_disk_dev_id): New enum.
26962 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26963 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26965 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26966 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26968 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26969 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26971 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26972 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26974 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26975 "id" which is used by the cache manager.
26977 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26980 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26982 * fs/hfs.c: New file.
26983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26984 (grub_emu_SOURCES): Likewise.
26985 (pkgdata_MODULES): Add hfs.mod.
26986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26987 (grubof_SOURCES): Likewise.
26988 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26990 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26991 * kern/misc.c (grub_strncasecmp): Add function.
26993 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26995 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26998 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26999 (grub_ext2_dir): In case the directory entry type is unknown, read
27002 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27004 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27005 grub_load_linux instead of grub_rescue_cmd_linux as second
27006 argument of grub_rescue_register_command.
27008 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27010 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27012 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27014 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27015 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27016 `loader/powerpc/ieee1275/linux.c',
27017 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27018 * include/grub/powerpc/ieee1275/ieee1275.h
27019 (grub_ieee1275_release): New prototype.
27020 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27021 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27022 normal, boot, linux and linux_normal.
27023 * loader/powerpc/ieee1275/linux.c: New file.
27024 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27026 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27028 * normal/arg.c (grub_arg_parse): Correct error handling after
27029 reallocating the argumentlist (check if `argl' is not null instead
27030 of checking if `args' is not null).
27031 * kern/mm.c (grub_realloc): Return the same pointer when using the
27032 same region, instead of returning the header address.
27034 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27036 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27037 one block instead of two when looking for the initial partition.
27038 (grub_partition_probe): Initialize the local variable `p' with 0.
27039 Use base 10 for the grub_strtoul call.
27040 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27041 need for one local variable.
27042 (grub_strtoul): Don't add the new value to `num', instead of that
27045 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27047 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27048 (pxeboot_img_SOURCES): New variable.
27049 (pxeboot_img_ASFLAGS): Likewise.
27050 (pxeboot_img_LDFLAGS): Likewise.
27051 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27052 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27053 <lode_leroy@hotmail.com>.
27055 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27057 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27058 there was no input.
27060 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27062 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27063 the history buffer logic.
27065 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27067 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27068 (FILETYPE_INO_SYMLINK): New macros.
27069 (grub_ext2_find_file): Check if the node is a directory using the
27070 inode stat information instead of using the filetype in the
27071 dirent. Exclude the first character of an absolute symlink.
27072 (grub_ext2_dir): Mask out the filetype part of the mode member of
27075 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27077 Add support for UFS version 1 and 2. Add support for the minix
27078 filesystem version 1 and 2, both the variants with 14 and 30 long
27081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27083 (grub_emu_SOURCES): Likewise.
27084 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27085 (ufs_mod_SOURCES): New variable.
27086 (ufs_mod_CFLAGS): Likewise.
27087 (minix_mod_SOURCES): Likewise.
27088 (minix_mod_CFLAGS): Likewise.
27089 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27091 (grubof_SOURCES): Likewise.
27092 * fs/ufs.c: New file.
27093 * fs/minix.c: New file.
27094 * include/grub/fs.h (grub_ufs_init): New prototype.
27095 (grub_ufs_fini): Likewise.
27096 (grub_minix_init): Likewise.
27097 (grub_minix_fini): Likewise.
27098 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27101 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27104 commands/ls.c, commands/terminal.c, commands/boot.c,
27105 commands/cmp.c and commands/cat.c.
27106 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27108 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27111 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27113 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27114 and grub_, respectively. Because the conversion is trivial and
27115 mechanical, I omit the details here. Please refer to the CVS
27116 if you need more information.
27118 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27120 * include/pupa: Renamed to ...
27121 * include/grub: ... this.
27122 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27123 * util/i386/pc/grub-mkimage.c: ... this.
27124 * util/i386/pc/pupa-setup.c: Renamed to ...
27125 * util/i386/pc/grub-setup.c: ... this.
27126 * util/pupa-emu.c: Renamed to ...
27127 * util/grub-emu.c: ... this.
27129 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27131 Add support for the newworld apple macintosh (PPC). This has been
27132 tested on the powerbook 2000 only. It only adds support for
27133 generic ieee1275 functions, console and disk support. This should
27134 be easy to port to other architectures with support for Open
27137 * configure.ac: Accept the powerpc as host_cpu. In the case of
27138 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27139 specific tests are only executed while building for the i386.
27140 Inverse test for crosscompile.
27141 * genmk.rb (Utility): Allow assembler files.
27142 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27143 * conf/powerpc-ieee1275.rmk: New file.
27144 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27145 * disk/powerpc/ieee1275/partition.c: Likewise.
27146 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27147 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27148 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27149 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27150 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27151 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27152 * include/pupa/powerpc/ieee1275/loader.h
27153 * include/pupa/powerpc/setjmp.h: Likewise.
27154 * include/pupa/powerpc/types.h: Likewise.
27155 * kern/powerpc/ieee1275/init.c: Likewise.
27156 * kern/powerpc/ieee1275/openfw.c: Likewise.
27157 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27159 These files were written by Johan Rydberg
27160 (jrydberg@night.trouble.net) and I only modified them slightly.
27162 * boot/powerpc/ieee1275/cmain.c: New file.
27163 * boot/powerpc/ieee1275/crt0.S: Likewise.
27164 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27165 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27167 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27169 * Makefile.in: Update copyright.
27170 * genmodsrc.sh: Likewise.
27171 * gensymlist.sh: Likewise.
27172 * term/i386/pc/vga.c: Indent correctly.
27174 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27175 bugreporting address.
27176 * util/i386/pc/pupa-setup.c (usage): Likewise,
27177 (main): Call pupa_ext2_init and pupa_ext2_fini.
27179 * fs/fat.c (log2): Renamed to ...
27180 (fat_log2): ... this.
27181 All callers changed.
27182 * kern/misc.c (memcpy): Alias to pupa_memmove.
27183 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27185 * util/console.c (pupa_ncurses_fini): Return 0.
27187 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27188 Move fail label here.
27189 [__GNU__]: Don't warn when using stat.
27190 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27191 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27192 long int. Use strtol instead of strtoul.
27194 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27196 * commands/boot.c: New file.
27197 * commands/cat.c: Likewise.
27198 * commands/cmp.c: Likewise.
27199 * commands/ls.c: Likewise.
27200 * commands/terminal.c: Likewise.
27201 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27202 (pupa_register_command): Changed interface to match the new
27204 (pupa_command_execute): Changed (almost rewritten) so it uses
27205 pupa_split_command. Added support for setting variables using the
27207 (rescue_command): Changed to work with the new argument parser.
27208 (terminal_command): Moved from here to commands/terminal.c.
27209 (set_command): New function.
27210 (unset_command): New function.
27211 (insmod_command): New function.
27212 (rmmod_command): New function.
27213 (lsmod_command): New function.
27214 (pupa_command_init): Don't initialize the command terminal
27215 anymore. Initialize the commands set, unset, insmod, rmmod and
27217 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27218 (kernel_img_HEADERS): Add arg.h and env.h.
27219 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27220 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27221 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27223 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27225 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27226 (boot_mod_SOURCES): New variable.
27227 (terminal_mod_SOURCES): Likewise.
27228 (ls_mod_SOURCES): Likewise.
27229 (cmp_mod_SOURCES): Likewise.
27230 (cat_mod_SOURCES): Likewise.
27232 * normal/arg.c: New file.
27233 * kern/env.c: Likewise.
27234 * include/pupa/arg.h: Likewise.
27235 * include/pupa/env.h: Likewise.
27236 * font/manager.c (font_command): Changed to match argument parsing
27238 (PUPA_MOD_INIT): Likewise.
27239 * hello/hello.c (pupa_cmd_hello): Likewise.
27240 (PUPA_MOD_INIT): Likewise.
27241 * include/pupa/disk.h: Include <pupa/device.h>.
27242 (pupa_print_partinfo): New prototype.
27243 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27244 (pupa_dl_get_prefix): Likewise.
27245 * include/pupa/misc.h: Include <pupa/err.h>.
27246 (pupa_isgraph): New prototype.
27247 (pupa_isdigit): Likewise.
27248 (pupa_split_cmdline): Likewise.
27249 * include/pupa/normal.h: Include <pupa/arg.h>.
27250 (pupa_command): Changed the prototype of the member `func' to
27251 match the argument parsing interface. Added member `options'.
27252 (pupa_register_command): Updated to match function.
27253 (pupa_arg_parse): New prototype.
27254 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27255 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27256 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27257 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27258 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27259 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27260 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27261 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27262 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27263 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27264 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27265 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27266 * kern/disk.c: Include <pupa/file.h>.
27267 (pupa_print_partinfo): New function.
27268 * kern/dl.c: Include <pupa/env.h>.
27269 (pupa_dl_dir): Variable removed.
27270 (pupa_dl_load): Use the environment variable `prefix' instead of
27271 the variable pupa_dl_dir.
27272 (pupa_dl_set_prefix): Function removed.
27273 (pupa_dl_get_prefix): Likewise.
27274 * kern/i386/pc/init.c: Include <pupa/env.h>.
27275 (pupa_machine_init): Use the environment variable `prefix' instead of
27276 using pupa_dl_set_prefix to set the prefix.
27277 * kern/main.c: Include <pupa/env.h>.
27278 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27279 using pupa_dl_get_prefix to get the prefix.
27280 * kern/misc.c: Include <pupa/env.h>.
27281 (pupa_isdigit): New function.
27282 (pupa_isgraph): Likewise.
27283 (pupa_ftoa): Likewise.
27284 (pupa_vsprintf): Added support for printing values of the type
27285 `double'. Make it possible to format variable output when using
27286 formatting like `%1.2%f'.
27287 (pupa_split_cmdline): New function.
27288 * kern/rescue.c: Include <pupa/env.h>.
27289 (next_word): Removed function.
27290 (pupa_rescue_cmd_prefix): Likewise.
27291 (pupa_rescue_cmd_set): New function.
27292 (pupa_rescue_cmd_unset): New function.
27293 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27294 split the command line instead of splitting it here. Added
27295 support for setting variables using the syntax `foo=bar'. Don't
27296 initialize the prefix command anymore. Initialized the set and
27298 * normal/cmdline.c: Include <pupa/env.h>.
27299 (pupa_tab_complete): Added prototypes for print_simple_completion,
27300 print_partition_completion, add_completion, iterate_commands,
27301 iterate_dev, iterate_part and iterate_dir. Moved code to print
27302 partition information from here to kern/disk.c.
27303 (pupa_cmdline_run): Don't check if the function exists anymore.
27304 * normal/main.c: Include <pupa/env.h>.
27305 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27306 instead of using pupa_dl_get_prefix to get the prefix.
27307 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27308 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27310 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27311 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27312 ((unused))' to silence a gcc warning.
27313 (pupa_vga_setcolor): Likewise.
27314 (debug_command): Changed to match argument parsing
27316 * util/pupa-emu.c: Include <pupa/env.h>.
27317 (options): Added 0's for unused fields to silence a gcc warning.
27319 (main): Use the environment variable `prefix' instead of using
27320 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27321 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27324 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27325 * util/misc.c: Include <malloc.h>.
27326 (pupa_malloc): Rewritten so errors are correctly reported.
27327 (pupa_realloc): Likewise.
27328 (pupa_memalign): Likewise.
27329 (pupa_mm_init_region): Declare unused variables with
27330 `__attribute__ ((unused))' to silence a gcc warning.
27331 * normal/i386/setjmp.S: Remove tab at the end of the file to
27332 silence a gcc warning.
27333 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27334 variables with `__attribute__ ((unused))' to silence a gcc
27336 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27337 local variable i unsigned to silence a gcc warning.
27339 * kern/term.c: Include <pupa/misc.h>.
27340 (pupa_more_lines): New variable.
27341 (pupa_more): Likewise.
27342 (pupa_putcode): When the pager is active pause at the end of every
27344 (pupa_set_more): New function.
27345 * include/pupa/term.h (pupa_set_more): New prototype.
27348 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27350 Now this project is GRUB 2 rather than PUPA. The location of
27351 the CVS repository was moved to GRUB's.
27353 * configure.ac: Use bug-grub as the reporting address.
27354 Use GRUB instead of PUPA.
27355 Change the version number to 1.90.
27357 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27359 * genkernsyms.sh: Updated copyright information.
27360 * genmk.rb: Likewise.
27361 * genmodsrc.sh: Likewise.
27362 * gensymlist.sh: Likewise.
27363 * boot/i386/pc/boot.S: Likewise.
27364 * boot/i386/pc/diskboot.S: Likewise.
27365 * disk/i386/pc/biosdisk.c: Likewise.
27366 * disk/i386/pc/partition.c: Likewise.
27367 * font/manager.c: Likewise.
27368 * fs/ext2.c: Likewise.
27369 * fs/fat.c: Likewise.
27370 * include/pupa/boot.h: Likewise.
27371 * include/pupa/device.h: Likewise.
27372 * include/pupa/disk.h: Likewise.
27373 * include/pupa/dl.h: Likewise.
27374 * include/pupa/elf.h: Likewise.
27375 * include/pupa/err.h: Likewise.
27376 * include/pupa/file.h: Likewise.
27377 * include/pupa/font.h: Likewise.
27378 * include/pupa/fs.h: Likewise.
27379 * include/pupa/kernel.h: Likewise.
27380 * include/pupa/loader.h: Likewise.
27381 * include/pupa/misc.h: Likewise.
27382 * include/pupa/mm.h: Likewise.
27383 * include/pupa/net.h: Likewise.
27384 * include/pupa/normal.h: Likewise.
27385 * include/pupa/rescue.h: Likewise.
27386 * include/pupa/setjmp.h: Likewise.
27387 * include/pupa/symbol.h: Likewise.
27388 * include/pupa/term.h: Likewise.
27389 * include/pupa/types.h: Likewise.
27390 * include/pupa/i386/setjmp.h: Likewise.
27391 * include/pupa/i386/types.h: Likewise.
27392 * include/pupa/i386/pc/biosdisk.h: Likewise.
27393 * include/pupa/i386/pc/boot.h: Likewise.
27394 * include/pupa/i386/pc/console.h: Likewise.
27395 * include/pupa/i386/pc/init.h: Likewise.
27396 * include/pupa/i386/pc/kernel.h: Likewise.
27397 * include/pupa/i386/pc/linux.h: Likewise.
27398 * include/pupa/i386/pc/loader.h: Likewise.
27399 * include/pupa/i386/pc/memory.h: Likewise.
27400 * include/pupa/i386/pc/multiboot.h: Likewise.
27401 * include/pupa/i386/pc/partition.h: Likewise.
27402 * include/pupa/i386/pc/time.h: Likewise.
27403 * include/pupa/i386/pc/vga.h: Likewise.
27404 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27405 * include/pupa/util/getroot.h: Likewise.
27406 * include/pupa/util/misc.h: Likewise.
27407 * include/pupa/util/resolve.h: Likewise.
27408 * kern/device.c: Likewise.
27409 * kern/disk.c: Likewise.
27410 * kern/dl.c: Likewise.
27411 * kern/err.c: Likewise.
27412 * kern/file.c: Likewise.
27413 * kern/fs.c: Likewise.
27414 * kern/loader.c: Likewise.
27415 * kern/main.c: Likewise.
27416 * kern/misc.c: Likewise.
27417 * kern/mm.c: Likewise.
27418 * kern/rescue.c: Likewise.
27419 * kern/term.c: Likewise.
27420 * kern/i386/dl.c: Likewise.
27421 * kern/i386/pc/init.c: Likewise.
27422 * kern/i386/pc/lzo1x.S: Likewise.
27423 * kern/i386/pc/startup.S: Likewise.
27424 * loader/i386/pc/chainloader.c: Likewise.
27425 * loader/i386/pc/linux.c: Likewise.
27426 * loader/i386/pc/multiboot.c: Likewise.
27427 * normal/cmdline.c: Likewise.
27428 * normal/command.c: Likewise.
27429 * normal/main.c: Likewise.
27430 * normal/menu.c: Likewise.
27431 * normal/i386/setjmp.S: Likewise.
27432 * term/i386/pc/console.c: Likewise.
27433 * term/i386/pc/vga.c: Likewise.
27434 * util/console.c: Likewise.
27435 * util/genmoddep.c: Likewise.
27436 * util/misc.c: Likewise.
27437 * util/pupa-emu.c: Likewise.
27438 * util/resolve.c: Likewise.
27439 * util/unifont2pff.rb: Likewise.
27440 * util/i386/pc/biosdisk.c: Likewise.
27441 * util/i386/pc/getroot.c: Likewise.
27442 * util/i386/pc/pupa-mkimage.c: Likewise.
27443 * util/i386/pc/pupa-setup.c: Likewise.
27445 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27447 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27448 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27449 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27450 reading and reset it after reading.
27451 (pupa_ext2_close): Return PUPA_ERR_NONE.
27453 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27455 (struct linux_kernel_header): Add kernel_version and
27457 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27458 pupa_file_read succeeds.
27459 (pupa_rescue_cmd_initrd): Implement.
27461 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27463 * fs/ext2.c (pupa_ext2_label): New function.
27464 (pupa_ext2_fs): Added label.
27465 * fs/fat.c (pupa_fat_label): New function.
27466 (pupa_fat_fs): Added label.
27467 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27469 * kern/misc.c (pupa_strndup): New function.
27470 * include/pupa/misc.h (pupa_strndup): New prototype.
27472 * include/pupa/normal.h: Include <pupa/err.h>.
27473 (pupa_set_history): New prototype.
27474 (pupa_iterate_commands): New prototype.
27475 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27476 <pupa/disk.h>, <pupa/file.h>.
27477 (hist_size): New variable.
27478 (hist_lines): Likewise.
27479 (hist_end): Likewise.
27480 (hist_used): Likewise.
27481 (pupa_set_history): New function.
27482 (pupa_history_get): Likewise.
27483 (pupa_history_add): Likewise.
27484 (pupa_history_replace): Likewise.
27485 (pupa_tab_complete): Likewise.
27486 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27487 completion shows partitionnames while completing partitions, this
27488 feature was suggested by Jeff Bailey.
27489 * normal/command.c (pupa_iterate_commands): New function.
27490 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27491 (pupa_normal_init): Initialize history buffer.
27492 (PUPA_MOD_INIT): Likewise.
27493 (pupa_normal_fini): Free the history buffer.
27494 (PUPA_MOD_FINI): Likewise.
27496 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27499 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27500 * configure.ac [i386]: Check for regparam bug.
27501 (NESTED_FUNC_ATTR) [! i386]: Defined.
27503 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27505 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27506 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27507 (pupa_emu_SOURCES): New variable.
27508 (pupa_emu_LDFLAGS): Likewise.
27509 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27510 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27511 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27512 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27513 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27514 (pupa_jmp_buf): New typedef.
27515 (pupa_setjmp) [PUPA_UTIL]: New macro.
27516 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27517 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27518 (pupa_refresh): New prototype.
27519 * include/pupa/util/getroot.h: New file.
27520 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27522 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27523 (pupa_rescue_cmd_cat): Likewise.
27524 (pupa_rescue_cmd_ls): Likewise.
27525 (pupa_rescue_cmd_testload): Likewise.
27526 (pupa_rescue_cmd_lsmod): Likewise.
27527 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27528 * normal/menu.c (run_menu): Likewise.
27529 * kern/term.c (pupa_cls): Likewise.
27530 (pupa_refresh): New function.
27531 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27532 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27533 * util/console.c: New file.
27535 * util/i386/pc/getroot.c: New file.
27536 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27537 (pupa_putchar): New function.
27538 (pupa_refresh): Likewise.
27539 (xgetcwd): Function moved to ...
27540 (strip_extra_slashes): Likewise.
27541 (get_prefix): Likewise.
27542 * util/i386/pc/getroot.c: ... here.
27543 (find_root_device): Function moved and renamed to...
27544 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27545 Changed all callers.
27546 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27548 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27549 Changed all callers.
27550 * util/misc.c (pupa_memalign): New function.
27551 (pupa_mm_init_region): Likewise.
27552 (pupa_register_exported_symbols): Likewise.
27553 (pupa_putchar): Function removed.
27554 * util/pupa-emu.c: New file.
27556 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27558 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27559 (_multiboot_mod_SOURCES): New variable.
27560 (_multiboot_mod_CFLAGS): Likewise.
27561 * loader/i386/pc/multiboot.c: New file.
27562 * include/pupa/i386/pc/multiboot.h: Likewise.
27563 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27564 (pupa_multiboot_real_boot): New function.
27565 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27566 (pupa_multiboot_real_boot): New prototype.
27567 (pupa_rescue_cmd_multiboot): Likewise
27568 (pupa_rescue_cmd_module): Likewise.
27570 * kern/loader.c (pupa_loader_set): Continue when
27571 pupa_loader_unload_func() fails.
27572 (pupa_loader_unset): New function.
27573 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27575 * kern/misc.c (pupa_stpcpy): New function.
27576 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27578 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27580 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27581 for available extensions.
27583 * include/pupa/i386/pc/time.h: New file.
27584 * kern/disk.c: Include <pupa/machine/time.h>.
27585 (PUPA_CACHE_TIMEOUT): New macro.
27586 (pupa_last_time): New variable.
27587 (pupa_disk_open): Flush the cache when there was a timeout.
27588 (pupa_disk_close): Reset the timer.
27589 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27591 * util/misc.c: Include <sys/times.h>
27592 (pupa_get_rtc): New function.
27594 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27596 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27598 (pupa_ext2_get_file_block): Use blocks member.
27600 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27601 first block. Return -1 instead of pupa_errno on error.
27603 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27605 * README: In the pupa-mkimage example use _chain instead of chain
27606 and ext2 instead of fat.
27607 * TODO: Replace ext2fs with jfs as an example. Add an item for
27608 adding journal playback for ext2fs.
27609 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27610 (pkgdata_MODULES): Added ext2.mod.
27611 (ext2_mod_SOURCES): New variable.
27612 (ext2_mod_CFLAGS): Likewise.
27613 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27614 * include/pupa/misc.h (pupa_strncpy): New prototype.
27615 (pupa_strcat): Likewise.
27616 (pupa_strncmp): Likewise.
27617 * kern/misc.c (pupa_strcat): Enable function.
27618 (pupa_strncpy): New function.
27619 (pupa_strncmp): Likewise.
27620 * fs/ext2.c: New file.
27622 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27623 when the read failed before retrying.
27624 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27625 (_FILE_OFFSET_BITS): Likewise.
27626 * configure.ac: Added AC_SYS_LARGEFILE.
27628 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27630 * genmk.rb (PModule#rule): Make sure to get only symbol names
27631 from the output of nm.
27632 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27634 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27636 I forgot to check in these changes for a long time. This adds
27637 incomplete support for VGA console, and this is still very
27638 buggy. Also, a lot of consideration is required for I18N,
27639 UNICODE, and VGA font issues. Therefore, assume that this is
27640 such that "better than nothing".
27642 * font/manager.c: New file.
27643 * include/pupa/font.h: Likewise.
27644 * include/pupa/i386/pc/vga.h: Likewise.
27645 * term/i386/pc/vga.c: Likewise.
27646 * util/unifont2pff.rb: Likewise.
27648 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27649 (pkgdata_MODULES): Added vga.mod and font.mod.
27650 (vga_mod_SOURCES): New variables.
27651 (vga_mod_CFLAGS): Likewise.
27652 (font_mod_SOURCES): Likewise.
27653 (font_mod_CFLAGS): Likewise.
27655 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27657 * include/pupa/term.h: Include pupa/err.h.
27658 (struct pupa_term): Added init and fini.
27659 Changed the argument of putchar to pupa_uint32_t.
27661 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27662 (pupa_console_real_putchar): New prototype.
27663 (pupa_console_putchar): Removed.
27664 (pupa_console_checkkey): Exported.
27665 (pupa_console_getkey): Likewise.
27667 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27670 * kern/term.c (pupa_term_set_current): Rewritten.
27671 (pupa_putchar): Likewise.
27672 (pupa_putcode): New function.
27674 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27675 (pupa_console_real_putchar): ... this.
27676 (pupa_vga_set_mode): New function.
27677 (pupa_vga_get_font): Likewise.
27679 * normal/command.c: Include pupa/term.h.
27680 (terminal_command): New function.
27681 (pupa_command_init): Register the command "terminal".
27683 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27684 (DISP_UP): Likewise.
27685 (DISP_RIGHT): Likewise.
27686 (DISP_DOWN): Likewise.
27687 (DISP_HLINE): Likewise.
27688 (DISP_VLINE): Likewise.
27689 (DISP_UL): Likewise.
27690 (DISP_UR): Likewise.
27691 (DISP_LL): Likewise.
27692 (DISP_LR): Likewise.
27694 * term/i386/pc/console.c (pupa_console_putchar): New function.
27696 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27698 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27699 FIX. Reverse the path_list.
27701 * include/pupa/normal.h: Export pupa_register_command and
27702 pupa_unregister_command.
27704 * hello/hello.c (pupa_cmd_hello): New module.
27705 * conf/i386-pc.rmk: Added hello.mod.
27707 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27709 * kern/i386/pc/lzo1x.S: New file.
27711 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27712 (compress_kernel): New variable.
27713 (generate_image): Heavily modified to support compressing a
27714 large part of the core image.
27716 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27718 (pupa_util_load_image): New function.
27720 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27721 (pupa_compressed_size): New variable.
27722 (codestart): Enable Gate A20 here.
27723 Decompress the compressed part of the core image.
27724 Rearrange the code to put functions and variables which are
27725 required for initialization in the non-compressed part.
27728 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27731 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27733 * include/pupa/i386/pc/kernel.h
27734 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27735 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27736 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27737 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27738 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27740 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27742 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27743 (Utility#rule): Likewise.
27745 * configure.ac: Check if LZO is available.
27747 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27749 * include/pupa/normal.h: New file.
27750 * include/pupa/setjmp.h: Likewise.
27751 * include/pupa/i386/setjmp.h: Likewise.
27752 * normal/cmdline.c: Likewise.
27753 * normal/command.c: Likewise.
27754 * normal/main.c: Likewise.
27755 * normal/menu.c: Likewise.
27756 * normal/i386/setjmp.S: Likewise.
27758 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27759 (pupa_rescue_cmd_initrd): Likewise.
27761 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27764 * kern/i386/pc/startup.S (translation_table): New variable.
27765 (translate_keycode): New function.
27766 (pupa_console_getkey): Call translate_keycode.
27768 * kern/rescue.c (attempt_normal_mode): New function.
27769 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27770 it failed, print a message.
27772 * kern/mm.c (pupa_real_malloc): Print more information when a
27773 free magic is broken.
27774 (pupa_free): If the first free header is not free actually, set
27777 * kern/main.c (pupa_load_normal_mode): Just load the module
27779 (pupa_main): Don't print the message
27780 "Entering into rescue mode..." here.
27782 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27784 (pupa_rescue_cmd_initrd): Likewise.
27785 (pupa_rescue_cmd_initrd): Likewise.
27787 * include/pupa/symbol.h (FUNCTION): Specify the type.
27788 (VARIABLE): Likewise.
27790 * include/pupa/err.h (pupa_err_t): Added
27791 PUPA_ERR_UNKNOWN_COMMAND.
27793 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27794 (pupa_dl_get_prefix): Likewise.
27796 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27797 Added _chain.mod and _linux.mod instead of chain.mod and
27799 (chain_mod_SOURCES): Renamed to ...
27800 (_chain_mod_SOURCES): ... this.
27801 (chain_mod_CFLAGS): Renamed to ...
27802 (_chain_mod_CFLAGS): ... this.
27803 (linux_mod_SOURCES): Renamed to ...
27804 (_linux_mod_SOURCES): ... this.
27805 (linux_mod_CFLAGS): Renamed to ...
27806 (_linux_mod_CFLAGS): ... this.
27807 (normal_mod_SOURCES): New variable.
27808 (normal_mod_CFLAGS): Likewise.
27809 (normal_mod_ASFLAGS): Likewise.
27811 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27813 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27816 * kern/dl.c (pupa_dl_ref): Refer depending modules
27818 (pupa_dl_unref): Unrefer depending modules recursively.
27819 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27820 a module is unloaded before one depending on that module is
27822 (pupa_dl_unload): Unload depending modules explicitly,
27825 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27827 * include/pupa/i386/pc/linux.h: New file.
27828 * loader/i386/pc/linux.c: Likewise.
27830 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27832 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27833 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27834 of PUPA_CHAINLOADER_BOOT_SECTOR.
27836 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27837 (pupa_linux_prot_size): New variable.
27838 (pupa_linux_tmp_addr): Likewise.
27839 (pupa_linux_real_addr): Likewise.
27840 (pupa_linux_boot_zimage): New function.
27841 (pupa_linux_boot_bzimage): Likewise.
27843 * kern/i386/pc/init.c (struct mem_region): New structure.
27844 (MAX_REGIONS): New macro.
27845 (mem_regions): New variable.
27846 (num_regions): Likewise.
27847 (pupa_os_area_addr): Likewise.
27848 (pupa_os_area_size): Likewise.
27849 (pupa_lower_mem): Likewise.
27850 (pupa_upper_mem): Likewise.
27851 (add_mem_region): New function.
27852 (compact_mem_regions): Likewise.
27853 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27854 the size of the conventional memory and that of so-called upper
27855 memory (before the first memory hole).
27856 Instead of adding each found region to free memory, use
27857 add_mem_region and add them after removing overlaps.
27858 Also, add only 1/4 of the upper memory to free memory. The rest
27859 is used for loading OS images. Maybe this is ad hoc, but this
27860 makes it much easier to relocate OS images when booting.
27862 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27863 (pupa_enter_rescue_mode): Don't register initrd and module.
27865 * kern/mm.c: Include pupa/dl.h.
27867 * kern/main.c: Include pupa/file.h and pupa/device.h.
27869 * kern/loader.c (pupa_loader_load_module_func): Removed.
27870 (pupa_loader_load_module): Likewise.
27872 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27875 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27876 (pupa_linux_tmp_addr): Likewise.
27877 (pupa_linux_real_addr): Likewise.
27878 (pupa_linux_boot_zimage): Likewise.
27879 (pupa_linux_boot_bzimage): Likewise.
27881 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27882 (pupa_upper_mem): Likewise.
27883 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27884 module is too dangerous.
27886 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27887 (pupa_os_area_size): Likewise.
27888 (pupa_loader_set): Remove the first argument. Loader doesn't
27889 manage modules or initrd any longer.
27890 (pupa_loader_load_module): Removed.
27892 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27893 (linux_mod_SOURCES): New variable.
27894 (linux_mod_CFLAGS): Likewise.
27896 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27898 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27899 the length of a blocklist correctly.
27901 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27902 Use ioctl only if the OS file is a block device.
27903 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27904 not very useful for normal files.
27906 * kern/main.c (pupa_set_root_dev): New function.
27907 (pupa_load_normal_mode): Likewise.
27908 (pupa_main): Call those above.
27910 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27913 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27915 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27917 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27918 (setup): Configure the installed partition information and the
27921 * loader/i386/pc/chainloader.c (my_mod): New variable.
27922 (pupa_chainloader_unload): New function.
27923 (pupa_rescue_cmd_chainloader): Refer itself.
27924 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27926 * kern/i386/pc/startup.S (install_partition): Removed.
27927 (version_string): Likewise.
27928 (config_file): Likewise.
27929 (pupa_install_dos_part): New variable.
27930 (pupa_install_bsd_part): Likewise.
27931 (pupa_prefix): Likewise.
27932 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27934 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27936 (make_install_device): New function.
27937 (pupa_machine_init): Set the dl prefix.
27939 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27940 (buf): Renamed to ...
27941 (linebuf): ... this.
27942 (pupa_rescue_cmd_prefix): New function.
27943 (pupa_rescue_cmd_insmod): Likewise.
27944 (pupa_rescue_cmd_rmmod): Likewise.
27945 (pupa_rescue_cmd_lsmod): Likewise.
27946 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27949 * kern/mm.c (pupa_memalign): If failed even after invalidating
27950 disk caches, unload unneeded modules and retry.
27952 * kern/misc.c (pupa_memmove): New function.
27953 (pupa_memcpy): Removed.
27954 (pupa_strcpy): New function.
27955 (pupa_itoa): Made static.
27957 * kern/dl.c (pupa_dl_iterate): New function.
27958 (pupa_dl_ref): Likewise.
27959 (pupa_dl_unref): Likewise.
27960 (pupa_dl_unload): Return if succeeded or not.
27961 (pupa_dl_unload_unneeded): New function.
27962 (pupa_dl_unload_all): Likewise.
27963 (pupa_dl_init): Renamed to ...
27964 (pupa_dl_set_prefix): ... this.
27965 (pupa_dl_get_prefix): New function.
27967 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27968 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27969 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27970 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27971 (pupa_install_dos_part): Declared.
27972 (pupa_install_bsd_part): Likewise.
27973 (pupa_prefix): Likewise.
27974 (pupa_boot_drive): Likewise.
27976 * include/pupa/types.h: Fix a typo.
27978 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27980 (pupa_memmove): Declared.
27981 (pupa_strcpy): Likewise.
27983 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27984 pupa_mod_init takes one argument, its own module.
27985 (pupa_dl_unload_unneeded): Declared.
27986 (pupa_dl_unload_all): Likewise.
27987 (pupa_dl_ref): Likewise.
27988 (pupa_dl_unref): Likewise.
27989 (pupa_dl_iterate): Likewise.
27990 (pupa_dl_init): Renamed to ...
27991 (pupa_dl_set_prefix): ... this.
27992 (pupa_dl_get_prefix): Declared.
27994 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27995 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27997 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27998 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28000 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28001 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28003 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28005 * util/i386/pc/pupa-setup.c (setup): Define the internal
28006 function find_first_partition_start at the top level, because GCC
28007 3.0.x cannot compile internal functions in deeper scopes
28009 (find_root_device): Use lstat instead of stat.
28010 Don't follow symbolic links.
28011 Fix the path-constructing code.
28013 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28014 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28015 by a BLKGETSIZE ioctl first, because block devices don't fill
28016 the member st_mode of the structure stat on Linux.
28017 [__linux__] (linux_find_partition): Use a temporary buffer
28018 REAL_DEV for the working space. Copy it to DEV before returning.
28019 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28020 buffer cache consistent.
28021 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28022 strncmp. The previous value was merely wrong.
28023 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28025 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28026 FAT size is 12. The previous value was merely wrong.
28028 * kern/main.c (pupa_main): Don't split the starting message from
28031 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28032 LF, because BIOS goes crazy about character attributes in this
28035 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28037 * include/i386/pc/util/biosdisk.h: New file.
28038 * util/i386/pc/biosdisk.c: Likewise.
28039 * util/i386/pc/pupa-setup.c: Likewise.
28041 * Makefile.in (INCLUDE_DISTFILES): Added
28042 include/pupa/i386/pc/util/biosdisk.h.
28043 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28044 directory util/i386/pc.
28045 (install-local): Added a rule for sbin_UTILITIES.
28046 (uninstall): Likewise.
28048 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28050 * util/misc.c (xrealloc): New function.
28051 (pupa_malloc): Likewise.
28052 (pupa_free): Likewise.
28053 (pupa_realloc): Likewise.
28054 (pupa_stop): Likewise.
28055 (pupa_putchar): Likewise.
28057 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28059 * include/pupa/util/misc.h (xrealloc): Declared.
28061 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28063 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28064 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28066 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28067 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28069 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28070 way should be implemented.
28071 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28073 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28074 the size of NAME for safety.
28075 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28078 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28079 (pupa_setup_SOURCES): Likewise.
28081 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28083 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28085 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28086 bunch of pushl's from pusha, because this destroys the return
28089 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28091 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28092 This means that any missing prototypes could be fatal. Also, you
28093 must take care when writing assembly code. See the comments at
28094 the beginning of startup.S, for more details.
28096 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28097 compilation mechanism.
28098 (pupa_chainloader_real_boot): Likewise.
28099 (pupa_biosdisk_rw_int13_extensions): Likewise.
28100 (pupa_biosdisk_rw_standard): Likewise.
28101 (pupa_biosdisk_check_int13_extensions): Likewise.
28102 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28103 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28104 (pupa_get_memsize): Likewise.
28105 (pupa_get_mmap_entry): Likewise.
28106 (pupa_console_putchar): Likewise.
28107 (pupa_console_setcursor): Likewise.
28108 (pupa_getrtsecs): Use pushl instead of push.
28110 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28111 memory instead of the stack for a mmap entry, because some
28112 BIOSes may ignore the maximum size and overflow.
28114 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28116 * genmk.rb (PModule#rule): Compile automatically generated
28117 sources with module-specific CFLAGS as well as other sources.
28119 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28121 * configure.ac: Check ld.
28122 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28123 respectively, before checking endianness and sizes.
28125 * Makefile.in (LD): New variable.
28127 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28129 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28131 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28133 * Changelog: New file.