1 2011-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2 2011-06-07 Manoel Rebelo Abranches <mrabran@gmail.com>
4 Network infrastructure.
5 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
7 * include/grub/net/arp.h: New file.
8 * include/grub/net/ethernet.h: New file.
9 * include/grub/net/ip.h: New file.
10 * include/grub/net/netbuff.h: New file.
11 * include/grub/net/tftp.h: New file.
12 * include/grub/net/udp.h: New file.
13 * include/grub/net.h: New file.
14 * grub-core/net/arp.c: New file.
15 * grub-core/net/ethernet.c: New file.
16 * grub-core/net/ip.c: New file.
17 * grub-core/net/netbuff.c: New file.
18 * grub-core/net/net.c: New file.
19 * grub-core/net/drivers/emu/emunet.c: New file.
20 * grub-core/net/drivers/ieee1275/ofnet.c: New file.
21 * grub-core/kern/device.c (grub_net_open) : New function.
22 (grub_device_open) : Handle Network device.
23 * grub-core/kern/file.c (grub_file_net_seek) : New function.
24 (grub_file_net_seek): Seek in network device.
27 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
29 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
32 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
33 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
35 Don't stat devices unless we have to.
37 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
39 (grub_guess_root_device): Use already known os_dev if possible.
40 * grub-core/kern/emu/hostdisk.c
41 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
42 if device is known to be a dm one.
44 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
46 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
47 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
48 Reported by: Pawel Tecza.
50 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
52 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
53 (lsefisystab): Likewise.
55 (lsefimmap): Likewise.
56 (hdparm): Enable on qemu-mips.
57 (setjmp): Add ia64 nodist.
58 (serial): Simplify tags.
60 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
62 * Makefile.util.def (grub-ofpathname): Install manual page.
64 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
66 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
68 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
70 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
72 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
74 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
77 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
79 Use full 64-bit division.
81 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
82 (grub_divmod64): ... this.
83 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
86 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
88 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
91 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
93 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
94 to avoid accidents when debugging with 'sh -x'.
95 * grub-core/gensyminfo.sh.in: Likewise.
96 * tests/example_scripted_test.in: Likewise.
97 * tests/grub_cmd_regexp.in: Likewise.
98 * tests/grub_script_blanklines.in: Likewise.
99 * tests/grub_script_dollar.in: Likewise.
100 * tests/grub_script_expansion.in: Likewise.
101 * tests/grub_script_final_semicolon.in: Likewise.
102 * tests/partmap_test.in: Likewise.
103 * tests/util/grub-shell-tester.in: Likewise.
104 * tests/util/grub-shell.in: Likewise.
106 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
108 Move gfxmenu color handling to video, so that gfxterm can use it
111 * grub-core/gfxmenu/named_colors.c: Move to ...
112 * grub-core/video/colors.c: ... here. Rename
113 grub_gui_get_named_color to grub_video_get_named_color.
114 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
115 * grub-core/video/colors.c (my_isxdigit): ... here.
116 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
118 * grub-core/video/colors.c (parse_hex_color_component): ... here.
119 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
121 * grub-core/video/colors.c (grub_video_parse_color): ... here.
123 * include/grub/gui.h (grub_gui_color_t): Move to ...
124 * include/grub/video.h (grub_video_rgba_color_t): ... here.
125 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
126 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
127 * include/grub/gui.h (grub_gui_map_color): Move to ...
128 * include/grub/video.h (grub_video_map_rgba_color): ... here.
129 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
131 * include/grub/video.h (grub_video_get_named_color): ... here.
132 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
133 * include/grub/video.h (grub_video_parse_color): ... here.
135 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
137 (gfxmenu): Remove gfxmenu/named_colors.c.
138 (video) [videomodules]: Add video/colors.c.
140 Add a background_color command.
142 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
144 (GRUB_MOD_INIT): Register background_color command.
145 (GRUB_MOD_FINI): Unregister background_color command.
146 (redraw_screen_rect): Allow blend/replace of text layer to be
147 controlled independently from whether there is a background bitmap.
148 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
151 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
153 Patch BPB in ntldr and chainloader --bpb.
155 * grub-core/fs/fat.c: Include grub/fat.h.
156 (grub_fat_bpb): Moved to ...
157 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
158 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
160 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
162 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
164 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
166 (grub_chainloader_cmd): Patch BPB if --bpb is given.
167 (GRUB_MOD_INIT): Show --bpb.
168 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
169 * grub-core/normal/main.c (features): New variable.
170 (GRUB_MOD_INIT): Set feature_* variables.
171 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
173 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
175 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
177 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
180 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
182 FreeDOS direct loading support.
184 * docs/grub.texi (Supported OS): Add FreeDOS.
185 * grub-core/Makefile.core.def (freedos): New module.
186 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
188 (grub_relocator16_boot): Handle %ebx.
189 * grub-core/lib/i386/relocator16.S: Likewise.
190 * grub-core/loader/i386/pc/freedos.c: New file.
192 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
194 Long Linux command line support.
196 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
197 (maximal_cmdline_size): New variable.
198 (allocate_pages): Use maximal_cmdline_size.
199 (grub_cmd_linux): Set and use maximal_cmdline_size.
200 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
201 (allocate_pages): Use maximal_cmdline_size.
202 (grub_cmd_linux): Set and use maximal_cmdline_size.
203 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
204 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
207 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
208 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
210 Improve devmapper support
212 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
213 (grub_util_is_lvm): New function.
214 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
215 than lvm if not dmraid.
216 Handle mapped md nodes.
217 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
218 (grub_util_device_is_mapped): ... this. Make always available. All users
220 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
221 (convert_system_partition_to_system_disk): Handle lvm, mpath and
223 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
225 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
227 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
229 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
230 * grub-core/modinfo.sh.in: New file.
231 * grub-core/Makefile.core.def (modinfo.sh): New script.
232 * util/grub-mknetdir.in: Use modinfo.sh.
233 * util/grub-mkrescue.in: Likewise.
235 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
237 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
238 Fix potential usage of Elf32 instead of Elf64 when compiling on
239 32-bit architecture. Add endianness macros while on it.
241 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
243 Use mipsel- rather than mips- in directories involving mipsel ports to
244 allow both endiannesses coexist.
246 * configure.ac: proparate target_cpu=mipsel rather than resetting to
247 mips. All conditions adjusted.
248 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
250 * util/grub-install.in: Adjust conditions to take renaming into account.
251 * util/grub-mkimage.c (image_targets): Likewise. New target
252 mips-qemu_mips-elf for bigendian mips.
254 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
256 Avoid unnecessary copying on MIPS.
258 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
259 early if src == dest.
260 * util/grub-mkimage.c (generate_image): Arange for src == dest if
263 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
265 Reduce memory footprint on SGI by putting modules before the kernel
268 * grub-core/Makefile.core.def (kernel): Increase linking address.
269 (none_decompress): Likewise.
270 (xz_decompress): Likewise.
271 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
273 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
275 (grub_arch_modules_addr): New function.
276 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
277 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
278 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
280 * grub-core/kern/mips/startup.S (total_size): Rename to ...
281 (grub_total_modules_size): ... this. Make global.
282 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
283 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
285 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
286 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
287 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
288 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
289 * util/grub-mkimage.c (image_target_desc): New flag
290 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
291 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
292 (generate_image): Handle images with modules before kernel.
294 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
296 Prevent potential loss of memory map by overwrite on qemu-mips.
298 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
299 Save ram size in $s4.
300 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
301 All users changed to grub_arch_memsize.
302 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
304 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
305 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
306 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
309 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
311 * .bzrignore: Remove grub-dumpbios.
313 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
315 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
316 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
317 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
318 existing options which append).
319 * docs/grub.texi (Simple configuration): Document new options.
320 Reported by: Ian Jackson. Fixes Debian bug #617538.
322 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
324 * util/grub-fstest.c (cmd_cat): New function.
325 (fstest): Handle CMD_CAT.
327 (argp_parser): Handle cat.
329 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
331 * Makefile.util.def (grub-bin2h): Don't install.
332 * docs/man/grub-bin2h.h2m: Remove.
334 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
336 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
339 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
341 Reenable qemu-mips port.
343 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
344 Fix small arc bug while on it.
345 * gentpl.py: Handle qemu_mips.
346 * grub-core/Makefile.am: Likewise.
347 * grub-core/Makefile.core.def: Likewise.
348 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
349 inappropriate includes.
350 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
351 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
352 * grub-core/kern/main.c (grub_modules_get_end)
353 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
354 * grub-core/kern/mips/qemu-mips: Moved to ..
355 * grub-core/kern/mips/qemu_mips: ... this.
356 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
357 (grub_machine_init): Call terminfo_init and serial_init.
358 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
359 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
361 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
363 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
364 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
365 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
366 * include/grub/mips/qemu_mips/cmos.h: New file.
367 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
368 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
370 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
371 Use correct mips-style address.
372 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
373 (GRUB_TICKS_PER_SECOND): Removed.
374 (grub_get_rtc): Likewise.
375 (grub_cpu_idle): Likewise.
376 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
378 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
379 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
380 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
381 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
382 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
383 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
384 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
385 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
387 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
391 * Makefile.util.def (libgrubmods.a): Add dvh.c.
392 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
394 * configure.ac: New target mips-arc.
395 * gentpl.py: Likewise.
396 * grub-core/Makefile.am: Likewise.
397 * grub-core/Makefile.core.def: Likewise.
398 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
399 (none_decompress): Likewise.
401 (datetime): Use lib/arc/datetime.c on ARC.
402 (part_dvh): New module.
403 * grub-core/commands/arc/lsdev.c: New file.
404 * grub-core/disk/arc/arcdisk.c: Likewise.
405 * grub-core/kern/mips/arc/init.c: Likewise.
406 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
408 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
410 (grub_arch_dl_relocate_symbols): Likewise.
411 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
412 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
413 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
415 * grub-core/lib/arc/datetime.c: New file.
416 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
417 pci.h on non-loongson.
418 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
419 (grub_linux_boot): Set unused registers to 0.
420 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
421 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
422 * grub-core/mmap/mips/uppermem.c: ...here.
423 * grub-core/partmap/dvh.c: New file.
424 * grub-core/term/arc/console.c: Likewise.
425 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
426 (grub_terminfo_set_current): Add terminal "arc".
427 (grub_terminfo_readkey): Support ARC sequences.
428 * include/grub/arc/arc.h: New file.
429 * include/grub/arc/console.h: Likewise.
430 * include/grub/disk.h (grub_disk_dev_id): Add
431 GRUB_DISK_DEVICE_ARCDISK_ID.
432 * include/grub/mips/arc/kernel.h: New file.
433 * include/grub/mips/arc/memory.h: Likewise.
434 * include/grub/mips/arc/time.h: Likewise.
435 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
436 * include/grub/mips/kernel.h (grub_halt): ... here.
437 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
439 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
440 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
441 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
442 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
444 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
446 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
447 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
448 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
449 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
450 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
451 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
452 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
453 (grub_phys_addr_t): Moved from here ...
454 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
455 (grub_vtop): Moved from here ...
456 * include/grub/mips/memory.h (grub_vtop): ... here.
457 (grub_map_memory): Moved from here ...
458 * include/grub/mips/memory.h (grub_map_memory): ... here.
459 (grub_unmap_memory): Moved from here ...
460 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
461 (grub_machine_mmap_iterate): Moved from here ...
462 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
463 (grub_mmap_get_lower): Moved from here ...
464 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
465 (grub_mmap_get_upper): Moved from here ...
466 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
467 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
469 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
470 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
472 * include/grub/mips/time.h (grub_get_rtc): ... here.
473 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
475 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
476 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
478 * include/grub/mips/time.h (grub_cpu_idle): ... here.
479 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
481 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
482 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
483 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
484 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
485 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
486 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
487 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
488 (GRUB_MACHINE_LINK_ADDR): Likewise.
489 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
491 * util/grub-install.in: Run dvhtool on ARC.
492 * util/grub-mkimage.c (image_targets): Add mips-arc.
493 (generate_image): Handle ECOFF output for mips-arc.
495 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
497 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
500 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
502 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
505 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
507 Skip incorrect USB devices.
509 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
511 * include/grub/usb.h (grub_usb_err_t): New enum value
512 GRUB_USB_ERR_BADDEVICE.
514 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
516 Fuloong video init support.
518 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
520 (grub_vga_read_arx): New function.
521 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
523 (framebuffer): New members io, mmioptr and mmiobase.
524 (read_sis_cmd): New function.
525 (write_sis_cmd): Likewise.
526 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
528 * grub-core/video/sis315_init.c: New file.
530 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
532 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
534 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
535 to grub_dl_register_symbol.
537 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
539 Fix compilation errors.
541 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
543 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
544 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
545 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
546 to loongson machines.
548 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
550 Several FS mtime support.
552 * grub-core/fs/affs.c (grub_affs_time): New struct.
553 (grub_affs_file): New field mtime.
554 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
555 type. Removed 'size'. New field 'di'. All users updated.
556 (grub_affs_mount): Simplify checsum checking.
557 (grub_affs_iterate_dir): New helper grub_affs_create_node.
558 (grub_affs_dir): Handle mtime.
559 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
560 (grub_cpio_dir): Likewise.
561 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
562 (grub_hfs_filerec): New field mtime.
563 (grub_hfs_dir): Handle mtime.
564 (grub_hfs_mtime): New function.
565 (grub_hfs_fs): Register grub_hfs_mtime.
566 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
567 (grub_iso9660_dir): New field mtime.
568 (grub_fshelp_node): New field dirent.
569 (iso9660_to_unixtime): New function.
570 (iso9660_to_unixtime2): Likewise.
571 (grub_iso9660_read_symlink): Use node->dirent.
572 (grub_iso9660_iterate_dir): Likewise.
573 (grub_iso9660_dir): Set mtime.
574 (grub_iso9660_mtime): New function.
575 (grub_iso9660_fs): Register grub_iso9660_mtime.
576 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
577 (grub_jfs_inode): New fields atime, ctime and mtime.
578 (grub_jfs_dir): Set mtime.
579 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
580 * grub-core/fs/ntfs.c (list_file): Set mtime.
581 (grub_ntfs_dir): Likewise.
582 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
583 (grub_reiserfs_iterate_dir): Set mtime.
584 (grub_reiserfs_dir): Likewise.
585 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
586 (grub_fshelp_node): Likewise.
587 (grub_sfs_iterate_dir): Set mtime.
588 (grub_sfs_dir): Likewise.
589 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
590 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
591 (grub_xfs_inode): New fields atime, mtime, ctime.
592 (grub_xfs_dir): Set mtime.
593 * include/grub/datetime.h (grub_datetime2unixtime): New function.
594 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
595 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
597 Support UDF symlinks.
599 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
600 (grub_ufs_read_symlink): New function. All users updated.
602 Check amiga partmap checksum.
604 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
605 (grub_amiga_partition): Likewise.
606 (amiga_partition_map_checksum): New function.
607 (amiga_partition_map_iterate): Check checksum.
609 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
613 * Makefile.util.def (libgrubmods.a): Add romfs.
614 * grub-core/Makefile.core.def (romfs): New module.
615 * grub-core/fs/romfs.c: New file.
617 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
621 * Makefile.util.def (libgrubmods.a): Add squash4.
622 * grub-core/Makefile.core.def (squash4): New module.
623 * grub-core/fs/squash4.c: New file.
624 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
625 disk_input_start, disk_input.
626 (get_byte): Handle disk_input.
627 (grub_zlib_disk_read): New function.
628 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
630 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
631 2011-05-15 Feiran Zheng <famcool@gmail.com>
633 * Makefile.util.def (libgrubmods.a): Add minix3.
634 * grub-core/Makefile.core.def (minix3): New module.
635 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
636 (GRUB_MINIX_BSIZE): Removed.
637 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
638 (grub_minix_ino_t): New type.
639 (grub_minix_le_to_cpu_ino): New macro.
640 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
641 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
642 (grub_minix_data): New field block_size.
643 (grub_minix_read_file): Handle 64-bit correctly.
644 * grub-core/fs/minix3.c: New file.
646 2011-05-15 Tristan Gingold <gingold@free.fr>
647 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
648 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
652 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
653 * configure.ac: Add ia64-efi target.
654 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
655 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
656 * gentpl.py: Add ia64_efi platform.
657 Rename x86_efi to efi and Add ia64-efi. All users updated.
658 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
659 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
660 Remove kern/generic/rtc_get_time_ms.c on EFI.
661 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
662 kern/ia64/dl_helper.c on ia64-efi.
663 Add kern/emu/cache.c on emu.
664 (linux): Use on loader/ia64/efi/linux.c on ia64.
665 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
666 whether symbol is a function.
667 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
668 (grub_symbol): New field 'isfunc'.
669 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
670 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
671 (grub_dl_load_segments): Place all sections into the same region.
672 [__ia64__]: Create trampolines and got.
673 [GRUB_MACHINE_EMU]: Call mprotect.
674 (grub_dl_resolve_symbols): Resolve symbol type as well.
675 [__ia64__]: Create function descriptors.
676 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
677 (grub_rtc_get_time_ms): ... this. Expressions simplified.
678 (grub_get_rtc): New function.
679 * grub-core/kern/emu/cache.c [__ia64__]: New file.
680 * grub-core/kern/emu/cache.S: Renamed to ...
681 * grub-core/kern/emu/cache_s.S: ... this.
682 [__ia64__]: Add a nop.
683 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
684 [__ia64__]: New function.
685 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
686 * grub-core/kern/ia64/dl.c: New file.
687 * grub-core/kern/ia64/dl_helper.c: Likewise.
688 * grub-core/kern/ia64/efi/init.c: New file.
689 * grub-core/kern/ia64/efi/startup.S: Likewise.
690 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
691 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
692 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
693 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
694 * grub-core/loader/ia64/efi/linux.c: New file.
695 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
696 (GRUB_MOD_DEP): Likewise.
697 (grub_dl) [__ia64__]: New fields got and tramp.
698 (grub_dl): New field 'base'.
699 (grub_dl_register_symbol): New argument isfunc. All users updated.
700 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
701 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
702 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
703 (grub_ia64_dl_get_tramp_got_size): New proto.
704 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
705 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
706 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
707 * include/grub/efi/api.h: Skip call wrappers on ia64.
708 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
709 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
710 * include/grub/elf.h (ELF_ST_INFO): New definition.
711 * include/grub/ia64/efi/kernel.h: New file.
712 * include/grub/ia64/efi/memory.h: Likewise.
713 * include/grub/ia64/efi/time.h: Likewise.
714 * include/grub/ia64/kernel.h: Likewise.
715 * include/grub/ia64/setjmp.h: Likewise (from glibc).
716 * include/grub/ia64/time.h: New file.
717 * include/grub/ia64/types.h: Likewise.
718 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
719 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
721 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
722 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
723 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
724 * util/grub-mkimage.c (image_target_desc): New field pe_target.
726 (EFI64_HEADER_SIZE): New definition. All users updated.
727 (image_targets): Add ia64-efi.
728 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
729 jumpers_addr. All users updated.
730 Create function descriptors.
731 (count_funcs): New function.
732 (unaligned_uint32): New struct.
733 (MASK20): New definition.
736 (add_value_to_slot_20b): New function.
737 (add_value_to_slot_21_real): Likewise.
738 (add_value_to_slot_21): Likewise.
739 (ia64_kernel_trampoline): New struct.
740 (nopm): New variable.
742 (make_trampoline): New function.
743 (relocate_addresses): Handle ia64.
744 (make_reloc_section): Likewise.
745 (load_image): Likewise.
747 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
749 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
750 warning. Move variables before code while on it.
752 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
756 * configure.ac: Rename yeeloong platform to loongson. All users updated.
757 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
758 * grub-core/boot/mips/loongson/fuloong.S: New file.
759 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
760 Explicitly init CS5536.
761 [FULOONG]: Don't use serial until CS5536 is available.
762 Set GPIO based on dumps.
763 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
764 [FULOONG]: Handle GPIO and memory controller differences.
765 Parse machine type in $a2.
766 * grub-core/boot/mips/startup_raw.S: Determine and save the
768 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
769 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
770 init on architecture type.
771 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
772 SIS315E. Don't init at_keyboard on fuloong.
773 (grub_halt): Support Fuloong.
774 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
775 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
776 (loongson_machtypes): New array.
777 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
779 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
780 config. All users updated. Handle CS5536 serial.
781 * grub-core/term/serial.c (grub_serial_register): Conditionalise
782 default port on machine type. Register serial as inactive.
783 * grub-core/video/sis315pro.c: New file.
784 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
786 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
787 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
788 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
789 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
790 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
791 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
793 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
794 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
796 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
797 (grub_arch_machine): New extern var.
798 * include/grub/mips/loongson/serial.h
799 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
800 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
801 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
802 (GRUB_MACHINE_SERIAL_PORT0): ... this.
803 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
804 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
805 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
806 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
807 * include/grub/term.h (grub_term_register_input_inactive): New inline
809 (grub_term_register_output_inactive): Likewise.
810 * include/grub/video.h (grub_video_driver_id): New value
811 GRUB_VIDEO_DRIVER_SIS315PRO.
812 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
813 New field "names". All users updated.
814 New field value IMAGE_FULOONG_FLASH.
815 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
817 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
819 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
820 and add some clarification.
822 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
824 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
825 platforms if kernel is compressed.
827 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
829 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
830 unused modules since currently referrence counter isn't reliable and
831 there isn't much memory to recover there anyway.
833 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
835 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
836 rather than resetting it to allow modules to reference themselves
839 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
841 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
842 counter on dependencies since grub_dl_unref already handles this.
844 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
846 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
847 on error if not already done.
849 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
851 Fix few potential memory misusage.
853 * grub-core/font/font.c (load_font_index): Don't free char_index to
855 (grub_font_load): Zero-fill font at alloc for safety.
857 (free_font): Free bmp_idx.
859 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
861 * docs/grub.texi (Installation): Fix several outdated claims.
863 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
865 Handle module_license on windows.
867 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
869 (insert_string): Make argument const char * instead of char *.
870 (write_section_data): Handle long section names.
871 Handle module_license.
873 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
875 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
876 handle class-free menuentries.
877 (grub_normal_add_menu_entry): Add a check to be sure.
879 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
881 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
884 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
886 * configure.ac: Bump version to 1.99.
888 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
890 Give ATA device a bit more time on first try in order to allow disks
893 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
894 if dev->present is 1. Reset dev->present on failure.
895 (grub_ata_device_initialize): Set dev->present to 1.
896 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
897 (grub_ata_device): New member 'present'.
899 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
901 * util/grub-mkimage.c (generate_image): Update hash.
903 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
905 Flush caches on DMA memory.
907 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
908 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
909 (grub_dma_free): Likewise.
910 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
912 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
914 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
915 to avoid asm treating ld and sd as macros.
917 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
919 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
922 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
924 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
925 grub_decompress_core since later would fail if grub_decompress_core
928 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
930 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
931 R_MIPS_JALR since it's used by newer compiler.
933 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
935 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
937 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
939 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
940 file_path to 0 for surety.
941 (grub_chainloader_boot): Set exit_data to NULL.
942 Unset the loader once done.
943 (grub_cmd_chainloader): Fix confusing error message if file is empty.
945 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
947 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
948 unknown key into a dprintf.
950 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
952 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
953 on first non-existant partition.
955 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
957 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
959 Reported by: Mark Korenberg.
961 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
963 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
966 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
968 * util/grub-mkimage.c (main): Explicitely flush and sync the output
969 before closing to ensure that it will be readable by grub-setup.
971 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
973 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
974 (devpath_1): Use MAKE_PIWG_PATH.
975 (devpath_2): Likewise.
976 (devpath_3): Likewise.
977 (devpath_4): Likewise.
978 (devpath_5): Likewise.
979 (devpath_6): Likewise.
981 The appleldr.mod was checked that to be binary identical to previous
984 2011-05-05 Zach <mikezackles>
986 Support 2010 Macbooks.
988 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
989 (devs): Add devpath_6.
991 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
993 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
994 /dev/random. /dev/urandom is good enough for our purposes (salting).
996 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
998 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
1000 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1002 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
1005 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1007 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
1008 and not 0 on failure.
1010 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
1012 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
1013 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
1014 disk; otherwise grub_fs_probe will not fall back to the next
1016 (grub_pxefs_open): Likewise, for consistency.
1017 Reported and tested by: Ezekiel Grave.
1019 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
1021 * tests/partmap_test.in: Don't hardcode path to parted.
1022 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
1024 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
1026 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
1027 of `ls' to find out which devices are available.
1029 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1031 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
1032 than source address for efi mmap buffer.
1034 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1036 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
1037 wrong action on non-detecting the magic.
1039 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1041 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
1042 already supplied by another part of the module (fixes compilation on
1045 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1047 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
1048 match the one used by mdadm.
1050 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1052 * po/README: Add instructions for creating po/LINGUAS.
1054 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1056 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
1059 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
1060 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
1061 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
1062 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1063 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
1064 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
1065 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
1066 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
1067 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
1068 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1069 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
1070 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
1071 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
1072 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
1073 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
1074 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
1075 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
1076 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
1077 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
1078 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
1079 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
1080 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
1082 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1084 * grub-core/kern/emu/getroot.c
1085 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
1086 test that was incorrectly reintroduced in r3214.
1087 Reported by: Ian Dall. Fixes Savannah bug #33133.
1089 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1091 Fix stack pointer handling in 16-bit relocator.
1093 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
1094 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
1095 Fixes Ubuntu bug #683904.
1097 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1099 * configure.ac: Bump version to 1.99~rc2.
1101 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1103 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
1104 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
1105 * grub-core/lib/x86_64/setjmp.S: Likewise.
1106 * grub-core/lib/mips/setjmp.S: Likewise.
1107 * grub-core/lib/powerpc/setjmp.S: Likewise.
1108 * grub-core/lib/sparc64/setjmp.S: Likewise.
1110 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1112 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
1113 * grub-core/lib/efi/datetime.c: Likewise.
1115 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1117 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
1119 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
1120 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
1121 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
1123 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1125 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
1127 (grub_gfxterm_term_init): Likewise.
1129 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1131 Take into account the decorations the computing menu entry width.
1133 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
1134 (grub_gfxmenu_create_box): Register get_border_width.
1135 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
1137 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
1140 2011-04-18 Endres Puschner <code@e7p.de>
1142 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
1143 Don't skip first class.
1145 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1147 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
1149 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
1151 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1153 Complete 64-bit division support.
1155 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
1156 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
1157 * include/grub/misc.h (grub_divmod64): Rename to ...
1158 (grub_divmod64_full): ... this.
1159 (grub_divmod64): New inline function.
1161 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1163 * util/grub-mkimage.c (generate_image): Add forgotten comma.
1165 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1167 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
1168 performing the necessary test.
1170 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1172 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
1173 (kfreebsd.elf): Likewise.
1174 (pc-chainloader.elf): Likewise.
1175 (ntldr.elf): Likewise.
1177 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1179 Identify RAID by its UUID rather than (guessed) name.
1181 * grub-core/disk/raid.c (ascii2hex): New function.
1182 (grub_raid_open): Accept mduuid/%s specification.
1183 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
1184 (get_mdadm_uuid): ... this.
1185 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
1187 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
1189 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
1192 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1194 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
1196 * util/grub.d/20_linux_xen.in: Likewise.
1198 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1200 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
1201 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
1203 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1204 Build a list of relevant visible mounts using the mnt_id and
1205 parent_mnt_id fields, and then scan that list at the end.
1207 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1209 * docs/grub.texi (normal): New section.
1210 (normal_exit): New section.
1211 (Embedded configuration): Add reference to normal.
1212 (GRUB only offers a rescue shell): Likewise.
1213 * docs/grub-dev.texi (Error Handling): Fix typo.
1215 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1217 * NEWS: Drop obsolete entry about probe-only btrfs support.
1219 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1221 * util/import_gcry.py: Fix typo.
1223 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1225 * NEWS: Add btrfs support.
1227 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1228 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1230 BtrFS support. Written by me (Vladimir) with important bugfixes and
1231 even more important testing by Colin.
1233 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
1234 * grub-core/Makefile.core.def (btrfs): Add crc.c.
1235 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
1236 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
1237 mem_input_off and mem_input. All users updated to accept in-RAM input.
1238 (gzio_seek): New function.
1239 (test_zlib_header): Likewise.
1240 (grub_gzio_read): Likewise.
1241 (grub_zlib_decompress): Likewise.
1242 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
1243 Accept partial and non-virtual mounts.
1244 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
1245 avoid receiving /dev/dm-X as device.
1246 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
1247 Handle bind and partial mounts.
1248 * grub-core/lib/crc.c: New file.
1249 * include/grub/deflate.h: Likewise.
1250 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
1252 * include/grub/lib/crc.h: New file.
1254 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1256 Implement automatic module license checking according to new GNU
1259 * grub-core/kern/dl.c (grub_dl_check_license): New function.
1260 (grub_dl_load_core): Use grub_dl_check_license.
1261 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
1262 (GRUB_MOD_LICENSE): Likewise.
1263 (GRUB_MOD_DUAL_LICENSE): Likewise.
1264 All modules updated.
1266 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1268 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
1269 reserved_first_sector to 1. btrfs reserves plenty of space for boot
1271 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
1273 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1275 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
1277 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1279 * util/grub-fstest.c (read_file): Report GRUB error if file opening
1282 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1284 * grub-core/kern/file.c (grub_file_open): Don't take into account the
1285 parenthesis in the middle of the filename.
1287 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1289 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
1290 rather than trying to put initrd way too high.
1291 Reported by: Ryan Lortie <desrt@desrt.ca>
1293 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1295 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
1296 improperly removed string.
1298 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1300 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
1302 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
1303 (open_device) Likewise.
1304 (grub_util_biosdisk_close): Likewise.
1305 Reported by: Mark Korenberg.
1307 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
1309 * util/grub-mkconfig_lib.in: Add missing quotes.
1311 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
1313 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
1316 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1318 Dynamically count the number of lines for the lower banner.
1320 * grub-core/normal/menu_entry.c (per_term_screen): New member
1322 (print_down): Use num_entries.
1323 (update_screen): Likewise.
1324 (grub_menu_entry_run): Set num_entries.
1325 * grub-core/normal/menu_text.c (menu_viewer_data): New member
1327 (grub_print_message_indented): Move real part to ...
1328 (grub_print_message_indented_real): ... here. Additional argument
1330 (draw_border): Additional argument num_entries.
1331 (print_message): Additional argument dry_run.
1332 (print_entries): Receive menu viewer data.
1333 (grub_menu_init_page): New argment num_entries.
1334 (menu_text_set_chosen_entry): Use num_entries.
1335 (grub_menu_try_text): Likewise.
1336 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
1338 (grub_ucs4_count_lines): New function.
1339 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
1340 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
1341 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
1342 (grub_term_border_height): Likewise.
1343 (grub_term_num_entries): Likewise.
1345 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1347 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
1348 Remove now unused string.
1350 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
1352 * docs/grub-dev.texi (Finding your way around): Update for 1.99
1354 (Getting started): GRUB is developed in Bazaar now, not Subversion.
1356 (Comment): Fix typo.
1357 (Getting started): General copy-editing.
1358 (Typical Development Experience): Likewise.
1359 (Error Handling): Likewise.
1360 (Video API): Likewise.
1362 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
1364 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
1367 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1369 * util/grub-mkimage.c (main): Handle special naming of yeeloong
1372 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
1374 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
1375 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
1378 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1380 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
1381 grub_strcpy since the lines aren't necessarily 0-terminated.
1383 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1385 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
1388 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1390 * grub-core/commands/probe.c (options): Argument to set isn't optional.
1391 (GRUB_MOD_INIT): DEVICE isn't optional.
1393 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1395 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
1396 word on new line if it's too long anyway. Fixes a hang.
1398 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1400 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
1402 * util/grub-setup.c (main): Reuse md device name if available.
1403 * util/raid.c (grub_util_raid_getmembers): Receive device name and
1404 not GRUB name as argument.
1405 Based on patch by: Florian Wagner <fwagner>.
1407 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1409 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
1410 Place mbi on low memory for better compatibility.
1412 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1414 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
1416 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1417 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
1419 * autogen.sh: Ensure that collate and ctype locale is C.
1420 * conf/Makefile.common: Likewise.
1422 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1424 * grub-core/normal/menu.c: Add missing include.
1426 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1428 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
1430 2011-04-08 Martin Zuther <mzuther@mzuther.de>
1432 * util/grub-mkconfig.in: Ignore emacsen backup.
1434 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1436 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
1438 (grub_util_biosdisk_close): Likewise.
1440 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1442 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
1443 const attribute and use grub_isdigit.
1445 2011-04-06 Andrey <dev_null@ukr.net>
1447 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
1450 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1452 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
1453 useful grub_dprintf's.
1455 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1457 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
1459 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1461 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
1463 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1465 Output errors if theme loading failed.
1467 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
1468 grub_gfxterm_fullscreen on error paths to ...
1469 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
1470 theme loading error.
1472 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1474 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
1475 space for older compilers.
1476 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1478 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1480 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
1481 and report them as not RAID members since they are useless for GRUB.
1482 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1484 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1486 Increase LVM implementation robustness in order not to crash on
1487 configurations like pvmove. Previously code assumed that in some places
1488 only lvs or only pvs are used whereas it seems that they are used
1491 * grub-core/disk/lvm.c (read_node): New function.
1492 (read_lv): Use read_node.
1493 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
1494 Match volumes only at the end when all lvs are found. Take both
1495 pvs (first) and lvs (second) into account.
1496 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
1497 mirror_* into node_*. All users updated.
1498 (grub_lvm_stripe): Merge this ...
1499 (grub_lvm_mirror): ... and this ...
1500 (grub_lvm_node): ... into this. All users updated.
1502 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1504 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
1505 of function to allow further scanning for LVMs.
1507 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1509 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
1510 on failed seek as it breaks open fd reusage.
1512 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1514 * util/grub-install.in: Add a recommendation to use --recheck before
1517 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1519 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
1522 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1524 GRUB developper manual based on existing Internals section and
1525 contributions by the various authors with active copyright assignment.
1527 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
1528 * docs/font_char_metrics.png: New file.
1529 * docs/font_char_metrics.txt: Likewise.
1530 * docs/grub-dev.texi: Likewise.
1531 * docs/grub.texi (Internals): Move from here ...
1532 * docs/grub-dev.texi: ... here.
1534 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1536 Store the loopback device as data on loopback grub_disk structures,
1537 rather than the file it points to. This fixes use of freed memory
1538 if an existing loopback device is replaced.
1540 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
1541 disk->data, not dev->file.
1542 (grub_loopback_read): Adjust file assignment to match.
1543 Fixes Ubuntu bug #742967.
1545 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1547 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
1548 when replacing an existing device.
1550 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
1552 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
1555 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
1557 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
1558 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
1559 (grub_jfs_read_inode): Likewise.
1560 (grub_jfs_opendir): Likewise. Remove now useless casts.
1561 (grub_jfs_getent): Likewise.
1562 Make ino a grub_uint32_t rather than int.
1563 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
1564 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
1565 division and module with bit operations.
1566 (grub_jfs_find_file): Make ino a grub_uint32_t.
1567 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
1569 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1571 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
1572 warning. (This was in fact always initialised before use, but GCC
1573 wasn't smart enough to prove that.)
1574 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
1576 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1578 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
1580 (efi_wrap_1): Likewise.
1581 (efi_wrap_2): Likewise.
1582 (efi_wrap_3): Likewise.
1583 (efi_wrap_4): Likewise.
1584 (efi_wrap_5): Likewise.
1585 (efi_wrap_6): Likewise.
1586 (efi_wrap_10): Likewise.
1587 Based on information by: Red Hat/Peter Jones.
1589 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
1591 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
1592 set-but-not-used variable.
1594 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
1596 * docs/grub.texi (Simple configuration): Be more explicit about
1597 GRUB_DEFAULT, and add an example.
1598 Reported by: Leslie Rhorer.
1600 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1602 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
1605 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1607 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
1608 * util/grub.d/20_linux_xen.in: Likewise.
1610 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1612 * util/grub.d/10_linux.in: Try alternative config filenames where
1613 we parse config file.
1614 * util/grub.d/20_linux_xen.in: Likewise.
1616 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1618 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
1619 * util/grub.d/20_linux_xen.in: Likewise.
1621 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1623 * grub-core/disk/raid.c (insert_array): Add few potentially
1624 useful grub_util_info.
1625 (grub_raid_register): Likewise.
1627 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1629 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
1630 Preserve partition number in mdadm code path.
1632 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1634 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
1635 few potentially useful grub_util_info.
1637 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1639 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
1641 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1643 * docs/grub.texi (default): Use @example rather than nested
1644 itemized lists to avoid breaking gendocs.
1646 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1648 * docs/grub.texi (Future): Update.
1650 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1652 * docs/grub.texi (Environment): New chapter.
1653 (Changes from GRUB Legacy): Link to "Environment block" section for
1654 details of limitations.
1655 (Simple configuration): Likewise. Link to documentation of gfxmode
1656 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
1658 (Shell-like scripting): Note that normal variables are stored in the
1660 (gettext): Link to documentation of lang and locale_dir.
1661 (list_env): New section.
1662 (load_env): New section.
1663 (save_env): New section.
1665 (Reporting bugs): Fix typo.
1667 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1669 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
1672 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1674 * grub-core/term/at_keyboard.c (set_scancodes)
1675 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
1677 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1679 * docs/grub.texi (Menu-specific commands): Remove some semantics
1680 that were true in GRUB Legacy but not in GRUB 2.
1681 (submenu): New section.
1682 (false): New section.
1683 (read): New section.
1684 (true): New section.
1686 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1688 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
1690 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1692 * docs/grub.texi (Simple configuration): Explain some of the
1693 current limitations of grub-mkconfig.
1694 Reported by: Leslie Rhorer.
1696 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1698 Old macs search for boot.efi rather than for bootia32.efi.
1700 * util/grub-install.in: Copy bootia32.efi to boot.efi.
1701 * util/grub-mkrescue.in: Likewise.
1702 Suggested by: Peter Jones.
1704 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1706 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
1708 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1710 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
1711 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
1712 (grub_lvm_mirror): New struct.
1713 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
1714 (grub_lvm_iterate): Iterate only visible volumes.
1715 (grub_lvm_read): Factor out to ..
1716 (read_lv): ... this. Support mirrors.
1717 (grub_lvm_read): New wrapper function.
1718 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
1719 stripped or mirrored.
1721 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1723 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
1725 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1727 * docs/grub.texi (loopback): New section.
1729 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1731 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
1734 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1736 * docs/grub.texi (BIOS installation): New section, partly based on
1737 previous text in other sections.
1738 (Installing GRUB using grub-install): Replace BIOS discussion with a
1742 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1744 * grub-core/kern/emu/hostdisk.c (find_partition_start)
1745 [HAVE_DIOCGDINFO]: Add safety checks.
1747 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1749 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
1750 per default compiled in kernel and prior to 8.0 isn't shipped at all.
1752 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1754 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
1755 real_sb->size is zero (e.g. RAID-0), get the disk size from
1756 real_sb->data_size instead.
1757 Fixes Ubuntu bug #743136.
1759 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1761 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
1762 printf clauses for printing size and start.
1764 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1766 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
1767 Reported and tested by: Timothy Nikkel.
1769 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1771 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
1772 (dirty_region_add_real): ... this.
1773 (dirty_region_add): Don't discard margin refresh when performing
1776 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1778 * grub-core/lib/relocator.c (allocate_regstart)
1779 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
1780 terminals are capabple of malloc-free operation.
1781 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1782 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1784 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
1786 * util/grub-setup.c: Copy the partition table zone if floppy support
1787 is disabled, even if no partition table is found.
1789 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
1790 during POST if an invalid partition table is contained in the PBR
1791 of the active partition when GRUB is installed to a partition.
1793 2011-03-28 Colin Watson <cjwatson@debian.org>
1795 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
1798 2011-03-28 Colin Watson <cjwatson@debian.org>
1800 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
1801 to be specific about what kind of RAID device we're scanning for.
1803 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
1805 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
1806 return freed string.
1808 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1810 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
1812 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1814 Use libgeom on FreeBSD to detect partitions.
1816 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
1817 (grub-mkrelpath): Likewise.
1818 (grub-script-check): Likewise.
1819 (grub-editenv): Likewise.
1820 (grub-mkpasswd-pbkdf2): Likewise.
1821 (grub-fstest): Likewise.
1822 (grub-mkfont): Likewise.
1823 (grub-mkdevicemap): Likewise.
1824 (grub-probe): Likewise.
1825 (grub-setup): Likewise.
1826 (grub-ofpathname): Likewise.
1827 (grub-mklayout): Likewise.
1828 (example_unit_test): Likewise.
1829 (grub-menulst2cfg): Likewise.
1830 * grub-core/Makefile.core.def (grub-emu): Likewise.
1831 (grub-emu-lite): Likewise.
1832 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
1833 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
1834 define HAVE_DIOCGDINFO.
1835 (follow_geom_up) [FreeBSD]: New function.
1836 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
1837 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
1838 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
1839 unconditionally of HAVE_DIOCGDINFO.
1841 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1843 Fix FreeBSD compilation problem.
1845 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
1846 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
1848 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
1850 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
1851 Switch back to page zero before loading a kernel, since some kernel
1852 drivers expect that.
1853 Thanks to: Felix Kuehling.
1855 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1857 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
1858 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
1859 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
1861 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1863 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
1864 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
1866 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1868 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
1869 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
1872 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1874 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
1875 for modules headers when counting the needed allocation size.
1877 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1879 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
1880 if no ASCII character is found to prevent crash.
1882 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
1884 * grub-core/video/bitmap.c (match_extension): Ignore case.
1886 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1888 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
1890 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1892 * grub-core/script/parser.y: Declare "time" as valid argument.
1894 2011-03-23 Peter Jones <pjones@redhat.com>
1896 Fix incorrect assert failure reporting.
1898 * grub-core/tests/example_functional_test.c (example_test): Add
1900 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
1901 (failure_start): ...this. Check that malloc succeeded.
1902 Don't call xvasprintf. Return failure struct.
1903 (failure_append_vtext): New function.
1904 (failure_append_text): Likewise.
1905 (add_failure): Likewise.
1906 (grub_test_assert_helper): Likewise.
1907 * include/grub/test.h (grub_test_assert_helper): New declaration.
1908 (grub_test_assert): Macro rewritten.
1910 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1912 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
1914 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1916 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
1918 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1920 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
1921 into GRUB-style one.
1923 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1925 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
1926 error and not grub_errno.
1927 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
1929 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1931 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
1932 GRUB_USB_SPEED_NONE in case of failure and not the error code.
1934 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1936 * grub-core/efiemu/i386/pc/cfgtables.c
1937 (grub_machine_efiemu_init_tables): Make declaration a prototype.
1938 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
1939 (grub_xnu_unlock): Likewise.
1940 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
1942 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1944 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
1945 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
1946 * grub-core/commands/hashsum.c (aliases): Likewise.
1947 * grub-core/commands/setpci.c (pci_registers): Likewise.
1948 * grub-core/disk/usbms.c (attach_hook): Likewise.
1949 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
1950 (zio_checksum_table): Likewise.
1951 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
1952 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
1953 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
1954 * grub-core/lib/relocator.c (leftovers): Likewise.
1955 (extra_blocks): Likewise.
1956 * grub-core/loader/i386/bsd.c (relocator): Likewise.
1957 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
1958 (modules_last): Likewise.
1959 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
1960 (devices): Likewise.
1961 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
1962 (modules_last): Likewise.
1963 * grub-core/normal/auth.c (users): Likewise.
1964 * grub-core/normal/context.c (initial_menu): Likewise.
1965 (current_menu): Likewise.
1966 * grub-core/normal/crypto.c (crypto_specs): Likewise.
1967 * grub-core/term/serial.c (grub_serial_ports): Likewise.
1968 (grub_serial_terminfo_input_template): Likewise.
1969 (grub_serial_terminfo_output_template): Likewise.
1970 (grub_serial_terminfo_input): Likewise.
1971 (grub_serial_terminfo_output): Likewise.
1972 (registered): Likewise.
1973 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
1975 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1977 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
1978 grub_video_mode_type_t.
1979 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
1980 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
1981 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
1983 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1985 * util/grub-install.in: Correct the x86-64 name as x86_64.
1987 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
1989 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
1990 initial chunk read from the kernel always includes GRUB's multiboot
1991 header, which is now outside the first sector.
1993 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
1995 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
1996 cached mmap_size, so that this works correctly when called multiple
1998 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
2000 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
2002 * docs/grub.texi (Simple configuration): Tidy up formatting.
2004 2011-03-07 Szymon Janc <szymon@janc.net.pl>
2006 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
2007 Set-but-not-used variable removed.
2009 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2011 Workaround yet another IEEE1275 bug.
2013 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2014 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
2015 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
2016 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
2018 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2019 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
2021 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2023 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
2026 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
2028 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
2029 empty, since in that case we can only generate either nothing or a
2030 syntactically invalid configuration file.
2031 Reported by: Michal Suchanek. Fixes Debian bug #612898.
2033 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2035 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
2036 (Making a GRUB bootable CD-ROM): Likewise.
2037 (Invoking grub-mkrescue): New section.
2038 Reported by: Yann Dirson. Fixes Debian bug #612585.
2040 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2042 * util/grub-install.in: Remove unnecessary brackets from tr
2044 * util/grub.d/10_hurd.in: Likewise.
2045 * util/grub.d/10_kfreebsd.in: Likewise.
2046 * util/grub.d/10_linux.in: Likewise.
2047 * util/grub.d/20_linux_xen.in: Likewise.
2048 Reported by: Jamie Heilman. Fixes Debian bug #612564.
2050 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
2052 * include/grub/file.h (not_easly_seekable): Rename to ...
2053 (not_easily_seekable): ... this. Update all users.
2055 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
2057 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
2060 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2062 * util/grub-mkimage.c (generate_image): Refuse to create the images
2063 bigger than the actual flash (512K) in Loongson machines. 512K is also
2064 the biggest chip supported by them.
2066 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2068 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
2070 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
2072 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
2075 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2077 * util/grub-install.in: Ignore install device on platforms
2078 where it doesn't make sense. Always use UUIDs except on pc, efi and
2080 Reported by: Daniel Kahn Gillmor.
2082 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2084 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
2086 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2088 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
2089 (iterate_real): Don't rely on partition being non-NULL.
2091 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2093 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
2094 supported platforms. Put a compile time assert for this rather than
2095 generate a warning with 32-bit shift.
2097 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2099 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
2100 logical expression more readable.
2102 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2104 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
2105 even if some elements have a name.
2106 Reported by: Alexander GQ Gerasiov.
2108 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2110 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
2111 path unreadable if `grub-probe -t abstraction' fails, for example if
2112 memberlist fails on an LVM volume group.
2113 Reported by: Darius Jahandarie.
2115 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2117 * docs/grub.texi (Simple configuration): Document
2118 GRUB_PRELOAD_MODULES.
2120 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
2122 * .bzrignore: Remove nonexistent grub-pbkdf2.
2124 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2126 * configure.ac: Bump version to 1.99~rc1.
2128 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
2130 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
2133 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2135 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
2138 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2140 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
2142 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2144 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
2147 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2149 Fix compilation on cygwin.
2151 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
2152 -R .drectve on cygwin.
2153 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
2154 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
2155 (COND_CYGWIN): New condition.
2156 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
2157 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
2158 not @TARGET_OBJ2ELF@.
2159 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
2160 type to determine whether aux is to be used.
2162 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2164 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
2165 realpath'ed device string.
2166 Handle floppy (somewhat).
2167 Issue error in unknown case rather than garbage.
2168 Reported by: Axel Beckert.
2170 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2172 * util/grub.d/00_header.in (load_video): Handle the case when no video
2174 Thanks to: Axel Beckert.
2176 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2178 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
2179 variable. Fixes problem on big endian platforms.
2181 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2183 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
2184 It doesn't work well there.
2186 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2188 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
2190 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
2191 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
2194 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2196 Use alias->path rather than buggy "canon".
2198 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
2199 (ofdisk_hash_add): New argument curcan. All users updated.
2201 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2203 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
2205 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2207 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
2208 loadmask before doing any calculations. Use correct type for offset.
2209 (grub_linux_load64): Likewise.
2211 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2213 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
2215 (console_grub_equivalences_unshift): Likewise.
2216 Reported by: Daniel Dehennin.
2218 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2220 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
2221 (set_env_limn_ro): Likewise.
2222 (GRUB_MOD_INIT): Likewise.
2223 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
2224 ARRAY_SIZE while on it.
2225 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
2226 * grub-core/normal/context.c (grub_env_export): Move from here ...
2227 * grub-core/kern/env.c (grub_env_export): ... here.
2228 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
2230 * grub-core/kern/main.c (grub_main): Export root and prefix.
2231 * include/grub/env.h (grub_env_export): Export.
2232 Reported by: Seth Goldberg.
2234 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2236 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2237 Take into account space used by ELF sections and multiboot palette.
2238 Reported by: Grégoire Sutre.
2240 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2244 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2246 Pass more appropriate video id to Linux.
2248 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
2249 grub_video_get_driver_id and variable gfxpayloadforcelfb to
2251 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
2252 shift params->lfb_size.
2253 * include/grub/i386/linux.h: Make an enume out of have_vga values.
2255 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2257 * util/grub-menulst2cfg.c: Add missing include of misc.h.
2259 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2261 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
2262 separator and pass bootpath/devid even if only one of them is available.
2263 Reported by: Seth Goldberg.
2265 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2267 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
2268 implementations bug on them.
2270 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
2272 (filter_memory_map): Likewise.
2274 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2276 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
2277 Reported by: nebuchadnezzar.
2279 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2281 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
2282 Reported by: nebuchadnezzar.
2284 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2286 Submenu default support.
2288 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
2289 auto_boot. All users updated.
2291 Handle chosen and default with submenus.
2292 (grub_menu_execute_with_fallback): Declared static.
2293 Don't notify failure if autobooted. Upper level does it.
2294 (menuentry_eq): New function.
2295 (get_entry_number): Use menuentry_eq.
2296 (show_menu): New parameter "autobooted". All users updated.
2297 (grub_show_menu): Likewise.
2298 * include/grub/normal.h (grub_show_menu): Likewise.
2299 * include/grub/menu.h (grub_menu_execute_entry): Removed.
2300 (grub_menu_execute_with_fallback): Likewise.
2302 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2304 * util/grub-mklayout.c (usage): Update help text.
2306 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2308 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
2310 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2312 * util/grub-menulst2cfg.c (main): Trim the line.
2314 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2316 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
2317 (grub_machine_init): Don't check amount of low memory as reportedly
2318 INT 12h can be broken and if low memory is too low we wouldn't have
2319 gotten into grub_machine_init anyway.
2321 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2323 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
2324 (grub_machine_mmap_iterate): Take low memory into account
2326 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2328 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
2332 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2334 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
2337 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2339 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
2340 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
2342 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2344 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
2345 openbsd and netbsd types being in part_bsd module.
2347 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2349 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
2350 (_FILE_OFFSET_BITS): Likewise.
2351 Reported by: Seth Goldberg.
2353 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2355 * configure.ac: Check for libdevmapper header.
2357 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2359 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
2361 (fzap_lookup): Likewise.
2362 (dnode_get): Likewise.
2363 (make_mdn): Likewise.
2364 (zfs_mount): Likewise.
2365 (fzap_iterate): Use temporary pointer to avoid aliasing.
2366 (grub_zfs_read): Likewise.
2367 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
2368 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
2369 pointers to avoid aliasing.
2370 (grub_cmd_xnu_kernel64): Likewise.
2371 (grub_xnu_load_driver): Likewise.
2373 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2375 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
2377 (grub_cmd_terminal_output): Likewise.
2378 Reported and tested by: Grégoire Sutre.
2380 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2382 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
2384 Reported and tested by: Grégoire Sutre.
2386 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2388 * configure.ac: Do CPU substitution even if it's specified explicitly.
2389 Reported and tested by: Alain Greppin.
2391 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2393 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
2394 Reported and tested by: Alain Greppin.
2396 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2398 Satisfy some bison versions need for inttypes.h.
2400 * grub-core/lib/posix_wrap/inttypes.h: New file.
2401 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
2402 (int16_t): Likewise.
2403 (int32_t): Likewise.
2404 (int64_t): Likewise.
2405 Reported and tested by: Alain Greppin.
2407 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2409 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
2410 Silence spurious warning.
2411 Reported and tested by: Alain Greppin.
2413 2011-01-07 Szymon Janc <szymon@janc.net.pl>
2415 * docs/grub.texi (Support automatic decompression): Update with xz
2416 decompression support.
2418 2011-01-07 Szymon Janc <szymon@janc.net.pl>
2420 Improve loaders' kernel command line handling.
2422 * grub-core/lib/cmdline.c: New file.
2423 * include/grub/lib/cmdline.h: Likewise.
2424 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
2425 grub_create_loader_cmdline to create kernel command line.
2426 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2427 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
2428 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
2429 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
2430 (linux): Add lib/cmdline.c on common.
2432 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2434 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
2435 inopos might be unaligned.
2437 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2439 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
2440 endian transformations.
2441 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2442 Based on report by: Doug Nazar.
2444 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
2446 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
2447 array->members[i].start_sector.
2448 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2450 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2452 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
2453 Reported and tested by: Grégoire Sutre.
2455 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
2457 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
2458 avoid causing test failures by clearing the screen.
2460 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
2462 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
2463 Fix prefix check to handle the case where dir ends with a slash
2464 (most significantly, "/" itself).
2465 Reported by: Michael Vogt.
2467 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2469 Run terminfo_cls on initing terminfo output to clear the screen and
2470 move the cursor to (0,0).
2472 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
2473 Call grub_terminfo_output_init.
2474 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
2475 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
2476 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
2478 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2480 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
2483 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2485 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
2488 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2490 The E820 type 5 is BADRAM, not EXEC_CODE.
2492 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2493 (GRUB_E820_BADRAM): New define.
2494 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
2495 into reserved. Propagate BADRAM.
2496 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2497 (GRUB_E820_BADRAM): New define.
2499 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2501 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
2502 Ignore the memory post-4G.
2503 (grub_relocator_firmware_alloc_region): Additional debug statement.
2505 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2507 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
2509 Reported by: David Pravec.
2511 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2513 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
2516 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2518 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
2520 (grub_reed_solomon_recover): Likewise.
2522 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2524 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
2526 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2528 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
2531 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
2533 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
2534 descriptions of extract_legacy_entries_source and
2535 extract_legacy_entries_configfile.
2536 Reported by: Seung Soo, Ha.
2538 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
2540 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
2541 on devices that do not implement function 0.
2543 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
2545 * grub-core/fs/hfsplus.c: Make parent unsigned.
2546 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
2548 (grub_hfsplus_cmp_extkey): Likewise
2550 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2552 * util/grub-install.in: Correctly use bootloader_id and not
2553 GRUB_DISTRIBUTOR on efibootmgr line.
2555 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2557 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
2559 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
2561 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
2562 Xen and reorder menu item wording to make it clearer that this entry
2563 will launch Xen. Print separate messages when loading Xen and
2566 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2568 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
2569 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
2570 loop in case of incorrect amiga partmap.
2572 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2574 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
2575 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
2578 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2580 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
2582 Reported by: crocket
2584 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2586 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
2588 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
2590 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2592 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
2594 (grub_cmd_xnu_kextdir): Likewise.
2595 (grub_cmd_xnu_splash): Likewise.
2597 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2599 Avoid using Reed-Solomon with 0 redundancy.
2601 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
2602 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
2604 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
2605 (grub_reed_solomon_recover): Likewise.
2607 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2609 Don't use disk subsystem in freebsd_boot.
2611 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
2612 (freebsd_biosdev): Likewise.
2613 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
2614 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
2616 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2618 Handling of files of unknown size is currently limited. They can't be
2619 used e.g. for initrd or modules. Moreover gzip handling of not
2620 easily seekable files is buggy. Disable unknown file size for now. May
2621 be inefficient but works.
2623 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
2624 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2626 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
2628 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
2631 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
2633 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
2635 2010-12-25 Shea Levy <shlevy>
2637 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
2639 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2641 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
2642 Windows Server 2008.
2643 Reported by: Devin Giddings.
2645 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2647 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
2648 writing an error message because of async power management.
2649 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
2650 (grub_reboot): Likewise.
2652 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
2654 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
2655 keep unit tests from failing when they shouldn't.
2657 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2659 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
2660 previous patch increased the size of the RS code by 20 bytes (at
2661 least with gcc-4.4), so increase this by 20 bytes to match.
2662 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2664 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2666 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
2667 scratch area. Make sure to initialise chosen in standalone mode as
2668 well as non-standalone.
2669 Reported by: Robert Hooker and Andy Whitcroft.
2670 Tested by: Andy Whitcroft.
2672 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2674 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
2675 constructing a new unescaped string and passing it to grub_xputs in
2676 one go, rather than passing characters to grub_printf one at a time.
2678 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2680 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
2683 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2685 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
2686 comment. Add an extra layer of quotation, requiring the output of
2687 this function to be used in a printf format string.
2688 (gettext_printf): New function.
2689 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
2690 Extract translatable strings from here-documents and use a temporary
2691 variable instead, so that xgettext can find them.
2692 * util/grub.d/10_kfreebsd.in: Likewise.
2693 * util/grub.d/10_linux.in: Likewise.
2694 * util/grub.d/20_linux_xen.in: Likewise.
2696 * po/grub.d.sed: New file.
2697 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
2698 arguments. Set c-format flags on all strings extracted from
2699 util/grub.d/ (xgettext refuses to include these itself for strings
2700 it extracted from a shell file, but these really are c-format).
2702 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2704 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
2705 Avoid next pointing to nowhere.
2707 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2709 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
2710 rather than assuming than rootblock is exactly in the middle.
2711 (grub_affs_label): Likewise.
2713 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2715 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
2716 reserved_first_sector to 0.
2717 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
2718 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
2719 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
2721 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2723 Fix handling of UTF-16 UDF labels.
2725 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
2726 (read_string): .. here.
2727 (grub_udf_label): Use read_string.
2729 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
2731 * grub-core/normal/menu_entry.c (run): Execute commands from menu
2732 editor under argument scope.
2733 Reported by: Jordan Uggla
2735 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2737 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
2739 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
2741 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
2742 line, and other keys scroll an entire page (previous handling was
2743 for \r and \n to scroll a page and other keys to scroll two lines).
2745 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2747 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2748 Set ptrdest to correct get_physical_target_address rather than
2749 incorrect get_virtual_current_address.
2751 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
2753 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
2754 correct cat to grub_uint8_t * rather than grub_uint32_t *.
2756 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
2758 * .bzrignore: Ignore grub-core/rs_decoder.S.
2760 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
2762 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
2763 .mo/.mo.gz opening sequence to ...
2764 (grub_mofile_open_lang): ... here.
2765 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
2766 * util/grub.d/00_header.in (grub_lang): Include country part of
2768 Reported by: Mario Limonciello.
2770 2010-12-09 Robert Millan <rmh@gnu.org>
2772 * NEWS: Document addition of ZFS support.
2774 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
2776 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
2777 rather than `/ 2', as the latter requires -Wa,--divide which would
2778 require bumping our minimum binutils version.
2780 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
2782 * util/grub-script-check.c (main): Print script line number on
2785 2010-12-01 Robert Millan <rmh@gnu.org>
2787 * grub-core/fs/zfs/zfs.c: New file.
2788 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
2789 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
2790 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
2791 * grub-core/fs/zfs/zfsinfo.c: Likewise.
2793 * include/grub/zfs/dmu.h: Likewise.
2794 * include/grub/zfs/dmu_objset.h: Likewise.
2795 * include/grub/zfs/dnode.h: Likewise.
2796 * include/grub/zfs/dsl_dataset.h: Likewise.
2797 * include/grub/zfs/dsl_dir.h: Likewise.
2798 * include/grub/zfs/sa_impl.h: Likewise.
2799 * include/grub/zfs/spa.h: Likewise.
2800 * include/grub/zfs/uberblock_impl.h: Likewise.
2801 * include/grub/zfs/vdev_impl.h: Likewise.
2802 * include/grub/zfs/zap_impl.h: Likewise.
2803 * include/grub/zfs/zap_leaf.h: Likewise.
2804 * include/grub/zfs/zfs.h: Likewise.
2805 * include/grub/zfs/zfs_acl.h: Likewise.
2806 * include/grub/zfs/zfs_znode.h: Likewise.
2807 * include/grub/zfs/zil.h: Likewise.
2808 * include/grub/zfs/zio.h: Likewise.
2809 * include/grub/zfs/zio_checksum.h: Likewise.
2811 * Makefile.util.def: Build ZFS into libgrubmods.
2812 * grub-core/Makefile.core.def: Build zfs.mod.
2814 2010-11-30 Szymon Janc <szymon@janc.net.pl>
2816 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
2818 * grub-core/commands/wildcard.c (match_files): Likewise.
2820 2010-11-30 Robert Millan <rmh@gnu.org>
2822 * grub-core/loader/i386/bsd.c
2823 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
2824 whether kernel is loaded using grub_loader_is_loaded(), rather
2825 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
2826 certain error conditions.
2828 2010-11-30 Robert Millan <rmh@gnu.org>
2830 * grub-core/commands/echo.c: Include `<grub/term.h>'.
2831 (grub_cmd_echo): Call grub_refresh() after printing a message.
2833 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2835 Avoid using tricks for initialising endian variables.
2837 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
2839 (GRUB_MOD_INIT): Don't byte-swap.
2840 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
2841 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
2842 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
2843 (grub_swap_bytes32_compile_time): Likewise.
2844 (grub_cpu_to_le32_compile_time): Likewise.
2845 (grub_cpu_to_le16_compile_time): Likewise.
2847 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2849 * util/grub-setup.c (setup): Stop recommending --force. People who
2850 understand the dangers of blocklists are able to find this option
2851 anyway and the ones who don't shouldn't use it anyway.
2853 2010-11-26 Robert Millan <rmh@gnu.org>
2855 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
2858 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
2860 Fix LVM-on-RAID probing.
2862 * util/grub-probe.c (probe): Remember which disk was detected as
2863 RAID (perhaps an LVM physical volume). Use that disk's raidname
2864 rather than that of the top-level disk.
2866 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
2868 Fix cmdline argument quotes for setparams command of menuentry
2871 * grub-core/commands/menuentry.c (setparams_prefix): Use single
2872 quotes for arguments.
2873 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
2874 grub_strchrsub function instead.
2876 * include/grub/misc.h (grub_strchrsub): New function.
2878 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
2880 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
2881 effort by skipping "." and ".." entries up-front.
2882 Suggested by: Michael Lazarev.
2884 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
2886 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
2887 ldflags to ldadd, to fix link line ordering.
2888 (none_decompress): Likewise.
2890 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
2892 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
2894 (grub-emu-lite): Remove kern/emu/cache.S.
2896 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2898 * util/deviceiter.c (compare_devices): If the by-id link for a
2899 device couldn't be resolved, fall back to sorting by the by-id link
2900 rather than segfaulting.
2901 Reported and tested by: Daniel Mierswa.
2903 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2905 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
2906 ldflags, to fix link line ordering.
2908 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2910 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
2911 linkers are picky about this.
2913 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2915 * grub-core/Makefile.am (command.lst): Adjust sed expression
2916 ordering so that extended and priority commands aren't treated as
2919 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2921 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
2922 Remove byte-swapping function calls, which are not valid in
2923 structure initialisers.
2924 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
2926 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
2927 grub_gpt_partition_type_bios_boot.
2929 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
2931 Fix test program build on GNU/kFreeBSD.
2933 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
2934 $(LIBNVPAIR)' library dependencies.
2936 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
2938 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
2940 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
2942 * util/grub-install.in: Remove excessive quoting that broke
2943 installations to RAID devices.
2945 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2947 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
2948 bootloader version instead of 0.
2950 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
2955 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
2958 retrieve the metadat sector if size isn't known.
2959 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2961 2010-11-18 Robert Millan <rmh@gnu.org>
2963 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
2966 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2968 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
2970 Reported by: Jordan Uggla.
2972 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2974 Make better UTF compliant.
2976 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
2977 sequences as incorrect.
2978 (grub_is_valid_utf8): Likewise.
2979 (grub_utf8_to_ucs4): Likewise.
2980 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
2981 (grub_ucs4_to_utf8_alloc): Likewise.
2982 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
2984 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2986 Make legacy_source behave like source.
2988 * grub-core/commands/legacycfg.c (legacy_file): Don't call
2990 (grub_cmd_legacy_source): Call grub_show_menu if needed.
2992 2010-11-16 Colin Watson <cjwatson@debian.org>
2994 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
2995 (-Wunused implies -Wunused-parameter, but not vice versa).
2997 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
2999 * configure.ac: Make error messages less confusing by testing for
3000 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
3001 accepted, but produces a diagnostic if something else is wrong).
3003 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3005 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
3006 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
3008 (grub_keyboard_controller_init)
3009 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
3010 read the initial state since controller isn't inited yet.
3012 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3014 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
3015 allocate_regbeg may need to create new chunk header.
3017 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3019 Fix quoting in legacy parser.
3021 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
3023 (grub_legacy_parse): Likewise.
3024 Reported by: Jordan Uggla.
3025 Tested by: Jordan Uggla.
3027 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3029 Don't add -lgcc on i386 and x86_64.
3031 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
3032 * conf/Makefile.common (LDADD_KERNEL): Likewise.
3033 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
3035 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3037 * configure.ac: Add -Wno-trampolines when supported.
3039 2010-11-14 Modestas Vainius <modax@debian.org>
3041 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
3044 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3046 Add generic logical block size support for UDF.
3048 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
3049 (GRUB_UDF_BLKSZ): Removed.
3050 (struct grub_udf_data): New field "lbshift" to hold the logical block
3051 size of the file system in log2 format. All users updated.
3052 (sblocklist): Change type to unsigned.
3053 (grub_udf_mount): Change type of "sblklist" to unsigned.
3054 Move AVDP search before VRS recognition, because the latter requires
3055 knowledge of the logical block size, which is detected during the
3057 Detect and validate logical block size during AVDP search, adding
3058 support for block sizes 512, 1024 and 4096.
3059 Make VRS recognition independent of block size.
3061 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3063 Properly handle deleted files on UDF.
3065 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
3066 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
3069 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3071 Support reading files larger than 2 GiB.
3073 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
3074 "offset" to grub_off_t.
3075 (grub_udf_read_file): Likewise for parameter "pos".
3077 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3079 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
3081 (Simple configuration): Refer to Changes from GRUB Legacy about
3082 save_env availability.
3084 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3086 * util/grub-install.in: Ignore empty partition table detection
3087 instead of trying to include part_ module.
3089 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3091 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
3092 LVM on RAID support.
3094 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3096 Properly define WORDS_BIGENDIAN in wrapped environments.
3098 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
3100 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
3102 Reported by: Manoel Rebelo Abranches.
3103 Tested by: Manoel Rebelo Abranches.
3105 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3107 * util/grub-mkconfig.in: Fix quoting.
3109 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3111 Support big ext2 files.
3113 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
3114 (grub_ext2_read_block): Support triple indirect blocks.
3115 (grub_ext2_read_file): Use 64-bit types and read size_high.
3116 (grub_ext2_open): Read size_high.
3117 Reported by: Ximin Luo.
3118 Tested by: Manoel Rebelo Abranches.
3120 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3122 * util/grub-install.in: Handle filenames containing spaces.
3123 Reported by: Jordan Uggla.
3124 Tested by: Jordan Uggla.
3126 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3128 * util/grub-mkconfig.in (grub_script_check): New variable.
3129 Use grub_script_check instead of grub-script-check.
3130 Reported by: Barry Jackson.
3132 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3134 * docs/grub.texi (menu): Correct the order.
3135 Reported by: D. Hugh Redelmeier.
3137 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3139 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
3142 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3144 * include/grub/elfload.h (grub_elf32_size): New parameter.
3146 Return maximum segments alignment.
3147 (grub_elf64_size): Likewise.
3148 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
3149 Return maximum segments alignment.
3150 (grub_elf64_size): Likewise.
3151 * grub-core/loader/powerpc/ieee1275/linux.c:
3152 (grub_linux_claimmap_iterate): New function. Uses the
3153 "available" property in the "memory" node for memory allocation
3154 for kernel in the PowerPC loader.
3155 (grub_linux_load32): Correctly find linux entry point offset.
3156 (grub_linux_load64): Likewise.
3158 2010-11-07 Robert Millan <rmh@gnu.org>
3160 On mips-yeeloong, build with -march=loongson2f when this flag is
3161 available (GCC >= 4.4).
3162 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
3164 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
3165 or otherwise add -march=mips3.
3167 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
3169 Suppress shell expansion on echo '*' and echo "*" like cases.
3170 Reported by: Jordan Uggla.
3172 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3173 string arguments before shell expansion.
3174 * tests/grub_cmd_echo.in: New testcases.
3176 2010-11-07 Robert Millan <rmh@gnu.org>
3178 * conf/mips-qemu-mips.rmk: Remove stale file from previous
3181 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3183 * grub-core/kern/emu/hostdisk.c
3184 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
3186 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3188 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
3189 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
3190 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
3192 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3194 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
3196 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3198 * util/grub-install.in: Replace useless recomendation to pass
3199 --modules with a recomendation to report a bug.
3201 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3203 Properly register serial terminfo.
3204 Reported by: Jordan Uggla
3206 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
3208 (grub_serial_terminfo_output_template): Likewise.
3209 (grub_cmd_serial): Register "serial" with terminfo.
3210 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
3211 grub_serial_terminfo_output.
3213 2010-11-05 Robert Millan <rmh@gnu.org>
3215 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
3218 2010-11-05 Robert Millan <rmh@gnu.org>
3220 On Yeeloong, pass machine type information to Linux.
3222 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
3223 (LOONGSON_MACHTYPE): New macro, set to
3224 "machtype=lemote-yeeloong-2f-8.9inches".
3225 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
3226 additional argument to Linux.
3228 2010-11-04 Robert Millan <rmh@gnu.org>
3230 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
3231 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
3232 (its SATA disks are detected as slaveless IDE master drives on
3234 Reported by Carsten Aulbert.
3236 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
3238 * util/bin2h.c (main): Fix spelling error in generated output.
3240 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
3242 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
3244 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3246 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
3247 vga= option is supplied.
3249 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3251 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
3252 * util/grub.d/10_kfreebsd.in: Likewise.
3253 * util/grub.d/10_linux.in: Likewise.
3254 * util/grub.d/20_linux_xen.in: Likewise.
3256 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3258 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
3259 argument as an argument to no-argument option.
3261 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3263 * util/grub.d/10_linux.in: Add missing load_video with explicit
3264 GRUB_GFXPAYLOAD_LINUX.
3266 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3268 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
3270 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3272 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
3273 elements with invlid index.
3274 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3275 * grub-core/disk/raid.c (insert_array): Automatically reallocate
3277 * include/grub/raid.h (grub_raid_member): New struct.
3278 (grub_raid_array): Transform devices and start_sector into usage of
3279 grub_raid_member. All users updated
3280 (allocated_devs): New member.
3282 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3284 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
3287 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
3289 NetBSD build fix for getline function conflict from gnulib.
3291 * Makefile.util.def (libgrubkern.a): New library for grub kernel
3292 components that depend on gnulib headers.
3293 (libgrubmods.a): Renamed from earlier libgrub.a.
3294 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
3296 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3298 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
3299 install rather than creating a broken install.
3301 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3303 * util/grub-setup.c (argp): Remove misleading example of installing to
3306 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3308 * util/grub-setup.c (setup): Clarify the error message.
3310 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3312 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
3314 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3316 * grub-core/kern/emu/misc.c
3317 (grub_make_system_path_relative_to_its_root)
3318 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
3320 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3322 * grub-core/kern/emu/misc.c
3323 (grub_make_system_path_relative_to_its_root): Revert r2882.
3325 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3327 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
3328 useless field head. All users updated.
3329 (free_subchunk): Correct handling of IN_REGION subchunk.
3331 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
3333 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
3334 (Supported kernels): Likewise.
3336 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
3338 Make mktemp invocations portable.
3340 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
3341 exit if mktemp fails.
3342 * tests/grub_script_blockarg.in: Likewise.
3343 * tests/partmap_test.in: Likewise.
3344 * tests/util/grub-shell-tester.in: Likewise.
3345 * tests/util/grub-shell.in: Likewise.
3346 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3347 * Makefile.am: Likewise, and chain shell commands with `&&'
3349 * util/grub-mkrescue.in: Use the same explicit template as above, and
3350 exit if mktemp fails.
3352 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
3354 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
3355 Linux kernel, reported by Dennis Schridde.
3357 2010-10-17 Szymon Janc <szymon@janc.net.pl>
3359 * grub-core/normal/auth.c (grub_auth_check_authentication):
3360 Set-but-not-used variable removed.
3362 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3364 * docs/grub.texi (GNU/Linux): Document APM unavailability with
3365 32-bit linux protocol.
3367 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3369 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
3370 cursor shape for sanity.
3372 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3374 * docs/grub.texi (Installation): Document buggy BIOS install.
3376 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3378 * docs/grub.texi (Installation): Indent.
3380 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3382 * util/grub-setup.c (setup): New parameter allow_floppy.
3383 (arguments): New member allow_floppy.
3384 (argp_parser): Handle --allow-floppy.
3385 (main): Pass allow_floppy.
3386 * util/grub-install.in: New option --allow-floppy passed though to
3389 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3391 * util/grub-install.in: Handle partitionless disks.
3393 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3395 * util/grub-setup.c (setup): Don't clean blocklists before readability
3398 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3400 * docs/grub.texi (Installation): Document embedding zone. Remove
3401 obsolete grub-install example.
3403 2010-10-16 Szymon Janc <szymon@janc.net.pl>
3405 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
3406 Set-but-not-used variable ifdef'ed.
3407 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
3408 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
3410 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
3411 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
3412 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
3413 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
3414 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
3415 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3416 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
3417 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
3418 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3419 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
3420 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
3423 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3425 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
3426 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
3429 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3431 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
3432 synonym to _S5_. Needed for some DSDTs.
3434 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3436 Userspace ACPI parser debugging.
3438 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
3439 headers and add relevant defines. Don't include standard headers.
3440 (main) [GRUB_DSDT_TEST]: New function.
3441 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
3442 Don't declare functions.
3444 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3446 Remove dead grub_efi_mm_fini.
3448 * grub-core/kern/efi/mm.c (allocated_page): Removed.
3449 (ALLOCATED_PAGES_SIZE): Likewise.
3450 (MAX_ALLOCATED_PAGES): Likewise.
3451 (allocated_pages): Likewise.
3452 (grub_efi_allocate_pages): Don't record allocated pages.
3453 (grub_efi_free_pages): Likewise.
3454 (grub_efi_mm_init): Likewise.
3455 (grub_efi_mm_fini): Removed.
3457 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3459 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
3460 (grub_efi_mm_init): Take into account the memory map size increase.
3462 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3464 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
3465 (serial_hw_put): Wait based on real time rather than port reads. Don't
3467 * include/grub/serial.h (grub_serial_port): New field broken.
3469 2010-10-16 Robert Millan <rmh@gnu.org>
3471 * grub-core/kern/emu/misc.c
3472 (grub_make_system_path_relative_to_its_root): Fix premature return
3473 when processing non-root ZFS filesystems.
3474 Reported by Sergio Talens-Oliag.
3476 2010-10-15 Robert Millan <rmh@gnu.org>
3478 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
3479 guarantee compressed ones are processed first.
3481 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3483 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
3484 grub_efiemu_autocore.
3486 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3488 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
3490 (grub_console_getkey): Use correct jae opcode rather than ja.
3492 2010-10-12 Robert Millan <rmh@gnu.org>
3494 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
3495 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
3496 variable. All references updated.
3498 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
3500 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3502 Correctly distinguish mdraid flavours.
3504 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
3505 (insert_array): New argument raid.
3506 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
3507 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
3508 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
3510 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3512 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
3513 handling of special keys.
3515 2010-10-02 Aleš Nesrsta <starous@volny.cz>
3517 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
3518 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3520 2010-10-02 Aleš Nesrsta <starous@volny.cz>
3522 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
3523 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
3525 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
3526 Use right endpoint when querying descriptor.
3528 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3530 Clear out 0x80 color bit on EFI.
3532 Reported by: decoder and meta tech.
3534 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
3535 (grub_console_setcolorstate): Clear out 0x80 bit.
3536 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
3537 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
3538 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
3540 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3542 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
3545 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3547 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
3548 mo_file after freeing.
3550 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3552 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
3554 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3556 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
3559 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3561 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
3564 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3566 Put terminfo into core on ieee1275 and yeeloong (needed for console).
3568 * gentpl.py: New groups terminfoinkernel and terminfomodule.
3569 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
3570 and terminfo.h when needed.
3571 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
3572 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
3573 (terminfo): Enable only on terminfokernel.
3575 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
3576 * include/grub/lib/arg.h: Likewise.
3577 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
3578 incorrect usage of ->.
3580 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3582 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
3583 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
3585 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3587 Fix coreboot compilation.
3589 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3590 Take VBE info into account even if only text is supported.
3591 (fill_vbe_info): Take into account the case when only VGA text
3593 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
3594 on coreboot, multiboot and qemu.
3596 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3598 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
3600 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
3602 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3604 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
3607 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3609 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
3610 if they were BSD-style.
3612 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3614 * grub-core/boot/i386/pc/lnxboot.S: Replace
3615 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
3616 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
3618 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3620 Write embedding zone using Reed-Solomon.
3622 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
3623 * grub-core/Makefile.am (rs_decoder.S): New target.
3624 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
3625 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
3626 (multiboot): Move to RS part.
3627 (post_reed_solomon): New label.
3628 (grub_boot_drive): Move to non-RS part since it's modified in memory
3630 Include rs_decoder.S.
3631 * grub-core/lib/reed_solomon.c: New file.
3632 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
3634 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
3635 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
3636 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
3637 * include/grub/partition.h (grub_partition_map): Change prototype of
3638 embed to allow returning additional sectors.
3639 * include/grub/reed_solomon.h: New file.
3640 * util/grub-setup.c (setup): Handle Reed-Solomon.
3642 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
3644 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3645 i386 and x86-64 definedness tests.
3647 2010-09-27 Yves Blusseau <blusseau@zetam.org>
3649 Fix generation of kernel_syms.lst
3651 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
3654 2010-09-26 Robert Millan <rmh@gnu.org>
3656 Support degraded ZFS arrays in "grub-probe -t device" resolution.
3658 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
3659 the pool is an array of devices, iterate through it and return the
3660 first device that passes a stat() test (instead of blindly returning
3663 2010-09-26 Robert Millan <rmh@gnu.org>
3665 Build fixes for GNU/kFreeBSD.
3667 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
3668 to programs that require ZFS conversion.
3669 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
3670 kernels that don't have FLOPPY_MAJOR.
3672 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3674 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
3676 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3680 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
3681 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
3682 mdraid09 and mdraid1x.
3684 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
3686 Re-enable grub-extras.
3688 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
3689 avoid confusing Automake. Run autogen only twice, once for the top
3690 level and once for grub-core. Add Makefile.util.def and
3691 Makefile.core.def from extra modules to the appropriate autogen
3692 invocations. If Makefile.common exists in an extra module, include
3693 it in both Makefile.util.am and grub-core/Makefile.core.am;
3694 similarly, include any Makefile.util.common file in Makefile.util.am
3695 and any Makefile.core.common file in grub-core/Makefile.core.am.
3696 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
3697 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
3698 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
3699 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
3701 * gentpl.py (gvar_add): Turn GVARS into a set.
3702 (global_variable_initializers): Sort global variables on output.
3703 (vars_init): New function.
3704 (first_time): Likewise.
3705 (library): Ensure that non-global variable initialisations are
3706 emitted before the first time we emit code for a library block.
3707 Append to variables rather than setting them. Only emit
3708 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
3709 each conditional path.
3710 (program): installdir() emits an Autogen macro, so must be passed to
3711 var_add rather than gvar_add.
3714 (rules): New function, centralising handling for different target
3715 types. Set up Guile association lists for first_time and vars_init,
3716 and send most output to a diversion so that variable initialisations
3717 can be emitted first.
3718 (module_rules): Use new rules function.
3719 (kernel_rules): Likewise.
3720 (image_rules): Likewise.
3721 (library_rules): Likewise.
3722 (program_rules): Likewise.
3723 (script_rules): Likewise.
3724 (data_rules): Likewise.
3726 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
3728 * .bzrignore: Add contrib and grub-core/contrib. Remove
3729 grub-core/Makefile.gcry.am.
3731 2010-09-24 Yves Blusseau <blusseau@zetam.org>
3733 * grub-core/lib/LzFind.c: Add missing include.
3734 * grub-core/lib/LzmaEnc.c: Likewise.
3735 * grub-core/script/lexer.c: Likewise.
3736 * grub-core/script/yylex.l: Likewise.
3737 * util/grub-macho2img.c: Likewise.
3738 * util/grub-menulst2cfg.c: Likewise.
3739 * util/grub-mklayout.c: Likewise.
3740 * util/grub-mkpasswd-pbkdf2.c
3741 * util/grub-mkrelpath.c: Likewise.
3742 * util/resolve.c: Likewise.
3744 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
3746 * Makefile.util.def (example_unit_test): Add
3747 grub-core/gnulib/libgnu.a.
3749 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
3751 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
3753 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3755 Support xz compression on yeeloong.
3757 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
3758 * configure.ac: Check for LZMA.
3759 * grub-core/Makefile.core.def (xz_decompress): New target.
3760 (none_decompress): Likewise.
3761 * grub-core/boot/decompressor/minilib.c: New file.
3762 * grub-core/boot/decompressor/none.c: Likewise.
3763 * grub-core/boot/decompressor/xz.c: Likewise.
3764 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
3765 * grub-core/kern/mips/cache_flush.S: Likewise.
3766 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
3767 * grub-core/kern/mips/startup.S: Move first stage to ...
3768 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
3770 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
3771 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
3772 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
3773 Allocate statically.
3774 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
3775 Allocate statically or use scratch. Don't check CRC32.
3776 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
3777 Allocate statically. Don't check CRC32.
3778 * include/grub/decompressor.h: New file.
3779 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
3781 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
3782 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
3783 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
3784 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
3785 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
3786 * util/grub-mkimage.c (grub_compression_t): New type.
3787 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
3788 (image_target_desc): New field default_compression.
3789 (image_targets): Adjust yeeloong targets.
3790 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
3791 (compress_kernel): New parameter comp.
3792 (generate_image): Likewise. Handle new compression case.
3793 (options): New option --compression
3795 (main): Handle new option.
3797 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
3799 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
3801 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
3803 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3804 typo in __i386__ conditional.
3806 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3808 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
3811 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3813 Implement EFI and ACPI multiboot2 extensions.
3815 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
3816 new tags as supported.
3817 (acpiv2_size): New function.
3818 (grub_multiboot_get_mbi_size): Take new tags into account.
3819 (grub_multiboot_make_mbi): Add new tags.
3820 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
3822 2010-09-21 Aleš Nesrsta <starous@volny.cz>
3824 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
3825 Added missing configuration of USB device.
3827 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3829 * grub-core/normal/menu_entry.c (run): Make sure we always return
3832 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3834 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
3835 NumberOfPages is UINT64 according to the UEFI specification, not
3836 UINTN. Fix printf format.
3838 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3840 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
3841 `err' to grub_usb_err_t.
3842 Reported and tested by: KESHAV P.R.
3844 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3846 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
3847 tpart non-const, so that we can assign to it. (Since this is a
3848 typedef, the constness refers to the pointer rather than what it
3851 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3853 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
3854 $(top_srcdir)/grub-core/gnulib as well as
3855 $(top_builddir)/grub-core/gnulib.
3856 Reported by: KESHAV P.R.
3858 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3860 * util/grub-install.in: Fix the bootloader ID option to be
3861 consistently --bootloader-id, not --bootloader_id.
3862 Reported by: KESHAV P.R.
3864 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3866 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
3867 check hash checksum." consistently translatable.
3869 2010-09-21 Yves Blusseau <blusseau@zetam.org>
3871 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
3874 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3876 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
3877 (GRUB_MOD_INIT): Register sha1sum command.
3878 (GRUB_MOD_FINI): Unregister sha1sum command.
3880 2010-09-21 Yves Blusseau <blusseau@zetam.org>
3882 Keep boot and grub directory names in sync with utils scripts
3884 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
3885 * config.h.in: Add previous macros.
3886 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
3887 * util/grub-install.in: Use $bootdir and $grubdir variables.
3889 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3891 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
3892 convert partition names to disk names if the new `convert' parameter
3894 (grub_util_biosdisk_get_grub_dev): If opening the disk device
3895 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
3896 disk in its own right. This can happen with Xen disk images.
3898 2010-09-21 Yves Blusseau <blusseau@zetam.org>
3900 * util/grub-editenv.c: Update strings to avoid warnings when generating
3902 * util/grub-setup.c: Likewise.
3904 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
3906 * configure.ac: Change version to 1.99~beta0.
3908 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
3910 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
3912 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
3914 * include/multiboot.h: Resynced with specification.
3915 * include/multiboot2.h: Likewise.
3917 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3919 Fix po directory handling.
3921 * configure.ac: Create po/Makefile.in rather than po/Makefile.
3922 * grub-core/gnulib/Makefile.am: Import gettext module.
3923 * m4/gnulib-cache.m4: Likewise.
3924 * m4/gnulib-comp.m4: Likewise.
3925 * m4/gettext.m4: New file, from gnulib.
3926 * m4/glibc2.m4: Likewise.
3927 * m4/iconv.m4: Likewise.
3928 * m4/intdiv0.m4: Likewise.
3929 * m4/intl.m4: Likewise.
3930 * m4/intldir.m4: Likewise.
3931 * m4/intlmacosx.m4: Likewise.
3932 * m4/intmax.m4: Likewise.
3933 * m4/inttypes-pri.m4: Likewise.
3934 * m4/lcmessage.m4: Likewise.
3935 * m4/lib-ld.m4: Likewise.
3936 * m4/lib-link.m4: Likewise.
3937 * m4/lib-prefix.m4: Likewise.
3938 * m4/lock.m4: Likewise.
3939 * m4/nls.m4: Likewise.
3940 * m4/po.m4: Likewise.
3941 * m4/printf-posix.m4: Likewise.
3942 * m4/progtest.m4: Likewise.
3943 * m4/threadlib.m4: Likewise.
3944 * m4/uintmax_t.m4: Likewise.
3945 * m4/visibility.m4: Likewise.
3946 * po/Makefile.am: Remove.
3947 * po/Makefile.in.in: New file, from gettext.
3948 ($(DOMAIN).pot-update): Support POTFILES-shell.
3949 * po/Makevars: New file.
3950 * po/POTFILES-shell: Rename to ...
3951 * po/POTFILES-shell.in: ... this. Update.
3952 * po/POTFILES: Rename to ...
3953 * po/POTFILES.in: ... this. Update.
3954 * po/Rules-quot: New file, from gettext.
3955 * po/boldquot.sed: Likewise.
3956 * po/en@boldquot.header: Likewise.
3957 * po/en@quot.header: Likewise.
3958 * po/insert-header.sin: Likewise.
3959 * po/quot.sed: Likewise.
3960 * po/remove-potcdate.sin: Likewise.
3962 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3964 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
3966 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3968 * util/grub.d/20_linux_xen.in: Use submenus.
3970 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3974 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
3975 parameter submenu. All users updated.
3976 * grub-core/normal/main.c (free_menu): Rename to ...
3977 (grub_normal_free_menu): ... this. Made global.
3978 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
3980 * grub-core/normal/menu_entry.c (screen): New field submenu.
3981 (make_screen): Set submenu.
3982 (run): Open new context if requested.
3983 * include/grub/menu.h (grub_menu_entry): New field submenu.
3984 * include/grub/normal.h (grub_normal_free_menu): New proto.
3986 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3988 Menu entries extractor.
3990 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
3992 (GRUB_MOD_INIT): Register new variants.
3993 (GRUB_MOD_FINI): Unregister new variants.
3994 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
3995 into grub_cmd_legacy_source.
3996 (grub_cmd_legacy_source): Implement extractor variants.
3997 (GRUB_MOD_INIT): Register new variants.
3998 (GRUB_MOD_FINI): Unregister new variants.
3999 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
4001 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
4002 search as an extractor.
4003 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
4004 test as an extractor.
4005 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
4007 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
4008 (grub_env_new_context): New function.
4009 (grub_env_context_open): Likewise.
4010 (grub_env_extractor_open): Likewise.
4011 (grub_env_extractor_close): Likewise.
4012 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
4013 grub_extractor_level.
4014 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
4015 * include/grub/env.h (grub_env_extractor_open): New proto.
4016 (grub_env_extractor_close): Likewise.
4017 * include/grub/normal.h (grub_extractor_level): New external variable.
4019 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4021 Make cutmem accept a region specification.
4022 Suggested by: Samuel Thibault
4024 * grub-core/mmap/mmap.c (parsemem): New function.
4025 (grub_cmd_cutmem): Handle new arguments.
4027 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4031 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
4032 (GRUB_MOD_INIT): Register new command.
4033 (GRUB_MOD_FINI): Unregister new command.
4035 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4037 Support some annoying BSD and Minix subpartitions.
4039 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
4040 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4041 Properly handle concatenation.
4042 * grub-core/kern/device.c (grub_device_iterate): Likewise.
4043 * grub-core/normal/completion.c (iterate_partition): Likewise.
4044 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
4045 contain partition. All users updated.
4046 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
4048 (grub_openbsdlabel_partition_map): Likewise.
4049 (bsdlabel_partition_map_iterate): Rename to ..
4050 (iterate_real): ... this. New arguments sector, freebsd and pmap.
4051 (bsdlabel_partition_map_iterate): New function.
4052 (netopenbsdlabel_partition_map_iterate): Likewise.
4053 (netbsdlabel_partition_map_iterate): Likewise.
4054 (openbsdlabel_partition_map_iterate): Likewise.
4055 (GRUB_MOD_INIT): Register new partmaps.
4056 (GRUB_MOD_FINI): Unregister new partmaps.
4057 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
4058 (grub_partition_msdos_iterate): ... this. All users updated.
4059 Don't support embedding other than in a minix partition.
4060 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
4062 * include/grub/partition.h (grub_partition): New field msdostype.
4063 * util/grub-install.in: Handle openbsd and netbsd types being in
4066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4068 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
4070 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
4071 * grub-core/Makefile.core.def (mdraid): Renamed to ...
4072 (mdraid09): ... this.
4073 (mdraid1x): New module.
4074 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
4075 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
4077 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4079 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
4082 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4084 * grub-core/commands/efi/lsefimmap.c: Correct header.
4087 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4089 * util/grub-editenv.c (argp_parser): Don't pass translated strings
4090 as printf format strings; the translations might contain '%' which
4091 could cause a crash.
4093 * util/grub-fstest.c (argp_parser): Likewise.
4094 * util/grub-setup.c (argp_parser): Likewise.
4097 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4099 Use argp in grub-fstest.
4101 * util/grub-fstest.c: Don't include getopt.h.
4103 (root): New variable.
4104 (args_count): Likewise.
4106 (num_disks): Likewise.
4109 (debug_str): Likewise.
4111 (options): Transformed to argp.
4113 (main): Split argument parsing into ...
4114 (argp_parser): ... this. Changed to argp format.
4115 (argp): New variable.
4116 (main): Use argp_parse.
4118 2010-09-20 Tristan Gingold <gingold@free.fr>
4119 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
4120 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4122 * grub-core/commands/efi/lsefimmap.c: New file.
4123 * grub-core/Makefile.core.def (lsefimmap): New module.
4124 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
4126 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4128 Pause the execution (10s max) if any errors are displayed so the user
4129 has a chance to see them.
4131 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
4132 (grub_print_error): Increment grub_err_printed_errors.
4133 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
4134 execution if any errors were displayed.
4135 (show_menu): Remove old code for pause.
4136 * grub-core/normal/menu_entry.c (run): Likewise.
4137 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
4139 (grub_normal_get_char_counter): Likewise.
4140 * include/grub/err.h (grub_err_printed_errors): New external variable.
4141 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
4143 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4145 Support multiboot VBE info.
4147 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4148 Take VBE info into account.
4149 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
4150 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4151 Call fill_vbe_info when appropriate.
4152 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
4153 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
4155 (grub_multiboot_get_mbi_size): Take new tags into account.
4156 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
4157 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4158 Call fill_vbe_tag when appropriate.
4159 (grub_multiboot_make_mbi): Properly align tags.
4160 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
4162 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
4164 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
4166 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4168 Suport manual terminal geometry specification.
4170 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
4171 Save state in grub_ofconsole_terminfo_output.
4172 (grub_ofconsole_term): Use grub_terminfo_getwh.
4173 (grub_ofconsole_getwh): Removed.
4174 * grub-core/term/serial.c (grub_serial_getwh): Removed.
4175 (grub_serial_term): Use grub_terminfo_getwh.
4176 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
4177 (options): New struct.
4178 (OPTION_*): New enum.
4179 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
4180 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
4182 (grub_terminfo_getwh): New proto.
4183 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
4185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4187 Handle legacy "terminal" command.
4189 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
4191 (legacy_commands): Add terminal and title.
4192 (grub_legacy_parse): Handle terminal. Simplify title handling.
4194 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4196 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
4197 parameters overflow.
4199 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4201 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
4204 * docs/grub.texi (Shell-like scripting): Document `!'.
4205 (Network): Simplify using new i386-pc-pxe format. Mention
4210 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4212 * Makefile.am (SUBDIRS): Restore "."; it's important to force
4213 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
4216 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4218 * grub-core/commands/efi/lsefisystab.c: Correct header.
4219 * grub-core/commands/efi/lssal.c: Likewise.
4220 * grub-core/commands/testload.c: Likewise.
4222 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4224 * util/grub-mkrescue.in: Add explicit root argument to --set to
4225 prevent the UUID being interpreted as an argument to --set (matches
4226 previous change to prepare_grub_to_access_device).
4228 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4230 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
4231 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
4232 the verbosity of later #ifs.
4233 (find_partition_start): Define this function on FreeBSD too.
4234 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
4236 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
4239 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4241 * util/grub-editenv.c: Use argp instead of getopt.
4243 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4245 * util/grub-setup.c: Use argp instead of getopt.
4247 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4249 Use gnulib-tool to create gnulib source files.
4251 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
4252 grub-core/gnulib directories
4253 * .bzignore: Add **/.deps and autogenerated gnulib files
4254 * configure.ac: Assign auxiliary directory to build-aux, add invocation
4255 of gnulib macros, add grub-core/gnulib/Makefile
4256 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
4257 include m4 directory to aclocal.
4258 * Makefile.util.def: Remove direct compilation of gnulib source files
4259 and use the new grub-core/gnulib/libgnu.a.
4260 * build-aux/config.rpath: move config.rpath from top directory to
4262 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
4264 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
4265 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
4266 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
4268 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
4271 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4273 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
4274 grub-core/genmod.sh and grub-core/gensyminfo.sh
4276 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
4278 Add a test for echo command options.
4280 * tests/grub_cmd_echo.in: New test.
4281 * Makefile.util.def: Rules for new test.
4283 2010-09-20 Szymon Janc <szymon@janc.net.pl>
4285 Remove crc.mod and move crc command to hashsum.mod.
4286 Remove lib/crc.c - users updated to use gcrypt implementation.
4288 * grub-core/commands/crc.c: Removed.
4289 * grub-core/Makefile.core.def (crc): Module removed.
4290 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
4291 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
4292 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
4293 * grub-core/lib/crc.c: Removed.
4294 * include/grub/lib/crc.h: Removed.
4295 * Makefile.util.def (crc): Remove lib/crc.c
4296 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
4297 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
4298 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
4299 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
4300 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
4301 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
4303 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4305 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
4307 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4309 Split config.h for util and core.
4311 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
4314 (BSS_START_SYMBOL): Likewise.
4315 (END_SYMBOL): Likewise.
4316 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
4317 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
4318 * config.h.in: New file.
4319 * configure.ac: Use config-util.h as config define file.
4320 Rename MACHINE into GRUB_MACHINE. All users updated.
4321 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
4323 (NESTED_FUNC_ATTR): Likewise.
4324 Substitue new variables.
4325 (COND_HAVE_ASM_USCORE): New conditional.
4326 * grub-core/Makefile.am (ASM_PREFIX): New variable.
4327 (kernel_syms.lst): Use ASM_PREFIX.
4328 * grub-core/kern/emu/console.c: Include config-util.h.
4329 * grub-core/kern/emu/misc.c: Likewise.
4330 * grub-core/kern/emu/mm.c: Likewise.
4331 * include/grub/emu/misc.h: Likewise.
4332 * include/grub/libgcc.h: Likewise.
4334 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4336 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
4338 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
4339 Fix GRUB_TERM_KEY_* constants usage.
4340 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
4342 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4344 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
4346 * grub-core/bus/usb/uhci.c: Remove empty define.
4347 (grub_uhci_check_transfer): Add missing cast.
4348 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
4350 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
4352 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
4354 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4356 * grub-core/Makefile.core.def (legacycfg): Add
4357 lib/i386/pc/vesa_modes_table.c on emu.
4359 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4361 Reduce number of temporary files generated by build system.
4363 * grub-core/gencmdlist.sh: Removed.
4364 * grub-core/genfslist.sh: Removed.
4365 * grub-core/genhandlerlist.sh: Removed.
4366 * grub-core/genmodsrc.sh: Removed.
4367 * grub-core/genpartmaplist.sh: Removed.
4368 * grub-core/genparttoollist.sh: Removed.
4369 * grub-core/gentermiinallist.sh: Removed.
4370 * grub-core/genvideolist.sh: Removed.
4372 * grub-core/genmod.sh.in: New file.
4373 * grub-core/gensyminfo.sh.in: New file.
4375 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
4376 * conf/Makefile.extra-dist: Update with new files.
4377 * gentpl.py: Remove rules related to unnecessary temporary files.
4378 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
4380 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
4382 * grub-core/bus/usb/uhci.c: Remove empty #define.
4383 * grub-core/genmoddep.awk: Updated with new syminfo format.
4384 * util/bash-completion.d/Makefile.am: Add config.log to
4387 2010-09-19 Yves Blusseau <blusseau@zetam.org>
4389 * Makefile.util.def: Add forgotten $(LIBINTL) library.
4391 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4393 * util/grub-mkconfig.in: Check the config script for syntax errors
4396 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
4397 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4399 * Makefile.util.def (grub-install): Use util/grub-install.in on all
4401 * util/grub-install.in: Add EFI and IEEE1275 support.
4402 * util/i386/efi/grub-install.in: Removed.
4403 * util/ieee1275/grub-install.in: Likewise.
4405 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4407 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
4408 (grub_cmd_cmosclean): Likewise.
4409 (GRUB_MOD_INIT): Register command cmosclean.
4410 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
4411 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
4413 2010-09-18 Carles Pina i Estany <carles@pina.cat>
4414 2010-09-18 Aleš Nesrsta <starous@volny.cz>
4415 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4417 Add keyboard layouts support.
4419 * Makefile.util.def (grub-mklayout): New file.
4420 (grub-kbdcomp): New script.
4421 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
4422 Add keyboard_layouts.h.
4423 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
4424 commands/boot.c on yeeloong.
4425 (keylayouts): New module.
4426 * grub-core/bus/usb/ohci.c
4427 * grub-core/bus/usb/uhci.c
4428 * grub-core/bus/usb/usbhub.c (rescan): New variable.
4429 (grub_usb_add_hub): Poll interrupt pipe for device handling.
4430 (attach_root_port): Likewise.
4431 (poll_nonroot_hub): Likewise.
4432 (grub_usb_poll_devices): Likewise.
4433 (detach_device): Close transfer.
4434 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
4436 (grub_usb_bulk_setup_readwrite): Likewise.
4437 (grub_usb_bulk_finish_readwrite): Likewise.
4438 * grub-core/commands/keylayouts.c: New file.
4439 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
4440 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
4442 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
4444 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
4445 * include/grub/keyboard_layouts.h: New file.
4446 * util/grub-mklayout.c: New file.
4447 * util/grub-kbdcomp.in: Likewise.
4449 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
4454 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
4456 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
4457 (grub_upper_mem): Likewise.
4458 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
4459 * include/grub/memory.h (grub_memory_type_t): New enum.
4462 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4464 * grub-core/Makefile.core.def (lsapm): New module.
4465 * grub-core/commands/i386/pc/lsapm.c: New file.
4466 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
4467 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
4469 * include/grub/i386/pc/apm.h: New file.
4470 * include/multiboot.h (multiboot_apm_info): New struct.
4472 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4474 GRUB-legacy configuration file support.
4476 * Makefile.util.def (grub-menulst2cfg): New util.
4477 * docs/man/grub-menulst2cfg.h2m: New file.
4478 * grub-core/Makefile.core.def (legacycfg): New module.
4479 * grub-core/commands/legacycfg.c: New file.
4480 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
4481 (grub_normal_add_menu_entry): ... this.
4482 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
4483 (grub_normal_set_password): ...this.
4484 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
4485 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
4486 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
4487 * grub-core/lib/legacy_parse.c: New file.
4488 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
4489 * include/grub/i386/pc/vesa_modes_table.h: New file.
4490 * include/grub/legacy_parse.h: Likewise.
4491 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
4492 * util/grub-menulst2cfg.c: New file.
4494 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4496 * grub-core/kern/emu/hostdisk.c
4497 (convert_system_partition_to_system_disk): Initialise node.
4499 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4501 * grub-core/kern/emu/hostdisk.c
4502 (convert_system_partition_to_system_disk): Fix devmapper memory pool
4504 Reported and based on patch by: Modestas Vainius.
4506 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4508 Fix DM-RAID probing with recent versions of device-mapper udev
4511 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
4512 canonicalise device paths under /dev/mapper/.
4513 (convert_system_partition_to_system_disk): Compare the
4514 uncanonicalised path to /dev/mapper/ rather than the canonicalised
4515 path, since device nodes under /dev/mapper/ are often symlinks.
4517 2010-09-17 Yves Blusseau <blusseau@zetam.org>
4519 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
4521 2010-09-16 Yves Blusseau <blusseau@zetam.org>
4523 * configure.ac: Avoid some annoying error messages if freetype-config
4524 program is not found.
4526 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4528 Support RAID on virtio devices, and others.
4530 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
4532 [__MINGW32__] (grub_find_device): ... this.
4533 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
4534 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
4535 reasonable default if dir is NULL.
4536 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
4538 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
4539 (grub_guess_root_device): Update callers.
4540 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
4542 * util/raid.c (grub_util_getdiskname): Remove.
4543 (grub_util_raid_getmembers): Use grub_find_device rather than
4544 grub_util_getdiskname.
4546 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4548 * docs/grub.texi (serial): Remove obsolete comment about GRUB
4549 needing to be compiled with serial support.
4550 (ls): Indicate that multiple files are accepted.
4551 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
4552 indicate that multiple files are accepted.
4554 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4556 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
4557 libgrub_a_init.c, and util/bash-completion.d/grub.
4559 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4561 * util/grub-setup.c (setup): Fix incorrect container semantics.
4563 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4565 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
4567 Reported by: J. Nick Terry
4569 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4571 Move embedding routines to partmap sources files.
4573 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
4574 [GRUB_UTIL]: New variable.
4575 (gpt_partition_map_iterate): Set part.parent.
4576 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
4577 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
4578 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
4580 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
4581 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
4582 (grub_partition_map) [GRUB_UTIL]: New field embed.
4583 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
4584 (setup): Use ->embed.
4586 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4588 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
4590 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
4591 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
4593 2010-09-15 Yves Blusseau <blusseau@zetam.org>
4595 Add function to get completions from usage.
4597 * util/bash-completion.d/grub-completion.bash.in: Add function to get
4598 completions from usage. Use LC_ALL=C to get options properly.
4600 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4602 * grub-core/gnulib/basename-lgpl.c: Imported.
4603 * grub-core/gnulib/basename.c: Likewise.
4604 * grub-core/gnulib/dirname-lgpl.c: Likewise.
4605 * grub-core/gnulib/dirname.c: Likewise.
4606 * grub-core/gnulib/dirname.h: Likewise.
4607 * grub-core/gnulib/stripslash.c: Likewise.
4609 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4611 * grub-core/gnulib/error.c: Resynced.
4612 * grub-core/gnulib/getopt.c: Likewise.
4613 * grub-core/gnulib/getopt_int.h: Likewise.
4614 * grub-core/gnulib/regex.h: Likewise.
4615 * grub-core/gnulib/regex_internal.c: Likewise.
4616 * grub-core/gnulib/regex_internal.h: Likewise.
4618 2010-09-15 Szymon Janc <szymon@janc.net.pl>
4620 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
4621 CRC calculations and validity checks.
4622 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
4625 2010-09-15 Szymon Janc <szymon@janc.net.pl>
4627 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
4629 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4631 Fix incorrect echo options handling.
4632 Reported by: Yves Blusseau.
4634 * include/grub/command.h (grub_command_flags_t): New flags
4635 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
4636 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
4637 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
4639 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4641 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
4643 (GRUB_COMMAND_FLAG_MENU): Likewise.
4644 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4645 (GRUB_COMMAND_FLAG_TITLE): Removed.
4646 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4647 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
4648 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
4649 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
4650 (grub_command_flags_t): New enum. All users updated.
4652 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
4654 Fix solaris compilation.
4656 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
4657 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
4658 (grub-emu-list): Likewise.
4660 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4662 Remove deprecated root command.
4664 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
4667 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4669 * util/i386/pc/grub-setup.c: Merge this ...
4670 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
4671 * util/grub-setup.c: ... into this.
4672 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
4675 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4677 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
4680 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4682 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
4685 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4687 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
4688 explicit root argument to set to prevent UUID to be interpreted as
4691 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4693 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
4695 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4697 Don't export grub_gate_a20.
4699 * grub-core/kern/i386/pc/init.c: Remove leftovers.
4700 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
4702 (grub_gate_a20): ... this. All users updated.
4703 * include/grub/i386/pc/init.h: Removed. All users updated.
4705 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4707 Create euro.pf2 which supports most European languages.
4709 * Makefile.am (grubdata_DATA): Add euro.pf2.
4710 (euro.pf2): New target.
4711 (CLEANFILES): Add euro.pf2.
4713 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4715 * configure.ac: Disable emu-usb by default to prevent inadvertent
4718 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4720 Disable usbserial on grub-emu since our libusb code isn't good enough
4723 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
4724 (usbserial_pl2303): Likewise.
4725 (usbserial_ftdi): Likewise.
4727 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4729 * include/grub/disk.h (grub_disk): Remove has_partitions.
4731 * disk/loopback.c (grub_loopback): Remove has_partitions.
4733 (options): Remove partitions. All users updated.
4734 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
4735 * util/i386/pc/grub-setup.c (setup): copy partition table only when
4736 actual partition table is found.
4738 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4740 Remove readability checks (too many false negatives).
4742 * util/grub-install.in: Remove readability checks.
4743 * util/grub-mkconfig.in: Likewise.
4744 * util/grub.d/10_hurd.in: Likewise.
4745 * util/grub.d/10_kfreebsd.in: Likewise.
4746 * util/grub.d/10_linux.in: Likewise.
4747 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
4750 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4752 Enable acpi shutdown on all ACPI platforms.
4754 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
4755 on coreboo, multiboot and EFI.
4756 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
4757 (grub_acpi_halt): Likewise.
4758 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
4759 (grub_cmd_halt): Don't call grub_acpi_halt directly.
4760 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
4761 * grub-core/lib/i386/halt.c (grub_halt)
4762 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
4764 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4766 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
4769 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4771 * grub-core/video/efi_gop.c: Fix over-80-chars line.
4772 * grub-core/video/efi_uga.c: Likewise.
4774 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4776 Filter devaliases and never open same device twice.
4778 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
4779 (last_ihandle): Likewise.
4780 (ofdisk_hash_ent): New member shortest.
4781 (ofdisk_hash_add): Add canonical path too.
4782 (scan): New function.
4783 (grub_ofdisk_iterate): Iterate over hashed entries.
4784 (compute_dev_path): Don't add :0.
4785 (grub_ofdisk_open): Don't really open the disk.
4786 (grub_ofdisk_close): Avoid closing unrelated disk.
4787 (grub_ofdisk_read): Implement reopen logic.
4788 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
4790 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
4793 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4797 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
4798 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
4799 right address. Add sparc64_ieee1275_ldflags.
4800 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
4801 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
4802 to grub_host_to_target_addr
4803 (load_image): Likewise.
4805 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4807 * grub-core/normal/completion.c (complete_file): Handle device
4809 Fix based on patch by Doug Nazar.
4811 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4813 grub-mknetdir script.
4815 * Makefile.util.def (grub-mknetdir): New module.
4816 * tests/util/grub-shell.in: Support boot=net
4817 * util/grub-mknetdir.in: New file.
4819 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4821 videoinfo on non-vbe.
4823 * grub-core/Makefile.core.def (vbeinfo): Removed.
4825 (videoinfo): New module.
4826 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
4827 * grub-core/commands/i386/pc/vbetest.c: Removed.
4828 * grub-core/commands/videoinfo.c: New file.
4829 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
4831 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
4833 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
4834 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
4835 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
4836 mode_number. New parameter mode. All users updated.
4837 (grub_video_gop_iterate): New function.
4838 (grub_video_efi_gop): New member iterate.
4839 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
4840 (grub_vbe_set_video_mode): Remove setting useless fields.
4841 (vbe2videoinfo): New function.
4842 (grub_video_vbe_iterate): Likewise.
4843 (grub_video_vbe_setup): Use vbe2videoinfo.
4844 (grub_video_vbe_print_adapter_specific_info): New function.
4845 (grub_video_vbe_adapter): New fields iterate and
4846 print_adapter_specific_info.
4847 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
4849 (grub_video_mode_info): New field mode_number.
4850 (grub_video_adapter): New fields iterate and
4851 print_adapter_specific_info.
4853 2010-09-13 Tristan Gingold <gingold@free.fr>
4854 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
4855 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4857 * grub-core/commands/efi/lsefisystab.c: New file.
4858 * grub-core/commands/efi/lssal.c: Likewise.
4859 * grub-core/Makefile.core.def (lsacpi): New module.
4860 (lsefisystab): Likewise.
4861 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
4862 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
4863 (grub_efi_sal_system_table): New struct.
4864 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
4865 (grub_efi_sal_system_table_memory_descriptor): Likewise.
4866 (grub_efi_sal_system_table_platform_features): Likewise.
4867 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
4868 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
4869 (grub_efi_sal_system_table_ap_wakeup): Likewise.
4870 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
4872 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4874 Support explicit user claim that a device is BIOS-visible.
4876 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
4877 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
4878 * grub-core/kern/emu/hostdisk.c
4879 (convert_system_partition_to_system_disk): Support mdX.
4880 (find_system_device): New parameter add. All users updated.
4881 (grub_util_biosdisk_is_present): New function.
4882 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
4885 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4887 Search hints support.
4889 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
4892 2010-09-13 Yves Blusseau <blusseau@zetam.org>
4894 Bash completion script for util commands
4896 * Makefile.am: Add util/bash-completion.d directory
4897 * configure.ac: Likewise.
4898 * util/bash-completion.d/Makefile.am: New file.
4899 * util/bash-completion.d/grub-completion.bash.in: Likewise.
4901 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4903 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
4904 (print_backlog): set backlog_ucs4 and backlog_glyphs.
4905 Reported by: Yves Blusseau.
4907 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4909 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
4910 partition size and offset.
4912 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4914 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
4916 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4918 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
4920 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4922 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
4923 (grub_xvasprintf): Likewise.
4925 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4927 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
4929 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4931 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
4932 args ending with NULL.
4934 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4936 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
4939 2010-09-11 Szymon Janc <szymon@janc.net.pl>
4941 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
4943 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4945 Shutdown using ACPI.
4947 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
4948 * grub-core/commands/acpihalt.c: New file.
4949 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
4950 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
4951 (grub_acpi_halt): New proto.
4952 (GRUB_ACPI_SLP_EN): New const.
4953 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
4954 (GRUB_ACPI_OPCODE_*): New enum.
4955 (GRUB_ACPI_EXTOPCODE_*): Likewise.
4957 2010-09-11 Tristan Gingold <gingold@free.fr>
4958 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
4959 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4961 * commands/lsacpi.c: New file.
4962 * grub-core/Makefile.core.def (lsacpi): New module.
4963 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
4964 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
4965 (grub_acpi_madt_entry_header): New struct.
4966 (grub_acpi_madt): Likewise.
4967 (grub_acpi_madt_entry_interrupt_override): Likewise.
4968 (grub_acpi_madt_entry_sapic): Likewise.
4969 (grub_acpi_madt_entry_lsapic): Likewise.
4970 (grub_acpi_madt_entry_platform_int_source): Likewise.
4971 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
4972 (PRIuGRUB_UINT32_T): Likewise.
4973 (PRIxGRUB_UINT64_T): Likewise.
4975 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4977 Implement loading palette on ieee1275_fb.
4979 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
4980 (have_setcolors): Likewise.
4981 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
4982 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
4983 (grub_video_ieee1275_set_palette): Implement.
4985 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4986 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
4988 * util/grub-install.in (grub_partition): New variable.
4989 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
4990 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
4991 Fixes a bug reported by Yves Blusseau.
4993 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4997 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
4998 =grub_cpu_flush_cache on all mips and not only yeeloong.
4999 * configure.ac (COND_mips): New conditional.
5000 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
5002 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
5003 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
5004 [GRUB_LINKER_HAVE_INIT]: New function.
5005 (grub_emu_post_init): Likewise.
5006 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
5007 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
5008 * include/grub/cache.h (_mips): Include mips/cache.h.
5009 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
5010 LVM and RAID prototypes.
5011 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
5012 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
5015 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5017 * util/grub-install.in: Don't try to verify core.img until after
5018 running grub-mkimage to create it.
5020 2010-09-10 Robert Millan <rmh@gnu.org>
5022 * util/grub.d/10_hurd.in: Add misc readability checks.
5023 * util/grub.d/10_kfreebsd.in: Likewise.
5024 * util/grub.d/10_linux.in: Likewise.
5026 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5028 * util/grub-install.in: ${imgext} won't be defined here until the
5029 install branch is merged. For the meantime, only verify core.img on
5030 i386-pc and sparc64-ieee1275 platforms.
5032 2010-09-10 Robert Millan <rmh@gnu.org>
5034 Solaris support in grub_find_zpool_from_dir(). Thanks
5035 Seth Goldberg for referring to getextmntent() facility.
5037 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
5039 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
5041 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
5042 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
5043 method for finding zpool name.
5045 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5047 grub-fstest needs the host and hostfs modules while other utilities
5048 actively require those modules to be absent, so grub-fstest needs
5049 its own initialisation and finalisation code.
5051 * Makefile.am (grub_fstest.pp): New target.
5052 (grub_fstest_init.lst): Likewise.
5053 (grub_fstest_init.c): Likewise.
5054 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
5056 2010-09-10 Robert Millan <rmh@gnu.org>
5058 * configure.ac: Check for `struct statfs.f_fstypename' and
5059 `struct statfs.f_mntfromname'.
5061 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
5062 kFreeBSD-specific code.
5064 2010-09-10 Robert Millan <rmh@gnu.org>
5066 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
5067 on ZFS. Now non-main filesystems are supported as / too.
5069 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
5071 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
5072 and grub-core/disk/host.c to ...
5073 (grub-fstest): ... here. Having the host disk implementation
5074 present confuses grub-probe and other utility programs.
5076 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
5077 when writing to a file, not when writing to stdout.
5079 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
5081 * tests/partmap_test.in: New test for partitions.
5082 * Makefile.util.def: Rules for new test.
5084 2010-09-09 Robert Millan <rmh@gnu.org>
5086 * util/grub-probe.c (probe): Fix a pair of unhandled error
5089 2010-09-09 Robert Millan <rmh@gnu.org>
5091 Basic Btrfs support (detection and UUID).
5093 * grub-core/fs/btrfs.c: New file.
5094 * Makefile.util.def (library): Register btrfs.c.
5095 * grub-core/Makefile.core.def: Likewise.
5097 2010-09-08 Robert Millan <rmh@gnu.org>
5099 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
5100 with (optional) parameters to specify device and relative path.
5101 * util/grub-install.in: Use is_path_readable_by_grub() to
5102 verify readability of a few critical files.
5103 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
5104 verify readability of grub.cfg.new.
5106 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5108 Split minix.mod into minix.mod and minix2.mod.
5110 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
5111 * grub-core/Makefile.core.def (minix2): New module.
5112 * grub-core/fs/minix.c: Use definitions instead of runtime version
5114 * grub-core/fs/minix2.c: New file.
5116 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5118 Add new --boot-directory option to replace --root-directory
5120 * util/grub-install.in: Add new --boot-directory option
5121 * util/grub-reboot.in: Likewise.
5122 * util/grub-set-default.in: Likewise.
5124 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5126 * util/grub-mkconfig.in: Use new variable.
5128 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5130 * configure.ac: Define some useful variables.
5132 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5134 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5135 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
5136 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
5137 Use terminfo and don't use cursor-on/cursor-off unless it's known
5139 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
5140 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
5142 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
5144 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
5145 starts with "(,", fill the drive containing the loaded image in
5146 between those two characters, but expect that a full partition
5147 specification including partition map names will follow.
5149 2010-09-08 Robert Millan <rmh@gnu.org>
5151 * configure.ac: Remove `--enable-grub-fstest' option.
5152 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
5154 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
5155 `grub-fstest' instead of `grub-probe' for readability verification.
5156 * util/grub-probe.c (probe): Remove readability verification kludge.
5158 2010-09-08 Robert Millan <rmh@gnu.org>
5160 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
5161 initializing `GRUB_FS'.
5163 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
5165 Not command (!) support to GRUB script.
5167 * tests/grub_script_not.in: New test.
5168 * Makefile.util.def: Rules for new test.
5170 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
5171 ! command as a special case.
5172 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
5174 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5176 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
5179 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5181 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
5183 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5185 * docs/grub.texi (Shell-like scripting): Documentation for break,
5186 continue, shift and return commands.
5188 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
5190 Rename CD-ROM to cd on BIOS.
5192 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
5194 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
5196 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5198 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
5199 * util/grub-probe.c (main): Likewise.
5200 * util/i386/pc/grub-setup.c (main): Likewise.
5201 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
5202 Reported and debugged by: alexxy
5204 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5206 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
5209 2010-09-05 Jo Shields <directhex@apebox.org>
5211 * util/grub.d/30_os-prober.in: Add missing classes.
5213 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5215 * docs/grub.texi (Theme file format): Document new position format.
5217 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5219 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
5220 a table. Use @code instead of @verbatim.
5222 2010-09-05 Colin D Bennett <colin@gibibit.com>
5224 Gfxmenu documentation.
5226 * docs/grub.texi (Theme file format): New chapter.
5228 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5230 * grub-core/Makefile.core.def (xzio): New module.
5231 * grub-core/io/xzio.c: New file.
5232 * grub-core/lib/xzembed/xz.h: New file (from xembed).
5233 * grub-core/lib/xzembed/xz_config.h: Likewise.
5234 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
5235 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
5236 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
5237 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
5238 * grub-core/lib/xzembed/xz_private.h: Likewise.
5239 * grub-core/lib/xzembed/xz_stream.h: Likewise.
5240 * include/grub/file.h (grub_file_filter_id): New compression filter
5241 GRUB_FILE_FILTER_XZIO.
5243 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5245 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
5246 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
5249 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5251 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
5252 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
5254 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5256 Uncompressed checksum support.
5258 * grub-core/commands/hashsum.c (options): Add option --uncompress.
5259 (check_list): New parameter uncompress.
5260 (grub_cmd_hashsum): Handle --uncompress.
5262 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5264 Reintroduce testload.
5266 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
5268 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
5269 (GRUB_MOD_INIT): New function.
5270 (GRUB_MOD_FINI): Likewise.
5271 * grub-core/Makefile.core.def (testload): New module.
5273 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5275 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
5276 (uint8_t): New type.
5277 (uint16_t): Likewise.
5278 (uint32_t): Likewise.
5279 (uint64_t): Likewise.
5281 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5283 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
5285 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5287 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
5289 (grub_gzfile_open): Removed. All users updated.
5290 (GRUB_MOD_INIT): New function.
5291 (GRUB_MOD_FINI): Likewise.
5292 * grub-core/kern/file.c (grub_file_filters_all): New variable.
5293 (grub_file_filters_enabled): Likewise.
5294 (grub_file_open): Handle filters.
5295 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
5296 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
5297 * include/grub/file.h (grub_file_filter_id_t): New type.
5298 (grub_file_filter_t): Likewise.
5299 (grub_file_filters_all): New extern variable.
5300 (grub_file_filters_enabled): Likewise.
5301 (grub_file_filter_register): New inline function.
5302 (grub_file_filter_unregister): Likewise.
5303 (grub_file_filter_disable): Likewise.
5304 (grub_file_filter_disable_compression): Likewise.
5305 * include/grub/gzio.h: Removed.
5307 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5309 Filename expansion support for wildcards in GRUB script.
5311 * tests/grub_script_expansion.in: New test.
5312 * Makefile.util.def: Rule for new test.
5314 * grub-core/commands/wildcard.c: New file, implements filename
5315 expansion support for GRUB script.
5316 * grub-core/Makefile.core.def: Rule update for regexp.mod.
5317 * grub-core/script/argv.c: Cosmetic changes.
5318 * grub-core/script/execute.c (grub_script_arglist_to_argv):
5319 Refactored to perform wildcard expansion on arguments.
5320 * include/grub/script_sh.h (grub_script_wildcard_translator): New
5323 * tests/util/grub-shell.in: Fix quoting for read input.
5325 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5327 Support for updating environment variables with matched substrings
5330 * tests/grub_cmd_regexp.in: New test.
5331 * Makefile.util.def: Rule for new test.
5333 * grub-core/commands/regexp.c: New option -s to update environment
5334 variables with regexp matches.
5336 2010-09-04 Szymon Janc <szymon@janc.net.pl>
5338 * include/grub/file.h (grub_file): New member not_easly_seekable.
5339 (grub_file_seekable): New inline function.
5340 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
5342 (grub_gzio_open): Set not_easly_seekable.
5343 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
5344 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
5346 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5348 Support for options to appear multiple times on cmdline.
5350 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
5351 * grub-core/commands/extcmd.c: Support for repeatable option.
5352 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
5353 repeatable option support.
5355 Refactor menuentry into a regular command.
5357 * grub-core/commands/menuentry.c: New file, menuentry command
5359 * grub-core/Makefile.core.def: Rule update for normal.mod.
5360 * grub-core/normal/main.c: Moved menuentry creation to
5361 grub-core/commands/menuentry.c.
5362 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
5363 (grub_menu_execute_entry_real): Removed.
5364 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
5366 (grub_script_execute_menuentry): Removed.
5367 * grub-core/script/parser.y (menuentry): Removed.
5368 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
5369 * grub-core/script/yylex.l (menuentry): Removed.
5370 * include/grub/menu.h (grub_menu_init): New prototype.
5371 (grub_menu_fini): New prototype.
5372 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
5373 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
5374 (grub_script_execute_sourcecode): New prototype.
5376 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5378 "return" command for GRUB script functions.
5380 * tests/grub_script_return.in: New test.
5381 * Makefile.util.def: Rules for new test.
5383 * grub-core/script/execute.c (grub_script_return): New function.
5384 * grub-core/script/main.c: Register/unregister return commaond.
5385 * include/grub/script_sh.h (grub_script_return): New prototype.
5387 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5389 "setparams" command to update positional parameters.
5391 * tests/grub_script_setparams.in: New test.
5392 * Makefile.util.def: Rules for new test.
5394 * grub-core/script/argv.c (grub_script_argv_make): New function.
5395 * grub-core/script/execute.c (replace_scope): New function.
5396 (grub_script_setparams): New function.
5397 * grub-core/script/lexer.c: Remove unused variables.
5398 * grub-core/script/main.c: Register/unregister setparams command.
5399 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
5400 (grub_script_setparams): New prototype.
5402 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5404 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
5407 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5409 Support for passing block of commands as an argument to extcmds.
5411 * Makefile.util.def: Rules for new test.
5412 * tests/grub_script_blockarg.in: New test.
5413 * grub-core/tests/test_blockarg.c: New file, block argument
5414 command used in the test.
5416 * include/grub/extcmd.h (grub_extcmd_context): New struct.
5417 (grub_register_extcmd_prio): New function prototype.
5418 (grub_extcmd_dispatcher): New function prototype.
5419 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
5421 * include/grub/script_sh.h (struct grub_script): New members
5422 `children', `next_siblings' and `refcnt' for block arguments and
5424 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
5425 (grub_script_arg): New member `script' for block argument.
5426 (grub_script_argv): New member `script' for block argument.
5427 (grub_parser_param): New member `scripts' for block argument.
5428 (grub_script_mem_free): New extern function prototype.
5429 (grub_script_ref): New function prototype.
5430 (grub_script_unref): New function prototype.
5432 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
5433 extcmd form to support block arguments.
5434 * grub-core/script/argv.c: Block arguments support.
5435 * grub-core/script/execute.c: Likewise.
5436 * grub-core/script/lexer.c: Likewise.
5437 * grub-core/script/main.c: Likewise.
5438 * grub-core/script/script.c: Likewise.
5439 * grub-core/script/parser.y: Likewise. New `block' and `block0'
5442 * grub-core/commands/acpi.c: Update extcmd implementations with
5443 grub_extcmd_context_t.
5444 * grub-core/commands/cat.c: Likewise.
5445 * grub-core/commands/echo.c: Likewise.
5446 * grub-core/commands/extcmd.c: Likewise.
5447 * grub-core/commands/hashsum.c: Likewise.
5448 * grub-core/commands/hdparm.c: Likewise.
5449 * grub-core/commands/help.c: Likewise.
5450 * grub-core/commands/hexdump.c: Likewise.
5451 * grub-core/commands/i386/cpuid.c: Likewise.
5452 * grub-core/commands/i386/pc/drivemap.c: Likewise.
5453 * grub-core/commands/i386/pc/halt.c: Likewise.
5454 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5455 * grub-core/commands/iorw.c: Likewise.
5456 * grub-core/commands/keystatus.c: Likewise.
5457 * grub-core/commands/loadenv.c: Likewise.
5458 * grub-core/commands/ls.c: Likewise.
5459 * grub-core/commands/lspci.c: Likewise.
5460 * grub-core/commands/memrw.c: Likewise.
5461 * grub-core/commands/probe.c: Likewise.
5462 * grub-core/commands/search_wrap.c: Likewise.
5463 * grub-core/commands/setpci.c: Likewise.
5464 * grub-core/commands/sleep.c: Likewise.
5465 * grub-core/disk/loopback.c: Likewise.
5466 * grub-core/hello/hello.c: Likewise.
5467 * grub-core/loader/i386/bsd.c: Likewise.
5468 * grub-core/loader/xnu.c: Likewise.
5469 * grub-core/term/gfxterm.c: Likewise.
5470 * grub-core/term/serial.c: Likewise.
5471 * grub-core/tests/lib/functional_test.c: Likewise.
5473 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5475 Multi-line quoted strings support.
5477 * grub-core/script/lexer.c (append_newline): Removed.
5478 (grub_script_lexer_yywrap): Refactored.
5479 (grub_script_lexer_init): Refactored.
5480 * grub-core/script/yylex.l (yywrap): New function.
5481 (grub_lexer_resplit): New function.
5482 (grub_lexer_unput): New function.
5483 * include/grub/script_sh.h (grub_lexer_param): New members, unput
5485 * tests/grub_script_echo1.in: Added few more testcases.
5487 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
5489 * grub-core/kern/misc.c: Don't add abort alias in utils.
5490 Reported by: echoline.
5492 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
5494 Add missing files into "make dist" tarball for other platforms.
5496 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
5497 * conf/Makefile.common (dist_noinst_DATA): New variable.
5498 * conf/Makefile.extra-dist: Added missing make dist files.
5499 * grub-core/Makefile.core.def: Likewise.
5501 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5503 Compress grub_prefix.
5505 * grub-core/boot/i386/pc/lnxboot.S: Use
5506 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
5507 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
5508 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
5509 GRUB_MACHINE_PREFIX_END. All users updated.
5510 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
5511 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
5513 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5514 * util/grub-mkimage.c (image_target_desc): Change data_end to
5515 prefix_end. All users updated.
5517 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5519 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
5521 (grub_openbsd_boot): Likewise.
5522 (grub_netbsd_boot): Likewise.
5523 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
5524 (grub_xnu_boot): Likewise.
5526 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5528 * configure.ac: Clean LIBS variable after tests.
5530 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5532 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
5534 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5536 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
5537 echo if libdevmapper will be used.
5539 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
5541 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
5542 constant for the same file.
5544 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5546 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
5548 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5550 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
5553 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5555 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
5556 required by the boot protocol.
5558 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
5559 ebp and edi members.
5560 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
5561 state.ebp and state.edi.
5562 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
5563 %ebp and %edi according to grub_relocator32_ebp and
5564 grub_relocator32_edi respectively.
5565 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
5568 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5570 Add i386-pc-pxe image target.
5572 * util/grub-mkimage.c (image_target_desc): New enum value
5574 (image_targets): New target i386-pc-pxe.
5575 (generate_image): Handle i386-pc-pxe image.
5577 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5581 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
5582 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
5584 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
5585 (grub_pxe_pxenv): Correct type.
5587 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5589 * NEWS: Document most of the important changes since 1.98.
5591 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5593 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
5594 generated manual page) a little.
5596 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5598 * docs/grub.texi: Add myself as an author.
5600 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
5602 * Makefile.util.def (libgrub.a): Add missing sunpc.
5603 Reported by: Seth Goldberg.
5605 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5607 Interrupt wrapping and code simplifications.
5609 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
5610 x86_noieee1275 which are functionaly equivalent in this case.
5611 (grub-install): Make source on each platform explicit. Enable on
5613 * gentpl.py (x86_efi_pc): Removed group.
5614 (x86_noefi): Likewise.
5615 (i386_noefi): Likewise.
5616 (x86_noieee1275): Likewise.
5617 (i386_noieee1275): Likewise.
5618 (i386_noefi_noieee1275): Likewise.
5619 (i386_pc_qemu_coreboot): Likewise.
5620 (i386_coreboot_multiboot): Likewise.
5621 (i386_pc_coreboot_multiboot_qemu): Likewise.
5622 (x86_noefi_mips): Likewise.
5623 (noieee1275): Likewise.
5624 (ieee1275_mips): Likewise.
5625 (noemu_noieee1275): Likewise.
5628 (videoinkernel): Likewise.
5629 (videomodules): Likewise.
5630 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
5631 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
5632 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
5633 include/grub/loader.h, include/grub/msdos_partition.h,
5634 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
5635 include/grub/machine/console.h, include/grub/machine/vga.h,
5636 include/grub/machine/vbe.h, include/grub/machine/init.h,
5637 include/grub/machine/kernel.h, include/grub/cpu/time.h,
5638 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
5639 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
5640 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
5641 * grub-core/Makefile.core.def (kernel): Explicit the source for
5642 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
5643 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
5644 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
5645 Use videoinkernel tag.
5646 (usb): Enable on all usb.
5647 (usbserial_common): Likewise.
5648 (usbserial_pl2303): Likewise.
5649 (usbserial_ftdi): Likewise.
5650 (uhci): Enable on all x86.
5651 (ohci): Enable on all pci.
5652 (cmostest): Enable on all CMOS.
5653 (acpi): Include commands/acpi.c on all platforms.
5654 (halt): Add relevant lib/*/halt.c.
5655 (hdparm): Enable on all pci.
5657 (usbtest): Enable on all usb.
5658 (ata): Enable on all pci.
5659 (ata_pthru): Likewise.
5660 (usbms): Enable on all usb.
5661 (usb_keyboard): Likewise.
5662 (font): Use tag videomodules.
5664 (datetime): Use tag cmos. Enable on all noemu.
5665 (mmap): Use tags common and x86.
5666 (gfxterm): Use tag videomodules.
5668 (bitmap_scale): Likewise.
5669 (video_fb): Likewise.
5671 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
5672 adjust padding accordingly. All users updated.
5673 (grub_ohci_transaction): Fix bad format specification.
5674 (GRUB_MOD_INIT): Add asserts for struct size.
5675 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
5676 (grub_alloc_td): Likewise.
5677 (grub_free_queue): Likewise.
5678 (grub_uhci_transfer): Likewise.
5679 (grub_uhci_transaction): Fix bad format specification.
5680 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
5681 (grub_usb_bulk_readwrite): Likewise.
5682 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
5683 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
5685 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
5687 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
5688 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
5690 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
5692 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
5693 ... here. Transformed into C. Made static.
5694 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
5696 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
5697 ... here. Transformed into C. Made static.
5698 * grub-core/kern/i386/pc/startup.S
5699 (grub_biosdisk_check_int13_extensions): Moved from here ...
5700 * grub-core/disk/i386/pc/biosdisk.c
5701 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
5703 * grub-core/kern/i386/pc/startup.S
5704 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
5705 * grub-core/disk/i386/pc/biosdisk.c
5706 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
5707 Transformed into C. Made static.
5708 * grub-core/kern/i386/pc/startup.S
5709 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
5710 * grub-core/disk/i386/pc/biosdisk.c
5711 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
5712 Transformed into C. Made static.
5713 * grub-core/kern/i386/pc/startup.S
5714 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
5715 * grub-core/disk/i386/pc/biosdisk.c
5716 (grub_biosdisk_get_diskinfo_standard): ... here.
5717 Transformed into C. Made static.
5718 * grub-core/kern/i386/pc/startup.S
5719 (grub_biosdisk_get_num_floppies): Moved from here ...
5720 * grub-core/disk/i386/pc/biosdisk.c
5721 (grub_biosdisk_get_num_floppies): ... here.
5722 Transformed into C. Made static.
5723 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
5725 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
5726 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
5727 Transformed into C. Made static.
5728 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
5729 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
5730 Transformed into C. Made static.
5731 * grub-core/kern/i386/ieee1275/init.c: Removed.
5732 * grub-core/kern/i386/misc.S: Likewise.
5733 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
5734 Splitted from here ...
5735 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
5736 Transformed into C. Made static. All users updated.
5737 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
5738 Transformed into C. Made static. All users updated.
5739 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
5741 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
5742 Transformed into C. Made static. All users updated.
5743 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
5745 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
5746 Transformed into C. Made static. All users updated.
5747 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
5748 Removed (replaced by C version).
5749 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
5751 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
5752 Transformed into C. Made static.
5753 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
5755 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
5756 ... here. Transformed into C.
5757 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
5759 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
5760 ... here. Transformed into C.
5761 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
5763 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
5764 ... here. Transformed into C. Made static.
5765 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
5767 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
5768 ... here. Transformed into C.
5769 * grub-core/kern/i386/pc/startup.S
5770 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
5771 * grub-core/video/i386/pc/vbe.c
5772 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
5773 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
5775 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
5776 ... here. Transformed into C.
5777 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
5779 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
5780 ... here. Transformed into C.
5781 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
5783 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
5784 ... here. Transformed into C.
5785 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
5787 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
5788 ... here. Transformed into C.
5789 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
5791 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
5792 ... here. Transformed into C. Made static.
5793 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
5795 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
5796 ... here. Transformed into C. Made static.
5797 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
5799 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
5800 ... here. Transformed into C. Made static.
5801 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
5802 pxe_rm_entry as third argument.
5803 (grub_bios_interrupt): New function.
5804 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
5805 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
5806 of calling grub_stop.
5807 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
5808 * grub-core/lib/efi/halt.c (grub_halt): ...here.
5809 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
5810 * grub-core/lib/emu/halt.c (grub_halt): ... here.
5811 * grub-core/lib/i386/halt.c: Moved from here ...
5812 * grub-core/lib/i386/halt.c: ... here.
5813 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
5814 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
5815 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
5817 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
5818 * include/grub/i386/coreboot/init.h: Removed.
5819 * include/grub/i386/multiboot/init.h: Likewise.
5820 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
5821 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
5822 * include/grub/i386/pc/int.h: New file.
5823 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
5824 (grub_pxe_scan): Removed.
5825 (grub_pxe_call): Update prototype.
5826 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
5828 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
5829 * include/grub/i386/qemu/init.h: Removed.
5830 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
5832 (grub_halt): Likewise.
5833 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
5834 (grub_reboot): Likewise.
5835 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
5836 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
5837 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
5839 2010-08-30 Robert Millan <rmh@gnu.org>
5841 * NEWS: Document addition of ZFS support in `grub-install' and
5844 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
5846 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
5849 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5851 Remove leftover embedding of font objects.
5853 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
5854 * util/grub-install.in (font): Removed.
5855 * util/grub-mkimage.c (generate_image): Remove font support. All users
5858 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5860 Remove leftover embedding of font objects.
5862 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
5863 * util/grub-install.in (font): Removed.
5864 * util/grub-mkimage.c (generate_image): Remove font support. All users
5867 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5869 * docs/grub.texi (Network): Fix reference to pxe_blksize.
5870 Reported by: Ian Turner
5872 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5874 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
5875 timeout to avoid indefinite boot stalling.
5877 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5879 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
5880 (grub_env_write_color_highlight): Likewise.
5882 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5884 * grub-core/normal/term.c (print_more): Return to normal and not
5885 to standard state after printing "---MORE---".
5887 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5889 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
5890 Mask out the bit 0x80 since it has other meaning that specifiing color.
5892 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
5894 New relocator. Allows for more kernel support and more straightforward
5897 * Makefile.am (BOOTTARGET): New variable.
5899 (linux.init.x86_64): New target.
5900 (linux.init.i386): Likewise.
5901 (multiboot.elf): Likewise.
5902 (kfreebsd.elf): Likewise.
5903 (kfreebsd.aout): Likewise.
5904 (pc-chainloader.elf): Likewise.
5905 (pc-chainloader.bin): Likewise.
5906 (ntldr.elf): Likewise.
5907 (ntldr.bin): Likewise.
5908 (multiboot2.elf): Likewise.
5909 (kfreebsd.init.x86_64): Likewise.
5910 (kfreebsd.init.i386): Likewise.
5911 (knetbsd.init.i386): Likewise.
5912 (kopenbsd.init.i386): Likewise.
5913 (knetbsd.init.x86_64): Likewise.
5914 (kopenbsd.init.x86_64): Likewise.
5915 (linux-initramfs.i386): Likewise.
5916 (linux-initramfs.x86_64): Likewise.
5917 (kfreebsd-mfsroot.i386.img): Likewise.
5918 (knetbsd.image.i386): Likewise.
5919 (kopenbsd.image.i386): Likewise.
5920 (kopenbsd.image.x86_64): Likewise.
5921 (knetbsd.miniroot-image.i386.img): Likewise.
5922 (kfreebsd-mfsroot.x86_64.img): Likewise.
5923 (knetbsd.image.x86_64): Likewise.
5924 (knetbsd.miniroot-image.x86_64.img): Likewise.
5925 (kfreebsd-mfsroot.i386.gz): Likewise.
5926 (bootcheck-kfreebsd-i386): Likewise.
5927 (kfreebsd-mfsroot.x86_64.gz): Likewise.
5928 (bootcheck-kfreebsd-x86_64): Likewise.
5929 (knetbsd.miniroot-image.i386.gz): Likewise.
5930 (bootcheck-knetbsd-i386): Likewise.
5931 (bootcheck-kopenbsd-i386): Likewise.
5932 (bootcheck-kopenbsd-x86_64): Likewise.
5933 (knetbsd.miniroot-image.x86_64.gz): Likewise.
5934 (bootcheck-knetbsd-x86_64): Likewise.
5935 (bootcheck-linux-i386): Likewise.
5936 (bootcheck-linux-x86_64): Likewise.
5937 (bootcheck-linux16-i386): Likewise.
5938 (bootcheck-linux16-x86_64): Likewise.
5939 (bootcheck-multiboot): Likewise.
5940 (bootcheck-multiboot2): Likewise.
5941 (bootcheck-kfreebsd-aout): Likewise.
5942 (bootcheck-pc-chainloader): Likewise.
5943 (bootcheck-ntldr): Likewise.
5944 (CLEANFILES): Add new targets.
5945 (BOOTCHECKS): New variable.
5946 (.PHONY): Add bootchecks.
5947 (SUCCESSFUL_BOOT_STRING): New variable.
5948 (BOOTCHECK_TIMEOUT): Likewise.
5949 (bootcheck): New target
5950 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
5951 * configure.ac: Correct efiemu excuse.
5952 * docs/grub.texi (Supported kernels): New chapter.
5953 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
5954 include/grub/mm_private.h. Simplify inclusion of
5955 include/grub/boot.h, include/grub/loader.h
5956 and include/grub/msdos_partition.h
5957 (KERNEL_HEADER_FILES) [i386_coreboot]:
5958 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
5959 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
5960 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
5961 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
5962 include/grub/machine/loader.h.
5963 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
5964 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
5966 (pci.mod): Enable on i386-multiboot.
5967 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
5968 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
5970 (relocator.mod): Rewritten.
5971 (aout.mod): Enable on all x86.
5972 (bsd.mod): Likewise.
5973 (ntldr.mod): New module.
5974 (linux.mod): Use loader/i386/linux.c on all x86.
5975 (xnu.mod): Enable on all x86.
5976 (vga_text.mod): disable on EFI and QEMU.
5977 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
5978 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
5979 * grub-core/efiemu/loadcore.c: Likewise.
5980 * grub-core/efiemu/main.c: Likewise.
5981 (grub_efiemu_exit_boot_services): Removed.
5982 (grub_efiemu_finish_boot_services): Likewise.
5983 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
5985 * grub-core/efiemu/i386/nocfgtables.c: New file.
5986 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
5987 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
5988 (grub_efi_finish_boot_services): Moved from here ...
5989 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
5990 Fille finish memory map and related data.
5991 (finish_mmap_buf): New variable.
5992 (grub_efi_uintn_t finish_mmap_size): Likewise.
5993 (grub_efi_uintn_t finish_key): Likewise.
5994 (grub_efi_uintn_t finish_desc_size): Likewise.
5995 (grub_efi_uint32_t finish_desc_version): Likewise.
5996 (grub_efi_is_finished): Likewise.
5997 (grub_efi_get_memory_map): Use saved memory map if EFI is already
5999 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
6000 (grub_elf64_phdr_iterate): Likewise.
6001 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
6002 (grub_os_area_size): Likewise.
6003 (grub_machine_init): Don't reserve os area.
6004 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
6005 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
6006 * grub-core/kern/i386/loader.S: Removed.
6007 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
6008 (grub_os_area_size): Likewise.
6009 (grub_machine_init): Don't reserve os area.
6010 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
6011 Don't call grub_dl_unload_all.
6012 Don't include loader.S.
6013 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6014 Declare the memory after _end as available.
6015 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
6016 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
6017 (GRUB_MM_ALLOC_MAGIC): Moved from here...
6018 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
6019 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
6020 * include/grub/mm_private.h (grub_mm_header): ... here.
6021 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
6022 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
6023 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
6024 (grub_mm_region): ..here. Removed addr. Added pre_size.
6026 * grub-core/kern/mm.c (base): Renamed to ...
6027 (grub_mm_base): ... this. Made global.
6028 (grub_real_malloc): Alloc from end of region.
6029 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
6030 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
6031 * grub-core/kern/powerpc/cache_flush.S: ... here.
6032 * grub-core/lib/efi/relocator.c: New file.
6033 * grub-core/lib/i386/relocator.c: Rewritten.
6034 * grub-core/lib/i386/relocator16.S: New file.
6035 * grub-core/lib/i386/relocator32.S: Likewise.
6036 * grub-core/lib/i386/relocator64.S: Likewise.
6037 * grub-core/lib/i386/relocator_asm.S: Rewritten.
6038 * grub-core/lib/i386/relocator_common.S: New file.
6039 * grub-core/lib/ieee1275/relocator.c: Likewise.
6040 * grub-core/lib/mips/relocator.c: Rewritten.
6041 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
6042 stylistic adjustments.
6043 * grub-core/lib/powerpc/relocator.c: New file.
6044 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
6045 * grub-core/lib/relocator.c: Rewritten.
6046 * grub-core/lib/x86_64/relocator_asm.S: New file.
6047 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
6048 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
6049 (bsd_tag): New struct.
6050 (tags): New variable.
6051 (tags_last): Likewise.
6052 (netbsd_module): New struct.
6053 (netbsd_mods): New variable.
6054 (netbsd_mods_last): Likewise.
6055 (openbsd_opts): New parameter "serial".
6056 (OPENBSD_SERIAL_ARG): New definition.
6057 (netbsd_opts): New parameter "serial".
6058 (NETBSD_SERIAL_ARG): New definition.
6059 (grub_freebsd_add_meta): Reorganised into ...
6060 (grub_bsd_add_meta): ...this. All users updated.
6061 (grub_freebsd_add_mmap): Reorganised into ...
6062 (generate_e820_mmap): ...this...
6063 (grub_bsd_add_mmap): ...and this. All users updated.
6064 (grub_freebsd_list_modules): Use tags.
6065 (grub_netbsd_add_meta_module): New function.
6066 (grub_netbsd_list_modules): Likewise.
6067 (grub_freebsd_boot): Use relocator and finish EFI.
6068 (grub_openbsd_boot): Likewise.
6069 (grub_netbsd_setup_video): New function.
6070 (grub_netbsd_add_modules): Likewise.
6071 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
6073 (grub_bsd_unload): Unload tags.
6074 (grub_bsd_load_aout): Use relocator.
6075 (grub_bsd_elf32_size_hook): New function.
6076 (grub_bsd_elf32_hook): Use relocator.
6077 (grub_bsd_elf64_size_hook): New function.
6078 (grub_bsd_elf64_hook): Use relocator.
6079 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
6080 (grub_bsd_load): Zero-out openbsd_ramdisk.
6081 (grub_bsd_load): Use relocator.
6082 (grub_cmd_openbsd): Support serial.
6083 (grub_cmd_netbsd): Support modules.
6084 (grub_cmd_freebsd_module): Use relocator.
6085 (grub_netbsd_module_load): New function.
6086 (grub_cmd_netbsd_module): Likewise.
6087 (grub_cmd_openbsd_ramdisk): Likewise.
6088 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
6090 (GRUB_MOD_FINI): Unregister new commands.
6091 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
6092 (grub_freebsd_load_elfmodule_obj): Use relocator.
6093 (grub_freebsd_load_elfmodule): Likewise.
6094 (grub_freebsd_load_elf_meta): Likewise.
6095 (grub_netbsd_load_elf_meta): New function.
6096 (grub_openbsd_find_ramdisk): Likewise.
6097 * grub-core/loader/i386/bsd_helper.S: Removed.
6098 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
6099 * grub-core/loader/i386/bsd_trampoline.S: Removed.
6100 * grub-core/loader/i386/efi/linux.c: Likewise.
6101 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
6102 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
6103 (DEFAULT_VIDEO_MODE): Likewise.
6104 (real_mode_target): New variable.
6105 (prot_mode_target): Likewise.
6106 (initrd_mem_target): Likewise.
6107 (relocator): Likewise.
6108 (efi_mmap_buf): Likewise.
6109 (efi_mmap_size): Likewise.
6110 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
6111 (free_pages): Use relocator.
6112 (allocate_pages): Account for efi_mmap and use relocator. Return error.
6113 (grub_linux_setup_video): Return error.
6114 (grub_linux_trampoline_start): Removed.
6115 (grub_linux_trampoline_end): Likewise.
6116 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
6117 andd video parameters depending on firmware.
6118 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
6119 [GRUB_MACHINE_EFI]: Pass EFI parameters.
6120 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
6121 (grub_cmd_initrd): Use relocator.
6122 * grub-core/loader/i386/linux_trampoline.S: Removed.
6123 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
6124 (elf_sec_entsize): Likewise.
6125 (elf_sec_shstrndx): Likewise.
6126 (elf_sections): Likewise.
6127 (grub_multiboot_load): Use relocator.
6128 (grub_multiboot_get_mbi_size): Account for sections.
6129 (grub_multiboot_make_mbi): Use relocator and support sections.
6130 (grub_multiboot_add_elfsyms): New function.
6131 (grub_multiboot_free_mbi): Free sections.
6132 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
6133 (grub_linux_real_target): Likewise.
6134 (grub_linux_real_chunk): Likewise.
6135 (grub_linux16_prot_size): Likewise.
6136 (grub_linux16_boot): Use relocator.
6137 (grub_linux_unload): Unload relocator.
6138 (grub_cmd_linux): Use relocator.
6139 (grub_cmd_initrd): Likewise.
6140 * grub-core/loader/i386/pc/ntldr.c: New file.
6141 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
6142 Don't try to guess CPU frequency.
6143 (grub_xnu_set_video): Stretch bitmap.
6144 (grub_xnu_boot): Use relocator.
6145 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
6146 (grub_linux_unload): Free relocator.
6147 (grub_linux_load32): Use relocator.
6148 (grub_linux_load64): Likewise.
6149 (grub_cmd_initrd): Likewise.
6150 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
6151 (grub_multiboot_unload): Unload relocator.
6152 (grub_cmd_multiboot): Use relocator.
6153 (grub_cmd_module): Likewise.
6154 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
6155 Use relocator and support sections.
6156 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
6157 (elf_sec_entsize): Likewise.
6158 (elf_sec_shstrndx): Likewise.
6159 (elf_sections): Likewise.
6160 (grub_multiboot_load): Use relocator.
6161 (grub_multiboot_get_mbi_size): Account for sections.
6162 (grub_multiboot_make_mbi): Use relocator and support sections.
6163 (grub_multiboot_add_elfsyms): New function.
6164 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
6165 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
6166 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
6167 Prototype changed. All users updated.
6168 (grub_xnu_align_heap): Simplified.
6169 (grub_xnu_writetree_toheap): Likewise.
6170 (grub_xnu_unload): Unload relocator.
6171 (grub_cmd_xnu_kernel): Use relocator.
6172 (grub_cmd_xnu_kernel64): Likewise.
6173 (grub_xnu_register_memory): Simplified.
6174 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
6175 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
6177 (grub_console_checkkey): Likewise.
6178 (grub_console_getkey): Likewise.
6179 (grub_console_getwh): Likewise.
6180 (grub_console_getxy): Likewise.
6181 (grub_console_gotoxy): Likewise.
6182 (grub_console_cls): Likewise.
6183 (grub_console_setcolorstate): Likewise.
6184 (grub_console_setcursor): Likewise.
6185 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
6186 * grub-core/tests/boot/kbsd.init-i386.S: New file.
6187 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
6188 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
6189 * grub-core/tests/boot/kernel-8086.S: Likewise.
6190 * grub-core/tests/boot/kernel-i386.S: Likewise.
6191 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
6192 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
6193 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
6194 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
6195 * grub-core/tests/boot/knetbsd.cfg: Likewise.
6196 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
6197 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
6198 * grub-core/tests/boot/linux.cfg: Likewise.
6199 * grub-core/tests/boot/linux.init-i386.S: Likewise.
6200 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
6201 * grub-core/tests/boot/linux16.cfg: Likewise.
6202 * grub-core/tests/boot/multiboot.cfg: Likewise.
6203 * grub-core/tests/boot/multiboot2.cfg: Likewise.
6204 * grub-core/tests/boot/ntldr.cfg: Likewise.
6205 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
6206 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
6207 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
6209 * include/grub/dl.h (grub_dl_unload_all): Removed.
6210 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
6211 (grub_efi_finish_boot_services): Change prototype.
6212 (grub_efi_is_finished): New variable.
6213 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
6215 (grub_efiemu_finish_boot_services): Removed.
6216 (grub_machine_efiemu_init_tables): New prototype.
6217 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
6218 (grub_elf64_phdr_iterate): Likewise.
6219 * include/grub/i386/bsd.h: Include relocator.h.
6220 (freebsd_tag_header): New struct.
6221 (grub_openbsd_bios_mmap): Removed.
6222 (grub_unix_real_boot): Removed.
6223 (grub_freebsd_load_elfmodule32): Changed prototype.
6224 (grub_freebsd_load_elfmodule_obj64): Likewise.
6225 (grub_freebsd_load_elf_meta32): Likewise.
6226 (grub_freebsd_load_elf_meta64): Likewise.
6227 (grub_freebsd_add_meta): Removed.
6228 (grub_netbsd_load_elf_meta32): New prototype.
6229 (grub_netbsd_load_elf_meta64): Likewise.
6230 (grub_bsd_add_meta): Likewise.
6231 (grub_openbsd_ramdisk_descriptor): New struct.
6232 (grub_openbsd_find_ramdisk32): New prototype.
6233 (grub_openbsd_find_ramdisk64): Likewise.
6234 * include/grub/i386/coreboot/loader.h: Removed.
6235 * include/grub/i386/efi/loader.h: Likewise.
6236 * include/grub/i386/ieee1275/loader.h: Likewise.
6237 * include/grub/i386/linux.h (linux_kernel_header): Change void *
6239 * include/grub/i386/loader.h: Removed.
6240 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
6242 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
6243 (grub_phys_addr_t): New type.
6244 (grub_vtop): New inline function.
6245 (grub_map_memory): Likewise.
6246 (grub_unmap_memory): Likewise.
6247 * include/grub/i386/multiboot/loader.h: Removed.
6248 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
6249 (NETBSD_BTINFO_CONSOLE): New definition.
6250 (NETBSD_BTINFO_SYMTAB): Likewise.
6251 (NETBSD_BTINFO_MODULES): Likewise.
6252 (NETBSD_BTINFO_FRAMEBUF): Likewise.
6253 (grub_netbsd_bootinfo): New struct.
6254 (grub_netbsd_btinfo_common): Use explicit bitsize.
6255 (grub_netbsd_btinfo_mmap_entry): Removed.
6256 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
6257 (grub_netbsd_btinfo_bootdisk): New struct.
6258 (grub_netbsd_btinfo_symtab): Likewise.
6259 (grub_netbsd_btinfo_serial): Likewise.
6260 (grub_netbsd_btinfo_modules): Likewise.
6261 (grub_netbsd_btinfo_framebuf): Likewise.
6262 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
6263 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
6265 (grub_openbsd_bootargs): Use explicit bitsize.
6266 (grub_openbsd_bootarg_console): New struct.
6267 (GRUB_OPENBSD_COM_MAJOR): New definition.
6268 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
6269 * include/grub/i386/pc/efiemu.h: Removed.
6270 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
6271 * include/grub/i386/qemu/loader.h: Removed.
6272 * include/grub/i386/relocator.h: Rewritten.
6273 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
6274 * include/grub/mips/memory.h: New file.
6275 * include/grub/mips/multiboot.h: Rewritten.
6276 * include/grub/mips/relocator.h: Rewritten.
6277 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
6278 (grub_vtop): New function.
6279 (grub_map_memory): Likewise.
6280 (grub_unmap_memory): Likewise.
6281 * include/grub/misc.h (ALIGN_DOWN): New definition.
6282 * include/grub/mm.h (grub_mm_check_real): New proto.
6283 (GRUB_MM_CHECK): New definition.
6284 * include/grub/mm_private.h: New file.
6285 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
6286 (grub_multiboot_get_mbi_size): Removed.
6287 (grub_multiboot_make_mbi): Change prottype.
6288 (grub_multiboot_set_accepts_video): New proto.
6289 (grub_multiboot_add_elfsyms): Likewise.
6290 (grub_multiboot_payload_eip): New variable.
6291 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
6293 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
6295 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
6296 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
6297 * include/grub/powerpc/ieee1275/loader.h: Removed.
6298 * include/grub/powerpc/memory.h: New file.
6299 * include/grub/powerpc/relocator.h: Likewise.
6300 * include/grub/relocator.h: Likewise.
6301 * include/grub/relocator_private.h: Likewise.
6302 * include/grub/sparc64/ieee1275/loader.h: Removed.
6303 * include/grub/x86_64/memory.h: New file.
6304 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
6305 (grub_xnu_heap_malloc): Likewise.
6306 (grub_xnu_heap_real_start): Removed.
6307 (grub_xnu_heap_start): Likewise.
6308 (grub_xnu_relocator): New variable.
6309 (grub_xnu_heap_target_start): Likewise.
6310 * tests/util/grub-shell.in: Support non-pc.
6311 * util/grub-mkimage.c (image_targets): Fix multiboot target.
6313 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6315 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
6317 (grub_bidi_logical_to_visual): Check that malloc succeded.
6318 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
6320 (grub_xputs_normal): Likewise.
6322 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6324 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
6327 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6329 * grub-core/efiemu/runtime/efiemu.sh: Removed.
6331 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6333 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
6335 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6337 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
6340 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
6342 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
6344 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6346 * grub-core/normal/term.c (print_more): Fix a memory leak.
6347 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
6348 (grub_xputs_normal): Likewise.
6350 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6352 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
6353 the begining of the string
6355 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6357 * grub-core/script/script.c (grub_script_parse): Free parsed on
6360 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6362 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
6365 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6367 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
6370 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6372 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
6373 (scroll_up): Fix a memory leak.
6375 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6377 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
6380 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
6382 Handle USB pendrives exposed as floppies.
6384 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
6386 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
6387 Check for partitions on all devices.
6389 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6391 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
6392 (readkey): Likewise.
6394 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
6396 Multiple variable names support to "export" command.
6398 * normal/context.c (grub_cmd_export): "export" command supports
6399 multiple variable names.
6401 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
6403 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
6404 --target=drive output to Mach device name.
6406 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6408 New Automake based build system for GRUB.
6410 * ABOUT-NLS: New file.
6411 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
6412 in Makefile.util.def file.
6413 * Makefile.util.def: New file. Autogen build definitions file for
6415 * conf/Makefile.common: New file. Common variables for GRUB host
6416 utils and target modules.
6417 * conf/Makefile.extra-dist: New file. Extra files for make dist.
6418 * docs/Makefile.am: New file. Automake file for docs.
6419 * gentpl.py: New file. Python script to generate Autogen
6421 * grub-core/Makefile.am: New file. GRUB target modules' rules
6422 that doesn't fit in Makefile.core.def file.
6423 * grub-core/Makefile.core.def: New file. Autogen build
6424 definitions file for GRUB target modules.
6425 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
6426 specific setjmp.S file.
6427 * po/Makefile.am: New file.
6429 * .bzrignore: New ignores.
6430 * INSTALL: New requirements, without Ruby.
6431 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
6432 * autogen.sh: Updated to invoke autogen as necessary.
6433 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
6434 and defines for Automake conditionals.
6435 * geninit.sh: Refactoring.
6437 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
6439 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
6442 * include/grub/test.h: Fix functional test modules' naming.
6443 * grub-core/tests/example_functional_test.c: Fix test module name.
6445 * util/misc.c: Hosted versions' of grub functions for libgrub.a
6446 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
6447 * util/grub-editenv.c: Likewise.
6448 * util/grub-fstest.c: Likewise.
6449 * util/grub-mkdevicemap.c: Likewise.
6450 * util/grub-mkfont.c: Likewise.
6451 * util/grub-mkimage.c: Likewise.
6452 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6453 * util/grub-probe.c: Likewise.
6454 * util/grub-script-check.c: Likewise.
6455 * util/i386/pc/grub-setup.c: Likewise.
6456 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6458 * tests/util/grub-shell.in: Fix override directory path.
6459 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
6460 * util/import_gcry.py: Create Makefile.gcry.def file instead.
6462 * util/lvm.c: Update #includes.
6463 * util/raid.c: Likewise.
6464 * util/resolve.c: Likewise.
6465 * grub-core/bus/emu/pci.c: Likewise.
6466 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
6467 * grub-core/lib/posix_wrap/string.h: Likewise.
6468 * grub-core/kern/emu/main.c: Likewise.
6470 * grub-core/gensymlist.sh: New file. Script for generating kernel
6472 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
6474 * grub-core/gentrigtables.c: Fix unused variable warnings.
6476 * Makefile.in: Removed.
6477 * conf/any-emu.rmk: Removed.
6478 * conf/common.rmk: Removed.
6479 * conf/i386-coreboot.rmk: Removed.
6480 * conf/i386-efi.rmk: Removed.
6481 * conf/i386-ieee1275.rmk: Removed.
6482 * conf/i386-multiboot.rmk: Removed.
6483 * conf/i386-pc.rmk: Removed.
6484 * conf/i386-qemu.rmk: Removed.
6485 * conf/i386.rmk: Removed.
6486 * conf/mips-yeeloong.rmk: Removed.
6487 * conf/mips.rmk: Removed.
6488 * conf/powerpc-ieee1275.rmk: Removed.
6489 * conf/sparc64-ieee1275.rmk: Removed.
6490 * conf/tests.rmk: Removed.
6491 * conf/x86-efi.rmk: Removed.
6492 * conf/x86_64-efi.rmk: Removed.
6493 * gendistlist.sh: Removed.
6494 * geninitheader.sh: Removed.
6495 * genkernsyms.sh.in: Removed.
6496 * genmk.rb: Removed.
6497 * gensymlist.sh.in: Removed.
6498 * mkinstalldirs: Removed.
6500 * grub-core/boot: ... to here.
6502 * grub-core/bus: ... to here.
6503 * commands: Moved ...
6504 * grub-core/commands: ... to here.
6506 * grub-core/disk: ... to here.
6508 * grub-core/efiemu: ... to here.
6510 * grub-core/font: ... to here.
6512 * grub-core/fs: ... to here.
6513 * gencmdlist.sh: Moved ...
6514 * grub-core/gencmdlist.sh: ... to here.
6515 * genemuinit.sh: Moved ...
6516 * grub-core/genemuinit.sh: ... to here.
6517 * genemuinitheader.sh: Moved ...
6518 * grub-core/genemuinitheader.sh: ... to here.
6519 * genfslist.sh: Moved ...
6520 * grub-core/genfslist.sh: ... to here.
6521 * genhandlerlist.sh: Moved ...
6522 * grub-core/genhandlerlist.sh: ... to here.
6523 * genmoddep.awk: Moved ...
6524 * grub-core/genmoddep.awk: ... to here.
6525 * genmodsrc.sh: Moved ...
6526 * grub-core/genmodsrc.sh: ... to here.
6527 * genpartmaplist.sh: Moved ...
6528 * grub-core/genpartmaplist.sh: ... to here.
6529 * genparttoollist.sh: Moved ...
6530 * grub-core/genparttoollist.sh: ... to here.
6531 * genterminallist.sh: Moved ...
6532 * grub-core/genterminallist.sh: ... to here.
6533 * gentrigtables.c: Moved ...
6534 * grub-core/gentrigtables.c: ... to here.
6535 * genvideolist.sh: Moved ...
6536 * grub-core/genvideolist.sh: ... to here.
6537 * gettext: Moved ...
6538 * grub-core/gettext: ... to here.
6539 * gfxmenu: Moved ...
6540 * grub-core/gfxmenu: ... to here.
6542 * grub-core/gnulib: ... to here.
6544 * grub-core/hello: ... to here.
6546 * grub-core/hook: ... to here.
6548 * grub-core/io: ... to here.
6550 * grub-core/kern: ... to here.
6552 * grub-core/lib: ... to here.
6554 * grub-core/loader: ... to here.
6556 * grub-core/mmap: ... to here.
6558 * grub-core/normal: ... to here.
6559 * partmap: Moved ...
6560 * grub-core/partmap: ... to here.
6561 * parttool: Moved ...
6562 * grub-core/parttool: ... to here.
6564 * grub-core/script: ... to here.
6566 * grub-core/term: ... to here
6567 * tests/example_functional_test.c: Moved ...
6568 * grub-core/tests/example_functional_test.c: ... to here.
6569 * tests/lib/functional_test.c: Moved ...
6570 * grub-core/tests/lib/functional_test.c: ... to here.
6571 * tests/lib/test.c: Moved ...
6572 * grub-core/tests/lib/test.c: ... to here.
6574 * grub-core/video: ... to here.
6576 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6578 Replace --enable-grub-emu-modules with grub-emu-lite.
6580 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
6583 * include/grub/emu/misc.h (grub_emu_init): New prototype.
6584 * kern/emu/full.c: New file. For grub-emu specific initialization.
6585 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
6586 * kern/emu/main.c: Call initialization function grub_emu_init.
6588 * Makefile.in: Include grub-emu-lite in install.
6589 * commands/parttool.c: Use grub_no_autoload to differentiate
6590 between grub-emu and grub-emu-lite.
6591 * include/grub/misc.h: New variable grub_no_autoload.
6593 * conf/any-emu.rmk: New rules for grub-emu-lite.
6594 * configure.ac: Remove --enable-grub-emu-modules.
6595 * genmk.rb: Cleanup unnecessary rules.
6596 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
6598 * normal/main.c: Don't load list files on grub-emu-lite.
6599 * util/misc.c (grub_arch_sync_caches): Removed.
6601 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
6603 * kern/mips/startup.S (grub_prefix): Update comment to refer to
6604 grub-mkimage rather than grub-mkelfimage.
6605 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
6607 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
6609 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
6610 a key after CapsLock or NumLock. It's just a qemu bug.
6612 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6614 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
6615 needed by libusb wrapper.
6617 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6619 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
6621 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6623 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
6624 --nounzip is passed.
6626 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
6628 USB hotunplugging and USB serial support.
6630 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
6631 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
6632 (grub_uhci_transfer): Respect timeout and set *actual.
6633 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
6634 non-standard length.
6635 (grub_usb_device_attach): Autoload modules.
6636 (GRUB_MOD_INIT): Set grub_term_poll_usb.
6637 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
6638 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
6640 (grub_usb_add_hub): Fill nports and children.
6641 (attach_root_port): Receive hub instead of controller.
6642 All users updated. Fill hub->devices.
6643 (grub_usb_root_hub): Allocate hub->devices.
6644 (detach_device): New function.
6645 (poll_nonroot_hub): Fill children and detach devices.
6646 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
6647 actual arguments. All users updated.
6648 (grub_usb_bulk_read_extended): New function.
6649 * bus/usb/serial/common.c: New file.
6650 * bus/usb/serial/ftdi.c: Likewise.
6651 * bus/usb/serial/pl2303.c: Likewise.
6652 * commands/terminal.c (handle_command): Support wildcard.
6653 * commands/usbtest.c: Output "Unknown" instead of empty string.
6654 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
6655 (usbserial_common_mod_SOURCES): New variable.
6656 (usbserial_common_mod_CFLAGS): Likewise.
6657 (usbserial_common_mod_LDFLAGS): Likewise.
6658 (pkglib_MODULES): Add usbserial_pl2303.mod.
6659 (usbserial_pl2303_mod_SOURCES): New variable.
6660 (usbserial_pl2303_mod_CFLAGS): Likewise.
6661 (usbserial_pl2303_mod_LDFLAGS): Likewise.
6662 (pkglib_MODULES): Add usbserial_ftdi.mod.
6663 (usbserial_ftdi_mod_SOURCES): New variable.
6664 (usbserial_ftdi_mod_CFLAGS): Likewise.
6665 (usbserial_ftdi_mod_LDFLAGS): Likewise.
6666 (pkglib_MODULES): Add serial.mod.
6667 (serial_mod_SOURCES): New variable.
6668 (serial_mod_CFLAGS): Likewise.
6669 (serial_mod_LDFLAGS): Likewise.
6670 * conf/i386-pc.rmk: Likewise.
6671 * conf/mips-yeeloong.rmk: Likewise.
6672 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
6673 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6674 * disk/usbms.c (first_available_slot): New variable.
6675 (grub_usbms_attach): Don't reuse free slots due to potential cache
6677 * include/grub/serial.h: Moved to ..
6678 * include/grub/ns8250.h: ...this.
6679 * include/grub/serial.h: New file.
6680 * include/grub/term.h (grub_term_poll_usb): New variable.
6681 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
6682 readkey. All users updated.
6683 (grub_terminfo_output_state): Pass term to put.
6684 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
6685 (grub_usb_controller_dev): Add timeout and actual arguments to
6686 transfer. All users updated.
6687 (grub_usb_interface): New field detach_data.
6688 (grub_usb_device): New fields children and nports.
6689 (grub_usb_ep_type_t): New type.
6690 (grub_usb_get_ep_type): New function.
6691 (grub_usb_bulk_read_extended): Likewise.
6692 * include/grub/usbdesc.h (grub_usb_desc): New type.
6693 * include/grub/usbserial.h: New file.
6694 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
6695 * kern/term.c (grub_term_poll_usb): New variable.
6696 (grub_getkey): Call grub_term_poll_usb if set.
6697 (grub_checkkey): Likewise.
6698 (grub_getkeystatus): Likewise.
6699 * term/serial.c: Moved controller-specific parts to ...
6700 * term/ns8250.c: ... here.
6701 * term/serial.c: Mostly rewritten.
6702 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
6705 2010-08-20 Robert Millan <rmh@gnu.org>
6707 Make kFreeBSD code more generic to support ext2fs as root, ufs as
6708 a separate module and maybe other interesting combinations.
6710 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
6711 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
6712 (kfreebsd_entry): Add generic filesystem module load routine.
6713 Map GRUB `ext2' to kFreeBSD `ext2fs'.
6715 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
6717 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
6718 "numcenter" (I misunderstood the purpose of this entry).
6719 * docs/grub.texi (sendkey): Likewise.
6721 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
6723 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
6724 status flag options; simply omitting the option is equivalent and
6725 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
6726 (keysym_table): Rename "num5numlock" to "numlock".
6727 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
6728 can uniformly say that only the last of multiple `sendkey'
6729 invocations has any effect.
6730 * docs/grub.texi (sendkey): New section.
6732 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
6734 * commands/i386/pc/sendkey.c (options): Fix three typos.
6736 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6738 Implement sendkey support.
6740 * commands/i386/pc/sendkey.c: New file.
6741 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
6742 (sendkey_mod_SOURCES): New variable.
6743 (sendkey_mod_CFLAGS): Likewise.
6744 (sendkey_mod_LDFLAGS): Likewise.
6746 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
6748 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
6749 fix warnings from Autoconf.
6751 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
6753 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
6754 to avoid false positives with some assemblers that output things
6755 like "someprefix_func" as part of their output.
6757 2010-08-15 Robert Millan <rmh@gnu.org>
6759 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
6761 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
6762 grub_get_libzfs_handle() errors.
6764 2010-08-14 Robert Millan <rmh@gnu.org>
6766 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
6767 filesystem is not ZFS.
6769 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6771 Fix for misspelled color names defaulting to black/black (bug
6772 reported by Doug Nazar)
6774 * include/grub/normal.h (grub_parse_color_name_pair): Add return
6775 status to prototype.
6776 * normal/color.c (grub_parse_color_name_pair): Return failure
6778 (grub_env_write_color_normal): Ignore bad color names.
6779 (grub_env_write_color_highlight): Likewise.
6780 * normal/main.c (GRUB_MOD_INIT): Set default color names.
6782 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6784 "shift" command support to GRUB script.
6786 * include/grub/script_sh.h (grub_script_shift): New prototype.
6787 * script/execute.c (grub_script_shift): New function.
6788 * script/main.c (grub_script_init): Register shift command.
6789 (grub_script_fini): Unregister shift command.
6790 * util/grub-script-check.c (grub_script_cmd_shift): New function.
6792 * tests/grub_script_shift.in: New testcase.
6793 * conf/tests.rmk: Rules for new testcase.
6795 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6797 "continue" command support to GRUB script.
6799 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
6800 (grub_script_break): Continue support.
6801 * script/main.c (grub_script_init): Register continue command.
6802 (grub_script_fini): Unregister continue command.
6804 * tests/grub_script_continue.in: New testcase.
6805 * conf/tests.rmk: Rules for new testcase.
6807 2010-08-12 BVK Chaitanya <bvk@dbook>
6809 "break" command support to GRUB script.
6811 * conf/common.rmk: Rule updates to grub-script-check.
6812 * include/grub/misc.h (grub_min): New function.
6813 * include/grub/script_sh.h (grub_script_init): New prototype.
6814 (grub_script_fini): New prototype.
6815 (grub_script_break): New prototype.
6816 * script/main.c (grub_script_init): New function.
6817 (grub_script_fini): New function.
6818 * script/execute.c (grub_script_break): New function.
6819 * normal/main.c: Calls to grub_script_{init,fini}.
6820 * util/grub-script-check.c (grub_script_break): New function.
6822 * tests/grub_script_break.in: New testcase.
6823 * conf/tests.rmk: Rules for new test case.
6825 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6827 Function parameters support to GRUB script.
6829 * script/yylex.l (VARIABLE): Regular expression update.
6830 * script/function.c (grub_script_function_call): Moved ...
6831 * script/execute.c (grub_script_function_call): ... to here.
6832 (grub_script_execute_arglist_to_argv): Removed.
6833 (grub_script_arglist_to_argv): New function.
6834 * script/argv.c: New file.
6835 (grub_script_argv_free): New function.
6836 (grub_script_argv_next): Likewise.
6837 (grub_script_argv_append): Likewise.
6838 (grub_script_argv_split_append): Likewise.
6839 * include/grub/script_sh.h (grub_script_argv): New struct.
6840 (grub_script_argv_free): New function.
6841 (grub_script_argv_next): Likewise.
6842 (grub_script_argv_append): Likewise.
6843 (grub_script_argv_split_append): Likewise.
6845 * conf/common.rmk (normal.mod): New source script/argv.c.
6847 * tests/grub_script_echo1.in: More tests.
6848 * tests/grub_script_vars1.in: Likewise.
6849 * tests/grub_script_functions.in: New test case.
6850 * conf/tests.rmk: Rules for new testcase.
6852 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6854 Remove grub_script_cmdblock struct.
6856 * include/grub/script_sh.h: Remove grub_script_cmdblock.
6857 * script/parser.y: Likewise.
6858 * script/execute.c: Rename cmdblock suffix to cmdlist.
6859 * script/script.c: Likewise.
6860 * util/grub-script-check.c: Likewise.
6862 2010-08-11 Yves Blusseau <blusseau@zetam.org>
6864 * .bzrignore: add grub-macho2img
6866 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
6868 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
6870 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
6872 Remove the dump of sm712 initialisation sequence.
6874 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
6875 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
6876 (GRUB_VGA_IO_MISC_WRITE): Likewise.
6877 (GRUB_VGA_CR_*): Added many registers.
6878 (GRUB_VGA_SR_*): Likewise.
6879 (GRUB_VGA_GR_*): Likewise.
6880 (grub_vga_write_arx): New function.
6881 (grub_video_hw_config): New struct.
6882 (grub_vga_set_geometry): New function.
6883 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
6884 GRUB_PCI_CLASS_SUBCLASS_VGA.
6885 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
6886 * video/sm712.c (grub_sm712_write_reg): New function
6887 (grub_sm712_read_reg): Likewise.
6888 (grub_sm712_sr_write): Likewise.
6889 (grub_sm712_gr_write): Likewise.
6890 (grub_sm712_cr_write): Likewise.
6891 (grub_sm712_write_arx): Likewise.
6892 (grub_sm712_cr_shadow_write): Likewise.
6893 (grub_sm712_write_dda_lookup): Likewise.
6894 (grub_video_sm712_setup): Initialise the video rather then
6895 blindly replay the dump.
6896 (main) [TEST]: Add a routine to be able to compile as standalone for
6898 * video/sm712_init.c (sm712_init): Removed.
6899 (sm712_sr_seq1): New array.
6900 (sm712_sr_seq2): Likewise.
6902 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
6904 * include/grub/vga.h: Add missing grub/pci.h include.
6906 2010-08-10 Yves Blusseau <blusseau@zetam.org>
6908 * util/grub-macho2img.c (main): fix typo
6910 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
6912 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
6913 (grub_vga_gr_read): Likewise.
6914 (grub_vga_cr_write): Likewise.
6915 (grub_vga_cr_read): Likewise.
6916 (grub_vga_sr_write): Likewise.
6917 (grub_vga_sr_read): Likewise.
6918 (grub_vga_palette_read): Likewise.
6919 (grub_vga_palette_write): Likewise.
6920 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
6921 (grub_sm712_sr_read): New function.
6922 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
6923 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
6925 2010-08-09 Robert Millan <rmh@gnu.org>
6927 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
6928 out unused variables on non-ZFS build.
6930 2010-08-08 Robert Millan <rmh@gnu.org>
6932 Fix path generation for sub-filesystems in ZFS.
6934 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
6937 2010-08-08 Robert Millan <rmh@gnu.org>
6939 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
6941 2010-08-08 Robert Millan <rmh@gnu.org>
6943 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
6944 exist, issue a proper error message (rely on `ls' for translated
6947 2010-08-08 Robert Millan <rmh@gnu.org>
6949 Fix grub-probe invocation.
6951 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
6953 2010-08-04 Robert Millan <rmh@gnu.org>
6955 * configure.ac: Remove checks for getfsstat() and getmntany().
6956 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
6957 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
6958 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
6959 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
6960 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
6962 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
6963 via find_mount_point_from_dir() and getfsstat() / getmntany().
6965 2010-08-04 Robert Millan <rmh@gnu.org>
6967 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
6968 (grub_find_zpool_from_mount_point): Merge into ...
6969 (grub_find_zpool_from_dir): ... this.
6970 * kern/emu/misc.c: Likewise.
6973 (grub_make_system_path_relative_to_its_root): Replace
6974 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
6975 with grub_find_zpool_from_dir().
6976 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
6978 2010-08-04 Robert Millan <rmh@gnu.org>
6980 Support OpenSolaris in ZFS device resolution.
6982 * configure.ac: Check for getmntany().
6983 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
6984 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
6987 2010-08-03 Robert Millan <rmh@gnu.org>
6991 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
6992 * include/grub/emu/misc.h: ... here.
6994 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
6995 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
6997 * util/misc.c: Remove `<grub/util/libzfs.h>'.
6998 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
6999 (grub_get_libzfs_handle): Move to ...
7000 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
7001 (grub_get_libzfs_handle): ... here.
7003 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
7005 * script/execute.c (grub_script_execute_cmdline): Check for NULL
7006 as command name case.
7008 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
7010 * disk/raid.c (insert_array): Select unique numbers for named arrays
7011 as well, for use as keys in the disk cache.
7013 2010-08-01 Robert Millan <rmh@gnu.org>
7015 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
7016 kFreeBSD device name, except on ZFS where the filesystem label is
7018 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
7019 `/boot/zfs/zpool.cache'.
7020 Set mountfrom kernel variable using ${kfreebsd_device}.
7022 2010-08-01 Robert Millan <rmh@gnu.org>
7024 Make it even harder to use uninitialized `libzfs_handle' (and
7025 make the interface a bit simpler).
7027 * include/grub/util/misc.h (grub_util_init_libzfs)
7028 (libzfs_handle): Remove.
7029 (grub_get_libzfs_handle): New prototype.
7031 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
7033 (grub_util_init_libzfs): Remove.
7034 (grub_get_libzfs_handle): New function.
7036 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
7037 grub_get_libzfs_handle() to obtain a libzfs handle instead of
7038 accessing `libzfs_handle' directly.
7040 2010-08-01 Robert Millan <rmh@gnu.org>
7042 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7043 (grub_find_zpool_from_mount_point): New function prototypes.
7045 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7046 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7048 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7049 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7052 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7053 finding zpool from mount point into ...
7054 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7056 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7057 requested path is part of a ZFS pool, use
7058 grub_find_zpool_from_mount_point() to detect its filesystem name,
7059 and generate a path with `/fsname@path' syntax.
7061 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7063 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
7064 (void) rather than () so that this is a proper prototype.
7066 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7068 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
7070 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7072 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
7073 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
7075 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7077 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
7079 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7081 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
7083 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7085 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
7086 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
7087 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
7089 (Shell-like scripting): Add real content.
7090 (Serial terminal): Suggest `terminal_input serial; terminal_output
7091 serial' rather than putting the two commands on separate lines,
7092 since console input will be inoperative after the first command.
7093 (menuentry): Document --class, --users, and --hotkey options.
7094 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
7095 Vladimir Serbinenko).
7097 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7098 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7100 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
7102 2010-08-01 Robert Millan <rmh@gnu.org>
7104 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7105 (grub_find_zpool_from_mount_point): New function prototypes.
7107 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7108 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7110 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7111 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7114 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7115 finding zpool from mount point into ...
7116 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7118 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7119 requested path is part of a ZFS pool, use
7120 grub_find_zpool_from_mount_point() to detect its filesystem name,
7121 and generate a path with `/fsname@path' syntax.
7123 2010-08-01 Robert Millan <rmh@gnu.org>
7125 Prevent accidental use of uninitialized libzfs_handle.
7127 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
7128 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
7129 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
7131 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7133 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
7134 util/grub.d/10_linux.in). Fixes Debian bug #591093.
7136 2010-08-01 Robert Millan <rmh@gnu.org>
7138 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
7140 2010-07-31 Robert Millan <rmh@gnu.org>
7142 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
7144 2010-07-31 Robert Millan <rmh@gnu.org>
7146 * kern/emu/misc.c: Add missing license header.
7148 2010-07-31 Robert Millan <rmh@gnu.org>
7150 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
7152 * include/grub/util/libnvpair.h: Include `<config.h>'.
7153 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
7154 declaring libnvpair prototypes ourselves.
7155 * include/grub/util/libzfs.h: Include `<config.h>'.
7156 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
7157 declaring libzfs prototypes ourselves.
7159 (libzfs_handle): Moved to ...
7160 * include/grub/util/misc.h (libzfs_handle): ... here.
7161 Include `<grub/util/libzfs.h>'.
7163 2010-07-30 Robert Millan <rmh@gnu.org>
7165 * include/grub/emu/misc.h: Add missing license header.
7167 2010-07-30 Robert Millan <rmh@gnu.org>
7169 Enable `grub-probe -t device' resolution on ZFS.
7171 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
7172 * include/grub/util/libnvpair.h: New file.
7173 * include/grub/util/libzfs.h: New file.
7175 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
7176 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
7177 `<grub/util/libnvpair.h>'.
7178 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
7180 (find_mount_point_from_dir): New static function.
7181 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
7183 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
7184 find_root_device_from_libzfs() before ressorting to find_root_device().
7186 * include/grub/util/misc.h (grub_util_init_libzfs): New function
7188 * util/misc.c: Include `<grub/util/libzfs.h>'.
7189 (grub_util_init_libzfs): New function.
7190 [HAVE_LIBZFS] (libzfs_handle): New global variable.
7191 [HAVE_LIBZFS] (fini_libzfs): New static function.
7192 (grub_util_init_libzfs): New function.
7193 * util/grub-probe.c (main): Call grub_util_init_libzfs().
7195 2010-07-30 Robert Millan <rmh@gnu.org>
7197 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
7198 (xmalloc, xrealloc, xstrdup, xasprintf): Add
7199 `warn_unused_result' attribute.
7200 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
7201 (grub_xasprintf, grub_xvasprintf): Likewise.
7202 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
7204 2010-07-29 Robert Millan <rmh@gnu.org>
7206 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
7207 (probe): Handle `PRINT_FS_LABEL'.
7208 (main): Handle `-t fs_label'.
7210 2010-07-29 Robert Millan <rmh@gnu.org>
7212 * configure.ac: Remove grub-mkisofs checks.
7214 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
7216 * util/ieee1275/grub-install.in: Don't use empty grub_device.
7217 Reported by: Lennart Sorensen.
7219 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7221 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
7222 prior to terminal_input/terminal_output separation. It's been over 1.5
7223 years and those versions weren't widely deployed.
7225 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
7227 * disk/raid.c (insert_array): Don't count named arrays when looking
7228 for unused array numbers.
7229 Reported and tested by: Michael Guntsche.
7231 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7233 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
7234 implementation of this so that grub-emu links again, with a note
7235 that this should support hotplugging in the future.
7237 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7239 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7241 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7243 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
7245 (grub_loopback_close): Remove empty function.
7246 (grub_loopback_dev): Remove close method.
7248 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7250 Disable EFI cursor when the EFI console becomes inactive.
7252 * term/efi/console.c (grub_efi_console_init): New function.
7253 (grub_efi_console_fini): New function.
7254 (grub_console_term_output): Register init and fini methods.
7256 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7258 * tests/util/grub-shell-tester.in: Remove bashism and declare as
7261 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7263 * disk/loopback.c (grub_loopback): Replace filename with file.
7264 (delete_loopback): Handle new semantics.
7265 (grub_cmd_loopback): Likewise.
7266 (grub_loopback_iterate): Likewise.
7267 (grub_loopback_close): Likewise.
7269 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7271 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
7273 Reported by: Tito Keitel.
7275 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7277 * docs/grub.texi (Naming convention): Document new naming convention.
7279 2010-07-20 Vadim Solomin <vadic052@gmail.com>
7280 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7282 Generate device.map in something closer to the old ordering.
7284 * util/deviceiter.c (struct device): New declaration.
7285 (compare_file_names): Rename to ...
7286 (compare_devices): ... this. Sort by kernel name in preference to
7287 the stable by-id name, but keep the latter as a fallback comparison.
7288 Update header comment.
7289 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
7290 of `struct device' rather than of plain file names.
7292 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
7294 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
7297 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7299 * commands/acpi.c (setup_common_tables): Use sizeof instead of
7301 (setv1table): Likewise.
7303 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7305 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
7306 removing the homehost if present.
7307 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
7308 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
7309 removing the homehost if present.
7310 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
7312 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
7314 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
7315 parameter. Set its pointer target to 0.
7316 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
7317 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
7318 `data_offset' value from the superblock for 1.x metadata.
7319 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
7321 (insert_array): Record the start sector of data on the device.
7322 (grub_raid_register): Pass start_sector parameters to
7323 grub_raid_list->detect and insert_array.
7324 * include/grub/raid.h (struct grub_raid_array): Add start_sector
7326 (struct grub_raid): Add start_sector parameter to `detect'.
7328 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
7329 __attribute__ ((packed)), leaving a comment.
7330 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
7331 (grub_mdraid_detect_09): ... here and ...
7332 (grub_mdraid_detect_1x): ... here.
7334 2010-07-20 Peter Henn <peter.henn@web.de>
7336 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
7337 chunk size and disk size, which are already given as sector counts
7338 as distinct from the 0.90 units. Fetch the correct device number
7339 from the role table instead of using the table index.
7341 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
7343 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
7344 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
7345 (WriteMostly1): New macro.
7346 Set array->name to NULL for metadata format 0.90. Add support for
7347 metadata 1.x. Fix some comments.
7348 * disk/raid.c (): Add support for name based RAID arrays. Fix a
7350 * util/getroot.c (grub_util_get_grub_dev): Add support for
7351 /dev/md/name style devices.
7353 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7355 * .bzrignore: Ignore 20_linux_xen.
7357 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
7359 * util/import_unicode.py: Remove unnecessary imports.
7361 2010-07-17 Aleš Nesrsta <starous@volny.cz>
7363 Hotplugging and USB hub support.
7365 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
7366 (grub_ohci): Likewise.
7367 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
7368 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
7369 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
7370 (GRUB_OHCI_CTRL_EDS): Likewise.
7371 (GRUB_OHCI_BULK_EDS): Likewise.
7372 (GRUB_OHCI_TDS): Likewise.
7373 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
7374 (grub_ohci_ed_phys2virt): New function.
7375 (grub_ohci_virt_to_phys): Likewise.
7376 (grub_ohci_td_phys2virt): Likewise.
7377 (grub_ohci_td_virt2phys): Likewise.
7378 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
7380 (grub_ohci_find_ed): New function.
7381 (grub_ohci_alloc_td): Likewise.
7382 (grub_ohci_free_td): Likewise.
7383 (grub_ohci_free_tds): Likewise.
7384 (grub_ohci_transfer): Use previously allocated memory.
7385 (grub_ohci_portstatus): Reset status changed bit.
7386 (grub_ohci_detect_dev): Supply status changed.
7387 (grub_ohci_fini_hw): Free memory.
7388 (grub_ohci_restore_hw): Reallocate memory.
7389 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
7390 Reset status change.
7391 (grub_uhci_detect_dev): Supply status_change.
7392 * bus/usb/usb.c (attach_hooks): New var.
7393 (grub_usb_device_attach): New function.
7394 (grub_usb_register_attach_hook_class): Likewise.
7395 (grub_usb_unregister_attach_hook_class): Likewise.
7396 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
7397 (grub_usb_add_hub): Reset connection changed bit.
7398 (attach_root_port): New function.
7399 (grub_usb_root_hub): Likewise.
7400 (poll_nonroot_hub): Likewise.
7401 (grub_usb_poll_devices): Likewise.
7402 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
7403 * disk/usbms.c (grub_usbms_open): Use device hooks.
7404 (grub_usbms_iterate) :Poll devices.
7405 (grub_usbms_finddevs): Split into ...
7406 (grub_usbms_attach): ... this ...
7407 (grub_usbms_attach): ... and this.
7408 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
7410 (grub_usb_interface): New fields attached and detach_hook.
7411 (grub_usb_attach_hook_class): New type.
7412 (grub_usb_attach_desc): New struct.
7413 (grub_usb_register_attach_hook_class): New function.
7414 (grub_usb_unregister_attach_hook_class): Likewise.
7415 (grub_usb_poll_devices): Likewise.
7416 (grub_usb_device_attach): Likewise.
7417 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
7418 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
7420 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7422 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
7423 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
7424 delta determination style. Works with most NetBSD partitions too.
7426 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7428 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
7429 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
7431 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7433 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
7435 2010-07-14 Anton Blanchard <anton@samba.org>
7437 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
7440 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7442 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
7444 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7446 * kern/partition.c (grub_partition_check_containment): New function to
7447 check that a partition is physically contained in a parent. Since
7448 offsets are relative (and non-negative), this reduces to checking that
7449 the partition ends before its parent.
7450 (grub_partition_map_probe): Discard out-of-range sub-partitions.
7451 (grub_partition_iterate): Likewise.
7452 * include/grub/partition.h (grub_partition_map): Slightly more detailed
7454 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
7455 partitions that start before their parent, and add debug printfs.
7457 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
7459 * Makefile.in (.SUFFIX): Spell correctly, as ...
7460 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
7461 bare module name without `.mod', e.g. `test') tried to invoke a
7464 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
7466 * README: Point to the Info manual.
7468 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
7470 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
7471 2nd superblock position from partition size.
7473 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
7475 * Makefile.in (MAINTAINER_CLEANFILES): Remove
7476 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
7477 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
7480 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7482 Restructure SCSI .id handling.
7483 Reported and tested by: Aleš Nesrsta.
7485 * disk/ata.c (grub_atapi_close): Removed. All users updated.
7486 (grub_atapi_dev): Changed .name to "ata". New field .id.
7487 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
7488 (grub_usbms_dev): New field .id.
7489 * disk/scsi.c (grub_scsi_iterate): Generate name.
7490 (grub_scsi_open): Parse name.
7491 * include/grub/scsi.h (grub_make_scsi_id): New function.
7492 (grub_scsi_dev): Change iterate and open to number instead of naming
7493 busses. All users updated.
7494 (grub_scsi): Remove name. Add .bus.
7496 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7498 * commands/help.c (grub_cmd_help): Fix a typo.
7500 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7502 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
7503 Reported and tested by: Colin Watson.
7505 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7507 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
7510 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7512 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
7514 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
7516 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
7519 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7521 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
7522 and disk/raid6_recover.c.
7523 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7524 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
7526 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7528 * term/gfxterm.c (repaint_schedulded): Rename to ...
7529 (repaint_scheduled): ... this. Update all callers.
7530 (repaint_was_schedulded): Rename to ...
7531 (repaint_was_scheduled): ... this. Update all callers.
7533 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7535 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
7536 which we expect to be handled by upper layers.
7538 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
7540 * bus/usb/usbhub.c: #include time.h header.
7542 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7544 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
7545 entry_name also for entries without stat blocks (e.g. ".."); fixes
7546 corruption of the first entry in a directory.
7548 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7550 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
7551 after setting gfxterm as the active terminal. GRUB_BACKGROUND
7552 doesn't work otherwise.
7554 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7556 * docs/grub.texi (Features): Update list of supported file systems.
7557 (GNU/Linux): Update for GRUB 2.
7558 (Serial terminal): Remove mention of --disable-serial, which was a
7559 GRUB Legacy configure option. Update instructions to use
7560 `terminal_input' and `terminal_output' rather than `terminal'.
7561 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
7562 configuration' and `Installing GRUB using grub-install'.
7563 (Menu entry editor): Update for GRUB 2.
7564 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
7565 Document new -a, -u, and -v options.
7566 (initrd): New section.
7567 (initrd16): New section.
7568 (linux): New section.
7569 (linux16): New section.
7570 (search): The `var' argument to `--set' is optional.
7571 (GRUB only offers a rescue shell): Go into a little more detail on
7574 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7576 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
7578 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7580 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
7581 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
7583 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7585 * util/i386/pc/grub-setup.c (setup): Rename prefix to
7586 install_prefix, in line with install_dos_part and install_bsd_part.
7587 Add new prefix variable, which is copied to install_prefix after
7588 comparing core.img in memory with the one read from disk in the
7589 no-embedding case, and use that rather than overwriting
7590 install_prefix immediately when installing to a partition.
7591 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
7594 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7596 * configure.ac: Avoid == in test command, it's not portable.
7597 * util/grub.d/30_os-prober.in: Likewise.
7599 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
7601 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
7603 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7605 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
7606 multiple (top-level) partmaps.
7608 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7610 * util/i386/efi/grub-install.in: Don't use empty grub_device.
7611 Reported by: Tino Keitel.
7613 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7615 Bidi and diacritics support.
7617 * Makefile.in (widthspec.bin): New target.
7618 (widthspec.h): Likewise.
7619 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
7620 * autogen.sh: Generate unidata.c.
7621 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
7622 * commands/ls.c (grub_ls_list_devices): Likewise.
7623 (grub_ls_list_files): Likewise.
7624 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
7625 (grub_mini_cmd_lsmod): Likewise.
7626 * commands/read.c: Likewise.
7627 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
7628 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
7629 * lib/arg.c (grub_arg_show_help): Likewise.
7630 * lib/crypto.c (grub_password_get): Likewise.
7631 * normal/auth.c (grub_username_get): Likewise.
7632 * normal/misc.c (grub_normal_print_device_info): Likewise.
7633 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
7634 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
7635 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
7636 (normal/charset.c_DEPENDENCIES): New variable.
7637 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
7638 (pkglib_MODULES): Remove charset.mod.
7639 (charset_mod_SOURCES): Removed.
7640 (charset_mod_CFLAGS): Likewise.
7641 (charset_mod_LDFLAGS): Likewise.
7642 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
7643 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
7645 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7646 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7647 (kernel_img_HEADERS): Add terminfo.h.
7648 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
7649 Fill ->font. Reverse ascii bitmaps.
7650 (grub_font_get_xheight): New function.
7651 * font/font.c (grub_font_get_string_width): Moved from here ...
7652 * gfxmenu/font.c (grub_font_get_string_width): ... here.
7653 * font/font.c (grub_font_draw_string): Moved from here ...
7654 * gfxmenu/font.c (grub_font_draw_string): ... here.
7655 * font/font.c (grub_font_dup_glyph): New function.
7656 (grub_font_blit_glyph): Likewise.
7657 (grub_font_blit_glyph_mirror): Likewise.
7658 (blit_comb): Likewise.
7659 (grub_font_construct_dry_run): Likewise.
7660 (grub_font_get_constructed_device_width): Likewise.
7661 (grub_font_construct_glyph): Likewise.
7662 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
7663 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
7664 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
7665 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
7666 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
7667 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
7668 (grub_font_get_xheight): New proto.
7669 (grub_font_get_constructed_device_width): Likewise.
7670 (grub_font_construct_glyph): Likewise.
7671 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
7672 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
7673 * include/grub/font.h (grub_font_draw_string): Moved from here ...
7674 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
7675 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
7676 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
7677 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
7678 (grub_console_getcharwidth): Likewise.
7679 * include/grub/misc.h (grub_xputs): New proto.
7680 (grub_puts): Inlined.
7681 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
7682 (grub_normal_get_line_counter): Removed.
7683 (grub_install_newline_hook): Likewise.
7684 (grub_normal_get_char_counter): New proto.
7685 (grub_normal_reset_more): Likewise.
7686 (grub_xputs_normal): Likewise.
7687 * include/grub/powerpc/ieee1275/console.h: Removed.
7688 * include/grub/sparc64/ieee1275/console.h: Likewise.
7689 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
7690 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
7691 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
7692 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
7693 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
7694 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
7695 (grub_term_input): Pass reference to self. All users updated.
7696 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
7697 Pass reference to self. New fields normal_color, highlight_color and
7698 data. All users updated.
7699 (grub_putchar): Removed.
7700 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
7701 (grub_unicode_estimate_width): New function.
7702 (grub_term_getcharwidth): Add defaults.
7703 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
7704 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
7705 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
7706 (grub_cls): Remove EXPORT_FUNC.
7707 (grub_setcolorstate): Inline.
7708 (grub_newline_hook): Removed.
7709 * include/grub/terminfo.h: Rewritten. All users updated.
7710 * include/grub/unicode.h: New file.
7711 * include/grub/video.h (grub_video_signed_rect): New type.
7712 * kern/emu/console.c (grub_console_highlight_color): Removed.
7713 (grub_console_normal_color): Likewise.
7714 (grub_console_standard_color): Made static.
7715 (grub_ncurses_putchar): Remove mapping.
7716 (grub_ncurses_getcharwidth): Removed.
7717 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7718 (grub_ncurses_setcolor): Removed.
7719 (grub_ncurses_getcolor): Likewise.
7720 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
7721 (grub_console_putchar): ... this.
7722 (grub_console_putchar): Handle argument difference.
7723 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
7724 console_init_early and console_init_lately.
7725 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
7726 * kern/misc.c (grub_puts): Removed.
7727 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
7728 (grub_vsnprintf_real): Remove str = NULL support.
7729 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
7730 * normal/charset.c (grub_utf8_to_ucs4): ... here.
7731 * kern/term.c (grub_putcode): Renamed to ...
7732 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
7733 (grub_putchar): Removed.
7734 (grub_xputs_dumb): New function.
7735 (grub_xputs): New variable.
7736 * lib/charset.c: Move from here ...
7737 * normal/charset.c: ... to here.
7738 (grub_ucs4_to_utf8): New function.
7739 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
7740 (join_types): New variable.
7741 (unpack_join): New function.
7742 (bidi_types): New variable.
7743 (unpack_bidi): New function.
7744 (get_bidi_type): Likewise.
7745 (get_join_type): Likewise.
7746 (is_mirrored): Likewise.
7747 (grub_unicode_get_comb_type): Likewise.
7748 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
7749 (is_type_after): Likewise.
7750 (grub_unicode_aglomerate_comb): Likewise.
7751 (bidi_line_wrap): Likewise.
7752 (grub_bidi_line_logical_to_visual): Likewise.
7753 (grub_bidi_logical_to_visual): Likewise.
7754 (grub_unicode_mirror_code): Likewise.
7755 (grub_unicode_shape_code): Likewise.
7756 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
7757 Don't use grub_putchar.
7758 * normal/main.c (grub_normal_init_page): Use grub_putcode.
7759 (grub_normal_reader_init): Likewise.
7760 (grub_xputs_saved): New variable.
7761 (GRUB_MOD_INIT): Set grub_xputs.
7762 (GRUB_MOD_FINI): Restore grub_xputs.
7763 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
7764 (menu_init): Avoid printing gfxmenu error.
7765 (show_menu): Use grub_normal_get_char_counter.
7766 * normal/menu_entry.c (update_screen): Fix out-of-array.
7767 (complete): Avoid NULL dereferencing.
7768 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
7769 * normal/menu_text.c (print_spaces): Removed.
7770 (grub_print_ucs4): Likewise.
7771 (grub_print_message_indented): Use grub_print_ucs4.
7772 (print_message): Use grub_putcode.
7773 (print_entry): Hanlde diacritics.
7774 * normal/term.c (term_state): New type.
7775 (grub_more_lines): Removed.
7776 (term_states): New variable.
7777 (grub_normal_line_counter): Renamed to ..
7778 (grub_normal_char_counter): ...this. All users updated.
7779 (grub_normal_get_line_counter): Renamed to ...
7780 (grub_normal_get_char_counter): ... this.
7781 (grub_normal_reset_more): New function.
7782 (process_newline): Removed.
7783 (print_more): New function.
7784 (grub_install_newline_hook): Removed.
7785 (map_code): New function.
7786 (grub_puts_terminal): Use grub_print_ucs4.
7787 (putglyph): New function.
7788 (putcode_real): Likewise.
7789 (grub_putcode): Use putcode_real.
7790 (get_maxwidth): New function.
7791 (get_startwidth): Likewise.
7792 (print_ucs4_terminal): Likewise.
7793 (find_term_state): Likewise.
7794 (put_glyphs_terminal): Likewise.
7795 (print_backlog): Likewise.
7796 (print_ucs4_real): Likewise.
7797 (grub_print_ucs4): Likewise.
7798 (grub_xputs_normal): Likewise.
7799 * term/efi/console.c (grub_console_putchar): Output diacritics.
7800 (grub_console_getcharwidth): Removed.
7801 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
7802 * term/gfxterm.c (clear_char): Free chars.
7803 (scroll_up): Avoid leaking memory.
7804 (grub_gfxterm_putchar): Support diacritics.
7805 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
7806 * term/i386/pc/console.c (grub_console_term_output): Declare as
7807 GRUB_TERM_CODE_TYPE_VGA.
7808 * term/i386/pc/vga.c (grub_vga_term): Declare as
7809 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
7810 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
7811 GRUB_TERM_CODE_TYPE_VGA.
7812 * term/i386/vga_common.c (map_char): Removed.
7813 (grub_console_putchar): Likewise.
7814 (grub_console_getcharwidth): Likewise.
7815 * term/ieee1275/ofconsole.c: Simplify using terminfo.
7816 (colors): Reordered to match terminfo.
7817 (grub_ofconsole_normal_color): Removed.
7818 (grub_ofconsole_writeesc): Likewise.
7819 (grub_ofconsole_highlight_color): Likewise.
7820 (grub_ofconsole_getcharwidth): Likewise.
7821 (grub_ofconsole_setcolorstate): Likewise.
7822 (grub_ofconsole_setcolor): Likewise.
7823 (grub_ofconsole_getcolor): Likewise.
7824 (grub_ofconsole_readkey): Renamed to ...
7825 (readkey): ... this. Remove escape sequence handling. Return -1 on no
7827 (grub_ofconsole_checkkey): Removed.
7828 (grub_ofconsole_getkey): Likewise.
7829 (grub_ofconsole_getxy): Likewise.
7830 (grub_ofconsole_gotoxy): Likewise.
7831 (grub_ofconsole_cls): Likewise.
7832 (grub_ofconsole_refresh): Likewise.
7833 (grub_ofconsole_terminfo_input): New struct.
7834 (grub_ofconsole_terminfo_output): Likewise.
7835 (grub_ofconsole_term_input): Use terminfo.
7836 (grub_ofconsole_term_output): Likewise.
7837 (grub_console_init): Split into ...
7838 (grub_console_init_early): ...this and ...
7839 (grub_console_init_lately): ...this. Use terminfo.
7840 (grub_ofconsole_putchar): Renamed to ...
7841 (put): ... this. Remove mapping.
7842 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7843 * term/serial.c: Simplify using terminfo.
7846 (keep_track): Likewise.
7847 (registered): Likewise.
7848 (input_buf): Likewise.
7849 (npending): Likewise.
7850 (serial_translate_key_sequence): Likewise.
7851 (fill_input_buf): Likewise.
7852 (grub_serial_checkkey): Likewise.
7853 (grub_serial_getkey): Likewise.
7854 (grub_serial_getxy): Likewise.
7855 (grub_serial_gotoxy): Likewise.
7856 (grub_serial_putchar): Likewise.
7857 (grub_serial_cls): Likewise.
7858 (grub_serial_setcolorstate): Likewise.
7859 (grub_serial_setcursor): Likewise.
7860 (serial_hw_init): Use serial_hw_fetch.
7861 (grub_serial_terminfo_input): New variable.
7862 (grub_serial_terminfo_output): Likewise.
7863 (grub_serial_term_input): Use terminfo.
7864 (grub_serial_term_output): Likewise.
7865 * term/terminfo.c (putstr): Use put.
7866 (grub_terminfo_all_free): New function
7867 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
7868 (grub_terminfo_output_register): New function.
7869 (grub_terminfo_output_unregister): Likewise.
7870 (grub_terminfo_getxy): Likewise.
7871 (grub_terminfo_readkey): Likewise.
7872 (grub_terminfo_checkkey): Likewise.
7873 (grub_terminfo_getkey): Likewise.
7874 (grub_terminfo_input_init): Likewise.
7875 (print_terminfo): Likewise.
7876 (grub_cmd_terminfo): Handle encoding.
7877 (grub_terminfo_gotoxy): Track position.
7878 (grub_terminfo_cls): Likewise.
7879 (grub_terminfo_putchar): Likewise.
7880 (grub_terminfo_setcolorstate): Handle colors
7881 (grub_terminfo_cursor_on): This ...
7882 (grub_terminfo_cursor_off): ... and this merged into ...
7883 (grub_terminfo_setcursor): ... this.
7884 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
7885 * unicode/ArabicShaping.txt: New file (imported from Unicode).
7886 * unicode/BidiMirroring.txt: Likewise.
7887 * unicode/UnicodeData.txt: Likewise.
7888 * unicode/COPYING: Likewise.
7889 * util/grub-editenv.c (grub_putchar): Removed.
7890 (grub_xputs_real): New function.
7891 (grub_xputs): New variable.
7892 * util/grub-fstest.c (grub_putchar): Removed.
7893 (grub_xputs_real): New function.
7894 (grub_xputs): New variable.
7895 * util/grub-mkdevicemap.c (grub_putchar): Removed.
7896 (grub_xputs_real): New function.
7897 (grub_xputs): New variable.
7898 * util/grub-probe.c (grub_putchar): Removed.
7899 (grub_xputs_real): New function.
7900 (grub_xputs): New variable.
7901 * util/grub-script-check.c (grub_putchar): Removed.
7902 (grub_xputs_real): New function.
7903 (grub_xputs): New variable.
7904 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
7905 (grub_xputs_real): New function.
7906 (grub_xputs): New variable.
7907 * util/import_unicode.py: New file.
7908 * util/grub-mkfont.c (ft_errmsgs): New array.
7909 (grub_glyph_info): Make bitmap a pointer.
7910 (file_formats): New type WIDTH_SPEC.
7911 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
7912 (options): Add width-spec.
7914 (add_char): Renamed to ...
7915 (add_glyph): ... this.
7916 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
7917 (glyph_replace): New type.
7918 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
7919 (add_char): New function.
7920 (add_subst): Likewise.
7921 (process_cursive): Likewise.
7922 (add_font): Handle GSUB.
7923 (write_font_width_spec): New function.
7924 (main): Sort glyphs.
7925 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
7926 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
7927 * kern/term.c (grub_cls): Moved from here...
7928 * normal/term.c (grub_cls): ... here.
7930 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7932 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
7933 suitable for using within the format argument of printf when
7934 converting grub_size_t.
7935 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
7936 "x" to convert grub_size_t arguments.
7938 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7940 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
7942 (list_get_minimal_size): Take selection box into account.
7944 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7946 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
7949 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7951 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
7952 devices when iterating over /dev/disk/by-id; they will be handled
7953 later if appropriate, which they aren't always (e.g. LVM).
7955 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7957 * include/grub/misc.h (grub_reboot): Declare as noreturn.
7958 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
7960 (grub_halt): Likewise.
7961 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
7963 (grub_halt): Don't return, even if all of shut-down, power-off, and
7966 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7968 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
7969 arguments, not three.
7971 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7973 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
7974 * util/grub.d/10_linux.in: Use it to check for LVM, so that
7975 LVM-on-RAID is handled correctly.
7977 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7979 * docs/grub.texi (Changes from GRUB Legacy): New section.
7982 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7984 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
7985 grub.d/README accidentally ends up executable for one reason or
7988 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7990 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
7991 (gpt_partition_map_iterate): Support non-512B sectors.
7993 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7995 * kern/efi/init.c (grub_efi_init): Disable watchdog.
7996 Tested by: Seth Goldberg.
7998 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8000 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
8002 Reported by: Seth Goldberg.
8004 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8006 * util/grub-mkrescue.in: Avoid module duplication.
8008 2010-07-01 Sean Finney <seanius@seanius.net>
8010 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
8012 2010-07-01 Sean Finney <seanius@seanius.net>
8014 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
8016 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8018 * disk/lvm.c (grub_lvm_checkvalue): New function.
8019 (grub_lvm_check_flag): Likewise.
8021 2010-07-01 Robert Millan <rmh@gnu.org>
8023 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
8024 Support 'p' as partition separator on kernel of FreeBSD (used
8026 (grub_util_biosdisk_get_grub_dev): Likewise.
8028 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8030 Yeeloong firmware port.
8032 * boot/mips/yeeloong/fwstart.S: New file.
8033 * bus/cs5536.c (gpiodump): New const.
8034 (set_io_space): New function.
8035 (set_iod): Likewise.
8036 (set_p2d): Likewise.
8037 (grub_cs5536_init_geode): Likewise.
8038 * commands/mips/yeeloong/lsspd.c: New file.
8039 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
8040 (serial_mod_SOURCES): New variable.
8041 (serial_mod_CFLAGS): Likewise.
8042 (serial_mod_LDFLAGS): Likewise.
8043 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
8044 term/terminfo.c and term/tparm.c.
8045 (pkglib_IMAGES): Add fwstart.img.
8046 (fwstart_img_SOURCES): New variable.
8047 (fwstart_img_CFLAGS): Likewise.
8048 (fwstart_img_ASFLAGS): Likewise.
8049 (fwstart_img_LDFLAGS): Likewise.
8050 (fwstart_img_FORMAT): Likewise.
8051 (pkglib_MODULES): Add lsspd.mod.
8052 (lsspd_mod_SOURCES): New variable.
8053 (lsspd_mod_CFLAGS): Likewise.
8054 (lsspd_mod_LDFLAGS): Likewise.
8055 (pkglib_MODULES): Add halt.mod.
8056 (halt_mod_SOURCES): New variable.
8057 (halt_mod_CFLAGS): Likewise.
8058 (halt_mod_LDFLAGS): Likewise.
8059 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
8060 (serial_mod_SOURCES): Removed.
8061 (serial_mod_CFLAGS): Likewise.
8062 (serial_mod_LDFLAGS): Likewise.
8063 * disk/ata.c (check_device): New function.
8064 (grub_ata_device_initialize): Use check_device.
8065 (grub_ata_iterate): Recheck devices.
8066 (grub_ata_open): Likewise.
8067 (grub_atapi_iterate): Likewise.
8068 (grub_atapi_open): Likewise.
8069 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
8070 (GRUB_ATA_CH1_PORT1): Likewise.
8071 (GRUB_ATA_CH0_PORT2): Likewise.
8072 (GRUB_ATA_CH1_PORT2): Likewise.
8073 * include/grub/mips/loongson.h: New file.
8074 * include/grub/mips/yeeloong/ec.h: Likewise.
8075 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
8076 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
8077 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
8078 * include/grub/misc.h (grub_halt): Declare as noreturn.
8079 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
8080 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
8081 (UART_ENABLE_FIFO_TRIGGER1): New definition.
8082 (UART_ENABLE_DTRRTS): Likewise.
8083 (UART_ENABLE_MODEM): Removed.
8084 (UART_ENABLE_OUT2): New const.
8085 * include/grub/term.h (grub_term_register_input_active): New function.
8086 (grub_term_register_output_active): Likewise.
8087 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
8089 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
8090 (init_pci): New function.
8091 (grub_machine_init): Execute platform init when firmware. Init serial.
8092 (grub_halt): Implement.
8093 (grub_exit): Likewise.
8094 (grub_reboot): Likewise.
8095 * term/serial.c (serial_hw_init): Update macros.
8096 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
8097 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
8098 (image_targets): New target mipsel-yeeloong-flash.
8099 (generate_image): Support IMAGE_YEELOONG_FLASH.
8100 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
8101 (grub_video_sm712_setup): Init card.
8102 (grub_video_sm712_set_palette): Removed.
8103 * video/sm712_init.c: New file.
8105 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
8107 * Makefile.in (install-local): Temporarily prepend $(builddir) to
8108 PATH when running help2man and then run it on the unadorned
8109 executable names, rather than passing $(builddir)/* paths to
8110 help2man. This avoids the build directory ending up in generated
8113 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8115 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
8116 to avoid accidents when debugging with 'sh -x'.
8117 * util/grub-mkrescue.in: Likewise.
8118 * util/grub.d/00_header.in: Likewise.
8119 * util/grub.d/10_hurd.in: Likewise.
8120 * util/grub.d/10_kfreebsd.in: Likewise.
8121 * util/grub.d/10_linux.in: Likewise.
8122 * util/grub.d/10_netbsd.in: Likewise.
8123 * util/grub.d/10_windows.in: Likewise.
8124 * util/grub.d/20_linux_xen.in: Likewise.
8125 * util/grub.d/30_os-prober.in: Likewise.
8126 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8128 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8130 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
8131 last character in the buffer.
8132 Reported by: Vladimir Serbinenko.
8134 2010-06-29 Robert Millan <rmh@gnu.org>
8136 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
8137 (Command-line and menu entry commands): Document `badram' command.
8139 2010-06-28 Robert Millan <rmh@gnu.org>
8141 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
8142 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
8143 command using ${GRUB_BADRAM} as parameter.
8145 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8147 * docs/grub.texi (Device map): New section.
8148 (Themes): New section (stub).
8149 * Makefile.in (docs/grub.info): The info documentation now builds
8150 without errors. Make sure it stays that way.
8152 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8154 Use normal parser for menu entries.
8155 Reported by: Thomas Frauendorfer
8157 * include/grub/parser.h (grub_parser_execute): Don't export.
8158 * normal/menu.c (grub_menu_execute_entry_real): New function.
8159 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
8161 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8163 * docs/grub.texi (Embedded configuration): New section (replacing
8164 old "Preset Menu" stub).
8165 (Images): New section.
8166 (configfile): Note that any menu entries defined in `file' are shown
8169 2010-06-28 Josh Triplett <josh@joshtriplett.org>
8171 * mmap/i386/pc/mmap_helper.S: Set CF on return.
8173 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8175 * util/grub-install.in: Add --debug-image= option.
8177 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8179 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
8182 * util/deviceiter.c (check_device): Rename to ...
8183 (check_device_readable_unique): ... this. Update all callers.
8184 Maintain and check a list of which devices (by canonicalized name)
8185 have already been seen.
8186 (clear_seen_devices): New function.
8187 (compare_file_names) [__linux__]: New function.
8188 (grub_util_iterate_devices): Clear the list of seen devices on exit
8189 and (just in case) on entry.
8190 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
8191 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
8192 seen-devices list, superseded by general code in check_device.
8194 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8196 * commands/cat.c (options): New variable.
8197 (grub_cmd_cat): Parse options. If the --dos option is given, print
8198 DOS-style "\r\n" line endings as simple newlines (Debian bug
8200 (GRUB_MOD_INIT): Use extcmd.
8201 (GRUB_MOD_FINI): Likewise.
8202 * docs/grub.texi (cat): Document --dos.
8204 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8206 XEN with Linux grub-mkconfig support.
8208 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
8209 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
8210 GRUB_CMDLINE_XEN_DEFAULT.
8211 * util/grub.d/20_linux_xen.in: New file.
8213 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8215 Initialise VGA video on qemu ourselves.
8217 * boot/i386/qemu/boot.S: Don't call 0xc000.
8218 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
8219 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
8220 (kernel_img_HEADERS): Add pci.h.
8221 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
8222 * configure.ac: Force unifont on qemu and yeeloong.
8223 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
8224 (grub_vga_palette_write): Use correct register.
8225 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
8226 Call grub_qemu_init_cirrus.
8227 * kern/i386/qemu/init.c: New file.
8228 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
8230 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
8232 2010-06-26 Pavel Roskin <proski@gnu.org>
8234 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
8237 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8239 * docs/grub.texi (Simple configuration): Explain that
8240 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
8241 set to `true' to disable their respective recovery entries, not
8244 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8246 Make the `source' command slightly faster.
8248 * normal/main.c (grub_normal_execute): Don't re-read list files when
8251 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8253 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
8254 field position and mask size to red fields from mode_info, not
8256 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
8257 Remove redundant tag->common.framebuffer_type assignment.
8258 Reported by: Seth Goldberg.
8260 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8262 Sync up other versions of the Linux loader with Robert Millan's
8263 change of 2010-01-09, "Make loader output a bit more user-friendly".
8265 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
8267 (grub_cmd_linux): Likewise.
8268 (grub_cmd_initrd): Likewise.
8269 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
8270 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8272 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
8274 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
8275 larger than MEMORY_MAP_SIZE.
8277 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
8281 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
8283 * script/parser.y: #include grub_script.tab.h header.
8285 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8287 Support >3GiB and <16MiB RAM in i386-qemu.
8289 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
8290 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
8291 (grub_lower_mem): Removed.
8292 (grub_upper_mem): Likewise.
8293 (mem_size): Made static.
8294 (above_4g): New variable.
8295 (grub_machine_mmap_init): Detect small mem_size and above_4g.
8296 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
8299 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8301 Cirrus 5446 and Bochs video cards support.
8303 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
8305 (video_cirrus_mod_SOURCES): New variable.
8306 (video_cirrus_mod_CFLAGS): Likewise.
8307 (video_cirrus_mod_LDFLAGS): Likewise.
8308 (video_bochs_mod_SOURCES): Likewise.
8309 (video_bochs_mod_CFLAGS): Likewise.
8310 (video_bochs_mod_LDFLAGS): Likewise.
8311 * include/grub/vga.h: New file.
8312 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
8313 (grub_video_fb_set_page_t): New type.
8314 (grub_video_fb_setup): New prototype.
8315 (grub_video_fb_swap_buffers): Likewise.
8316 (grub_video_fb_get_info_and_fini): Likewise.
8317 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
8318 (CRTC_DATA_PORT): Likewise.
8319 (CRTC_CURSOR): Likewise.
8320 (CRTC_CURSOR_ADDR_HIGH): Likewise.
8321 (CRTC_CURSOR_ADDR_LOW): Likewise.
8322 (CRTC_CURSOR_DISABLE): Likewise.
8323 (update_cursor): Use grub_vga_cr_write.
8324 (grub_vga_text_setcursor): Likewise.
8325 * video/bochs.c: New file.
8326 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
8327 (palette): Likewise.
8328 (palette_size): Likewise.
8329 (framebuffer): New variable.
8330 (grub_video_fb_init): Use 'framebuffer'.
8331 (grub_video_fb_fini): Likewise.
8332 (grub_video_fb_get_info): Likewise.
8333 (grub_video_fb_get_palette): Likewise.
8334 (grub_video_fb_set_palette): Likewise.
8335 (grub_video_fb_set_viewport): Likewise.
8336 (grub_video_fb_get_viewport): Likewise.
8337 (grub_video_fb_map_color): Likewise.
8338 (grub_video_fb_map_rgb): Likewise.
8339 (grub_video_fb_map_rgba): Likewise.
8340 (grub_video_fb_unmap_color): Likewise.
8341 (grub_video_fb_unmap_color_int): Likewise.
8342 (grub_video_fb_fill_rect): Likewise.
8343 (grub_video_fb_blit_bitmap): Likewise.
8344 (grub_video_fb_blit_render_target): Likewise.
8345 (grub_video_fb_scroll): Likewise.
8346 (grub_video_fb_create_render_target): Likewise.
8347 (grub_video_fb_doublebuf_blit_init): Likewise.
8348 (grub_video_fb_set_active_render_target): Handle doublebuffering.
8349 (doublebuf_pageflipping_update_screen): New function.
8350 (doublebuf_pageflipping_init): Likewise.
8351 (grub_video_fb_setup): Likewise.
8352 (grub_video_fb_swap_buffers): Likewise.
8353 (grub_video_fb_get_info_and_fini): Likewise.
8354 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
8356 (doublebuf_pageflipping_commit): Restructured into ...
8357 (doublebuf_pageflipping_set_page): ... this.
8358 (doublebuf_pageflipping_update_screen): Removed.
8359 (doublebuf_pageflipping_init): Likewise.
8360 (double_buffering_init): Likewise.
8361 (grub_video_vbe_setup): Use grub_video_fb_setup.
8362 (grub_video_vbe_swap_buffers): Removed.
8363 (grub_video_vbe_set_active_render_target): Likewise.
8364 (grub_video_vbe_get_active_render_target): Likewise.
8365 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
8366 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
8367 grub_video_fb_set_active_render_target and
8368 grub_video_fb_get_active_render_target.
8369 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
8370 (SEQUENCER_DATA_PORT): Likewise.
8371 (MAP_MASK_REGISTER): Likewise.
8372 (CRTC_ADDR_PORT): Likewise.
8373 (CRTC_DATA_PORT): Likewise.
8374 (START_ADDR_HIGH_REGISTER): Likewise.
8375 (START_ADDR_LOW_REGISTER): Likewise.
8376 (GRAPHICS_ADDR_PORT): Likewise.
8377 (GRAPHICS_DATA_PORT): Likewise.
8378 (READ_MAP_REGISTER): Likewise.
8379 (INPUT_STATUS1_REGISTER): Likewise.
8380 (INPUT_STATUS1_VERTR_BIT): Likewise.
8381 (get_map_mask): Use grub_vga_sr_read.
8382 (set_map_mask): Use grub_vga_sr_write.
8383 (set_read_map): Use grub_vga_gr_write.
8384 (set_start_address): Use grub_vga_cr_write.
8385 * video/sm712.c (framebuffer): Remove leftover fields.
8387 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
8389 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
8390 setting GRUB_VIDEO_BACKEND. Make it available as a user override
8391 instead. Replace the gfxterm backend check with a check that
8392 ${GRUB_PREFIX}/video.lst is non-empty.
8393 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
8395 (load_video): New generated function. Call it before loading
8396 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
8397 * util/grub.d/10_linux.in (linux_entry): Call load_video.
8398 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
8399 * docs/grub.texi (Simple configuration): Document
8402 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8404 Use video functions in linux and xnu loaders.
8406 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
8407 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
8408 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
8409 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
8410 loader/i386/pc/linux.c.
8411 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
8412 (find_line_len): Removed.
8413 (find_framebuf): Likewise.
8414 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
8415 * loader/i386/efi/xnu.c: Removed.
8416 * loader/i386/pc/xnu.c: Moved from here...
8417 * loader/i386/xnu.c: ...here.
8419 Enable priorities in video drivers.
8421 * include/grub/video.h (grub_video_adapter_prio_t): New type.
8422 (grub_video_adapter): New field prio.
8423 (grub_video_register): Respect prio when inserting.
8424 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
8425 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
8426 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
8427 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
8428 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
8429 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
8430 * video/sm712.c (grub_video_sm712_adapter): Likewise.
8434 * include/grub/video.h (grub_video_driver_id_t): New value
8435 GRUB_VIDEO_DRIVER_SDL.
8436 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
8438 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8440 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
8442 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8444 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8446 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
8447 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8449 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8451 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
8452 directly, and recommend grub-install instead.
8453 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8455 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8457 Fix i386-pc prefix handling with nested partitions (Debian bug
8458 #585068). Note that the case where the core image is booted using
8459 multiboot and relocated from its original location still requires
8462 * kern/i386/pc/init.c (make_install_device): If the prefix starts
8463 with "(,", fill the boot drive in between those two characters, but
8464 expect that a full partition specification including partition map
8466 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
8467 specified, write a prefix without the drive name but including a
8468 full partition specification.
8470 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
8472 * util/grub-mkconfig.in: Ignore non-option arguments, for
8473 compatibility with older versions (before 2010-06-12) which did the
8474 same. In particular, this makes it easier to ship an update-grub
8475 wrapper which is compatible with that used with GRUB Legacy (Debian
8478 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8480 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
8481 for manual page generation.
8483 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8485 * po/POTFILES: Remove leftover commands/handler.c.
8487 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
8489 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
8490 left this script non-functional.
8492 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
8494 * docs/man/grub-emu.h2m: New file.
8496 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
8498 * docs/grub.texi (Commands): Document reduced command set in rescue
8500 (cpuid): New section.
8502 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
8504 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
8505 new partition naming style.
8506 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
8508 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
8510 Add "-o grub.iso" like cmdline options support.
8512 * util/grub-install.in: Improve cmdline option parsing.
8513 * util/grub-mkconfig.in: Likewise.
8514 * util/grub-mkrescue.in: Likewise.
8515 * util/grub-reboot.in: Likewise.
8516 * util/grub-set-default.in: Likewise.
8517 * util/i386/efi/grub-install.in: Likewise.
8518 * util/ieee1275/grub-install.in: Likewise.
8519 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8521 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8523 * .bzrignore: Ignore 41_custom.
8525 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8527 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
8529 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8531 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
8532 prototype declarations.
8534 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
8535 generating fs, partmap, and video lists.
8536 * include/grub/fs.h (grub_fs_register): Omit prototype if
8537 GRUB_LST_GENERATOR is defined.
8538 * include/grub/partition.h (grub_partition_map_register): Likewise.
8539 * include/grub/video.h (grub_video_register): Likewise.
8541 2010-06-12 Javier Martín <lordhabbit@gmail.com>
8543 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
8545 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8547 * util/grub-mkrescue.in: Support --xorriso argument.
8549 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8551 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
8552 Suggested by: Thomas Schmitt.
8554 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8556 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
8557 Suggested by: Thomas Schmitt.
8559 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8563 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
8564 * util/grub.d/41_custom.in: New file.
8566 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8568 * util/grub-mkrescue.in (make_image): Remove sh module, which has
8569 been merged back into normal.
8571 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
8573 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
8574 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
8576 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
8578 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
8579 when generating manual pages.
8580 * docs/man/grub-bin2h.h2m: New file.
8581 * docs/man/grub-editenv.h2m: New file.
8582 * docs/man/grub-fstest.h2m: New file.
8583 * docs/man/grub-install.h2m: New file.
8584 * docs/man/grub-macho2img.h2m: New file.
8585 * docs/man/grub-mkconfig.h2m: New file.
8586 * docs/man/grub-mkdevicemap.h2m: New file.
8587 * docs/man/grub-mkfont.h2m: New file.
8588 * docs/man/grub-mkimage.h2m: New file.
8589 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
8590 * docs/man/grub-mkrelpath.h2m: New file.
8591 * docs/man/grub-mkrescue.h2m: New file.
8592 * docs/man/grub-ofpathname.h2m: New file.
8593 * docs/man/grub-pe2elf.h2m: New file.
8594 * docs/man/grub-probe.h2m: New file.
8595 * docs/man/grub-reboot.h2m: New file.
8596 * docs/man/grub-script-check.h2m: New file.
8597 * docs/man/grub-set-default.h2m: New file.
8598 * docs/man/grub-setup.h2m: New file.
8600 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
8602 Use FOR_* macros instead of *_iterate whenever possible.
8604 * commands/handler.c: Removed.
8605 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
8606 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
8607 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8608 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
8609 (grub_probe_SOURCES): Remove kern/parser.c.
8610 (util/grub-script-check.c_DEPENDENCIES): Removed.
8611 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
8612 and grub_script_check_init.c.
8613 (grub_script_check_init.lst): Removed.
8614 (grub_script_check_init.h): Likewise.
8615 (grub_script_check_init.c): Likewise.
8616 (pkglib_MODULES): Remove handler.mod and sh.mod.
8617 (handler_mod_SOURCES): Removed.
8618 (handler_mod_CFLAGS): Likewise.
8619 (handler_mod_LDFLAGS): Likewise.
8620 (normal_mod_SOURCES): Remove normal/handler.c.
8621 Add script/main.c, script/script.c, script/execute.c,
8622 script/function.c, script/lexer.c, grub_script.tab.c
8623 and grub_script.yy.c.
8624 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8625 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8626 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
8627 (grub_setup_SOURCES): Remove kern/parser.c.
8628 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8629 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
8630 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8631 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8632 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8633 (grub_setup_SOURCES): Remove kern/parser.c.
8634 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8635 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
8636 * include/grub/command.h (grub_command_iterate): Removed.
8637 (FOR_COMMANDS): New macro.
8638 * include/grub/dl.h (grub_dl): New member next.
8639 (grub_dl_iterate): Removed.
8640 (grub_dl_head): New variable declaration.
8641 (FOR_DL_MODULES): New macro.
8642 * include/grub/fs.h: Include list.h.
8643 (grub_fs): Make next first element.
8644 (grub_fs_list): New variable declaration.
8645 (grub_fs_register): Make inline.
8646 (grub_fs_unregister): Likewise.
8647 (grub_fs_iterate): Removed.
8648 (FOR_FILESYSTEMS): New macro.
8649 * include/grub/handler.h: Removed.
8650 * include/grub/list.h (grub_list_hook_t): Removed.
8651 (grub_list_test_t): Likewise.
8652 (grub_list_pop): Likewise.
8653 (grub_list_iterate): Likewise.
8654 (grub_list_insert): Likewise.
8655 (FOR_LIST_ELEMENTS): New macro.
8656 * include/grub/parser.h (grub_parser_class): Removed.
8657 (grub_parser_register): Likewise.
8658 (grub_parser_unregister): Likewise.
8659 (grub_parser_get_current): Likewise.
8660 (grub_parser_set_current): Likewise.
8661 (grub_register_rescue_parser): Likewise.
8662 (grub_rescue_parse_line): New function.
8663 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
8664 * include/grub/script_sh.h (grub_script_function_list): New variable
8666 (FOR_SCRIPT_FUNCTIONS): New macro.
8667 (grub_script_function_iterate): Removed.
8668 (grub_normal_parse_line): New prototype.
8669 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
8670 (FOR_DISABLED_TERM_INPUTS): Likewise.
8671 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
8672 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
8673 * include/grub/video.h (grub_video_adapter): Move 'next' to first
8675 (grub_video_register): Inline.
8676 (grub_video_unregister): Likewise.
8677 (grub_video_adapter_list): New variable declaration.
8678 (grub_video_iterate): Removed.
8679 (FOR_VIDEO_ADAPTERS): New macro.
8680 * kern/dl.c (grub_dl_list): Removed. All users updated.
8681 (grub_dl_iterate): Removed.
8682 * kern/fs.c (grub_fs_list): Make global.
8683 (grub_fs_register): Removed.
8684 (grub_fs_unregister): Likewise.
8685 (grub_fs_iterate): Likewise.
8686 * kern/handler.c: Removed.
8687 * kern/list.c (grub_list_pop): Removed.
8688 (grub_list_iterate): Likewise.
8689 (grub_list_insert): Likewise.
8690 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
8691 (grub_prio_list_insert): Don't use grub_list_insert.
8692 * kern/main.c (grub_register_rescue_parser): Don't call
8693 grub_register_rescue_parser.
8694 * kern/parser.c (grub_parser_class): Removed.
8695 (grub_parser_execute): Use grub_rescue_parse_line.
8696 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
8697 (grub_rescue_parser): Removed.
8698 (grub_register_rescue_parser): Likewise.
8699 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
8700 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
8701 (grub_auth_check_authentication): Likewise.
8702 * normal/completion.c (iterate_command): Removed.
8703 (grub_normal_do_completion): Use FOR_COMMANDS.
8704 * normal/handler.c: Removed.
8705 * normal/main.c (read_config_file): Remove parser changing.
8706 (grub_normal_execute): Don't call read_handler_list.
8707 (grub_normal_read_line_real): Statically allocate prompt.
8708 (grub_cmdline_run): Use grub_normal_parse_line.
8709 (GRUB_MOD_FINI): Don't call free_handler_list.
8710 * normal/menu_entry.c (run): Likewise.
8711 * script/function.c (grub_script_function_list): Make global.
8712 (grub_script_function_iterate): Removed.
8713 * script/main.c (grub_normal_parse_line): Make global.
8714 (grub_sh_parser): Removed.
8715 (GRUB_MOD_INIT): Likewise.
8716 (GRUB_MOD_FINI): Likewise.
8717 * tests/lib/functional_test.c (grub_functional_test): Use
8719 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
8720 (grub_test_run): Use FOR_LIST_ELEMENTS.
8721 * tests/lib/unit_test.c (main): Likewise.
8722 * util/deviceiter.c (grub_util_iterate_devices): Don't use
8724 * util/grub-fstest.c (grub_term_input_class): Removed.
8725 (grub_term_output_class): Likewise.
8726 * util/grub-probe.c: Likewise.
8727 * util/i386/pc/grub-setup.c: Likewise.
8728 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8729 * util/grub-script-check.c (main): Don't call grub_init_all and
8731 * video/video.c (grub_video_adapter_list): Make global.
8732 (grub_video_register): Removed.
8733 (grub_video_unregister): Likewise.
8734 (grub_video_iterate): Likewise.
8736 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8738 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
8739 reported by Henrique Ferreiro.
8741 2010-06-09 Robert Millan <rmh@gnu.org>
8743 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
8744 ones, when both are available.
8746 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8748 Make --version uniform and avoid hard-coded program name.
8750 * util/grub-mkimage.c (main): Use `program_name' instead of
8752 * util/i386/pc/grub-setup.c (main): Likewise.
8753 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
8754 * util/grub-install.in: Save the basename of $0 in $self, and use the
8755 latter in informational messages. Use the same format for --version
8756 as the binary programs.
8757 * util/grub-mkconfig.in: Likewise.
8758 * util/grub-mkrescue.in: Likewise.
8759 * util/grub-reboot.in: Likewise.
8760 * util/grub-set-default.in: Likewise.
8761 * util/i386/efi/grub-install.in: Likewise.
8762 * util/ieee1275/grub-install.in: Likewise.
8763 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8765 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8767 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
8768 embedding area. Use <= instead of == when checking for non-emptiness.
8770 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8772 * configure.ac: Add `.' to the directories searched for unifont.
8774 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8776 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
8779 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8781 * docs/grub.texi (History): Expand to cover GRUB 2.
8782 (Serial terminal): Refer to `terminal_input' and `terminal_output'
8783 commands, not `terminal'.
8785 (terminal_input): New section.
8786 (terminal_output): New section.
8787 (uppermem): New section (stub).
8788 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
8790 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8792 * docs/grub.texi (Security): Menu entries are unrestricted by
8793 default, not restricted to superusers as I had previously thought.
8794 Reword to account for this.
8796 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8798 * kern/emu/misc.c (device_mapper_null_log): New function.
8799 (grub_device_mapper_supported): New function.
8800 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
8802 * kern/emu/hostdisk.c (find_partition_start): Check whether
8803 device-mapper is supported before trying to use it.
8804 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
8806 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8808 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
8809 (File name syntax): Likewise.
8810 (help): --all is no longer supported in GRUB 2. Be more precise
8811 about pattern matching.
8813 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8815 * normal/completion.c (grub_normal_do_completion): When completing
8816 arguments to "set" and the current word contains an equals sign,
8817 skip to after the equals sign before starting completion.
8819 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8821 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
8823 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8825 * docs/grub.texi (Network): New section.
8826 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
8827 `(nd)' as in GRUB Legacy.
8828 (pxe_unload): New section.
8830 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8832 * docs/grub.texi (Troubleshooting): `echo' is not usually available
8833 in the rescue shell, so recommend using `set' instead. Thanks,
8836 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8838 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
8839 (password): New section.
8840 (password_pbkdf2): New section.
8841 (search): New section.
8842 (Security): New section.
8843 (Troubleshooting): New section, currently very incomplete.
8844 (Invoking grub-mkpasswd-pbkdf2): New section.
8845 (Internals): New section, currently very incomplete.
8847 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8849 * util/grub.d/00_header.in: Add some more quoting (of
8850 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
8852 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
8854 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8856 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
8857 to `count', fixing variable shadowing that broke the -c option.
8859 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
8861 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
8862 in case they contain spaces.
8864 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
8866 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
8867 "part_" to partmap module names, in line with grub-install.
8868 Reported by: Jindřich Makovička (Debian bug #584426).
8870 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
8872 * util/grub-mkimage.c: Make target-related error messages slightly
8873 more helpful; -O talks about "format". Explicitly point to the use
8874 of -O if no target is specified.
8875 Reported by: Didier Raboud (Debian bug #584415).
8877 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
8879 * INSTALL: Document several build requirements for optional features
8880 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
8882 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
8884 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
8885 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
8886 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
8888 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
8890 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
8891 Thanks to Jordan Uggla for spotting this.
8893 2010-06-02 Aleš Nesrsta <starous@volny.cz>
8895 Finally make USB usable.
8897 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
8898 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
8899 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
8900 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
8901 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
8902 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
8903 (GRUB_OHCI_FSMPS): Likewise.
8904 (GRUB_OHCI_PERIODIC_START): Likewise.
8905 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
8906 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
8907 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
8908 (GRUB_OHCI_SET_PORT_RESET): Likewise.
8909 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
8910 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
8911 (grub_ohci_transaction): Likewise.
8912 (grub_ohci_transfer): Improve condition detection algorithms.
8913 Handle toggle property. Program the transactions correctly.
8914 Improve error handling. Various important fixups.
8915 (grub_ohci_portstatus): Put register writes in right order.
8916 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
8917 (grub_uhci_transfer): Don't show "failed" message on success.
8918 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
8920 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
8922 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
8923 before initialization is completed. Use IN direction for empty
8924 transfers. Use last_trans and compute toggle.
8925 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
8926 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
8927 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
8928 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
8929 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
8930 (grub_usb_device): Increase toggle to 256.
8931 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
8932 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
8933 GRUB_USBMS_SUBCLASS_SFF8070.
8934 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
8935 (grub_scsi_inquiry): New member page and alloc_length.
8936 (grub_scsi_request_sense): New structure.
8937 (grub_scsi_request_sense_data): Likewise.
8938 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
8940 * disk/scsi.c (grub_scsi_request_sense): New function.
8941 (grub_scsi_test_unit_ready): Likewise.
8942 (grub_scsi_inquiry): Fill new fields.
8943 (grub_scsi_read_capacity): Likewise.
8944 (grub_scsi_read10): Add request sense at the end.
8945 (grub_scsi_read12): Likewise.
8946 (grub_scsi_write10): Likewise.
8947 (grub_scsi_write12): Likewise.
8948 (grub_scsi_open): Add Test Unit Ready.
8949 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
8950 Support additional subclasses. Con't clear halt yet. Activate the
8951 proper config. Calculate LUNs correctly.
8952 (grub_usbms_transfer): Various important fixups.
8954 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8956 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
8957 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
8958 (grub_ohci_fini_hw): New function.
8959 (grub_ohci_restore_hw): Likewise.
8960 (GRUB_MOD_INIT(ohci)): Register preboot hook.
8961 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
8962 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
8964 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8966 Dedicated DMA allocations.
8968 * bus/pci.c (grub_memalign_dma32): New function
8969 (grub_dma_free): Likewise.
8970 (grub_dma_get_virt): Likewise.
8971 (grub_dma_get_phys): Likewise.
8972 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
8973 (grub_ohci_pci_iter): Use dma32_alloc.
8974 (grub_ohci_transfer): Likewise.
8975 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
8976 (grub_usb_bulk_readwrite): Likewise.
8977 * include/grub/pci.h: Add declarations.
8979 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8983 * bus/cs5536.c: New file.
8984 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
8985 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
8986 (cs5536_mod_SOURCES): New variable.
8987 (cs5536_mod_CFLAGS): Likewise.
8988 (cs5536_mod_LDFLAGS): Likewise.
8989 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
8991 (kernel_img_SOURCES): Add bus/cs5536.c.
8992 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
8994 (usb_mod_SOURCES): New variable.
8995 (usb_mod_CFLAGS): New variable.
8996 (usb_mod_LDFLAGS): New variable.
8997 (usbtest_mod_SOURCES): New variable.
8998 (usbtest_mod_CFLAGS): New variable.
8999 (usbtest_mod_LDFLAGS): New variable.
9000 (ohci_mod_SOURCES): New variable.
9001 (ohci_mod_CFLAGS): New variable.
9002 (ohci_mod_LDFLAGS): New variable.
9003 (usbms_mod_SOURCES): New variable.
9004 (usbms_mod_CFLAGS): New variable.
9005 (usbms_mod_LDFLAGS): New variable.
9006 (usb_keyboard_mod_SOURCES): New variable.
9007 (usb_keyboard_mod_CFLAGS): New variable.
9008 (usb_keyboard_mod_LDFLAGS): New variable.
9009 * include/grub/smbus.h: New file.
9010 * include/grub/cs5536.h: New file.
9012 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9014 * util/grub.d/00_header.in: Add safety check to make sure that
9015 ${locale_dir} exists before trying to probe it.
9017 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9019 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
9020 per the GNU Coding Standards; this is now too obscure to be worth
9023 (chainloader): Remove cross-reference to `SCO UnixWare'.
9025 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9027 * docs/grub.texi (Chain-loading): New section.
9028 (DOS/Windows): New section, borrowed from GRUB Legacy with details
9029 adjusted for GRUB 2.
9030 (SCO UnixWare): Likewise.
9032 (chainloader): Add reference to `Block list syntax'.
9033 (drivemap): New section.
9034 (parttool): New section.
9036 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9038 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
9040 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
9041 (Installing GRUB using grub-install): Remove reference to the grub
9042 shell; mention `grub-mkimage' and `grub-setup' instead.
9043 (Invoking grub-install): Likewise.
9044 (Interface): Add reference to `Menu entry editor'.
9045 (serial): Remove `--device' option.
9047 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9049 * docs/grub.texi (Configuration): New section, documenting
9050 configuration file generation using grub-mkconfig. I've left a slot
9051 for documenting the full shell scripting format but have not yet
9052 started on writing that up.
9053 (Invoking grub-mkconfig): New section.
9055 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9057 * docs/grub.texi (direntry): Remove grub-terminfo reference.
9058 (GNU GRUB manual): Likewise.
9059 (General commands): Update description of `terminfo' for GRUB 2.
9061 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9063 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
9064 (GRUB_MOD_INIT): Fix capitalisation.
9065 * docs/grub.texi (Command-line and menu entry commands): Document
9066 gettext and gptsync commands.
9068 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9070 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
9071 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
9073 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
9075 Add btrfs probing support, currently only in the single-device case.
9077 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
9079 (grub_guess_root_device): Call find_root_device_from_mountinfo
9080 before looking in /dev.
9082 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9084 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
9085 GRUB_DISK_SIZE_UNKNOWN.
9086 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
9088 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
9090 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
9091 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
9092 corrupted or not synced properly.
9094 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9096 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
9097 Reported by: Seth Goldberg.
9099 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9101 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
9103 Reported by: Seth Goldberg.
9105 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9107 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
9108 Reported by: Seth Goldberg.
9110 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9112 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
9113 64-bit address as signed on MIPS.
9115 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9117 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
9118 to the empty string.
9120 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
9122 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
9124 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
9125 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
9126 * kern/misc.c (__enable_execute_stack): Disable on
9129 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9131 Make grub-probe work with symbolic links under /dev/mapper as well
9132 as with real block devices. The Linux world seems to be (at best)
9133 in transition here, and GRUB shouldn't get caught in the middle.
9135 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
9138 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9140 * util/grub-script-check.c (main): Ensure defined behaviour on empty
9141 input files (in which case exit zero).
9143 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9145 * kern/emu/misc.c (canonicalize_file_name): realpath can still
9146 return NULL for various reasons even if it has a maximum-length
9147 buffer: for example, there might be a symlink loop, or the path
9148 might exceed PATH_MAX. If this happens, return NULL.
9150 2010-05-27 Robert Millan <rmh@gnu.org>
9152 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
9153 partmap module to handle cross-partmap setups.
9154 Reported by Orestes Mas. Gràcies!
9156 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9158 * util/grub-mkrescue.in: Initialise override_dir rather than
9159 assuming that it's unset or empty in the environment.
9161 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
9163 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
9164 variable index into p_index to suppress a warning with -Wshadow.
9166 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
9168 * INSTALL: Added flex >= 2.5.35 requirement.
9170 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9172 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
9174 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9178 * commands/i386/cmostest.c: New file.
9179 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
9180 (cmostest_mod_SOURCES): New variable.
9181 (cmostest_mod_CFLAGS): Likewise.
9182 (cmostest_mod_LDFLAGS): Likewise.
9183 * conf/i386-pc.rmk: Likewise.
9184 * docs/grub.texi (Vendor power-on keys): New section.
9185 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
9186 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
9187 and GRUB_BUTTON_CMOS_ADDRESS.
9188 * util/grub.d/00_header.in: Handle powering-on by separate button.
9190 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9192 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
9193 Removed drawing_scrollbar argument. All users updated
9195 Reported by Jo Shields
9197 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9199 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
9200 buffer since gfxterm handles double repaint.
9202 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9204 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
9205 * term/gfxterm.c (real_scroll): Likewise.
9207 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9209 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
9210 before calling BIOS.
9212 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9214 * include/grub/i18n.h: Always enable grub_gettext.
9216 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9218 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
9219 partition naming style.
9221 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
9223 * util/grub-mkconfig.in: Fix handling of -o so that it works when
9224 not the first option.
9226 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9228 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
9230 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9232 * util/misc.c: Move inclusion of <limits.h> to ...
9233 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
9235 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
9237 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
9238 Fix merge error in NetBSD code.
9239 (find_partition_start) [__NetBSD__]: Likewise.
9241 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
9243 Fix grub-mkrescue usage unit testing.
9245 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
9247 2010-05-18 Christian Franke <franke@computer.org>
9249 * util/grub.d/10_windows.in: Use path names instead of
9250 drive letters to prevent warning from Cygwin 1.7.
9251 Add drivemap command to menuentry if needed.
9253 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
9255 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
9256 gnumach and gnumach.gz.
9258 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9260 * include/grub/i18n.h (gettext): Inline instead of using #define.
9261 (grub_gettext): Likewise.
9264 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9266 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
9267 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
9268 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
9269 (main): Add a slash after pkglibdirroot.
9271 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9273 * util/grub-install.in: Add missing "in" keyword.
9275 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9277 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
9278 Reported by: Seth Goldberg.
9280 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9282 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
9284 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9286 * configure.ac: Check for Linux device-mapper support.
9288 * util/hostdisk.c (device_is_mapped): New function.
9289 (find_partition_start): New function, partly broken out from
9290 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
9291 device-mapper support added.
9292 (linux_find_partition): Use find_partition_start.
9293 (convert_system_partition_to_system_disk): Add `st' argument.
9294 Support Linux /dev/mapper/* devices if device-mapper support is
9295 available; only DM-RAID devices are understood at present.
9296 (find_system_device): Add `st' argument. Pass it to
9297 convert_system_partition_to_system_disk.
9298 (grub_util_biosdisk_get_grub_dev): Pass stat result to
9299 find_system_device and convert_system_partition_to_system_disk. Use
9300 find_partition_start.
9302 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
9303 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
9304 * util/deviceiter.c [__linux__]: Define MINOR.
9305 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
9306 * util/mkdevicemap.c (grub_putchar): New function.
9307 (grub_getkey): New function.
9308 (grub_refresh): New function.
9309 (main): Set debug=all if -v -v is used.
9311 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9313 Fix build with non-GNU libcs.
9315 * util/misc.c (canonicalize_file_name): Move to ...
9316 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
9317 grub_make_system_path_relative_to_its_root.
9319 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9321 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
9322 we handle finding grub-mkimage. Default to finding grub-mkimage in
9323 ${bindir} with program_transform_name applied, and provide a
9324 --grub-mkimage option to override this.
9326 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9328 Remove grub-mkisofs.
9330 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
9331 (grub_mkisofs_SOURCES): Removed.
9332 (grub_mkisofs_CFLAGS): Removed.
9333 * util/mkisofs/defaults.h: Removed.
9334 * util/mkisofs/eltorito.c: Likewise.
9335 * util/mkisofs/exclude.h: Likewise.
9336 * util/mkisofs/hash.c: Likewise.
9337 * util/mkisofs/include/: Likewise.
9338 * util/mkisofs/include/fctldefs.h: Likewise.
9339 * util/mkisofs/include/mconfig.h: Likewise.
9340 * util/mkisofs/include/prototyp.h: Likewise.
9341 * util/mkisofs/include/statdefs.h: Likewise.
9342 * util/mkisofs/iso9660.h: Likewise.
9343 * util/mkisofs/joliet.c: Likewise.
9344 * util/mkisofs/match.c: Likewise.
9345 * util/mkisofs/match.h: Likewise.
9346 * util/mkisofs/mkisofs.c: Likewise.
9347 * util/mkisofs/mkisofs.h: Likewise.
9348 * util/mkisofs/msdos_partition.h: Likewise.
9349 * util/mkisofs/multi.c: Likewise.
9350 * util/mkisofs/name.c: Likewise.
9351 * util/mkisofs/rock.c: Likewise.
9352 * util/mkisofs/tree.c: Likewise.
9353 * util/mkisofs/write.c: Likewise.
9355 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9357 Unify grub-mkimage accross platforms.
9359 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
9360 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
9361 (grub_mkelfimage_SOURCES): Removed.
9362 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
9363 (util/grub-mkimage.c_DEPENDENCIES): .. this.
9364 (bin_UTILITIES): Add grub-mkimage.
9365 (grub_mkimage_SOURCES): New variable.
9366 (kernel_img_HEADERS): Remove machine/kernel.h.
9367 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
9368 (pkglib_PROGRAMS): Add kernel.img.
9369 (kernel_img_HEADERS): Add machine/kernel.h.
9370 (kernel_img_FORMAT): Removed.
9371 (bin_UTILITIES): Remove grub-mkimage.
9372 (grub_mkimage_SOURCES): Removed.
9373 (grub_mkimage_CFLAGS): Likewise.
9374 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9375 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
9376 (pkglib_PROGRAMS): Add kernel.img.
9377 (bin_UTILITIES): Remove grub-mkimage.
9378 (grub_mkimage_SOURCES): Removed.
9379 (grub_mkimage_CFLAGS): Likewise.
9380 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9381 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
9382 (pkglib_PROGRAMS): Add kernel.img.
9383 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
9384 (pkglib_PROGRAMS): Add kernel.img.
9385 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
9386 (grub_mkimage_SOURCES): Removed.
9387 (grub_mkimage_CFLAGS): Likewise.
9388 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9389 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
9390 (pkglib_PROGRAMS): Add kernel.img.
9391 (bin_UTILITIES): Remove grub-mkimage.
9392 (grub_mkimage_SOURCES): Removed.
9393 (grub_mkimage_CFLAGS): Likewise.
9394 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9395 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
9396 (grub_mkimage_SOURCES): Removed.
9397 (grub_mkimage_CFLAGS): Likewise.
9398 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9399 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
9400 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
9401 (grub_pe32_optional_header): ... this.
9402 (grub_pe64_optional_header): ... and this. All users updated.
9403 (GRUB_PE32_PE32_MAGIC): Split into ..
9404 (GRUB_PE32_PE32_MAGIC): .. this.
9405 (GRUB_PE32_PE64_MAGIC): .. and this.
9406 (GRUB_PE32_SIGNATURE_SIZE): New definition.
9407 * include/grub/elf.h (PT_GNU_STACK): New definition.
9408 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
9409 * include/grub/i386/efi/kernel.h: Likewise.
9410 * include/grub/i386/kernel.h: Likewise.
9411 * include/grub/i386/pc/kernel.h: Likewise.
9412 * include/grub/i386/qemu/boot.h: Likewise.
9413 * include/grub/mips/kernel.h: Likewise.
9414 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9415 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9416 * include/grub/powerpc/kernel.h: Likewise.
9417 * include/grub/sparc64/ieee1275/boot.h: Likewise.
9418 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9419 * include/grub/sparc64/kernel.h: Likewise.
9420 * include/grub/x86_64/efi/kernel.h: Likewise.
9421 * include/grub/x86_64/kernel.h: Likewise.
9422 * include/grub/offsets.h: New file.
9423 * include/grub/kernel.h (grub_module_info): Split into ...
9424 (grub_module_info32): ... this.
9425 (grub_module_info64): ... and this.
9426 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
9427 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
9428 (grub_boot_blocklist): Moved from here ...
9429 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
9430 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
9431 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
9432 * include/grub/types.h (grub_target_to_host16): Removed.
9433 (grub_target_to_host32): Likewise.
9434 (grub_target_to_host64): Likewise.
9435 (grub_host_to_target16): Likewise.
9436 (grub_host_to_target32): Likewise.
9437 (grub_host_to_target64): Likewise.
9438 (grub_host_to_target_addr): Likewise.
9440 Support grub-mkrescue for efi, coreboot and qemu.
9442 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
9443 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
9444 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
9445 * util/grub-mkrawimage.c: Moved from here ...
9446 * util/grub-mkimage.c: ... here. All users updated.
9447 (ALIGN_ADDR): Use image_target.
9448 (TARGET_NO_FIELD): New const.
9449 (image_target_desc): New type.
9450 (image_targets): New array.
9451 (grub_target_to_host64): Use image_target.
9452 (grub_target_to_host32): Likewise.
9453 (grub_target_to_host16): Likewise.
9454 (grub_host_to_target64): Likewise.
9455 (grub_host_to_target32): Likewise.
9456 (grub_host_to_target16): Likewise.
9457 (grub_host_to_target_addr): Likewise.
9458 (generate_image): Handle multiimage.
9459 (main): Require -O parameter. All users updated.
9460 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
9461 util/efi/grub-mkimage.c
9462 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
9463 New option --rom-directory.
9465 * util/i386/efi/grub-mkimage.c: Removed.
9466 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
9467 (grub_target_to_host32): Likewise.
9468 (grub_target_to_host64): Likewise.
9469 (grub_host_to_target16): Likewise.
9470 (grub_host_to_target32): Likewise.
9471 (grub_host_to_target64): Likewise.
9472 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
9473 (grub_target_to_host32): Likewise.
9474 (grub_target_to_host64): Likewise.
9475 (grub_host_to_target16): Likewise.
9476 (grub_host_to_target32): Likewise.
9477 (grub_host_to_target64): Likewise.
9479 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
9481 Source tree is reorganized for emu build.
9483 * include/grub/util/console.h: Move from here...
9484 * include/grub/emu/console.h: ...to here.
9485 * include/grub/util/getroot.h: Move from here...
9486 * include/grub/emu/getroot.h: ...to here.
9487 * include/grub/util/hostdisk.h: Move from here...
9488 * include/grub/emu/hostdisk.h: ...to here.
9489 * util/console.c: Move from here...
9490 * kern/emu/console.c: ...to here.
9491 * util/getroot.c: Move from here...
9492 * kern/emu/getroot.c: ...to here.
9493 * util/grub-emu.c: Move from here...
9494 * kern/emu/main.c: ...to here.
9495 * util/hostdisk.c: Move from here...
9496 * kern/emu/hostdisk.c: ...to here.
9497 * util/hostfs.c: Move from here...
9498 * kern/emu/hostfs.c: ...to here.
9499 * util/mm.c: Move from here...
9500 * kern/emu/mm.c: ...to here.
9501 * util/pci.c: Move from here...
9502 * bus/emu/pci.c: ...to here.
9503 * util/sdl.c: Move from here...
9504 * video/emu/sdl.c: ...to here.
9505 * util/time.c: Move from here...
9506 * kern/emu/time.c: ...to here.
9507 * util/usb.c: Move from here...
9508 * bus/usb/emu/usb.c: ...to here.
9510 * include/grub/emu/misc.h: New header for grub-emu functions.
9511 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
9513 * conf/any-emu.rmk: Rule updates for above renames.
9514 * conf/common.rmk: Likewise.
9515 * conf/i386-pc.rmk: Likewise.
9516 * conf/i386-qemu.rmk: Likewise.
9517 * conf/mips.rmk: Likewise.
9518 * conf/sparc64-ieee1275.rmk: Likewise.
9519 * conf/x86-efi.rmk: Likewise.
9521 * disk/lvm.h: #include updates for above renames.
9522 * util/grub-mkrelpath.c: Likewise.
9523 * util/grub-probe.c: Likewise.
9524 * util/i386/pc/grub-setup.c: Likewise.
9525 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9526 * kern/emu/console.c: Likewise.
9527 * kern/emu/getroot.c: Likewise.
9528 * kern/emu/hostdisk.c: Likewise.
9529 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
9531 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
9532 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
9533 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
9534 * util/misc.c: Remove grub-emu functions.
9536 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9539 Reported by: Thorsten Grützmacher.
9541 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
9543 (circprog_set_property): Register and unregister timeout hook.
9544 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
9545 (label_destroy): Free template. and unregister hook.
9546 (label_set_state): New function.
9547 (label_set_property): Handle templates and hooks.
9548 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
9550 (progress_bar_set_property): Register and unregister timeout hook.
9551 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
9552 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
9553 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
9554 (update_timeout_visit): Removed.
9555 (update_timeouts): New function.
9556 (redraw_timeouts): Likewise.
9557 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
9558 (grub_gfxmenu_clear_timeout): Likewise.
9559 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
9560 (grub_gfxmenu_timeout_notify): Likewise.
9561 (grub_gfxmenu_timeout_notifications): New external variable.
9562 (grub_gfxmenu_timeout_register): New function.
9563 (grub_gfxmenu_timeout_unregister): Likewise.
9565 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9567 Transform (broken) vga terminal into (working) vga video driver.
9569 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
9570 video/i386/pc/vga.c.
9571 * include/grub/video.h (grub_video_driver_id):
9572 Add GRUB_VIDEO_DRIVER_VGA.
9573 * term/i386/pc/vga.c: Renamed to ...
9574 * video/i386/pc/vga.c: ...this
9575 (DEBUG_VGA): Removed.
9576 (CHAR_WIDTH): Likewise.
9577 (CHAR_HEIGHT): Likewise.
9578 (TEXT_WIDTH): Likewise.
9579 (TEXT_HEIGHT): Likewise.
9580 (DEFAULT_FG_COLOR): Likewise.
9581 (DEFAULT_BG_COLOR): Likewise.
9582 (colored_char): Likewise.
9585 (cursor_state): Likewise.
9586 (fg_color): Likewise.
9587 (bg_color): Likewise.
9588 (text_buf): Likewise.
9591 (framebuffer): New variable.
9592 (set_read_map): Disabled.
9593 (setup): New variable.
9594 (is_target): Likewise.
9595 (grub_vga_mod_init): Likewise.
9596 (grub_vga_mod_fini): Likewise.
9597 (check_vga_mem): Likewise.
9598 (write_char): Likewise.
9599 (write_cursor): Likewise.
9600 (scroll_up): Likewise.
9601 (grub_vga_putchar): Likewise.
9602 (grub_vga_getcharwidth): Likewise.
9603 (grub_vga_getwh): Likewise.
9604 (grub_vga_getxy): Likewise.
9605 (grub_vga_gotoxy): Likewise.
9606 (grub_vga_cls): Likewise.
9607 (grub_vga_setcolorstate): Likewise.
9608 (grub_vga_setcursor): Likewise.
9609 (grub_video_vga_init): New function.
9610 (grub_video_vga_setup): Likewise.
9611 (grub_video_vga_fini): Likewise.
9612 (update_target): Likewise.
9613 (grub_video_vga_blit_bitmap): Likewise.
9614 (grub_video_vga_blit_render_target): Likewise.
9615 (grub_video_vga_set_active_render_target): Likewise.
9616 (grub_video_vga_get_active_render_target): Likewise.
9617 (grub_video_vga_swap_buffers): Likewise.
9618 (grub_video_vga_set_palette): Likewise.
9619 (grub_video_vga_get_info_and_fini): Likewise.
9620 (grub_vga_term): Removed.
9621 (grub_video_vga_adapter): New variable.
9622 (GRUB_MOD_INIT): Register a video driver instead of terminal.
9623 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
9625 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9627 * video/readers/jpeg.c: Indented.
9629 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9631 Various jpeg cleanups.
9633 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
9634 (grub_jpeg_decode_quan_table): Use sizeof.
9635 (grub_jpeg_decode_du): Use ARRAY_SIZE.
9637 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
9639 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
9640 tables. Ignore non-last ac bit.
9641 (grub_jpeg_decode_quan_table): Likewise.
9643 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9645 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
9646 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
9647 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9648 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
9649 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
9650 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
9652 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9654 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
9657 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9659 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
9661 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9663 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
9666 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9668 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
9671 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9673 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
9676 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9678 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
9680 2010-05-01 Christian Franke <franke@computer.org>
9682 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
9683 Remove broken Cygwin path conversion.
9684 * util/misc.c: [__CYGWIN__] Add include and define.
9685 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
9687 (make_system_path_relative_to_its_root): Simplify loop, replace early
9689 [__CYGWIN__] Add conversion to win32 path.
9690 Include "/" case in trailing slash removal.
9692 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9694 * kern/main.c (grub_load_config): Fix copy-pasted comment.
9695 Reported by: Seth Goldberg
9697 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9699 * commands/help.c (grub_cmd_help): Fix a typo.
9700 Reported by: Seth Goldberg
9702 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9704 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
9706 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
9707 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
9708 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
9709 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
9710 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
9711 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
9712 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9713 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9714 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9715 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9716 * normal/context.c (GRUB_MOD_INIT): Likewise.
9717 * normal/main.c (GRUB_MOD_INIT): Likewise.
9718 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9719 * term/serial.c (GRUB_MOD_INIT): Likewise.
9720 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9722 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9724 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
9727 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9729 * commands/iorw.c: New file.
9730 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
9731 (iorw_mod_SOURCES): New variable.
9732 (iorw_mod_CFLAGS): Likewise.
9733 (iorw_mod_LDFLAGS): Likewise.
9735 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9739 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
9740 * normal/main.c (hotkey_aliases): New variable.
9741 (grub_normal_add_menu_entry): Parse "--hotkey".
9742 * normal/menu_text.c (run_menu): Handle hotkeys.
9744 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9746 * kern/i386/coreboot/init.c (grub_machine_init): Call
9747 grub_machine_mmap_init on qemu.
9749 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9751 * boot/i386/qemu/boot.S: Add a missing .code16.
9753 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9755 Use LBIO on coreboot.
9757 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
9758 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
9759 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
9761 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
9762 grub_machine_mmap_init on coreboot.
9763 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
9764 GRUB_LINUXBIOS_MEMBER_LINK.
9765 (grub_machine_mmap_iterate): Fix declaration.
9766 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
9768 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9770 Split coreboot and multiboot ports.
9772 * conf/i386-multiboot.rmk: New file.
9773 * configure.ac: Add multiboot port.
9774 * include/grub/i386/multiboot/boot.h: New file.
9775 * include/grub/i386/multiboot/console.h: Likewise.
9776 * include/grub/i386/multiboot/init.h: Likewise.
9777 * include/grub/i386/multiboot/kernel.h: Likewise.
9778 * include/grub/i386/multiboot/loader.h: Likewise.
9779 * include/grub/i386/multiboot/memory.h: Likewise.
9780 * include/grub/i386/multiboot/serial.h: Likewise.
9781 * include/grub/i386/multiboot/time.h: Likewise.
9782 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
9783 * loader/multiboot.c: Likewise.
9784 * loader/multiboot_mbi2.c: Likewise.
9785 * util/grub-mkrescue.in: Generate multiboot rescue.
9787 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9789 * kern/parser.c (grub_parser_execute): Cope with read-only config.
9791 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9793 Merge handling of input and output terminals. Fix a hang.
9795 * commands/terminal.c (abstract_terminal): New struct.
9796 (handle_command): New function. Based on grub_cmd_terminal_input.
9797 (grub_cmd_terminal_input): Use handle_command.
9798 (grub_cmd_terminal_output): Use handle_command.
9800 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
9802 Fix comment handling.
9804 * tests/grub_script_comments.in: New testcase.
9805 * conf/tests.rmk: Rules for new testcase.
9806 * script/yylex.l: Updated flex rules.
9808 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9810 * docs/grub.texi (play): Document that zero pitches produce rests.
9811 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
9814 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
9816 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
9819 2010-04-26 Christian Franke <franke@computer.org>
9821 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
9822 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
9823 (grub_get_prefix): Remove function.
9824 * util/grub-emu.c (main): Replace grub_get_prefix () call by
9825 make_system_path_relative_to_its_root ().
9826 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
9828 2010-04-24 Christian Franke <franke@computer.org>
9830 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
9831 (kernel_img_LDFLAGS): Remove -static-libgcc.
9833 2010-04-24 Christian Franke <franke@computer.org>
9835 * configure.ac: Do not CHECK_BSS_START_SYMBOL
9836 and CHECK_END_SYMBOL if grub-emu is built.
9837 Unset TARGET_OBJ2ELF if grub-emu is built
9838 without module support.
9840 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
9844 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
9845 (grub_fstest_SOURCES): Likewise.
9846 (pkglib_MODULES): Add nilfs2.mod.
9847 (nilfs2_mod_SOURCES): New variable.
9848 (nilfs2_mod_CFLAGS): Likewise.
9849 (nilfs2_mod_LDFLAGS): Likewise.
9850 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
9851 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
9852 * fs/nilfs2.c: New file.
9854 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9856 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
9859 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
9861 Add grub-mkconfig support for NetBSD.
9863 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
9864 * util/grub-mkconfig.in: export new NetBSD specific variables.
9865 * po/POTFILES-shell: added 10_netbsd.in.
9866 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
9868 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
9870 Fix emu build with grub-emu-pci and grub-emu-modules.
9872 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
9874 * include/grub/libpciaccess.h: New file.
9875 * conf/any-emu.rmk: Update kernel headers for emu build.
9877 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
9879 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
9881 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
9883 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
9885 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9887 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
9888 Retrieve chosen/bootpath if bootpath isn't hardcoded.
9889 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
9890 util/ieee1275/ofpath.c.
9891 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
9892 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
9893 * include/grub/sparc64/ieee1275/boot.h
9894 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
9895 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
9896 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
9897 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
9899 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
9900 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
9901 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
9904 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
9906 * util/grub-mkconfig.in: Corrected two == equality tests.
9907 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
9908 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
9909 expect a number appended to it.
9910 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
9911 expects a number appended to it.
9913 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9915 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
9917 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9919 * util/hostdisk.c (make_device_name): Change to new partition naming.
9921 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
9923 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
9925 2010-04-17 Christian Franke <franke@computer.org>
9927 * Makefile.in: Add missing localedir setting.
9929 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
9931 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
9932 mistake in r2156. Noticed by Anthony Fok.
9934 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
9936 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
9938 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
9940 Fix a spurious, uninitialized variable warning.
9942 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
9943 Initialize variable, shdr.
9944 (grub_freebsd_load_elfmodule): Likewise.
9945 (grub_freebsd_load_elf_meta): Likewise.
9947 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
9949 Fix for escaped dollar in double quoted strings.
9951 * script/yylex.l: Updated flex rules.
9952 * conf/tests.rmk: Rule for new testcase.
9953 * tests/grub_script_dollar.in: New testcase.
9955 2010-04-13 Carles Pina i Estany <carles@pina.cat>
9956 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
9958 Enclose all translated strings in grub.cfg in single quotes, and
9959 escape them appropriately (Ubuntu bug #552921).
9961 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
9962 * util/grub.d/10_hurd.in: Use it.
9963 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
9964 * util/grub.d/10_linux.in (linux_entry): Likewise.
9966 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9968 Fix cygwin compilation.
9970 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
9971 * include/grub/misc.h (__register_frame_info)
9972 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
9973 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
9974 * kern/misc.c (__register_frame_info)
9975 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
9976 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
9978 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9980 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
9982 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9984 Unify libgcc processing.
9986 * Makefile.in (kernel_img_LDFLAGS): New variable.
9987 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
9988 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
9990 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
9991 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
9992 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
9993 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
9994 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
9995 overwriting. Remove -lgcc and -static-libgcc
9996 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
9997 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
9998 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
9999 (kernel_img_LDFLAGS): Append instead of overwriting.
10000 Remove -lgcc and -static-libgcc
10001 * conf/sparc64-ieee1275.rmk: Likewise.
10002 * include/grub/powerpc/libgcc.h: Move to ...
10003 * include/grub/libgcc.h: .. this.
10004 * include/grub/libgcc.h: Don't export most of the function on x86.
10005 (__bswapsi2): New export.
10006 (__bswapdi2): Likewise.
10007 * include/grub/mips/libgcc.h: Removed.
10008 * include/grub/sparc64/libgcc.h: Likewise.
10010 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10012 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
10013 disk_info_msg (conflicts with gettexting into languages with cases).
10015 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10017 Add grub-probe support for NetBSD.
10019 * util/getroot.c (find_root_device): Convert block device to
10020 character device on NetBSD.
10021 * util/probe.c (probe): Require character device on NetBSD.
10022 * util/hostdisk.c: NetBSD specific headers.
10023 (configure_device_driver): new function to tune device driver
10024 parameters (currently only for NetBSD floppy driver).
10025 (grub_util_biosdisk_open): NetBSD specific code (get disk size
10026 via disklabel ioctl).
10027 (open_device): call configure_device_driver on NetBSD.
10028 (convert_system_partition_to_system_disk): NetBSD specific code.
10029 (device_is_wholedisk): Likewise.
10030 (grub_util_biosdisk_get_grub_dev): Likewise.
10031 (make_device_name): Fixed a typo in bsd_part_str.
10032 * configure.ac: check for opendisk() and getrawpartition() on
10033 NetBSD and set LIBUTIL.
10034 * Makefile.in: add LIBUTIL to LIBS.
10036 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10040 * util/grub-script-check.c: Better help message.
10042 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10046 * configure.ac: Flex version check.
10047 * conf/common.rmk: Add -Wno-error to sh.mod.
10048 * script/yylex.l: Remove all #pragma.
10050 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10052 * include/grub/util/misc.h (canonicalise_file_name): Add missing
10054 Reported by: Seth Goldberg.
10056 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10058 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
10059 Rename "module" to "module2".
10060 Reported by: Seth Goldberg.
10062 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10064 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
10066 Reported by: Seth Goldberg.
10068 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10070 * lib/posix_wrap/locale.h: Add missing file.
10071 Reported by: Seth Goldberg.
10073 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10075 grub-emu module load support.
10077 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
10078 NO_DYNAMIC_MODULES switched to this.
10079 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
10080 (CFLAGS): Likewise.
10081 * conf/any-emu.rmk: Generate symlist.
10082 (kernel_img_HEADERS): Add util/datetime.h.
10083 (kernel_img_HEADERS) [sdl]: Add sdl.h.
10084 (kernel_img_HEADERS) [libusb]: Add libusb.h.
10085 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
10086 kern/$(target_cpu)/cache.S.
10087 * configure.ac (grub-emu-modules): New option.
10088 * genmk.rb: Handle multiple source lists.
10089 * include/grub/sdl.h: New file.
10090 * include/grub/libusb.h: Likewise.
10091 * util/grub-emu.c (main): Hanle (host) root.
10092 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
10093 GRUB_ERR_UNKNOWN_DEVICE.
10094 * util/misc.c: Move mm functions to ...
10095 * util/mm.c: ... here. All users updated.
10097 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10099 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
10100 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
10102 (maintainer-clean): Remove libgcrypt-grub.
10104 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10106 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
10108 2010-04-09 EFI Coder <eficoder@hotmail.com>
10110 * normal/menu_text.c (print_message): Clean up the message and show
10111 the Fn information when on EFI
10112 * term/efi/console.c (grub_console_checkkey): Add F4 support.
10114 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10116 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
10118 * normal/crypto.c (read_crypto_list): Likewise.
10119 * normal/dyncmd.c (read_command_list): Likewise.
10120 * normal/term.c (read_terminal_list): Likewise.
10121 * normal/main.c (read_lists): Use explicit prefix.
10122 (read_lists_hook): Use read_lists.
10123 (grub_normal_execute): Likewise.
10125 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10127 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
10128 Reported by: Thomas Schmitt.
10129 Add -no-emul-boot to grub-mkisofs parameters.
10131 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10133 * font/font.c: Indented.
10135 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10137 Elif support to GRUB script (by Deepak Vankadaru).
10139 * tests/grub_script_if.in: New testcase.
10140 * conf/tests.rmk: Rule for new testcase.
10141 * script/parser.y: Grammar rules for elif.
10143 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10145 While and until loops support to GRUB script.
10147 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
10148 (grub_script_create_cmdwhile): New function prototype.
10149 (grub_script_execute_cmdwhile): New function prototype.
10150 * script/execute.c (grub_script_execute_cmdwhile): New function.
10151 * script/parser.y (command): New commands.
10152 (whilecmd): New grammar rule.
10153 (untilcmd): New grammar rule.
10154 * script/script.c (grub_script_create_cmdwhile): New function.
10155 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
10158 * tests/grub_script_while1.in: New testcase.
10159 * conf/tests.rmk: Rule for new testcase.
10161 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10163 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
10166 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
10168 GRUB_BACKGROUND support.
10170 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
10171 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
10173 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10175 Load fonts and modules for gfxmenu in grub-mkconfig.
10176 Idea by: Mario Vazquez
10178 * util/grub.d/00_header.in: Load pf2 and image modules.
10180 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10182 grub-mkconfig multiple terminal support.
10184 * util/grub-mkconfig.in: Handle multiple terminals correctly.
10185 * util/grub.d/00_header.in: Likewise.
10187 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10189 * Makefile.in: Specify files explicitly instead of using $< and $@ since
10190 we use cd $(srcdir).
10192 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
10194 * util/grub.d/10_linux.in: Only use the first word of
10195 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
10196 spaces in GRUB_DISTRIBUTOR.
10197 * util/grub.d/10_kfreebsd.in: Likewise.
10198 * util/grub.d/10_hurd.in: Likewise.
10200 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
10202 Fix unit testing framework for Qemu 0.12.
10204 * tests/util/grub-shell.in: Remove -serial stdio option.
10206 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
10208 POSIX header file wrappers.
10210 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
10212 * lib/posix_wrap/ctype.h: Likewise.
10213 * lib/posix_wrap/errno.h: Likewise.
10214 * lib/posix_wrap/langinfo.h: Likewise.
10215 * lib/posix_wrap/limits.h: Likewise.
10216 * lib/posix_wrap/localcharset.h: Likewise.
10217 * lib/posix_wrap/stdint.h: Likewise.
10218 * lib/posix_wrap/stdio.h: Likewise.
10219 * lib/posix_wrap/stdlib.h: Likewise.
10220 * lib/posix_wrap/string.h: Likewise.
10221 * lib/posix_wrap/sys/types.h: Likewise.
10222 * lib/posix_wrap/unistd.h: Likewise.
10223 * lib/posix_wrap/wchar.h: Likewise.
10224 * lib/posix_wrap/wctype.h: Likewise.
10225 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
10226 (grub_script.yy.h): Likewise.
10227 * script/yylex.l: Remove POSIX emulation #defines.
10228 * Makefile.in (POSIX_CFLAGS): New variable.
10229 (GNULIB_UTIL_CFLAGS): Likewise.
10233 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
10234 (regexp_mod_SOURCES): New variable.
10235 (regexp_mod_CFLAGS): Likewise.
10236 (regexp_mod_LDFLAGS): Likewise.
10237 * commands/regexp.c: New file.
10238 * gnulib/regcomp.c: New file. Imported from gnulib.
10239 * gnulib/regex.c: Likewise.
10240 * gnulib/regex_internal.c: Likewise.
10241 * gnulib/regex_internal.h: Likewise.
10242 * gnulib/regexec.c: Likewise.
10243 * gnulib/regex.h: Likewise.
10245 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10247 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
10248 unsupported video mode types.
10250 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10252 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
10254 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10256 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
10257 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
10259 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10261 Remove unused grub_vga_get_font.
10263 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
10264 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
10266 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10268 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
10269 * include/grub/misc.h: Likewise.
10271 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10273 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
10274 for which failure is fatal.
10276 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10278 * util/grub-install.in: Use mkdir -p to create grub directory.
10279 * util/i386/efi/grub-install.in: Likewise.
10280 * util/ieee1275/grub-install.in: Likewise.
10282 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10284 * Makefile.in (LEX): new variable.
10286 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10288 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
10289 `=' and added double quotes on operands of this equality test.
10291 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10293 * Makefile.in (uninstall): Remove a leftover debug echo.
10294 Reported by: Grégoire Sutre
10296 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10298 MIPS multiboot2 support.
10300 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
10301 (multiboot2_mod_SOURCES): New variable.
10302 (multiboot2_mod_CFLAGS): Likewise.
10303 (multiboot2_mod_LDFLAGS): Likewise.
10304 (multiboot2_mod_ASFLAGS): Likewise.
10305 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
10307 (MULTIBOOT_ENTRY_REGISTER): Likewise.
10308 (MULTIBOOT_MBI_REGISTER): Likewise.
10309 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
10310 (MULTIBOOT_ELF32_MACHINE): Likewise.
10311 (MULTIBOOT_ELF64_MACHINE): Likewise.
10312 * include/grub/mips/multiboot.h: New file.
10313 * include/grub/video.h (grub_video_driver_id): New type
10314 GRUB_VIDEO_DRIVER_SM712.
10315 (grub_video_get_info_and_fini): Export.
10316 (grub_video_get_palette): Likewise.
10317 (grub_video_get_driver_id): Likewise.
10318 * include/multiboot2.h: Resynced with spec.
10319 * loader/i386/multiboot.c: Moved from here ...
10320 * loader/multiboot.c: ... here. All users updated.
10321 (grub_multiboot_boot): Use platform-specific macros.
10322 * loader/i386/multiboot_elfxx.c: Moved from here ...
10323 * loader/multiboot_elfxx.c: ... here. All users updated.
10324 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
10325 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
10326 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
10328 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
10330 Import gnulib argp module.
10332 * gnulib/argp-ba.c: New file.
10333 * gnulib/argp-eexst.c: Likewise.
10334 * gnulib/argp-fmtstream.c: Likewise.
10335 * gnulib/argp-fmtstream.h: Likewise.
10336 * gnulib/argp-fs-xinl.c: Likewise.
10337 * gnulib/argp-help.c: Likewise.
10338 * gnulib/argp-namefrob.h: Likewise.
10339 * gnulib/argp-parse.c: Likewise.
10340 * gnulib/argp-pin.c: Likewise.
10341 * gnulib/argp-pv.c: Likewise.
10342 * gnulib/argp-pvh.c: Likewise.
10343 * gnulib/argp-version-etc.c: Likewise.
10344 * gnulib/argp-version-etc.h: Likewise.
10345 * gnulib/argp-xinl.c: Likewise.
10346 * gnulib/argp.h: Likewise.
10348 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10350 * kern/device.c (grub_device_iterate): Clear errors after failed
10353 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10355 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
10356 returned by firmware.
10358 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
10360 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
10361 compilation on coreboot and qemu
10363 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10365 * include/multiboot2.h: Resync with spec.
10367 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10369 Multiboot2 tag support
10371 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
10372 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
10373 Remove loader/multiboot_loader.c.
10374 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
10375 (grub_multiboot2_real_boot): Likewise.
10376 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
10377 (grub_get_multiboot_mmap_count): New proto.
10378 (grub_fill_multiboot_mmap): Likewise.
10379 (grub_multiboot_set_video_mode): Likewise.
10380 (grub_multiboot_set_console): Likewise.
10381 (grub_multiboot_load): Likewise.
10382 (grub_multiboot_load_elf): Likewise.
10383 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
10384 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
10385 * include/multiboot.h: Resynced with specification.
10386 * include/multiboot2.h: Resynced with specification.
10387 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
10388 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
10389 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
10390 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
10392 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
10393 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
10394 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
10396 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
10398 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
10399 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10401 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
10402 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
10403 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
10405 * loader/i386/multiboot_mbi2.c: New file.
10407 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10409 Resync with gnulib.
10411 * Makefile.in (GNULIB_CFLAGS): New variable.
10412 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
10413 (grub_script_check_CFLAGS): New variable.
10414 * gnulib/alloca.h: Resync with gnulib.
10415 * gnulib/error.c: Likewise.
10416 * gnulib/error.h: Likewise.
10417 * gnulib/fnmatch.c: Likewise.
10418 * gnulib/fnmatch_loop.c: Likewise.
10419 * gnulib/getdelim.c: Likewise.
10420 * gnulib/getline.c: Likewise.
10421 * gnulib/getopt.c: Likewise.
10422 * gnulib/getopt1.c: Likewise.
10423 * gnulib/getopt_int.h: Likewise.
10424 * gnulib/gettext.h: Likewise.
10425 * gnulib/progname.c: Likewise.
10426 * gnulib/progname.h: Likewise.
10428 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
10430 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
10431 which is the case with --disabled-nls.
10433 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
10434 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
10435 * util/misc.c: Likewise.
10436 * util/mkisofs/mkisofs.c: Likewise.
10437 * util/mkisofs/mkisofs.h: Likewise.
10439 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10441 Simplify Apple CC support.
10443 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
10444 Add 0 byte at the end not to have a symbol with empty target.
10445 * mmap/i386/pc/mmap_helper.S: Likewise.
10446 * genmk.rb: Ignore errors 2030 and 2050.
10447 * kern/i386/pc/startup.S: Use LOCAL when possible.
10449 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
10451 Testcase and the fix for final semicolon on cmdline.
10453 * tests/grub_script_final_semicolon.in: New testcase.
10454 * conf/tests.rmk: Rules for the new testcase.
10455 * script/parser.y: Grammar fix.
10457 2010-03-26 BVK Chaitanya <bvk@localhost>
10459 Blank lines testcase for GRUB script.
10461 * tests/grub_script_blanklines.in: New testcase.
10462 * conf/tests.rmk: Rules for the new testcase.
10464 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10466 Don't use __FILE__.
10468 * genmk.rb: Add -DGRUB_FILE to all C targets.
10469 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
10470 * include/grub/list.h: Likewise.
10471 * include/grub/misc.h: Likewise.
10472 * include/grub/mm.h: Likewise.
10473 * include/grub/test.h: Likewise.
10474 * kern/mm.c: Likewise.
10475 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10477 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10479 Sunpc partitions support.
10481 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
10482 (grub_fstest_SOURCES): Likewise.
10483 (pkglib_MODULES): Add part_sunpc.mod.
10484 (part_sunpc_mod_SOURCES): New variable.
10485 (part_sunpc_mod_CFLAGS): Likewise.
10486 (part_sunpc_mod_LDFLAGS): Likewise.
10487 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
10488 * partmap/sunpc.c: New file.
10490 2010-03-26 BVK Chaitanya <bvk@localhost>
10492 For loop support to GRUB script.
10494 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
10495 (grub_script_create_cmdfor): New function prototype.
10496 (grub_script_execute_cmdfor): New function prototype.
10497 * script/execute.c (grub_script_execute_cmdfor): New function.
10498 * script/parser.y (command): New for command.
10499 (forcmd): New grammar rule.
10500 * script/script.c (grub_script_create_cmdfor): New function.
10501 * util/grub-script-check.c (grub_script_execute_cmdfor): New
10503 * tests/grub_script_for1.in: New testcase.
10504 * conf/tests.rmk: Rules for new testcase.
10506 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10510 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
10511 'partition' is NULL, grub_partition_get_start already does that.
10512 * commands/loadenv.c (check_blocklists): Likewise.
10513 (write_blocklists): Likewise.
10514 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
10515 (grub_fstest_SOURCES): Likewise.
10516 (pkglib_MODULES): Add part_bsd.mod.
10517 (part_bsd_mod_SOURCES): New variable.
10518 (part_bsd_mod_CFLAGS): Likewise.
10519 (part_bsd_mod_LDFLAGS): Likewise.
10520 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
10521 (grub_emu_SOURCES): Likewise.
10522 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10523 * include/grub/bsdlabel.h: New file.
10524 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
10526 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
10527 (grub_partition_map_list): New variable.
10528 (grub_partition_map_register): Inline.
10529 (grub_partition_map_unregister): Likewise.
10530 (FOR_PARTITION_MAPS): New macro.
10531 (grub_partition_map_iterate): Removed.
10532 (grub_partition_get_start): Handle nested partitions.
10533 * include/grub/msdos_partition.h: Remove bsd-related entries.
10534 (grub_pc_partition): Remove.
10535 * kern/disk.c (grub_disk_close): Free partition data.
10536 (grub_disk_adjust_range): Handle nested partitions.
10537 * kern/partition.c (grub_partition_map_probe): New function.
10538 (grub_partition_probe): Parse name to number, handle subpartitions.
10539 (get_partmap): New function.
10540 (grub_partition_iterate): Handle subpartitions.
10541 (grub_partition_get_name): Likewise.
10542 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
10543 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
10544 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
10545 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
10547 (acorn_partition_map_probe): Remove.
10548 (acorn_partition_map_get_name): Likewise.
10549 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
10551 Set 'index' to 0 since there can be only one partition entry per sector.
10552 (amiga_partition_map_probe): Remove.
10553 (amiga_partition_map_get_name): Likewise.
10554 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
10556 Set 'offset' and 'index' to real positions of partitions.
10557 (apple_partition_map_probe): Remove.
10558 (apple_partition_map_get_name): Likewise.
10559 * partmap/bsdlabel.c: New file.
10560 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
10562 Allocate 'data' so it can be correctly freed.
10563 Set 'index' to offset inside sector.
10564 (gpt_partition_map_probe): Remove.
10565 (gpt_partition_map_get_name): Likewise.
10566 * partmap/msdos.c (grub_partition_parse): Remove.
10567 (pc_partition_map_iterate): Don't force raw access.
10569 Make 'ext_offset' a local variable.
10570 (pc_partition_map_probe): Remove.
10571 (pc_partition_map_get_name): Remove.
10572 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
10574 (sun_partition_map_probe): Remove.
10575 (sun_partition_map_get_name): Likewise.
10576 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
10577 (grub_pcpart_type): Likewise.
10578 * util/hostdisk.c (open_device): Handle new numbering scheme.
10579 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
10580 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
10581 * util/grub-probe.c (probe_partmap): Handle nested paritions.
10582 * util/grub-install.in: Insert all subpartition modules.
10583 * util/ieee1275/grub-install.in: Likewise.
10585 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
10587 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
10590 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
10592 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
10594 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
10596 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
10597 match where 'make install' puts them.
10598 * util/i386/efi/grub-install.in: Likewise.
10600 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
10602 * .bzrignore: Add gentrigtables, grub-script-check,
10603 grub_script_check_init.c, grub_script_check_init.h, and
10606 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
10608 * kern/parser.c: Indented.
10610 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10612 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
10614 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10616 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
10617 alpha_mask_size == 0 case.
10619 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
10621 GRUB shell lexer and parser improvements.
10623 * conf/any-emu.rmk: Build rule updates.
10624 * conf/common.rmk: Likewise.
10625 * conf/i386-coreboot.rmk: Likewise.
10626 * conf/i386-efi.rmk: Likewise.
10627 * conf/i386-ieee1275.rmk: Likewise.
10628 * conf/i386-pc.rmk: Likewise.
10629 * conf/powerpc-ieee1275.rmk: Likewise.
10630 * conf/x86_64-efi.rmk: Likewise.
10632 * configure.ac: Configure check for flex.
10634 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
10636 (grub_lexer_param): Struct member updates.
10637 (grub_parser_param): Likewise.
10638 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
10639 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
10640 (grub_script_lexer_init): Prototype update.
10641 (grub_script_lexer_record_start): Likewise.
10642 (grub_script_lexer_record_stop): Likewise.
10643 (grub_script_lexer_yywrap): New function prototype.
10644 (grub_script_lexer_fini): Likewise.
10645 (grub_script_execute_argument_to_string): Removed by...
10646 (grub_script_execute_argument_to_argv): ...better version.
10648 * script/execute.c (ROUND_UPTO): New macro.
10649 (grub_script_execute_cmdline): Out of memory fixes.
10650 (grub_script_execute_menuentry): Likewise.
10651 (grub_script_execute_argument_to_string): Removed. Update all
10653 (grub_script_execute_argument_to_argv): ...better version.
10654 * script/function.c (grub_script_function_create): Use
10655 grub_script_execute_argument_to_argv instead of
10656 grub_script_execute_argument_to_string.
10658 * script/lexer.c (check_varstate): Removed.
10659 (check_textstate): Removed.
10660 (grub_script_lexer_record_start): Likewise.
10661 (grub_script_lexer_record_stop): Likewise.
10662 (recordchar): Replaced with...
10663 (grub_script_lexer_record): ...new function.
10664 (nextchar): Removed.
10665 (grub_script_lexer_init): Rewritten.
10666 (grub_script_yylex): Rewritten.
10667 (append_newline): New function.
10668 (grub_script_lexer_yywrap): New function.
10669 (grub_script_lexer_fini): New function.
10670 (grub_script_yyerror): Sets error flag.
10672 * script/yylex.l: New file.
10673 (grub_lexer_yyfree): Wrapper for flex yyffre.
10674 (grub_lexer_yyalloc): Likewise.
10675 (grub_lexer_yyrealloc): Likewise.
10676 * script/parser.y: Refactored.
10678 * script/script.c (grub_script_arg_add): Out of memory fixes.
10679 (grub_script_add_arglist): Likewise.
10680 (grub_script_create_cmdline): Likewise.
10681 (grub_script_create_cmdmenu): Likewise.
10682 (grub_script_add_cmd): Likewise.
10683 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
10684 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
10687 * tests/grub_script_echo1.in: New testcase.
10688 * tests/grub_script_vars1.in: New testcase.
10689 * tests/grub_script_echo_keywords.in: New testcase.
10691 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10693 Remove some redundancy in build system.
10695 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
10696 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
10697 (TARGET_LDFLAGS): Add -nostdlib.
10698 (TARGET_IMG_LDFLAGS): Likewise.
10699 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
10700 anything since mmap isn't available.
10701 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
10703 (pkglib_MODULES): Remove reboot.mod.
10704 (reboot_mod_SOURCES): Removed.
10705 (reboot_mod_CFLAGS): Likewise.
10706 (reboot_mod_LDFLAGS): Likewise.
10707 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
10708 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
10709 (DEFSYMFILES): Add kernel_syms.lst.
10710 (kernel_img_HEADERS): Add common headers.
10711 (symlist.c): New target.
10712 (kernel_syms.lst): Likewise.
10713 (pkglib_MODULES): Add memdisk.mod.
10714 (memdisk_mod_SOURCES): New variable.
10715 (memdisk_mod_CFLAGS): Likewise.
10716 (memdisk_mod_LDFLAGS): Likewise.
10717 (pkglib_MODULES): Add reboot.mod.
10718 (reboot_mod_SOURCES): New variable.
10719 (reboot_mod_CFLAGS): Likewise.
10720 (reboot_mod_LDFLAGS): Likewise.
10721 (pkglib_MODULES): Add date.mod.
10722 (date_mod_SOURCES): New variable.
10723 (date_mod_CFLAGS): Likewise.
10724 (date_mod_LDFLAGS): Likewise.
10725 (pkglib_MODULES): Add datehook.mod.
10726 (datehook_mod_SOURCES): New variable.
10727 (datehook_mod_CFLAGS): Likewise.
10728 (datehook_mod_LDFLAGS): Likewise.
10729 (pkglib_MODULES): Add lsmmap.mod.
10730 (lsmmap_mod_SOURCES): New variable.
10731 (lsmmap_mod_CFLAGS): Likewise.
10732 (lsmmap_mod_LDFLAGS): Likewise.
10733 (pkglib_MODULES): Add boot.mod.
10734 (boot_mod_SOURCES): New variable.
10735 (boot_mod_CFLAGS): Likewise.
10736 (boot_mod_LDFLAGS): Likewise.
10737 * conf/i386-coreboot.rmk: Removed redundant parts.
10738 * conf/i386-ieee1275.rmk: Likewise.
10739 * conf/i386-pc.rmk: Likewise.
10740 * conf/mips-yeeloong.rmk: Likewise.
10741 * conf/mips.rmk: Likewise.
10742 * conf/powerpc-ieee1275.rmk: Likewise.
10743 * conf/sparc64-ieee1275.rmk: Likewise.
10744 * conf/x86_64-efi.rmk: Likewise.
10745 * conf/i386-coreboot.rmk: Moved qemu parts ..
10746 * conf/i386-qemu.rmk: ... here
10747 * conf/i386-efi.rmk: Moved common parts to...
10748 * conf/x86-efi.rmk: ... here.
10749 * conf/i386.rmk: Added modules common to all x86 variants.
10750 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
10751 * disk/memdisk.c: Remove grub/machine/kernel.h.
10752 * gensymlist.sh.in: Include symbol.h.
10753 * hook/datehook.c: Correct module name.
10754 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
10755 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
10756 * include/grub/i386/efi/serial.h: New file.
10757 * include/grub/x86_64/efi/serial.h: Likewise.
10758 * util/time.c: Likewise.
10759 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
10761 2010-03-14 Colin King <colin.king@ubuntu.com>
10762 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
10764 Shrink the pre-partition-table part of boot.img by eight bytes.
10766 * boot/i386/pc/boot.S (ERR): New macro.
10767 (chs_mode): Use ERR.
10768 (geometry_error): Likewise.
10769 (hd_probe_error): Remove. This is only used once, so we wrwite
10771 (read_error): Instead of printing read_error_string, just set up
10772 %si and fall through to ...
10773 (error_message): ... this new function, also used by ERR.
10775 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
10777 Speed up consecutive hostdisk operations on the same device.
10779 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
10780 (grub_util_biosdisk_open): Initialise disk->data.
10781 (struct linux_partition_cache): New structure.
10782 (linux_find_partition): Cache partition start positions; these are
10783 expensive to compute on every read and write.
10784 (open_device): Cache open file descriptor in disk->data, so that we
10785 don't have to reopen it and flush the buffer cache for consecutive
10786 operations on the same device.
10787 (grub_util_biosdisk_close): New function.
10788 (grub_util_biosdisk_dev): Set `close' member.
10790 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
10791 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
10792 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10793 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
10794 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
10796 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10798 Compile parts of grub-emu as modules.
10800 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
10801 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
10802 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
10803 (all-local): Add $(GRUB_EMU).
10804 (install-local): Install $(GRUB_EMU).
10805 (uninstall): Uninstall $(GRUB_EMU).
10806 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
10807 * kern/dl.c: Likewise.
10808 * commands/sleep.c: Not include machine/time.h.
10809 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
10810 (COMMON_CFLAGS): Likewise.
10811 (sbin_UTILITIES): Remove grub-emu.
10812 (grub_emu_SOURCES): Removed.
10813 (kernel_img_RELOCATABLE): New variable.
10814 (pkglib_PROGRAMS): Add kernel.img.
10815 (kernel_img_SOURCES): New variable
10816 (kernel_img_CFLAGS): Likewise.
10817 (kernel_img_LDFLAGS): Likewise.
10818 (TARGET_NO_STRIP): Likewise.
10819 (TARGET_NO_DYNAMIC_MODULES): Likewise.
10820 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
10821 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
10822 (grub-emu): New target.
10823 (GRUB_EMU): New variable.
10824 * configure.ac: Whitelist -emu as possible x86_64 architecture.
10825 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
10826 * loader/xnu.c: Likewise.
10827 * include/grub/pci.h: Likewise.
10828 * genemuinit.sh: New file.
10829 * genemuinitheader.sh: Likewise.
10830 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
10831 Support TARGET_NO_DYNAMIC_MODULES.
10832 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
10833 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
10834 * disk/loopback.c: Likewise.
10835 * font/font_cmd.c: Likewise.
10836 * partmap/acorn.c: Likewise.
10837 * partmap/amiga.c: Likewise.
10838 * partmap/apple.c: Likewise.
10839 * partmap/gpt.c: Likewise.
10840 * partmap/msdos.c: Likewise.
10841 * partmap/sun.c: Likewise.
10842 * parttool/msdospart.c: Likewise.
10843 * term/gfxterm.c: Likewise.
10844 * video/bitmap.c: Likewise.
10845 * video/readers/jpeg.c: Likewise.
10846 * video/readers/png.c: Likewise.
10847 * video/readers/tga.c: Likewise.
10848 * video/video.c: Likewise.
10849 * util/grub-emu.c (read_command_list): Removed.
10850 (main): Don't call util_init_nls.
10851 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
10852 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
10854 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10856 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
10857 date.mod, datehook.mod.
10858 (datetime_mod_SOURCES): New variable.
10859 (datetime_mod_CFLAGS): Likewise.
10860 (datetime_mod_LDFLAGS): Likewise.
10861 (date_mod_SOURCES): Likewise.
10862 (date_mod_CFLAGS): Likewise.
10863 (date_mod_LDFLAGS): Likewise.
10864 (datehook_mod_SOURCES): Likewise.
10865 (datehook_mod_CFLAGS): Likewise.
10866 (datehook_mod_LDFLAGS): Likewise.
10867 * conf/sparc64-ieee1275.rmk: Likewise.
10868 * lib/ieee1275/datetime.c: New file.
10870 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10872 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
10873 (ieee1275_fb_mod_SOURCES): New variable.
10874 (ieee1275_fb_mod_CFLAGS): Likewise.
10875 (ieee1275_fb_mod_LDFLAGS): Likewise.
10876 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
10878 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
10879 (HEAP_MAX_ADDR): Likewise.
10880 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
10882 Correct stop condition.
10883 (grub_ieee1275_devices_iterate): New function.
10884 * video/ieee1275.c: New file.
10886 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10888 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
10890 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
10892 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
10893 SCRATCH_PAD_DISKBOOT as scratch.
10894 (bootit): Pass Openfirmware pointer in %o4.
10895 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
10897 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
10898 with util/grub-mkrawimage.c.
10899 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
10900 * include/grub/aout.h (AOUT_MID_SUN): New definition.
10901 (grub_aout_get_type) [GRUB_UTIL]: Removed.
10902 (grub_aout_load) [GRUB_UTIL]: Likewise.
10903 * include/grub/kernel.h (grub_modules_get_end): New proto.
10904 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
10905 (SCRATCH_PAD_BOOT): New definition.
10906 (SCRATCH_PAD_DISKBOOT): Likewise.
10907 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
10908 * include/grub/sparc64/ieee1275/ieee1275.h
10909 (grub_ieee1275_original_stack): New variable
10910 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
10912 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
10913 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
10914 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
10915 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
10916 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
10917 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
10918 (grub_platform_image_format_t): New type.
10919 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
10920 * kern/main.c (grub_modules_get_end)
10921 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
10922 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
10923 (codestart): Switch stacks.
10924 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
10926 (grub_heap_init): Use grub_modules_get_end.
10927 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
10929 * util/grub-mkrawimage.c (generate_image): Support sparc64.
10931 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
10933 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
10935 * util/grub-mkrescue.in: Base ISO UUID on UTC.
10937 2010-03-08 Matt Kraai <kraai@ftbfs.org>
10939 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
10942 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10944 * genmoddep.awk: Output all missing symbols and not only first.
10946 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10948 * NEWS: Put the date of 1.98 release.
10950 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10952 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
10955 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10957 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
10958 completition in the middle of string.
10960 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10962 * util/grub-mkrescue.in: Use mktemp with explicit template.
10964 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10966 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
10968 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10970 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
10973 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10975 Fix FreeBSD compilation.
10977 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
10978 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
10980 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10982 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
10984 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10986 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
10988 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10990 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
10992 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
10994 Support relative image path in theme file.
10996 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
10997 (image_set_property): Handle theme_dir and relative path.
10999 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11001 * configure.ac: Alias amd64 to x86_64.
11003 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11005 * NEWS: mention multiboot on EFI.
11007 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11009 * kern/main.c (grub_load_modules): Handle errors from init functions of
11012 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11014 * normal/autofs.c (autoload_fs_module): Handle errors.
11016 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11018 Disable linux.mod on qemu-mips since it's not functional and leads
11019 to compilation failure.
11021 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
11022 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
11023 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
11024 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
11025 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
11026 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
11027 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
11028 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
11029 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
11030 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
11031 Reported by: BVK Chaitanya
11033 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
11035 * INSTALL: Add gettext as a dependency and add qemu to a new section
11036 "Prerequisites for make-check".
11038 2010-03-04 Christian Franke <franke@computer.org>
11040 * util/grub-pe2elf.c: Add missing include "progname.h".
11042 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11044 * normal/crypto.c (read_crypto_list): Fix a typo.
11045 Reported by: Seth Goldberg.
11047 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11049 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
11050 Reported by: Seth Goldberg.
11052 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11054 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
11057 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11059 * genmk.rb: Remove terminal*.lst in make clean.
11060 Reported by: Seth Goldberg.
11062 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11064 * util/i386/efi/grub-install.in: Copy gettext files.
11066 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11068 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
11070 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11072 Wait for user entry basing on presence of output rather than on errors.
11074 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
11075 (grub_install_newline_hook): Likewise.
11076 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
11077 * normal/menu.c (show_menu): Check line_counter to determine presence
11079 * normal/term.c (grub_normal_line_counter): New variable.
11080 (grub_normal_get_line_counter): New function.
11081 (grub_install_newline_hook): Likewise.
11083 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11085 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
11087 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11089 * configure.ac: Update version to 1.98.
11091 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11093 * util/grub.d/10_linux.in (linux_entry): Don't default to
11094 gfxpayload=keep if Linux doesn't support video handover.
11096 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11098 Don't compile video modules on yeeloong since video subsystem is part
11101 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
11102 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
11103 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
11104 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
11105 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
11106 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
11107 * include/grub/bitmap_scale.h: Likewise.
11108 * include/grub/bufio.h: Likewise.
11109 * include/grub/font.h: Likewise.
11110 * include/grub/gfxterm.h: Likewise.
11111 * include/grub/video.h: Likewise.
11112 * include/grub/vbe.h: Don't include video_fb.h.
11113 * video/i386/pc/vbe.c: Include video_fb.h.
11114 * commands/i386/pc/vbetest.c: Include video.h.
11116 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
11118 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
11119 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
11120 default entry if GRUB_SAVEDEFAULT=true. This allows using
11121 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
11122 saving a new default on every boot.
11124 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11126 * normal/crypto.c (read_crypto_list): Fix a memory leak.
11127 * normal/term.c (read_terminal_list): Likewise.
11128 * normal/main.c (grub_normal_init_page): Likewise.
11129 (grub_normal_read_line_real): Likewise.
11131 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11133 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
11135 Reported by: Seth Goldberg.
11137 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
11139 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
11140 duplicate declaration of `start'.
11142 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11144 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
11146 Reported by: Georgy Buranov
11148 2010-02-20 Carles Pina i Estany <carles@pina.cat>
11150 * util/grub-mkrawimage.c (usage): Change string formatting to
11153 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
11155 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
11158 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11160 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
11161 Reported by: Michael Suchanek.
11163 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
11165 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
11166 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
11168 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
11170 Remove any reference to non-free fonts.
11172 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
11173 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
11174 uses non-free components.
11175 * font/font.c (grub_font_get_name): Remove example name.
11176 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
11177 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11178 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
11179 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
11181 2010-02-16 Georgy Buranov <gburanov@gmail.com>
11183 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
11185 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11187 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
11189 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
11191 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
11193 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11195 * gensymlist.sh.in: Use TARGET_CC instead of CC.
11197 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11199 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
11200 * docs/grub.texi (Command-line and menu entry commands): Document play
11203 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11205 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
11206 parse arguments as inline tempo and notes. Move code for playing notes
11208 (play): ... new function.
11210 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11212 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
11213 grub_uint16_t instead of short.
11214 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
11215 disk from little endian to cpu endianness.
11217 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
11219 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
11220 GRUB_TICKS_PER_SECOND instead of 120.
11222 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11224 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
11225 escape sequence after \e.
11227 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11229 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
11230 non-ASCII characters.
11232 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11234 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
11235 set root in single quotes to prevent \, from being unescaped.
11237 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11239 Prevent unknown commands from stopping menuentry execution.
11241 * script/execute.c (grub_script_execute_cmdline): Print error after
11244 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11246 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
11247 Reported by: Pavel Pisa.
11249 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11251 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
11253 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11255 Merge grub_ieee1275_map_physical into grub_map and rename to
11258 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
11259 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
11261 * kern/ieee1275/openfw.c (grub_map): Rename to ...
11262 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
11264 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
11266 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11268 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
11269 opening and not after.
11271 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11273 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
11276 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11278 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
11279 (alloc_phys): Use ALIGN_UP instead of align_addr.
11281 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11283 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
11285 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11287 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
11289 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11291 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
11294 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11296 Fix over-4GiB seek on sparc64.
11298 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
11299 Replace pos_i and pos_lo with pos. All users updated.
11300 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11302 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11304 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
11307 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11309 * util/grub-mkrawimage.c (main): Call set_program_name.
11311 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11313 Properly align 64-bit targets.
11315 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
11316 (generate_image): Use ALIGN_ADDR.
11318 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11320 Properly create cross-endian images.
11322 * include/grub/types.h (grub_host_to_target_addr): New macro
11323 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
11325 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11327 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
11329 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11331 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
11333 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
11334 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
11335 (grub_linux_boot): Divide by 64K when on VESA.
11337 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11339 Support GRUB_GFXPAYLOAD_LINUX.
11341 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
11342 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
11344 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11346 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
11347 to show messages instead of discarding them.
11348 Process errors after executing command and not before. Keep old method
11351 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
11353 * configure.ac: Check for ft2build.h.
11355 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11357 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
11359 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11361 * genkernsyms.sh.in: Use TARGET_CC.
11363 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
11367 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11369 * include/grub/multiboot2.h: Remove leftover file.
11370 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
11371 * include/grub/partition.h [GRUB_UTIL]: Likewise.
11373 2010-02-07 Yves Blusseau <blusseau@zetam.org>
11375 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
11377 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11379 Fix warnings in grub-emu when compiling with maximum warning options.
11381 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
11382 (grub_arch_modules_addr): Return 0 and not NULL.
11383 * util/misc.c (ENABLE_RELOCATABLE): New definition.
11384 (xstrdup): Use newstr instead of dup.
11385 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
11386 of disk to dsk to avoid shadowing.
11387 (find_free_slot): Fix prototype.
11388 * util/getroot.c (grub_util_is_dmraid): Make static.
11389 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
11390 Add missing prototype.
11391 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
11393 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11395 * loader/i386/linux.c (grub_linux_setup_video): Handle error
11398 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11400 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
11403 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11405 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
11406 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
11407 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
11408 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
11409 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
11410 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
11412 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11414 * include/grub/err.h (grub_err_printf): Don't export.
11416 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11418 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
11420 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11422 * include/grub/i18n.h (grub_gettext_dummy): Removed.
11423 * kern/misc.c (grub_gettext_dummy): Make static.
11425 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11427 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
11429 * kern/term.c (grub_putchar): Likewise.
11431 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11433 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
11434 buggy hook call and memory leak.
11436 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11438 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
11440 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11442 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
11444 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11446 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
11448 Return grub_errno on allocation error.
11450 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11452 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
11454 2010-02-06 Yves Blusseau <blusseau@zetam.org>
11456 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
11457 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
11459 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11461 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
11463 (grub_pxefs_open): Likewise.
11465 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11467 * util/grub.d/10_hurd.in: Add --class information to menuentries.
11468 * util/grub.d/10_kfreebsd.in: Likewise.
11469 * util/grub.d/10_linux.in: Likewise.
11471 2010-02-06 Colin D Bennett <colin@gibibit.com>
11473 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
11474 (gfxmenu_mod_SOURCES): New variable.
11475 (gfxmenu_mod_CFLAGS): Likewise.
11476 (gfxmenu_mod_LDFLAGS): Likewise.
11477 * include/grub/term.h (grub_term_set_current_output): Declare
11479 * docs/gfxmenu-theme-example.txt: New file.
11480 * gfxmenu/gfxmenu.c: Likewise.
11481 * gfxmenu/gui_box.c: Likewise.
11482 * gfxmenu/gui_canvas.c: Likewise.
11483 * gfxmenu/gui_circular_progress.c: Likewise.
11484 * gfxmenu/gui_image.c: Likewise.
11485 * gfxmenu/gui_label.c: Likewise.
11486 * gfxmenu/gui_list.c: Likewise.
11487 * gfxmenu/gui_progress_bar.c: Likewise.
11488 * gfxmenu/gui_string_util.c: Likewise.
11489 * gfxmenu/gui_util.c: Likewise.
11490 * gfxmenu/icon_manager.c: Likewise.
11491 * gfxmenu/model.c: Likewise.
11492 * gfxmenu/named_colors.c: Likewise.
11493 * gfxmenu/theme_loader.c: Likewise.
11494 * gfxmenu/view.c: Likewise.
11495 * gfxmenu/widget-box.c: Likewise.
11496 * include/grub/gfxmenu_model.h: Likewise.
11497 * include/grub/gfxmenu_view.h: Likewise.
11498 * include/grub/gfxwidgets.h: Likewise.
11499 * include/grub/gui.h: Likewise.
11500 * include/grub/gui_string_util.h: Likewise.
11501 * include/grub/icon_manager.h: Likewise.
11503 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11505 Agglomerate scrolling in gfxterm.
11507 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
11508 (grub_virtual_screen_setup): Initialise 'total_screen'.
11509 (write_char): Split to ...
11510 (paint_char): ... this ...
11511 (write_char): ... and this.
11512 (paint_char): Handle delayed scrolling.
11513 (draw_cursor): Likewise.
11514 (scroll_up): Split to ...
11515 (real_scroll): ... this ...
11516 (scroll_up): ... and this.
11517 (real_scroll): Handle multi-line scroll and draw below-the-bottom
11519 (grub_gfxterm_refresh): Call real_scroll.
11521 2010-02-06 Colin D Bennett <colin@gibibit.com>
11523 * include/grub/misc.h (grub_iscntrl): New inline function.
11524 (grub_isalnum): Likewise.
11525 (grub_strtol): Likewise.
11527 2010-02-06 Colin D Bennett <colin@gibibit.com>
11529 * normal/menu_text.c (get_entry_number): Move from here ...
11530 * normal/menu.c (get_entry_number): ... moved here.
11531 * include/grub/menu.h (grub_menu_get_default_entry_index):
11533 * normal/menu.c (grub_menu_get_default_entry_index): New function.
11534 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
11535 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
11536 (grub_menu_viewer_should_return): Likewise.
11537 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
11538 * normal/menu_text.c (run_menu): Enable menu switching.
11539 * normal/menu_viewer.c (should_return): New variable.
11540 (menu_viewer_changed): Likewise.
11541 (grub_menu_viewer_show_menu): Handle menu viewer changes.
11542 (grub_menu_viewer_should_return): New function.
11543 (menuviewer_write_hook): Likewise.
11544 (grub_menu_viewer_init): Likewise.
11546 2010-02-06 Colin D Bennet <colin@gibibit.com>
11547 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11549 Support for gfxterm in a window.
11551 * include/grub/gfxterm.h: New file.
11552 * include/grub/video.h (struct grub_video_rect): New declaration.
11553 (grub_video_rect_t): Likewise.
11554 * term/gfxterm.c (struct grub_gfxterm_window): New type.
11555 (refcount): New variable.
11556 (render_target): Likewise.
11557 (window): Likewise.
11558 (repaint_callback): Likewise.
11559 (grub_virtual_screen_setup): Use 'render_target'.
11560 (init_window): New function.
11561 (grub_gfxterm_init_window): Likewise.
11562 (grub_gfxterm_init): Check reference counter.
11564 (destroy_window): New function.
11565 (grub_gfxterm_destroy_window): Likewise.
11566 (grub_gfxterm_fini): Check reference counter.
11567 Use destroy_window.
11568 (redraw_screen_rect): Restore viewport.
11569 Use 'render_target' and 'window'.
11570 Call 'repaint_callback'.
11571 (write_char): Use 'render_target'.
11572 (draw_cursor): Likewise.
11573 (scroll_up): Restore viewport.
11574 Use 'render_target' and 'window'.
11575 Call 'repaint_callback'.
11576 (grub_gfxterm_cls): Likewise.
11577 (grub_gfxterm_refresh): Use 'window'.
11578 (grub_gfxterm_set_repaint_callback): New function.
11579 (grub_gfxterm_background_image_cmd): Use 'window'.
11580 (grub_gfxterm_get_term): New function.
11581 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
11583 2010-02-06 Colin D Bennett <colin@gibibit.com>
11585 Bitmap scaling support.
11587 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
11588 (bitmap_scale_mod_SOURCES): New variable.
11589 (bitmap_scale_mod_CFLAGS): Likewise.
11590 (bitmap_scale_mod_LDFLAGS): Likewise.
11591 * include/grub/bitmap_scale.h: New file.
11592 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
11593 (background_image_cmd_options): New variable.
11594 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
11595 (cmd): Rename and change type to ...
11596 (background_image_cmd_handle): ... this. All users updated.
11597 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
11598 * video/bitmap_scale.c: New file.
11600 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11604 * Makefile.in (LIBSDL): New variable.
11605 (enable_grub_emu_sdl): Likewise.
11606 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
11607 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
11608 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
11609 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
11610 * util/sdl.c: New file.
11612 2010-02-06 Colin D Bennett <colin@gibibit.com>
11613 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11615 Double buffering support.
11617 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
11618 * include/grub/video.h: Update comment.
11619 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
11621 (grub_video_fb_doublebuf_blit_init): New prototype.
11622 * term/gfxterm.c (scroll_up): Support double buffering.
11623 (grub_gfxterm_refresh): Likewise.
11624 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
11625 (grub_video_fb_doublebuf_blit_init): Likewise.
11626 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
11627 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
11628 'displayed_page', 'render_page' and 'update_screen'.
11629 (grub_video_vbe_fini): Free offscreen buffer.
11630 (doublebuf_pageflipping_commit): New function.
11631 (doublebuf_pageflipping_update_screen): Likewise.
11632 (doublebuf_pageflipping_init): Likewise.
11633 (double_buffering_init): Likewise.
11634 (grub_video_vbe_setup): Enable doublebuffering.
11635 (grub_video_vbe_swap_buffers): Implement.
11636 (grub_video_vbe_set_active_render_target): Handle double buffering.
11637 (grub_video_vbe_get_active_render_target): Likewise.
11638 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
11639 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
11640 (grub_video_vbe_enable_double_buffering): Likewise.
11641 (grub_video_vbe_swap_buffers): Use update_screen.
11642 (grub_video_set_mode): Use double buffering.
11644 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11646 * maintainance/gentrigtables.py: Remove.
11647 * lib/trig.c: Likewise.
11649 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
11651 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
11653 (trigtables.c): New rule.
11654 (gentrigtables): Likewise.
11655 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
11657 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11659 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
11662 2010-02-06 Colin D Bennet <colin@gibibit.com>
11664 Trigonometry support.
11666 * include/grub/trig.h: New file.
11667 * lib/trig.c: Likewise.
11668 * maintainance/gentrigtables.py: Likewise.
11669 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
11670 (trig_mod_SOURCES): New variable.
11671 (trig_mod_CFLAGS): Likewise.
11672 (trig_mod_LDFLAGS): Likewise.
11674 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11676 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
11679 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11681 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
11684 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11686 * util/hostdisk.c (open_device): Don't use partition device when reading
11687 before the partition.
11688 (grub_util_biosdisk_read): Don't read from partition and before the
11689 partition in single operation.
11690 (grub_util_biosdisk_write): Don't write to partition and before the
11691 partition in single operation.
11693 2010-02-03 Torsten Landschoff <torsten@debian.org>
11695 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11698 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11700 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
11702 (grub_biosdisk_write): Refuse to write to CDROM.
11704 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
11708 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11710 * font/font.c (find_glyph): Check that bmp_idx is available before
11712 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
11713 with (font == NULL).
11715 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
11717 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
11719 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
11721 * include/grub/script_sh.h (sourcecode): Add const qualifier.
11722 * util/grub-script-check.c (getline): Fix empty lines case.
11724 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
11726 * Makefile.in (check): Exit with fail status when one of the tests
11728 * tests/example_functional_test.c (example_test): Fix reversed assert.
11729 * tests/example_unit_test.c (example_test): Likewise.
11731 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
11733 * util/grub.d/10_linux.in: This script does not use any of the
11734 contents of gettext.sh, only the external command `gettext', so stop
11735 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
11736 the same prefix as GRUB.)
11737 * util/grub.d/10_kfreebsd.in: Likewise.
11739 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11741 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
11744 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11746 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11749 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11751 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
11752 having a 4KiB and not 32KiB buffer size.
11754 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11756 * util/hostfs.c: Include `<errno.h>'.
11757 (grub_hostfs_read): Handle errors from fseeko() and fread().
11759 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11761 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
11762 loop when using read hooks on files whose size isn't sector-aligned.
11764 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11766 Remove unused parameter.
11768 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
11769 (grub_iso9660_open): Remove initialization of `data->length'.
11771 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11773 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
11774 memleak conditions.
11776 2010-01-27 Carles Pina i Estany <carles@pina.cat>
11778 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
11779 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
11781 2010-01-26 Carles Pina i Estany <carles@pina.cat>
11783 * util/bin2h.c (usage): Fix warning (space after backslash).
11785 2010-01-26 Carles Pina i Estany <carles@pina.cat>
11787 * font/font.c: Include `grub/fontformat.h.
11788 Remove font file format constants.
11789 (grub_font_load): Use the new macros.
11790 * include/grub/fontformat.h: New file.
11791 * util/grub-mkfont.c: Include `grub/fontformat.c'.
11792 (write_font_pf2): Use the new macros.
11794 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11796 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
11799 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11801 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
11803 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
11804 (_start): Macroify `0x7F'.
11806 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
11807 (make_install_device): Use "(pxe)" as fallback prefix when booting
11810 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11812 * configure.ac: Reset LIBS after check for libgcc symbols.
11814 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
11816 * util/hostdisk.c (open_device): Add trailing newline to debug
11819 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
11821 * configure.ac: Check for `limits.h'.
11822 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
11824 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
11826 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
11827 capitalize error strings.
11829 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
11831 * util/grub.d/10_hurd.in: Add a recovery mode.
11833 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11835 * configure.ac: Check for libgcc symbols with -nostdlib.
11837 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
11839 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
11841 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11843 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
11844 stack since heap may be unavailable at that point.
11845 (grub_ofconsole_gotoxy): Likewise.
11847 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11849 * configure.ac: Check for _restgpr_14_x.
11850 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
11851 and _savegpr_* prototypes.
11853 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
11855 Use generic grub_reboot() for i386-efi.
11857 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
11858 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
11859 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
11861 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11863 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
11864 presence of "prefix" variable as it breaks when normal.mod is
11867 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11869 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
11870 stack since heap is unavailable at that point.
11872 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11874 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
11875 (grub_freebsd_bootinfo): Rewritten.
11876 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
11878 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11880 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
11882 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
11884 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
11887 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
11889 * util/misc.c (make_system_path_relative_to_its_root): Change the work
11890 around for handling "/" to the correct fix. Fix a memory leak. Use
11891 xstrdup instead of strdup.
11893 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11895 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
11897 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11899 Optimise glyph lookup by Basic Multilingual Plane lookup array.
11901 * font/font.c (struct grub_font): New member 'bmp_idx'.
11902 (font_init): Initialise 'bmp_idx'.
11903 (load_font_index): Fill 'bmp_idx'.
11904 (find_glyph): Make inline. Use bmp_idx for BMP characters.
11906 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11908 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
11911 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11913 Move context handling out of the kernel.
11915 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
11916 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
11917 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
11918 * conf/i386-efi.rmk: Likewise.
11919 * conf/i386-ieee1275.rmk: Likewise.
11920 * conf/i386-pc.rmk: Likewise.
11921 * conf/powerpc-ieee1275.rmk: Likewise.
11922 * conf/sparc64-ieee1275.rmk: Likewise.
11923 * conf/x86_64-efi.rmk: Likewise.
11924 * include/grub/env.h: Include grub/menu.h.
11925 (grub_env_var_type): Removed.
11926 (grub_env_var): Replaced field 'type' with 'global'.
11927 (grub_env_find): New prototype.
11928 (grub_env_context_open): Remove EXPORT_FUNC.
11929 (grub_env_context_close): Likewise.
11930 (grub_env_export): Likewise.
11931 (grub_env_set_data_slot): Removed.
11932 (grub_env_get_data_slot): Likewise.
11933 (grub_env_unset_data_slot): Likewise.
11934 (grub_env_unset_menu): New prototype.
11935 (grub_env_set_menu): Likewise.
11936 (grub_env_get_menu): Likewise.
11937 * include/grub/env_private.h: New file.
11938 * include/grub/normal.h (grub_context_init): New prototype.
11939 (grub_context_fini): Likewise.
11940 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
11941 * normal/context.c (grub_cmd_export): ... to here.
11942 * kern/env.c: Include env_private.h.
11943 (HASHSZ): Moved to include/grub/env_private.h.
11944 (grub_env_context): Likewise.
11945 (grub_env_sorted_var): Likewise.
11946 (current_context): Renamed from this ...
11947 (grub_current_context): ...to this. 'static' removed. All users updated.
11948 (grub_env_find): Removed 'static'.
11949 (grub_env_context_open): Moved to normal/context.c.
11950 (grub_env_context_close): Likewise.
11951 (grub_env_export): Likewise.
11952 (mangle_data_slot_name): Removed.
11953 (grub_env_set_data_slot): Likewise.
11954 (grub_env_get_data_slot): Likewise.
11955 (grub_env_unset_data_slot): Likewise.
11956 * kern/main.c (grub_set_root_dev): Don't export root.
11957 It will be done later.
11958 (grub_main): Don't export prefix.
11959 It will be done later.
11960 * normal/context.c: New file.
11961 * normal/main.c (free_menu): Use grub_env_unset_menu.
11962 (grub_normal_add_menu_entry): Use grub_env_get_menu.
11963 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
11964 (GRUB_MOD_INIT(normal)): Call grub_context_init.
11965 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
11967 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11971 * commands/setpci.c: New file.
11972 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
11973 (setpci_mod_SOURCES): New variable.
11974 (setpci_mod_CFLAGS): Likewise.
11975 (setpci_mod_LDFLAGS): Likewise.
11977 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11979 Byte-addressable PCI configuration space.
11981 * bus/pci.c (grub_pci_make_address): Use byte address instead of
11983 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
11984 GRUB_PCI_REG_CACHELINE.
11985 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
11986 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
11987 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
11988 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
11989 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
11990 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
11991 grub_pci_make_address.
11992 (lock_rom_area): Likewise.
11993 * commands/lspci.c (grub_lspci_iter): Use macroses
11994 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
11995 of grub_pci_make_address.
11996 * disk/ata.c (grub_ata_pciinit): Likewise.
11997 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
11998 (GRUB_PCI_REG_VENDOR): Likewise.
11999 (GRUB_PCI_REG_DEVICE): Likewise.
12000 (GRUB_PCI_REG_COMMAND): Likewise.
12001 (GRUB_PCI_REG_STATUS): Likewise.
12002 (GRUB_PCI_REG_REVISION): Likewise.
12003 (GRUB_PCI_REG_CLASS): Likewise.
12004 (GRUB_PCI_REG_CACHELINE): Likewise.
12005 (GRUB_PCI_REG_LAT_TIMER): Likewise.
12006 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
12007 (GRUB_PCI_REG_BIST): Likewise.
12008 (GRUB_PCI_REG_ADDRESSES): Likewise.
12009 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12010 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12011 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12012 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12013 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12014 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12015 (GRUB_PCI_REG_CIS_POINTER): Likewise.
12016 (GRUB_PCI_REG_SUBVENDOR): Likewise.
12017 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
12018 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
12019 (GRUB_PCI_REG_CAP_POINTER): Likewise.
12020 (GRUB_PCI_REG_IRQ_LINE): Likewise.
12021 (GRUB_PCI_REG_IRQ_PIN): Likewise.
12022 (GRUB_PCI_REG_MIN_GNT): Likewise.
12023 (GRUB_PCI_REG_MAX_LAT): Likewise.
12024 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
12025 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
12026 * video/efi_uga.c (find_framebuf): Likewise.
12027 * video/sm712.c (grub_video_sm712_setup): Likewise.
12028 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
12031 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12033 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
12034 can be reliably determined to be supported.
12036 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12038 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
12039 that VESA is supported.
12040 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
12043 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12045 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
12047 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12049 * util/misc.c (make_system_path_relative_to_its_root): Work around
12050 special-casing of "/", as previous incarnation of this routine did.
12052 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12054 Fix any-emu compilation.
12056 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
12057 * grub_bin2h_SOURCES: New variable.
12059 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12061 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
12063 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12065 * util/grub.d/00_header.in: Fix handling of locale_dir.
12067 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12069 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
12070 as possible unifont location (Gentoo).
12071 Reported by: Alexander Brüning
12073 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12075 Don't try to generate lists for kernel.img.
12077 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
12078 (pkglib_MODULES): Remove kernel.img.
12079 (kernel_img_EXPORTS): Removed.
12080 (kernel_img_RELOCATABLE): New variable.
12081 * conf/x86_64-efi.rmk: Likewise.
12082 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
12084 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12086 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
12087 grub_xasprintf or grub_snprintf.
12088 (grub_vsprintf): Likewise.
12089 (grub_snprintf): New proto.
12090 (grub_vsnprintf): Likewise.
12091 (grub_xasprintf): Likewise.
12092 (grub_xvasprintf): Likewise.
12093 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
12094 (grub_sprintf): Removed.
12095 (grub_vsnprintf): New function.
12096 (grub_snprintf): Likewise.
12097 (grub_xvasprintf): Likewise.
12098 (grub_xasprintf): Likewise.
12099 (grub_vsprintf): Renamed to ...
12100 (grub_vsnprintf_real): ...this. New argument max_len.
12102 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
12104 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
12105 fix grub-script-check warning.
12107 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12109 * include/grub/font.h (grub_font_load): Fix prototype.
12111 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12113 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
12115 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12117 * include/grub/x86_64/at_keyboard.h: New file.
12119 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12121 * loader/mips/linux.c: Include missing grub/i18n.h.
12123 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12125 * normal/menu.c (notify_execution_failure): Clarify error message.
12127 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12129 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
12130 return value (and revert all return statements). Update users.
12132 2010-01-20 Dan Merillat <debian@dan.merillat.org>
12134 * kern/device.c (grub_device_iterate): Allocate new part_ent
12135 structure based on sizeof (*p) rather than sizeof (p->next), to
12136 account for structure padding.
12138 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
12139 disk is NULL, which might happen for LVM physical volumes with no
12142 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12144 * loader/mips/linux.c (grub_cmd_initrd)
12145 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
12147 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12149 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
12150 (grub_video_video_init, grub_video_bitmap_init)
12151 (grub_font_manager_init, grub_term_gfxterm_init)
12152 (grub_at_keyboard_init): New extern declarations.
12153 (grub_machine_init): Initialize gfxterm and at_keyboard.
12155 * kern/main.c (grub_main): Revert grub_printf delay kludge.
12157 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
12158 `gfxterm.mod' into core image.
12160 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12161 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12162 (kernel_img_FORMAT): Copy to ...
12164 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12165 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12166 (kernel_img_FORMAT): ... here, and ...
12168 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12169 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12170 (kernel_img_FORMAT): ... here.
12172 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
12173 and input (at_keyboard) terminals in kernel.
12174 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
12176 (pkglib_MODULES): Remove `pci.mod'.
12177 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
12178 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
12179 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
12180 (at_keyboard_mod_LDFLAGS): Remove variables.
12182 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
12184 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
12186 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
12188 * include/grub/mips/libgcc.h: Only export symbols for functions
12189 that libgcc provides.
12191 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
12195 * bus/bonito.c: New file.
12196 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
12197 GRUB_PCI_NUM_DEVICES.
12198 * term/i386/pc/serial.c: Move to ...
12199 * term/serial.c: ... here. All users updated.
12200 * util/i386/pc/grub-mkimage.c: Move to ...
12201 * util/grub-mkrawimage.c: ... here. All users updated.
12202 * term/i386/pc/at_keyboard.c: Move to ...
12203 * term/at_keyboard.c: ... here. All users updated.
12204 * conf/mips-qemu-mips.rmk: New file.
12205 * conf/mips-yeeloong.rmk: Likewise.
12206 * conf/mips.rmk: Likewise.
12207 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
12209 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
12211 (grub_ata_pciinit): Support CS5536.
12212 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
12213 * font/font_cmd.c (loadfont_command): Open file before passing it to
12215 (pseudo_file_read): New function.
12216 (pseudo_file_close): Likewise.
12217 (pseudo_fs): New structure.
12218 (load_font_module): New function.
12219 (GRUB_MOD_INIT(font_manager)): Load embedded font.
12220 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
12221 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
12222 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
12223 * include/grub/i386/at_keyboard.h: Split into ...
12224 * include/grub/at_keyboard.h: ... this ...
12225 * include/grub/i386/at_keyboard.h: ... and this.
12226 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
12228 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
12230 (grub_elf64_size): Likewise.
12231 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
12233 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
12234 * include/grub/i386/coreboot/serial.h: Rewritten.
12235 * include/grub/i386/ieee1275/serial.h: Include
12236 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
12237 * include/grub/i386/pc/serial.h: Moved from here ...
12238 * include/grub/serial.h: ... to here. All users updated.
12239 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
12240 (GRUB_PCI_NUM_BUS): Likewise.
12241 (GRUB_PCI_NUM_DEVICES): Likewise.
12242 (grub_pci_device_map_range): Add missing volatile keyword.
12243 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
12244 * include/grub/mips/at_keyboard.h: New file.
12245 * include/grub/mips/cache.h: Likewise.
12246 * include/grub/mips/io.h: Likewise.
12247 * include/grub/mips/kernel.h: Likewise.
12248 * include/grub/mips/libgcc.h: Likewise.
12249 * include/grub/mips/pci.h: Likewise.
12250 * include/grub/mips/qemu-mips/boot.h: Likewise.
12251 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12252 * include/grub/mips/qemu-mips/loader.h: Likewise.
12253 * include/grub/mips/qemu-mips/memory.h: Likewise.
12254 * include/grub/mips/qemu-mips/serial.h: Likewise.
12255 * include/grub/mips/qemu-mips/time.h: Likewise.
12256 * include/grub/mips/relocator.h: Likewise.
12257 * include/grub/mips/time.h: Likewise.
12258 * include/grub/mips/types.h: Likewise.
12259 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
12260 * include/grub/mips/yeeloong/boot.h: Likewise.
12261 * include/grub/mips/yeeloong/kernel.h: Likewise.
12262 * include/grub/mips/yeeloong/loader.h: Likewise.
12263 * include/grub/mips/yeeloong/memory.h: Likewise.
12264 * include/grub/mips/yeeloong/pci.h: Likewise.
12265 * include/grub/mips/yeeloong/serial.h: Likewise.
12266 * include/grub/mips/yeeloong/time.h: Likewise.
12267 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
12268 * kern/elf.c (grub_elf32_size): New parameter. All users
12270 (grub_elf64_size): Likewise.
12271 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
12272 Load modules before saying "Welcome to GRUB!".
12273 Call grub_refresh after saying "Welcome to GRUB!".
12274 * kern/mips/cache.S: New file.
12275 * kern/mips/cache_flush.S: Likewise.
12276 * kern/mips/dl.c: Likewise.
12277 * kern/mips/init.c: Likewise.
12278 * kern/mips/qemu-mips/init.c: Likewise.
12279 * kern/mips/startup.S: Likewise.
12280 * kern/mips/yeeloong/init.c: Likewise.
12281 * kern/term.c (grub_putcode): Handle NULL terminal.
12282 (grub_getcharwidth): Likewise.
12283 (grub_getkey): Likewise.
12284 (grub_checkkey): Likewise.
12285 (grub_getkeystatus): Likewise.
12286 (grub_getxy): Likewise.
12287 (grub_getwh): Likewise.
12288 (grub_gotoxy): Likewise.
12289 (grub_cls): Likewise.
12290 (grub_setcolorstate): Likewise.
12291 (grub_setcolor): Likewise.
12292 (grub_getcolor): Likewise.
12293 (grub_refresh): Likewise.
12294 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
12295 (write_jump): Add hatch nop.
12296 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
12297 * lib/mips/setjmp.S: New file.
12298 * loader/mips/linux.c: Likewise.
12299 * term/i386/pc/at_keyboard.c: Move from here ...
12300 * term/at_keyboard.c: ... to here.
12301 * term/i386/pc/serial.c: Moved from here ...
12302 * term/serial.c: ... to here. All users updated.
12303 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
12304 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
12305 (serial_translate_key_sequence): Avoid deadlock.
12306 (grub_serial_getkey): Handle backspace.
12307 (grub_serial_putchar): Fix newline handling.
12308 * util/i386/pc/grub-mkimage.c: Move from here ...
12309 * util/grub-mkrawimage.c: ... to here. All users updated.
12310 (generate_image): New parameters 'font_path' and 'format'.
12311 Support embedding font.
12312 Use grub_host_to_target* instead of grub_cpu_to_le*.
12313 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
12314 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
12315 (options): New option "--font".
12317 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
12318 (main): Handle "--font".
12319 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
12320 (grub_virtual_screen_setup): Set bg_color_display.
12321 (redraw_screen_rect): Use bg_color_display instead of incorrect
12323 (grub_gfxterm_cls): Likewise.
12324 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
12325 Support embedding config file.
12326 (add_segments): Likewise.
12327 (options): New option "--config".
12328 (main): Handle "--config".
12329 * video/sm712.c: New file.
12331 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12333 Fix parallel builds.
12335 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
12336 font.c depend on ascii.h).
12338 2010-01-12 Carles Pina i Estany <carles@pina.cat>
12340 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
12342 2010-01-11 Carles Pina i Estany <carles@pina.cat>
12344 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
12345 By default: disabled.
12346 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
12349 2010-01-10 Carles Pina i Estany <carles@pina.cat>
12351 * font/font.c: Update copyright years.
12352 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
12354 2010-01-10 Carles Pina i Estany <carles@pina.cat>
12356 * font/font.c: Include `ascii.h'.
12357 (ASCII_BITMAP_SIZE): New macro.
12358 (ascii_font_glyph): Define.
12359 (ascii_glyph_lookup): New function.
12360 (grub_font_get_string_width): Change comment. If glyph not found, use
12361 ascii_glyph_lookup.
12362 (grub_font_get_glyph_with_fallback): If glyph not available returns
12363 ascii_glyph_lookup.
12364 * util/grub-mkfont.c (file_formats): New enum.
12365 (options): Add `ascii-bitmaps' new option.
12366 (usage): Add `asii-bitmaps' new option.
12367 (write_font_ascii_bitmap): New function.
12368 (write_font): Rename to ...
12369 (write_font_p2): ... this. Remove print_glyphs call.
12370 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
12371 used. Call print_glyphs.
12372 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
12374 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12376 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
12377 (grub_bin2h_SOURCES): New variable.
12378 * util/bin2h.c: New file.
12380 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12382 * include/multiboot.h: Resynced with spec.
12383 * include/multiboot2.h: Likewise.
12384 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
12385 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
12387 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12389 * include/grub/term.h (grub_term_register_input,
12390 grub_term_register_output): Check return of terminal init()
12391 routines, and abort if errors are raised.
12393 * commands/terminal.c: Update copyright year.
12395 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12397 * commands/terminal.c (grub_cmd_terminal_input)
12398 (grub_cmd_terminal_output): Check return of terminal init()
12399 routines, and abort if errors are raised.
12401 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12403 * include/grub/i386/bsd.h: Fix include pathes.
12405 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12407 Add missing *BSD copyright headers.
12409 * include/grub/aout.h: Add BSD licence.
12410 * include/grub/i386/bsd.h: Parts under different licences moved to ...
12411 * include/grub/i386/freebsd_linker.h: ... here,
12412 * include/grub/i386/freebsd_reboot.h: ... here,
12413 * include/grub/i386/netbsd_bootinfo.h: ... here,
12414 * include/grub/i386/netbsd_reboot.h: ... here,
12415 * include/grub/i386/openbsd_bootarg.h: ... here,
12416 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
12417 licence to each file.
12419 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12421 * acinclude.m4: Remove `nop' assembly instruction; it's not
12422 implemented by all architectures.
12424 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12426 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
12427 ELILO. This is no longer necessary.
12429 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
12431 Added new tool, grub-scrit-check to verify grub.cfg syntax.
12433 * util/grub-script-check.c: grub-script-check tool.
12434 * conf/common.rmk: Make rules for grub-script-check.
12436 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12438 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
12439 spotting it back in 2008. Shame on me for forgetting he did.
12441 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
12443 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12445 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
12446 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
12447 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
12448 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
12449 (GRUB_VIDEO_TYPE_EFI): Rename to ...
12450 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
12452 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
12454 * include/grub/test.h: Add license header.
12455 * tests/example_functional_test.c: Likewise.
12456 * tests/example_unit_test.c: Likewise.
12457 * tests/lib/functional_test.c: Likewise.
12458 * tests/lib/test.c: Likewise.
12459 * tests/lib/unit_test.c: Likewise.
12461 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
12463 Use flag-based instead of hook-based video mode selection and "auto"
12466 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
12467 (grub_video_set_mode): Changed prototype. All users updated.
12468 (grub_video_check_mode_flag): New inline function.
12469 * video/video.c (parse_modespec): New function.
12470 (grub_video_set_mode): Parse flags and keywords.
12472 2010-01-17 Carles Pina i Estany <carles@pina.cat>
12474 * util/misc.c (grub_util_info): Fix the order of the parameters in a
12477 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
12479 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
12481 2010-01-16 Carles Pina i Estany <carles@pina.cat>
12483 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
12485 * util/grub-emu.c (usage): Likewise.
12486 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
12487 * util/i386/efi/grub-mkimage.c (usage): Likewise.
12488 * util/i386/pc/grub-mkimage.c (usage): Likewise.
12489 * util/i386/pc/grub-setup.c (usage): Likewise.
12491 2010-01-16 Carles Pina i Estany <carles@pina.cat>
12493 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
12495 (grub_util_info): Likewise.
12496 (grub_util_error): Likewise.
12497 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
12498 and/or new lines in `grub_util_warna', `grub_util_info',
12499 `grub_util_error' calls.
12500 * util/getroot.c: Likewise.
12501 * util/grub-editenv.c: Likewise.
12502 * util/grub-emu.c: Likewise.
12503 * util/grub-fstest.c: Likewise.
12504 * util/grub-mkdevicemap.c: Likewise.
12505 * util/grub-mkfont.c: Likewise.
12506 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12507 * util/grub-mkrelpath.c: Likewise.
12508 * util/grub-pe2elf.c: Likewise.
12509 * util/grub-probe.c: Likewise.
12510 * util/hostdisk.c: Likewise.
12511 * util/i386/efi/grub-mkimage.c: Likewise.
12512 * util/i386/pc/grub-mkimage.c: Likewise.
12513 * util/i386/pc/grub-setup.c: Likewise.
12514 * util/ieee1275/ofpath.c: Likewise.
12515 * util/mkisofs/eltorito.c: Likewise.
12516 * util/mkisofs/rock.c: Likewise.
12517 * util/mkisofs/write.c: Likewise.
12518 * util/raid.c: Likewise.
12519 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12520 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12522 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12524 Enable multiboot on non-pc.
12526 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
12527 multiboot.mod and multiboot2.mod to ...
12528 * conf/i386.rmk (pkglib_MODULES): ... here.
12529 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
12531 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
12532 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
12534 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
12535 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
12537 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
12538 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
12540 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
12541 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
12543 (ata_mod_SOURCES): Removed.
12544 (ata_mod_CFLAGS): Likewise.
12545 (ata_mod_LDFLAGS): Likewise.
12546 (relocator_mod_SOURCES): Removed.
12547 (relocator_mod_CFLAGS): Likewise.
12548 (relocator_mod_ASFLAGS): Likewise.
12549 (relocator_mod_LDFLAGS): Likewise.
12551 * include/grub/x86_64/multiboot.h: New file.
12552 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
12555 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12557 Video multiboot support.
12559 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
12561 * include/multiboot.h: Resynced with multiboot specification.
12562 * include/multiboot2.h: Likewise.
12563 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
12564 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
12565 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
12566 (HAS_VGA_TEXT): Likewise.
12567 (accepts_video): New variable.
12568 (grub_multiboot_set_accepts_video): New function.
12569 (grub_multiboot_get_mbi_size): Account for video structures.
12570 (set_video_mode): New function.
12571 (retrieve_video_parameters): Likewise.
12572 (grub_multiboot_make_mbi): Fill video fields.
12574 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12578 * include/grub/video.h (grub_video_driver_id): New type.
12579 (grub_video_adapter): New member 'id'. All users updated.
12580 (grub_video_get_driver_id): New proto.
12581 * video/video.c (grub_video_get_driver_id): New function.
12583 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12585 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
12588 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12590 * normal/cmdline.c (print_completion): Gettextizze.
12592 2001-01-14 Carles Pina i Estany <carles@pina.cat>
12594 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
12596 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12598 * gettext/gettext.c (grub_gettext_translate): Push and pop
12600 (grub_gettext_delete_list): Change comment style.
12601 * kern/err.c (grub_error): Gettextizze.
12602 (grub_fatal): Gettextizze.
12604 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12606 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
12607 (grub_linux16_real_boot): ... this.
12608 * kern/i386/loader.S: Likewise.
12609 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
12610 (grub_linux16_boot): New function. Switches to text mode and calls
12611 grub_linux16_real_boot().
12613 * loader/i386/bsd.c: Include `<grub/video.h>'.
12614 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
12615 text mode before calling grub_unix_real_boot().
12617 * loader/i386/multiboot.c: Include `<grub/video.h>'.
12618 (grub_multiboot_boot): Switch to text mode before calling
12619 grub_relocator32_boot().
12621 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
12622 (grub_chainloader_boot): Switch to text mode before calling
12623 grub_chainloader_real_boot().
12625 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12626 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12628 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
12631 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12632 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12634 * util/grub.d/00_header.in: Define a "savedefault" function for use
12636 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
12638 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12639 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12641 * util/grub-mkconfig_lib.in (save_default_entry): Only set
12642 saved_entry if boot_once is unset.
12643 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
12644 previous saved entry (i.e. grub-reboot).
12646 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12648 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
12650 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12652 * util/grub.d/00_header.in: Use `set var=val' rather than plain
12654 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
12656 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12658 * util/grub-reboot.in: Fix --version output.
12659 * util/grub-set-default.in: Likewise.
12661 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12663 * util/grub.d/00_header.in: Silently ignore zero-sized environment
12666 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12668 * util/grub.d/00_header.in: Quote the value assigned to `default',
12669 in case it contains spaces.
12671 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12673 * util/grub.d/30_os-prober.in: Fix merge error that moved a
12674 `save_default_entry' call from the macosx case to the linux case.
12676 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12677 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
12679 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
12680 in `chosen' environment variable.
12681 * normal/menu_text.c (get_entry_number): Check if the variable
12682 matches the title of a menu entry.
12683 (run_menu): Pass menu to get_entry_number.
12685 * util/grub-reboot.in: New file.
12686 * util/grub-set-default.in: New file.
12687 * conf/common.rmk (grub-reboot): New utility.
12688 (grub-set-default): New utility.
12690 * util/grub-mkconfig_lib.in (save_default_entry): New function.
12691 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
12692 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
12693 move it to `saved_entry' for the next boot. Load environment on
12695 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
12696 * util/grub.d/10_hurd.in: Likewise.
12697 * util/grub.d/10_linux.in (linux_entry): Likewise.
12698 * util/grub.d/10_windows.in: Likewise.
12699 * util/grub.d/30_os-prober.in: Likewise.
12701 * util/grub-install.in: Create environment block.
12702 * util/i386/efi/grub-install.in: Likewise.
12703 * util/ieee1275/grub-install.in: Likewise.
12704 * util/sparc64/ieee1275/grub-install.in: Likewise.
12706 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
12708 Unit testing framework for GRUB.
12710 * Makefile.in: Test framework build rules for 'make check'.
12711 * conf/tests.rmk: Build rules for individual tests and framework.
12713 * include/grub/test.h: Header file for whitebox tests.
12714 * tests/lib/functional_test.c: Framework support for whitebox
12716 * tests/lib/test.c: Common whitebox testing code for unit and
12718 * tests/lib/unit_test.c: Framework support for whitebox unit
12721 * tests/util/grub-shell-tester.in: Support utility for grub-script
12723 * tests/util/grub-shell.in: Utility to execute grub-script
12724 commands in a Qemu instance.
12726 * tests/example_functional_test.c: Example whitebox functional
12728 * tests/example_grub_script_test.in: Example grub-script test.
12729 * tests/example_scripted_test.in: Example scripted test.
12730 * tests/example_unit_test.c: Example whitebox unit test.
12732 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12734 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
12735 Add loader/i386/multiboot_mbi.c.
12736 (multiboot2_mod_SOURCES): Likewise.
12737 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
12738 (multiboot2_mod_SOURCES): Likewise.
12739 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
12740 (grub_multiboot_make_mbi): Likewise.
12741 (grub_multiboot_free_mbi): Likewise.
12742 (grub_multiboot_init_mbi): Likewise.
12743 (grub_multiboot_add_module): Likewise.
12744 (grub_multiboot_set_bootdev): Likewise.
12745 * loader/i386/multiboot.c (mbi): Removed.
12746 (mbi_dest): Likewise.
12747 (alloc_mbi): New variable.
12748 (grub_multiboot_payload_size): Removed. All users updated.
12749 (grub_multiboot_pure_size): New variable.
12750 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
12751 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
12752 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
12753 (grub_fill_multiboot_mmap): Likewise.
12754 (grub_multiboot_get_bootdev): Likewise.
12755 (grub_multiboot): Use multiboot_mbi functions.
12756 * loader/i386/multiboot_mbi.c: New file.
12758 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12760 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
12761 it would result in module crash.
12763 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12765 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
12766 (grub_ofconsole_getwh): Split to ...
12767 (grub_ofconsole_getwh): ... this.
12768 (grub_ofconsole_dimensions): ...and this.
12769 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
12771 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
12773 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
12775 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12777 * loader/i386/pc/multiboot2.c: Removed stalled file.
12779 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12781 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
12782 Reported by: Grégoire Sutre
12784 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
12786 * util/misc.c (canonicalize_file_name): New function.
12787 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
12788 instead of realpath().
12790 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
12792 * util/grub-install.in (usage): Clarify meaning of --root-directory,
12793 and make it clearer that it's optional. Based on confusion
12796 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12798 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
12799 in premature implicit newline.
12801 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12803 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
12804 which resulted in garbled command line at the end of screen.
12806 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12808 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
12809 initialization with similar approach as with other Linux loaders.
12811 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12813 Fix i386-ieee1275 build.
12815 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
12816 and grub_term_height() for video_{width,height} initialization.
12818 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12820 Fix grub-emu build.
12822 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
12824 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
12825 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
12827 Support for multiple terminals.
12829 * Makefile.in (pkglib_DATA): terminal.lst.
12830 (terminal.lst): New target.
12831 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
12832 (GRUB_MOD_INIT(handler)): Likewise.
12833 (GRUB_MOD_FINI(handler)): Likewise.
12834 * commands/help.c (grub_cmd_help): Handle multiple terminals.
12835 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
12836 * commands/sleep.c (do_print): Use grub_term_restore_pos.
12837 (grub_cmd_sleep): Use grub_term_save_pos.
12838 * commands/terminal.c: New file.
12839 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
12840 commands/terminal.c and lib/charset.c.
12841 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
12842 (pkglib_MODULES): Add terminal.mod.
12843 (terminal_mod_SOURCES): New variable.
12844 (terminal_mod_CFLAGS): Likewise.
12845 (terminal_mod_LDFLAGS): Likewise.
12846 * genhandlerlist.sh: Don't handle terminals.
12847 * genmk.rb: Generate terminal-*.lst.
12848 * genterminallist.sh: New file.
12849 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
12850 (grub_is_valid_utf8): Likewise.
12851 (grub_utf8_to_ucs4_alloc): Likewise.
12852 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
12853 (grub_menu_register_viewer): Changed argument.
12854 (grub_menu_try_text): New proto.
12855 (grub_gfxmenu_try_hook): New declaration.
12856 * include/grub/normal.h (grub_normal_exit_level): New declaration.
12857 (grub_menu_init_page): Additional argument term.
12858 (grub_normal_init_page): Likewise.
12859 (grub_cmdline_get): Arguments simplified.
12860 (grub_utf8_to_ucs4_alloc): Removed.
12861 (grub_print_ucs4): Additional argument term.
12862 (grub_getstringwidth): Likewise.
12863 (grub_print_message_indented): Likewise.
12864 (grub_menu_text_register_instances): New proto.
12865 (grub_show_menu): Likewise.
12866 (read_terminal_list): Likewise.
12867 (grub_set_more): Likewise.
12868 * include/grub/parser.h: Include handler.h.
12869 * include/grub/reader.h: Rewritten.
12870 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
12871 (GRUB_TERM_WIDTH): Changed to function.
12872 (GRUB_TERM_HEIGHT): Likewise.
12873 (GRUB_TERM_BORDER_WIDTH): Likewise.
12874 (GRUB_TERM_BORDER_HEIGHT): Likewise.
12875 (GRUB_TERM_NUM_ENTRIES): Likewise.
12876 (GRUB_TERM_ENTRY_WIDTH): Likewise.
12877 (GRUB_TERM_CURSOR_X): Likewise.
12878 (grub_term_input_class): Likewise.
12879 (grub_term_output_class): Likewise.
12880 (grub_term_outputs_disabled): New declaration.
12881 (grub_term_inputs_disabled): Likewise.
12882 (grub_term_outputs): Likewise.
12883 (grub_term_inputs): Likewise.
12884 (grub_term_register_input): Rewritten.
12885 (grub_term_register_output): Likewise.
12886 (grub_term_unregister_input): Likewise.
12887 (grub_term_unregister_output): Likewise.
12888 (FOR_ACTIVE_TERM_INPUTS): New macro.
12889 (FOR_DISABLED_TERM_INPUTS): Likewise.
12890 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
12891 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
12892 * include/grub/terminfo.h: Add oterm argument to all protypes.
12893 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
12894 Use grub_rescue_run.
12895 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
12897 * kern/reader.c: Removed. All users updated.
12898 * kern/rescue_reader.c (grub_rescue_init): Removed.
12899 (grub_rescue_reader): Likewise.
12900 (grub_register_rescue_reader): Likewise.
12901 (grub_rescue_run): New function based on kern/reader.c.
12902 * kern/term.c: Adapted for multiterm.
12903 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
12904 (grub_is_valid_utf8): Likewise.
12905 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
12906 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
12908 * loader/i386/linux.c (grub_linux_boot): Likewise.
12909 * normal/auth.c (grub_username_get): New function.
12910 (grub_auth_check_authentication): Use grub_username_get.
12911 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
12912 * normal/color.c: Adapt for multiterm.
12913 * normal/main.c (read_config_file): Don't use grub_reader_loop.
12914 (grub_normal_init_page): Additional argument term.
12915 (read_lists): Call read_terminal_lists.
12916 (grub_enter_normal_mode): Call grub_cmdline_run.
12917 Handle grub_normal_exit_level.
12918 (grub_cmd_normal): Make reentrant.
12919 (grub_cmd_normal_exit): New function.
12920 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
12921 * normal/menu.c: Adapt for multiterm.
12922 * normal/menu_entry.c: Likewise.
12923 * normal/menu_text.c: Likewise.
12924 * normal/menu_viewer.c: Removed. All users updated.
12925 * normal/term.c: New file.
12926 * util/console.c: Change order of includes to workaround a bug in
12928 * term/terminfo.c: New argument oterm on all exported functions.
12930 * util/grub-editenv.c (grub_term_input_class): Removed.
12931 (grub_term_output_class): Likewise.
12933 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
12935 Make loader output a bit more user-friendly.
12937 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
12938 is being loaded. Likewise for the Hurd.
12940 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
12941 that kernel of FreeBSD ${version} is being loaded.
12943 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
12945 (grub_cmd_initrd): Likewise.
12946 * util/grub.d/10_linux.in (linux_entry): Print message indicating
12947 that Linux ${version} is being loaded. Likewise for initrd.
12949 2010-01-09 Carles Pina i Estany <carles@pina.cat>
12951 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
12953 2010-01-08 Carles Pina i Estany <carles@pina.cat>
12955 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
12956 (GRUB_MOD_INIT): Gettextizze.
12957 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
12958 (GRUB_MOD_INIT): Gettextizze.
12959 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
12960 (grub_cmd_linux): Capitalise Linux.
12961 (GRUB_MOD_INIT): Gettextizze.
12962 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
12963 (grub_cmd_linux): Capitalise Linux.
12964 (GRUB_MOD_INIT): Gettextizze.
12965 * loader/i386/linux.c: Include `<grub/i18n.h>'.
12966 (grub_cmd_linux): Capitalise Linux.
12967 (GRUB_MOD_INIT): Gettextizze.
12968 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
12969 (GRUB_MOD_INIT): Gettextizze.
12970 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
12971 (grub_cmd_linux): Capitalise Linux.
12972 (GRUB_MOD_INIT): Gettextizze.
12973 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
12974 (grub_cpu_xnu_init): Gettextizze.
12975 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
12976 (GRUB_MOD_INIT): Gettextizze.
12977 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
12978 (GRUB_MOD_INIT): Gettextizze.
12979 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
12980 (grub_linux_load64): Capitalise Linux.
12981 (GRUB_MOD_INIT): Gettextizze.
12982 * loader/xnu.c: Include `<grub/i18n.h>'.
12983 (GRUB_MOD_INIT): Gettextizze.
12984 * po/POTFILES: Add `loader/efi/appleloader.c',
12985 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
12986 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
12987 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
12988 `loader/i386/xnu.c', `loader/multiboot_loader.c',
12989 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
12990 and `loader/xnu.c'.
12992 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
12994 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
12996 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
12998 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
12999 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
13000 * util/mkisofs/mkisofs.c (main): Readjust --version output.
13002 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13004 Reset Multiboot 2 support. New loader implements the draft in
13005 /branches/multiboot2 and shares as much code as possible with the
13006 production Multiboot 1 implementation.
13008 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
13009 * loader/multiboot2.c: Likewise.
13010 * loader/i386/multiboot_helper.S: Likewise.
13011 * include/multiboot2.h: Replace with latest version from the draft
13012 in /branches/multiboot2.
13014 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
13015 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
13016 and `loader/multiboot2.c'.
13017 (pkglib_MODULES): Add `multiboot2.mod'.
13018 (multiboot2_mod_SOURCES): New variable.
13019 (multiboot2_mod_LDFLAGS): Likewise.
13020 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
13022 * conf/i386-pc.rmk: Likewise.
13024 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13025 (multiboot_mod_SOURCES): Remove variable.
13026 (multiboot_mod_LDFLAGS): Likewise.
13027 (multiboot_mod_CFLAGS): Likewise.
13029 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
13030 `<multiboot2.h>' instead of `<multiboot.h>'.
13031 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
13032 (MULTIBOOT_HEADER_MAGIC): New macros.
13034 * loader/multiboot_loader.c (module_version_status): Remove variable.
13035 (find_multi_boot2_header): Remove function.
13036 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
13037 logic. Always check for the Multiboot version we're compiling for.
13038 (grub_cmd_module_loader): Likewise.
13039 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
13040 command instead of `multiboot'.
13042 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13044 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
13045 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
13048 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13049 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13051 Fix breakage introduced with previous commit.
13053 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
13055 * normal/handler.c (read_handler_list): Revert part of previous commit
13056 affecting this file.
13057 * normal/main.c (read_lists): Move read_handler_list() call back to ...
13058 (grub_normal_execute): ... here.
13060 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13062 Merge prefix-redefinition-fix branch.
13064 * normal/autofs.c (read_fs_list): Make function capable of being
13065 run multiple times, gracefuly replacing the previous data
13067 * normal/dyncmd.c (read_command_list): Likewise.
13068 * normal/handler.c (read_handler_list): Likewise.
13069 * normal/main.c (read_lists): New function. Calls all the
13070 list reading functions.
13071 (grub_normal_execute): Use read_lists() instead of calling all
13072 list reading functions explicitly. Register read_lists() as a
13073 variable hook attached to ${prefix}.
13075 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13077 Merge crypto branch.
13079 * Makefile.in (pkglib_DATA): Add crypto.lst.
13080 (crypto.lst): New target.
13081 * commands/hashsum.c: New file.
13082 * commands/password.c (check_password): Use grub_crypto_memcmp.
13083 * commands/password_pbkdf2.c: New file.
13084 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
13085 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
13086 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
13087 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
13088 -I$(srcdir)/lib/libgcrypt_wrap.
13089 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
13090 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
13091 password_pbkdf2.mod.
13092 (crypto_mod_SOURCES): New variable.
13093 (crypto_mod_CFLAGS): Likewise.
13094 (crypto_mod_LDFLAGS): Likewise.
13095 (hashsum_mod_SOURCES): New variable.
13096 (hashsum_mod_CFLAGS): Likewise.
13097 (hashsum_mod_LDFLAGS): Likewise.
13098 (pbkdf2_mod_SOURCES): New variable.
13099 (pbkdf2_mod_CFLAGS): Likewise.
13100 (pbkdf2_mod_LDFLAGS): Likewise.
13101 (password_pbkdf2_mod_SOURCES): New variable.
13102 (password_pbkdf2_mod_CFLAGS): Likewise.
13103 (password_pbkdf2_mod_LDFLAGS): Likewise.
13104 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
13105 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
13106 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
13107 Include conf/gcry.rmk.
13108 * include/grub/auth.h: Rewritten.
13109 * include/grub/crypto.h: New file.
13110 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
13111 * include/grub/normal.h (read_crypto_list): New prototype.
13112 * lib/crypto.c: New file.
13113 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13114 * lib/pbkdf2.c: Likewise.
13115 * normal/auth.c (grub_auth_strcmp): Removed.
13116 (grub_iswordseparator): Likewise.
13117 (grub_auth_strword): Likewise.
13118 (is_authenticated): Use grub_strword.
13119 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
13120 and grub_strword. Pass entered password to authentication callback.
13121 * normal/crypto.c: New file.
13122 * normal/main.c: Call read_crypto_list.
13123 * util/grub-mkpasswd-pbkdf2.c: New file.
13124 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
13126 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
13128 Fix descent and ascent calculation.
13130 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
13131 (options): New option "asce".
13133 (add_char): Ignore invalid glyphs for descent calculation.
13134 Calculate ascent from actual content.
13135 (print_glyphs): Use 'asce'.
13136 (write_font): Likewise. Allow ascent override.
13137 (main): Handle "asce" option.
13139 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13141 * kern/err.c: Include `<grub/i18n.h>'.
13142 (grub_print_error): Add full stop. Gettextizze.
13143 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
13144 (grub_bsd_load_elf): Capitalise ELF.
13145 (grub_cmd_freebsd_loadenv): Add `s' in error string.
13146 (grub_cmd_freebsd_module): Likewise.
13147 (grub_cmd_freebsd_module_elf): Likewise.
13148 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
13150 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13152 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
13153 * commands/search_file.c (HELP_MESSAGE): New macro.
13154 * commands/search_label.c (HELP_MESSAGE): Likewise.
13155 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
13156 * po/POTFILES: Add `commands/search_file.c',
13157 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
13158 `commands/search.c'.
13160 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13162 * config.rpath: Update from Gnulib.
13164 2010-01-05 Yves Blusseau <blusseau@zetam.org>
13166 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
13168 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
13170 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
13172 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13174 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
13175 arguments to fread so that we get a return value in bytes, rather
13176 than something that will normally be rounded down to 0.
13177 Adjust error handling to avoid producing garbage when size_t is not
13178 the same size as long long.
13180 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13182 * util/mkisofs/write.c (padblock_write): Check return value of
13185 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13187 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
13190 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
13192 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13194 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
13195 instead of manual alignment.
13196 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
13197 verbose). Avoid attempts to read past end of the device
13198 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
13199 but GRUB_DISK_CACHE_SIZE may exceed that).
13201 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13203 * commands/crc.c (grub_cmd_crc): Abort on read errors.
13204 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
13207 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13209 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
13211 (grub_efi_piwg_device_path): New structure
13212 (grub_efi_piwg_device_path_t): New type.
13213 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
13214 (devpath_1): Transform to a structure. All users updated.
13215 (devpath_2): Likewise.
13216 (devpath_3): Likewise.
13217 (devpath_4): Likewise.
13218 (devpath_5): Likewise.
13220 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13222 * loader/efi/appleloader.c: Restored. Update all users.
13224 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13226 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
13228 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
13229 (struct boot_blocklist): Move from here ...
13230 * include/grub/i386/pc/boot.h [ASM_FILE]
13231 (struct grub_boot_blocklist): ... to here. Update all users.
13232 (setup): Only initialize `start' member of `first_block'
13233 structure. Add assert() calls to verify the other members.
13235 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
13236 (generate_image): Fix broken blocklist length initialization.
13237 Add assert() call to verify blocklist `segment' field.
13239 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13241 * loader/efi/appleloader.c: Remove. Update all users.
13243 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13245 * boot/i386/pc/boot.S: Update copyright year.
13246 * boot/i386/pc/cdboot.S: Likewise.
13247 * boot/i386/pc/diskboot.S: Likewise.
13248 * boot/i386/pc/lnxboot.S: Likewise.
13249 * boot/i386/pc/pxeboot.S: Likewise.
13250 * bus/pci.c: Likewise.
13251 * commands/cmp.c: Likewise.
13252 * commands/help.c: Likewise.
13253 * commands/hexdump.c: Likewise.
13254 * commands/i386/pc/halt.c: Likewise.
13255 * commands/i386/pc/play.c: Likewise.
13256 * commands/i386/pc/vbeinfo.c: Likewise.
13257 * commands/ls.c: Likewise.
13258 * commands/test.c: Likewise.
13259 * disk/dmraid_nvidia.c: Likewise.
13260 * disk/i386/pc/biosdisk.c: Likewise.
13261 * disk/ieee1275/nand.c: Likewise.
13262 * disk/ieee1275/ofdisk.c: Likewise.
13263 * disk/lvm.c: Likewise.
13264 * disk/raid.c: Likewise.
13265 * disk/raid6_recover.c: Likewise.
13266 * disk/scsi.c: Likewise.
13267 * fs/affs.c: Likewise.
13268 * fs/cpio.c: Likewise.
13269 * fs/ext2.c: Likewise.
13270 * fs/hfs.c: Likewise.
13271 * fs/iso9660.c: Likewise.
13272 * fs/ntfs.c: Likewise.
13273 * fs/sfs.c: Likewise.
13274 * fs/udf.c: Likewise.
13275 * fs/ufs.c: Likewise.
13276 * fs/xfs.c: Likewise.
13277 * gencmdlist.sh: Likewise.
13278 * genmk.rb: Likewise.
13279 * include/grub/disk.h: Likewise.
13280 * include/grub/efi/api.h: Likewise.
13281 * include/grub/efi/efi.h: Likewise.
13282 * include/grub/efi/pe32.h: Likewise.
13283 * include/grub/elf.h: Likewise.
13284 * include/grub/fs.h: Likewise.
13285 * include/grub/i386/at_keyboard.h: Likewise.
13286 * include/grub/i386/pc/memory.h: Likewise.
13287 * include/grub/i386/pc/vbe.h: Likewise.
13288 * include/grub/i386/pci.h: Likewise.
13289 * include/grub/i386/tsc.h: Likewise.
13290 * include/grub/ieee1275/ieee1275.h: Likewise.
13291 * include/grub/ntfs.h: Likewise.
13292 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13293 * include/grub/sparc64/libgcc.h: Likewise.
13294 * include/grub/symbol.h: Likewise.
13295 * include/grub/types.h: Likewise.
13296 * include/multiboot2.h: Likewise.
13297 * io/gzio.c: Likewise.
13298 * kern/device.c: Likewise.
13299 * kern/disk.c: Likewise.
13300 * kern/efi/efi.c: Likewise.
13301 * kern/efi/mm.c: Likewise.
13302 * kern/elf.c: Likewise.
13303 * kern/file.c: Likewise.
13304 * kern/i386/dl.c: Likewise.
13305 * kern/i386/pc/init.c: Likewise.
13306 * kern/i386/pc/startup.S: Likewise.
13307 * kern/ieee1275/ieee1275.c: Likewise.
13308 * kern/ieee1275/init.c: Likewise.
13309 * kern/main.c: Likewise.
13310 * kern/mm.c: Likewise.
13311 * kern/powerpc/dl.c: Likewise.
13312 * kern/sparc64/dl.c: Likewise.
13313 * kern/x86_64/dl.c: Likewise.
13314 * lib/hexdump.c: Likewise.
13315 * loader/efi/appleloader.c: Likewise.
13316 * loader/i386/ieee1275/linux.c: Likewise.
13317 * loader/i386/pc/chainloader.c: Likewise.
13318 * loader/i386/pc/linux.c: Likewise.
13319 * loader/i386/pc/multiboot2.c: Likewise.
13320 * loader/ieee1275/multiboot2.c: Likewise.
13321 * loader/multiboot2.c: Likewise.
13322 * loader/multiboot_loader.c: Likewise.
13323 * loader/powerpc/ieee1275/linux.c: Likewise.
13324 * normal/completion.c: Likewise.
13325 * normal/menu_entry.c: Likewise.
13326 * partmap/apple.c: Likewise.
13327 * util/grub.d/10_hurd.in: Likewise.
13328 * util/hostfs.c: Likewise.
13329 * video/readers/png.c: Likewise.
13331 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
13333 * include/grub/misc.h (GNUC_PREREQ): New macro.
13334 (ATTRIBUTE_ERROR): New macro.
13335 * include/grub/list.h (grub_bad_type_cast_real): Use
13338 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13340 * normal/menu_text.c (print_message): Change messages.
13342 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13344 * normal/menu_entry.c (store_completion): Gettextizze.
13346 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13348 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
13350 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13352 * po/POTFILES: Sort correctly.
13354 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13356 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
13357 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
13358 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
13360 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
13361 summary. Gettextizze the strings.
13362 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
13363 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
13364 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
13366 (GRUB_MOD_INIT): Remove command name from summary.
13367 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
13369 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
13370 * term/i386/pc/serial.c (options): Add full stops.
13371 (GRUB_MOD_INIT): Remove command name from the summary.
13373 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13375 * commands/acpi.c: Gettextizze help strings and/or options. Include
13376 `grub/i18n.h' if needed.
13377 * commands/blocklist.c: Likewise.
13378 * commands/boot.c: Likewise.
13379 * commands/cat.c: Likewise.
13380 * commands/cmp.c: Likewise.
13381 * commands/configfile.c: Likewise.
13382 * commands/crc.c: Likewise.
13383 * commands/date.c: Likewise.
13384 * commands/echo.c: Likewise.
13385 * commands/efi/fixvideo.c: Likewise.
13386 * commands/efi/loadbios.c: Likewise.
13387 * commands/gptsync.c: Likewise.
13388 * commands/halt.c: Likewise.
13389 * commands/handler.c: Likewise.
13390 * commands/hdparm.c: Likewise.
13391 * commands/hexdump.c: Likewise.
13392 * commands/i386/cpuid.c: Likewise.
13393 * commands/i386/pc/drivemap.c: Likewise.
13394 * commands/i386/pc/halt.c: Likewise.
13395 * commands/i386/pc/pxecmd.c: Likewise.
13396 * commands/i386/pc/vbeinfo.c: Likewise.
13397 * commands/i386/pc/vbetest.c: Likewise.
13398 * commands/ieee1275/suspend.c: Likewise.
13399 * commands/keystatus.c: Likewise.
13400 * commands/loadenv.c: Likewise.
13401 * commands/ls.c: Likewise.
13402 * commands/lsmmap.c: Likewise.
13403 * commands/lspci.c: Likewise.
13404 * commands/memrw.c: Likewise.
13405 * commands/minicmd.c: Likewise.
13406 * commands/parttool.c: Likewise.
13407 * commands/password.c: Likewise.
13408 * commands/probe.c: Likewise.
13409 * commands/read.c: Likewise.
13410 * commands/reboot.c: Likewise.
13411 * commands/search.c: Likewise.
13412 * commands/sleep.c: Likewise.
13413 * commands/test.c: Likewise.
13414 * commands/true.c: Likewise.
13415 * commands/usbtest.c: Likewise.
13416 * commands/videotest.c: Likewise.
13417 * commands/xnu_uuid.c: Likewise.
13418 * disk/loopback.c: Likewise.
13419 * hello/hello.c: Likewise.
13420 * loader/i386/bsd.c: Likewise.
13421 * term/i386/pc/serial.c: Likewise.
13422 * po/POTFILES: Add new files.
13424 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
13426 * term/i386/pc/at_keyboard.c
13427 (keyboard_controller_wait_untill_ready): Rename to ...
13428 (keyboard_controller_wait_until_ready): ... this. Update all users.
13430 2010-01-01 Carles Pina i Estany <carles@pina.cat>
13432 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
13433 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
13434 string using string width.
13435 * normal/menu_text.c (grub_print_message_indented): Use
13436 grub_print_spaces and not print_spaces.
13437 (print_timeout): Likewise.
13438 (print_spaces): Move to...
13439 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
13441 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
13443 Import from Gnulib.
13445 * gnulib/getdelim.c: New file.
13446 * gnulib/getline.c: Likewise.
13448 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
13450 * include/grub/list.h (grub_assert_fail): Removed.
13451 (grub_bad_type_cast_real): New function.
13452 (grub_bad_type_cast): New macro.
13453 (GRUB_AS_LIST): Use grub_bad_type_cast.
13454 (GRUB_AS_LIST_P): Likewise.
13455 (GRUB_AS_NAMED_LIST): Likewise.
13456 (GRUB_AS_NAMED_LIST_P): Likewise.
13457 (GRUB_AS_PRIO_LIST): Likewise.
13458 (GRUB_AS_PRIO_LIST_P): Likewise.
13459 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
13461 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
13463 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
13466 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
13468 * configure.ac: Check for TARGET_CFLAGS initialization before we
13469 initialize it ourselves (sigh).
13470 Move a few modifications to TARGET_CFLAGS to be unconditional
13471 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
13474 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
13475 * term/i386/pc/at_keyboard.c
13476 (keyboard_controller_wait_untill_ready): Likewise.
13477 (keyboard_controller_led): Rename `led_status' paramter to avoid
13480 2009-12-28 Carles Pina i Estany <carles@pina.cat>
13482 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
13485 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13487 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
13489 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13491 * normal/menu_text.c (grub_print_message_indented): Prevent
13492 past-the-end-of-array dereference.
13494 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13496 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
13497 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
13499 2009-12-27 Carles Pina i Estany <carles@pina.cat>
13501 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
13502 * normal/main.c (grub_normal_read_line): Remove a space from the
13505 2009-12-27 Carles Pina i Estany <carles@pina.cat>
13507 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
13508 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13509 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13510 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13511 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13512 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13513 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13515 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13517 * video/readers/jpeg.c (cmd): Declare.
13518 (grub_cmd_jpegtest): Use `grub_command_t' type.
13519 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13521 (GRUB_MOD_FINI): Use `cmd' to unregister.
13522 * video/readers/png.c (cmd): Declare.
13523 (grub_cmd_pngtest): Use `grub_command_t' type.
13524 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13526 (GRUB_MOD_FINI): Use `cmd' to unregister.
13527 * video/readers/tga.c (cmd): Declare.
13528 (grub_cmd_tgatest): Use `grub_command_t' type.
13529 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13531 (GRUB_MOD_FINI): Use `cmd' to unregister.
13533 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13535 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
13537 * kern/corecmd.c (grub_register_core_commands): Likewise.
13538 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
13539 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13540 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
13541 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13542 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13543 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
13544 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13545 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
13546 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13547 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13548 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13549 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13550 * normal/handler.c (insert_handler): Likewise.
13551 * normal/main.c (GRUB_MOD_INIT): Likewise.
13552 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13554 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13556 * commands/help.c (grub_cmd_help): Print the command name before the
13558 (GRUB_MOD_INIT): Remove command name from the summary.
13559 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
13561 * lib/arg.c (find_long): Print the command name before the summary.
13562 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
13564 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
13565 * commands/cat.c (GRUB_MOD_INIT): Likewise.
13566 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
13567 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
13568 * commands/crc.c (GRUB_MOD_INIT): Likewise.
13569 * commands/date.c (GRUB_MOD_INIT): Likewise.
13570 * commands/echo.c (GRUB_MOD_INIT): Likewise.
13571 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
13572 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
13573 * commands/handler.c (GRUB_MOD_INIT): Likewise.
13574 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
13575 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
13576 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
13577 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
13578 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
13579 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
13580 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
13581 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
13582 * commands/ls.c (GRUB_MOD_INIT): Likewise.
13583 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
13584 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
13585 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
13586 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
13587 * commands/password.c (GRUB_MOD_INIT): Likewise.
13588 * commands/probe.c (GRUB_MOD_INIT): Likewise.
13589 * commands/read.c (GRUB_MOD_INIT): Likewise.
13590 * commands/search.c (GRUB_MOD_INIT): Likewise.
13591 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
13592 * commands/test.c (GRUB_MOD_INIT): Likewise.
13593 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
13594 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13595 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13596 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
13597 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13598 * lib/arg.c (GRUB_MOD_INIT): Likewise.
13599 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
13600 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13601 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13602 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13603 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13604 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
13605 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
13606 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
13608 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13610 Use search command for preliminar UUID search.
13612 * commands/search.c: Split into ...
13613 * commands/search_wrap.c: ...this
13614 * commands/search.c: ...and this.
13615 * commands/search_file.c: New file.
13616 * commands/search_label.c: New file.
13617 * commands/search_uuid.c: New file.
13618 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
13619 Add commands/search_wrap.c, commands/search_file.c,
13620 commands/search_label.c and commands/search_uuid.c.
13621 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
13622 (search_mod_SOURCES): Set to commands/search_wrap.c.
13623 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
13625 (search_fs_file_mod_SOURCES): New variable.
13626 (search_fs_file_mod_CFLAGS): Likewise.
13627 (search_fs_file_mod_LDFLAGS): Likewise.
13628 (search_label_mod_SOURCES): Likewise.
13629 (search_label_mod_CFLAGS): Likewise.
13630 (search_label_mod_LDFLAGS): Likewise.
13631 (search_fs_uuid_mod_SOURCES): New variable.
13632 (search_fs_uuid_mod_CFLAGS): Likewise.
13633 (search_fs_uuid_mod_LDFLAGS): Likewise.
13634 (fs_file_mod_SOURCES): Removed.
13635 (fs_file_mod_CFLAGS): Likewise.
13636 (fs_file_mod_LDFLAGS): Likewise.
13637 (fs_uuid_mod_SOURCES): Removed.
13638 (fs_uuid_mod_CFLAGS): Likewise.
13639 (fs_uuid_mod_LDFLAGS): Likewise.
13640 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
13641 Set to util/grub-install.in.
13642 * disk/fs_file.c: Removed.
13643 * disk/fs_uuid.c: Likewise.
13644 * include/grub/search.h: New file.
13645 * util/grub-install.in: Handle sparc64.
13646 Create and use load.cfg.
13647 * util/sparc64/ieee1275/grub-install.in: Removed.
13649 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13651 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
13652 Ignore return status if CF is cleared.
13653 (grub_biosdisk_get_diskinfo_standard): Likewise.
13655 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13657 * term/i386/pc/at_keyboard.c
13658 (keyboard_controller_wait_untill_ready): New function.
13659 (grub_keyboard_controller_write, grub_keyboard_controller_read)
13660 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
13661 for keyboard polling, rather than duplicate the same loop. This
13662 saves a few bytes in code size.
13664 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13666 Support for (pxe[:server[:gateway]]) syntax and
13667 use environment variable for PXE.
13669 * commands/i386/pc/pxecmd.c (options): Removed.
13670 (print_ip): Removed.
13671 (grub_cmd_pxe): Removed
13672 (grub_cmd_pxe_unload): New function.
13673 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
13674 (grub_pxe_your_ip): Made static.
13675 (grub_pxe_default_server_ip): Likewise.
13676 (grub_pxe_default_gateway_ip): Likewise.
13677 (grub_pxe_blksize): Likewise.
13678 (parse_ip): New function.
13679 (grub_pxe_open): Support server and gateway specification.
13680 (grub_pxe_close): Free disk->data.
13681 (grub_pxefs_open): Use disk->data.
13682 (grub_pxefs_read): Likewise.
13683 (grub_env_write_readonly): New function.
13684 (set_mac_env): Likewise.
13685 (set_env_limn_ro): Likewise.
13686 (parse_dhcp_vendor): Likewise.
13687 (grub_pxe_detect): Set the environment variables.
13688 (set_ip_env): New function.
13689 (write_ip_env): Likewise.
13690 (grub_env_write_pxe_default_server): Likewise.
13691 (grub_env_write_pxe_default_gateway): Likewise.
13692 (grub_env_write_pxe_blocksize): Likewise.
13693 (GRUB_MOD_INIT(pxe)): Set environment variables.
13694 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
13695 (grub_pxe_mac_addr_t): ... this. All users updated.
13696 (grub_pxe_your_ip): Removed.
13697 (grub_pxe_server_ip): Likewise.
13698 (grub_pxe_gateway_ip): Likewise.
13699 (grub_pxe_blksize): Likewise.
13701 2009-12-25 Carles Pina i Estany <carles@pina.cat>
13703 * commands/help.c: Include `<grub/i18n.h>'.
13704 (grub_cmd_help): Gettextizze.
13705 (GRUB_MOD_INIT): Likewise.
13706 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
13707 (GRUB_MOD_INIT): Gettextizze.
13708 * commands/search.c: Include `<grub/i18n.h>'.
13709 (options): Gettextizze.
13710 (GRUB_MOD_INIT): Gettextizze.
13711 * lib/arg.c: Include `<grub/i18n.h>'.
13712 (help_options): Gettextizze.
13713 (find_long): Likewise.
13714 (grub_arg_show_help): Likewise.
13715 * normal/dyncmd.c: Include `<grub/i18n.h>'.
13716 (read_command_list): Gettextizze.
13717 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
13718 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
13720 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13722 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
13723 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
13724 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
13725 (led_status): New variable.
13726 (keyboard_controller_led): New function.
13727 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
13728 update led status for caps lock, num lock and scroll lock.
13730 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
13732 * util/hostdisk.c (open_device): Fix a comment.
13734 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13736 * util/grub-install.in (host_os): New variable.
13737 * util/i386/efi/grub-install.in (host_os): Likewise.
13739 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13741 * util/mkisofs/write.c (padblock_write): Abort when given an
13742 excedingly large embed image, instead of silently truncating it.
13744 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13746 * include/multiboot.h: Indentation fixes.
13748 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13750 * include/multiboot.h (struct multiboot_aout_symbol_table)
13751 (struct multiboot_elf_section_header_table): New structure
13752 declarations (stolen from GRUB Legacy).
13753 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
13756 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
13757 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
13760 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13762 * include/multiboot.h: Make comments src2texi-friendly.
13764 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13766 For consistency with [multiboot]/docs/boot.S.
13768 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
13769 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
13770 (MULTIBOOT_MAGIC2): Rename from this ...
13771 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
13773 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13775 * include/multiboot.h: Remove `<grub/types.h>'.
13776 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
13777 types. Update all users.
13779 2009-12-25 Carles Pina i Estany <carles@pina.cat>
13781 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
13782 `couldn't' and `can not' by `cannot'.
13783 * commands/i386/pc/drivemap.c: Likewise.
13784 * disk/ata.c: Likewise.
13785 * disk/ieee1275/nand.c: Likewise.
13786 * fs/affs.c: Likewise.
13787 * fs/fat.c: Likewise.
13788 * fs/hfs.c: Likewise.
13789 * fs/hfsplus.c: Likewise.
13790 * fs/iso9660.c: Likewise.
13791 * fs/jfs.c: Likewise.
13792 * fs/minix.c: Likewise.
13793 * fs/reiserfs.c: Likewise.
13794 * fs/sfs.c: Likewise.
13795 * fs/udf.c: Likewise.
13796 * fs/ufs.c: Likewise.
13797 * fs/xfs.c: Likewise.
13798 * loader/powerpc/ieee1275/linux.c: Likewise.
13799 * loader/sparc64/ieee1275/linux.c: Likewise.
13800 * util/grub-probe.c: Likewise.
13801 * util/misc.c: Likewise.
13803 2009-12-24 Carles Pina i Estany <carles@pina.cat>
13805 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
13807 * commands/acpi.c: Likewise.
13808 * commands/blocklist.c: Likewise.
13809 * commands/efi/loadbios.c: Likewise.
13810 * commands/i386/pc/drivemap.c: Likewise.
13811 * commands/loadenv.c: Likewise.
13812 * commands/memrw.c: Likewise.
13813 * commands/password.c: Likewise.
13814 * commands/videotest.c: Likewise.
13815 * disk/ata.c: Likewise.
13816 * disk/ata_pthru.c: Likewise.
13817 * disk/dmraid_nvidia.c: Likewise.
13818 * disk/ieee1275/nand.c: Likewise.
13819 * disk/ieee1275/ofdisk.c: Likewise.
13820 * disk/loopback.c: Likewise.
13821 * disk/lvm.c: Likewise.
13822 * disk/mdraid_linux.c: Likewise.
13823 * disk/raid.c: Likewise.
13824 * disk/raid6_recover.c: Likewise.
13825 * disk/scsi.c: Likewise.
13826 * efiemu/main.c: Likewise.
13827 * efiemu/mm.c: Likewise.
13828 * efiemu/pnvram.c: Likewise.
13829 * efiemu/symbols.c: Likewise.
13830 * font/font.c: Likewise.
13831 * fs/cpio.c: Likewise.
13832 * fs/hfsplus.c: Likewise.
13833 * fs/iso9660.c: Likewise.
13834 * fs/jfs.c: Likewise.
13835 * fs/minix.c: Likewise.
13836 * fs/ntfs.c: Likewise.
13837 * fs/ntfscomp.c: Likewise.
13838 * fs/reiserfs.c: Likewise.
13839 * fs/ufs.c: Likewise.
13840 * fs/xfs.c: Likewise.
13841 * gettext/gettext.c: Likewise.
13842 * include/grub/auth.h: Likewise.
13843 * kern/elf.c: Likewise.
13844 * kern/file.c: Likewise.
13845 * kern/ieee1275/init.c: Likewise.
13846 * kern/ieee1275/mmap.c: Likewise.
13847 * kern/ieee1275/openfw.c: Likewise.
13848 * kern/powerpc/dl.c: Likewise.
13849 * kern/sparc64/dl.c: Likewise.
13850 * lib/arg.c: Likewise.
13851 * loader/i386/bsd.c: Likewise.
13852 * loader/i386/bsdXX.c: Likewise.
13853 * loader/i386/efi/linux.c: Likewise.
13854 * loader/i386/efi/xnu.c: Likewise.
13855 * loader/i386/ieee1275/linux.c: Likewise.
13856 * loader/i386/linux.c: Likewise.
13857 * loader/i386/multiboot.c: Likewise.
13858 * loader/i386/pc/linux.c: Likewise.
13859 * loader/i386/pc/multiboot2.c: Likewise.
13860 * loader/i386/xnu.c: Likewise.
13861 * loader/ieee1275/multiboot2.c: Likewise.
13862 * loader/macho.c: Likewise.
13863 * loader/machoXX.c: Likewise.
13864 * loader/multiboot2.c: Likewise.
13865 * loader/multiboot_loader.c: Likewise.
13866 * loader/powerpc/ieee1275/linux.c: Likewise.
13867 * loader/sparc64/ieee1275/linux.c: Likewise.
13868 * loader/xnu.c: Likewise.
13869 * loader/xnu_resume.c: Likewise.
13870 * mmap/i386/pc/mmap.c: Likewise.
13871 * normal/menu_viewer.c: Likewise.
13872 * partmap/acorn.c: Likewise.
13873 * partmap/amiga.c: Likewise.
13874 * partmap/apple.c: Likewise.
13875 * script/lexer.c: Likewise.
13876 * term/gfxterm.c: Likewise.
13877 * term/i386/pc/serial.c: Likewise.
13878 * term/i386/pc/vga.c: Likewise.
13879 * term/ieee1275/ofconsole.c: Likewise.
13880 * term/terminfo.c: Likewise.
13881 * video/bitmap.c: Likewise.
13882 * video/efi_gop.c: Likewise.
13883 * video/efi_uga.c: Likewise.
13884 * video/fb/video_fb.c: Likewise.
13885 * video/i386/pc/vbe.c: Likewise.
13886 * video/readers/tga.c: Likewise.
13887 * video/video.c: Likewise.
13889 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
13891 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
13892 * commands/lspci.c: Likewise.
13893 * commands/probe.c: Likewise.
13894 * commands/xnu_uuid.c: Likewise.
13895 * conf/i386-coreboot.rmk: Likewise.
13896 * conf/i386-efi.rmk: Likewise.
13897 * conf/i386-ieee1275.rmk: Likewise.
13898 * conf/i386-pc.rmk: Likewise.
13899 * conf/powerpc-ieee1275.rmk: Likewise.
13900 * conf/sparc64-ieee1275.rmk: Likewise.
13901 * conf/x86_64-efi.rmk: Likewise.
13902 * fs/i386/pc/pxe.c: Likewise.
13903 * gettext/gettext.c: Likewise.
13904 * include/grub/efi/graphics_output.h: Likewise.
13905 * include/grub/i386/pc/memory.h: Likewise.
13906 * kern/env.c: Likewise.
13907 * kern/i386/qemu/startup.S: Likewise.
13908 * lib/i386/pc/biosnum.c: Likewise.
13909 * lib/i386/relocator.c: Likewise.
13910 * lib/i386/relocator_asm.S: Likewise.
13911 * lib/relocator.c: Likewise.
13912 * loader/i386/bsd.c: Likewise.
13913 * loader/i386/multiboot.c: Likewise.
13914 * loader/i386/pc/chainloader.c: Likewise.
13915 * loader/i386/xnu.c: Likewise.
13916 * loader/xnu.c: Likewise.
13917 * normal/main.c: Likewise.
13918 * normal/menu_text.c: Likewise.
13919 * util/getroot.c: Likewise.
13920 * util/grub-mkconfig_lib.in: Likewise.
13921 * util/grub.d/00_header.in: Likewise.
13922 * util/i386/pc/grub-mkimage.c: Likewise.
13923 * util/mkisofs/eltorito.c: Likewise.
13924 * util/mkisofs/exclude.h: Likewise.
13925 * util/mkisofs/hash.c: Likewise.
13926 * util/mkisofs/iso9660.h: Likewise.
13927 * util/mkisofs/joliet.c: Likewise.
13928 * util/mkisofs/mkisofs.c: Likewise.
13929 * util/mkisofs/mkisofs.h: Likewise.
13930 * util/mkisofs/multi.c: Likewise.
13931 * util/mkisofs/name.c: Likewise.
13932 * util/mkisofs/rock.c: Likewise.
13933 * util/mkisofs/tree.c: Likewise.
13934 * util/mkisofs/write.c: Likewise.
13935 * video/efi_gop.c: Likewise.
13937 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13939 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
13942 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13944 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
13945 * genmk.rb (class SCRIPT): Modify the target file instead of source.
13947 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13949 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
13950 (GRUB_MOD_INIT(memrw)): Update help line.
13952 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13954 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
13955 Use grub_extcmd_t. All users updated.
13956 (options): New variable.
13957 (grub_cmd_read): Restructure for readability. Support "-v" option.
13958 (grub_cmd_write): Restructure for readability.
13960 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13962 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
13964 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13966 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
13967 with the actual contents of the correspondending make variable.
13968 * util/grub-mkrescue.in (pkglib_DATA): New variable.
13969 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
13970 specifying `*.lst' and `efiemu??.o'
13972 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13974 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
13975 after function name.
13976 Noticed by Rene Engelhard <rene@debian.org>.
13978 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13980 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
13981 (options): New variable.
13982 (iospace): Likewise.
13983 (grub_lspci_iter): List IO spaces if "-i" was given.
13984 (grub_cmd_lspci): Parse options.
13985 (GRUB_MOD_INIT(lspci)): Use extcmd.
13986 (GRUB_MOD_FINI(lspci)): Likewise.
13988 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13990 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
13991 `function' keyword.
13992 Patch by Tony Mancill <tmancill@debian.org>.
13994 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13996 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
13997 (grub_uhci_portstatus): Likewise.
13998 (grub_uhci_portstatus): Add necessary delay.
13999 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
14001 2009-12-21 Carles Pina i Estany <carles@pina.cat>
14003 * commands/acpi.c (options): Fix capitalizations and/or full stops.
14004 (GRUB_MOD_INIT): Likewise.
14005 * commands/boot.c (GRUB_MOD_INIT): Likewise.
14006 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
14007 * commands/echo.c (options): Fix capitalizations and/or full stops.
14008 * commands/efi/loadbios.c (enable_rom_area): Likewise.
14009 (enable_rom_area): Likewise.
14010 (GRUB_MOD_INIT): Likewise.
14011 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
14012 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
14013 * commands/handler.c (GRUB_MOD_INIT): Likewise.
14014 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
14015 * commands/hexdump.c (options): Likewise.
14016 * commands/i386/cpuid.c (options): Likewise.
14017 (GRUB_MOD_INIT): Likewise.
14018 * commands/i386/pc/drivemap.c (options): Likewise.
14019 (GRUB_MOD_INIT): Likewise.
14020 * commands/i386/pc/halt (options): Likewise.
14021 (GRUB_MOD_INIT): Likewise.
14022 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
14023 * commands/i386/pc/pxecmd.c (options): Likewise.
14024 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
14025 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
14026 * commands/keystatus.c (options): Likewise.
14027 (GRUB_MOD_INIT): Likewise.
14028 * commands/loadenv.c (options): Likewise.
14029 * commands/ls.c (options): Likewise.
14030 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14031 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
14032 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
14033 * commands/parttool.c (helpmsg): Likewise.
14034 * commands/probe.c (options): Likewise.
14035 * commands/read.c (GRUB_MOD_INIT): Likewise.
14036 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
14037 * commands/search.c (options): Likewise.
14038 * commands/sleep.c (options): Likewise.
14039 * commands/test.c (GRUB_MOD_INIT): Likewise.
14040 * commands/true.c (GRUB_MOD_INIT): Likewise.
14041 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
14042 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
14043 * lib/arg.c (help_options): Likewise.
14044 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
14046 * po/POTFILES: Add `commands/loadenv.c'.
14048 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
14050 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
14051 instead of specifying them explicit.
14053 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14055 * NEWS: Add grub-probe support for GNU/Hurd.
14057 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14059 * NEWS: gettext was added after 1.97.
14061 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14063 * util/mkisofs/msdos_partition.h: New file (based on
14064 include/grub/msdos_partition.h).
14065 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
14066 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
14067 (ld_options, main): Recognize --protective-msdos-label.
14068 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
14069 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
14070 (padblock_write): If `use_protective_msdos_label' is set, patch a
14071 protective DOS-style label in the output image.
14073 * util/grub-mkrescue.in: Use --protective-msdos-label.
14075 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14077 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
14080 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14082 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
14084 (ld_options, main): Recognize `--embedded-boot'.
14085 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
14087 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
14088 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
14089 (padblock_write): Likewise. Rewrite to support embedded boot image.
14091 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
14092 for BIOS-based disk boot instead of only ElTorito.
14094 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14096 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
14097 build (not needed for bootstrap).
14099 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14101 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
14102 from i386-pc build (not needed for bootstrap).
14103 Rewrite a pair of strings.
14105 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14107 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
14109 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
14111 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
14113 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14115 * kern/env.c (grub_env_context_open): Mark exported variable for
14118 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14120 * kern/env.c (grub_env_export): Create nonexistent variables before
14123 2009-12-20 Carles Pina i Estany <carles@pina.cat>
14125 * include/grub/auth.h: Include `<grub/i18n.h>'.
14126 (GRUB_GET_PASSWORD): Gettextizze string.
14127 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
14129 (grub_utf8_to_ucs4_alloc): Fix indentation.
14130 (grub_print_ucs4): Likewise.
14131 (grub_getstringwidth): Likewise.
14132 (print_message_indented): New declaration.
14133 * normal/auth.c: Include `<grub/i18n.h>'.
14134 (grub_auth_check_authentication): Gettexttize string.
14135 * normal/cmdline.c: Include `<grub/i18n.h>'.
14136 (grub_cmdline_get): Gettextizze.
14137 * normal/color.c: Include `<grub/i18n.h>'.
14138 (grub_parse_color_name_pair): Gettexttize strings.
14139 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
14140 string (use `print_message_indented').
14141 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
14142 `include/grub/normal.h'.
14143 (print_message_indented): Renamed to ...
14144 (grub_print_message_indented): ... this. Remove `static' qualifer (now
14145 used in normal/main.c).
14146 (print_message): Use `grub_print_message_indented' instead of
14147 `print_message_indented'.
14148 (print_timeout): Likewise.
14149 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
14150 (grub_normal_print_device_info): Gettexttize strings.
14151 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
14153 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14155 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
14156 of arguments. Return number of tokens and not arguments. All users
14159 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14161 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
14162 non-MSDOS paritions.
14164 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14166 * include/grub/types.h (UNUSED): Removed since it conflicts with
14167 NetBSD headers. All users changed to direct __attribute__ ((unused)).
14168 Reported by Grégoire Sutre.
14170 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14172 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
14173 (grub_print_ucs4_alloc): Likewise.
14174 (grub_getstringwidth): Likewise.
14175 * normal/main.c (grub_normal_init_page): Gettextize version string.
14176 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
14177 (getstringwidth): Renamed to ...
14178 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
14179 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
14180 (grub_print_ucs4): Remove `static' qualifer (now used in
14182 * po/POTFILES: Add normal/main.c.
14184 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14186 * normal/menu_text.c (STANDARD_MARGIN): New macro.
14187 (print_message_indented): Add `margin_left' and `margin_right'
14189 (print_message): Update `print_message_indented' calls. Adds '\n' to the
14191 (print_timeout): Use `print_message_indented' to print the message.
14192 Deletes `second_stage' parameter.
14193 (run_menu): Update `print_timeout' calls.
14195 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14197 Fix console palette on OpenFirmware.
14199 * term/ieee1275/ofconsole.c (MAX): Removed.
14200 (colors): Redone based on VGA palette.
14201 (grub_ofconsole_setcolor): Discard brightness bit since only 8
14202 colors are supported.
14203 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
14205 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14207 Fix potential EfiEmu double prepare.
14209 * efiemu/main.c (prepared): New variable
14210 (grub_efiemu_unload): Set prepare to '0'.
14211 (grub_efiemu_prepare): Return if already prepared. Set prepared.
14213 set_virtual_address_map support.
14215 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
14217 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
14219 (grub_efiemu_crc32): Likewise.
14220 (grub_efiemu_crc64): Likewise.
14221 (grub_efiemu_set_virtual_address_map): Likewise.
14222 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
14224 (grub_autoefi_set_virtual_address_map): Likewise.
14225 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
14226 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
14227 Restructure flow to accomodate it.
14228 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
14229 (grub_efiemu_crc): Recompute CRC32.
14230 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
14231 (efiemu_ptv_relocated): ... this. Made global. All users updated.
14232 * efiemu/symbols.c (relocated_handle): New variable.
14233 (grub_efiemu_free_syms): Free relocated_handle.
14234 (grub_efiemu_alloc_syms): Allocate relocated_handle.
14235 (grub_efiemu_write_sym_markers): New function.
14236 (grub_efiemu_set_virtual_address_map): Likewise.
14238 Newer XNU parameters.
14240 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
14241 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
14242 (grub_xnu_fill_devicetree): New prototype.
14243 (grub_xnu_heap_real_start): New variable.
14244 * loader/xnu.c (get_name_ptr): New function.
14245 (grub_xnu_load_driver): Fill namelen and name.
14247 64-bit xnu support.
14249 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
14250 and 'loader/macho64.c'.
14251 * conf/i386-pc.rmk: Likewise.
14252 * conf/x86_64-efi.rmk: Likewise.
14253 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
14254 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
14255 * include/grub/macho.h (grub_macho_segment64): New structure.
14256 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
14257 (grub_macho_size32): ... to this.
14258 (grub_macho32_get_entry_point): Renamed from ...
14259 (grub_macho_get_entry_point32): ... to this.
14260 (grub_macho_contains_macho64): New prototype.
14261 (grub_macho_size64): Likewise.
14262 (grub_macho_get_entry_point64): Likewise.
14263 (grub_macho32_load): Renamed from ...
14264 (grub_macho_load32): ... to this.
14265 (grub_macho32_filesize): Renamed from ...
14266 (grub_macho_filesize32): ... to this.
14267 (grub_macho32_readfile): Renamed from ...
14268 (grub_macho_readfile32): ... to this.
14269 (grub_macho_filesize64): New prototype.
14270 (grub_macho_readfile64): Likewise.
14271 (grub_macho_parse32): Likewise.
14272 (grub_macho_parse64): Likewise.
14273 * loader/macho.c: Split into ...
14274 * loader/machoXX.c: ... and this. Replace 32 with XX.
14275 * loader/macho32.c: New file.
14276 * loader/macho64.c: Likewise.
14277 * loader/xnu.c (grub_xnu_is_64bit): New variable.
14278 (grub_cmd_xnu_kernel): Make 32-bit only.
14279 (grub_cmd_xnu_kernel64): New function.
14280 (grub_xnu_load_driver): Support Mach-O 64.
14281 (grub_cmd_xnu_mkext): Likewise.
14282 * util/grub.d/30_os-prober.in (osx_entry): New function.
14283 Generate entries for 64-bit boot too.
14285 Eliminate ad-hoc tree format in XNU and EfiEmu.
14287 * efiemu/main.c (grub_efiemu_prepare): Update comment.
14288 * efiemu/pnvram.c: Rewritten to use environment variables.
14291 Inline utf16_to_utf8.
14293 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
14294 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
14296 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
14298 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
14299 * commands/usbtest.c (grub_usb_get_string): ... move here.
14300 (usb_print_str): Fix error handling.
14301 * include/grub/usb.h (grub_usb_get_string): Remove.
14303 UTF-8 to UTF-16 transformation.
14305 * conf/common.rmk (pkglib_MODULES): Add charset.mod
14306 (charset_mod_SOURCES): New variable.
14307 (charset_mod_CFLAGS): Likewise.
14308 (charset_mod_LDFLAGS): Likewise.
14309 * include/grub/utf.h: New file.
14310 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
14312 Support for device properties.
14314 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
14315 (grub_xnu_devprop_device_header): Likewise.
14316 (grub_xnu_devprop_device_descriptor): Likewise.
14317 (grub_xnu_devprop_add_device): New prototype.
14318 (grub_xnu_devprop_remove_device): Likewise.
14319 (grub_xnu_devprop_remove_property): Likewise.
14320 (grub_xnu_devprop_add_property_utf8): Likewise.
14321 (grub_xnu_devprop_add_property_utf16): Likewise.
14322 (grub_cpu_xnu_init): Likewise.
14323 (grub_cpu_xnu_fini): Likewise.
14324 (grub_cpu_xnu_unload): Likewise.
14325 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
14326 (property_descriptor): Likewise.
14327 (devices): New variable.
14328 (grub_xnu_devprop_remove_property): New function.
14329 (grub_xnu_devprop_add_device): Likewise.
14330 (grub_xnu_devprop_remove_device): Likewise.
14331 (grub_xnu_devprop_add_property): Likewise.
14332 (grub_xnu_devprop_add_property_utf8): Likewise.
14333 (grub_xnu_devprop_add_property_utf16): Likewise.
14334 (hextoval): Likewise.
14335 (grub_cpu_xnu_fill_devprop): Likewise.
14336 (grub_cmd_devprop_load): Likewise.
14337 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
14338 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
14339 (cmd_devprop_load): New variable.
14340 (grub_cpu_xnu_init): New function.
14341 (grub_cpu_xnu_fini): Likewise.
14342 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
14343 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
14344 (grub_cmd_xnu_devtree): Likewise.
14345 (hextoval): New function.
14346 (unescape): Likewise.
14347 (grub_xnu_fill_devicetree): Likewise.
14349 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
14350 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
14352 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14354 Workaround for broken ATI VBE.
14356 * video/i386/pc/vbe.c (last_set_mode): New variable.
14357 (grub_vbe_set_video_mode): Set 'last_set_mode'.
14358 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
14359 (grub_video_vbe_setup): Don't check for reserved flag.
14361 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
14363 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
14364 the `find' command.
14366 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14368 UUID support for HFS.
14370 * fs/hfs.c (grub_hfs_uuid): New function.
14371 (grub_hfs_fs): New value .uuid.
14372 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
14374 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
14376 Fix a segfault with parsing unknown long options.
14378 * util/grub-mkrelpath.c (options): Zero terminate it.
14380 2009-12-13 Carles Pina i Estany <carles@pina.cat>
14382 * include/grub/misc.h (grub_puts): New declaration.
14383 (grub_puts_): Likewise.
14384 * kern/misc.c (grub_puts): New definition.
14385 (grub_puts_): Likewise.
14387 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14389 * util/grub-probe.c (probe): Improve error message.
14391 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14393 * loader/i386/multiboot_elfxx.c
14394 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
14397 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14399 Relocator framework
14401 * loader/i386/xnu_helper.S: Removed. All users updated.
14402 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
14403 (relocator_mod_SOURCES): New variable.
14404 (relocator_mod_CFLAGS): Likewise.
14405 (relocator_mod_LDFLAGS): Likewise.
14406 (relocator_mod_ASFLAGS): Likewise.
14407 * conf/x86_64.rmk: Likewise.
14408 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
14409 (grub_multiboot_payload_entry_offset): Likewise.
14410 (grub_multiboot_forward_relocator): Likewise.
14411 (grub_multiboot_forward_relocator_end): Likewise.
14412 (grub_multiboot_backward_relocator): Likewise.
14413 (grub_multiboot_backward_relocator_end): Likewise.
14414 (grub_multiboot_payload_eip): New variable.
14415 (grub_multiboot_payload_orig): Likewise.
14416 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
14417 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
14418 * include/grub/i386/memory.h
14419 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
14420 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
14421 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
14422 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
14423 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
14424 * include/grub/i386/relocator.h: New file.
14425 * include/grub/x86_64/relocator.h: Likewise.
14426 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
14427 (XNU_RELOCATOR): New macro.
14428 (grub_xnu_launcher_start): Remove.
14429 (grub_xnu_launcher_end): Likewise.
14430 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
14431 (grub_xnu_heap_real_start): Remove.
14432 (grub_xnu_heap_start): Change to void *. All users updated.
14433 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
14434 * lib/i386/relocator.c: New file.
14435 * lib/i386/relocator_asm.S: Likewise.
14436 * lib/i386/relocator_backward.S: Likewise.
14437 * lib/mips/relocator.c: Likewise.
14438 * lib/mips/relocator_asm.S: Likewise.
14439 * lib/relocator.c: Likewise.
14440 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
14442 (playground): Likewise.
14443 (grub_multiboot_payload_orig): New variable.
14444 (grub_multiboot_payload_dest): Likewise.
14445 (grub_multiboot_payload_size): Likewise.
14446 (grub_multiboot_payload_eip): Likewise.
14447 (grub_multiboot_payload_esp): Likewise.
14448 (grub_multiboot_boot): Use grub_relocator32_boot.
14449 (grub_multiboot_unload): Free relocators.
14450 (grub_multiboot): Setup stack. Use relocators.
14451 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
14452 (grub_multiboot_load_elfXX): Use relocators.
14453 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
14454 (grub_multiboot_payload_size): Likewise.
14455 (grub_multiboot_payload_dest): Likewise.
14456 (grub_multiboot_payload_entry_offset): Likewise.
14457 (grub_multiboot_forward_relocator): Likewise.
14458 (grub_multiboot_backward_relocator): Likewise.
14459 (grub_multiboot_real_boot): Likewise.
14460 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
14461 (grub_xnu_entry_point): Likewise.
14462 (grub_xnu_arg1): Likewise.
14463 (grub_xnu_stack): Likewise.
14464 (grub_xnu_launch): Removed.
14465 (grub_xnu_boot_resume): New function.
14466 (grub_xnu_boot): Use relocators.
14467 * loader/i386/xnu_helper.S: Removed.
14468 * loader/xnu.c (grub_xnu_heap_start): New variable.
14469 (grub_xnu_heap_size): Likewise.
14470 (grub_xnu_heap_malloc): Use relocators.
14471 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
14473 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14475 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
14478 2009-12-13 Carles Pina i Estany <carles@pina.cat>
14480 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
14481 GRUB_ERR_NONE before calling grub_env_set.
14483 2009-12-12 Robert Millan <rmh@aybabtu.com>
14485 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
14486 * genmk.rb (video): New variable.
14487 (CLEANFILES, VIDEOFILES): Add #{video}.
14488 (#{video}): New target rule.
14489 * genvideolist.sh: New file.
14490 * Makefile.in (pkglib_DATA): Add video.lst.
14491 (video.lst): New target rule.
14492 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
14494 * util/grub.d/30_os-prober.in: Replace `vbe' with
14495 ${GRUB_VIDEO_BACKEND}.
14497 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
14499 * THANKS: Add David Miller.
14501 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
14503 libpciaccess support.
14505 * Makefile.in (LIBPCIACCESS): New variable.
14506 (enable_grub_emu_pci): Likewise.
14507 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
14508 util/pci.c and commands/lspci.c.
14509 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
14510 * configure.ac (grub-emu-pci): New option.
14511 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
14512 (grub_pci_device_unmap_range): Likewise.
14513 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
14514 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
14515 (grub_pci_address_t) [!GRUB_UTIL]: New type.
14516 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
14517 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
14518 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
14519 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
14520 * include/grub/pciutils.h: New file.
14521 * util/pci.c: Likewise.
14523 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
14525 * util/misc.c: Don't include <errno.h> twice.
14527 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
14529 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
14530 name in an error message.
14531 (grub_biosdisk_rw): Likewise.
14533 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14535 Eliminate NTFS 4Gib barrier.
14537 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
14538 (read_run_data): Likewise.
14539 (grub_ntfs_read_run_list): Likewise.
14540 (grub_ntfs_read_block): Likewise.
14541 (grub_ntfs_iterate_dir): Likewise.
14542 (read_mft): Likewise.
14543 (read_data): Likewise.
14545 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
14546 to avoid 64-bit division
14547 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
14548 (grub_ntfs_rlst): Use grub_disk_addr_t.
14550 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14552 Eliminate grub-fstest 4Gib barrier.
14554 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
14555 (read_file): Fix error reporting.
14557 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14559 Eliminate hexdump 4Gib barrier.
14561 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
14562 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
14564 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14566 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
14569 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
14571 Remove miscellaneous files in distclean target.
14573 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
14575 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
14577 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
14578 if they're already set. This resolves the conflict between my
14579 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
14580 fixing the --grub-probe option again.
14581 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
14582 change on 2009-10-06, so that we now once again source
14583 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
14585 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
14587 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
14588 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
14589 `util/devicemap.c'.
14591 2009-12-08 Carles Pina i Estany <carles@pina.cat>
14593 * include/grub/misc.h (grub_printf_): New declaration.
14594 * kern/misc.c (grub_printf_): New definition.
14595 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
14596 instead of `grub_printf' and `_'.
14597 * normal/menu_entry.c (store_completion): Likewise.
14599 (grub_menu_entry_run): Likewise.
14600 * normal/menu_text.c (grub_wait_after_message): Likewise.
14601 (notify_booting): Likewise.
14602 (notify_fallback): Likewise.
14603 (notify_execution_failure): Likewise.
14605 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
14607 * configure.ac: Check for vasprintf.
14608 * util/misc.c (asprintf): Move allocation from here ...
14609 (vasprintf): ... to here. New function.
14610 (xasprintf): New function.
14611 * include/grub/util/misc.h (vasprintf, xasprintf): Add
14613 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14614 * util/grub-mkfont.c (write_font): Likewise.
14615 * util/grub-probe.c (probe): Likewise.
14616 * util/hostdisk.c (make_device_name): Likewise.
14618 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
14620 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
14621 anything even prefixed with 'cdrom' as a cdrom.
14623 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
14625 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
14628 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14630 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
14631 grub_gettext_msg_list.
14632 (grub_gettext_gettranslation_from_position): Return const char *
14634 (grub_gettext_translate): Add the translated strings into a list,
14635 returns from the list if existing there.
14636 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
14637 (grub_gettext_delete_list): Delete the list.
14638 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
14639 lang environment variable is changed.
14640 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
14642 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14644 Rename kernel.mod to kernel.img.
14646 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
14647 (kernel_mod_EXPORTS): Rename to ...
14648 (kernel_img_EXPORTS): ... this.
14649 (kernel_mod_SOURCES): Rename to ...
14650 (kernel_img_SOURCES): ... this.
14651 (kernel_mod_HEADERS): Rename to ...
14652 (kernel_img_HEADERS): ... this. All users updated.
14653 (kernel_mod_CFLAGS): Rename to ...
14654 (kernel_img_CFLAGS): ... this.
14655 (kernel_mod_ASFLAGS): Rename to ...
14656 (kernel_img_ASFLAGS): ... this.
14657 (kernel_mod_LDFLAGS): Rename to ...
14658 (kernel_img_LDFLAGS): ... this.
14659 * conf/x86_64-efi.rmk: Likewise.
14660 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
14661 (read_kernel_image): ... this. All users updated.
14662 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
14664 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14666 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
14667 (print_spaces): New function.
14668 (grub_print_ucs4): New function.
14669 (getstringwidth): New function.
14670 (print_message_indented): New function.
14671 (print_message): Gettexttize strings using print_message_indented.
14672 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
14674 (get_entry_number): Gettextize and uses dynamic terminal width.
14675 (notify_booting, notify_fallback, notify_execution_failure):
14677 * normal/menu_entry.c (store_completion): Cleanup the gettextized
14680 (grub_menu_entry_run): Likewise.
14681 * PO/POTFILES: Add normal/menu_entry.c.
14683 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14685 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
14687 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14689 * util/grub-install.in: Install gettext .mo files.
14690 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
14692 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14694 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
14697 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
14699 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
14700 non-firmware-dependant one in realmode.S takes precedence.
14702 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
14704 * commands/halt.c: Replace misc arch-specific headers with
14706 * commands/reboot.c: Likewise.
14707 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
14709 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
14710 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
14711 (kernel_img_SOURCES): ... to here.
14713 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
14714 * include/grub/i386/pc/init.h: Likewise.
14715 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14716 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14718 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
14720 * include/grub/i386/halt.h: Remove.
14721 * include/grub/i386/reboot.h: Likewise.
14723 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
14725 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
14727 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
14728 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
14729 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
14731 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
14732 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14733 (usage): Add missing comma in printf.
14735 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
14737 Use the same reboot approach on i386 coreboot and qemu as we do on
14740 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
14741 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
14742 * kern/i386/reboot.c: Remove.
14743 * include/grub/i386/reboot.h (grub_reboot): Export function.
14744 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
14745 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
14746 0xf000:0xfff0 instead of 0xffff:0x0000.
14747 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
14748 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
14750 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
14752 Fix $srcdir != $objdir build.
14754 * Makefile.in (po/%.po): Rewrite as ...
14755 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
14757 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
14759 Fix GNU/Hurd grub-install crash.
14760 * util/grub-probe.c (probe): Try to access `path' only when it is not
14763 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14765 Correct module naming.
14767 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14768 (GRUB_MOD_INIT(efi_uga)): ... to this
14769 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14770 (GRUB_MOD_FINI(efi_uga)): ... to this
14771 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14772 (GRUB_MOD_INIT(efi_gop)): ... to this
14773 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14774 (GRUB_MOD_FINI(efi_gop)): ... to this
14776 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
14778 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
14780 (usage): Translate `arg' strings using gettext().
14781 Thanks to Jordi Mallach for the suggestion.
14783 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14785 GOP support. Based on patch from Bean
14786 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
14788 * video/efi_gop.c: New file.
14789 * include/grub/efi/graphics_output.h: Likewise.
14790 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
14791 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
14793 * conf/x86_64-efi.rmk: Likewise.
14795 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14797 Rename efi_fb to efi_uga.
14799 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
14801 (efi_fb_mod_SOURCES): Rename this ...
14802 (efi_uga_mod_SOURCES): ... to this.
14803 (efi_fb_mod_CFLAGS): Rename this ...
14804 (efi_uga_mod_CFLAGS): ... to this.
14805 (efi_fb_mod_LDFLAGS): Rename this ...
14806 (efi_uga_mod_LDFLAGS): ... to this.
14807 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
14809 (efi_fb_mod_SOURCES): Rename this ...
14810 (efi_uga_mod_SOURCES): ... to this.
14811 (efi_fb_mod_CFLAGS): Rename this ...
14812 (efi_uga_mod_CFLAGS): ... to this.
14813 (efi_fb_mod_LDFLAGS): Rename this ...
14814 (efi_uga_mod_LDFLAGS): ... to this.
14815 * video/efi_fb.c: Move this ...
14816 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
14818 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14820 * po/README: New file. Explain our PO file workflow.
14822 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14824 * po/ChangeLog: Remove. Move relevant entries back to ...
14825 * ChangeLog: ... here.
14826 * po/ca.po: Remove (now handled by TLP).
14827 * po/id.po: Likewise.
14828 * po/zh_CN.po: Likewise.
14829 * Makefile.in (LINGUAS): Initialize in a way that supports
14832 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14834 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
14835 reliing on po/LINGUAS.
14836 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
14837 (po/%.po): ... this.
14839 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14841 * util/i386/efi/grub-mkimage.c: Include "progname.h".
14842 (main): Use `program_name' instead of nonexistent `progname'.
14844 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14846 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
14847 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
14849 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
14851 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
14853 * conf/i386-efi.rmk: Likewise.
14854 * conf/i386-ieee1275.rmk: Likewise.
14855 * conf/powerpc-ieee1275.rmk: Likewise.
14856 * conf/sparc64-ieee1275.rmk: Likewise.
14857 * conf/x86_64-efi.rmk: Likewise.
14859 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14861 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
14863 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14865 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
14867 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
14869 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
14870 (grub_mkdevicemap_SOURCES): New variable.
14871 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
14872 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
14873 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
14874 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
14875 (grub_mkdevicemap_SOURCES): Remove.
14876 * conf/i386-efi.rmk: Likewise.
14877 * conf/i386-ieee1275.rmk: Likewise.
14878 * conf/i386-pc.rmk: Likewise.
14879 * conf/powerpc-ieee1275.rmk: Likewise.
14880 * conf/sparc64-ieee1275.rmk: Likewise.
14881 * conf/x86_64-efi.rmk: Likewise.
14882 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
14883 (usage): Fix strings to use `program_name'.
14884 (main): Initialize gettext.
14885 * util/grub-editenv.c: Likewise.
14886 * util/grub-emu.c: Likewise.
14887 * util/grub-fstest.c: Likewise.
14888 * util/grub-mkdevicemap.c: Likewise.
14889 * util/grub-mkfont.c: Likewise.
14890 * util/grub-mkrelpath.c: Likewise.
14891 * util/grub-pe2elf.c: Likewise.
14892 * util/grub-probe.c: Likewise.
14893 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
14894 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
14895 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14897 * util/misc.c: Include `"progname.h"'.
14898 (progname): Remove variable.
14899 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
14901 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
14903 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
14904 printf and print a newline after the menuentry header line.
14905 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14907 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
14909 autoconf >= 2.60 support $(localedir).
14911 * INSTALL: Note that autoconf 2.60 is required.
14912 * configure.ac (AC_PREREQ): Bump to 2.60.
14913 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
14914 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14916 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
14918 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
14921 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
14923 * normal/main.c (grub_normal_read_line): Fix off-by-one
14926 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
14928 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
14929 "parser.grub" in grub_command_execute() call.
14931 2009-11-24 Carles Pina i Estany <carles@pina.cat>
14933 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
14934 * conf/i386-efi.rmk: Likewise.
14935 * conf/i386-ieee1275.rmk: Likewise.
14936 * conf/i386-pc.rmk: Likewise.
14937 * conf/powerpc-ieee1275.rmk: Likewise.
14938 * conf/sparc64-ieee1275.rmk: Likewise.
14939 * conf/x86_64-efi.rmk: Likewise.
14940 * gettext/gettex.c: Include <grub/i18n.h>.
14941 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
14943 * include/grub/i18n.h: ... to here
14944 * include/grub/i18n.h: ... to here.
14945 * kern/misc.c: Include <grub/i18n.h>
14946 (grub_gettext_dummy): Move above user.
14948 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14950 * util/Makefile.in (install-local): Convert a `for' into a normal
14953 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
14955 * autogen.sh: Add automake call.
14956 * config.guess: Remove.
14957 * config.sub: Likewise.
14958 * install-sh: Likewise.
14960 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14962 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
14964 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14966 * util/Makefile.in (install-local): Convert a make `$(foreach)'
14967 function to a normal shell `for'.
14969 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14971 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
14973 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14975 * util/grub-mkrelpath.c: New file.
14976 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
14977 (grub_mkrelpath_SOURCES): New variable.
14978 * include/grub/util/misc.h: New function prototype.
14979 * util/misc.c (make_system_path_relative_to_its_root): New function.
14981 * util/grub-mkconfig_lib.in (bindir): New variable.
14982 (grub_mkrelpath): Likewise.
14983 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
14985 * util/probe.c (probe): Make the file path relative to its root.
14986 Change a info message to use the GRUB path. Enable again the
14987 check if we can read the file with GRUB facilities.
14989 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
14992 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14994 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
14997 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14999 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
15002 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
15004 * util/getroot.c (grub_util_is_dmraid): New function.
15005 (grub_util_get_dev_abstraction): Treat dmraid and multipath
15006 devices as normal ones, not as LVM.
15008 2009-11-23 Carles Pina i Estany <carles@pina.cat>
15010 * conf/common.rmk: Add grub-gettext_lib target and updates
15011 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
15013 * gettext/gettext.c: New file. (Reads mo files).
15014 * include/grub/file.h (grub_file_pread): New prototype.
15015 * include/grub/i18n.h (_): New prototype.
15016 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
15018 * kern/misc.c (grub_gettext_dummy): New function.
15019 * normal/menu_text.c: Include <grub/i18n.h>.
15020 * normal/menu_text.c (print_timeout): Gettexttize string.
15021 * normal/menu_text.c (print_message): Gettexttize string.
15022 * po/POTFILES: Add `normal/menu_text.c'.
15023 * po/ca.po: Add new translations.
15024 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
15025 gettext module and defines locale_dir and lang in grub.cfg.
15026 * NEWS: Add gettext support.
15028 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15030 * util/hostdisk.c: Include `<grub/i18n.h>'.
15031 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
15032 (make_device_name): Rewrite using asprintf.
15033 (convert_system_partition_to_system_disk): Replace 0 with NULL.
15034 (find_system_device): If a device is not found, generate one just
15035 by reusing the OS path name.
15036 (read_device_map): Make it permissible for device.map not to exist.
15038 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15040 * script/sh/execute.c: Move from here ...
15041 * script/execute.c: ... to here. Update all users.
15042 * script/sh/function.c: Move from here ...
15043 * script/function.c: ... to here. Update all users.
15044 * script/sh/lexer.c: Move from here ...
15045 * script/lexer.c: ... to here. Update all users.
15046 * script/sh/main.c: Move from here ...
15047 * script/main.c: ... to here. Update all users.
15048 * script/sh/parser.y: Move from here ...
15049 * script/parser.y: ... to here. Update all users.
15050 * script/sh/script.c: Move from here ...
15051 * script/script.c: ... to here. Update all users.
15053 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15055 * configure.ac: Detect all `emu' platforms. Define
15056 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
15057 --enable-grub-emu logic. Disable include/grub/machine
15058 symlink on `emu' platforms.
15060 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
15061 * gensymlist.sh.in: Likewise.
15063 * include/grub/i386/coreboot/machine.h: Remove file.
15064 * include/grub/i386/efi/machine.h: Likewise.
15065 * include/grub/i386/ieee1275/machine.h: Likewise.
15066 * include/grub/i386/pc/machine.h: Likewise.
15067 * include/grub/i386/qemu/machine.h: Likewise.
15068 * include/grub/powerpc/ieee1275/machine.h: Likewise.
15069 * include/grub/sparc64/ieee1275/machine.h: Likewise.
15070 * include/grub/x86_64/efi/machine.h: Likewise.
15072 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
15073 * commands/halt.c: Likewise.
15074 * commands/reboot.c: Likewise.
15075 * include/grub/autoefi.h: Likewise.
15076 * include/grub/i386/at_keyboard.h: Likewise.
15077 * include/grub/i386/kernel.h: Likewise.
15078 * include/grub/i386/loader.h: Likewise.
15079 * include/grub/i386/pc/memory.h: Likewise.
15080 * kern/dl.c: Likewise.
15081 * kern/i386/coreboot/init.c: Likewise.
15082 * loader/i386/bsd.c: Likewise.
15083 * loader/i386/linux.c: Likewise.
15084 * loader/multiboot_loader.c: Likewise.
15085 * term/i386/pc/serial.c: Likewise.
15086 * term/usb_keyboard.c: Likewise.
15088 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
15089 `<grub/machine/machine.h>'
15090 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
15091 * util/misc.c: Remove `<grub/machine/machine.h>' and
15092 `<grub/machine/time.h>'.
15094 * Makefile.in (enable_grub_emu): Remove variable.
15095 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
15097 * conf/any-emu.rmk: New file.
15098 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
15099 (grub_emu_init.c): Move from here ...
15100 * conf/any-emu.rmk: ... to here.
15102 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
15103 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
15104 * conf/any-emu.rmk: ... to here.
15106 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15108 * include/grub/parser.h (grub_parser_register): Document need
15109 of `name' parameter.
15110 * normal/main.c (grub_normal_read_line): Simplify prompt string.
15111 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
15114 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15116 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
15118 * include/grub/i18n.h (N_): New macro.
15119 * util/mkisofs/mkisofs.h: Likewise.
15120 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
15122 (usage): Use gettext() to translate help strings when printing them.
15124 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15126 Based on patch from Bean
15127 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15129 * video/efi_fb.c: New file.
15130 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
15131 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15133 * conf/x86_64-efi.rmk: Likewise.
15135 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
15137 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
15138 * util/i386/pc/grub-setup.c: Likewise.
15140 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15142 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
15144 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
15145 file_get_storage_info to implement grub_guess_root_device.
15147 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15149 * Makefile.in (target): Use make's builtin $(shell) function
15150 instead of calling directly $(SHELL) to create the locale directories,
15151 inside the $(foreach) function.
15153 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15155 * util/grub-mkrescue.in: Print an error and usage if output option
15156 has not been given.
15158 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15160 Patch from Loïc Minier <loic.minier@ubuntu.com>.
15161 * util/grub.d/30_os-prober.in: Cope with Linux entries where
15162 root and /boot are on different devices.
15164 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15166 Fix build for srcdir != objdir.
15168 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
15169 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
15171 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
15172 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
15173 reference for input.
15175 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15177 * util/grub-mkrescue.in: Use source directory direcly (without copiing
15178 or hardlinking it). Remove -J option, Joliet is not compatible with
15179 multiple source directories.
15181 2009-11-21 Carles Pina i Estany <carles@pina.cat>
15182 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15184 * util/grub-mkrescue.in: Recognize `--override-directory' option.
15185 (process_input_dir): New function. Process an arbitrary input
15187 Misc adjustments to support both "override mode" and system-wide mode.
15189 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15191 * configure.ac (UNIFONT_BDF): Rename to ...
15192 (FONT_SOURCE): ... this. Update all users.
15194 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15196 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
15197 to the list of unifont files to look for.
15199 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15201 Patch from Joe Auricchio <jauricchio@gmail.com>
15202 * commands/minicmd.c (grub_mini_cmd_clear): New function.
15203 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
15204 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
15206 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15208 * Makefile.in (install-local): Add a missing backslash.
15210 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15212 * include/grub/x86_64/io.h: New file.
15214 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15216 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
15217 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
15218 Include `"progname.h"'.
15219 (main): Initialize gettext.
15220 * util/i386/pc/grub-setup.c: Gettexttize.
15221 * util/i386/pc/grub-mkimage.c: Likewise.
15223 * Makefile.in (po/*.po): Redefine as ...
15224 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
15226 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
15228 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15230 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
15231 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
15232 (program_name): Remove.
15233 (main): Initialize gettext support.
15234 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
15235 Include `<libintl.h>'.
15238 * util/mkisofs/eltorito.c: Gettexttize.
15239 * util/mkisofs/joliet.c: Likewise.
15240 * util/mkisofs/mkisofs.c: Likewise.
15241 * util/mkisofs/multi.c: Likewise.
15242 * util/mkisofs/rock.c: Likewise.
15243 * util/mkisofs/tree.c: Likewise.
15244 * util/mkisofs/write.c: Likewise.
15246 * po/POTFILES: Update with new files.
15248 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15250 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
15251 * util/mkisofs/iso9660.h: Likewise.
15252 * util/mkisofs/joliet.c: Likewise.
15253 * util/mkisofs/mkisofs.c: Likewise.
15254 * util/mkisofs/mkisofs.h: Likewise.
15255 * util/mkisofs/rock.c: Likewise.
15256 * util/mkisofs/tree.c: Likewise.
15257 * util/mkisofs/write.c: Likewise.
15259 * util/mkisofs/eltorito.c (rcsid): Remove.
15260 * util/mkisofs/hash.c: Likewise.
15261 * util/mkisofs/joliet.c: Likewise.
15262 * util/mkisofs/name.c: Likewise.
15263 * util/mkisofs/rock.c: Likewise.
15264 * util/mkisofs/tree.c: Likewise.
15265 * util/mkisofs/write.c: Likewise.
15267 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15269 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
15270 instead of static allocation.
15271 * util/mkisofs/match.h: Likewise.
15273 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15275 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
15276 and `util/grub.d/10_linux.in'.
15277 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
15278 translatable Shell files.
15280 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15282 * Makefile.in ($(srcdir)/aclocal.m4): New target.
15284 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15286 * INSTALL: Document Automake is needed for bootstrap.
15287 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
15288 * util/grub.d/10_kfreebsd.in (bindir): New variable.
15289 Add gettext initialization.
15290 (kfreebsd_entry): Make menuentry output translatable.
15292 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15294 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
15295 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
15296 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
15297 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
15298 (LINGUAS): Auto-generate using `po/LINGUAS'.
15299 * po/LINGUAS: New file.
15301 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15303 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
15305 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
15306 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
15307 bindtextdomain() calls for gettext initialization.
15309 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15311 * gnulib/progname.c: New file (imported from Gnulib).
15312 * gnulib/progname.h: Likewise.
15313 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15314 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
15315 (usage): Replace `progname' with `program_name'.
15316 (main): Use set_program_name() for program name initialization.
15318 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15320 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
15322 * Makefile.in (CPPFLAGS): ... to here.
15324 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15326 * aclocal.m4: Move from here ...
15327 * acinclude.m4: ... to here.
15328 * autogen.sh: Add call to `aclocal'.
15329 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
15331 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15333 * Makefile.in (CLEANFILES): Add `po/*.mo'.
15334 (LINGUAS): New variable.
15335 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
15336 (install-local): Install MO files.
15337 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
15338 * include/grub/i18n.h: New file.
15339 * po/POTFILES: New file.
15340 * po/ca.po: New file.
15341 * util/grub.d/10_linux.in (bindir): New variable.
15342 Add gettext initialization.
15343 (linux_entry): Make menuentry output translatable.
15344 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
15345 (usage): Make --help output translatable.
15346 (main): Initialize gettext.
15348 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15350 * import_gcry.py: New file (written by Vladimir with minor
15352 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
15354 * INSTALL: Document that Python is required for bootstrap.
15356 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15358 Import ciphers from libgcrypt 1.4.4.
15360 * lib/libgcrypt/cipher/ChangeLog
15361 * lib/libgcrypt/cipher/ac.c
15362 * lib/libgcrypt/cipher/arcfour.c
15363 * lib/libgcrypt/cipher/bithelp.h
15364 * lib/libgcrypt/cipher/blowfish.c
15365 * lib/libgcrypt/cipher/camellia-glue.c
15366 * lib/libgcrypt/cipher/camellia.c
15367 * lib/libgcrypt/cipher/camellia.h
15368 * lib/libgcrypt/cipher/cast5.c
15369 * lib/libgcrypt/cipher/cipher.c
15370 * lib/libgcrypt/cipher/crc.c
15371 * lib/libgcrypt/cipher/des.c
15372 * lib/libgcrypt/cipher/dsa.c
15373 * lib/libgcrypt/cipher/ecc.c
15374 * lib/libgcrypt/cipher/elgamal.c
15375 * lib/libgcrypt/cipher/hash-common.c
15376 * lib/libgcrypt/cipher/hash-common.h
15377 * lib/libgcrypt/cipher/hmac-tests.c
15378 * lib/libgcrypt/cipher/md.c
15379 * lib/libgcrypt/cipher/md4.c
15380 * lib/libgcrypt/cipher/md5.c
15381 * lib/libgcrypt/cipher/primegen.c
15382 * lib/libgcrypt/cipher/pubkey.c
15383 * lib/libgcrypt/cipher/rfc2268.c
15384 * lib/libgcrypt/cipher/rijndael-tables.h
15385 * lib/libgcrypt/cipher/rijndael.c
15386 * lib/libgcrypt/cipher/rmd.h
15387 * lib/libgcrypt/cipher/rmd160.c
15388 * lib/libgcrypt/cipher/rsa.c
15389 * lib/libgcrypt/cipher/seed.c
15390 * lib/libgcrypt/cipher/serpent.c
15391 * lib/libgcrypt/cipher/sha1.c
15392 * lib/libgcrypt/cipher/sha256.c
15393 * lib/libgcrypt/cipher/sha512.c
15394 * lib/libgcrypt/cipher/tiger.c
15395 * lib/libgcrypt/cipher/twofish.c
15396 * lib/libgcrypt/cipher/whirlpool.c
15398 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15400 Fix build for systems without error().
15402 * gnulib/error.c: New file (imported from Gnulib).
15403 * gnulib/error.h: Likewise.
15404 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
15405 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
15406 (this variable is now used by error()).
15408 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
15410 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
15411 instead of relying that char is signed.
15413 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15415 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
15416 blocksize different from specified.
15417 (grub_pxefs_read): Likewise.
15419 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
15421 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
15423 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
15424 (grub_ata_readwrite): Likewise. Update 2 format strings.
15425 (grub_atapi_read): Likewise.
15427 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
15428 * conf/i386.rmk (pkglib_MODULES): ... to here ...
15429 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
15430 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
15431 (ata_mod_LDFLAGS): Move from here ...
15432 * conf/i386.rmk: ... to here ...
15433 * conf/x86_64-efi.rmk: ... and here.
15434 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
15435 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
15437 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15439 Relicense multiboot.h, with RMS' blessing.
15441 * include/multiboot.h: Change to X11 license.
15443 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
15445 Support --version in grub-mkisofs.
15447 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
15448 (OPTION_VERSION): New macro.
15449 (ld_options): Recognize --version.
15450 (usage): Move `program_name' from here ...
15451 (program_name): ... to here. Add `static' qualifier.
15452 (main): Recognize `OPTION_VERSION'.
15454 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
15456 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
15457 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
15459 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15461 Fix help2man generation for mkisofs.
15463 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
15464 (usage): Send output to stdout (rather than stderr).
15466 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15468 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
15469 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15470 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
15471 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15472 (bin_SCRIPTS): Add `grub-mkfloppy'.
15473 (grub_mkfloppy_SOURCES): New variable.
15475 * util/grub-mkrescue.in: New file.
15476 * util/i386/pc/grub-mkfloppy.in: New file.
15478 * util/i386/coreboot/grub-mkrescue.in: Remove.
15479 * util/i386/pc/grub-mkrescue.in: Remove.
15481 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15483 * include/grub/multiboot.h (struct grub_multiboot_header): Move
15485 * include/multiboot.h (struct multiboot_header): ... to here. Update
15487 * include/grub/multiboot.h (struct grub_multiboot_info): Move
15489 * include/multiboot.h (struct multiboot_info): ... to here. Update
15491 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
15493 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
15495 * include/grub/multiboot.h (struct grub_mod_list): Move
15497 * include/multiboot.h (struct multiboot_mod_list): ... to here.
15500 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15502 * include/multiboot2.h (multiboot_word): Rename from this ...
15503 (multiboot2_word): ... to this. Update all users.
15504 (multiboot_header): Rename from this ...
15505 (multiboot2_header): ... to this. Update all users.
15506 (multiboot_tag_header): Rename from this ...
15507 (multiboot2_tag_header): ... to this. Update all users.
15508 (multiboot_tag_start): Rename from this ...
15509 (multiboot2_tag_start): ... to this. Update all users.
15510 (multiboot_tag_name): Rename from this ...
15511 (multiboot2_tag_name): ... to this. Update all users.
15512 (multiboot_tag_module): Rename from this ...
15513 (multiboot2_tag_module): ... to this. Update all users.
15514 (multiboot_tag_memory): Rename from this ...
15515 (multiboot2_tag_memory): ... to this. Update all users.
15516 (multiboot_tag_unused): Rename from this ...
15517 (multiboot2_tag_unused): ... to this. Update all users.
15518 (multiboot_tag_end): Rename from this ...
15519 (multiboot2_tag_end): ... to this. Update all users.
15521 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15523 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
15524 this platform we should support Multiboot1 first.
15526 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15527 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
15528 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
15530 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15532 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
15533 of write calls (converting them to fwrite() if they aren't already).
15534 (get_torito_desc): Likewise.
15535 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
15537 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15539 * util/i386/pc/grub-install.in: Move from here ...
15540 * util/grub-install.in: ... to here. Update all users.
15542 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
15544 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
15546 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15548 Support for El Torito without floppy emulation.
15550 * util/mkisofs/eltorito.c: Include `<errno.h>'.
15551 (init_boot_catalog): Improve error handling.
15552 (get_torito_desc): Don't use floppy emulation unless requested by
15553 user. Patch boot information table when requested via
15554 `-boot-info-table'.
15555 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
15556 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
15557 (use_boot_info_table): New variables.
15558 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
15559 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
15560 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
15561 `--eltorito-emul-floppy'.
15562 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
15563 and `OPTION_ELTORITO_EMUL_FLOPPY'.
15564 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
15565 (use_boot_info_table, get_731): New prototypes.
15566 * util/mkisofs/write.c (get_731): New function.
15568 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
15570 Fix the generation of the man page.
15572 * util/pc/i386/grub-install.in: Source
15573 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
15575 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15577 Large file support for grub-mkisofs.
15579 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
15580 * util/mkisofs/mkisofs.c (next_extent, last_extent)
15581 (session_start): Upgrade type to `uint64_t'. Update all users.
15582 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
15583 (struct directory_entry): Upgrade type of `starting_block' and
15584 `size' to `uint64_t'. Update all users.
15585 (struct deferred): Remove unused structure.
15586 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
15588 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
15589 file is larger than `UINT32_MAX'.
15590 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
15591 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
15593 (struct deferred_write): Upgrade type of `extent' and `size' to
15594 `uint64_t'. Update all users.
15595 (last_extent_written): Upgrade type to `uint64_t'. Update all
15597 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
15598 Update all users. Upgrade type of `remain' to `int64_t' and
15599 `use' to `size_t'. Use error() to handle fread() errors.
15600 (write_files): Rely on write_one_file() rather than calling
15601 xfwrite() directly.
15603 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
15605 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
15607 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15609 * util/mkisofs/fnmatch.c: Remove.
15610 * util/mkisofs/getopt1.c: Likewise.
15611 * util/mkisofs/getopt.c: Likewise.
15612 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
15613 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
15614 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
15615 `gnulib/getopt1.c' and `gnulib/getopt.c'.
15616 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
15618 * configure.ac: Detect `mingw32msvc' host_os.
15619 Check for lstat(), getuid() and getgid().
15621 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
15622 instances of `u_char' with `uint8_t'.
15624 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
15625 [!HAVE_GETUID] (getuid): New function (stub).
15626 [!HAVE_GETGID] (getgid): Likewise.
15627 [!HAVE_LSTAT] (lstat): Likewise.
15628 [!S_IROTH] (S_IROTH): New macro (dummy).
15629 [!S_IRGRP] (S_IRGRP): Likewise.
15631 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15633 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
15634 conditional expression).
15636 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15638 Import from Gnulib.
15640 * gnulib/fnmatch.c: New file.
15641 * gnulib/fnmatch.h: Likewise.
15642 * gnulib/fnmatch_loop.c: Likewise.
15643 * gnulib/getopt.c: Likewise.
15644 * gnulib/getopt.h: Likewise.
15645 * gnulib/getopt1.c: Likewise.
15646 * gnulib/getopt_int.h: Likewise.
15647 * gnulib/gettext.h: Likewise.
15649 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15651 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
15652 * normal/handler.c (read_handler_list): Likewise.
15654 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15658 * kern/command.c (grub_register_command_prio): Use
15659 grub_zalloc() instead of explicitly zeroing data.
15660 * kern/list.c: Include `<grub/mm.h>'.
15661 (grub_named_list_find): Replace `0' with `NULL'.
15662 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
15663 (fs_module_list): Change type to `grub_named_list_t'. Update all
15665 * normal/dyncmd.c (read_command_list): Add space between function
15666 call and parenthesis.
15667 * normal/handler.c (read_handler_list): Likewise.
15669 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15671 * normal/auth.c (punishment_delay): Moved from here ...
15672 (grub_auth_strcmp): ... to here (inside function).
15674 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15676 * include/grub/list.h (struct grub_named_list): Remove `const'
15677 qualifier from `name'.
15678 (struct grub_prio_list): Likewise.
15680 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15682 * normal/auth.c: Include `<grub/time.h>'.
15683 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
15685 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15687 * normal/auth.c (punishment_delay): New variable.
15688 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
15689 (grub_auth_check_authentication): Punish failed login attempts with
15690 an incremental (2^N) delay.
15692 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15694 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
15695 path with $(srcdir).
15697 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15699 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
15701 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15703 * util/i386/coreboot/grub-mkrescue.in: New file.
15704 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
15707 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
15708 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
15709 * configure.ac: Add header and function checks to satisfy grub-mkisofs
15711 * util/mkisofs/defaults.h: New file.
15712 * util/mkisofs/eltorito.c: Likewise.
15713 * util/mkisofs/exclude.h: Likewise.
15714 * util/mkisofs/fnmatch.c: Likewise.
15715 * util/mkisofs/getopt.c: Likewise.
15716 * util/mkisofs/getopt1.c: Likewise.
15717 * util/mkisofs/hash.c: Likewise.
15718 * util/mkisofs/include/fctldefs.h: Likewise.
15719 * util/mkisofs/include/mconfig.h: Likewise.
15720 * util/mkisofs/include/prototyp.h: Likewise.
15721 * util/mkisofs/include/statdefs.h: Likewise.
15722 * util/mkisofs/iso9660.h: Likewise.
15723 * util/mkisofs/joliet.c: Likewise.
15724 * util/mkisofs/match.c: Likewise.
15725 * util/mkisofs/match.h: Likewise.
15726 * util/mkisofs/mkisofs.c: Likewise.
15727 * util/mkisofs/mkisofs.h: Likewise.
15728 * util/mkisofs/multi.c: Likewise.
15729 * util/mkisofs/name.c: Likewise.
15730 * util/mkisofs/rock.c: Likewise.
15731 * util/mkisofs/tree.c: Likewise.
15732 * util/mkisofs/write.c: Likewise.
15734 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15736 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
15739 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15741 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
15742 `grub-mkimage' (and use $0 when possible).
15744 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15746 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
15747 error message for excessively large memory map.
15749 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15751 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
15754 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15756 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
15757 message for coreboot users.
15759 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
15761 Fix build with GNU gold.
15763 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
15764 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
15765 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
15767 * aclocal.m4: Likewise.
15769 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
15771 * configure.ac (AC_PREREQ): Bump to 2.59d.
15772 * INSTALL: Make it more clear when Autoconf and Ruby are
15773 needed and when to run `./autogen.sh'.
15775 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15777 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
15780 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15782 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
15784 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15786 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
15787 giving it to GNU Mach.
15789 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15791 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
15792 GNU partition number to get internal GRUB partition number.
15794 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15796 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
15797 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
15799 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
15801 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
15802 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
15805 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
15807 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
15809 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
15813 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
15814 `-isystem=$(srcdir)/include'.
15816 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
15818 * util/i386/pc/grub-install.in: Remove hint that device.map should be
15819 checked (grub-install doesn't currently rely on it).
15821 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
15825 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
15826 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
15827 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
15828 * conf/i386-ieee1275.rmk: Likewise.
15829 * conf/i386-pc.rmk: Likewise.
15830 * conf/powerpc-ieee1275.rmk: Likewise.
15831 * conf/sparc64-ieee1275.rmk: Likewise.
15832 * conf/x86_64-efi.rmk: Likewise.
15834 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15836 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
15838 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15840 * include/grub/misc.h: Stop checking for APPLE_CC.
15842 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15844 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
15845 doesn't cause an infinite call loop.
15847 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
15849 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
15852 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15854 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
15856 * Makefile.in: Likewise.
15858 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15860 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
15862 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15864 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
15866 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15868 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
15870 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15872 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
15874 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
15876 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15878 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
15879 in $(MAKEINFO) invocation. This makes it clear in output that
15880 errors are being ignored.
15882 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15884 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
15886 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
15887 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
15888 * conf/i386-ieee1275.rmk: Likewise.
15889 * conf/i386-pc.rmk: Likewise.
15890 * conf/powerpc-ieee1275.rmk: Likewise.
15891 * conf/sparc64-ieee1275.rmk: Likewise.
15892 * conf/x86_64-efi.rmk: Likewise.
15894 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
15896 * util/grub-editenv.c (main): If only a command is given, use
15897 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
15898 (usage): FILENAME is now optional and has a default.
15900 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
15902 Improve grub-mkconfig performance when there are several menu
15903 entries on a single filesystem.
15905 * util/grub.d/10_linux.in (linux_entry): Cache the output of
15906 prepare_grub_to_access_device.
15907 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
15908 * util/grub.d/30_os-prober.in: Likewise.
15910 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15912 * util/grub.d/10_freebsd.in: Remove.
15913 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
15914 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
15916 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15918 * docs/grub.cfg: Fix example usage of *BSD loaders.
15920 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15922 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
15923 grub_util_error() call.
15925 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15927 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
15928 `reserved_first_sector' member.
15929 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
15930 `reserved_first_sector' to 1.
15931 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
15932 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
15933 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
15934 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
15935 filesystems which begin at first sector.
15936 (options): New option --skip-fs-probe.
15937 (main): Handle --skip-fs-probe and pass it to setup().
15939 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15941 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
15942 (memset): Fix function prototype.
15944 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15945 2009-10-25 Vasily Averin <vvs@parallels.com>
15947 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
15948 `dirent.direntlen == 0'.
15950 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15952 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
15954 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
15956 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15958 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
15959 `__trampoline_setup' and `__ucmpdi2'.
15960 * include/grub/powerpc/libgcc.h: Only export symbols for functions
15961 that libgcc provides.
15963 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15965 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
15966 * include/grub/sparc64/libgcc.h (memset): Likewise.
15967 * include/grub/misc.h (memset, memcmp): New function prototypes.
15969 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15971 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
15973 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
15975 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15977 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
15978 * docs/grub.cfg: Compensate for recent change in multiboot
15979 loader (since 2009-08-14 it won't pass filename to payload).
15980 * util/grub.d/10_hurd.in: Likewise.
15982 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
15984 * config.guess: Update to latest version from config git
15986 * config.sub: Likewise.
15988 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
15990 Fix build on sparc64.
15992 * configure.ac: Perform checks for libgcc symbols before
15993 adding `-nostdlib' to LDFLAGS.
15995 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15997 Let user specify OpenBSD root device.
15999 * loader/i386/bsd.c (openbsd_root): New variable.
16000 (openbsd_opts): New option 'root'.
16001 (OPENBSD_ROOT_ARG): New macro.
16002 (grub_openbsd_boot): Use 'openbsd_root'.
16003 (grub_cmd_openbsd): Fill 'openbsd_root'.
16005 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16007 * NEWS: Misc adjustments.
16009 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16011 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
16013 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16015 * configure.ac: Bump version to 1.97.
16017 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
16019 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
16020 -mno-3dnow on x86 architectures. Some toolchains enable these
16021 features by default, but they rely on registers that aren't enabled
16022 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
16024 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
16026 Make entry text a bit more readable.
16028 * util/grub.d/10_linux.in: Add `with' before `Linux'.
16030 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16032 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
16034 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16036 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
16039 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16041 * configure.ac: Add missing dollar.
16043 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16045 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
16047 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
16048 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
16050 * include/grub/sparc64/libgcc.h: Likewise. Use
16051 preprocessor conditionals.
16053 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16055 * conf/common.rmk (grub-dumpbios): Remove rule.
16056 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
16057 * util/grub-dumpbios.in: Remove file.
16059 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16061 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
16062 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
16064 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
16065 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
16068 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
16069 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
16070 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
16071 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
16074 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
16076 * term/tparm.c: Switch to GPLv3.
16078 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16080 * include/grub/i386/cpuid.h: Add header protection.
16082 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16084 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
16086 * include/grub/i386/cpuid.h: New file.
16087 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
16088 (has_longmode): Rename to ...
16089 (grub_cpuid_has_longmode): ... this. Update all users. Remove
16090 `static' attribute.
16091 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
16092 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
16093 on a CPU that doesn't implement AMD64 instruction set.
16095 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16097 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
16098 that version.texi is rebuilt on version number changes.
16100 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16102 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
16105 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16107 * util/i386/pc/grub-install.in: Source
16108 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
16109 that the --grub-probe option will work.
16110 * util/sparc64/ieee1275/grub-install.in: Likewise.
16112 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
16114 * configure.ac: Bump version to 1.97~beta4.
16116 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
16118 Resync grub-mkdevicemap in x86_64-efi.
16120 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
16121 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
16122 `util/devicemap.c'.
16124 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
16126 * util/grub-editenv.c (create_envblk_file): Write new block with a
16127 .new suffix and then rename it into place, to ensure atomic
16130 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
16132 Do not automatically install headers.
16134 * Makefile.in (include_DATA): Remove. Update all users.
16136 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
16138 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
16139 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
16141 * util/osdetect.lua: Remove.
16142 * script/lua/lauxlib.c: Likewise.
16143 * script/lua/ldebug.c: Likewise.
16144 * script/lua/grub_main.c: Likewise.
16145 * script/lua/lauxlib.h: Likewise.
16146 * script/lua/ldebug.h: Likewise.
16147 * script/lua/ltablib.c: Likewise.
16148 * script/lua/liolib.c: Likewise.
16149 * script/lua/lstrlib.c: Likewise.
16150 * script/lua/lualib.h: Likewise.
16151 * script/lua/ldo.c: Likewise.
16152 * script/lua/ldump.c: Likewise.
16153 * script/lua/ldo.h: Likewise.
16154 * script/lua/loslib.c: Likewise.
16155 * script/lua/lundump.c: Likewise.
16156 * script/lua/grub_lib.c: Likewise.
16157 * script/lua/ldblib.c: Likewise.
16158 * script/lua/lundump.h: Likewise.
16159 * script/lua/lmem.c: Likewise.
16160 * script/lua/grub_lib.h: Likewise.
16161 * script/lua/lmathlib.c: Likewise.
16162 * script/lua/lstate.c: Likewise.
16163 * script/lua/ltm.c: Likewise.
16164 * script/lua/lvm.c: Likewise.
16165 * script/lua/lmem.h: Likewise.
16166 * script/lua/lstate.h: Likewise.
16167 * script/lua/ltm.h: Likewise.
16168 * script/lua/ltable.c: Likewise.
16169 * script/lua/lvm.h: Likewise.
16170 * script/lua/llex.c: Likewise.
16171 * script/lua/lgc.c: Likewise.
16172 * script/lua/grub_lua.h: Likewise.
16173 * script/lua/loadlib.c: Likewise.
16174 * script/lua/lfunc.c: Likewise.
16175 * script/lua/lopcodes.c: Likewise.
16176 * script/lua/lparser.c: Likewise.
16177 * script/lua/ltable.h: Likewise.
16178 * script/lua/llex.h: Likewise.
16179 * script/lua/lgc.h: Likewise.
16180 * script/lua/lfunc.h: Likewise.
16181 * script/lua/lbaselib.c: Likewise.
16182 * script/lua/lopcodes.h: Likewise.
16183 * script/lua/lparser.h: Likewise.
16184 * script/lua/lzio.c: Likewise.
16185 * script/lua/linit.c: Likewise.
16186 * script/lua/lobject.c: Likewise.
16187 * script/lua/llimits.h: Likewise.
16188 * script/lua/lstring.c: Likewise.
16189 * script/lua/lzio.h: Likewise.
16190 * script/lua/lapi.c: Likewise.
16191 * script/lua/lcode.c: Likewise.
16192 * script/lua/lua.h: Likewise.
16193 * script/lua/lobject.h: Likewise.
16194 * script/lua/lstring.h: Likewise.
16195 * script/lua/lapi.h: Likewise.
16196 * script/lua/lcode.h: Likewise.
16197 * script/lua/luaconf.h: Likewise.
16199 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
16201 * docs/grub.texi (Command-line and menu entry commands): Document
16202 date and echo commands.
16204 2009-09-24 Pavel Roskin <proski@gnu.org>
16206 * include/grub/kernel.h (struct grub_module_header): Remove
16207 `grub_module_header_types'. Make `type' unsigned. Make `size'
16208 32-bit on all platforms.
16209 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
16210 8-bit field. Use grub_host_to_target32() for `size'.
16211 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
16212 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
16213 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
16215 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16217 Fix "lost keypress" bug in at_keyboard.
16219 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
16220 Checks for readyness of input buffer (without flushing it).
16221 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
16222 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
16224 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16226 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
16227 size check within GRUB_MACHINE_PCBIOS section.
16229 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16231 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
16233 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
16234 KEYBOARD_ISREADY check.
16235 (grub_at_keyboard_checkkey): Rename to ...
16236 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
16237 Remove gratuitous cast.
16239 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
16241 * configure.ac: Call AC_PROG_MKDIR_P.
16242 * Makefile.in (docs/stamp-vti): Create docs directory. Create
16243 version.texi in $(builddir) rather than $(srcdir).
16244 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
16245 to makeinfo's @include search path.
16247 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16249 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
16251 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16253 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
16256 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
16258 Build info documentation. Some code borrowed from Automake.
16260 * configure.ac: Check for makeinfo.
16261 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
16262 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
16264 (MOSTLYCLEANFILES): Add vti.tmp.
16265 (docs/version.texi, docs/stamp-vti): Update automatically.
16266 (docs/grub.info): Build info documentation. Use --force and ignore
16268 (all-local): Add $(INFOS).
16269 (install-local): Install info files.
16270 (uninstall): Uninstall info files.
16271 * docs/version.texi: Remove from revision control. This file is
16272 automatically generated on build now.
16273 * gendistlist.sh: Add `*.info'.
16275 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16277 * kern/term.c: Fix indentation.
16279 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16281 * util/hostdisk.c: Fix a comment.
16283 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
16285 Fix regression introduced in r2539.
16287 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
16290 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
16292 * util/grub.d/30_os-prober.in: Don't throw away stderr from
16293 os-prober. Under normal operation, it does not print anything to
16294 stderr; if it does, we need to debug it, and throwing away stderr
16295 makes that excessively difficult.
16297 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
16299 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
16301 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16303 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
16304 AC_LANG_PROGRAM from autoconf.
16305 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
16306 prototypes (fixes warning).
16308 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
16309 `--disable-werror' was used.
16311 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16313 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
16314 uninitialized `lastaddr'.
16316 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16318 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
16320 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
16322 * commands/test.c (get_fileinfo): Return immediately if
16323 grub_fs_probe fails.
16325 2009-09-14 José Martínez <xosemp@gmail.com>
16327 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
16329 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
16331 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
16334 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
16336 * configure.ac: Remove --enable-grub-pe2elf. Only build
16337 grub-pe2elf when needed by the build system itself.
16338 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
16340 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16342 * configure.ac: Bump version to 1.97~beta3.
16343 * docs/version.texi: Likewise.
16345 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16347 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
16348 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
16350 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
16351 (grub_linux_setup_video): ... to here (with some adjustments).
16353 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16355 Fix memory corruption issue (spotted by Colin Watson).
16357 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
16358 causing returned size to be stored in an incorrect memory location.
16359 Fix use of uninitialized value when storing the returned size.
16361 2009-09-12 Yves Blusseau <blusseau@zetam.org>
16363 Change clean rules to properly remove files
16365 * genmk.rb: add new clean rules
16366 * Makefile.in (clean): add the new targets
16367 (mostlyclean): likewise
16369 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
16371 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
16373 * fs/ntfs.c (init_file): Understand 64-bit sizes for
16374 non-resident files.
16376 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
16378 * configure.ac: Don't look for help2man when cross-compiling. Fixes
16379 part of bug #27349.
16381 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
16383 * util/grub-mkconfig.in: Make the created config mode 400 and
16384 print a warning if it fails.
16386 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
16388 * util/grub.d/40_custom.in: Ask user to type custom entries below
16389 comment, rather than below 'exec tail' line.
16391 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
16393 * util/grub.d/40_custom.in: Make sure that the explanatory text is
16394 visible in grub.cfg.
16396 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
16398 * util/grub.d/40_custom.in: Make it a little clearer how to use this
16401 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
16403 * docs/grub.cfg: Add an example menu entry for memtest86+.
16405 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
16407 * config.guess: Update to latest version from config git.
16408 * config.sub: Likewise.
16410 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
16412 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
16413 unknown-command case. Fixes bug #27320.
16415 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
16417 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
16418 `help' if the command exists.
16420 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
16422 * INSTALL: Require GCC 4.1.3 or later.
16424 2009-09-06 Yves Blusseau <blusseau@zetam.org>
16426 * Makefile.in (RMKFILES): add i386-qemu.rmk
16427 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
16428 $(srcdir)/stamp-h.in
16430 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
16432 * util/grub-probe.c (probe): Comment out buggy codepath, which
16433 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
16434 should be re-enabled after 1.97.
16436 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
16438 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
16441 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16443 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
16444 unnecessary calls to grub_error.
16446 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
16448 * NEWS: Mention `keystatus' and Unicode fonts.
16450 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
16452 * configure.ac: Bump version to 1.97~beta2.
16453 * docs/version.texi: Likewise.
16455 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
16457 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
16458 containing unwind information in some cases where it previously did
16459 not. Use -fno-dwarf2-cfi-asm if available to restore the old
16460 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
16463 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
16465 Embedding loadenv module into grub-emu
16467 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
16469 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
16470 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
16471 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
16472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
16473 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
16474 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
16476 2009-09-03 Magnus Granberg <zorry@ume.nu>
16478 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
16479 include -fPIE in the default specs.
16480 * configure.ac: Check if pie_possible is yes and add -fno-PIE
16483 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
16485 * INSTALL: Note that GNU Bison 2.3 or later is required.
16487 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
16489 * kern/i386/pc/startup.S: Fix typo.
16491 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16493 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
16496 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16498 * docs/grub.texi (Naming convention): Describe one-based partition
16500 (Device syntax): Likewise.
16501 (File name syntax): Likewise.
16502 (Block list syntax): Likewise.
16503 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
16505 (File name syntax): Likewise.
16506 (Command-line and menu entry commands): Document acpi, blocklist,
16507 crc, export, insmod, keystatus, ls, set, and unset commands.
16509 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16511 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
16512 to avoid implying that only one of --shift, --ctrl, or --alt may be
16515 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16517 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
16518 rather than comparing against S_IFREG, which will almost never work.
16520 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16522 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
16523 (write_blocklists): Likewise.
16525 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
16527 * script/lua/grub_lua.h (fputs): Supply a format string as the first
16528 argument to grub_printf.
16530 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
16532 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
16535 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16537 * kern/file.c (grub_file_read): Spelling fix
16539 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16541 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
16542 loading of headers in some cases.
16544 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
16546 * configure.ac: Bump version to 1.97~beta1.
16547 * docs/version.texi: Likewise.
16549 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16551 * include/grub/i386/xnu.h: Add license header.
16552 include grub/err.h explicitly.
16554 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16556 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
16557 to `ufs' in the vfs.root.mountfrom kernel parameter.
16559 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16561 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
16563 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
16564 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
16566 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
16567 `ARRAY_SIZE' macro.
16569 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16571 * kern/file.c (grub_file_read): Check offset.
16572 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
16573 * fs/jfs.c (grub_jfs_read_file): Likewise.
16574 * fs/ntfs.c (grub_ntfs_read): Likewise.
16575 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
16576 * fs/minix.c (grub_minix_read_file): Correct offset check.
16577 * fs/ufs.c (grub_ufs_read_file): Likewise.
16579 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16581 * term/i386/pc/console.c (bios_data_area): Cast
16582 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
16584 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16586 1-bit optimised blitters.
16588 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
16590 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16591 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16592 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16593 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16594 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16595 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16596 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
16598 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16599 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16600 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16601 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16602 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16603 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16604 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
16606 * video/video.c (grub_video_get_blit_format): Return
16607 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
16609 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16611 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
16612 the first argument to grub_printf.
16614 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16615 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
16617 Add `getkeystatus' terminal method. Add a new `keystatus' command
16620 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
16621 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
16622 modifier key bitmasks.
16623 (struct grub_term_input): Add `getkeystatus' member.
16624 (grub_getkeystatus): Add prototype.
16625 * kern/term.c (grub_getkeystatus): New function.
16627 * include/grub/i386/pc/memory.h
16628 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
16629 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
16631 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
16632 (grub_console_term_input): Set `getkeystatus' member.
16633 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
16635 (grub_usb_keyboard_getreport): Likewise.
16636 (grub_usb_keyboard_checkkey): Likewise.
16637 (grub_usb_keyboard_getkeystatus): New function.
16638 (grub_usb_keyboard_term): Set `getkeystatus' member.
16640 * commands/keystatus.c: New file.
16641 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
16642 (keystatus_mod_SOURCES): New variable.
16643 (keystatus_mod_CFLAGS): Likewise.
16644 (keystatus_mod_LDFLAGS): Likewise.
16645 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
16646 commands/keystatus.c.
16647 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16648 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16649 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16650 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16651 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16652 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16654 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16656 Split befs.mod and afs.mod into *_be.mod and *.mod
16658 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
16659 (grub_fstest_SOURCES): Likewise.
16660 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
16661 (afs_be_mod_SOURCES): New variable.
16662 (afs_be_mod_CFLAGS): Likewise.
16663 (afs_be_mod_LDFLAGS): Likewise.
16664 (befs_be_mod_SOURCES): Likewise.
16665 (befs_be_mod_CFLAGS): Likewise.
16666 (befs_be_mod_LDFLAGS): Likewise.
16667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
16668 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16669 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16670 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
16671 (grub_emu_SOURCES): Likewise.
16672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16673 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16674 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16675 * fs/afs_be.c: New file.
16676 * fs/befs_be.c: New file.
16677 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
16678 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
16679 (U16): Replaced with ...
16680 (grub_afs_to_cpu16): ...this. All users updated.
16681 (U32): Replaced with ...
16682 (grub_afs_to_cpu32): ...this. All users updated.
16683 (U64): Replaced with ...
16684 (grub_afs_to_cpu64): ...this. All users updated.
16685 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
16686 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
16687 (grub_afs_validate_sblock): Check only one endianness.
16688 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16689 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16690 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16691 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16692 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16693 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16694 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16695 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16697 2009-08-26 Bean <bean123ch@gmail.com>
16699 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
16701 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16702 (grub_xfs_inode_block): Change return type to grub_uint64_t.
16703 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
16705 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16707 NetBSD memory map support.
16709 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
16710 (grub_netbsd_btinfo_mmap_header): New structure.
16711 (grub_netbsd_btinfo_mmap_entry): Likewise.
16712 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
16714 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16716 Enable bsd.mod on coreboot.
16718 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
16719 (bsd_mod_SOURCES): New variable.
16720 (bsd_mod_CFLAGS): Likewise.
16721 (bsd_mod_LDFLAGS): Likewise.
16722 (bsd_mod_ASFLAGS): Likewise.
16723 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
16724 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
16726 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16728 Cleanup NetBSD root support.
16730 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
16731 grub_bsd_get_device.
16734 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
16736 * util/grub.d/00_header.in: Move check for the video backend of
16737 gfxterm from here ...
16738 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
16739 a suitable video backend.
16741 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16743 Fix breakage in grub-setup.
16745 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
16746 "msdos_partition_map".
16748 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16750 Fix breakage in normal/auth.c.
16752 * normal/auth.c (grub_iswordseparator): New function.
16754 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16756 Authentication support.
16758 * commands/password.c: New file.
16759 * conf/common.rmk (pkglib_MODULES): Add password.mod.
16760 (password_mod_SOURCES): New variable.
16761 (password_mod_CFLAGS): Likewise.
16762 (password_mod_LDFLAGS): Likewise.
16763 (normal_mod_SOURCES): Add normal/auth.c.
16764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
16766 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16767 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16768 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16770 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16771 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16772 * include/grub/auth.h: New file.
16773 * include/grub/err.h (grub_err_t): New enum value
16774 GRUB_ERR_ACCESS_DENIED.
16775 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
16777 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
16778 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
16780 * normal/auth.c: New file.
16781 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
16782 (grub_cmdline_run): Don't allow to go to command line without
16784 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
16785 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
16786 menuentry without superuser rights.
16787 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
16788 user isn't a superuser.
16790 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16792 Save space by inlining misc.c functions.
16794 * kern/misc.c (grub_iswordseparator): Made static.
16795 * kern/misc.c (grub_strcat): Moved from here ...
16796 * include/grub/misc.h (grub_strcat): ... here. Inlined.
16797 * kern/misc.c (grub_strncat): Moved from here ...
16798 * include/grub/misc.h (grub_strncat): ... here. Inlined.
16799 * kern/misc.c (grub_strcasecmp): Moved from here ...
16800 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
16801 * kern/misc.c (grub_strncasecmp): Moved from here ...
16802 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
16803 * kern/misc.c (grub_isalpha): Moved from here ...
16804 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
16805 * kern/misc.c (grub_isdigit): Moved from here ...
16806 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
16807 * kern/misc.c (grub_isgraph): Moved from here ...
16808 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
16809 * kern/misc.c (grub_tolower): Moved from here ...
16810 * include/grub/misc.h (grub_tolower): ... here. Inlined.
16812 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16814 * script/sh/function.c (grub_script_function_find): Cut error message
16815 not to flood terminal.
16816 * script/sh/lexer.c (grub_script_yylex): Remove command line length
16818 * script/sh/script.c (grub_script_arg_add): Duplicate string.
16820 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
16822 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
16823 `report' grub_uint8_t *.
16824 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
16825 Use a 50-millisecond timeout rather than just repeating
16826 grub_usb_keyboard_getreport 50 times.
16827 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
16829 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16831 Rename *_partition_map to part_*
16833 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
16834 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
16835 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
16836 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
16838 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
16840 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
16841 * util/grub-probe.c (probe_partmap): Don't transform partition name
16842 to get module name.
16844 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16846 Fix OpenBSD and NetBSD support.
16848 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
16849 memory address conflict.
16850 (OPENBSD_MMAP_ACPI): New definition.
16851 (OPENBSD_MMAP_NVS): Likewise.
16852 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
16853 and OPENBSD_MMAP_NVS.
16854 Add memory map terminator
16855 Explicit cast when calling grub_unix_real_boot.
16856 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
16858 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16860 Let user specify NetBSD root device.
16862 * loader/i386/bsd.c (netbsd_root): New variable.
16863 (netbsd_opts): New option 'root'.
16864 (NETBSD_ROOT_ARG): New macro.
16865 (grub_netbsd_boot): Use 'netbsd_root'.
16866 (grub_bsd_unload): Free 'netbsd_root'.
16867 (grub_cmd_netbsd): Fill 'netbsd_root'.
16869 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16871 Support for 64-bit NetBSD.
16873 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
16874 point when booting non-FreeBSD.
16876 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16878 Support --no-smp and --no-acpi for NetBSD.
16880 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
16881 (NETBSD_AB_NOACPI): Likewise.
16882 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
16883 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
16885 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16887 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
16889 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
16890 errors. Call grub_error when needed.
16892 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16894 * commands/search.c (search_fs): Try searching without autoload first.
16895 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
16896 filesystem module explicitly for faster booting.
16898 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
16900 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
16902 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
16904 * util/grub.d/30_os-prober.in: Disable os-prober if
16905 `GRUB_DISABLE_OS_PROBER' was set to true.
16907 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
16909 * partmap/pc.c: Rename to ...
16910 * partmap/msdos.c: ... this. Update all users.
16911 (grub_pc_partition_map): Rename to ...
16912 (grub_msdos_partition_map): ... this. Update all users.
16914 * parttool/pcpart.c: Rename to ...
16915 * parttool/msdospart.c: ... this. Update all users.
16917 * include/grub/pc_partition.h: Rename to ...
16918 * include/grub/msdos_partition.h: ... this. Update all users.
16919 (grub_pc_partition_bsd_entry): Rename to ...
16920 (grub_msdos_partition_bsd_entry): ... this. Update all users.
16921 (grub_pc_partition_disk_label): Rename to ...
16922 (grub_msdos_partition_disk_label): ... this. Update all users.
16923 (grub_pc_partition_entry): Rename to ...
16924 (grub_msdos_partition_entry): ... this. Update all users.
16925 (grub_pc_partition_mbr): Rename to ...
16926 (grub_msdos_partition_mbr): ... this. Update all users.
16927 (grub_pc_partition): Rename to ...
16928 (grub_msdos_partition): ... this. Update all users.
16929 (grub_pc_partition_is_empty): Rename to ...
16930 (grub_msdos_partition_is_empty): ... this. Update all users.
16931 (grub_pc_partition_is_extended): Rename to ...
16932 (grub_msdos_partition_is_extended): ... this. Update all users.
16933 (grub_pc_partition_is_bsd): Rename to ...
16934 (grub_msdos_partition_is_bsd): ... this. Update all users.
16936 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
16937 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
16938 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
16939 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
16940 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
16941 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
16942 (gpt_mod_LDFLAGS): Rename to ...
16943 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
16944 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
16945 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
16946 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
16947 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
16948 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
16949 (part_gpt_mod_LDFLAGS): ... this.
16950 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
16951 `pcpart.mod' to `msdospart.mod'.
16952 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
16954 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
16955 (msdospart_mod_LDFLAGS): ... this.
16957 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16959 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
16960 (openbsd_opts): Likewise.
16961 (netbsd_opts): Likewise.
16962 (freebsd_flags): Added 0 terminator.
16963 (openbsd_flags): Likewise.
16964 (netbsd_flags): Likewise.
16965 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
16966 (grub_cmd_freebsd): Transformed into extended command.
16967 (grub_cmd_openbsd): Likewise.
16968 (grub_cmd_netbsd): Likewise.
16969 (cmd_freebsd): Changed type to grub_extcmd_t.
16970 (cmd_openbsd): Likewise.
16971 (cmd_netbsd): Likewise.
16972 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
16973 grub_cmd_openbsd as extended commands.
16974 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
16975 cmd_netbsd and cmd_openbsd
16977 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
16979 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
16981 2009-08-21 Pavel Roskin <proski@gnu.org>
16983 * Makefile.in (install-local): When checking if a file is in the
16984 build directory, use "test -e" to detect symlinks.
16986 * Makefile.in (install-local): Remove all files in
16987 $(DESTDIR)$(pkglibdir) before installing new files there.
16989 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
16991 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
16994 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
16996 * util/grub-mkconfig.in: Don't use gfxterm by default if not
16997 explicitly specified by the user.
16999 2009-08-18 Pavel Roskin <proski@gnu.org>
17001 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
17002 grub_uint8_t pointer for data.
17003 * include/grub/fbutil.h (struct grub_video_fbblit_info):
17005 * video/fb/fbutil.c: Remove unnecessary casts.
17007 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17011 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
17012 (grub_vbe_set_video_mode): Save active mode info
17013 only after setting the mode.
17014 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
17017 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17019 Rename variables for clarity.
17021 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
17022 (active_vbe_mode_info): ... this. All users updated.
17023 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
17025 (initial_mode): Rename to ...
17026 (initial_vbe_mode): ... this. All users updated.
17027 (mode_in_use): Rename to ..
17028 (vbe_mode_in_use): ... this. All users updated.
17029 (mode_list): Rename to ..
17030 (vbe_mode_list): ... this. All users updated.
17031 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
17032 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
17033 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
17034 'mode_list_size' to 'vbe_mode_list_size'.
17035 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
17036 'best_mode_info' to 'best_vbe_mode_info' and
17037 'best_mode' to 'best_vbe_mode'
17039 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17041 Remove duplicate grub_video_fb_get_video_ptr.
17043 * include/grub/fbutil.h (get_data_ptr): Rename to ...
17044 (grub_video_fb_get_video_ptr): ... this.
17045 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
17046 * video/fb/fbutil.c: Add comment about addressing.
17047 (get_data_ptr): Rename to ...
17048 (grub_video_fb_get_video_ptr): ... this. All users updated.
17049 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
17051 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17053 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
17054 grub_dprintf() that was just added.
17056 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17058 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
17059 (DEFAULT_VIDEO_MODE): Remove macros.
17060 (grub_linux_boot): Remove assumption that Linux has FB support,
17061 and use "text" as default video mode.
17063 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
17065 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
17067 * fs/fat.c (grub_fat_read_data): Likewise.
17069 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17071 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
17073 (grub_module): Likewise.
17075 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17077 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
17078 mbi->cmdline but free playground.
17080 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17082 Handle group offset on UFS1.
17084 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
17085 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
17087 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17089 Split ufs.mod into ufs1.mod and ufs2.mod.
17091 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
17092 (grub_fstest_SOURCES): Likewise.
17093 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
17094 (ufs_mod_SOURCES): Remove.
17095 (ufs_mod_CFLAGS): Likewise.
17096 (ufs_mod_LDFLAGS): Likewise.
17097 (ufs1_mod_SOURCES): New variable.
17098 (ufs1_mod_CFLAGS): Likewise.
17099 (ufs1_mod_LDFLAGS): Likewise.
17100 (ufs2_mod_SOURCES): New variable.
17101 (ufs2_mod_CFLAGS): Likewise.
17102 (ufs2_mod_LDFLAGS): Likewise.
17103 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
17104 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17106 (grub_emu_SOURCES): Likewise.
17107 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17108 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17109 (grub_setup_SOURCES): Likewise.
17110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17111 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
17112 (grub_setup_SOURCES): Likewise.
17113 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17115 * fs/ufs2.c: New file.
17116 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
17118 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17122 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
17123 subsystem at the end.
17124 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
17125 (video_fb_mod_SOURCES): New variable.
17126 (video_fb_mod_CFLAGS): Likewise.
17127 (video_fb_mod_LDFLAGS): Likewise.
17128 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
17129 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
17130 * video/i386/pc/vbeblit.c: Moved from here ...
17131 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
17132 * video/i386/pc/vbefill.c: Moved from here ...
17133 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
17134 * video/i386/pc/vbeutil.c: Moved from here ...
17135 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
17136 * include/grub/i386/pc/vbeblit.h: Moved from here ...
17137 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
17138 * include/grub/i386/pc/vbefill.h: Moved from here ...
17139 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
17140 * include/grub/i386/pc/vbeutil.h: Moved from here ...
17141 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
17142 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
17143 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
17144 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
17145 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
17146 (grub_video_adapter): Added 'get_info_and_fini'.
17147 (grub_video_get_info_and_fini): New prototype.
17148 (grub_video_set_mode): make modestring const char *.
17149 * loader/i386/linux.c (grub_linux_setup_video): Use
17150 grub_video_get_info_and_fini.
17151 (grub_linux_boot): Move modesetting just before booting.
17152 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
17153 grub_video_get_info_and_fini.
17154 * video/i386/pc/vbe.c: Moved framebuffer part ...
17155 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
17156 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
17157 grub_video_fbstd_colors and grub_video_fb_set_palette.
17158 (grub_video_vbe_init): Clear 'framebuffer' variable and use
17159 grub_video_fb_init.
17160 (grub_video_vbe_fini): Use grub_video_fb_fini.
17161 (grub_video_vbe_setup): Use framebuffer.render_target instead of
17162 render_target and use grub_video_fb_set_active_render_target and
17163 grub_video_fb_set_palette.
17164 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
17165 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
17166 (grub_video_vbe_adapter): Use framebuffer.
17167 * video/video.c (grub_video_get_info_and_fini): New function.
17168 (grub_video_set_mode): Make modestring const char *.
17169 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
17170 values are already initialised.
17172 2009-08-14 Pavel Roskin <proski@gnu.org>
17174 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
17176 * boot/i386/pc/diskboot.S: Likewise.
17177 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
17178 sectors allow compilation on MacOSX.
17179 * conf/i386-pc.rmk: Enable unconditional compilation of
17182 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
17184 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
17185 * util/grub.d/00_header.in: Enter interruptible sleep if
17186 GRUB_HIDDEN_TIMEOUT is set.
17188 2009-08-13 Yves Blusseau <blusseau@zetam.org>
17190 * include/grub/symbol.h: Add the LOCAL macro.
17191 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
17192 starting with "L_".
17194 2009-08-13 Pavel Roskin <proski@gnu.org>
17196 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
17197 any modern compilers we support.
17199 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
17200 Use local labels starting with "L_" so that Apple assembler
17201 knows they are local.
17203 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
17205 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
17206 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
17207 (bsd_kernel_types): ... this enum.
17209 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
17210 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
17211 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
17213 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
17214 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
17215 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
17218 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17220 * util/grub-dumpdevtree: Moved from here ...
17221 * util/i386/efi/grub-dumpdevtree: ... to here.
17222 (hexify): New function. Converts a string to its hex version.
17223 Generate hex versions of "efi" and "device-properties" by calling
17224 hexify() on the ASCII strings rather than by hardcoding numbers.
17226 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17228 * fs/jfs.c: Update copyright year.
17230 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17232 * util/grub.d/00_header.in: Fix a comment.
17233 * util/grub.d/10_linux.in: Likewise.
17234 * util/grub.d/10_windows.in: Likewise.
17235 * util/grub.d/10_hurd.in: Likewise.
17237 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17239 * util/grub-mkconfig.in: Allow the user to specify the used font
17242 2009-08-08 Pavel Roskin <proski@gnu.org>
17244 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
17245 available, xfs.mod needs it now.
17247 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
17248 the "g" modifier in sed when the intention is to strip something
17249 once. This fixes comparison of kernels with multiple dashes.
17251 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
17252 on it. Add missing space before closing bracket. Fix
17253 misleading formatting.
17255 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17257 * docs/grub.texi: Major overhaul. Remove all sections that are
17258 specific to GRUB Legacy, or mostly composed of Legacy-specific
17261 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17263 * docs/version.texi: New file. Provides version information for
17266 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17268 * docs/grub.texi: Update CVS information to SVN.
17269 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
17271 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17273 * util/grub-mkconfig.in: Remove a wrong `fi'.
17275 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17277 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
17278 (grub_jfs_uuid): New function.
17279 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
17281 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17283 * util/grub-mkconfig_lib.in (font_path): Move the functionality
17285 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
17286 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
17288 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17290 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
17291 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
17294 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
17295 not just "vmlinu[zx]".
17296 Moved from here ...
17297 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
17300 * util/grub.d/10_linux.in (find_latest): Moved from here ...
17301 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
17304 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17306 * util/grub.d/10_freebsd.in: Use an absolute device path for
17307 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
17309 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
17311 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
17312 handling of multiple abstraction modules.
17314 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
17316 Fix a bug resulting in black screen when loading Linux using a
17319 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
17322 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
17323 (grub_vbe_bios_getset_dac_palette_width): New function.
17324 (grub_vbe_bios_get_dac_palette_width)
17325 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
17326 grub_vbe_bios_getset_dac_palette_width()).
17328 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
17329 check for return status.
17330 (grub_vbe_get_video_mode_info): When getting information for a packed
17331 mode (<= 8 bpp), obtain DAC palette width using
17332 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
17333 {red,green,blue}_mark_size.
17335 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
17337 * commands/search.c (options): Fix help output to match actual code.
17339 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
17341 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
17344 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17346 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
17347 on XFS or ReiserFS.
17349 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17351 Support Apple partition map with sector size different from 512 bytes.
17353 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
17354 (apple_partition_map_iterate): Respect 'aheader.blocksize'
17355 and 'apart.partmap_size'.
17357 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17358 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
17362 * commands/i386/cpuid.c (options): New variable.
17363 (grub_cmd_cpuid): Return real error.
17364 (GRUB_MOD_INIT(cpuid)): Declare options.
17366 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
17368 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
17371 2009-07-31 Bean <bean123ch@gmail.com>
17373 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
17375 (grub_fshelp_node): Move inode field to the end.
17376 (grub_xfs_data): Remove inode field.
17377 (grub_xfs_inode_block): Calculate inode size using sblock.
17378 (grub_xfs_inode_offset): Likewise.
17379 (grub_xfs_read_inode): Calculate inode size using sblock.
17380 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
17381 (grub_xfs_iterate_dir): Calculate inode size using sblock.
17382 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
17383 to match inode size.
17384 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
17385 not accessible when data is null.
17386 (grub_xfs_open): Likewise.
17388 2009-07-31 Bean <bean123ch@gmail.com>
17390 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
17391 Don't change pv->disk if it's already set.
17393 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
17394 (grub_raid_register): ... here.
17395 (grub_raid_rescan): Removed.
17397 * include/grub/raid.h (grub_raid_rescan): Removed.
17399 * util/grub-fstest.c: Remove include file <grub/raid.h>.
17400 (fstest): Replace grub_raid_rescan with module fini function followed
17403 * util/grub-probe.c: Add include file <grub/raid.h>.
17404 (probe_raid_level): New function.
17405 (probe): Detect abstraction by walking the disk device, support two
17406 level of abstraction (LVM on RAID) when detecting partition map.
17408 2009-07-31 Pavel Roskin <proski@gnu.org>
17410 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
17411 to grub_zalloc(), it was erroneous.
17412 Reported by Bean <bean123ch@gmail.com>
17414 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
17416 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
17417 embedding zone, not only the first one.
17419 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
17421 * term/gfxterm.c (clear_char): New function.
17422 (grub_virtual_screen_setup): Use clear_char.
17423 (scroll_up): Likewise.
17424 (grub_virtual_screen_cls): Likewise.
17426 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
17428 * util/deviceiter.c (get_acceleraid_disk_name): New static
17430 (grub_util_iterate_devices): Handle Accelraid devices.
17431 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
17433 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
17435 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
17436 separator for the suggested gfxpayload string (';' collides with the
17437 parser and needs escaping).
17439 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
17441 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
17442 Clear direction flag before jumping to OS.
17443 (grub_multiboot2_real_boot): Likewise.
17445 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
17447 * util/i386/pc/grub-install: Fix parsing of --disk-module
17450 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
17452 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
17455 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
17457 * util/grub-mkconfig.in (package_version): New variable.
17458 Use it do display the version.
17460 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
17462 * kern/file.c (grub_file_open): Revert to previous check with
17465 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17467 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
17468 from help line. It's out of sync with code.
17470 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17472 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
17473 entries on failed boot.
17475 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
17477 * kern/file.c (grub_file_open): Fix an error check.
17479 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
17481 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
17482 partition map couldn't be identified.
17484 2009-07-23 Pavel Roskin <proski@gnu.org>
17486 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
17487 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
17488 case of little endian words becomes just an optimization.
17489 Respect const modifier.
17490 (md5_final): Use code that doesn't depend on endianness.
17492 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
17493 to avoid loss of upper bits if align is unsigned and shorter
17496 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17498 UUID support for UFS
17500 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
17501 (grub_ufs_uuid): New function.
17502 (grub_ufs_fs): add .uuid
17504 2009-07-21 Pavel Roskin <proski@gnu.org>
17506 * kern/dl.c (grub_dl_check_header): Make static.
17508 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
17510 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
17511 add drivemap for Vista. It breaks Windows 7.
17513 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17515 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
17518 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17522 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
17523 (grub_fstest_SOURCES): Likewise.
17524 (pkglib_MODULES): Add befs.mod.
17525 (befs_mod_SOURCES): New variable.
17526 (befs_mod_CFLAGS): Likewise.
17527 (befs_mod_LDFLAGS): Likewise.
17528 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17530 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17531 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17532 (grub_setup_SOURCES): Likewise.
17533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17534 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17535 (grub_setup_SOURCES): Likewise.
17536 * fs/befs.c: New file.
17537 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
17538 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
17539 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
17540 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
17541 (B_KEY_INDEX_ALIGN): New declaration.
17542 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
17543 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
17544 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
17545 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
17546 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
17547 (grub_afs_mount) [MODE_BFS]: Likewise.
17548 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
17549 (grub_afs_fs): Use GRUB_AFS_FSNAME
17550 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
17551 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
17552 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
17553 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
17555 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
17557 * util/getroot.c (find_root_device): Add support for MacOSX.
17558 * util/hostdisk.c: Likewise.
17560 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17562 * font/font.c (find_glyph): Check whether a font is present to avoid
17563 segmentation fault.
17565 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
17567 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
17569 2009-07-20 Pavel Roskin <proski@gnu.org>
17571 * configure.ac: Trim excessively wordy excuses.
17573 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17575 Add symlink, mtime and label support to AtheFS.
17577 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
17578 (grub_afs_iterate_dir): Handle symlinks.
17579 (grub_afs_open): Use grub_afs_read_symlink.
17580 (grub_afs_dir): Likewise.
17582 (grub_afs_label): New function.
17583 (grub_afs_fs): Add grub_afs_label.
17584 (grub_afs_read_symlink): New function.
17586 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17588 Fix AtheFS support.
17590 * fs/afs.c: Fix comments style.
17591 (grub_afs_blockrun): Declare as packed.
17592 (grub_afs_datastream): Likewise.
17593 (grub_afs_bnode): Likewise.
17594 (grub_afs_btree): Likewise.
17595 (grub_afs_sblock): Likewise.
17596 Declare `name' as char.
17597 (grub_afs_inode): Declare as packed.
17598 Change void *vnode to grub_uint32_t unused.
17599 (grub_afs_iterate_dir): Check that key_size is positive.
17600 (grub_afs_mount): Don't read superblock twice.
17601 (grub_afs_dir): Don't free node in case of error,
17602 grub_fshelp_find_file already handles this.
17603 (grub_afs_open): Likewise.
17605 2009-07-19 Pavel Roskin <proski@gnu.org>
17607 * Makefile.in: Remove LIBLZO and enable_lzo.
17608 * conf/i386-pc.rmk: Remove lzo support.
17609 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
17610 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
17612 * kern/i386/pc/lzo1x.S: Remove.
17613 * kern/i386/pc/startup.S: Remove lzo support.
17614 * util/i386/pc/grub-mkimage.c: Likewise.
17616 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
17618 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
17619 * fs/xfs.c (grub_xfs_dir): Likewise.
17620 * fs/afs.c (grub_afs_dir): Likewise.
17621 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
17622 (grub_iso9660_open): Likewise.
17623 * fs/jfs.c (grub_jfs_open): Likewise.
17624 * fs/ext2.c (grub_ext2_dir): Likewise.
17625 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
17626 * script/sh/lexer.c (grub_script_yylex): Likewise.
17628 2009-07-16 Pavel Roskin <proski@gnu.org>
17630 * configure.ac: Never add "-c" to CFLAGS.
17632 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
17634 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
17635 grub_cv_cc_efiemu should be used.
17637 * configure.ac: Typo fixes.
17639 * kern/mm.c (grub_zalloc): New function.
17640 (grub_debug_zalloc): Likewise.
17641 * include/grub/mm.h: Declare grub_zalloc() and
17642 grub_debug_zalloc().
17643 * util/misc.c (grub_zalloc): New function.
17644 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
17645 instead of grub_malloc(), remove unneeded initializations.
17646 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
17647 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
17648 * commands/parttool.c (grub_cmd_parttool): Likewise.
17649 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17650 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
17651 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
17652 * disk/usbms.c (grub_usbms_finddevs): Likewise.
17653 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
17654 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
17655 (grub_cmd_efiemu_pnvram): Likewise.
17656 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
17657 * fs/iso9660.c (grub_iso9660_mount): Likewise.
17658 (grub_iso9660_iterate_dir): Likewise.
17659 * fs/jfs.c (grub_jfs_opendir): Likewise.
17660 * fs/ntfs.c (list_file): Likewise.
17661 (grub_ntfs_mount): Likewise.
17662 * kern/disk.c (grub_disk_open): Likewise.
17663 * kern/dl.c (grub_dl_load_core): Likewise.
17664 * kern/elf.c (grub_elf_file): Likewise.
17665 * kern/env.c (grub_env_context_open): Likewise.
17666 (grub_env_set): Likewise.
17667 (grub_env_set_data_slot): Likewise.
17668 * kern/file.c (grub_file_open): Likewise.
17669 * kern/fs.c (grub_fs_blocklist_open): Likewise.
17670 * loader/i386/multiboot.c (grub_module): Likewise.
17671 * loader/xnu.c (grub_xnu_create_key): Likewise.
17672 (grub_xnu_create_value): Likewise.
17673 * normal/main.c (grub_normal_add_menu_entry): Likewise.
17674 (read_config_file): Likewise.
17675 * normal/menu_entry.c (make_screen): Likewise.
17676 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17677 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
17678 * script/sh/script.c (grub_script_parse): Likewise.
17679 * video/bitmap.c (grub_video_bitmap_create): Likewise.
17680 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17681 * video/readers/png.c (grub_png_output_byte): Likewise.
17682 (grub_video_reader_png): Likewise.
17684 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17686 Enable all targets that can be built by default
17688 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
17689 grub-mkfont and grub-fstest if they can be built
17691 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17693 Fix hang and segmentation fault in grub-emu-usb
17695 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
17696 * util/usb.c (grub_libusb_devices): likewise
17697 (grub_libusb_init): rename to ...
17698 (GRUB_MOD_INIT (libusb)):...this
17699 (grub_libusb_fini): rename to ..
17700 (GRUB_MOD_FINI (libusb)):...this
17701 * disk/usbms.c (grub_usbms_transfer): fix retry logic
17702 * include/grub/disk.h (grub_raid_init): removed, it's useless
17703 (grub_raid_fini): likewise
17704 (grub_lvm_init): likewise
17705 (grub_lvm_fini): likewise
17706 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
17709 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17713 * Makefile.in (LIBUSB): new macro
17714 * genmk.rb (Utility/print_tail): new method
17715 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
17716 (top level): call util.print_tail at the end.
17718 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17720 Make FreeBSD accept zpool.cache
17722 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
17723 type is /boot/zfs/zpool.cache
17725 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17729 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
17730 correct wrong typedef
17731 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
17733 2009-07-15 Pavel Roskin <proski@gnu.org>
17735 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
17736 * kern/disk.c (struct grub_disk_cache): Likewise.
17738 * commands/probe.c (options): Typo fix.
17740 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
17741 Increase to 0x5a to accommodate FAT32. Adjust other offsets
17743 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
17745 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
17746 the end of "Error" to make the message more readable.
17748 * boot/i386/pc/boot.S (kernel_segment): Remove.
17749 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
17752 * boot/i386/pc/boot.S (boot_version): Remove.
17753 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17756 * include/grub/i386/pc/boot.h: Sort all offsets.
17757 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
17758 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
17759 * boot/i386/pc/boot.S: Assert location of every offset listed in
17760 include/grub/i386/pc/boot.h.
17762 2009-07-13 Pavel Roskin <proski@gnu.org>
17764 * include/grub/i386/coreboot/machine.h: Rename
17765 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
17766 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
17767 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
17769 * kern/dl.c: Force native word size to suppress warnings when
17770 compiling grub-emu.
17772 * kern/device.c (grub_device_iterate): Change struct part_ent to
17773 hold the name, not a pointer to it. Use one grub_malloc() per
17774 partition, not two. Free partition_name if grub_malloc() fails.
17775 Set ents to NULL only before grub_partition_iterate() is called.
17777 2009-07-11 Bean <bean123ch@gmail.com>
17779 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
17782 2009-07-10 Bean <bean123ch@gmail.com>
17783 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
17785 * kern/ieee1275/openfw.c (grub_children_iterate)
17786 (grub_devalias_iterate): Fix size evaluation for property or path
17787 strings, which was broken since r2132.
17789 2009-07-07 Pavel Roskin <proski@gnu.org>
17791 * commands/search.c (search_file): Merge into ...
17792 (search_fs): ... this. Accept search type as argument.
17793 (grub_cmd_search): Pass search type to search_fs().
17795 * include/grub/util/console.h: New file.
17796 * util/console.c: Use it instead of grub/machine/console.h.
17797 * util/grub-emu.c: Likewise.
17799 * lib/arg.c (find_long_option): Remove.
17800 (find_long): Add `len' argument, make `s' const char *.
17801 (grub_arg_parse): Parse long options in place, not in a
17804 2009-07-06 Pavel Roskin <proski@gnu.org>
17806 * commands/search.c (search_fs): Fix potential NULL pointer
17809 * commands/search.c (search_fs): Replace QUID macro with quid_fn
17812 2009-07-06 Daniel Mierswa <impulze@impulze.org>
17814 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
17817 2009-07-05 Pavel Roskin <proski@gnu.org>
17819 * include/grub/i386/linux.h (struct linux_kernel_params):
17820 Restore padding3, it's still needed.
17822 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
17824 * util/osdetect.lua: Likewise.
17826 2009-07-05 Bean <bean123ch@gmail.com>
17828 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
17830 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
17831 (grub_lua_getenv): Likewise.
17832 (grub_lua_setenv): Likewise.
17833 (save_errno): New function.
17834 (push_result): Likewise.
17835 (grub_lua_enum_device): Likewise.
17836 (grub_lua_enum_file): Likewise.
17837 (grub_lua_file_open): Likewise.
17838 (grub_lua_file_close): Likewise.
17839 (grub_lua_file_seek): Likewise.
17840 (grub_lua_file_read): Likewise.
17841 (grub_lua_file_getline): Likewise.
17842 (grub_lua_file_getsize): Likewise.
17843 (grub_lua_file_getpos): Likewise.
17844 (grub_lua_file_eof): Likewise.
17845 (grub_lua_file_exist): Likewise.
17846 (grub_lua_add_menu): Likewise.
17848 * script/lua/grub_lua.h (isupper): New inline function.
17849 (islower): Likewise.
17850 (ispunct): Likewise.
17851 (isxdigit): Likewise.
17852 (strcspn): Change to normal function.
17853 (strpbkr): New function declaration.
17854 (memchr): Likewise.
17856 * script/lua/grub_main.c (scan_str): New function.
17857 (strcspn): Likewise.
17858 (strpbrk): Likewise.
17859 (memchr): Likewise.
17861 * script/lua/linit.c (lualibs): Enable the string library.
17863 * util/osdetect.lua: New file.
17865 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
17867 * include/grub/i386/linux.h (struct linux_kernel_params): Add
17868 `capabilities' member.
17870 2009-07-02 Pavel Roskin <proski@gnu.org>
17872 * genparttoollist.sh: Add missing newline at the end.
17874 2009-07-01 Pavel Roskin <proski@gnu.org>
17876 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
17878 * util/hostdisk.c (open_device): Remove `const' from
17879 `sysctl_size', as sysctlbyname() can change it (in this case it
17880 doesn't actually happen).
17882 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
17883 using signed long int constants.
17885 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
17886 constant to avoid a warning on FreeBSD.
17888 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
17891 * Makefile.in: Install include/grub/machine symlink.
17893 * Makefile.in: When installing symlinks, use "cp -fR", which
17894 works on FreeBSD and MacOSX.
17895 From Yves Blusseau <cl7m42e02@sneakemail.com>
17897 * kern/dl.c (grub_dl_resolve_symbol): Make static.
17898 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
17900 * util/misc.c: Move grub_reboot() and grub_halt() ...
17901 * util/grub-emu.c: ... here. Make main_env static.
17902 * include/grub/util/misc.h: Remove main_env.
17904 * kern/mm.c: Use correct format to print size_t.
17906 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
17907 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
17908 * kern/powerpc/dl.c: Likewise.
17909 * kern/sparc64/dl.c: Likewise.
17910 * kern/x86_64/dl.c: Likewise.
17912 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17914 Fix grub-emu build on sparc64-ieee1275.
17916 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
17917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
17919 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17921 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
17922 (grub_reboot, grub_halt): New functions.
17924 * util/i386/pc/misc.c: Delete. Update all users.
17925 * util/sparc64/ieee1275/misc.c: Likewise.
17926 * util/powerpc/ieee1275/misc.c: Likewise.
17928 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17930 * conf/i386.rmk (setjmp_mod_SOURCES)
17931 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
17932 * conf/common.rmk (setjmp_mod_SOURCES)
17933 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
17934 to use $(target_cpu).
17935 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
17936 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
17937 * conf/powerpc-ieee1275.rmk: Likewise.
17938 * conf/sparc64-ieee1275.rmk: Likewise.
17940 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
17941 $(target_cpu) for kern/$(target_cpu)/dl.c.
17942 * conf/i386-efi.rmk: Likewise.
17943 * conf/i386-ieee1275.rmk: Likewise.
17944 * conf/x86_64-efi.rmk: Likewise.
17945 * conf/i386-coreboot.rmk: Likewise.
17946 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
17947 $(target_cpu) for kern/$(target_cpu)/dl.c and for
17948 kern/$(target_cpu)/cache.S.
17949 * conf/sparc64-ieee1275.rmk: Likewise.
17951 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17953 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
17954 type to `grub_uint8_t', and adjust `padding9' accordingly.
17956 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
17958 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
17960 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
17961 assembly in final jump, using register constraints.
17963 (grub_linux_boot): For text mode, initialize `have_vga' using
17964 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
17966 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
17967 right before the final jump.
17969 Set `video_mode' to 0x3.
17971 Document initialization of `video_page', `video_mode' and
17974 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
17976 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
17977 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
17978 and set GRUB_LINUX_FLAG_QUIET appropriately.
17980 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
17982 Fix build on Debian / sparc.
17984 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
17986 2009-06-28 Pavel Roskin <proski@gnu.org>
17988 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
17991 * util/grub.d/10_linux.in: Match SUSE style initrd names.
17993 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
17995 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
17998 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18002 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
18003 file can't be opened. grub_file_open() is already supposed to set
18004 grub_errno / grub_errmsg appropriately.
18005 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18007 2009-06-27 Pavel Roskin <proski@gnu.org>
18008 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18010 * include/grub/dl.h: Include grub/elf.h.
18011 (struct grub_dl): Add symtab field.
18012 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
18013 GRUB_MODULES_MACHINE_READONLY.
18014 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
18015 of the header for read-only modules.
18016 (grub_dl_unload): Free mod->symtab for read-only modules.
18017 * kern/i386/dl.c: Use mod->symtab.
18018 * kern/powerpc/dl.c: Likewise.
18019 * kern/sparc64/dl.c: Likewise.
18020 * kern/x86_64/dl.c: Likewise.
18022 * conf/i386-qemu.rmk: New file.
18023 * kern/i386/qemu/startup.S: Likewise.
18024 * kern/i386/qemu/mmap.c: Likewise.
18025 * boot/i386/qemu/boot.S: Likewise.
18026 * include/grub/i386/qemu/time.h: Likewise.
18027 * include/grub/i386/qemu/serial.h: Likewise.
18028 * include/grub/i386/qemu/kernel.h: Likewise.
18029 * include/grub/i386/qemu/console.h: Likewise.
18030 * include/grub/i386/qemu/boot.h: Likewise.
18031 * include/grub/i386/qemu/init.h: Likewise.
18032 * include/grub/i386/qemu/machine.h: Likewise.
18033 * include/grub/i386/qemu/loader.h: Likewise.
18034 * include/grub/i386/qemu/memory.h: Likewise.
18036 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
18037 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
18038 [qemu] (pkglib_IMAGES): Add `boot.img'.
18039 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
18040 [qemu] (boot_img_FORMAT): New variables.
18041 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
18042 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
18043 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
18044 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18045 [qemu] (kernel_img_FORMAT): New variables.
18047 * configure.ac: Recognise `i386-qemu'.
18049 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
18050 (for no compression).
18051 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
18052 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
18053 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
18054 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
18057 2009-06-27 Pavel Roskin <proski@gnu.org>
18059 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
18061 * efiemu/prepare32.c: Likewise.
18062 * efiemu/prepare64.c: Likewise.
18064 2009-06-26 Pavel Roskin <proski@gnu.org>
18066 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
18067 * include/grub/elf.h: Define symbols without "32" or "64" based
18068 on GRUB_TARGET_WORDSIZE.
18069 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
18070 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
18072 * efiemu/loadcore64.c: Likewise.
18073 * loader/i386/bsd32.c: Likewise.
18074 * loader/i386/bsd64.c: Likewise.
18075 * kern/dl.c: Remove own ELF definitions.
18076 * util/i386/efi/grub-mkimage.c: Likewise.
18078 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
18080 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
18081 segment 0x0 unconditionally, because the reference generated by
18082 GAS is an absolute address.
18084 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18086 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
18087 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
18089 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18091 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
18092 indexes. Check for -f explicitly.
18093 (search_file): Improve error message.
18094 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
18096 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18098 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
18099 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
18101 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18103 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
18104 * conf/i386-ieee1275.rmk: Likewise.
18105 * conf/i386-coreboot.rmk: Likewise.
18107 * kern/i386/pc/startup.S (grub_stop): Remove function.
18108 * kern/i386/ieee1275/startup.S: Likewise.
18109 * kern/i386/coreboot/startup.S: Likewise.
18110 * kern/i386/misc.S (grub_stop): New function.
18112 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18114 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
18115 * kern/i386/realmode.S (real_to_prot): ... to here.
18117 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18119 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
18121 (kernel_elf_SOURCES): Rename to ...
18122 (kernel_img_SOURCES): ... this.
18123 (kernel_elf_HEADERS): Rename to ...
18124 (kernel_img_HEADERS): ... this. Update all users.
18125 (kernel_elf_ASFLAGS): Rename to ...
18126 (kernel_img_ASFLAGS): ... this.
18127 (kernel_elf_CFLAGS): Rename to ...
18128 (kernel_img_CFLAGS): ... this.
18129 (kernel_elf_LDFLAGS): Rename to ...
18130 (kernel_img_LDFLAGS): ... this.
18131 * conf/i386-coreboot.rmk: Likewise.
18132 * conf/powerpc-ieee1275.rmk: Likewise.
18134 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
18137 2009-06-21 Pavel Roskin <proski@gnu.org>
18139 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
18140 to match nested functions.
18141 * loader/sparc64/ieee1275/linux.c: Likewise.
18143 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
18145 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18147 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
18148 all i386 platforms.
18150 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18152 Fix asm file handling on ELF, and remove workarounds.
18154 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
18155 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
18156 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
18157 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
18159 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
18161 Load BSD ELF modules
18163 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
18164 and loader/i386/bsd64.c
18165 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
18166 (FREEBSD_MODTYPE_ELF_MODULE): New definition
18167 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
18168 (grub_freebsd_load_elfmodule32): New declaration
18169 (grub_freebsd_load_elfmoduleobj64): Likewise
18170 (grub_freebsd_load_elf_meta32): Likewise
18171 (grub_freebsd_load_elf_meta64): Likewise
18172 (grub_freebsd_add_meta): Likewise
18173 (grub_freebsd_add_meta_module): Likewise
18174 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
18175 (grub_freebsd_add_meta_module): Likewise and move module-specific
18176 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
18177 (grub_cmd_freebsd): Add elf-kernel specific parts
18178 based on grub_freebsd_add_meta_module
18179 (grub_cmd_freebsd_module): Add type parsing moved from
18180 grub_freebsd_add_meta_module
18181 (grub_cmd_freebsd_module_elf): New function
18182 (cmd_freebsd_module_elf): New variable
18183 (GRUB_MOD_INIT): Register freebsd_module_elf
18184 * loader/i386/bsd32.c: New file
18185 * loader/i386/bsd64.c: Likewise
18186 * loader/i386/bsdXX.c: Likewise
18187 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
18188 (grub_elf64_load): Likewise
18189 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
18191 (grub_elf64_load_hook_t): Likewise
18193 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
18195 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
18197 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
18198 don't write a menu entry for recovery mode.
18200 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18202 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
18203 after it's no longer needed.
18205 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18207 * include/grub/i386/loader.h (grub_linux_prot_size)
18208 (grub_linux_tmp_addr, grub_linux_real_addr)
18209 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
18210 GRUB_MACHINE_PCBIOS.
18211 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
18212 common grub_util_info() call to ...
18213 (generate_image): ... here.
18214 Fix use of uninitialized memory, comparison of signed with
18215 unsigned integers and memory leak.
18216 Remove bogus module address message.
18218 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18220 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
18222 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
18224 2009-06-19 Pavel Roskin <proski@gnu.org>
18226 * configure.ac: Remove stray AC_MSG_CHECKING.
18228 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
18230 * disk/scsi.c (grub_scsi_open): use continue instead of big if
18232 2009-06-18 Pavel Roskin <proski@gnu.org>
18234 * conf/common.rmk: Add fs_file.mod.
18235 * disk/fs_file.c: New file.
18236 * include/grub/disk.h (enum grub_disk_dev_id): Add
18237 GRUB_DISK_DEVICE_FILE_ID.
18239 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18241 Fix build with Apple's toolchain. Part 2
18243 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
18246 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18248 Fix build with Apple's toolchain. Part 1
18250 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
18252 * configure.ac: remove a leftover AC_MSG_RESULT
18253 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
18256 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18260 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
18261 (decomp_block): initialize ch
18262 use grub_memcpy instead of memcpy
18264 2009-06-17 Pavel Roskin <proski@gnu.org>
18266 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
18267 version, use declarations needed to use vga_text as the startup
18270 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
18271 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
18273 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
18274 and grub_at_keyboard_fini(), it's done on module load and
18277 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
18279 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
18280 file can't be found.
18281 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18283 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18285 Fix newline handling
18287 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
18288 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
18289 (grub_script_yylex): don't segfault on unterminated script
18290 newline terminates command and variable
18292 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18294 avoid double grub_adjust_range call. Bug reported by David Simner
18296 * kern/disk.c (grub_disk_write): change to raw disk access before
18299 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
18301 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
18302 spaces, for the benefit of help2man.
18303 * util/i386/efi/grub-mkimage.c (usage): Likewise.
18305 2009-06-16 Pavel Roskin <proski@gnu.org>
18307 * kern/i386/halt.c: Include grub/machine/init.h.
18308 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
18310 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
18312 * util/grub.d/30_os-prober.in: Use ${root} in the generated
18313 drivemap menuentry.
18315 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
18317 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
18320 2009-06-16 Pavel Roskin <proski@gnu.org>
18322 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
18323 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
18324 save %dx, we only need %dl and we never change it.
18325 * boot/i386/pc/cdboot.S: Don't set the root drive.
18326 * boot/i386/pc/pxeboot.S: Likewise.
18327 * include/grub/i386/pc/boot.h: Remove
18328 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
18329 GRUB_BOOT_MACHINE_DRIVE_CHECK.
18330 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
18331 * kern/i386/pc/init.c (make_install_device): Remove references
18332 to grub_root_drive.
18333 * kern/i386/pc/startup.S: Likewise.
18334 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
18336 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18340 * commands/xnu_uuid.c: new file
18341 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
18342 (xnu_uuid_mod_SOURCES): new variable
18343 (xnu_uuid_mod_CFLAGS): likewise
18344 (xnu_uuid_mod_LDFLAGS): likewise
18345 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18346 * conf/i386-ieee1275.rmk: likewise
18347 * conf/i386-pc.rmk: likewise
18348 * conf/powerpc-ieee1275.rmk: likewise
18349 * conf/sparc64-ieee1275.rmk: likewise
18350 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
18352 2009-06-16 Pavel Roskin <proski@gnu.org>
18354 * configure.ac: Avoid '==' in test command, it's not portable.
18356 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18360 * commands/probe.c: new file
18361 * conf/common.rmk (pkglib_MODULES): add probe.mod
18362 (probe_mod_SOURCES): new variable
18363 (probe_mod_CFLAGS): likewise
18364 (probe_mod_LDFLAGS): likewise
18365 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18366 * conf/i386-ieee1275.rmk: likewise
18367 * conf/i386-pc.rmk: likewise
18368 * conf/powerpc-ieee1275.rmk: likewise
18369 * conf/sparc64-ieee1275.rmk: likewise
18371 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
18373 Fix handling of string like \"hello\" and "a
18376 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
18377 (grub_script_yylex): fix parsing of quoting, escaping and newline
18379 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
18381 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
18384 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
18386 * util/grub-mkconfig.in: Fix parsing of --output option.
18388 2009-06-12 Pavel Roskin <proski@gnu.org>
18390 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
18391 genmk.rb don't need to be generated or installed.
18393 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
18395 * commands/i386/pc/drivemap_int13h.S: add more comments
18397 2009-06-11 Pavel Roskin <proski@gnu.org>
18399 * Makefile.in (uninstall): Uninstall manuals.
18401 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
18402 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
18403 and update-grub_lib in two places.
18404 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
18406 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
18407 a compiler warning.
18409 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
18410 `entry_lo' to fix variable shadowing.
18412 2009-06-11 Christian Franke <franke@computer.org>
18414 * kern/misc.c (__enable_execute_stack): Add missing return type
18415 to prevent gcc warning.
18417 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
18419 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
18421 2009-06-11 Pavel Roskin <proski@gnu.org>
18423 * Makefile.in: Don't rely on any scripts being executable.
18424 Always use $(SHELL) to run shell scripts.
18426 * configure.ac: Always define ___main if using -nostdlib. This
18427 fixes tests on Cygwin.
18429 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
18433 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
18434 is in bytes and not in blocks
18436 2009-06-11 Pavel Roskin <proski@gnu.org>
18438 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
18441 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
18443 * util/grub.d/30_os-prober.in: Fix a comment. Source
18444 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
18445 to set the root device. Place drivemap command in the generated
18448 2009-06-11 Pavel Roskin <proski@gnu.org>
18450 * configure.ac: Remove host_m32. Issues with 64-bit utilities
18451 have long been resolved.
18453 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
18455 * util/grub.d/10_linux.in: Capitalise "Linux".
18457 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
18459 2009-06-11 Pavel Roskin <proski@gnu.org>
18461 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
18462 fix a gcc warning and ensure that the function won't ever exit.
18464 * kern/i386/ieee1275/init.c: Add missing prototype for
18465 grub_stop_floppy().
18467 * loader/ieee1275/multiboot2.c [__i386__]: Include
18468 grub/cpu/multiboot.h.
18470 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
18471 casts to short - they are not portable and cause warnings. Fix
18472 use of uninitialized values in input_buf. Use ARRAY_SIZE.
18474 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
18478 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
18480 (grub_get_root_biosnumber_saved): new variable
18481 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
18482 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
18483 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
18484 %dx after the call if necessary
18485 * conf/common.rmk (pkglib_MODULES): remove boot.mod
18486 (boot_mod_SOURCES): remove
18487 (boot_mod_CFLAGS): remove
18488 (boot_mod_LDFLAGS): remove
18489 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
18490 (boot_mod_SOURCES): new variable
18491 (boot_mod_CFLAGS): likewise
18492 (boot_mod_LDFLAGS): likewise
18493 * conf/i386-efi.rmk: likewise
18494 * conf/i386-ieee1275.rmk: likewise
18495 * conf/i386-pc.rmk: likewise
18496 * conf/powerpc-ieee1275.rmk: likewise
18497 * conf/sparc64-ieee1275.rmk: likewise
18498 * conf/x86_64-efi.rmk: likewise
18499 * include/grub/i386/pc/biosnum.h: new file
18500 * lib/i386/pc/biosnum.c: likewise
18501 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
18502 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
18503 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
18505 2009-06-10 Pavel Roskin <proski@gnu.org>
18507 * io/gzio.c (test_header): Don't reuse one buffer for all data.
18508 Use separate variables. Read only the file size at the end, but
18509 not the checksum that we don't use.
18511 * kern/file.c (grub_file_read): Use void pointer for the buffer.
18512 Adjust all callers.
18514 * kern/ieee1275/openfw.c: Remove libc includes.
18515 * kern/ieee1275/cmain.c: Likewise.
18516 * include/grub/ieee1275/ieee1275.h: Likewise.
18518 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
18521 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
18523 * Makefile.in: Remove all trailing whitespace.
18524 * conf/i386-pc.rmk: Likewise.
18525 * conf/powerpc-ieee1275.rmk: Likewise.
18526 * conf/sparc64-ieee1275.rmk: Likewise.
18527 * docs/grub.texi: Likewise.
18528 * docs/texinfo.tex: Likewise.
18529 * disk/fs_uuid.c: Likewise.
18530 * disk/lvm.c: Likewise.
18531 * disk/scsi.c: Likewise.
18532 * disk/ata.c: Likewise.
18533 * disk/ieee1275/ofdisk.c: Likewise.
18534 * disk/i386/pc/biosdisk.c: Likewise.
18535 * disk/host.c: Likewise.
18536 * disk/raid.c: Likewise.
18537 * disk/efi/efidisk.c: Likewise.
18538 * disk/usbms.c: Likewise.
18539 * disk/memdisk.c: Likewise.
18540 * disk/loopback.c: Likewise.
18541 * kern/powerpc/dl.c: Likewise.
18542 * kern/device.c: Likewise.
18543 * kern/dl.c: Likewise.
18544 * kern/sparc64/dl.c: Likewise.
18545 * kern/ieee1275/ieee1275.c: Likewise.
18546 * kern/term.c: Likewise.
18547 * kern/fs.c: Likewise.
18548 * kern/i386/dl.c: Likewise.
18549 * kern/i386/pc/startup.S: Likewise.
18550 * kern/i386/pc/init.c: Likewise.
18551 * kern/i386/pc/mmap.c: Likewise.
18552 * kern/i386/pc/lzo1x.S: Likewise.
18553 * kern/i386/ieee1275/init.c: Likewise.
18554 * kern/i386/realmode.S: Likewise.
18555 * kern/i386/tsc.c: Likewise.
18556 * kern/partition.c: Likewise.
18557 * kern/corecmd.c: Likewise.
18558 * kern/file.c: Likewise.
18559 * kern/efi/efi.c: Likewise.
18560 * kern/efi/init.c: Likewise.
18561 * kern/efi/mm.c: Likewise.
18562 * kern/main.c: Likewise.
18563 * kern/err.c: Likewise.
18564 * kern/env.c: Likewise.
18565 * kern/disk.c: Likewise.
18566 * kern/generic/millisleep.c: Likewise.
18567 * kern/generic/rtc_get_time_ms.c: Likewise.
18568 * kern/misc.c: Likewise.
18569 * kern/parser.c: Likewise.
18570 * genmk.rb: Likewise.
18571 * configure.ac: Likewise.
18572 * boot/i386/pc/diskboot.S: Likewise.
18573 * boot/i386/pc/pxeboot.S: Likewise.
18574 * boot/i386/pc/boot.S: Likewise.
18575 * boot/i386/pc/lnxboot.S: Likewise.
18576 * boot/i386/pc/cdboot.S: Likewise.
18577 * parttool/pcpart.c: Likewise.
18578 * video/readers/tga.c: Likewise.
18579 * video/video.c: Likewise.
18580 * video/bitmap.c: Likewise.
18581 * lib/envblk.c: Likewise.
18582 * lib/i386/setjmp.S: Likewise.
18583 * fs/xfs.c: Likewise.
18584 * fs/afs.c: Likewise.
18585 * fs/fat.c: Likewise.
18586 * fs/ntfs.c: Likewise.
18587 * fs/udf.c: Likewise.
18588 * fs/affs.c: Likewise.
18589 * fs/iso9660.c: Likewise.
18590 * fs/hfs.c: Likewise.
18591 * fs/fshelp.c: Likewise.
18592 * fs/ext2.c: Likewise.
18593 * fs/jfs.c: Likewise.
18594 * fs/reiserfs.c: Likewise.
18595 * fs/hfsplus.c: Likewise.
18596 * fs/minix.c: Likewise.
18597 * fs/cpio.c: Likewise.
18598 * fs/sfs.c: Likewise.
18599 * fs/ufs.c: Likewise.
18600 * efiemu/prepare.c: Likewise.
18601 * efiemu/loadcore_common.c: Likewise.
18602 * efiemu/runtime/efiemu.sh: Likewise.
18603 * efiemu/runtime/efiemu.S: Likewise.
18604 * efiemu/runtime/efiemu.c: Likewise.
18605 * efiemu/pnvram.c: Likewise.
18606 * efiemu/main.c: Likewise.
18607 * efiemu/i386/pc/cfgtables.c: Likewise.
18608 * efiemu/i386/loadcore64.c: Likewise.
18609 * efiemu/i386/loadcore32.c: Likewise.
18610 * efiemu/loadcore.c: Likewise.
18611 * efiemu/symbols.c: Likewise.
18612 * efiemu/mm.c: Likewise.
18613 * include/grub/autoefi.h: Likewise.
18614 * include/grub/datetime.h: Likewise.
18615 * include/grub/term.h: Likewise.
18616 * include/grub/hfs.h: Likewise.
18617 * include/grub/lvm.h: Likewise.
18618 * include/grub/i386/tsc.h: Likewise.
18619 * include/grub/i386/linux.h: Likewise.
18620 * include/grub/i386/xnu.h: Likewise.
18621 * include/grub/i386/efiemu.h: Likewise.
18622 * include/grub/i386/pc/biosdisk.h: Likewise.
18623 * include/grub/i386/pc/memory.h: Likewise.
18624 * include/grub/i386/pc/vbe.h: Likewise.
18625 * include/grub/parttool.h: Likewise.
18626 * include/grub/video.h: Likewise.
18627 * include/grub/memory.h: Likewise.
18628 * include/grub/fs.h: Likewise.
18629 * include/grub/partition.h: Likewise.
18630 * include/grub/xnu.h: Likewise.
18631 * include/grub/efi/api.h: Likewise.
18632 * include/grub/efi/pe32.h: Likewise.
18633 * include/grub/efi/memory.h: Likewise.
18634 * include/grub/multiboot.h: Likewise.
18635 * include/grub/usbdesc.h: Likewise.
18636 * include/grub/multiboot2.h: Likewise.
18637 * include/grub/acpi.h: Likewise.
18638 * include/grub/efiemu/efiemu.h: Likewise.
18639 * include/grub/disk.h: Likewise.
18640 * include/grub/ieee1275/ieee1275.h: Likewise.
18641 * include/grub/net.h: Likewise.
18642 * include/grub/machoload.h: Likewise.
18643 * include/grub/macho.h: Likewise.
18644 * include/multiboot.h: Likewise.
18645 * genmoddep.awk: Likewise.
18646 * normal/main.c: Likewise.
18647 * normal/menu_entry.c: Likewise.
18648 * normal/menu_viewer.c: Likewise.
18649 * normal/completion.c: Likewise.
18650 * normal/cmdline.c: Likewise.
18651 * normal/misc.c: Likewise.
18652 * normal/datetime.c: Likewise.
18653 * bus/usb/usbtrans.c: Likewise.
18654 * bus/usb/ohci.c: Likewise.
18655 * bus/usb/uhci.c: Likewise.
18656 * bus/usb/usb.c: Likewise.
18657 * mmap/efi/mmap.c: Likewise.
18658 * mmap/i386/pc/mmap_helper.S: Likewise.
18659 * mmap/i386/pc/mmap.c: Likewise.
18660 * mmap/i386/mmap.c: Likewise.
18661 * mmap/i386/uppermem.c: Likewise.
18662 * mmap/mmap.c: Likewise.
18663 * commands/acpi.c: Likewise.
18664 * commands/echo.c: Likewise.
18665 * commands/blocklist.c: Likewise.
18666 * commands/loadenv.c: Likewise.
18667 * commands/usbtest.c: Likewise.
18668 * commands/boot.c: Likewise.
18669 * commands/parttool.c: Likewise.
18670 * commands/search.c: Likewise.
18671 * commands/cat.c: Likewise.
18672 * commands/i386/pc/play.c: Likewise.
18673 * commands/i386/pc/drivemap.c: Likewise.
18674 * commands/i386/pc/vbeinfo.c: Likewise.
18675 * commands/i386/pc/acpi.c: Likewise.
18676 * commands/i386/pc/vbetest.c: Likewise.
18677 * commands/ls.c: Likewise.
18678 * commands/cmp.c: Likewise.
18679 * commands/test.c: Likewise.
18680 * commands/efi/acpi.c: Likewise.
18681 * commands/gptsync.c: Likewise.
18682 * commands/help.c: Likewise.
18683 * partmap/amiga.c: Likewise.
18684 * partmap/apple.c: Likewise.
18685 * partmap/acorn.c: Likewise.
18686 * partmap/pc.c: Likewise.
18687 * partmap/sun.c: Likewise.
18688 * partmap/gpt.c: Likewise.
18689 * script/sh/lexer.c: Likewise.
18690 * script/sh/function.c: Likewise.
18691 * font/font.c: Likewise.
18692 * font/font_cmd.c: Likewise.
18693 * loader/powerpc/ieee1275/linux.c: Likewise.
18694 * loader/efi/chainloader.c: Likewise.
18695 * loader/multiboot_loader.c: Likewise.
18696 * loader/macho.c: Likewise.
18697 * loader/i386/multiboot.c: Likewise.
18698 * loader/i386/linux.c: Likewise.
18699 * loader/i386/pc/linux.c: Likewise.
18700 * loader/i386/pc/multiboot2.c: Likewise.
18701 * loader/i386/pc/chainloader.c: Likewise.
18702 * loader/i386/pc/xnu.c: Likewise.
18703 * loader/i386/bsd_trampoline.S: Likewise.
18704 * loader/i386/efi/linux.c: Likewise.
18705 * loader/i386/multiboot_elfxx.c: Likewise.
18706 * loader/i386/bsd_helper.S: Likewise.
18707 * loader/i386/bsd.c: Likewise.
18708 * loader/i386/linux_trampoline.S: Likewise.
18709 * loader/i386/xnu_helper.S: Likewise.
18710 * loader/i386/xnu.c: Likewise.
18711 * loader/i386/bsd_pagetable.c: Likewise.
18712 * loader/i386/multiboot_helper.S: Likewise.
18713 * loader/xnu.c: Likewise.
18714 * loader/xnu_resume.c: Likewise.
18715 * io/gzio.c: Likewise.
18716 * term/efi/console.c: Likewise.
18717 * term/terminfo.c: Likewise.
18718 * term/ieee1275/ofconsole.c: Likewise.
18719 * term/i386/pc/serial.c: Likewise.
18720 * term/i386/pc/vesafb.c: Likewise.
18721 * term/i386/pc/vga.c: Likewise.
18722 * term/usb_keyboard.c: Likewise.
18723 * term/gfxterm.c: Likewise.
18724 * aclocal.m4: Likewise.
18725 * util/lvm.c: Likewise.
18726 * util/grub.d/30_os-prober.in: Likewise.
18727 * util/grub.d/10_hurd.in: Likewise.
18728 * util/console.c: Likewise.
18729 * util/grub-macho2img.c: Likewise.
18730 * util/grub-probe.c: Likewise.
18731 * util/hostfs.c: Likewise.
18732 * util/i386/pc/grub-mkimage.c: Likewise.
18733 * util/i386/pc/grub-setup.c: Likewise.
18734 * util/i386/efi/grub-mkimage.c: Likewise.
18735 * util/grub-mkconfig.in: Likewise.
18736 * util/raid.c: Likewise.
18737 * util/resolve.c: Likewise.
18738 * util/grub-mkdevicemap.c: Likewise.
18739 * util/grub-emu.c: Likewise.
18740 * util/getroot.c: Likewise.
18741 * util/hostdisk.c: Likewise.
18742 * util/usb.c: Likewise.
18743 * util/grub-editenv.c: Likewise.
18744 * util/misc.c: Likewise.
18746 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
18748 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
18749 `genparttoollist.sh'.
18750 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
18751 Add `*.sh' to the list find searches for and change `mdate.sh'
18754 2009-06-10 Pavel Roskin <proski@gnu.org>
18756 * include/grub/multiboot2.h: Provide compatibility defines for
18758 * include/multiboot2.h: Include stdint.h only if needed, using
18760 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
18762 * loader/ieee1275/multiboot2.c: Likewise.
18763 * loader/multiboot2.c: Likewise.
18764 * loader/multiboot_loader.c: Likewise.
18766 * configure.ac: Use -nostdlib when probing for the target. It
18767 should not be required to have libc for the target.
18769 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
18770 they fail without libc headers for the target.
18771 * include/grub/powerpc/libgcc.h: Use weak attribute for all
18773 * include/grub/sparc64/libgcc.h: Likewise. Don't use
18774 preprocessor conditionals.
18776 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
18777 build system doesn't need to be aware of the tar.c internals.
18779 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
18781 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
18783 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
18785 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
18786 disk limit to 26 for IDE, Virtio, Xen and SCSI.
18788 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
18790 * util/i386/pc/grub-install.in: Change the error message if UUIDs
18791 aren't available if ata.mod gets used.
18793 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
18795 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
18796 initialising controller.
18797 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18799 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18801 * util/i386/pc/grub-install.in: Add a parameter --disk-module
18802 to choose between ata and biosdisk module on i386-pc.
18804 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
18806 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
18807 Subclass and Programming Interface fields in terms of the 3 byte
18808 Class Code register.
18809 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18811 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
18812 interface is OHCI. Add grub_dprintf for symmetry with
18814 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
18815 interface is UHCI. Add interf variable for programming
18816 interface. Print interface with class/subclass.
18818 * bus/usb/ohci.c: Set interf with correct field.
18820 * bus/usb/uhci.c: Remove unneeded doubled lines.
18821 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
18822 Remove whitespace inside comment.
18824 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
18826 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
18827 as fallback an equivalent option without depth.
18829 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
18831 Not fail if unable to retrieve C/H/S on LBA disks
18833 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
18834 if unable to retrieve C/H/S on LBA disks
18836 2009-06-08 Pavel Roskin <proski@gnu.org>
18838 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
18841 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18843 * Makefile.in (uninstall): Remove all $lib_DATA files.
18845 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
18847 Bugfix: install on partitionless device
18849 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
18852 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18854 * Makefile.in (uninstall): Remove all $include_DATA files.
18856 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18858 * commands/true.c: New file. Implement the true and false commands.
18859 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
18860 (true_mod_SOURCES): New variable.
18861 (true_mod_CFLAGS): Likewise.
18862 (true_mod_LDFLAGS): Likewise.
18864 2009-06-05 Colin D Bennett <colin@gibibit.com>
18866 Optimized font character lookup using binary search instead of linear
18867 search. Fonts now are required to have the character index ordered by
18870 * font/font.c (load_font_index): Verify that fonts have ordered
18872 (find_glyph): Use binary search instead of linear search to find a
18873 character in a font.
18875 2009-06-05 Michael Scherer <misc@mandriva.org>
18877 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
18878 uses case sensitive btree.
18879 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
18880 only for case insensitive filesystems.
18882 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
18884 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
18885 * conf/common.rmk (search_mod_CFLAGS): likewise
18887 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18889 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
18890 compensate a compiler bug
18892 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18894 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
18897 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18899 Definitions for creating asm symbols with Apple's CC
18901 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
18902 [APPLE_CC] (VARIABLE): likewise
18904 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18906 Disable lnxboot.img when compiled
18909 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
18910 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
18911 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
18912 [! APPLE_CC] (CODE_LENG): skip
18913 [! APPLE_CC] (setup_sects): likewise
18914 [! APPLE_CC]: skip filling
18916 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18918 Address in trampolines based on 32-bit registers when compiled
18921 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
18923 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
18925 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18927 Avoid aliases when compiling with Apple's CC for PCBIOS machine
18929 * kern/misc.c [APPLE_CC] (memcpy): new function
18930 [APPLE_CC] (memmove): likewise
18931 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
18932 (memcpy): define alias conditionally on !APPLE_CC
18935 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
18936 APPLE_CC are defined
18937 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
18938 (grub_assert_fail): make prototype conditional
18940 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18942 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
18944 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
18946 (CLEANFILES): add grub-macho2img
18947 (grub_macho2img_SOURCES): new variable
18948 * kern/i386/pc/startup.S (bss_start): new variable
18949 (bss_end): likewise
18950 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
18951 * util/grub-macho2img.c: new file
18953 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18955 Use objconv when compiling with Apple's CC
18957 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
18958 (efiemu64.o): likewise
18959 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
18960 when compiling with Apple's CC
18961 (efiemu64_s.o): likewise
18962 * configure.ac: check for objconv when compiling with Apple's CC
18963 * genmk.rb: use objconv for modules when compiled with Apple's CC
18965 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18967 Define segment as well as section when compiling with
18970 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
18971 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
18972 (efiemu_convert_pointer): likewise
18973 (efiemu_set_virtual_address_map): likewise
18974 (efiemu_convert_pointer): likewise
18975 (efiemu_getcrc32): likewise
18976 (init_crc32_table): likewise
18977 (reflect): likewise
18978 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
18979 (GRUB_MOD_DEP): likewise
18981 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18983 Allow a compilation without -mcmodel=large
18985 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
18986 when compiled without -mcmodel=large
18987 (filter_memory_map): remove memory post 4 GiB when compiled
18988 without -mcmodel=large
18989 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
18990 TARGET_CFLAGS when -mcmodel=large isn't supported
18992 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18994 Remove nested functions in efiemu core
18996 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
18998 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19000 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
19002 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
19004 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
19006 (grub_cpu_is_tsc_supported): likewise
19007 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
19009 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19011 Absolute addressing through constant with Apple's cc
19013 * kern/i386/pc/startup.S: Define necessary constants
19014 and address through it when using ABS with Apple's CC
19015 * boot/i386/pc/diskboot.S: likewise
19016 * boot/i386/pc/boot.S: likewise
19017 * boot/i386/pc/lnxboot.S: likewise
19018 * boot/i386/pc/cdboot.S: likewise
19019 * mmap/i386/pc/mmap_helper.S: likewise
19020 * commands/i386/pc/drivemap_int13h.S: likewise
19022 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19024 Check if compiler is apple cc
19026 * Makefile.in (ASFLAGS): new variable
19027 (TARGET_ASFLAGS): likewise
19028 (TARGET_MODULE_FORMAT): likewise
19029 (TARGET_APPLE_CC): likewise
19030 (OBJCONV): likewise
19031 (TARGET_IMG_CFLAGS): likewise
19032 (TARGET_CPPFLAGS): add includedir
19033 * configure.ac: call grub_apple_cc and grub_apple_target_cc
19034 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
19035 Check for linker script only if compiler isn't Apple's CC
19036 (TARGET_MODULE_FORMAT): set
19037 (TARGET_APPLE_CC): likewise
19038 (TARGET_ASFLAGS): likewise
19039 (ASFLAGS): likewise
19040 Check for objcopy only if compiler isn't Apple's CC
19041 Check for BSS symbol only if compiler isn't Apple's CC
19042 * genmk.rb: adapt nm options if we use Apple's utils
19043 * aclocal.m4 (grub_apple_cc): new test
19044 (grub_apple_target_cc): likewise
19046 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19048 Simplify sed expressions and improve awk
19050 * Makefile.in (install-local): simplify sed expression
19051 * gencmdlist.sh: likewise
19052 * genmoddep.awk: avoid adding module as a dependency of itself
19054 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19056 Add missing start symbols
19058 * boot/i386/pc/boot.S: add start
19059 * boot/i386/pc/pxeboot.S: likewise
19061 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19063 Fix wrong assumptions with grub-mkimage on EFI
19065 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
19066 (relocate_addresses): consider both r_addend and value at offset
19067 (make_mods_section): zerofill modinfo and header
19068 (convert_elf): write prefix here
19070 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19072 Use .asciz instead of .string
19074 * i386/pc/diskboot.S: use .asciz instead of .string
19075 * i386/pc/boot.S: likewise
19076 * include/grub/dl.h (GRUB_MOD_DEP): likewise
19077 (GRUB_MOD_NAME): likewise
19079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19083 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
19084 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
19085 (grub_video_setup): remove
19086 (grub_video_set_mode): new prototype
19087 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
19089 (linux_vesafb_res): compile only on PCBIOS
19090 (grub_linux_boot): support gfxpayload
19091 * loader/i386/pc/xnu.c (video_hook): new function
19092 (grub_xnu_set_video): support gfxpayload
19093 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
19094 (DEFAULT_VIDEO_HEIGHT): likewise
19095 (DEFAULT_VIDEO_FLAGS): likewise
19096 (DEFAULT_VIDEO_MODE): new definition
19097 (video_hook): new function
19098 (grub_gfxterm_init): use grub_video_set_mode
19099 * util/grub.d/30_os-prober.in: remove explicit modesetting before
19101 * video/video.c (grub_video_setup): removed
19102 (grub_video_set_mode): new function based on grub_gfxterm_init and
19105 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19107 Avoid calling biosdisk in drivemap
19109 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
19110 (revparse_biosdisk): likewise
19111 (list_mappings): derive name from id directly
19112 (grub_cmd_drivemap): use tryparse_diskstring
19114 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19118 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
19119 (grub_lexer_param): add tokenonhold
19120 (grub_script_create_cmdline): remove cmdline. All callers updated
19121 (grub_script_function_create): make functionname
19122 grub_script_arg. All callers updated
19123 (grub_script_execute_argument_to_string): new prototype
19124 * kern/parser.c (state_transitions): reorder
19125 (grub_parser_cmdline_state): fix a bug and make more compact
19126 * script/sh/execute.c (grub_script_execute_argument_to_string):
19128 (grub_script_execute_cmdline): use new format
19129 * script/sh/function.c (grub_script_function_create): make functionname
19130 grub_script_arg. All callers updated
19131 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
19132 (grub_script_yylex): remove
19133 (grub_script_yylex2): renamed to ...
19134 (grub_script_yylex): ...renamed
19135 parse the expressions like a${b}c
19136 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
19137 (GRUB_PARSER_TOKEN_VAR): remove
19138 (GRUB_PARSER_TOKEN_NAME): likewise
19139 ("if"): declare as typeless
19140 ("while"): likewise
19141 ("function"): likewise
19146 (argument): likewise
19147 (script): accept empty scripts and make exit on error
19148 (arguments): use GRUB_PARSER_TOKEN_ARG
19149 (function): likewise
19150 (command): move error handling to script
19151 (menuentry): move grub_script_lexer_ref before
19152 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
19153 argument. All callers updated
19155 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19157 Prevent GRUB from probing floppies during boot.
19159 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
19160 * commands/search.c (options): Add --no-floppy.
19161 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
19162 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
19163 --no-floppy when searching for UUIDs.
19165 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19167 Simplify the code duplication in commands/search.c.
19169 * commands/search.c (search_label, search_fs_uuid): Merge into ...
19170 (search_fs): ... this. Update all users.
19172 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
19174 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
19176 2009-05-28 Pavel Roskin <proski@gnu.org>
19178 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
19179 Remove the original symlink explicitly.
19181 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
19182 just one slash. That's how grub_fshelp_find_file() does it.
19184 2009-05-26 Pavel Roskin <proski@gnu.org>
19186 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
19189 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
19192 2009-05-25 Christian Franke <franke@computer.org>
19194 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
19196 (grub_atapi_identify): Add wait after drive select.
19197 (grub_ata_identify): Do more strict status register check before
19198 calling grub_atapi_identify (). Suppress error message if status
19199 register is 0x00 after command failure. Add status register
19200 check after PIO read to avoid bogus identify due to stuck DRQ.
19201 Thanks to Pavel Roskin for testing.
19202 (grub_device_initialize): Remove unsafe status register check.
19203 Thanks to 'phcoder' for problem report and patch.
19204 Prevent sign extension in debug message.
19206 2009-05-23 Colin D Bennett <colin@gibibit.com>
19208 Cleaned up `include/grub/normal.h'. Grouped prototypes by
19209 definition file, and functions defined in `normal/menu.c' have had
19210 their prototypes moved to `include/grub/menu.h' for consistency.
19212 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
19214 (grub_menu_get_entry): Likewise.
19215 (grub_menu_get_timeout): Likewise.
19216 (grub_menu_set_timeout): Likewise.
19217 (grub_menu_execute_entry): Likewise.
19218 (grub_menu_execute_with_fallback): Likewise.
19219 (grub_menu_entry_run): Likewise.
19221 * include/grub/normal.h: Re-ordered and grouped function
19222 prototypes by file that the function is defined in.
19223 (grub_menu_execute_callback): Removed; moved to menu.h.
19224 (grub_menu_get_entry): Likewise.
19225 (grub_menu_get_timeout): Likewise.
19226 (grub_menu_set_timeout): Likewise.
19227 (grub_menu_execute_entry): Likewise.
19228 (grub_menu_execute_with_fallback): Likewise.
19229 (grub_menu_entry_run): Likewise.
19230 (grub_menu_addentry): Renamed from this ...
19231 (grub_normal_add_menu_entry): ... to this.
19233 * normal/main.c (grub_menu_addentry): Renamed from this ...
19234 (grub_normal_add_menu_entry): ... to this.
19236 * script/sh/execute.c (grub_script_execute_menuentry): Update
19237 reference to renamed grub_menu_addentry function.
19239 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
19241 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
19243 2009-05-22 Pavel Roskin <proski@gnu.org>
19245 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
19246 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
19247 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
19248 compiling for the i386 targets, but not for the utilities.
19250 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
19252 (grub_root_drive): Likewise.
19253 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
19255 (grub_root_drive): Change size to byte.
19256 (grub_start_addr): Remove.
19257 (grub_end_addr): Likewise.
19258 (grub_apm_bios_info): Likewise.
19260 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
19262 * normal/i386: Remove.
19263 * normal/powerpc: Likewise.
19264 * normal/sparc64: Likewise.
19265 * normal/x86_64: Likewise.
19267 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19269 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
19270 * loader/i386/linux_trampoline.S: Fix indentation
19271 * loader/i386/xnu_helper.S: Likewise
19273 2009-05-18 Colin D Bennett <colin@gibibit.com>
19275 Display error messages when parsing a Lua statement fails.
19276 Previously, executing a syntactically invalid statement like
19277 ")foo" or "bar;" would silently fail.
19279 * script/lua/grub_main.c (handle_lua_error): New function.
19280 (grub_lua_parse_line): Improved reporting of Lua parser and
19283 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19285 Remove -Werror which causes build to fail on some systems
19287 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
19288 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
19289 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
19291 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19293 trampoline for linux on 64-bit platform
19295 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
19296 loader/i386/efi/linux_trampoline.S
19297 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
19299 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
19301 * loader/i386/linux_trampoline.S: moved here
19302 * loader/i386/efi/linux.c (allocate_pages): reserve space for
19304 (jumpvector): removed
19305 (grub_linux_trampoline_start): new declaration
19306 (grub_linux_trampoline_end): likewise
19307 (grub_linux_boot): use trampoline when on 64-bit platform
19308 * loader/i386/linux.c: likewise
19310 2009-05-16 Pavel Roskin <proski@gnu.org>
19312 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
19313 const to avoid a warning.
19314 (grub_lua_setenv): Likewise.
19315 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
19316 lmsg to fix a warning.
19318 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
19320 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
19321 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19322 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
19323 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19324 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19325 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19326 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19327 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19329 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
19331 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
19333 2009-05-16 Bean <bean123ch@gmail.com>
19335 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
19336 (lua_mod_SOURCES): New variable.
19337 (lua_mod_CFLAGS): Likewise.
19338 (lua_mod_LDFLAGS): Likewise.
19340 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
19341 (setjmp_mod_SOURCES): New variable.
19342 (setjmp_mod_CFLAGS): Likewise.
19343 (setjmp_LDFLAGS): Likewise.
19345 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
19346 (setjmp_mod_SOURCES): New variable.
19347 (setjmp_mod_CFLAGS): Likewise.
19348 (setjmp_LDFLAGS): Likewise.
19350 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19351 (setjmp_mod_SOURCES): New variable.
19352 (setjmp_mod_CFLAGS): Likewise.
19353 (setjmp_LDFLAGS): Likewise.
19355 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19356 (setjmp_mod_SOURCES): New variable.
19357 (setjmp_mod_CFLAGS): Likewise.
19358 (setjmp_LDFLAGS): Likewise.
19360 * normal/i386/setjmp.S: Moved from here ...
19361 * lib/i386/setjmp.S: ... Moved here
19362 * normal/x86_64/setjmp.S: Moved from here ...
19363 * lib/x86_64/setjmp.S: ... Moved here
19364 * normal/powerpc/setjmp.S: Moved from here ...
19365 * lib/powerpc/setjmp.S: ... Moved here
19366 * normal/sparc64/setjmp.S: Moved from here ...
19367 * lib/sparc64/setjmp.S: ... Moved here
19369 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
19370 returns_twice in mingw.
19372 * script/lua/grub_lib.c: New file.
19373 * script/lua/grub_lib.h: Likewise.
19374 * script/lua/grub_lua.h: Likewise.
19375 * script/lua/grub_main.c: Likewise.
19376 * script/lua/lapi.c: Likewise.
19377 * script/lua/lapi.h: Likewise.
19378 * script/lua/lauxlib.c: Likewise.
19379 * script/lua/lauxlib.h: Likewise.
19380 * script/lua/lbaselib.c: Likewise.
19381 * script/lua/lcode.c: Likewise.
19382 * script/lua/lcode.h: Likewise.
19383 * script/lua/ldblib.c: Likewise.
19384 * script/lua/ldebug.c: Likewise.
19385 * script/lua/ldebug.h: Likewise.
19386 * script/lua/ldo.c: Likewise.
19387 * script/lua/ldo.h: Likewise.
19388 * script/lua/ldump.c: Likewise.
19389 * script/lua/lfunc.c: Likewise.
19390 * script/lua/lfunc.h: Likewise.
19391 * script/lua/lgc.c: Likewise.
19392 * script/lua/lgc.h: Likewise.
19393 * script/lua/linit.c: Likewise.
19394 * script/lua/liolib.c: Likewise.
19395 * script/lua/llex.c: Likewise.
19396 * script/lua/llex.h: Likewise.
19397 * script/lua/llimits.h: Likewise.
19398 * script/lua/lmathlib.c: Likewise.
19399 * script/lua/lmem.c: Likewise.
19400 * script/lua/lmem.h: Likewise.
19401 * script/lua/loadlib.c: Likewise.
19402 * script/lua/lobject.c: Likewise.
19403 * script/lua/lobject.h: Likewise.
19404 * script/lua/lopcodes.c: Likewise.
19405 * script/lua/lopcodes.h: Likewise.
19406 * script/lua/loslib.c: Likewise.
19407 * script/lua/lparser.c: Likewise.
19408 * script/lua/lparser.h: Likewise.
19409 * script/lua/lstate.c: Likewise.
19410 * script/lua/lstate.h: Likewise.
19411 * script/lua/lstring.c: Likewise.
19412 * script/lua/lstring.h: Likewise.
19413 * script/lua/lstrlib.c: Likewise.
19414 * script/lua/ltable.c: Likewise.
19415 * script/lua/ltable.h: Likewise.
19416 * script/lua/ltablib.c: Likewise.
19417 * script/lua/ltm.c: Likewise.
19418 * script/lua/ltm.h: Likewise.
19419 * script/lua/lua.h: Likewise.
19420 * script/lua/luaconf.h: Likewise.
19421 * script/lua/lualib.h: Likewise.
19422 * script/lua/lundump.c: Likewise.
19423 * script/lua/lundump.h: Likewise.
19424 * script/lua/lvm.c: Likewise.
19425 * script/lua/lvm.h: Likewise.
19426 * script/lua/lzio.c: Likewise.
19427 * script/lua/lzio.h: Likewise.
19429 2009-05-16 Bean <bean123ch@gmail.com>
19431 * include/grub/kernel.h (grub_module_header_types): Add type
19434 * kern/main.c (grub_load_config): New function.
19435 (grub_main): Call grub_load_config to read boot config.
19437 * grub-mkimage (generate_image): New parameter config_path.
19438 (options): New option --config.
19439 (main): Parse --config option, and pass it to generate_image.
19441 2009-05-14 Christian Franke <franke@computer.org>
19443 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
19444 This fixes build on Cygwin.
19446 2009-05-14 Pavel Roskin <proski@gnu.org>
19448 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
19449 jump. This saves two bytes, so the typical case of 2 swapped
19450 drives would fit 32 bytes.
19452 2009-05-13 Pavel Roskin <proski@gnu.org>
19454 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
19455 grub_uint32_t to avoid a warning.
19457 * loader/i386/linux.c (allocate_pages): When assigning
19458 real_mode_mem, cast through grub_size_t to fix a warning. The
19459 code already makes sure that the value would fit a pointer.
19460 (grub_linux_setup_video): Cast render_target->data to
19461 grub_size_t to fix a warning.
19463 2009-05-13 Javier Martín <lordhabbit@gmail.com>
19465 * commands/i386/pc/drivemap.c: New file - implement drivemap
19467 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
19468 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
19470 2009-05-13 Pavel Roskin <proski@gnu.org>
19472 * util/i386/pc/grub-setup.c (setup): Remove unused variable
19473 embedding_area_exists.
19475 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
19477 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
19478 it easier to understand / work with.
19479 Improve warning messages for cases where there's no embedding area,
19480 or when it is too small (or core.img too large).
19482 2009-05-13 Pavel Roskin <proski@gnu.org>
19484 * loader/i386/pc/multiboot2.c: Add necessary includes for
19485 grub_multiboot2_real_boot().
19487 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
19488 PX record is always little-endian. We only need the lower 2
19491 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
19492 facilitate code reuse.
19493 (grub_cpio_mount): Use "struct head", not a char buffer. This
19494 fixes a warning reported by gcc 4.4.
19496 * kernel/disk.c (grub_disk_read): Use void pointer for the
19498 (grub_disk_write): Use const void pointer for the buffer.
19499 Adjust all callers. Remove unnecessary casts.
19501 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
19503 * util/i386/pc/grub-install.in: Update copyright year.
19505 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19509 * commands/gptsync.c: new file
19510 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
19511 (gptsync_mod_SOURCES): new variable
19512 (gptsync_mod_CFLAGS): likewise
19513 (gptsync_mod_LDFLAGS): likewise
19514 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
19516 (GRUB_PC_PARTITION_TYPE_HFS): likewise
19517 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
19518 * conf/i386-ieee1275.rmk: likewise
19519 * conf/i386-pc.rmk: likewise
19520 * conf/powerpc-ieee1275.rmk: likewise
19522 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19526 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
19527 (grub_dl_ref): likewise
19529 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
19531 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
19532 split in two functions (one for msdos and one for gpt).
19534 2009-05-08 Pavel Roskin <proski@gnu.org>
19536 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
19539 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
19540 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
19541 Initialize them with -1. Add sanity check for bad1. Eliminate
19544 2009-05-08 David S. Miller <davem@davemloft.net>
19546 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
19548 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
19550 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
19553 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
19555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19556 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
19558 2009-05-05 David S. Miller <davem@davemloft.net>
19560 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
19562 2009-05-05 Pavel Roskin <proski@gnu.org>
19564 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
19565 of grub_dl_ref() and grub_dl_unref().
19566 * commands/parttool.c: Remove preprocessor conditionals around
19567 grub_dl_ref() and grub_dl_unref().
19568 * fs/affs.c: Likewise.
19569 * fs/afs.c: Likewise.
19570 * fs/cpio.c: Likewise.
19571 * fs/ext2.c: Likewise.
19572 * fs/fat.c: Likewise.
19573 * fs/hfs.c: Likewise.
19574 * fs/hfsplus.c: Likewise.
19575 * fs/iso9660.c: Likewise.
19576 * fs/jfs.c: Likewise.
19577 * fs/minix.c: Likewise.
19578 * fs/ntfs.c: Likewise.
19579 * fs/reiserfs.c: Likewise.
19580 * fs/sfs.c: Likewise.
19581 * fs/udf.c: Likewise.
19582 * fs/ufs.c: Likewise.
19583 * fs/xfs.c: Likewise.
19584 * include/grub/dl.h: Likewise.
19585 * loader/xnu.c: Likewise.
19587 2009-05-04 Pavel Roskin <proski@gnu.org>
19589 * commands/acpi.c: Remove unused variable my_mod.
19590 * partmap/amiga.c: Likewise.
19591 * partmap/apple.c: Likewise.
19592 * partmap/gpt.c: Likewise.
19593 * partmap/pc.c: Likewise.
19594 * partmap/sun.c: Likewise.
19595 * term/gfxterm.c: Likewise.
19596 * term/i386/pc/vesafb.c: Likewise.
19597 * term/i386/pc/vga.c: Likewise.
19599 2009-05-04 David S. Miller <davem@davemloft.net>
19601 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
19602 pointer args to grub_ieee1275_get_property().
19604 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
19606 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
19607 devices, and do not traverse down under controller nodes.
19609 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
19610 (grub_ofdisk_open): Use it to un-escape "," characters.
19611 * kern/disk.c (find_part_sep): New.
19612 (grub_disk_open): Use it to find the first non-escaped ','
19613 character in the disk name.
19614 * util/ieee1275/devicemap.c (escape_of_path): New.
19615 (grub_util_emit_devicemap_entry): Use it.
19616 * util/sparc64/ieee1275/grub-install.in: Update script to
19617 strip partition specifiers properly by not triggering on
19618 '\' escaped ',' characters.
19620 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19622 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
19624 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
19626 (linux_vesafb_modes): Add a lot of additional modes to the list (based
19627 on documentation from Wikipedia).
19629 2009-05-04 Pavel Roskin <proski@gnu.org>
19631 * disk/ata.c: Spelling fixes.
19632 * disk/raid.c: Likewise.
19633 * disk/usbms.c: Likewise.
19634 * disk/dmraid_nvidia.c: Likewise.
19635 * kern/ieee1275/openfw.c: Likewise.
19636 * kern/ieee1275/init.c: Likewise.
19637 * kern/ieee1275/cmain.c: Likewise.
19638 * boot/i386/pc/cdboot.S: Likewise.
19639 * video/readers/png.c: Likewise.
19640 * video/i386/pc/vbe.c: Likewise.
19641 * fs/udf.c: Likewise.
19642 * fs/hfs.c: Likewise.
19643 * fs/reiserfs.c: Likewise.
19644 * efiemu/runtime/efiemu.c: Likewise.
19645 * efiemu/main.c: Likewise.
19646 * efiemu/mm.c: Likewise.
19647 * include/grub/elf.h: Likewise.
19648 * include/grub/xnu.h: Likewise.
19649 * include/grub/usbdesc.h: Likewise.
19650 * include/grub/usb.h: Likewise.
19651 * include/grub/script_sh.h: Likewise.
19652 * include/grub/lib/LzmaEnc.h: Likewise.
19653 * include/grub/efiemu/efiemu.h: Likewise.
19654 * include/grub/command.h: Likewise.
19655 * normal/menu.c: Likewise.
19656 * normal/main.c: Likewise.
19657 * normal/datetime.c: Likewise.
19658 * bus/usb/uhci.c: Likewise.
19659 * mmap/i386/uppermem.c: Likewise.
19660 * mmap/mmap.c: Likewise.
19661 * commands/acpi.c: Likewise.
19662 * commands/test.c: Likewise.
19663 * partmap/apple.c: Likewise.
19664 * font/font.c: Likewise.
19665 * loader/sparc64/ieee1275/linux.c: Likewise.
19666 * loader/macho.c: Likewise.
19667 * loader/i386/bsd_trampoline.S: Likewise.
19668 * loader/i386/bsd.c: Likewise.
19669 * loader/xnu.c: Likewise.
19670 * term/i386/pc/vesafb.c: Likewise.
19671 * term/usb_keyboard.c: Likewise.
19672 * util/resolve.c: Likewise.
19673 * util/getroot.c: Likewise.
19675 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
19677 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
19679 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19681 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
19684 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19686 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
19687 parameter only available on BIOS.
19689 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19691 Removed wrong semicolon in declaration
19693 * grub/misc.h (grub_dprintf): remove semicolon
19695 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19697 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
19698 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
19699 is done by grub_cmd_linux() now).
19700 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
19701 restore video to text mode.
19702 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
19703 indicates lack of "vga=" parameter. "vga=0" is mapped to
19704 `GRUB_LINUX_VID_MODE_NORMAL'.
19706 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
19708 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
19709 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
19710 and `normal/script.c'. Add `kern/rescue_reader.c',
19711 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
19712 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
19713 `grub_script.tab.c'.
19715 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19716 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19717 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19718 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19719 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19721 * Makefile.in: Remove duplicated 2008 in Copyright line.
19723 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19725 * util/misc.c (grub_util_warn): New function. Emits a warning
19727 * include/grub/util/misc.h (grub_util_warn): New declaration.
19729 * util/i386/pc/grub-install.in: Understand --force and pass it down
19732 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
19734 (setup): Improve error messages and add warnings when requested to
19735 install in odd layouts. Refuse to install using blocklists unless
19738 2009-05-04 martin f. krafft <madduck@madduck.net>
19740 * disk/raid.c (grub_raid_scan_device): Improve debug message.
19742 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19744 Updated copyright year
19746 * fs/hfsplus.c: updated copyright year
19748 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19752 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
19753 in the space previously used by unused3
19754 (grub_hfsplus_uuid): new function
19755 (grub_hfsplus_fs): added uuid field
19757 2009-05-03 Pavel Roskin <proski@gnu.org>
19759 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
19760 suppress warnings. It's no longer needed.
19761 * disk/host.c: Likewise.
19762 * disk/ata_pthru.c: Likewise.
19763 * disk/loopback.c: Likewise.
19764 * hook/datehook.c: Likewise.
19765 * parttool/pcpart.c: Likewise.
19766 * fs/i386/pc/pxe.c: Likewise.
19767 * fs/ntfscomp.c: Likewise.
19768 * efiemu/main.c: Likewise.
19769 * mmap/mmap.c: Likewise.
19770 * commands/crc.c: Likewise.
19771 * commands/hexdump.c: Likewise.
19772 * commands/hdparm.c: Likewise.
19773 * commands/acpi.c: Likewise.
19774 * commands/echo.c: Likewise.
19775 * commands/minicmd.c: Likewise.
19776 * commands/blocklist.c: Likewise.
19777 * commands/memrw.c: Likewise.
19778 * commands/loadenv.c: Likewise.
19779 * commands/usbtest.c: Likewise.
19780 * commands/lsmmap.c: Likewise.
19781 * commands/boot.c: Likewise.
19782 * commands/parttool.c: Likewise.
19783 * commands/configfile.c: Likewise.
19784 * commands/search.c: Likewise.
19785 * commands/ieee1275/suspend.c: Likewise.
19786 * commands/cat.c: Likewise.
19787 * commands/i386/pc/pxecmd.c: Likewise.
19788 * commands/i386/pc/play.c: Likewise.
19789 * commands/i386/pc/halt.c: Likewise.
19790 * commands/i386/pc/vbeinfo.c: Likewise.
19791 * commands/i386/pc/vbetest.c: Likewise.
19792 * commands/lspci.c: Likewise.
19793 * commands/date.c: Likewise.
19794 * commands/handler.c: Likewise.
19795 * commands/ls.c: Likewise.
19796 * commands/test.c: Likewise.
19797 * commands/cmp.c: Likewise.
19798 * commands/efi/loadbios.c: Likewise.
19799 * commands/efi/fixvideo.c: Likewise.
19800 * commands/halt.c: Likewise.
19801 * commands/help.c: Likewise.
19802 * commands/reboot.c: Likewise.
19803 * hello/hello.c: Likewise.
19804 * script/sh/main.c: Likewise.
19805 * loader/xnu.c: Likewise.
19806 * term/terminfo.c: Likewise.
19807 * term/i386/pc/serial.c: Likewise.
19808 * term/usb_keyboard.c: Likewise.
19810 2009-05-03 David S. Miller <davem@davemloft.net>
19812 * normal/menu.c: Include grub/parser.h
19814 2009-05-03 Pavel Roskin <proski@gnu.org>
19816 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
19818 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
19819 Suggested by Javier Martín <lordhabbit@gmail.com>
19821 * util/i386/pc/grub-mkrescue.in: Allow for the case when
19822 efiemu??.o doesn't exist.
19823 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
19826 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
19828 FreeBSD 64-bit support
19830 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
19831 and loader/i386/bsd_trampoline.S
19832 (bsd_mod_ASFLAGS): new variable
19833 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
19834 (FREEBSD_MODTYPE_KERNEL64): likewise
19835 (grub_bsd64_trampoline_start): likewise
19836 (grub_bsd64_trampoline_end): likewise
19837 (grub_bsd64_trampoline_selfjump): likewise
19838 (grub_bsd64_trampoline_gdt): likewise
19839 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
19840 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
19841 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
19842 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
19843 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
19845 * loader/i386/bsd_pagetable.c: new file
19846 * loader/i386/bsd_trampoline.S: likewise
19847 * loader/i386/bsd.c (ALIGN_QWORD): new macro
19848 (ALIGN_VAR): likewise
19849 (entry_hi): new variable
19850 (kern_end_mdofs): likewise
19851 (is_64bit): likewise
19852 (grub_freebsd_add_meta): use ALIGN_VAR
19853 (grub_e820_mmap): new declaration
19854 (grub_freebsd_add_mmap): new function
19855 (grub_freebsd_add_meta_module): support 64 bit kernels
19856 (grub_freebsd_list_modules): use ALIGN_VAR
19857 (gdt_descriptor): new declaration
19858 (grub_freebsd_boot): support 64 bit kernels
19859 (grub_bsd_elf64_hook): new function
19860 (grub_bsd_load_elf): support elf64
19862 2009-05-03 Bean <bean123ch@gmail.com>
19864 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
19865 after we get the result of if statement.
19867 2009-05-03 Bean <bean123ch@gmail.com>
19869 * Makefile.in (enable_efiemu): New variable.
19871 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
19873 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
19875 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
19876 path, add -mno-red-zone option.
19877 (efiemu64_s.o): Likewise.
19878 (efiemu64.o): Use macro $^ for source file.
19880 * configure.ac (--enable-efiemu): New option.
19882 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
19886 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
19887 (pkglib_MODULES): add xnu.mod
19888 (xnu_mod_SOURCES): new variable
19889 (xnu_mod_CFLAGS): likewise
19890 (xnu_mod_LDFLAGS): likewise
19891 (xnu_mod_ASFLAGS): likewise
19892 * conf/i386-pc.rmk: likewise
19893 * conf/x86_64-efi.rmk: likewise
19894 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
19896 * include/grub/i386/macho.h: new file
19897 * include/grub/i386/xnu.h: likewise
19898 * include/grub/macho.h: likewise
19899 * include/grub/machoload.h: likewise
19900 * include/grub/x86_64/macho.h: likewise
19901 * include/grub/x86_64/xnu.h: likewise
19902 * include/grub/xnu.h: likewise
19903 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
19904 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
19905 * loader/i386/efi/xnu.c: new file
19906 * loader/i386/pc/xnu.c: likewise
19907 * loader/i386/xnu.c: likewise
19908 * loader/i386/xnu_helper.S: likewise
19909 * loader/macho.c: likewise
19910 * loader/xnu.c: likewise
19911 * loader/xnu_resume.c: likewise
19912 * util/grub-dumpdevtree: likewise
19913 * include/grub/i386/pit.h: include grub/err.h
19914 (grub_pit_wait): export
19915 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
19917 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19921 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
19922 _linux_efi, linux_efi.
19923 new files in grub-emu
19924 new targets efiemu32.o and efiemu64.o
19925 * loader/linux_normal_efiemu.c: likewise
19926 * loader/i386/efi/linux.c: added preliminary efiemu support
19927 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
19929 * include/grub/autoefi.h: new file
19930 * include/grub/i386/efiemu.h: likewise
19931 * include/grub/i386/pc/efiemu.h: likewise
19932 * include/grub/efi/api.h: add LL suffix when necessary
19933 new definitions relating to tables
19934 * include/grub/efiemu/efiemu.h: new file
19935 * include/grub/efiemu/runtime.h: likewise
19936 * efiemu/prepare.c: likewise
19937 * efiemu/loadcore_common.c: likewise
19938 * efiemu/loadcore64.c: likewise
19939 * efiemu/runtime/efiemu.sh: likewise
19940 * efiemu/runtime/efiemu.S: likewise
19941 * efiemu/runtime/efiemu.c: likewise
19942 * efiemu/runtime/config.h: likewise
19943 * efiemu/prepare32.c: likewise
19944 * efiemu/main.c: likewise
19945 * efiemu/modules/pnvram.c: likewise
19946 * efiemu/modules/i386: likewise
19947 * efiemu/modules/i386/pc: likewise
19948 * efiemu/modules/acpi.c: likewise
19949 * efiemu/i386/pc/cfgtables.c: likewise
19950 * efiemu/i386/loadcore64.c: likewise
19951 * efiemu/i386/loadcore32.c: likewise
19952 * efiemu/prepare64.c: likewise
19953 * efiemu/loadcore.c: likewise
19954 * efiemu/symbols.c: likewise
19955 * efiemu/mm.c: likewise
19956 * efiemu/loadcore32.c: likewise
19958 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19962 * commands/acpi.c: new file
19963 * commands/i386/pc/acpi.c: likewise
19964 * commands/efi/acpi.c: likewise
19965 * include/grub/acpi.h: likewise
19966 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
19967 (acpi_mod_SOURCES): new variable
19968 (acpi_mod_CFLAGS): likewise
19969 (acpi_mod_LDFLAGS): likewise
19970 * conf/i386-efi.rmk: likewise
19971 * conf/x86_64-efi.rmk: likewise
19973 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19975 Missing part from mmap patch
19977 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
19978 (grub_mmap_unregister)
19979 (grub_mmap_free_and_unregister): use grub_mmap_register
19981 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19985 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
19986 * loader/i386/linux.c (find_mmap_size): likewise
19987 (allocate_pages): likewise
19988 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
19989 (grub_fill_multiboot_mmap): likewise
19990 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
19991 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
19992 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
19993 (OPENBSD_MMAP_RESERVED): likewise
19994 * include/grub/i386/pc/memory.h: include grub/memory.h
19995 (grub_lower_mem): removed
19996 (grub_upper_mem): likewise
19997 (GRUB_MACHINE_MEMORY_ACPI): new definition
19998 (GRUB_MACHINE_MEMORY_NVS): likewise
19999 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
20000 (GRUB_MACHINE_MEMORY_HOLE): likewise
20001 (grub_machine_mmap_register): likewise
20002 (grub_machine_mmap_unregister): likewise
20003 (grub_machine_get_upper): likewise
20004 (grub_machine_get_lower): likewise
20005 (grub_machine_get_post64): likewise
20006 * include/grub/i386/efi/memory.h: new file
20007 * include/grub/x86_64/efi/memory.h: likewise
20008 * include/grub/efi/memory.h: likewise
20009 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
20010 (mmap_mod_SOURCES): new variable
20011 (mmap_mod_LDFLAGS): likewise
20012 (mmap_mod_ASFLAGS): likewise
20013 * conf/i386-coreboot.rmk: likewise
20014 * conf/i386-ieee1275.rmk: likewise
20015 * conf/i386-efi.rmk: likewise
20016 * conf/x86_64-efi.rmk: likewise
20017 * include/grub/types.h (UINT_TO_PTR): new macro
20018 (PTR_TO_UINT32): likewise
20019 (PTR_TO_UINT64): likewise
20020 * include/grub/memory.h: new file
20021 * mmap/i386/pc/mmap.c: likewise
20022 * mmap/i386/pc/mmap_helper.S: likewise
20023 * mmap/i386/uppermem.c: likewise
20024 * mmap/mmap.c: likewise
20025 * mmap/efi/mmap.c: likewise
20026 * kern/i386/coreboot/init.c (grub_machine_init): don't use
20028 * kern/i386/pc/init.c (grub_lower_mem): removed variable
20029 (grub_upper_mem): likewise
20030 (grub_machine_init): don't use grub_upper_mem,
20031 make grub_lower_mem local
20032 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
20033 grub_mmap_iterate and grub_mmap_get_upper
20034 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
20036 2009-05-02 Bean <bean123ch@gmail.com>
20038 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
20039 script/sh/parser.y.
20040 (pkglib_MODULES): Add normal.mod and sh.mod.
20041 (normal_SOURCES): New variable.
20042 (normal_mod_CFLAGS): Likewise.
20043 (normal_mod_LDFLAGS): Likewise.
20044 (sh_mod_SOURCES): Likewise.
20045 (sh_mod_CFLAGS): Likewise.
20046 (sh_mod_LDFLAGS): Likewise.
20048 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
20049 script/sh/lexer.c_DEPENDENCIES.
20050 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
20051 kern/rescue_reader.c and kern/rescue_parser.c.
20052 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
20053 (grub_emu_SOURCES): Change source files.
20054 (pkglib_MODULES): Remove normal.mod.
20055 (normal_SOURCES): Removed.
20056 (normal_mod_CFLAGS): Likewise.
20057 (normal_mod_LDFLAGS): Likewise.
20058 * conf/i386-coreboot.rmk: Likewise.
20059 * conf/i386-efi.rmk: Likewise.
20060 * conf/i386-ieee1276.rmk: Likewise.
20061 * conf/powerpc-ieee1275.rmk: Likewise.
20062 * conf/sparc64-ieee1275.rmk: Likewise.
20063 * conf/x86_64-efi.rmk: Likewise.
20065 * include/grub/command.h (grub_command_execute): New inline function.
20067 * include/grub/menu.h (grub_menu_entry): Removed commands field.
20069 * include/grub/normal.h: Remove <grub/setjmp.h>.
20070 (grub_fs_module_list): Moved to normal/autofs.c.
20071 (grub_exit_env): Removed.
20072 (grub_command_execute): Likewise.
20073 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
20075 (read_command_list): New function declaration.
20076 (read_fs_list): Likewise.
20078 * include/parser.h: Include <grub/reader.h>.
20079 (grub_parser_split_cmdline): Change type of getline parameter.
20080 (grub_parser): New structure.
20081 (grub_parser_class): New variable.
20082 (grub_parser_execute): New function declaration.
20083 (grub_register_rescue_parser): Likewise.
20084 (grub_parser_register): New inline function.
20085 (grub_parser_unregister): Likewise.
20086 (grub_parser_get_current): Likewise.
20087 (grub_parser_set_current): Likewise.
20089 * include/grub/reader.h: New file.
20090 * kern/reader.c: Likewise.
20091 * kern/rescue_parser.c: Likewise.
20092 * kern/rescue_reader.c: Likewise.
20093 * normal/autofs.c: Likewise.
20094 * normal/dyncmd.c: Likewise.
20096 * include/grub/rescue.h: Removed.
20097 * normal/command.h: Likewise.
20099 * include/grub/script.h: Moved to ...
20100 * include/grub/script_sh.h: ... Moved here.
20101 * normal/execute.c: Moved to ...
20102 * script/sh/execute.c: ... Moved here.
20103 * normal/function.c: Moved to ...
20104 * script/sh/function.c: ... Moved here.
20105 * normal/lexer.c: Moved to ...
20106 * script/sh/lexer.c: ... Moved here.
20107 * normal/parser.y: Moved to ...
20108 * script/sh/parser.y: ... Moved here.
20109 * normal/script.c: Moved to ...
20110 * script/sh/script.c: ... Moved here.
20112 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
20114 (grub_exit_env): Removed.
20115 (fs_module_list): Moved to normal/autofs.c.
20116 (grub_file_getline): Don't handle comment here.
20117 (free_menu): Skip removed field entry->commands.
20118 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
20120 (read_config_file): Removed nested parameter, change getline function.
20121 (grub_enter_normal_mode): Removed.
20122 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
20123 (read_command_list): Likewise.
20124 (autoload_fs_module): Moved to normal/autofs.c.
20125 (read_fs_list): Likewise.
20126 (reader_nested): New variable.
20127 (grub_normal_execute): Run parser.sh to switch to sh parser.
20128 (grub_cmd_rescue): Removed.
20129 (cmd_normal): Removed.
20130 (grub_cmd_normal): Unregister itself at the beginning. Don't register
20132 (grub_cmdline_run): New function.
20133 (grub_normal_reader_init): Likewise.
20134 (grub_normal_read_line): Likewise.
20135 (grub_env_write_pager): Likewise.
20136 (cmdline): New variable.
20137 (grub_normal_reader): Likewise.
20138 (GRUB_MOD_INIT): Register normal reader and set as current, register
20139 pager hook, register normal command with grub_register_command_prio,
20140 so that it won't show up in command.lst.
20141 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
20142 grub_fs_autoload_hook.
20144 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
20145 (grub_menu_execute_entry): Replace grub_script_execute with
20146 grub_parser_execute, change parameter to grub_command_execute.
20148 * normal/menu_text.c: Remove <grub/script.h>.
20150 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
20151 and <grub/parser.h>.
20152 (run): Change editor_getline to use new parser interface. Change
20153 parameter to grub_command_execute.
20155 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
20156 <grub/reader.h> and <grub/parser.h>.
20157 (grub_load_normal_mode): Execute normal command.
20158 (grub_main): Call grub_register_core_commands,
20159 grub_register_rescue_parser and grub_register_rescue_reader, use
20160 grub_reader_loop to enter input loop.
20162 * kern/parser.c (grub_parser_split_cmdline): Change type of
20164 (grub_parser_class): New variable.
20165 (grub_parser_execute): New function.
20167 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
20168 * loader/multiboot2.c: Likewise.
20169 * loader/sparc64/ieee1275/linux.c: Likewise.
20171 * util/grub-emu.c (read_command_list): New dummy function.
20173 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20175 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
20176 count to 16 for CCISS and IDA.
20178 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20180 * normal/menu_text.c (grub_wait_after_message): Print a newline
20181 after waiting for user input.
20183 * loader/i386/linux.c: Include `<grub/normal.h>'.
20184 (grub_cmd_linux): Improve the error message about `ask' mode, by
20185 waiting for user input so it's not missed (we can do this, since
20186 user requested interaction).
20188 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20190 Added missing lst to grub-mkrescue
20192 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
20193 and ${input_dir}/parttool.lst
20195 2009-04-30 David S. Miller <davem@davemloft.net>
20197 * util/hostdisk.c (device_is_wholedisk): New function.
20198 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
20199 zero only if device_is_wholedisk() returns true.
20201 * util/hostdisk.c (convert_system_partition_to_system_disk):
20202 Handle virtual disk devices named /dev/vdiskX as found on sparc
20205 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
20206 lettered partition specifier is found, convert to numbered.
20208 2009-04-29 David S. Miller <davem@davemloft.net>
20210 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
20211 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20213 * normal/command.c: Add missing newline at end of file.
20215 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
20217 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
20218 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
20219 grub_ofdisk_read): Likewise, and deal similarly with the fact that
20220 ihandles have a 32-bit type but need to be stored in a "void *".
20222 2009-04-28 Pavel Roskin <proski@gnu.org>
20224 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
20225 not disk. Adjust all dependencies.
20226 (grub_fs_uuid_close): Use grub_device_close(), not
20229 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
20230 parent's partition, don't copy it by reference, as it gets freed
20233 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20235 Preboot hooks support
20237 * commands/boot.c (struct grub_preboot_t): new declaration
20238 (preboots_head): new variable
20239 (preboots_tail): likewise
20240 (grub_loader_register_preboot_hook): new function
20241 (grub_loader_unregister_preboot_hook): likewise
20242 (grub_loader_set): launch preboot hooks
20243 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
20244 (grub_loader_register_preboot_hook): new declaration
20245 (grub_loader_unregister_preboot_hook): likewise
20247 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20251 * disk/scsi.c (grub_scsi_open): added missing cast when
20252 calling grub_dprintf
20254 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
20256 Bug and warning fixes
20258 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
20260 * commands/test.c (test_parse): fixed bug with file tests and corrected
20261 declaration of find_file
20263 2009-04-26 Pavel Roskin <proski@gnu.org>
20265 * Makefile.in: Don't install empty manual pages if help2man is
20266 missing. Use help2man option for output, not shell redirection.
20268 2009-04-26 David S. Miller <davem@davemloft.net>
20270 * util/grub-mkdevicemap.c (make_device_map): Add missing
20271 NESTED_FUNC_ATTR to process_device().
20273 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20277 * commands/test.c: rewritten to use bash-like test
20279 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20281 Parttool autoloading and improvements
20283 * Makefile.in (pkglib_DATA): add parttool.lst
20284 (parttool.lst): new target
20285 * genmk.rb: generate parttool-*
20286 (CLEANFILES): add #{parttool}
20287 (PARTTOOLFILES): new variable
20288 * genparttoollist.sh: new file
20289 * parttool/pcpart.c (grub_pcpart_boot): more feedback
20290 (grub_pcpart_type): likewise
20291 * commands/parttool.c (helpmsg): new variable
20292 (grub_cmd_parttool): output help if not enough arguments are supplied
20294 (GRUB_MOD_INIT(parttool)): use helpmsg
20296 2009-04-24 David S. Miller <davem@davemloft.net>
20298 Avoiding opening same device multiple times in device iterator.
20300 * kern/device.c: (grub_device_iterate): Define struct part_ent,
20301 and use it to build a list of partitions in iterate_disk() and
20302 iterate_partition().
20304 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
20307 * disk/ieee1275/nand.c (grub_nand_iterate): Return
20308 grub_devalias_iterate() result instead of unconditional 0.
20309 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
20310 Also, capture hook return value, either directly or via
20311 grub_children_iterate(), and propagate to caller.
20312 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
20313 grub_children_iterate): Return value is now 'int' instead of
20315 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
20316 like a proper iterator, stopping when hooks return non-zero.
20317 (grub_devalias_iterate): Likewise.
20319 2009-04-23 David S. Miller <davem@davemloft.net>
20321 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
20323 2009-04-22 David S. Miller <davem@davemloft.net>
20325 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
20326 is larger than address_cells, use that value for address_cells too.
20328 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
20329 IEEE1275_MAX_PATH_LEN): Define.
20330 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
20331 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
20332 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
20333 'devtype'. Explicitly NULL terminate devalias expansion.
20335 * util/sparc64/ieee1275/misc.c: New file.
20336 * util/sparc64/ieee1275/grub-setup.c: New file.
20337 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
20338 * util/sparc64/ieee1275/grub-mkimage.c: New file.
20339 * util/sparc64/ieee1275/grub-install.in: New file.
20340 * util/ieee1275/ofpath.c: New file.
20341 * util/ieee1275/devicemap.c: New file.
20342 * util/devicemap.c: New file.
20343 * util/deviceiter.c: New file.
20344 * kern/sparc64/ieee1275/init.c: New file.
20345 * include/grub/util/ofpath.h: New file.
20346 * include/grub/util/deviceiter.h: New file.
20347 * util/grub-mkdevicemap.c: Include deviceiter.h.
20348 Implement using grub_util_emit_devicemap_entry and
20349 grub_util_iterate_devices.
20350 * conf/i386-corebook.rmk: Build util/deviceiter.c and
20351 util/devicemap.c into grub-mkdevicemap
20352 * conf/i386-efi.rmk: Likewise.
20353 * conf/i386-ieee1275.rmk: Likewise.
20354 * conf/i386-pc.rmk: Likewise.
20355 * conf/powerpc-ieee1275.rmk: Likewise.
20356 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
20357 images and installation utilities. Build kernel as image
20358 instead of as elf binary. Use common rules as much as possible.
20360 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20362 Correct GPT definition
20364 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
20367 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
20369 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
20371 2009-04-19 David S. Miller <davem@davemloft.net>
20373 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
20374 (grub_rescue_cmd_linux): Rename to...
20375 (grub_cmd_linux): and fix prototype.
20376 (grub_rescue_cmd_initrd): Rename to...
20377 (grub_cmd_initrd): and fix prototype.
20378 (cmd_linux, cmd_initrd): New.
20379 (GRUB_MOD_INIT(linux)): Use grub_register_command().
20380 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
20382 2009-04-17 Pavel Roskin <proski@gnu.org>
20384 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
20386 (grub_ohci_transfer): Likewise.
20388 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
20390 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
20391 return without a value. Fix inconsistent indentation.
20393 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
20394 match struct grub_fs.
20396 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
20397 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
20398 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20399 * commands/lspci.c (grub_lspci_iter): Likewise.
20401 2009-04-16 Bean <bean123ch@gmail.com>
20403 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
20406 2009-04-15 Pavel Roskin <proski@gnu.org>
20408 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
20409 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
20410 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
20413 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
20415 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
20416 that no multiple data or metadata areas are supported and `Unknown
20419 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20421 Move loader out of the kernel
20423 * kern/loader.c: moved to ...
20424 * commands/boot.c: ... moved here
20425 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
20426 * commands/boot.c (grub_cmd_boot): moved here. All users updated
20427 * include/grub/kernel.h (grub_machine_fini): export
20428 * include/grub/loader.h (grub_loader_is_loaded): update declaration
20429 (grub_loader_set): likewise
20430 (grub_loader_unset): likewise
20431 (grub_loader_boot): likewise
20432 * conf/common.rmk: new module boot.mod
20433 (pkglib_MODULES): add boot.mod
20434 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
20435 (grub_emu_SOURCES): likewise
20436 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
20437 (grub_emu_SOURCES): likewise
20438 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
20439 (grub_emu_SOURCES): likewise
20440 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
20441 (grub_emu_SOURCES): likewise
20442 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
20443 (grub_emu_SOURCES): likewise
20444 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
20445 (grub_emu_SOURCES): likewise
20446 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
20447 (grub_emu_SOURCES): likewise
20449 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20451 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
20453 * kern/misc.c (grub_itoa): Removed function
20454 (grub_ltoa): likewise
20455 (grub_vsprintf): use grub_lltoa
20457 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20461 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
20462 * conf/i386-coreboot.rmk: likewise
20463 * conf/i386-ieee1275.rmk: likewise
20464 * conf/powerpc-ieee1275.rmk: likewise
20466 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
20468 * INSTALL: Add that `./autogen.sh' needs to be run before
20471 2009-04-14 Bean <bean123ch@gmail.com>
20473 * Makefile.in (pkglib_DATA): Add handler.lst.
20474 (handler.lst): New rule.
20476 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
20477 * conf/i386-coreboot.rmk: Likewise.
20478 * conf/i386-ieee1275.rmk: Likewise.
20479 * conf/i386-efi.rmk: Likewise.
20480 * conf/x86_64-efi.rmk: Likewise.
20481 * conf/powerpc-ieee1275.rmk: Likewise.
20482 * conf/sparc64-ieee1275.rmk: Likewise.
20484 * genhandlerlist.sh: New file.
20486 * genmk.rb: Add rules to generate handler.lst.
20488 * include/grub/normal.h (grub_file_getline): New function definition.
20489 (read_handler_list): Likewise.
20490 (free_handler_list): Likewise.
20492 * include/grub/term.h (grub_term_register_input): Add name parameter
20493 for auto generation of handler.lst.
20494 (grub_term_register_output): Likewise.
20496 * normal/handler.c: New file.
20498 * normal/main.c (get_line): Renamed to grub_file_getline.
20499 (read_config_file): Use the newly renamed grub_file_getline.
20500 (read_command_list): Likewise.
20501 (read_fs_list): Likewise.
20502 (grub_normal_execute): Call read_handler_list to parse handler.lst.
20503 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
20505 * term/efi/console.c (grub_console_init): Add name parameter for auto
20506 generation of handler.lst.
20507 * term/gfxterm.c: Likewise.
20508 * term/i386/pc/at_keyboard.c: Likewise.
20509 * term/i386/pc/console.c: Likewise.
20510 * term/i386/pc/serial.c: Likewise.
20511 * term/i386/pc/vesafb.c: Likewise.
20512 * term/i386/pc/vga.c: Likewise.
20513 * term/i386/pc/vga_text.c: Likewise.
20514 * term/ieee1275/ofconsole.c: Likewise.
20515 * term/usb_keyboard.c: Likewise.
20517 2009-04-14 Bean <bean123ch@gmail.com>
20519 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
20520 properly with null character.
20522 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
20524 * configure: Remove.
20525 * config.h.in: Likewise.
20526 * stamp-h.in: Likewise.
20527 * DISTLIST: Likewise.
20528 * conf/common.mk: Likewise.
20529 * conf/i386-coreboot.mk: Likewise.
20530 * conf/i386-efi.mk: Likewise.
20531 * conf/i386-ieee1275.mk: Likewise.
20532 * conf/i386.mk: Likewise.
20533 * conf/i386-pc.mk: Likewise.
20534 * conf/powerpc-ieee1275.mk: Likewise.
20535 * conf/sparc64-ieee1275.mk: Likewise.
20536 * conf/x86_64-efi.mk: Likewise.
20538 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
20541 2009-04-14 John Stanley <jpsinthemix@verizon.net>
20542 David S. Miller <davem@davemloft.net>
20544 * util/hostdisk.c (make_device_name): Fix buffer length
20547 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
20549 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
20550 <sys/param.h> and <sys/sysctl.h>.
20551 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
20552 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
20553 opening the device and reset them afterwards.
20555 2009-04-13 Pavel Roskin <proski@gnu.org>
20557 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
20558 Reported by John Stanley <jpsinthemix@verizon.net>
20560 2009-04-13 Robert Millan <rmh@aybabtu.com>
20562 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
20563 that name for menuentries when appropriate.
20565 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20567 * util/grub.d/10_freebsd.in: Add a missing `fi'.
20569 2009-04-13 Robert Millan <rmh@aybabtu.com>
20571 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
20572 to Linux, simply abort telling the user it's no longer supported.
20574 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20576 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
20577 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
20578 `freebsd_loadenv' only when devices.hints exist.
20580 2009-04-13 Pavel Roskin <proski@gnu.org>
20582 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
20584 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20586 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
20588 (grub_drive): Likewise.
20590 2009-04-13 David S. Miller <davem@davemloft.net>
20592 * kern/sparc64/ieee1275/ieee1275.c: New file.
20593 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
20594 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
20595 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
20596 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
20597 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
20598 grub_ieee1275_alloc_physmem): Declare new exported functions.
20600 * include/grub/sparc64/ieee1275/loader.h: New file.
20601 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20602 * include/grub/sparc64/kernel.h: Likewise.
20603 * loader/sparc64/ieee1275/linux.c: Likewise.
20605 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
20606 (grub_fstest_SOURCES): Likewise.
20608 * util/hostdisk.c (make_device_name): Do not make any assumptions
20609 about the length of drive names.
20611 * kern/dl.c (grub_dl_load_file): Close file immediately when
20612 we are done using it.
20614 2009-04-12 David S. Miller <davem@davemloft.net>
20616 * kern/misc.c (grub_ltoa): Fix cast when handling negative
20617 values. Noticed by Pavel Roskin.
20619 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
20622 * genmk.rb: Add more flexible image type specification, also
20623 pass --strip-unneeded to objcopy.
20624 * conf/i386-pc.rmk: Use *_FORMAT.
20625 * conf/i386-pc.mk: Rebuilt.
20627 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
20628 (OFDISK_HASH_SZ): Define.
20629 (ofdisk_hash): New hash table.
20630 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
20631 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
20632 instead of device phandle which is not unique.
20634 * kern/sparc64/ieee1275/init.c: Delete, replace with...
20635 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
20636 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
20637 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
20638 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
20639 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
20640 GRUB_KERNEL_MACHINE_DATA_END): Define.
20641 (grub_kernel_image_size, grub_total_module_size): Declare.
20643 2009-04-12 Pavel Roskin <proski@gnu.org>
20645 * configure.ac: Change the logic when we check for target tools.
20646 Do it when the target is specified and it's different from the
20647 specified value of the host.
20649 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
20651 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
20652 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
20653 GNU/kFreeBSD. Check if a device is a character device. Use
20654 DIOCGMEDIASIZE to get the size.
20655 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
20656 support for GNU/kFreeBSD.
20657 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
20658 is a character device instead of a block device. Add support for
20659 FreeBSD device names.
20661 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
20662 is a character device instead of a block device.
20664 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
20665 is a character device instead of a block device.
20667 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
20669 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
20670 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
20671 FreeBSD. Check if a device is a character device. Use
20672 DIOCGMEDIASIZE to get the size.
20673 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
20674 support for FreeBSD.
20675 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
20676 is a character device instead of a block device. Add support for
20677 FreeBSD device names.
20679 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
20680 a character device instead of a block device.
20681 (grub_util_check_char_device): New function.
20683 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
20684 a character device instead of a block device.
20686 * include/grub/util/getroot.h (grub_util_check_char_device): New
20689 2009-04-11 David S. Miller <davem@davemloft.net>
20691 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
20693 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
20694 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
20695 function, if present.
20696 (__bswapdi2): Likewise.
20698 * include/grub/sparc64/ieee1275/boot.h: New file.
20699 * boot/sparc64/ieee1275/boot.S: Likewise.
20700 * boot/sparc64/ieee1275/diskboot.S: Likewise.
20702 * kern/misc.c (grub_ltoa): New function.
20703 (grub_vsprintf): Use it to format 'long' integers.
20705 2009-04-10 David S. Miller <davem@davemloft.net>
20707 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
20708 slots are of type grub_ieee1275_cell_t.
20709 (grub_nand_read): Likewise.
20710 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
20711 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
20712 macros are used to compare values in arg/ret block of the call.
20713 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
20714 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
20715 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
20716 grub_ieee1275_instance_to_path, grub_ieee1275_write,
20717 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
20718 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
20719 grub_ieee1275_close, grub_ieee1275_set_property,
20720 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
20721 grub_ieee1275_cell_t.
20722 * kern/ieee1275/openfw.c (grub_map): Likewise.
20723 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
20724 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
20726 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
20727 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
20728 (grub_devalias_iterate): Likewise.
20730 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20734 * fs/ufs.c (INODE_NBLOCKS): new definition
20735 (struct grub_ufs_dirent): added fields for non-BSD dirents
20736 (grub_ufs_get_file_block): fixed double indirect handling
20737 (grub_ufs_lookup_symlink): use more robust way to determine whether
20739 (grub_ufs_find_file): support for non-BSD dirents
20740 (grub_ufs_dir): support for non-BSD dirents
20742 2009-04-10 Bean <bean123ch@gnail.com>
20744 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
20745 attribute, otherwise the size would be wrong for i386 platform.
20747 * include/grub/pci.h (grub_pci_read_word): New inline function.
20748 (grub_pci_read_byte): Likewise.
20749 (grub_pci_write): Likewise.
20750 (grub_pci_write_word): Likewise.
20751 (grub_pci_write_byte): Likewise.
20753 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
20755 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
20756 (find_framebuf): Scan pci to locate the frame buffer address.
20758 * commands/efi/fixvideo.c: New file.
20760 * commands/efi/loadbios.c: Likewise.
20762 * commands/memrw.c: Likewise.
20764 * util/grub-dumpbios.in: Likewise.
20766 * conf/common.rmk (grub-dumpbios): New utility.
20767 (pkglib_MODULES): New module memrw.mod.
20768 (memrw_mod_SOURCE): New macro.
20769 (memrw_mod_CFLAGS): Likewise.
20770 (memrw_mod_LDFLAGS): Likewise.
20772 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
20774 (loadbios_mod_SOURCE): New macro.
20775 (loadbios_mod_CFLAGS): Likewise.
20776 (loadbios_mod_LDFLAGS): Likewise.
20777 (fixvideo_mod_SOURCE): Likewise.
20778 (fixvideo_mod_CFLAGS): Likewise.
20779 (fixvideo_mod_LDFLAGS): Likewise.
20781 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
20783 (loadbios_mod_SOURCE): New macro.
20784 (loadbios_mod_CFLAGS): Likewise.
20785 (loadbios_mod_LDFLAGS): Likewise.
20786 (fixvideo_mod_SOURCE): Likewise.
20787 (fixvideo_mod_CFLAGS): Likewise.
20788 (fixvideo_mod_LDFLAGS): Likewise.
20790 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
20792 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
20794 2009-04-07 David S. Miller <davem@davemloft.net>
20796 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
20797 support for R_SPARC_OLO10 relocations. Fix compile warning for
20798 R_SPARC_WDISP30 case.
20799 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
20801 2009-04-06 Pavel Roskin <proski@gnu.org>
20803 * include/grub/misc.h (ARRAY_SIZE): New macro.
20804 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
20806 * loader/i386/linux.c (allocate_pages): Use free_pages().
20807 (grub_linux_unload): Don't use free_pages().
20808 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
20809 wrong index. Treat all other modes as text modes.
20810 (grub_cmd_linux): Initialize vid_mode unconditionally to
20811 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
20813 * commands/help.c (print_command_help): Use cmd->prio, not
20814 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
20816 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20820 * parttool/pcpart.c: new file
20821 * commands/parttool.c: likewise
20822 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
20823 (parttool_mod_SOURCES): new variable
20824 (parttool_mod_CFLAGS): likewise
20825 (parttool_mod_LDFLAGS): likewise
20826 (pcpart_mod_SOURCES): likewise
20827 (pcpart_mod_CFLAGS): likewise
20828 (pcpart_mod_LDFLAGS): likewise
20829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
20830 and parttool/pcpart.c
20831 * conf/i386-efi.rmk: likewise
20832 * conf/i386-ieee1275.rmk: likewise
20833 * conf/i386-pc.rmk: likewise
20834 * conf/powerpc-ieee1275.rmk: likewise
20835 * conf/sparc64-ieee1275.rmk: likewise
20836 * conf/x86_64-ieee1275.rmk: likewise
20838 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20840 Support for mtime and further expandability of dir command
20842 * include/grub/lib/datetime.h: moved to ...
20843 * include/grub/datetime.h: ... moved here and added
20844 declaration of grub_unixtime2datetime. All users updated
20845 * include/grub/fs.h: new syntax for dir and mtime functions in
20847 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
20848 and GRUB_FSHELP_FLAGS_MASK
20849 * commands/ls.c (grub_ls_list_files): Write mtime in long format
20850 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
20851 (grub_ext2_mtime): new function
20852 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
20853 (grub_hfsplus_mtime): new function
20854 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
20855 (GRUB_UFS_ATTR_FILE): likewise
20856 (GRUB_UFS_ATTR_LNK): likewise
20857 (struct grub_ufs_sblock): new fields mtime
20858 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
20860 (grub_ufs_dir): mtime support
20861 (grub_ufs_mtime): new function
20862 * fs/affs.c (grub_affs_dir): use new dir syntax
20863 * fs/afs.c (grub_afs_dir): likewise
20864 * fs/cpio.c (grub_cpio_dir): likewise
20865 * fs/fat.c (grub_fat_find_dir): likewise
20866 * fs/hfs.c (grub_hfs_dir): likewise
20867 * fs/iso9660.c (grub_iso9660_dir): likewise
20868 * fs/jfs.c (grub_jfs_dir): likewise
20869 * fs/minix.c (grub_minix_dir): likewise
20870 * fs/ntfs.c (grub_ntfs_dir): likewise
20871 * fs/reiserfs.c (grub_reiserfs_dir): likewise
20872 * fs/sfs.c (grub_sfs_dir): likewise
20873 * fs/xfs.c (grub_xfs_dir): likewise
20874 * util/hostfs.c (grub_hostfs_dir): likewise
20875 * lib/datetime.c: moved to ...
20876 * normal/datetime.c: ... moved here
20877 (grub_unixtime2datetime): new function
20878 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
20879 * normal/completion.c (iterate_dir): use new dir syntax
20880 * normal/misc.c (grub_normal_print_device_info): tell the
20881 last modification time of a volume
20882 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
20883 * conf/common.rmk: added lib/datetime.c to ls.mod
20884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
20885 (normal_mod_SOURCES): likewise
20886 (datetime_mod_SOURCES): Removed lib/datetime.c
20887 * conf/i386-efi.rmk: likewise
20888 * conf/i386-ieee1275.rmk: likewise
20889 * conf/i386-pc.rmk: likewise
20890 * conf/powerpc-ieee1275.rmk: likewise
20891 * conf/sparc64-ieee1275.rmk: likewise
20892 * conf/x86_64-efi.rmk: likewise
20894 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20896 Trim trailing spaces in FAT label and support mtools-like labels
20898 * fs/fat.c (grub_fat_iterate_dir): New function based
20899 on grub_fat_find_dir
20900 (grub_fat_find_dir): use grub_fat_iterate_dir
20901 (grub_fat_label): likewise
20903 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
20905 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
20907 remove extraneous kernel_elf_HEADERS
20909 2009-04-04 Bean <bean123ch@gnail.com>
20911 * include/grub/util/misc.h: Add dummy function fsync for mingw.
20913 * util/misc.c: Likewise.
20915 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20917 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
20918 instead of grub_printf.
20920 2009-04-03 Robert Millan <rmh@aybabtu.com>
20922 * loader/i386/linux.c (grub_linux_setup_video): Fill
20923 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
20924 values from `mode info' structure instead of hardcoded
20927 2009-04-01 Pavel Roskin <proski@gnu.org>
20929 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
20931 * genmk.rb: Likewise.
20932 * configure.ac: Likewise.
20934 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
20936 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
20937 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
20939 2009-04-01 David S. Miller <davem@davemloft.net>
20941 * normal/sparc64/setjmp.S: Fix setjmp implementation.
20942 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
20943 (grub_setjmp): Mark with 'returns_twice' attribute.
20944 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
20945 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
20946 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
20948 2009-04-01 Robert Millan <rmh@aybabtu.com>
20950 Reapply fix from 2008-07-28 which was accidentally reverted; also
20951 perform the same fix to a similar check in same function.
20953 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
20954 with the same number are found, just use issue a warning with
20955 grub_dprintf(), as this error has been reported to be non-fatal.
20957 2009-03-31 Pavel Roskin <proski@gnu.org>
20959 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
20960 for cross-compilation.
20962 2009-03-30 Robert Millan <rmh@aybabtu.com>
20964 Fix i386-ieee1275 build.
20966 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
20967 Remove declaration.
20969 2009-03-30 Pavel Roskin <proski@gnu.org>
20971 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
20972 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
20973 zero-terminated, rely only on the strlen value. Fix comparison
20974 of strings differing in length.
20976 2009-03-30 Robert Millan <rmh@aybabtu.com>
20978 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
20979 checking for abi version. Improve error messages on BIOS to notify
20980 user about `linux16' command.
20982 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20986 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
20987 in case of collision
20988 * disk/scsi.c (grub_scsi_open): free scsi in case of error
20990 2009-03-29 Robert Millan <rmh@aybabtu.com>
20992 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
20993 set `vid_mode' accordingly.
20994 (grub_linux_boot): Process `vid_mode' and set video mode.
20996 2009-03-29 Robert Millan <rmh@aybabtu.com>
20998 * util/grub.d/10_linux.in (linux_entry): New function.
20999 Factorize generation of Linux boot entries.
21001 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
21003 Make the format of Environment Block plain text. The boot loader
21004 part is not tested well yet.
21006 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
21008 (envblk): Likewise.
21009 (usage): Remove "info" and "clear". Add "unset". Update the
21010 description of "set", as this does not delete variables any
21012 (create_envblk_file): Complete rewrite.
21013 (open_envblk_file): Likewise.
21014 (cmd_info): Removed.
21015 (cmd_list): Likewise.
21016 (cmd_set): Likewise.
21017 (cmd_clear): Likewise.
21018 (list_variables): New function.
21019 (write_envblk): Likewise.
21020 (set_variables): Likewise.
21021 (unset_variables): Likewise.
21022 (main): Complete rewrite.
21024 * commands/loadenv.c (buffer): Removed.
21025 (envblk): Likewise.
21026 (open_envblk_file): New function.
21027 (read_envblk_file): Complete rewrite.
21028 (grub_cmd_load_env): Likewise.
21029 (grub_cmd_list_env): Likewise.
21030 (struct blocklist): New struct.
21031 (free_blocklists): New function.
21032 (check_blocklists): Likewise.
21033 (write_blocklists): Likewise.
21034 (grub_cmd_save_env): Complete rewrite.
21036 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
21037 a plain text signature.
21038 (GRUB_ENVBLK_MAXLEN): Removed.
21039 (struct grub_envblk): Complete rewrite.
21040 (grub_envblk_find): Removed.
21041 (grub_envblk_insert): Likewise.
21042 (grub_envblk_open): New prototype.
21043 (grub_envblk_set): Likewise.
21044 (grub_envblk_delete): Put const to VALUE.
21045 (grub_envblk_iterate): Put const to NAME and VALUE.
21046 (grub_envblk_close): New prototype.
21047 (grub_envblk_buffer): New inline function.
21048 (grub_envblk_size): Likewise.
21050 * lib/envblk.c: Include grub/mm.h.
21051 (grub_env_find): Removed.
21052 (grub_envblk_open): New function.
21053 (grub_envblk_close): Likewise.
21054 (escaped_value_len): Likewise.
21055 (find_next_line): Likewise.
21056 (grub_envblk_insert): Removed.
21057 (grub_envblk_set): New function.
21058 (grub_envblk_delete): Complete rewrite.
21059 (grub_envblk_iterate): Likewise.
21061 2009-03-28 Robert Millan <rmh@aybabtu.com>
21063 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
21064 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
21065 variables. Use 16-bit loader.
21066 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
21068 * kern/i386/loader.S (grub_linux_boot): Rename to ...
21069 (grub_linux16_boot): ... this. Update all users.
21070 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
21071 (grub_linux_boot): ... this. Update all users.
21073 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
21074 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
21075 commands to `linux16' and `initrd16'.
21076 (GRUB_MOD_FINI(linux)): Rename to ...
21077 (GRUB_MOD_FINI(linux16)): ... this.
21079 2009-03-24 Pavel Roskin <proski@gnu.org>
21081 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
21082 not just for compilation.
21084 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
21086 Move multiboot helper out of kernel
21088 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
21089 `loader/i386/multiboot_helper.S'.
21090 * conf/i386-coreboot.rmk: Likewise
21091 * conf/i386-ieee1275.rmk: Likewise
21093 * kern/i386/loader.S: Move multiboot helpers from here...
21094 * loader/i386/multiboot_helper.S: ...moved here
21095 * include/grub/i386/loader.h: Move declarations of multiboot
21096 helpers from here...
21097 * include/grub/i386/multiboot.h: ...moved here
21098 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
21100 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21102 * kern/env.c (grub_env_context_open): Added an argument to specify
21103 whether a new context inherits exported variables from current
21104 one. This is useful when making a sandbox to interpret a config
21106 All callers updated.
21108 * include/grub/env.h (grub_env_context_open): Updated the prototype.
21110 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21112 * kern/env.c (grub_env_context_close): Fix memory leaks.
21114 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21116 * normal/main.c (grub_normal_execute): Added an argument
21117 BATCH to specify if an interactive interface should be provided
21118 after reading a config file.
21119 All callers updated.
21120 (read_command_list): Prevent being executed twice.
21121 (read_fs_list): Likewise.
21123 * include/grub/normal.h (grub_normal_execute): Updated the
21126 2009-03-22 Pavel Roskin <proski@gno.org>
21128 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
21130 * kern/i386/pc/startup.S: Likewise.
21131 * kern/i386/efi/startup.S: Likewise.
21132 * kern/i386/ieee1275/startup.S: Likewise.
21133 * kern/i386/coreboot/startup.S: Likewise.
21134 * kern/x86_64/efi/startup.S: Likewise.
21136 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
21137 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
21138 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
21140 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
21142 Bugfixes in multiboot for bugs uncovered by solaris kernel.
21144 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
21146 Use vaddr of correct segment for entry_point.
21148 2009-03-21 Bean <bean123ch@gmail.com>
21150 * commands/blocklist.c: Add include file <grub/command.h>, remove
21151 <grub/normal.h> and <grub/arg.h>.
21152 (grub_cmd_blocklist): Use the new command interface.
21153 (GRUB_MOD_INIT): Likewise.
21154 (GRUB_MOD_FINI): Likewise.
21155 * commands/boot.c: Likewise.
21156 * commands/cat.c: Likewise.
21157 * commands/cmp.c: Likewise.
21158 * commands/configfile.c: Likewise.
21159 * commands/crc.c: Likewise.
21160 * commands/echo.c: Likewise.
21161 * commands/halt.c: Likewise.
21162 * commands/handler.c: Likewise.
21163 * commands/hdparm.c: Likewise.
21164 * commands/help.c: Likewise.
21165 * commands/hexdump.c: Likewise.
21166 * commands/loadenv.c: Likewise.
21167 * commands/ls.c: Likewise.
21168 * commands/lsmmap.c: Likewise.
21169 * commands/lspci.c: Likewise.
21170 * commands/loadenv.c: Likewise.
21171 * commands/read.c: Likewise.
21172 * commands/reboot.c: Likewise.
21173 * commands/search.c: Likewise.
21174 * commands/sleep.c: Likewise.
21175 * commands/test.c: Likewise.
21176 * commands/usbtest.c: Likewise.
21177 * commands/videotest.c: Likewise.
21178 * commands/i386/cpuid.c: Likewise.
21179 * commands/i386/pc/halt.c: Likewise.
21180 * commands/i386/pc/play.c: Likewise.
21181 * commands/i386/pc/pxecmd.c: Likewise.
21182 * commands/i386/pc/vbeinfo.c: Likewise.
21183 * commands/i386/pc/vbetest.c: Likewise.
21184 * commands/ieee1275/suspend.c: Likewise.
21185 * disk/loopback.c: Likewise.
21186 * font/font_cmd.c: Likewise.
21187 * hello/hello.c: Likewise.
21188 * loader/efi/appleloader.c: Likewise.
21189 * loader/efi/chainloader.c: Likewise.
21190 * loader/i386/bsd.c: Likewise.
21191 * loader/i386/efi/linux.c: Likewise.
21192 * loader/i386/ieee1275/linux.c: Likewise.
21193 * loader/i386/linux.c: Likewise.
21194 * loader/i386/pc/chainloader.c: Likewise.
21195 * loader/i386/pc/linux.c: Likewise.
21196 * loader/powerpc/ieee1275/linux.c: Likewise.
21197 * loader/multiboot_loader.c: Likewise.
21198 * term/gfxterm.c: Likewise.
21199 * term/i386/pc/serial.c: Likewise.
21200 * term/terminfo.c: Likewise.
21202 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
21203 * term/i386/pc/vga.c: Likewise.
21204 * video/readers/jpeg.c: Likewise.
21205 * video/readers/png.c: Likewise.
21206 * video/readers/tga.c: Likewise.
21208 * util/grub-fstest (cmd_loopback): Removed.
21209 (cmd_blocklist): Likewise.
21210 (cmd_ls): Likewise.
21211 (grub_register_command): Likewise.
21212 (grub_unregister_command): Likewise.
21213 (execute_command): Use grub_command_find to locate command and execute
21216 * include/grub/efi/chainloader.h: Removed.
21217 * loader/efi/chainloader_normal.c: Likewise.
21218 * loader/i386/bsd_normal.c: Likewise.
21219 * loader/i386/pc/chainloader_normal.c: Likewise.
21220 * loader/i386/pc/multiboot_normal.c: Likewise.
21221 * loader/linux_normal.c: Likewise.
21222 * loader/multiboot_loader_normal.c: Likewise.
21223 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21225 * gencmdlist.sh: Scan new registration command grub_register_extcmd
21226 and grub_register_command_p1.
21228 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
21229 kern/command.c, lib/arg.c and commands/extcmd.c.
21230 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
21231 (minicmd_mod_SOURCES): New variable.
21232 (minicmd_mod_CFLAGS): Likewise.
21233 (minicmd_mod_LDFLAGS): Likewise.
21234 (extcmd_mod_SOURCES): Likewise.
21235 (extcmd_mod_CFLAGS): Likewise.
21236 (extcmd_mod_LDFLAGS): Likewise.
21237 (boot_mod_SOURCES): Removed.
21238 (boot_mod_CFLAGS): Likewise.
21239 (boot_mod_LDFLAGS): Likewise.
21241 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
21243 (kernel_img_HEADERS): Add command.h.
21244 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
21245 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
21247 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
21248 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
21249 remove the corresponding normal mode command.
21250 (normal_mod_SOURCES): Remove normal/arg.c.
21251 * conf/i386-coreboot.rmk: Likewise.
21252 * conf/i386-efi.rmk: Likewise.
21253 * conf/i386-ieee1275.rmk: Likewise.
21254 * conf/powerpc-ieee1275.rmk: Likewise.
21255 * conf/x86_64-efi.rmk: Likewise.
21257 * include/grub/arg.h: Move from here ...
21258 * include/grub/lib/arg.h: ... to here.
21260 * normal/arg.c: Move from here ...
21261 * lib/arg.c: ... to here.
21263 * commands/extcmd.c: New file.
21264 * commands/minicmd.c: Likewise.
21265 * include/grub/command.h: Likewise.
21266 * include/grub/extcmd.h: Likewise.
21267 * kern/command.c: Likewise.
21268 * kern/corecmd.c: Likewise.
21270 * kern/list.c (grub_list_iterate): Return int instead of void.
21271 (grub_list_insert): New function.
21272 (grub_prio_list_insert): Likewise.
21274 * kern/rescue.c (grub_rescue_command): Removed.
21275 (grub_rescue_command_list): Likewise.
21276 (grub_rescue_register_command): Likewise.
21277 (grub_rescue_unregister_command): Likewise.
21278 (grub_rescue_cmd_boot): Move to minicmd.c
21279 (grub_rescue_cmd_help): Likewise.
21280 (grub_rescue_cmd_info): Likewise.
21281 (grub_rescue_cmd_boot): Likewise.
21282 (grub_rescue_cmd_testload): Likewise.
21283 (grub_rescue_cmd_dump): Likewise.
21284 (grub_rescue_cmd_rmmod): Likewise.
21285 (grub_rescue_cmd_lsmod): Likewise.
21286 (grub_rescue_cmd_exit): Likewise.
21287 (grub_rescue_print_devices): Moved to corecmd.c.
21288 (grub_rescue_print_files): Likewise.
21289 (grub_rescue_cmd_ls): Likewise.
21290 (grub_rescue_cmd_insmod): Likewise.
21291 (grub_rescue_cmd_set): Likewise.
21292 (grub_rescue_cmd_unset): Likewise.
21293 (attempt_normal_mode): Use grub_command_find to get normal module.
21294 (grub_enter_rescue_mode): Use grub_register_core_commands to register
21295 commands, remove grub_rescue_register_command calls.
21297 * normal/command.c (grub_register_command): Removed.
21298 (grub_unregister_command): Likewise.
21299 (grub_command_find): Likewise.
21300 (grub_iterate_commands): Likewise.
21301 (rescue_command): Likewise.
21302 (export_command): Moved to corecmd.c.
21303 (set_command): Removed.
21304 (unset_command): Likewise.
21305 (insmod_command): Likewise.
21306 (rmmod_command): Likewise.
21307 (lsmod_command): Likewise.
21308 (grub_command_init): Likewise.
21310 * normal/completion.c (iterate_command): Use cmd->prio to check for
21312 (complete_arguments): Use grub_extcmd_t structure to find options.
21313 (grub_normal_do_completion): Change function grub_iterate_commands to
21314 grub_command_iterate.
21316 * normal/execute.c (grub_script_execute_cmd): No need to parse
21319 * normal/main.c (grub_dyncmd_dispatcher): New function.
21320 (read_command_list): Register unload commands as dyncmd.
21321 (grub_cmd_normal): Use new command interface, register rescue,
21322 unregister normal at entry, register normal, unregister rescue at exit.
21324 * include/grub/list.h (grub_list_test_t): New type.
21325 (grub_list_iterate): Return int instead of void.
21326 (grub_list_insert): New function.
21327 (GRUB_AS_NAMED_LIST_P): New macro.
21328 (GRUB_AS_PRIO_LIST): Likewise.
21329 (GRUB_AS_PRIO_LIST_P): Likewise.
21330 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
21331 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
21332 (grub_prio_list): New structure.
21333 (grub_prio_list_insert): New function.
21334 (grub_prio_list_remove): New inline function.
21336 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
21337 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
21338 (GRUB_COMMAND_FLAG_MENU): Likewise.
21339 (GRUB_COMMAND_FLAG_BOTH): Likewise.
21340 (GRUB_COMMAND_FLAG_TITLE): Likewise.
21341 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
21342 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
21343 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
21344 (grub_command): Likewise.
21345 (grub_register_command): Likewise.
21346 (grub_command_find): Likewise.
21347 (grub_iterate_commands): Likewise.
21348 (grub_command_init): Likewise.
21349 (grub_arg_parse): Likewise.
21350 (grub_arg_show_help): Likewise.
21352 * include/grub/rescue.h (grub_rescue_register_command): Removed.
21353 (grub_rescue_unregister_command): Likewise.
21355 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
21356 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
21357 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
21359 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
21360 grub_rescue_cmd_initrd.
21361 * include/grub/i386/loader.h: Likewise.
21362 * include/grub/x86_64/loader.h: Likewise.
21364 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
21366 2009-03-21 Bean <bean123ch@gmail.com>
21368 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
21369 instead of stat in mingw environment.
21371 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
21373 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
21375 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
21378 2009-03-21 Bean <bean123ch@gmail.com>
21380 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
21381 out of range error.
21383 2009-03-18 Michel Dänzer <michel@daenzer.net>
21385 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
21386 checking inode flags for EXT4_EXTENTS_FLAG.
21388 2009-03-18 Robert Millan <rmh@aybabtu.com>
21390 * loader/i386/linux.c: Include `<grub/video.h>' and
21391 `<grub/i386/pc/vbe.h>'..
21392 (grub_linux_setup_video): New function. Loosely based on the EFI one.
21393 (grub_linux32_boot): Attempt to configure video settings with
21394 grub_linux_setup_video().
21395 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
21396 to avoid grub_console_fini() which would step out of graphical mode
21399 2009-03-14 Robert Millan <rmh@aybabtu.com>
21401 Fix build on powerpc.
21402 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
21404 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
21406 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
21407 background image command.
21409 2009-03-12 Colin D Bennett <colin@gibibit.com>
21411 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
21412 (grub_gfxterm_putchar): Extract pairs of identical calls to
21413 draw_cursor out of conditional blocks.
21415 2009-03-11 Pavel Roskin <proski@gnu.org>
21417 * fs/hfs.c (grub_hfs_strncasecmp): New function.
21418 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
21420 2009-03-11 Robert Millan <rmh@aybabtu.com>
21422 * loader/i386/multiboot_elfxx.c
21423 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
21425 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
21427 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
21430 2009-03-11 Robert Millan <rmh@aybabtu.com>
21432 * loader/i386/multiboot.c (code_size): New variable.
21433 (grub_multiboot): Define offsets by adding to `code_size' rather
21434 than subtracting from `grub_multiboot_payload_size'. Provide
21435 4-byte alignment to MBI and others by increasing
21436 `boot_loader_name_length' appropriately.
21438 * loader/i386/multiboot_elfxx.c
21439 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
21441 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
21443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
21446 2009-03-08 Robert Millan <rmh@aybabtu.com>
21448 Make loader/i386/linux.c usable on i386-pc again.
21450 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
21452 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
21455 2009-03-07 Bean <bean123ch@gmail.com>
21457 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
21460 2009-03-06 Robert Millan <rmh@aybabtu.com>
21462 Fix display issue on terminals with screen size other than 80x25
21463 (e.g. gfxterm with resolution higher than 640x480).
21465 * normal/main.c (grub_normal_init_page): Display title text in a
21466 position relative to the center of the terminal instead of relying
21467 on a hardcoded offset.
21469 2009-03-04 Robert Millan <rmh@aybabtu.com>
21471 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
21474 * Makefile.in (host_kernel): New variable.
21475 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
21476 scripts instead of just the windows one.
21477 * configure.ac: Initialize and AC_SUBST `host_kernel'.
21479 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21481 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
21483 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21484 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21487 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21488 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21490 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21492 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
21493 or if there's no space for the disk label and print the partition number on a
21496 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21498 * util/misc.c: Include <time.h>.
21499 (grub_millisleep): New function.
21501 2009-03-04 Bean <bean123ch@gmail.com>
21503 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
21504 another option -mno-red-zone.
21506 * commands/handler.c: Change module description.
21508 * kern/handler.c: Add missing space at the end of description line.
21510 * kern/list.c: Likewise.
21512 2009-03-03 Robert Millan <rmh@aybabtu.com>
21514 Move more components to the relocation area, and fix mbi pointer
21515 handling to use the destination rather than the origin (thanks to
21516 Vladimir Serbinenko for spotting).
21518 * loader/i386/multiboot.c (mbi_dest): New variable.
21519 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
21520 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
21523 2009-03-01 Bean <bean123ch@gmail.com>
21525 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
21526 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
21527 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
21528 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
21530 * loader/i386/efi/linux.c (acpi_guid): New variable.
21531 (acpi_guid): Likewise.
21532 (EBDA_SEG_ADDR): New constant.
21533 (LOW_MEM_ADDR): Likewise.
21534 (FAKE_EBDA_SEG): Likewise.
21535 (fake_bios_data): New function.
21536 (grub_linux_boot): Call fake_bios_data.
21538 2009-03-01 Bean <bean123ch@gmail.com>
21540 * commands/terminal.c: Removed.
21542 * commands/handler.c: New file.
21544 * include/grub/list.h: Likewise.
21546 * include/grub/handler.h: Likewise.
21548 * kern/list.c: Likewise.
21550 * kern/handler.c: Likewise.
21552 * kern/term.h: Include header file <grub/handler.h>.
21553 (grub_term_input): Move next field to the beginning.
21554 (grub_term_output): Likewise.
21555 (grub_term_input_class): New variable.
21556 (grub_term_output_class): Likewise.
21557 (grub_term_register_input): Changed to inline function.
21558 (grub_term_register_output): Likewise.
21559 (grub_term_unregister_input): Likewise.
21560 (grub_term_unregister_output): Likewise.
21561 (grub_term_set_current_input): Likewise.
21562 (grub_term_set_current_output): Likewise.
21563 (grub_term_get_current_input): Likewise.
21564 (grub_term_get_current_output): Likewise.
21565 (grub_term_iterate_input): Removed.
21566 (grub_term_iterate_output): Likewise.
21568 * kern/term.c (grub_term_list_input): Removed.
21569 (grub_term_list_output): Likewise.
21570 (grub_term_input_class): New variable.
21571 (grub_term_output_class): Likewise.
21572 (grub_cur_term_input): Change variable as macro.
21573 (grub_cur_term_output): Likewise.
21574 (grub_term_register_input): Removed.
21575 (grub_term_register_output): Likewise.
21576 (grub_term_unregister_input): Likewise.
21577 (grub_term_unregister_output): Likewise.
21578 (grub_term_set_current_input): Likewise.
21579 (grub_term_set_current_output): Likewise.
21580 (grub_term_iterate_input): Likewise.
21581 (grub_term_iterate_output): Likewise.
21582 (grub_term_get_current_input): Likewise.
21583 (grub_term_get_current_output): Likewise.
21585 * util/grub-editenv.c: Include header file <grub/handler.h>.
21586 (grub_term_get_current_input): Removed.
21587 (grub_term_get_current_output): Likewise.
21588 (grub_term_input_class): New variable.
21589 (grub_term_output_class): Likewise.
21591 * util/grub-fstest.c (grub_term_get_current_input): Removed.
21592 (grub_term_get_current_output): Likewise.
21593 (grub_term_input_class): New variable.
21594 (grub_term_output_class): Likewise.
21596 * util/grub-probe.c (grub_term_get_current_input): Removed.
21597 (grub_term_get_current_output): Likewise.
21598 (grub_term_input_class): New variable.
21599 (grub_term_output_class): Likewise.
21601 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
21602 (grub_term_get_current_output): Likewise.
21603 (grub_term_input_class): New variable.
21604 (grub_term_output_class): Likewise.
21606 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
21607 (terminal_mod_SOURCES): Likewise.
21608 (terminal_mod_CFLAGS): Likewise.
21609 (terminal_mod_LDFLAGS): Likewise.
21611 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
21613 (kernel_img_SOURCES): Add list.c and handler.c.
21614 (kernel_img_HEADERS): Add list.h and handler.h.
21616 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21618 (kernel_mod_SOURCES): Add list.c and handler.c.
21619 (kernel_mod_HEADERS): Add list.h and handler.h.
21621 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
21623 (kernel_elf_SOURCES): Add list.c and handler.c.
21624 (kernel_elf_HEADERS): Add list.h and handler.h.
21626 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21628 (kernel_elf_SOURCES): Add list.c and handler.c.
21629 (kernel_elf_HEADERS): Add list.h and handler.h.
21631 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21633 (kernel_mod_SOURCES): Add list.c and handler.c.
21634 (kernel_mod_HEADERS): Add list.h and handler.h.
21636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21638 (kernel_elf_SOURCES): Add list.c and handler.c.
21639 (kernel_elf_HEADERS): Add list.h and handler.h.
21641 2009-02-27 Robert Millan <rmh@aybabtu.com>
21643 Factorize elf32 / elf64 code in Multiboot loader. This will
21644 prevent it from getting out of sync again.
21646 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
21647 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
21648 grub_multiboot_load_elf64): Move from here ...
21649 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
21650 grub_multiboot_load_elf): ... to here (new file).
21652 2009-02-27 Robert Millan <rmh@aybabtu.com>
21654 * util/grub.d/10_linux.in: Rename "single-user mode" to
21657 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
21659 Don't leak in SCSI code.
21660 * disk/scsi.c (grub_scsi_close): free `scsi'.
21662 2009-02-27 Robert Millan <rmh@aybabtu.com>
21664 * loader/i386/pc/multiboot.c: Move from here ...
21665 * loader/i386/multiboot.c: ... to here. Update all users.
21667 2009-02-27 Robert Millan <rmh@aybabtu.com>
21669 Patch from Alexandre Bique <bique.alexandre@gmail.com>
21670 * util/i386/pc/grub-setup.c (setup): Fix directory path.
21672 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
21674 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
21677 2009-02-27 Robert Millan <rmh@aybabtu.com>
21679 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
21680 `0x' qualifier as 0 when base is specified as parameter).
21682 2009-02-24 Bean <bean123ch@gmail.com>
21684 * configure.ac: Check for -mcmodel=large in x86_64 target.
21686 * include/grub/efi/api.h (efi_call_10): New macro.
21687 (efi_wrap_10): New function.
21689 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
21690 (GRUB_PE32_REL_BASED_HIGH): Likewise.
21691 (GRUB_PE32_REL_BASED_LOW): Likewise.
21692 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
21693 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
21694 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
21695 (GRUB_PE32_REL_BASED_SECTION): Likewise.
21696 (GRUB_PE32_REL_BASED_REL): Likewise.
21697 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
21698 (GRUB_PE32_REL_BASED_DIR64): Likewise.
21699 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
21701 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
21704 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
21705 (efi_wrap_10): New function.
21707 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
21709 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
21710 MB/MBP model (NV chipset).
21711 (devdata_devs): Add devpath_5 to the list.
21713 * load/i386/efi/linux.c (video_base): Remove variable.
21714 (RGB_MASK): New macro.
21715 (RGB_MAGIC): Likewise.
21716 (LINE_MIN): Likewise.
21717 (LINE_MAX): Likewise.
21718 (FBTEST_STEP): Likewise.
21719 (FBTEST_COUNT): Likewise.
21720 (fb_list): New variable.
21721 (grub_find_video_card): Remove function.
21722 (find_framebuf): New function.
21723 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
21726 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
21727 problem for x86_64.
21729 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
21731 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
21733 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
21736 2009-02-22 Robert Millan <rmh@aybabtu.com>
21738 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
21739 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
21740 in our relocation, instead of using it directly from heap. Also
21741 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
21743 2009-02-21 Robert Millan <rmh@aybabtu.com>
21745 Implement USB keyboard support (based on patch by Marco Gerards)
21747 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
21748 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
21749 (usb_keyboard_mod_LDFLAGS): New variables.
21751 * term/usb_keyboard.c: New file.
21753 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21755 Corrected wrong declaration
21757 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
21759 2009-02-14 Christian Franke <franke@computer.org>
21761 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
21762 (grub_lspci_iter): Print class code and programming interface byte.
21764 2009-02-14 Christian Franke <franke@computer.org>
21766 * gendistlist.sh: Ignore `.svn' directories.
21768 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
21770 * fs/fat.c: Add 2009 to Copyright line.
21772 2009-02-14 Christian Franke <franke@computer.org>
21774 * commands/hdparm.c: New file. Provides `hdparm' command
21775 which sends ATA commands via grub_disk_ata_pass_through ().
21777 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
21779 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
21780 and <grub/cpu/io.h> to include/grub/ata.h.
21781 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
21782 (GRUB_CDROM_SECTOR_SIZE): Remove.
21783 (GRUB_ATA_*): Move to include/grub/ata.h.
21784 (GRUB_ATAPI_*): Likewise.
21785 (enum grub_ata_commands): Likewise.
21786 (enum grub_ata_timeout_milliseconds): Likewise.
21787 (struct grub_ata_device): Likewise.
21788 (grub_ata_regset): Likewise.
21789 (grub_ata_regget): Likewise.
21790 (grub_ata_regset2): Likewise.
21791 (grub_ata_regget2): Likewise.
21792 (grub_ata_check_ready): Likewise.
21793 (grub_ata_wait_not_busy): Remove static, exported in
21794 include/grub/ata.h.
21795 (grub_ata_wait_drq): Likewise.
21796 (grub_ata_pio_read): Likewise.
21798 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
21799 function for hdparm.mod.
21801 * include/grub/ata.h: New file, contains declarations from
21803 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
21805 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
21806 (grub_disk_ata_pass_through): New exported variable.
21808 * kern/disk.c (grub_disk_ata_pass_through): New variable.
21810 2009-02-13 Colin D Bennett <colin@gibibit.com>
21812 Support multiple fallback entries, and provide an API to support
21813 executing default+fallback menu entries. Renamed the `terminal' menu
21816 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
21817 variable declaration.
21818 (grub_menu_execute_callback): New structure declaration.
21819 (grub_menu_execute_callback_t): New typedef.
21820 (grub_menu_execute_with_fallback): New function declaration.
21821 (grub_menu_get_entry): Likewise.
21822 (grub_menu_get_timeout): Likewise.
21823 (grub_menu_set_timeout): Likewise.
21825 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
21827 * normal/menu.c (grub_wait_after_message): Moved to
21828 `normal/menu_text.c'.
21829 (draw_border): Likewise.
21830 (print_message): Likewise.
21831 (print_entry): Likewise.
21832 (print_entries): Likewise.
21833 (grub_menu_init_page): Likewise.
21834 (get_entry_number): Likewise.
21835 (print_timeout): Likewise.
21836 (run_menu): Likewise.
21837 (grub_menu_execute_entry): Likewise.
21838 (show_text_menu): Likewise.
21839 (get_and_remove_first_entry_number): New function.
21840 (grub_menu_execute_with_fallback): Likewise.
21841 (get_entry): Renamed to ...
21842 (grub_menu_get_entry): .. this and made it global.
21843 (get_timeout): Renamed to ...
21844 (grub_menu_get_timeout): ... this and made it global.
21845 (set_timeout): Renamed to ...
21846 (grub_menu_set_timeout): ... this and made it global.
21847 (grub_normal_terminal_menu_viewer): Renamed to ...
21848 (grub_normal_text_menu_viewer): ... this.
21850 * normal/menu_text.c: New file. Extracted text-menu-specific code
21851 from normal/menu.c.
21853 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
21854 (normal_mod_SOURCES): Likewise.
21856 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21857 (normal_mod_SOURCES): Likewise.
21859 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21860 (normal_mod_SOURCES): Likewise.
21862 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
21863 (normal_mod_SOURCES): Likewise.
21865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21866 (normal_mod_SOURCES): Likewise.
21868 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21869 (normal_mod_SOURCES): Likewise.
21871 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21872 (normal_mod_SOURCES): Likewise.
21874 2009-02-11 Robert Millan <rmh@aybabtu.com>
21876 * util/grub.d/00_header.in: Update old reference to `font' command.
21878 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
21880 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
21882 Based on patch from Javier Martín.
21884 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
21886 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
21887 to avoid false positives with FAT.
21888 (grub_fstest_SOURCES): Likewise.
21889 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21890 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21891 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21893 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21896 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
21898 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
21899 bpb.version_specific.fat12_or_fat16.fstype and
21900 bpb.version_specific.fat32.fstype.
21902 2009-02-08 Robert Millan <rmh@aybabtu.com>
21904 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
21906 2009-02-08 Robert Millan <rmh@aybabtu.com>
21908 * Makefile.in (host_os, host_cpu): New variables.
21909 (target_os): Remove. Update all users.
21911 2009-02-08 Marco Gerards <marco@gnu.org>
21913 * Makefile.in (enable_grub_emu_usb): New variable.
21914 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
21915 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
21916 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
21917 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
21918 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
21919 `usbtest.mod' and `usbms.mod'.
21920 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
21921 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
21922 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
21923 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
21924 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
21927 * disk/usbms.c: New file.
21929 * include/grub/usb.h: Likewise.
21931 * include/grub/usbtrans.h: Likewise.
21933 * include/grub/usbdesc.h: Likewise.
21935 * bus/usb/usbtrans.c: Likewise.
21937 * bus/usb/ohci.c: Likewise.
21939 * bus/usb/uhci.c: Likewise.
21941 * bus/usb/usbhub.c: Likewise.
21943 * bus/usb/usb.c: Likewise.
21945 * commands/usbtest.c: Likewise.
21947 * util/usb.c: Likewise.
21949 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
21951 * configure.ac: Test for libusb presence.
21953 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
21955 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
21957 * kern/mm.c: Add more comments.
21959 2009-02-08 Robert Millan <rmh@aybabtu.com>
21961 Patch from Javier Martín.
21962 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
21963 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
21965 2009-02-08 Robert Millan <rmh@aybabtu.com>
21967 * fs/cpio.c: Split tar functionality to ...
21968 * fs/tar.c: ... here (new file). Update all users.
21970 2009-02-07 Robert Millan <rmh@aybabtu.com>
21972 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
21973 backward-incompatible features.
21975 Based on patch from Javier Martín, with some adjustments.
21977 2009-02-07 Michael Scherer <misc@mandriva.org>
21979 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
21981 2009-02-07 Robert Millan <rmh@aybabtu.com>
21983 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
21984 position of `disk/lvm.c' to ensure grub_init_all() always picks it
21985 after the RAID stuff.
21987 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
21989 Fixes problem when running vbetest command as reported by
21990 Vladimir Serbinenko <phcoder@gmail.com>.
21992 * (grub_vbe_set_video_mode): Fixed problem with text modes.
21994 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
21996 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
21997 /dev/md/NpN style mdraid devices.
21999 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22001 * util/unifont2pff.rb: Remove.
22003 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22005 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
22008 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
22010 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
22011 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22012 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22013 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22015 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22016 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22018 2009-02-02 Christian Franke <franke@computer.org>
22020 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
22022 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
22024 * INSTALL: Note that we now require at least autoconf 2.59 and
22025 that LZO is optional.
22027 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22029 Base on patch on bug #24154 created by Tomas Tintera
22030 <trosos@seznam.cz>.
22032 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
22034 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22036 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
22037 <bero@arklinux.org>.
22039 * normal/parser.y (script_init): Add missing semicolon.
22041 2009-01-31 Colin D Bennett <colin@gibibit.com>
22043 * normal/main.c: Add include to grub/menu_viewer.h.
22044 (free_menu_entry_classes): Added.
22045 (grub_normal_menu_addentry): Added class property handling.
22046 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
22047 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
22049 * normal/menu_viewer.c: New file.
22051 * normal/menu.c (run_menu_entry): Renamed to ...
22052 (grub_menu_execute_entry): ... this and made it as global.
22053 (grub_menu_run): Renamed to ...
22054 (show_text_menu): ... this and made it local.
22055 (show_text_menu): Adapt to new function names.
22056 (grub_normal_terminal_menu_viewer): New global variable.
22058 * include/grub/menu.h: New file.
22060 * include/grub/menu_viewer.h: New file.
22062 * include/grub/normal.h: Added include to grub/menu.h.
22063 (grub_menu_entry): Moved to include/grub/menu.h.
22064 (grub_menu_entry_t): Likewise.
22065 (grub_menu): Likewise.
22066 (grub_menu_t): Likewise.
22067 (grub_normal_terminal_menu_viewer): Added.
22068 (grub_menu_execute_entry): Likewise.
22069 (grub_menu_run): Removed.
22071 * DISTLIST: Added include/grub/menu.h.
22072 Added include/grub/menu_viewer.h.
22073 Added normal/menu_viewer.c.
22075 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
22077 * normal/execute.c (grub_script_execute_menuentry): Changed to use
22078 arglist for menutitle arguments.
22080 * normal/main.c (grub_normal_menu_addentry): Likewise.
22082 * normal/parser.y (menuentry): Likewise.
22084 * normal/script.c (grub_script_create_cmdmenu): Likewise.
22086 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
22087 (grub_script_create_cmdmenu): Likewise.
22089 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
22091 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
22094 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
22096 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
22098 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
22100 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22102 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22104 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22106 2009-01-30 Christian Franke <franke@computer.org>
22108 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
22109 in option help text.
22111 2009-01-27 Pavel Roskin <proski@gnu.org>
22113 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
22115 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22117 * commands/lsmmap.c: Add include to grub/machine/memory.h.
22119 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
22121 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
22122 unregister function.
22124 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22126 * disk/scsi.c (grub_scsi_read): Fix sign problem.
22128 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
22130 * util/grub-mkfont.c (usage): Fix typo.
22132 * util/elf/grub-mkimage.c (load_modules): Fix warning.
22134 2009-01-26 Daniel Mierswa <impulze@impulze.org>
22136 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
22138 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
22140 * kern/misc.c (grub_strcasecmp): New function.
22141 (grub_strcasecmp): Use grub_size_t instead of int for length.
22143 * include/grub/misc.h: Update function prototypes.
22145 2009-01-26 Robert Millan <rmh@aybabtu.com>
22147 * configure.ac: Fix cross-compilation check.
22149 2009-01-22 Christian Franke <franke@computer.org>
22151 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
22152 (precision) digit string. Allow `.format2' without `format1' (width).
22153 Limit input chars for `%s' output to `format2' if specified. This is
22154 compatible with standard printf ().
22156 2009-01-22 Christian Franke <franke@computer.org>
22158 * disk/ata.c (grub_ata_wait_status): Replace by ...
22159 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
22160 other status bits may be invalid while BSY is asserted.
22161 (grub_ata_check_ready): New function.
22162 (grub_ata_cmd): Removed.
22163 (grub_ata_wait_drq): New function.
22164 (grub_ata_strncpy): Remove inline.
22165 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
22166 and error check now done by grub_ata_wait_drq ().
22167 (grub_ata_pio_write): Likewise.
22168 (grub_atapi_identify): Set DEV before check for !BSY. Use
22169 grub_ata_wait_drq () to wait for data.
22170 (grub_ata_device_initialize): Add status register check to
22171 detect missing SATA slave devices. Add debug messages.
22172 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
22173 (grub_atapi_packet): Set DEV before check for !BSY. Replace
22174 transfer loop by grub_ata_pio_write ().
22175 (grub_ata_identify): Set DEV before check for !BSY. Use
22176 grub_ata_wait_drq () to wait for data.
22177 (grub_ata_setaddress): Set DEV before check for !BSY.
22178 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
22179 read/write in one loop. Fix invalid command on write. Fix incomplete
22180 command on (size % batch) == 0. Add missing error check after write of
22181 last block. Add debug messages.
22182 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
22184 2009-01-19 Christian Franke <franke@computer.org>
22186 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
22187 (GRUB_ATAPI_IREASON_*): Likewise.
22188 (grub_ata_pio_write): Fix timeout error return.
22189 (grub_atapi_identify): Add grub_ata_wait () after cmd.
22190 (grub_atapi_wait_drq): New function.
22191 (grub_atapi_packet): New parameter `size'.
22192 Use grub_atapi_wait_drq () and direct write instead of
22193 grub_ata_pio_write ().
22194 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
22195 reads the number of bytes requested by the device for each DRQ
22197 (grub_atapi_write): Remove old implementation, return not
22198 implemented instead.
22200 2009-01-19 Christian Franke <franke@computer.org>
22202 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
22203 of 512 to calculate data size.
22204 (grub_scsi_read12): Likewise.
22205 (grub_scsi_write10): Likewise.
22206 (grub_scsi_write12): Likewise.
22207 (grub_scsi_read): Adjust size according to blocksize.
22208 Add checks for invalid blocksize and unaligned transfer.
22210 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
22212 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
22214 * term/gfxterm.c (write_char): Fix background rendering for wide
22217 2009-01-19 Robert Millan <rmh@aybabtu.com>
22219 * config.guess: Update to latest version from config git.
22220 * config.sub: Likewise.
22222 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
22224 * Makefile.in: Change font compilation to use new grub-mkfont instead
22227 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
22228 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22229 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22230 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22231 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22232 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22233 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22234 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22235 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22237 2009-01-16 Christian Franke <franke@computer.org>
22239 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
22240 (enum grub_ata_timeout_milliseconds): New enum.
22241 (grub_ata_wait_status): Add parameter milliseconds.
22242 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
22243 recovery from timed-out commands.
22244 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
22245 return grub_errno instead of REG_ERROR.
22246 (grub_ata_pio_write): Add parameter milliseconds.
22247 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
22248 Pass milliseconds to grub_ata_wait_status () and
22249 grub_ata_pio_read ().
22250 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
22251 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
22252 grub_ata_wait_status (). Fix IDENTIFY timeout check.
22253 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
22254 It is not suitable for device detection, because DEV bit is ignored,
22255 the command may run too long, and not all devices set the signature
22257 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
22258 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
22259 Fix device selection, DEV bit must be set first to address the registers
22260 of the correct device.
22261 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
22262 grub_ata_pio_read/write ().
22263 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
22264 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
22266 2009-01-13 Carles Pina i Estany <carles@pina.cat>
22268 * util/grub-editenv.c (main): Use fseeko(), not fseek().
22270 2009-01-13 Bean <bean123ch@gmail.com>
22272 * util/grub-mkfont.c (write_font): forget to remove some debug code.
22274 2009-01-13 Bean <bean123ch@gmail.com>
22276 * Makefile.in: (enable_grub_mkfont): New variable.
22277 (freetype_cflags): Likewise.
22278 (freetype_libs): Likewise.
22280 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
22281 (grub_mkfont_SOURCES): New variable.
22282 (grub_mkfont_CFLAGS): Likewise.
22283 (grub_mkfont_LDFLAGS): Likewise.
22285 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
22286 library if `--enable-grub-mkfont' is requested.
22287 (enable_grub_mkfont): New variable.
22288 (freetype_cflags): Likewise.
22289 (freetype_libs): Likewise.
22291 * util/grub-mkfont.c: New file.
22293 2009-01-12 Christian Franke <franke@computer.org>
22295 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
22296 mode check. Fix setting of compat_use[].
22298 2009-01-10 Robert Millan <rmh@aybabtu.com>
22300 Update a few copyright years which we forgot to do in 2008 (only for
22301 files whose changes made in 2008 were copyright-significant)
22303 * Makefile.in: Add 2008 to Copyright line.
22304 * disk/ieee1275/ofdisk.c: Likewise.
22305 * disk/efi/efidisk.c: Likewise.
22306 * kern/dl.c: Likewise.
22307 * kern/sparc64/ieee1275/init.c: Likewise.
22308 * kern/mm.c: Likewise.
22309 * kern/efi/mm.c: Likewise.
22310 * boot/i386/pc/boot.S: Likewise.
22311 * genfslist.sh: Likewise.
22312 * fs/iso9660.c: Likewise.
22313 * fs/hfs.c: Likewise.
22314 * fs/jfs.c: Likewise.
22315 * fs/minix.c: Likewise.
22316 * fs/ufs.c: Likewise.
22317 * gensymlist.sh.in: Likewise.
22318 * genkernsyms.sh.in: Likewise.
22319 * include/grub/misc.h: Likewise.
22320 * include/grub/types.h: Likewise.
22321 * include/grub/symbol.h: Likewise.
22322 * include/grub/elf.h: Likewise.
22323 * include/grub/kernel.h: Likewise.
22324 * include/grub/disk.h: Likewise.
22325 * include/grub/dl.h: Likewise.
22326 * include/grub/i386/linux.h: Likewise.
22327 * include/grub/i386/pc/biosdisk.h: Likewise.
22328 * include/grub/efi/api.h: Likewise.
22329 * include/grub/efi/pe32.h: Likewise.
22330 * include/grub/util/misc.h: Likewise.
22331 * normal/execute.c: Likewise.
22332 * normal/arg.c: Likewise.
22333 * normal/completion.c: Likewise.
22334 * normal/lexer.c: Likewise.
22335 * normal/parser.y: Likewise.
22336 * normal/misc.c: Likewise.
22337 * commands/i386/pc/vbeinfo.c: Likewise.
22338 * commands/hexdump.c: Likewise.
22339 * commands/terminal.c: Likewise.
22340 * commands/ls.c: Likewise.
22341 * commands/help.c: Likewise.
22342 * partmap/pc.c: Likewise.
22343 * loader/efi/chainloader.c: Likewise.
22344 * loader/multiboot_loader.c: Likewise.
22345 * loader/i386/pc/multiboot2.c: Likewise.
22346 * term/efi/console.c: Likewise.
22347 * term/i386/pc/serial.c: Likewise.
22348 * util/lvm.c: Likewise.
22349 * util/console.c: Likewise.
22350 * util/i386/efi/grub-mkimage.c: Likewise.
22351 * util/raid.c: Likewise.
22353 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
22355 * commands/videotest.c: Removed include to grub/machine/memory.h.
22357 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
22358 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
22359 (video_mod_SOURCES): Removed.
22360 (video_mod_CFLAGS): Likewise.
22361 (video_mod_LDFLAGS): Likewise.
22362 (gfxterm_mod_SOURCES): Likewise.
22363 (gfxterm_mod_CFLAGS): Likewise.
22364 (gfxterm_mod_LDFLAGS): Likewise.
22365 (videotest_mod_SOURCES): Likewise.
22366 (videotest_mod_CFLAGS): Likewise.
22367 (videotest_mod_LDFLAGS): Likewise.
22368 (bitmap_mod_SOURCES): Likewise.
22369 (bitmap_mod_CFLAGS): Likewise.
22370 (bitmap_mod_LDFLAGS): Likewise.
22371 (tga_mod_SOURCES): Likewise.
22372 (tga_mod_CFLAGS): Likewise.
22373 (tga_mod_LDFLAGS): Likewise.
22374 (jpeg_mod_SOURCES): Likewise.
22375 (jpeg_mod_CFLAGS): Likewise.
22376 (jpeg_mod_LDFLAGS): Likewise.
22377 (png_mod_SOURCES): Likewise.
22378 (png_mod_CFLAGS): Likewise.
22379 (png_mod_LDFLAGS): Likewise.
22381 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
22382 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
22383 (video_mod_SOURCES): Added.
22384 (video_mod_CFLAGS): Likewise.
22385 (video_mod_LDFLAGS): Likewise.
22386 (videotest_mod_SOURCES): Likewise.
22387 (videotest_mod_CFLAGS): Likewise.
22388 (videotest_mod_LDFLAGS): Likewise.
22389 (bitmap_mod_SOURCES): Likewise.
22390 (bitmap_mod_CFLAGS): Likewise.
22391 (bitmap_mod_LDFLAGS): Likewise.
22392 (tga_mod_SOURCES): Likewise.
22393 (tga_mod_CFLAGS): Likewise.
22394 (tga_mod_LDFLAGS): Likewise.
22395 (jpeg_mod_SOURCES): Likewise.
22396 (jpeg_mod_CFLAGS): Likewise.
22397 (jpeg_mod_LDFLAGS): Likewise.
22398 (png_mod_SOURCES): Likewise.
22399 (png_mod_CFLAGS): Likewise.
22400 (png_mod_LDFLAGS): Likewise.
22401 (gfxterm_mod_SOURCES): Likewise.
22402 (gfxterm_mod_CFLAGS): Likewise.
22403 (gfxterm_mod_LDFLAGS): Likewise.
22405 * term/gfxterm.c: Removed include to grub/machine/memory.h,
22406 grub/machine/console.h.
22408 2009-01-04 Jerone Young <jerone@gmail.com>
22410 Make on screen instructions clearer
22412 Based on patch created by Jidanni <jidanni@jidanni.org>
22414 * normal/menu.c: print clearer instructions on the screen
22416 2009-01-02 Colin D Bennett <colin@gibibit.com>
22420 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
22421 build system and fixed gfxterm.c to work with different sized fonts.
22423 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
22425 * configure: Re-generated.
22427 * DISTLIST: Removed font/manager.c.
22429 Added font/font_cmd.c.
22431 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
22434 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
22436 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
22438 * kern/term.c: Changed users of grub_utf8_to_ucs4.
22440 * normal/menu.c: Likewise.
22442 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
22443 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
22445 * include/grub/font.h: Replaced with new file.
22447 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
22448 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
22449 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
22450 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
22451 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
22452 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
22453 fg_red, fg_green, fg_blue, fg_alpha.
22454 (grub_video_adapter): Removed blit_glyph.
22455 (grub_video_blit_glyph): Removed.
22457 * font/manager.c: Removed file.
22459 * font/font.c: New file.
22461 * font/font_cmd.c: Likewise.
22463 * video/video.c (grub_video_blit_glyph): Removed.
22465 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
22466 (grub_video_vbe_map_rgba): Likewise.
22467 (grub_video_vbe_unmap_color_int): Likewise.
22468 (grub_video_vbe_blit_glyph): Removed.
22469 (grub_video_vbe_adapter): Removed blit_glyph.
22471 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
22472 (get_pixel): Likewise.
22473 (set_pixel): Likewise.
22475 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
22477 * term/gfxterm.c: Adapted to new font engine.
22479 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
22481 * term/i386/pc/vga.c: Likewise.
22483 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
22485 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22487 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22489 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22491 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22493 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22495 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22497 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22499 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22501 * util/grub.d/00_header.in: Changed to use new loadfont command.
22503 * util/grub-mkconfig_lib.in: Changed font extension.
22505 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
22507 * util/getroot.c (grub_util_get_grub_dev): Add support for
22508 /dev/md/dNNpNN style partitionable mdraid devices.
22510 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
22512 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
22513 at a time limit of the PXE TFTP API correctly.
22514 (grub_pxefs_close): Likewise.
22516 2008-11-29 Robert Millan <rmh@aybabtu.com>
22518 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
22519 grub_ata_device_initialize() calls.
22521 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
22523 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
22525 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
22527 2008-11-28 Robert Millan <rmh@aybabtu.com>
22529 Fix build on powerpc-ieee1275. Based on patch created by
22530 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
22531 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
22532 `kern/ieee1275/mmap.c'.
22533 * include/grub/powerpc/ieee1275/memory.h: New file.
22535 Provide grub-install on coreboot.
22536 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
22537 (grub_install_SOURCES): New variable.
22538 * util/i386/pc/grub-install.in: Add a few condition checks to make it
22539 usable on coreboot.
22541 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
22543 * util/grub-fstest.c (grub_term_get_current_input): Change return type
22544 to `grub_term_input_t'.
22545 (grub_term_get_current_output): Change return type to
22546 `grub_term_output_t'.
22548 2008-11-22 Robert Millan <rmh@aybabtu.com>
22550 Fix breakage on coreboot due to declaration mismatch.
22551 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
22552 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
22553 grub_vga_text_cls().
22555 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
22556 comments. Avoid copying one more byte than necessary (just in case).
22558 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
22559 to 0x200000 (avoids trouble with some OFW implementations, and matches
22560 with the one in Yaboot).
22561 Reported by Manoel Abranches
22563 2008-11-20 Robert Millan <rmh@aybabtu.com>
22565 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
22566 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
22568 * util/grub-mkconfig_lib.in (grub_warn): New function.
22569 (convert_system_path_to_grub_path): Use grub_warn() when issuing
22570 warnings, to obtain consistent formatting.
22571 * util/grub.d/00_header.in: Likewise.
22572 * util/update-grub_lib.in: Likewise.
22574 * loader/i386/linux.c (allocate_pages): Fix a warning.
22575 Move comment text to `#error' stanza.
22577 Harmonize ieee1275's grub_available_iterate() with the generic
22578 grub_machine_mmap_iterate() interface (fixes a recently-introduced
22579 build problem on i386-ieee1275):
22580 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
22581 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
22582 parameter `type'. Update all users of this function.
22583 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
22584 `kern/ieee1275/mmap.c'.
22585 * kern/ieee1275/init.c
22586 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
22588 (grub_machine_mmap_iterate): ... this.
22589 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
22590 return type to `grub_err_t'. Update all implementations of this
22591 function prototype.
22592 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
22595 Add `lsmmap' command (lists firmware-provided memory map):
22596 * commands/lsmmap.c: New file.
22597 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
22598 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
22600 * conf/powerpc-ieee1275.rmk: Likewise.
22601 * conf/i386-coreboot.rmk: Likewise.
22602 * conf/i386-ieee1275.rmk: Likewise.
22604 2008-11-19 Robert Millan <rmh@aybabtu.com>
22606 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
22607 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
22608 constraints to initrd allocation (based on code from
22609 loader/i386/pc/linux.c). Without them, initrd was allocated too high
22610 for Linux to find it.
22612 2008-11-14 Robert Millan <rmh@aybabtu.com>
22614 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
22615 order to cope with duplicate slashes.
22617 2008-11-14 Robert Millan <rmh@aybabtu.com>
22619 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
22620 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
22621 don't want to mess with lower memory, because it is used in the Linux
22624 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
22625 an appropriate place in lower memory, between 0x10000 and 0x90000,
22626 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
22627 is in our heap (probably as a result of it being corrupted during
22628 decompression). Add #error instance with comment to explain why this
22629 loader isn't currently usable on PC/BIOS.
22631 2008-11-14 Robert Millan <rmh@aybabtu.com>
22633 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
22634 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
22636 2008-11-12 Robert Millan <rmh@aybabtu.com>
22638 Make loader/i386/linux.c buildable on i386-pc (although disabled).
22640 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
22641 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
22643 * include/grub/i386/pc/memory.h: ... to here.
22645 2008-11-12 Robert Millan <rmh@aybabtu.com>
22647 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
22650 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
22651 (grub_console_cur_color, grub_console_real_putchar)
22652 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22653 (grub_console_setcolorstate, grub_console_setcolor)
22654 (grub_console_getcolor): Move from here ...
22655 * include/grub/i386/vga_common.h: ... to here (new file).
22657 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
22658 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
22659 `<grub/i386/io.h>'.
22660 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
22661 `<grub/i386/vga_common.h>'.
22663 2008-11-12 Robert Millan <rmh@aybabtu.com>
22665 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
22666 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
22667 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
22669 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22670 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
22672 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
22673 grub_console_init() with call to grub_vga_text_init().
22674 (grub_machine_fini): Replace call to
22675 grub_console_fini() with call to grub_vga_text_fini() and
22676 grub_at_keyboard_fini().
22678 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
22679 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22680 (grub_console_setcolorstate, grub_console_setcolor)
22681 (grub_console_getcolor): New function prototypes.
22683 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
22684 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
22685 (grub_vga_text_setcursor): Static-ize.
22686 (grub_vga_text_term): New structure.
22687 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
22689 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
22690 (grub_console_cur_color, grub_console_standard_color)
22691 (grub_console_normal_color, grub_console_highlight_color)
22692 (map_char, grub_console_putchar, grub_console_getcharwidth)
22693 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
22694 (grub_console_getcolor): Move from here ...
22695 * term/i386/vga_common.c: ... to here (same function names).
22697 2008-11-12 Robert Millan <rmh@aybabtu.com>
22699 Use newly-added Multiboot support in coreboot.
22701 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22702 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
22704 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
22705 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
22706 (codestart): Store the MBI in `startup_multiboot_info' when we're
22707 being loaded using Multiboot.
22709 * kern/i386/coreboot/init.c (grub_machine_init): Move
22710 grub_at_keyboard_init() call to beginning of function (useful for
22711 debugging). Call grub_machine_mmap_init() before attempting to use
22712 grub_machine_mmap_iterate().
22713 (grub_lower_mem, grub_upper_mem): Move from here ...
22714 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
22717 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
22718 function prototype.
22720 2008-11-12 Robert Millan <rmh@aybabtu.com>
22722 Fix a regression introduced by the at_keyboard.mod split. Because
22723 some terminals are default on some platforms and non-default on
22724 others, the first terminal being registered determines which is
22725 going to be default.
22727 * kern/term.c (grub_term_register_input): If this is the first
22728 terminal being registered, set it as the current one.
22729 (grub_term_register_output): Likewise.
22731 * term/efi/console.c (grub_console_init): Do not call
22732 grub_term_set_current_output() or grub_term_set_current_input().
22733 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
22734 * term/i386/pc/console.c (grub_console_init): Likewise.
22735 (grub_console_fini): Do not call grub_term_set_current_input()
22736 (but leave grub_term_set_current_output() to restore text mode).
22738 2008-11-10 Robert Millan <rmh@aybabtu.com>
22740 * util/grub.d/00_header.in: Add backward compatibility check for
22741 versions of terminal.mod that don't understand `terminal_input' or
22744 2008-11-09 Robert Millan <rmh@aybabtu.com>
22746 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
22747 `terminal_input' / `terminal_output', not `terminal'.
22749 2008-11-08 Robert Millan <rmh@aybabtu.com>
22751 * Makefile.in (include_DATA): Fix srcdir=. assumption.
22752 (DISTCLEANFILES): Add `build_env.mk'.
22754 2008-11-08 Robert Millan <rmh@aybabtu.com>
22756 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
22757 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
22758 members. Update all users.
22759 * util/console.c (grub_ncurses_term): Split in ...
22760 (grub_ncurses_term_input): ... this, and ...
22761 (grub_ncurses_term_output): ... this. Update all users.
22762 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
22764 2008-11-08 Robert Millan <rmh@aybabtu.com>
22766 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
22767 (PKGDATA): Add $(pkgdata_SRCDIR).
22768 (pkglib_BUILDDIR): New variable.
22769 (pkgdata_SRCDIR): New variable.
22770 (build_env.mk): New target.
22771 (include_DATA): New variable.
22772 (install-local): Install $(include_DATA) files in $(includedir).
22774 2008-11-07 Pavel Roskin <proski@gnu.org>
22776 * gendistlist.sh: Use C locale for sorting to ensure consistent
22777 output on all systems.
22779 * util/grub.d/00_header.in: Remove incorrect space before
22782 2008-11-07 Robert Millan <rmh@aybabtu.com>
22784 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
22786 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
22787 * loader/multiboot_loader.c (find_multi_boot2_header): New function
22788 (based on find_multi_boot1_header).
22789 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
22790 using find_multi_boot2_header(), and abort if neither Multiboot or
22791 Multiboot headers were found.
22793 2008-11-07 Robert Millan <rmh@aybabtu.com>
22795 Modularize at_keyboard.mod:
22797 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
22798 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
22799 (at_keyboard_mod_LDFLAGS): New variables.
22801 Actual terminal split:
22803 * include/grub/term.h (struct grub_term): Split in ...
22804 (struct grub_term_input): ... this, and ...
22805 (struct grub_term_output): ... this. Update all users.
22806 (grub_term_set_current): Split in ...
22807 (grub_term_set_current_input): ... this, and ...
22808 (grub_term_set_current_output): ... this.
22809 (grub_term_get_current): Split in ...
22810 (grub_term_get_current_input): ... this, and ...
22811 (grub_term_get_current_output): ... this.
22812 (grub_term_register): Split in ...
22813 (grub_term_register_input): ... this, and ...
22814 (grub_term_register_output): ... this.
22815 (grub_term_unregister): Split in ...
22816 (grub_term_unregister_input): ... this, and ...
22817 (grub_term_unregister_output): ... this.
22818 (grub_term_iterate): Split in ...
22819 (grub_term_iterate_input): ... this, and ...
22820 (grub_term_iterate_output): ... this.
22822 * kern/term.c (grub_term_list): Split in ...
22823 (grub_term_list_input): ... this, and ...
22824 (grub_term_list_output): ... this. Update all users.
22825 (grub_cur_term): Split in ...
22826 (grub_cur_term_input): ... this, and ...
22827 (grub_cur_term_output): ... this. Update all users.
22828 (grub_term_set_current): Split in ...
22829 (grub_term_set_current_input): ... this, and ...
22830 (grub_term_set_current_output): ... this.
22831 (grub_term_get_current): Split in ...
22832 (grub_term_get_current_input): ... this, and ...
22833 (grub_term_get_current_output): ... this.
22834 (grub_term_register): Split in ...
22835 (grub_term_register_input): ... this, and ...
22836 (grub_term_register_output): ... this.
22837 (grub_term_unregister): Split in ...
22838 (grub_term_unregister_input): ... this, and ...
22839 (grub_term_unregister_output): ... this.
22840 (grub_term_iterate): Split in ...
22841 (grub_term_iterate_input): ... this, and ...
22842 (grub_term_iterate_output): ... this.
22844 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
22845 a check for input and one for output (and only attempt to get keys
22846 from user when input works).
22848 * util/grub-probe.c (grub_term_get_current): Split in ...
22849 (grub_term_get_current_input): ... this, and ...
22850 (grub_term_get_current_output): ... this.
22851 * util/grub-fstest.c: Likewise.
22852 * util/i386/pc/grub-setup.c: Likewise.
22853 * util/grub-editenv.c: Likewise.
22855 Portability adjustments:
22857 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
22858 `term/i386/pc/at_keyboard.c'.
22859 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
22860 grub_keyboard_controller_init() (now handled by terminal .init).
22861 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
22862 grub_at_keyboard_init().
22863 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
22864 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
22865 at_keyboard.mod via input terminal interface).
22866 * include/grub/i386/coreboot/console.h: Convert into a stub for
22867 `<grub/i386/pc/console.h>'.
22869 Migrate full terminals to new API:
22871 * term/efi/console.c (grub_console_term): Split into ...
22872 (grub_console_term_input): ... this, and ...
22873 (grub_console_term_output): ... this. Update all users.
22874 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
22875 (grub_ofconsole_init): Split into ...
22876 (grub_ofconsole_init_input): ... this, and ...
22877 (grub_ofconsole_init_output): ... this.
22878 (grub_ofconsole_term): Split into ...
22879 (grub_ofconsole_term_input): ... this, and ...
22880 (grub_ofconsole_term_output): ... this. Update all users.
22881 * term/i386/pc/serial.c (grub_serial_term): Split into ...
22882 (grub_serial_term_input): ... this, and ...
22883 (grub_serial_term_output): ... this. Update all users.
22884 * term/i386/pc/console.c (grub_console_term): Split into ...
22885 (grub_console_term_input): ... this, and ...
22886 (grub_console_term_output): ... this. Update all users.
22887 (grub_console_term_input): Only enable it on PC/BIOS platform.
22888 (grub_console_init): Remove grub_keyboard_controller_init() call.
22890 Migrate input terminals to new API:
22892 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
22893 `i386' and `i386/pc' to enable build on x86_64 (this driver is
22894 i386-specific anyway).
22895 (grub_console_checkkey): Rename to ...
22896 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
22898 (grub_keyboard_controller_orig): New variable.
22899 (grub_console_getkey): Rename to ...
22900 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
22902 (grub_keyboard_controller_init): Static-ize. Save original
22903 controller value so that it can be restored ...
22904 (grub_keyboard_controller_fini): ... here (new function).
22905 (grub_at_keyboard_term): New structure.
22906 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
22909 Migrate output terminals to new API:
22911 * term/i386/pc/vga.c (grub_vga_term): Change type to
22912 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
22913 members. Update all users.
22914 * term/gfxterm.c (grub_video_term): Change type to
22915 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
22916 members. Update all users.
22917 * include/grub/i386/pc/console.h (grub_console_checkkey)
22918 (grub_console_getkey): Do not export (no longer needed by gfxterm,
22921 Migrate `terminal' command and userland tools to new API:
22923 * commands/terminal.c (grub_cmd_terminal): Split into ...
22924 (grub_cmd_terminal_input): ... this, and ...
22925 (grub_cmd_terminal_output): ... this.
22926 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
22927 `terminal_input' and `terminal_output'.
22928 * util/grub.d/00_header.in: Adjust `terminal' calls to new
22929 `terminal_input' / `terminal_output' API.
22930 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
22931 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
22932 provided ${GRUB_TERMINAL}, convert it).
22934 2008-11-04 Robert Millan <rmh@aybabtu.com>
22936 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
22938 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
22940 2008-11-03 Bean <bean123ch@gmail.com>
22942 * kern/elf.c (grub_elf32_load): Revert to previous code.
22943 (grub_elf64_load): Likewise.
22945 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
22947 2008-11-01 Robert Millan <rmh@aybabtu.com>
22949 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
22950 (TARGET_CPPFLAGS): Likewise.
22951 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
22953 2008-11-01 Carles Pina i Estany <carles@pina.cat>
22955 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
22957 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
22959 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
22960 addition of objects until the code is not going to be able to fail.
22962 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
22964 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
22965 (add a missing NULL check, and correct them by moving the pointer
22966 operations after the actual check).
22968 2008-10-29 Robert Millan <rmh@aybabtu.com>
22970 * util/i386/pc/grub-install.in: Handle empty string as output from
22971 make_system_path_relative_to_its_root().
22973 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
22975 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
22976 circular metadata worst case scenario. If the metadata is circular
22977 then copy the wrap in place.
22978 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
22979 project lib/format_text/layout.h
22980 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
22982 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
22984 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
22986 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
22988 * util/update-grub_lib.in: Mention filename in warning message.
22990 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
22992 * NEWS: Update for rename of update-grub to grub-mkconfig.
22994 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
22996 * util/update-grub_lib.in: Copy to ...
22997 * util/grub-mkconfig_lib.in: ... this. Update all users.
22998 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
22999 * util/update-grub.in: Rename to ...
23000 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
23001 option. Add `--output' option to allow users to specify the generated
23002 configuration file. Default to stdout.
23003 (update_grub_dir): Rename to ...
23004 (grub_mkconfig_dir): ... this.
23005 (grub_cfg): Default to an empty string.
23006 * conf/common.rmk (update-grub): Rename to ...
23007 (grub-mkconfig): ... this.
23008 (update-grub_lib): Copy to ...
23009 (grub-mkconfig_lib): ... this.
23010 (update-grub_SCRIPTS): Copy to ...
23011 (grub-mkconfig_SCRIPTS): ... this. Update all users.
23012 (update-grub_DATA): Rename to ...
23013 (grub-mkconfig_DATA): ... this.
23015 2008-09-28 Robert Millan <rmh@aybabtu.com>
23017 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
23018 to `modified'. Add the real `created' field.
23019 (grub_iso9660_uuid): Use `modified' rather than `created' for
23020 constructing the UUID.
23022 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
23024 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
23025 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
23027 2008-09-28 Bean <bean123ch@gmail.com>
23029 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
23030 Thanks to Christian Franke for finding this bug.
23032 2008-09-25 Robert Millan <rmh@aybabtu.com>
23034 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
23035 instances of grub_util_get_disk_name() (see previous commit).
23037 2008-09-25 Robert Millan <rmh@aybabtu.com>
23039 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
23040 `util/i386/get_disk_name.c'.
23041 * conf/i386-efi.rmk: Likewise.
23042 * conf/x86_64-efi.rmk: Likewise.
23043 * conf/i386-coreboot.rmk: Likewise.
23044 * conf/i386-ieee1275.rmk: Likewise.
23045 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
23046 `util/ieee1275/get_disk_name.c'.
23047 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
23048 * util/ieee1275/get_disk_name.c: Remove file.
23049 * util/i386/get_disk_name.c: Remove file.
23050 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
23051 "hd%d" for device.map entries, rather than using
23052 grub_util_get_disk_name().
23054 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23056 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
23058 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
23060 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23062 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
23064 (GRUB_TERM_PPAGE): Changed to 0x4900.
23066 2008-09-24 Robert Millan <rmh@aybabtu.com>
23068 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
23069 macros (they were i386-pc specific).
23070 * include/grub/sparc64/ieee1275/console.h: Likewise.
23071 * include/grub/efi/console.h: Likewise.
23073 2008-09-22 Bean <bean123ch@gmail.com>
23075 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
23076 resident and in attribute list.
23078 * include/grub/ntfs.h (BMP_LEN): Removed.
23080 2008-09-22 Bean <bean123ch@gmail.com>
23082 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
23083 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
23085 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
23086 error occurs, as grub_disk_open will call grub_disk_close, which will
23087 call p->close (scsi).
23089 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23091 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
23092 (AC_PREREQ): Bumped to 2.59.
23093 (AC_TRY_COMPILE): Replace obsolete macro with ...
23094 (AC_COMPILE_IFELSE): ... this.
23095 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
23096 (AC_LINK_IFELSE): ... this.
23098 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23100 * autogen.sh: Add a call to `gendistlist.sh'.
23102 2008-09-19 Christian Franke <franke@computer.org>
23104 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
23105 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
23106 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
23107 Export __enable_execute_stack() to modules.
23108 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
23111 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23113 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
23116 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23118 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
23119 #include <grub/util/hostdisk.h>.
23121 2008-09-08 Robert Millan <rmh@aybabtu.com>
23123 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
23124 segments when their filesz is zero (grub_file_read() interprets
23125 zero-size as "read until EOF", which results in memory corruption).
23126 Use `lowest_segment' rather than 0 for calculating the current
23127 segment load address.
23129 2008-09-08 Robert Millan <rmh@aybabtu.com>
23131 * util/hostdisk.c (open_device): Replace a grub_util_info() call
23132 with grub_dprintf("hostdisk", ...), as it was so verbose that it
23133 clobbered useful information.
23135 2008-09-08 Robert Millan <rmh@aybabtu.com>
23137 * include/grub/util/biosdisk.h: Move to ...
23138 * include/grub/util/hostdisk.h: ... here. Update all users.
23139 * util/biosdisk.c: Move to ...
23140 * util/hostdisk.c: ... here. Update all users.
23142 2008-09-07 Robert Millan <rmh@aybabtu.com>
23144 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
23146 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
23147 and length can be stored directly in the `mbi->mmap_addr' and
23148 `mbi->mmap_length' struct fields.
23150 2008-09-07 Robert Millan <rmh@aybabtu.com>
23152 * conf/i386.rmk: New file. Provides declaration for building
23154 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
23155 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
23157 Include `conf/i386.mk'.
23158 * conf/i386-efi.rmk: Likewise.
23159 * conf/x86_64-efi.rmk: Likewise.
23160 * conf/i386-coreboot.rmk: Likewise.
23161 * conf/i386-ieee1275.rmk: Likewise.
23163 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
23165 Based on patch created by Colin D Bennett <colin@gibibit.com>.
23166 Adds optimization support for BGR based modes.
23168 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
23169 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23170 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23171 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23172 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23173 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23174 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23175 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23176 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23177 (grub_video_i386_vbeblit_index_index): Likewise.
23178 (grub_video_i386_vbeblit_replace_directN): Added.
23179 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23180 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23181 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23182 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23183 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23184 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23185 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23186 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23187 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23188 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23189 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23190 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23191 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23193 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
23194 (grub_video_i386_vbefill_R8G8B8): Likewise.
23195 (grub_video_i386_vbefill_index): Likewise.
23196 (grub_video_i386_vbefill_direct32): Added.
23197 (grub_video_i386_vbefill_direct24): Likewise.
23198 (grub_video_i386_vbefill_direct16): Likewise.
23199 (grub_video_i386_vbefill_direct8): Likewise.
23201 * include/grub/video.h (grub_video_blit_format): Removed
23202 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
23203 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
23204 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
23205 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
23206 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
23208 * video/video.c (grub_video_get_blit_format): Updated to use new
23209 blit formats. Added handling for 16 bit color modes.
23211 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
23213 (common_blitter): Updated to use new blitters.
23215 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
23217 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23218 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23219 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23220 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23221 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23222 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23223 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23224 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23225 (grub_video_i386_vbeblit_index_index): Likewise.
23226 (grub_video_i386_vbeblit_replace_directN): Added.
23227 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23228 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23229 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23230 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23231 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23232 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23233 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23234 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23235 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23236 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23237 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23238 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23239 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23241 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
23242 (grub_video_i386_vbefill_R8G8B8): Likewise.
23243 (grub_video_i386_vbefill_index): Likewise.
23244 (grub_video_i386_vbefill_direct32): Added.
23245 (grub_video_i386_vbefill_direct24): Likewise.
23246 (grub_video_i386_vbefill_direct16): Likewise.
23247 (grub_video_i386_vbefill_direct8): Likewise.
23249 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
23252 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
23255 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
23258 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
23261 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23263 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
23266 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23268 * fs/iso9660.c (grub_iso9660_date): New structure.
23269 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
23270 (grub_iso9660_uuid): New function.
23272 2008-09-05 Bean <bean123ch@gmail.com>
23274 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
23276 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
23277 insensitive bit for names in Win32 and Win32 & DOS namespace.
23279 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
23281 * include/grub/types.h (LONG_MAX): Likewise.
23283 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23285 * util/getroot.c: Include <config.h>.
23286 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
23287 add support for /dev/md/N devices and handle LVM double dash escaping.
23289 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23291 * config.guess: Update to latest version from config git.
23292 * config.sub: Likewise.
23294 2008-09-03 Robert Millan <rmh@aybabtu.com>
23296 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
23297 `disk->total_sectors'.
23299 2008-09-01 Colin D Bennett <colin@gibibit.com>
23301 * include/grub/normal.h: Fixed incorrect comment for
23302 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
23304 2008-09-01 Colin D Bennett <colin@gibibit.com>
23306 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
23307 values with defines.
23309 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
23310 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
23311 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
23312 (GRUB_VBE_MODEATTR_COLOR): Likewise.
23313 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
23314 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
23315 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
23316 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
23317 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
23318 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
23319 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
23320 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
23321 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
23322 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
23323 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
23324 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
23325 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
23326 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
23327 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
23329 2008-08-31 Robert Millan <rmh@aybabtu.com>
23331 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
23333 (grub_multiboot): Fix a few warnings.
23335 2008-08-31 Robert Millan <rmh@aybabtu.com>
23337 * loader/i386/pc/multiboot.c: Update comment not to say that
23338 boot_device support is unimplemented.
23340 2008-08-31 Robert Millan <rmh@aybabtu.com>
23342 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
23343 or memory map support are unimplemented.
23345 2008-08-31 Colin D Bennett <colin@gibibit.com>
23347 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
23349 2008-08-31 Colin D Bennett <colin@gibibit.com>
23351 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
23352 total video memory in 'vbeinfo' output; show color format details for
23355 2008-08-30 Pavel Roskin <proski@gnu.org>
23357 * util/genmoddep.c: Remove for real this time.
23358 * DISTLIST: Remove util/genmoddep.c.
23360 2008-08-30 Robert Millan <rmh@aybabtu.com>
23362 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
23363 as required by Multiboot spec (it was already 4-byte aligned, but
23366 2008-08-29 Pavel Roskin <proski@gnu.org>
23368 * kern/powerpc/ieee1275/crt0.S: Rename to ...
23369 * kern/powerpc/ieee1275/startup.S: ... this.
23370 * conf/powerpc-ieee1275.rmk: Adjust for the above.
23371 * DISTLIST: Likewise.
23373 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
23374 grub/cpu/kernel.h. Add start label for consistency with other
23375 platforms. Add grub_prefix immediately after start. Add jump
23376 to the code after grub_prefix.
23377 * include/grub/powerpc/kernel.h: Provide valid values for
23378 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
23380 2008-08-29 Bean <bean123ch@gmail.com>
23382 * configure.ac: Change host_os to cygwin for mingw.
23383 (asprintf): New check for function.
23385 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
23386 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
23388 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
23389 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
23390 sync, sleep and grub_util_get_disk_size for mingw.
23392 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
23393 to get size in mingw.
23394 (open_device): Use flag O_BINARY if it's defined.
23395 (find_root_device): Add dummy code for mingw.
23397 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
23398 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
23399 (get_scsi_disk_name): Return 0 for mingw.
23401 * util/hostfs.c: #include <grub/util/misc.h>.
23402 (grub_hostfs_open): Use "rb" flag to open file, use
23403 grub_util_get_disk_size to get disk size for mingw.
23405 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
23406 (asprintf): New function if HAVE_ASPRINTF is not set.
23407 (sync): New function for mingw.
23409 (grub_util_get_disk_size): Likewise.
23411 2008-08-28 Pavel Roskin <proski@gnu.org>
23413 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
23416 2008-08-28 Robert Millan <rmh@aybabtu.com>
23418 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
23420 2008-08-28 Robert Millan <rmh@aybabtu.com>
23422 Change find_grub_drive() syntax so it doesn't prevent it from
23423 detecting NULL names as errors.
23425 * util/biosdisk.c (find_grub_drive): Move free slot search code
23427 (find_free_slot): ... to here.
23428 (read_device_map): Use find_free_slot() to search for free slots.
23430 2008-08-27 Marco Gerards <marco@gnu.org>
23432 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
23433 (scsi_mod_SOURCES): New variable.
23434 (scsi_mod_CFLAGS): Likewise
23435 (scsi_mod_LDFLAGS): Likewise.
23437 * disk/scsi.c: New file.
23439 * include/grub/scsi.h: Likewise.
23441 * include/grub/scsicmd.h: Likewise.
23443 * disk/ata.c: Include <grub/scsi.h>.
23444 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
23446 (grub_ata_iterate): Skip ATAPI devices.
23447 (grub_ata_open): Only handle ATAPI devices.
23448 (struct grub_atapi_read): Removed.
23449 (grub_atapi_readsector): Likewise.
23450 (grub_ata_read): No longer handle ATAPI devices.
23451 (grub_ata_write): Likewise.
23452 (grub_atapi_iterate): New function.
23453 (grub_atapi_read): Likewise.
23454 (grub_atapi_write): Likewise.
23455 (grub_atapi_open): Likewise.
23456 (grub_atapi_close): Likewise.
23457 (grub_atapi_dev): New variable.
23458 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
23459 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
23461 * include/grub/disk.h (enum grub_disk_dev_id): Add
23462 `GRUB_DISK_DEVICE_SCSI_ID'.
23464 2008-08-26 Robert Millan <rmh@aybabtu.com>
23466 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
23467 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
23470 2008-08-23 Bean <bean123ch@gmail.com>
23472 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
23473 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23474 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
23475 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
23477 (raid5rec_mod_SOURCES): New macro.
23478 (raid5rec_mod_CFLAGS): Likewise.
23479 (raid5rec_mod_LDFLAGS): Likewise.
23480 (raid6rec_mod_SOURCES): Likewise.
23481 (raid6rec_mod_CFLAGS): Likewise.
23482 (raid6rec_mod_LDFLAGS): Likewise.
23483 (mdraid_mod_SOURCES): Likewise.
23484 (mdraid_mod_CFLAGS): Likewise.
23485 (mdraid_mod_LDFLAGS): Likewise.
23486 (dm_nv_mod_SOURCES): Likewise.
23487 (dm_nv_mod_CFLAGS): Likewise.
23488 (dm_nv_mod_LDFLAGS): Likewise.
23490 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
23491 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23492 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23494 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
23495 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23497 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23499 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23501 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23503 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23505 * disk/raid5_recover.c: New file.
23507 * disk/raid6_recover.c: Likewise.
23509 * disk/mdraid_linux.c: Likewise.
23511 * disk/dmraid_nvidia.c: Likewise.
23513 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
23516 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
23517 calculate the size of raid device.
23518 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
23519 different layout of raid5.
23520 (grub_raid_scan_device): Remove code specific to mdraid.
23521 (grub_raid_list): New variable.
23522 (free_array): New function.
23523 (grub_raid_register): Likewise.
23524 (grub_raid_unregister): Likewise.
23525 (grub_raid_rescan): Likewise.
23526 (GRUB_MOD_INIT): Don't iterate device here.
23527 (GRUB_MOD_FINI): Use free_array to release resource.
23529 * include/grub/raid.h: Remove macro and structure specific to mdraid.
23530 (grub_raid5_recover_func_t): New function variable type.
23531 (grub_raid6_recover_func_t): Likewise.
23532 (grub_raid5_recover_func): New variable.
23533 (grub_raid6_recover_func): Likewise.
23534 (grub_raid_register): New function.
23535 (grub_raid_unregister): Likewise.
23536 (grub_raid_rescan): Likewise.
23537 (grub_raid_block_xor): Likewise.
23539 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
23540 (CMD_CRC): New macro.
23542 (read_file): Handle device as well as file.
23543 (cmd_crc): New function.
23544 (fstest): Handle multiple disks.
23545 (options): Remove part, raw and long, add root and diskcount.
23546 (usage): Add crc, remove -p, -r, -l, add -r and -c.
23547 (main): Find the first non option entry and ignore subsequent options,
23548 add handling for the new options, support multiple disks.
23550 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
23552 2008-08-23 Bean <bean123ch@gmail.com>
23554 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
23556 * genfslist.sh: Ignore kernel.mod.
23558 * genpartmaplist.sh: Likewise.
23560 2008-08-23 Robert Millan <rmh@aybabtu.com>
23562 * util/getroot.c (find_root_device): Skip anything that starts with
23563 a dot, not just directories. This avoids things like /dev/.tmp.md0.
23565 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
23567 * util/update-grub.in (GRUB_GFXMODE): Export variable.
23568 * util/grub.d/00_header.in: Allow the administrator to change default
23569 gfxmode via ${GRUB_GFXMODE}.
23571 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
23573 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
23575 2008-08-21 Robert Millan <rmh@aybabtu.com>
23577 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
23579 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
23580 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
23582 2008-08-20 Carles Pina i Estany <carles@pina.cat>
23584 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
23585 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
23587 2008-08-19 Robert Millan <rmh@aybabtu.com>
23589 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
23590 (struct grub_virtual_screen): Remove `cursor_color'.
23591 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
23593 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
23595 2008-08-18 Robert Millan <rmh@aybabtu.com>
23597 Unify (identical) linux_normal.c files.
23598 * loader/i386/efi/linux_normal.c: Move from here ...
23599 * loader/linux_normal.c: ... to here. Update all users.
23600 * loader/i386/pc/linux_normal.c: Delete. Update all users.
23601 * loader/i386/ieee1275/linux_normal.c: Likewise.
23603 2008-08-18 Robert Millan <rmh@aybabtu.com>
23605 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
23606 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
23607 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
23608 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
23609 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
23611 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
23612 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
23613 (GRUB_LINUX_CL_END_OFFSET): ... to here.
23614 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
23615 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
23616 (GRUB_EFI_CL_END_OFFSET): Rename to ...
23617 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
23618 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
23619 Initialize `params->video_cursor_x' and `params->video_cursor_y'
23620 portably using grub_getxy().
23621 Replace `-EFI' with `-bzImage' in boot message.
23623 2008-08-17 Robert Millan <rmh@aybabtu.com>
23625 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
23627 2008-08-17 Robert Millan <rmh@aybabtu.com>
23629 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
23631 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
23632 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
23633 (grub_machine_mmap_iterate): New function declaration.
23634 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
23636 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
23639 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
23640 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
23641 Move e820 parsing from here ...
23642 * kern/i386/pc/mmap.c: New file.
23643 (grub_machine_mmap_iterate): ... to here.
23645 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
23646 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
23647 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
23648 (grub_available_iterate): Redeclare to return `void', and redeclare
23649 its hook to use grub_uint64_t as addr and size parameters, and rename
23651 (grub_machine_mmap_iterate): ... this. Update all users.
23653 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
23654 to make it more readable. Rename to ...
23655 (grub_machine_mmap_iterate): ... this.
23657 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
23658 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
23659 (grub_multiboot): Allocate an extra region after the payload, and fill
23660 it with a Multiboot memory map. Adjust a.out loader to calculate size
23661 with the extra space.
23662 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
23663 with the extra space.
23665 2008-08-17 Carles Pina i Estany <carles@pina.cat>
23667 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
23669 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
23671 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
23672 mdate-sh to the list `find' searches for.
23673 * DISTLIST: Regenerated.
23675 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
23677 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
23678 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
23679 genmoddep.awk, gensymlist.sh.in.
23680 (DISTDIRS): Add bus, docs, hook, lib.
23681 * DISTLIST: Regenerated.
23682 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
23684 2008-08-16 Robert Millan <rmh@aybabtu.com>
23686 * disk/raid.c (grub_raid_init): Handle/report errors set by
23687 grub_device_iterate().
23688 * disk/lvm.c (grub_lvm_init): Likewise.
23690 2008-08-15 Bean <bean123ch@gmail.com>
23692 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23694 (datetime_mod_SOURCES): New macro.
23695 (datetime_mod_CFLAGS): Likewise.
23696 (datetime_mod_LDFLAGS): Likewise.
23697 (date_mod_SOURCES): Likewise.
23698 (date_mod_CFLAGS): Likewise.
23699 (date_mod_LDFLAGS): Likewise.
23700 (datehook_mod_SOURCES): Likewise.
23701 (datehook_mod_CFLAGS): Likewise.
23702 (datehook_mod_LDFLAGS): Likewise.
23704 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23706 (datetime_mod_SOURCES): New macro.
23707 (datetime_mod_CFLAGS): Likewise.
23708 (datetime_mod_LDFLAGS): Likewise.
23709 (date_mod_SOURCES): Likewise.
23710 (date_mod_CFLAGS): Likewise.
23711 (date_mod_LDFLAGS): Likewise.
23712 (datehook_mod_SOURCES): Likewise.
23713 (datehook_mod_CFLAGS): Likewise.
23714 (datehook_mod_LDFLAGS): Likewise.
23716 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23718 (datetime_mod_SOURCES): New macro.
23719 (datetime_mod_CFLAGS): Likewise.
23720 (datetime_mod_LDFLAGS): Likewise.
23721 (date_mod_SOURCES): Likewise.
23722 (date_mod_CFLAGS): Likewise.
23723 (date_mod_LDFLAGS): Likewise.
23724 (datehook_mod_SOURCES): Likewise.
23725 (datehook_mod_CFLAGS): Likewise.
23726 (datehook_mod_LDFLAGS): Likewise.
23728 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23730 (datetime_mod_SOURCES): New macro.
23731 (datetime_mod_CFLAGS): Likewise.
23732 (datetime_mod_LDFLAGS): Likewise.
23733 (date_mod_SOURCES): Likewise.
23734 (date_mod_CFLAGS): Likewise.
23735 (date_mod_LDFLAGS): Likewise.
23736 (datehook_mod_SOURCES): Likewise.
23737 (datehook_mod_CFLAGS): Likewise.
23738 (datehook_mod_LDFLAGS): Likewise.
23740 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23742 (datetime_mod_SOURCES): New macro.
23743 (datetime_mod_CFLAGS): Likewise.
23744 (datetime_mod_LDFLAGS): Likewise.
23745 (date_mod_SOURCES): Likewise.
23746 (date_mod_CFLAGS): Likewise.
23747 (date_mod_LDFLAGS): Likewise.
23748 (datehook_mod_SOURCES): Likewise.
23749 (datehook_mod_CFLAGS): Likewise.
23750 (datehook_mod_LDFLAGS): Likewise.
23752 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
23754 * commands/date.c: New file.
23756 * hook/datehook.c: Likewise.
23758 * include/grub/lib/datetime.h: Likewise.
23760 * include/grub/i386/cmos.h: Likewise.
23762 * lib/datetime.c: Likewise.
23764 * lib/i386/datetime.c: Likewise.
23766 * lib/efi/datetime.c: Likewise.
23768 2008-08-14 Robert Millan <rmh@aybabtu.com>
23770 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
23771 (grub_mkelfimage_SOURCES): New variable.
23772 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
23774 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
23775 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
23776 * conf/powerpc-ieee1275.rmk: Likewise.
23777 * conf/i386-ieee1275.rmk: Likewise.
23779 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
23780 * kern/i386/coreboot/init.c: Likewise.
23782 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
23783 with `<grub/cpu/kernel.h>'.
23784 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
23786 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
23787 * kern/i386/coreboot/startup.S: Likewise.
23789 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
23790 (GRUB_MOD_GAP): Remove.
23791 * include/grub/powerpc/kernel.h: New file.
23792 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
23793 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23794 * include/grub/i386/kernel.h: New file.
23795 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
23796 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
23797 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23799 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
23801 Use --directory when invoking grub_mkimage.
23803 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
23804 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
23805 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
23806 and GRUB_KERNEL_CPU_PREFIX.
23808 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
23810 * include/grub/err.h (grub_err_printf): New function prototype.
23811 * util/misc.c (grub_err_printf): New function.
23812 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
23814 * kern/err.c (grub_print_error): Use grub_err_printf.
23816 2008-08-13 Robert Millan <rmh@aybabtu.com>
23818 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
23820 2008-08-13 Robert Millan <rmh@aybabtu.com>
23822 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
23825 2008-08-12 Robert Millan <rmh@aybabtu.com>
23827 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
23828 of the relocation code from here ...
23829 (grub_multiboot): ... to here.
23830 (forward_relocator, backward_relocator): Move from here ...
23831 * kern/i386/loader.S (grub_multiboot_forward_relocator)
23832 (grub_multiboot_backward_relocator): ... to here.
23833 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
23834 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
23835 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
23836 (grub_multiboot_forward_relocator_end)
23837 (grub_multiboot_backward_relocator)
23838 (grub_multiboot_backward_relocator_end): New variables.
23840 2008-08-12 Bean <bean123ch@gmail.com>
23842 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
23844 2008-08-11 Robert Millan <rmh@aybabtu.com>
23846 * kern/i386/linuxbios/startup.S: Move from here ...
23847 * kern/i386/coreboot/startup.S: ... to here.
23849 * kern/i386/linuxbios/init.c: Move from here ...
23850 * kern/i386/coreboot/init.c: ... to here.
23852 * kern/i386/linuxbios/table.c: Move from here ...
23853 * kern/i386/coreboot/mmap.c: ... to here.
23855 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
23857 2008-08-11 Robert Millan <rmh@aybabtu.com>
23859 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
23860 errors. Leave it to the upper layer to handle them.
23862 2008-08-09 Christian Franke <franke@computer.org>
23864 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
23865 * conf/common.rmk: Install `grub-pe2elf' only if requested.
23866 Install `grub.d/10_windows' only on Cygwin.
23867 * configure.ac: Add subst of `target_os'.
23868 Check `target_os' also before setting TARGET_OBJ2ELF.
23869 Add `--enable-grub-pe2elf'.
23871 2008-08-08 Robert Millan <rmh@aybabtu.com>
23873 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
23874 (grub_last_time): Change type to grub_uint64_t.
23875 (grub_disk_open): Migrate code from to using grub_get_time_ms().
23876 (grub_disk_close): Likewise.
23878 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
23879 (run_menu): Migrate code from to using grub_get_time_ms().
23881 * util/misc.c (grub_get_time_ms): New function.
23883 2008-08-08 Marco Gerards <marco@gnu.org>
23885 * disk/ata.c (grub_ata_regget): Change return type to
23887 (grub_ata_regget2): Likewise.
23888 (grub_ata_wait_status): New function.
23889 (grub_ata_wait_busy): Removed function, updated all users to use
23890 `grub_ata_wait_status'.
23891 (grub_ata_wait_drq): Likewise.
23892 (grub_ata_cmd): New function.
23893 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
23895 (grub_ata_pio_write): Add error handling.
23896 (grub_atapi_identify): Likewise.
23897 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
23899 (grub_ata_identify): Use `grub_ata_cmd' and improve error
23900 handling. Actually use the detected registers. Reorder the
23901 detection logic such that it is easier to read.
23902 (grub_ata_pciinit): Do not assign the same ID to each controller.
23903 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
23905 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
23907 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
23909 2008-08-08 Marco Gerards <marco@gnu.org>
23913 2008-08-07 Bean <bean123ch@gmail.com>
23915 * include/grub/x86_64/pci.h: New file.
23917 2008-08-07 Christian Franke <franke@computer.org>
23919 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
23920 (TIMER2_GATE): Likewise.
23921 (grub_pit_wait): Add enable/disable of the timer2 gate
23922 bit of port 0x61. This fixes a possible infinite loop.
23924 2008-08-07 Bean <bean123ch@gmail.com>
23926 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
23927 kern/i386/tsc.c and kern/i386/pit.c.
23929 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
23932 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
23935 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
23937 2008-08-07 Bean <bean123ch@gmail.com>
23939 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
23941 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
23943 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
23944 multiple inclusion. Add #include <grub/types.h>.
23946 2008-08-06 Christian Franke <franke@computer.org>
23948 * conf/common.rmk: Build and install `10_windows'.
23949 * util/grub.d/10_windows.in: New script.
23951 2008-08-06 Pavel Roskin <proski@gnu.org>
23953 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
23955 2008-08-06 Robert Millan <rmh@aybabtu.com>
23957 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
23958 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
23960 2008-08-06 Bean <bean123ch@gmail.com>
23962 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
23963 (grub_pxefs_fs_int): Remove dummy definition.
23964 (grub_pxefs_open): Use data->block_size to store the current block
23966 (grub_pxefs_read): Use block size stored in data->block_size. As the
23967 value of grub_pxe_blksize can be changed after the file is opened.
23969 2008-08-06 Bean <bean123ch@gmail.com>
23971 * fs/i386/pc/pxe.c (curr_file): new variable.
23972 (grub_pxefs_open): Simply the handling of pxe file system. Don't
23973 require the dummy internal file system anymore.
23974 (grub_pxefs_read): Removed.
23975 (grub_pxefs_close): Likewise.
23976 (grub_pxefs_fs_int): Likewise.
23977 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
23978 connection when we switch file.
23979 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
23981 2008-08-06 Robert Millan <rmh@aybabtu.com>
23983 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
23985 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
23986 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
23988 * kern/i386/halt.c: New file.
23989 * kern/i386/reboot.c: Likewise.
23990 * include/grub/i386/reboot.h: Likewise.
23991 * include/grub/i386/halt.h: Likewise.
23993 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
23994 Include `<grub/cpu/halt.h>'.
23995 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
23996 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
23998 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
23999 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
24000 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
24001 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
24002 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
24003 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
24005 * include/grub/i386/at_keyboard.h: ... to here.
24007 2008-08-05 Robert Millan <rmh@aybabtu.com>
24009 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
24010 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
24011 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
24012 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24013 `kern/generic/millisleep.c'.
24015 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
24016 instead of grub_get_rtc().
24017 (grub_tsc_init): Initialize `tsc_boot_time'.
24019 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
24020 (grub_machine_init): Use grub_tsc_init() rather than
24021 installing an RTC-based handler via grub_install_get_time_ms().
24023 * kern/i386/pit.c: New file.
24024 * include/grub/i386/pit.h: Likewise.
24026 2008-08-05 Bean <bean123ch@gmail.com>
24028 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
24030 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
24031 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
24032 (pxe_mod_SOURCES): New macro.
24033 (pxe_mod_CFLAGS): Likewise.
24034 (pxe_mod_LDFLAGS): Likewise.
24035 (pxecmd_mod_SOURCES): Likewise.
24036 (pxecmd_mod_CFLAGS): Likewise.
24037 (pxecmd_mod_LDFLAGS): Likewise.
24039 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
24040 (grub_pxe_call): Likewise.
24042 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
24044 * commands/i386/pc/pxecmd.c: New file.
24046 * fs/i386/pc/pxe.c: Likewise.
24048 * include/grub/i386/pc/pxe.h: Likewise.
24050 2008-08-05 Bean <bean123ch@gmail.com>
24052 * util/console.c (grub_console_cur_color): New variable.
24053 (grub_console_standard_color): Likewise.
24054 (grub_console_normal_color): Likewise.
24055 (grub_console_highlight_color): Likewise.
24056 (color_map): Likewise.
24057 (use_color): Likewise.
24058 (NUM_COLORS): New macro.
24059 (grub_ncurses_setcolorstate): Handle color properly.
24060 (grub_ncurses_setcolor): Don't change color here, just remember the
24061 settings, color will be set in grub_ncurses_setcolorstate.
24062 (grub_ncurses_getcolor): New function.
24063 (grub_ncurses_init): Initialize color pairs.
24064 (grub_ncurses_term): New member grub_ncurses_getcolor.
24066 2008-08-05 Colin D Bennett <colin@gibibit.com>
24068 High resolution timer support. Implemented for x86 CPUs using TSC.
24069 Extracted generic grub_millisleep() so it's linked in only as needed.
24070 This requires a Pentium compatible CPU; if the RDTSC instruction is
24071 not supported, then it falls back on the generic grub_get_time_ms()
24072 implementation that uses the machine's RTC.
24074 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
24075 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24076 `kern/generic/millisleep.c'.
24078 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
24079 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
24081 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
24082 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
24084 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24086 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24087 `kern/generic/millisleep.c'.
24089 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24091 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
24093 * kern/generic/rtc_get_time_ms.c: New file.
24095 * kern/generic/millisleep.c: New file.
24097 * kern/misc.c: Don't include
24098 <kern/time.h> anymore.
24099 (grub_millisleep_generic): Removed.
24101 * commands/sleep.c (grub_interruptible_millisleep): Uses
24102 grub_get_time_ms() instead of grub_get_rtc().
24104 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
24106 (grub_cpu_is_cpuid_supported): New inline function.
24107 (grub_cpu_is_tsc_supported): New inline function.
24108 (grub_tsc_init): New function prototype.
24109 (grub_tsc_get_time_ms): New function prototype.
24111 * kern/i386/tsc.c (grub_get_time_ms): New file.
24113 * include/grub/time.h: Include <grub/types.h.
24114 (grub_millisleep_generic): Removed.
24115 (grub_get_time_ms): New prototype.
24116 (grub_install_get_time_ms): New prototype.
24117 (grub_rtc_get_time_ms): New prototype.
24119 * kern/time.c (grub_get_time_ms): New function.
24120 (grub_install_get_time_ms): New function.
24122 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
24123 <grub/time.h> anymore.
24124 (grub_millisleep): Removed.
24125 (grub_machine_init): Call grub_tsc_init.
24127 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
24128 get_time_ms() implementation.
24130 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
24131 (ieee1275_get_time_ms): New function.
24132 (grub_machine_init): Install get_time_ms() implementation.
24134 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
24135 (grub_machine_init): Call grub_tsc_init().
24136 (grub_millisleep): Removed.
24138 * kern/ieee1275/init.c (grub_millisleep): Removed.
24139 (grub_machine_init): Install ieee1275_get_time_ms()
24141 (ieee1275_get_time_ms): New function.
24142 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
24145 2008-08-05 Marco Gerards <marco@gnu.org>
24147 * disk/ata.c: Include <grub/pci.h>.
24148 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
24149 (grub_ata_initialize): Rewritten.
24150 (grub_ata_device_initialize): New function.
24152 2008-08-04 Pavel Roskin <proski@gnu.org>
24154 * kern/main.c: Include grub/mm.h.
24156 2008-08-04 Robert Millan <rmh@aybabtu.com>
24158 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
24159 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
24160 corruption problem).
24162 2008-08-04 Robert Millan <rmh@aybabtu.com>
24164 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
24165 warnings introduced in my last commit.
24167 2008-08-03 Robert Millan <rmh@aybabtu.com>
24169 Make PCI available on all i386 architectures.
24171 * include/grub/i386/pc/pci.h: Move from here ...
24172 * include/grub/i386/pci.h: ... to here.
24174 * include/grub/i386/pc/pci.h: Remove.
24175 * include/grub/i386/efi/pci.h: Remove.
24176 * include/grub/x86_64/efi/pci.h: Remove.
24178 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
24179 `<grub/cpu/pci.h>'.
24181 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
24182 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
24183 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
24185 * conf/i386-ieee1275.rmk: Likewise.
24187 2008-08-03 Robert Millan <rmh@aybabtu.com>
24189 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
24190 (grub_console_setcursor): Make it possible to set cursor off.
24192 2008-08-03 Robert Millan <rmh@aybabtu.com>
24194 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
24195 of modules instead of assuming which platform provides what.
24196 * util/update-grub.in: Likewise.
24198 2008-08-03 Robert Millan <rmh@aybabtu.com>
24200 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
24201 instead of `grub_install_dos_part' to determine whether a drive needs
24202 to be prepended to prefix (`grub_install_dos_part' is not reliable,
24203 because it can be overridden when loading GRUB via Multiboot).
24205 2008-08-02 Robert Millan <rmh@aybabtu.com>
24207 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
24209 2008-08-02 Robert Millan <rmh@aybabtu.com>
24211 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
24212 of informational grub_dprintf() calls.
24214 2008-08-02 Robert Millan <rmh@aybabtu.com>
24216 * disk/memdisk.c (memdisk_size): Don't initialize.
24217 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
24219 * include/grub/i386/pc/kernel.h
24220 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
24221 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
24222 (grub_memdisk_image_size, grub_arch_memdisk_addr)
24223 (grub_arch_memdisk_size): Remove.
24225 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
24226 field (was only used to transfer a constant). Add `type' field to
24227 support multiple module types.
24228 (grub_module_iterate): New function.
24230 * kern/device.c (grub_device_open): Do not hide error messages
24231 when grub_disk_open() fails. Use grub_print_error() instead.
24233 * kern/i386/pc/init.c (grub_arch_modules_addr)
24234 (grub_arch_memdisk_size): Remove functions.
24235 (grub_arch_modules_addr): Return the module address in high memory
24236 (now that it isn't copied anymore).
24238 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
24239 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
24240 decompression routine (grub_total_module_size already includes that
24241 now). Don't copy modules back to low memory.
24243 * kern/main.c: Include `<grub/mm.h>'.
24244 (grub_load_modules): Split out (and use) ...
24245 (grub_module_iterate): ... this function, which iterates through
24246 module objects and runs a hook.
24247 Comment out grub_mm_init_region() call, as it would cause non-ELF
24248 modules to be overwritten.
24250 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
24251 the memdisk image in its own region, make it part of the module list.
24252 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
24253 (main): Parse --memdisk|-m option, and pass user-provided path as
24254 parameter to generate_image().
24255 (add_segments): Pass `memdisk_path' down to load_modules().
24256 (load_modules): Embed memdisk image in module section when requested.
24257 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
24258 `header.type' instead of `header.offset'.
24260 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
24261 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
24262 (memdisk_mod_LDFLAGS): New variables.
24263 * conf/i386-coreboot.rmk: Likewise.
24264 * conf/i386-ieee1275.rmk: Likewise.
24266 2008-08-02 Robert Millan <rmh@aybabtu.com>
24268 * loader/i386/pc/multiboot.c (playground, forward_relocator)
24269 (backward_relocator): New variables. Used to allocate and relocate
24270 the payload, respectively.
24271 (grub_multiboot_load_elf32): Load into heap instead of requested
24272 address, install the appropriate relocator code in each bound of
24273 the payload, and set the entry point such that
24274 grub_multiboot_real_boot() will jump to one of them.
24276 * kern/i386/loader.S (grub_multiboot_payload_size)
24277 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24278 (grub_multiboot_payload_entry_offset): New variables.
24279 (grub_multiboot_real_boot): Set cpu context to what the relocator
24280 expects, and jump to the relocator instead of the payload.
24282 * include/grub/i386/loader.h (grub_multiboot_payload_size)
24283 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24284 (grub_multiboot_payload_entry_offset): Export.
24286 2008-08-01 Bean <bean123ch@gmail.com>
24288 * normal/menu_entry.c (editor_getline): Don't return the original
24289 string as result, as it will be released by lexer once it has done
24292 2008-08-01 Robert Millan <rmh@aybabtu.com>
24294 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
24295 within menuentries, not before them.
24296 util/grub.d/10_hurd.in: Likewise.
24298 2008-08-01 Bean <bean123ch@gmail.com>
24300 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
24301 (bufio_mod_SOURCES): New macro.
24302 (bufio_mod_CFLAGS): Likewise.
24303 (bufio_mod_LDFLAGS): Likewise.
24305 * include/grub/bufio.h: New file.
24307 * io/bufio.c: Likewise.
24309 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
24310 (grub_video_reader_png): Use grub_buffile_open to open file.
24312 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
24313 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
24315 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
24316 (grub_video_reader_tga): Use grub_buffile_open to open file.
24318 * font/manager.c: Include <grub/bufio.h>.
24319 (add_font): Use grub_buffile_open to open file.
24321 2008-07-31 Robert Millan <rmh@aybabtu.com>
24323 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
24324 ELF segments, use a macro for arbitrarily accessing any of them instead
24325 of preparing a pointer that allows access to one at a time.
24326 (grub_multiboot_load_elf64): Likewise.
24328 2008-07-31 Bean <bean123ch@gmail.com>
24330 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
24331 GRUB_KERNEL_MACHINE_DATA_END.
24333 2008-07-30 Robert Millan <rmh@aybabtu.com>
24335 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
24336 Increase from 0x50 to 0x60.
24337 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
24338 use UUIDs to identify the root drive for them. If that's not
24340 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
24341 check, for cross-disk installs.
24343 2008-07-30 Robert Millan <rmh@aybabtu.com>
24345 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
24346 is non-empty, use it to set the `prefix' environment variable instead
24347 of the usual approach.
24348 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
24349 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
24350 environment variable instead of dummy make_install_device().
24352 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
24353 (start): Insert a data section, with `grub_prefix' variable.
24354 * kern/i386/linuxbios/startup.S: Likewise.
24356 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
24357 New variable reference.
24358 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
24359 New macro. Defines offset of `grub_prefix' within startup.S (relative
24361 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
24362 section within startup.S (relative to `start').
24363 * include/grub/i386/coreboot/kernel.h: Likewise.
24365 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
24366 Overwrite grub_prefix with its contents, at the beginning of the
24368 (main): Understand -p|--prefix.
24370 2008-07-30 Robert Millan <rmh@aybabtu.com>
24372 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
24374 2008-07-30 Robert Millan <rmh@aybabtu.com>
24376 * term/i386/pc/vga_text.c (grub_console_cls): Use
24377 grub_console_gotoxy() to go back to beginning of the screen.
24378 Found by Patrick Georgi <patrick.georgi@coresystems.de>
24380 2008-07-29 Christian Franke <franke@computer.org>
24382 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
24383 Add conversion of emulated mount points on Cygwin.
24385 2008-07-29 Christian Franke <franke@computer.org>
24387 * util/update-grub.in: Add a check for admin
24389 Remove old `grub.cfg.new' before creation.
24390 Add `-f' to `mv' to handle the different filesystem
24391 semantics of Windows.
24393 2008-07-29 Bean <bean123ch@gmail.com>
24395 * normal/main.c (get_line): Fix buffer overflow bug.
24397 2008-07-28 Robert Millan <rmh@aybabtu.com>
24399 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
24400 (struct grub_apple_header): New struct. Describes the layout of
24401 the partmap header.
24402 (apple_partition_map_iterate): Check the header magic as well as the
24403 partition magic (which was already being checked).
24405 2008-07-28 Pavel Roskin <proski@gnu.org>
24407 * genmk.rb: Add a warning to the beginning of the output that
24408 it's a generated file and should not be edited.
24410 2008-07-28 Robert Millan <rmh@aybabtu.com>
24412 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
24413 with the same number are found, just use issue a warning with
24414 grub_dprintf(), as this error has been reported to be non-fatal.
24416 2008-07-27 Robert Millan <rmh@aybabtu.com>
24418 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
24421 2008-07-27 Bean <bean123ch@gmail.com>
24423 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
24424 (grub_fat_find_dir): Ignore case when comparing filename.
24426 2008-07-27 Bean <bean123ch@gmail.com>
24428 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
24429 smallino, as it's more descriptive, and i8count can be confused with
24430 the other field count.
24431 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
24434 2008-07-27 Bean <bean123ch@gmail.com>
24436 * commands/crc.c: New file.
24438 * lib/crc.c: Likewise.
24440 * include/grub/lib/crc.h: Likewise.
24442 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
24444 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
24445 (hexdump): Move this function to ...
24447 * lib/hexdump.c: ... here.
24449 * include/grub/hexdump.h: Renamed to ...
24451 * include/grub/lib/hexdump.h: ... this.
24453 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
24455 * util/grub-editenv.c: Likewise.
24457 * include/envblk.h: Renamed to ...
24459 * include/lib/envblk.h: ... this.
24461 * util/envblk.c: Renamed to ...
24463 * lib/envblk.c: ... this.
24465 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
24467 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
24468 (pkglib_MODULES): Add crc.mod.
24469 (hexdump_mod_SOURCES): Add lib/hexdump.c.
24470 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
24471 (crc_mod_SOURCES): New macro.
24472 (crc_mod_CFLAGS): Likewise.
24473 (crc_mod_LDFLAGS): Likewise.
24475 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
24477 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24479 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24483 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24485 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
24487 * commands/help.c: Include <grub/term.h>.
24488 (TERM_WIDTH): Removed. Updated all users.
24490 2008-07-27 Pavel Roskin <proski@gnu.org>
24492 * util/getroot.c (find_root_device): Rephrase a comment to avoid
24493 spurious warnings about a comment within a comment.
24495 2008-07-25 Robert Millan <rmh@aybabtu.com>
24497 * util/getroot.c (find_root_device): Skip devices that match
24498 /dev/dm-[0-9]. This lets the real device be found for any type of
24499 abstraction (LVM, EVMS, RAID..).
24500 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
24501 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
24502 device is found first, find_root_device() will now skip it.
24504 2008-07-24 Pavel Roskin <proski@gnu.org>
24506 * include/grub/types.h: Use __builtin_bswap32() and
24507 __builtin_bswap64() with gcc 4.3 and newer.
24509 2008-07-24 Christian Franke <franke@computer.org>
24511 * util/i386/pc/grub-install.in: If `--debug' is specified,
24512 pass `--verbose' to grub-setup.
24513 Abort script if make_system_path_relative_to_its_root() fails.
24515 2008-07-24 Bean <bean123ch@gmail.com>
24517 * configure.ac: Fixed a bug caused by the previous cygwin patch,
24518 variable `target_platform' should be `platform'.
24520 2008-07-24 Bean <bean123ch@gmail.com>
24522 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
24523 (grub_png_init_fixed_block): New function.
24524 (grub_png_decode_image_data): Handle fixed huffman code compression.
24526 2008-07-24 Bean <bean123ch@gmail.com>
24528 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
24529 (grub_pe2elf_SOURCES): New macro.
24530 (CLEANFILES): Add grub-pe2elf.
24532 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
24533 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
24534 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
24535 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
24536 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
24537 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
24538 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
24539 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
24540 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
24541 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
24542 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
24543 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
24544 (GRUB_PE32_DT_FUNCTION): Likewise.
24545 (GRUB_PE32_REL_I386_DIR32): Likewise.
24546 (GRUB_PE32_REL_I386_REL32): Likewise.
24547 (grub_pe32_symbol): New structure.
24548 (grub_pe32_reloc): Likewise.
24550 * util/grub-pe2elf.c: New file.
24552 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
24553 start symbol in non pc platform.
24555 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
24557 The following patches are from Christian Franke.
24559 * include/grub/dl.h: Remove .previous, gas supports this only
24562 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
24563 Remove .type, gas supports this only for ELF format.
24565 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
24566 nullbytes in symbol table. This fixes an infinite loop if table is
24569 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
24570 TARGET_IMG_LDFLAGS and EXEEXT.
24572 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
24573 TARGET_IMG_LDFLAGS_AC.
24574 (grub_CHECK_STACK_ARG_PROBE): New function.
24576 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
24578 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
24580 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
24581 to set TARGET_IMG_LD* accordingly.
24582 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
24583 Add call to grub_CHECK_STACK_ARG_PROBE.
24584 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
24586 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
24588 * genmk.rb: Add EXEEXT to CLEANFILES.
24590 2008-07-23 Robert Millan <rmh@aybabtu.com>
24592 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
24593 define the codes for arrows and lines used for the menu).
24594 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
24597 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
24598 fonts, because the latter are too slow.
24600 2008-07-21 Bean <bean123ch@gmail.com>
24602 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
24603 a20. Run keyboard test last, as it will cause macbook to halt.
24605 2008-07-18 Pavel Roskin <proski@gnu.org>
24607 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
24608 load foreign architecture modules correctly anyway. Keep
24609 support for loading host architecture modules, whether we
24610 compile them or not.
24612 2008-07-17 Pavel Roskin <proski@gnu.org>
24614 * configure.ac: Use -m32 or -m64 regardless of whether we had to
24615 change target_cpu. The compiler default can mismatch target_cpu
24618 * disk/efi/efidisk.c: Fix format warnings on x86_64.
24619 * kern/efi/efi.c: Likewise.
24621 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
24622 target compiler is functional.
24623 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
24626 * configure.ac: Default to efi platform for x86_64-apple. Allow
24627 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
24628 adjustments from the rest, only do them if target is not
24629 explicitly given. Merge other adjustments with the final sanity
24630 check. Remove an extraneous check for supported CPU. Be
24631 specific which CPU and which platform is not supported.
24633 * configure.ac: Default to pc platform for x86_64.
24635 2008-07-17 Robert Millan <rmh@aybabtu.com>
24637 Partial LinuxBIOS -> Coreboot rename.
24639 * conf/i386-linuxbios.rmk: Renamed to ...
24640 * conf/i386-coreboot.rmk: ... this.
24641 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
24642 * configure.ac: Accept "coreboot" as input platform (but maintain
24643 compatibility with "linuxbios").
24644 * include/grub/i386/linuxbios: Renamed to ...
24645 * include/grub/i386/coreboot: ... this.
24647 2008-07-17 Bean <bean123ch@gmail.com>
24649 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
24650 (appleldr_mod_SOURCE): New variable.
24651 (appleldr_mod_CFLAGS): Likewise.
24652 (appleldr_mod_LDFLAGS): Likewise.
24653 (pci_mod_SOURCES): Likewise.
24654 (pci_mod_CFLAGS): Likewise.
24655 (pci_mod_LDFLAGS): Likewise.
24656 (lspci_mod_SOURCES): Likewise.
24657 (lspci_mod_CFLAGS): Likewise.
24658 (lspci_mod_LDFLAGS): Likewise.
24660 * conf/x86_64-efi.rmk: New file.
24662 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
24664 (grub_efidisk_write): Likewise.
24666 * include/efi/api.h (efi_call_0): New macro.
24667 (efi_call_1): Likewise.
24668 (efi_call_2): Likewise.
24669 (efi_call_3): Likewise.
24670 (efi_call_4): Likewise.
24671 (efi_call_5): Likewise.
24672 (efi_call_6): Likewise.
24674 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
24675 grub_rescue_cmd_chainloader.
24677 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
24678 (grub_pe32_optional_header): Change some fields based on i386 or
24680 (GRUB_PE32_PE32_MAGIC): Likewise.
24682 * include/grub/efi/uga_draw.h: New file.
24684 * include/grub/elf.h (STN_ABS): New constant.
24685 (R_X86_64_NONE): Relocation constant for x86_64.
24686 (R_X86_64_64): Likewise.
24687 (R_X86_64_PC32): Likewise.
24688 (R_X86_64_GOT32): Likewise.
24689 (R_X86_64_PLT32): Likewise.
24690 (R_X86_64_COPY): Likewise.
24691 (R_X86_64_GLOB_DAT): Likewise.
24692 (R_X86_64_JUMP_SLOT): Likewise.
24693 (R_X86_64_RELATIVE): Likewise.
24694 (R_X86_64_GOTPCREL): Likewise.
24695 (R_X86_64_32): Likewise.
24696 (R_X86_64_32S): Likewise.
24697 (R_X86_64_16): Likewise.
24698 (R_X86_64_PC16): Likewise.
24699 (R_X86_64_8): Likewise.
24700 (R_X86_64_PC8): Likewise.
24702 * include/grub/i386/efi/pci.h: New file.
24704 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
24705 Change it value based on platform.
24706 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
24707 (GRUB_E820_RAM): Likewise.
24708 (GRUB_E820_RESERVED): Likewise.
24709 (GRUB_E820_ACPI): Likewise.
24710 (GRUB_E820_NVS): Likewise.
24711 (GRUB_E820_EXEC_CODE): Likewise.
24712 (GRUB_E820_MAX_ENTRY): Likewise.
24713 (grub_e820_mmap): New structure.
24714 (linux_kernel_header): Change the efi field according to different
24715 kernel version, also field from linux_kernel_header.
24717 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
24719 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
24720 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
24721 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
24722 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
24723 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
24724 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
24725 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
24726 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
24727 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
24728 (GRUB_PCI_ADDR_IO_MASK): Likewise.
24730 * include/grub/x86_64/efi/kernel.h: New file.
24732 * include/grub/x86_64/efi/loader.h: Likewise.
24734 * include/grub/x86_64/efi/machine.h: Likewise.
24736 * include/grub/x86_64/efi/pci.h: Likewise.
24738 * include/grub/x86_64/efi/time.h: Likewise.
24740 * include/grub/x86_64/linux.h: Likewise.
24742 * include/grub/x86_64/setjmp.h: Likewise.
24744 * include/grub/x86_64/time.h: Likewise.
24746 * include/grub/x86_64/types.h: Likewise.
24748 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
24749 GRUB_TARGET_SIZEOF_VOID_P.
24751 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
24752 (grub_efi_locate_handle): Likewise.
24753 (grub_efi_open_protocol): Likewise.
24754 (grub_efi_set_text_mode): Likewise.
24755 (grub_efi_stall): Likewise.
24756 (grub_exit): Likewise.
24757 (grub_reboot): Likewise.
24758 (grub_halt): Likewise.
24759 (grub_efi_exit_boot_services): Likewise.
24760 (grub_get_rtc): Likewise.
24762 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
24763 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
24764 (grub_efi_allocate_pages): Wrap efi calls.
24765 (grub_efi_free_pages): Wrap efi calls.
24766 (grub_efi_get_memory_map): Wrap efi calls.
24768 * kern/x86_64/dl.c: New file.
24770 * kern/x86_64/efi/callwrap.S: Likewise.
24772 * kern/x86_64/efi/startup.S: Likewise.
24774 * loader/efi/appleloader.c: Likewise.
24776 * loader/efi/chainloader.c (cmdline): New variable.
24777 (grub_chainloader_unload): Wrap efi calls.
24778 (grub_chainloader_boot): Likewise.
24779 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
24782 * loader/efi/chainloader_normal.c (chainloader_command):
24783 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
24786 * loader/i386/efi/linux.c (allocate_pages): Change allocation
24788 (grub_e820_add_region): New function.
24789 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
24791 (grub_find_video_card): New function.
24792 (grub_linux_setup_video): New function.
24793 (grub_rescue_cmd_linux): Probe for video information.
24795 * normal/x86_64/setjmp.S: New file.
24797 * term/efi/console.c (map_char): New function.
24798 (grub_console_putchar): Map unicode char.
24799 (grub_console_checkkey): Wrap efi calls.
24800 (grub_console_getkey): Likewise.
24801 (grub_console_getwh): Likewise.
24802 (grub_console_gotoxy): Likewise.
24803 (grub_console_cls): Likewise.
24804 (grub_console_setcolorstate): Likewise.
24805 (grub_console_setcursor): Likewise.
24807 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
24809 2008-07-16 Pavel Roskin <proski@gnu.org>
24811 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
24814 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
24815 pointer, not an integer. This fixes a warning and prevents
24816 precision loss on 64-bit systems.
24817 (relocate_addresses): Remove unneeded cast.
24819 2008-07-15 Pavel Roskin <proski@gnu.org>
24821 * kern/i386/ieee1275/init.c: Include grub/cache.h.
24823 * term/ieee1275/ofconsole.c: Disable code unused on i386.
24825 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
24826 Fix comparison between signed and unsigned.
24828 * include/grub/i386/ieee1275/console.h: Declare
24829 grub_console_init() and grub_console_fini().
24831 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
24832 It's empty and unused.
24834 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
24835 beginning to avoid warnings with some compilers.
24837 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
24838 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
24840 2008-07-14 Pavel Roskin <proski@gnu.org>
24842 * kern/env.c (grub_register_variable_hook): Don't copy empty
24843 string, it leaks memory. Pass "" to grub_env_set(), it should
24844 handle constant strings.
24846 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
24847 * commands/cmp.c (grub_cmd_cmp): Likewise.
24848 * kern/dl.c (grub_dl_flush_cache): Likewise.
24849 (grub_dl_load_core): Likewise.
24850 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
24851 (grub_elf64_load_phdrs): Likewise.
24853 2008-07-13 Pavel Roskin <proski@gnu.org>
24855 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
24856 between signed and unsigned.
24857 (LzmaEnc_Finish): Fix warning about an unused parameter.
24859 2008-07-13 Bean <bean123ch@gmail.com>
24861 * Makefile.in (enable_lzo): New rule.
24863 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
24865 * configure.ac (ENABLE_LZO): New option --enable-lzo.
24867 * boot/i386/pc/lnxboot.S: #include <config.h>.
24869 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
24870 its value according to the compression algorithm used, lzo or lzma.
24872 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
24873 compression algorithm according to configure macro.
24875 * kern/i386/pc/startup.S (codestart): Likewise.
24877 * kern/i386/pc/lzma_decode.S: New file.
24879 * include/grub/lib/LzFind.h: Likewise.
24881 * include/grub/lib/LzHash.h: Likewise.
24883 * include/grub/lib/LzmaDec.h: Likewise.
24885 * include/grub/lib/LzmaEnc.h: Likewise.
24887 * include/grub/lib/LzmaTypes.h: Likewise.
24889 * lib/LzFind.c: Likewise.
24891 * lib/LzmaDec.c: Likewise.
24893 * lib/LzmaEnc.c: Likewise.
24895 2008-07-13 Bean <bean123ch@gmail.com>
24897 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
24898 (grub_ext4_extent_header): New structure.
24899 (grub_ext4_extent): Likewise.
24900 (grub_ext4_extent_idx): Likewise.
24901 (grub_ext4_find_leaf): New function.
24902 (grub_ext2_read_block): Handle extents.
24904 2008-07-12 Robert Millan <rmh@aybabtu.com>
24906 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
24908 2008-07-11 Robert Millan <rmh@aybabtu.com>
24910 * util/grub.d/40_custom.in: New file. Example on how to add custom
24911 entries to /etc/grub.d.
24912 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
24913 40_custom (implicitly, by merging all the grub.d rules).
24915 2008-07-11 Pavel Roskin <proski@gnu.org>
24917 * commands/read.c (grub_getline): Fix invalid memory access.
24918 Don't add newline to the variable value.
24920 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
24921 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
24922 (serial_hw_get_port): Check validity of the port number.
24923 (grub_cmd_serial): Check return value of serial_hw_get_port().
24925 2008-07-07 Pavel Roskin <proski@gnu.org>
24927 * boot/i386/pc/diskboot.S (notification_string): Replace
24928 "Loading kernel" with just "loading". This is shorter, less
24929 confusing and saves a few bytes for possible future changes.
24931 2008-07-05 Pavel Roskin <proski@gnu.org>
24933 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
24934 size for ATAPI devices, they are undefined. Output sector
24935 number in decimal form.
24937 * disk/ata.c: Use named constants for status bits.
24939 2008-07-04 Pavel Roskin <proski@gnu.org>
24941 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
24942 grub_addr_t before casting it to the void pointer to fix a
24943 warning. Non-addressable regions are discarded earlier.
24944 (grub_arch_modules_addr): Cast _end to grub_addr_t.
24945 * kern/i386/linuxbios/table.c: Include grub/misc.h.
24946 (check_signature): Don't shadow table_header.
24947 (grub_linuxbios_table_iterate): Cast numeric constants to
24948 grub_linuxbios_table_header_t.
24949 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
24952 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
24955 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
24956 pointer, which can cause warnings. Support 64-bit addresses.
24958 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
24959 of sizeof(long). This fixes PowerPC image generation on x86_64.
24961 2008-07-04 Robert Millan <rmh@aybabtu.com>
24963 This fixes a performance issue when pc & gpt partmap iterators
24964 didn't abort iteration even after our hook found what it was
24965 looking for (often causing expensive probes of non-existent drives).
24967 Some callers relied on previous buggy behaviour, since they would
24968 raise an error when their own hooks caused early abortion of its
24971 * kern/device.c (grub_device_open): Improve error message.
24972 * disk/lvm.c (grub_lvm_open): Likewise.
24973 * disk/raid.c (grub_raid_open): Likewise.
24975 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
24976 when hook requests it, independently of grub_errno.
24977 (pc_partition_map_probe): Do not fail when find_func() caused
24978 early abortion of pc_partition_map_iterate().
24980 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
24981 when hook requests it, independently of grub_errno.
24982 (gpt_partition_map_probe): Do not fail when find_func() caused
24983 early abortion of gpt_partition_map_iterate().
24985 * kern/partition.c (grub_partition_iterate): Abort parent iteration
24986 when hook requests it, independently of grub_errno. Do not fail when
24987 part_map_iterate_hook() caused early abortion of p->iterate().
24989 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
24990 when grub_partition_iterate() returned with non-zero.
24992 2008-07-03 Pavel Roskin <proski@gnu.org>
24994 * disk/ata.c (grub_ata_pio_write): Check status before writing,
24995 like we do in grub_ata_pio_read().
24996 (grub_ata_readwrite): Always write individual sectors. Fix the
24997 sector count for the remainder.
24998 (grub_ata_write): Enable writing to ATA devices. Correctly
24999 report error for ATAPI devices.
25001 2008-07-02 Pavel Roskin <proski@gnu.org>
25003 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
25006 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
25007 for every read sector, we already increment it for the whole
25008 batch. This fixes reading more than 256 sectors at once.
25010 * util/grub-editenv.c (cmd_info): Cast argument to long
25011 explicitly. ptrdiff_t reduces to int on i386.
25013 * util/grub-editenv.c (main): Be specific which parameter is
25016 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
25017 (memdisk): Make memdisk_orig_addr a pointer.
25019 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
25020 for file offsets, use grub_off_t instead. Fix printf format
25023 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
25024 there. Real unexpected warnings should not drown in the noise
25025 about known problems.
25027 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
25028 grub_disk_addr_t for memory addresses.
25030 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
25031 explicitly to fix a warning.
25033 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
25035 * Makefile.in (MODULE_LDFLAGS): New variable.
25036 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
25037 the linker accepts --build-id=none.
25038 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
25040 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
25042 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
25043 those in Linux XFS code. Provide a way to access 64-bit parent
25045 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
25046 the end of struct grub_xfs_dir_header.
25048 2008-07-02 Bean <bean123ch@gmail.com>
25050 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
25051 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25052 and GRUB_IEEE1275_FLAG_NO_ANSI.
25054 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
25055 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25056 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
25058 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
25059 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
25061 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
25062 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
25064 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
25065 esc sequence on non ANSI terminal.
25066 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
25068 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
25071 2008-07-02 Bean <bean123ch@gmail.com>
25073 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
25074 (grub_editenv_SOURCES): New variable.
25075 (pkglib_MODULES): Add loadenv.mod.
25076 (loadenv_mod_SOURCES): New variable.
25077 (loadenv_mod_CFLAGS): Likewise.
25078 (loadenv_mod_LDFLAGS): Likewise.
25080 * include/grub/envblk.h: New file.
25082 * util/envblk.c: New file.
25084 * util/grub-editenv.c: New file.
25086 * commands/loadenv.c: New file.
25088 2008-07-01 Pavel Roskin <proski@gnu.org>
25090 * include/multiboot2.h (struct multiboot_tag_module): Use char,
25091 not unsigned char. This fixes warnings and is consistent with
25094 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
25096 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
25098 * term/tparm.c (analyze): Always set *popcount.
25100 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
25101 cast to fix a warning.
25103 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
25104 cast to suppress a warning.
25106 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
25107 grub_fshelp_read_file() expects.
25109 * fs/fat.c: Fix UUID calculation on big-endian systems. We
25110 write uuid as a 32-bit value in CPU byte order, so declare and
25113 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
25114 long if the format specifier expects it.
25115 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
25116 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25117 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
25118 long to fix a warning.
25119 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
25120 grub_dprintf() arguments to fix warnings.
25122 2008-06-30 Pavel Roskin <proski@gnu.org>
25124 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
25125 install_bsd_part immediately before core.img is embedded or
25126 modified on disk. This fixes core.img verification if core.img
25127 cannot be embedded.
25129 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
25130 core_path to calculate the blocklist.
25131 Patch from Javier Martín <lordhabbit@gmail.com>
25133 2008-06-29 Robert Millan <rmh@aybabtu.com>
25135 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
25136 block to disk block.
25137 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
25138 Patch from Niels Böhm <bitbucket@arcor.de>
25140 2008-06-29 Robert Millan <rmh@aybabtu.com>
25142 * util/update-grub_lib.in (font_path): Search for fonts in
25143 /boot/grub first, which is more likely to be readable (we aren't
25144 deciding where fonts live, just looking for them).
25146 2008-06-26 Pavel Roskin <proski@gnu.org>
25148 * util/biosdisk.c (read_device_map): Don't leave dead map
25149 entries for devices failing stat() check.
25151 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
25152 core_path_dev for the core.img path on the target device.
25154 2008-06-26 Robert Millan <rmh@aybabtu.com>
25156 * disk/fs_uuid.c: New file.
25157 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
25158 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
25159 (fs_uuid_mod_LDFLAGS): New variables.
25160 * include/grub/disk.h (grub_disk_dev_id): Add
25161 `GRUB_DISK_DEVICE_UUID_ID'.
25162 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
25163 implement iterate().
25165 2008-06-26 Robert Millan <rmh@aybabtu.com>
25167 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
25168 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
25169 Linux image includes no initrd.
25171 2008-06-21 Javier Martín <lordhabbit@gmail.com>
25173 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
25174 call to resolve the core image location that effectively appended the
25177 2008-06-21 Robert Millan <rmh@aybabtu.com>
25179 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
25182 * util/grub.d/10_hurd.in: ... to here ...
25183 * util/grub.d/10_linux.in: ... and here.
25185 2008-06-19 Robert Millan <rmh@aybabtu.com>
25187 * kern/main.c (grub_main): Export `prefix' variable immediately
25188 after it has been set by grub_machine_set_prefix().
25190 2008-06-19 Robert Millan <rmh@aybabtu.com>
25192 * commands/search.c (search_label, search_fs_uuid, search_file): Print
25193 search result when not saving to variable, not the other way around.
25194 When saving to variable, abort iteration as soon as a match is found.
25196 2008-06-19 Robert Millan <rmh@aybabtu.com>
25198 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
25199 check for partition that provides /boot/grub. Its logic is flawed,
25200 as it prevents prepare_grub_to_access_device() from being called
25203 2008-06-19 Robert Millan <rmh@aybabtu.com>
25205 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
25206 "insmod" command directly when abstraction modules are needed,
25207 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
25208 since it had already been processed).
25210 2008-06-19 Pavel Roskin <proski@gnu.org>
25212 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
25213 changed. This is needed in case GRUB_LIBDIR changes.
25214 * conf/i386-ieee1275.rmk: Likewise.
25215 * conf/i386-linuxbios.rmk: Likewise.
25216 * conf/i386-pc.rmk: Likewise.
25217 * conf/powerpc-ieee1275.rmk: Likewise.
25219 2008-06-18 Pavel Roskin <proski@gnu.org>
25221 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
25222 kernel_elf_symlist.c to symlist.c for consistency with other
25223 architectures. Update all users.
25224 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25226 2008-06-18 Robert Millan <rmh@aybabtu.com>
25228 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
25231 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
25232 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
25233 a RAID device, run setup() for all members independently on whether
25234 LVM abstraction is being used.
25235 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
25236 If grub-mkimage has set `*install_dos_part == -2', don't override this
25238 Perform *install_dos_part adjustments independently on whether
25239 we're embedding or not.
25240 Clarify error message when image is too big for embedding.
25241 Remove duplicate *install_dos_part stanza.
25243 2008-06-17 Robert Millan <rmh@aybabtu.com>
25245 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
25246 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
25248 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
25249 values in grub_ofconsole_normal_color and
25250 grub_ofconsole_highlight_color (they're not directly related to
25251 background and foreground).
25252 (grub_ofconsole_setcolorstate): Extract background and foreground
25253 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
25255 2008-06-17 Robert Millan <rmh@aybabtu.com>
25257 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
25258 /boot/grub for the check in last commit, not /boot (they could be
25259 different partitions).
25261 2008-06-16 Robert Millan <rmh@aybabtu.com>
25263 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
25264 asked to setup access for the same partition that provides /boot,
25265 don't bother using UUIDs since our root already has the value we
25268 2008-06-16 Robert Millan <rmh@aybabtu.com>
25270 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
25272 Patch from Sven Mueller <sven@debian.org>.
25274 2008-06-16 Robert Millan <rmh@aybabtu.com>
25276 * util/update-grub.in: Check for $EUID instead of $UID.
25277 Reported by Vincent Zweije.
25279 2008-06-16 Bean <bean123ch@gmail.com>
25281 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
25282 (grub_ext2_read_block): Likewise.
25283 (grub_ext2_read_inode): Likewise.
25284 (grub_ext2_mount): Likewise.
25285 (grub_ext2_close): Likewise.
25286 (grub_ext3_get_journal): Removed.
25288 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
25289 (grub_reiserfs_read_symlink): Likewise.
25290 (grub_reiserfs_mount): Likewise.
25291 (grub_reiserfs_open): Likewise.
25292 (grub_reiserfs_read): Likewise.
25293 (grub_reiserfs_close): Likewise.
25294 (grub_reiserfs_get_journal): Removed.
25296 * fs/fshelp.c (grub_fshelp_read): Removed.
25297 (grub_fshelp_map_block): Likewise.
25299 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
25300 (grub_fshelp_journal): Likewise.
25301 (grub_fshelp_read): Likewise.
25302 (grub_fshelp_map_block): Likewise.
25304 2008-06-16 Pavel Roskin <proski@gnu.org>
25306 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
25307 floating point anymore.
25308 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
25310 2008-06-15 Pavel Roskin <proski@gnu.org>
25312 * commands/ls.c (grub_ls_list_files): Use integer calculations
25313 for human readable format, avoid floating point use.
25314 * kern/misc.c (grub_ftoa): Remove.
25315 (grub_vsprintf): Remove floating point support.
25317 2008-06-15 Robert Millan <rmh@aybabtu.com>
25319 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
25321 Reported by Max Vozeler.
25323 2008-06-15 Robert Millan <rmh@aybabtu.com>
25325 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
25326 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
25328 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
25329 the beginning of the prefix.
25331 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
25332 It is assumed that if we have a memdisk, grub-mkimage has set
25333 grub_prefix to include the "(memdisk)" drive in it.
25335 2008-06-15 Robert Millan <rmh@aybabtu.com>
25337 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
25338 Initialize keyboard controller after registering the terminal, so that
25339 grub_printf() can be called from grub_keyboard_controller_init().
25341 2008-06-15 Robert Millan <rmh@aybabtu.com>
25343 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
25344 extent-btree which is written as big endian on disk.
25345 Reported by Alain Greppin <al@chilibi.org>.
25347 2008-06-14 Robert Millan <rmh@aybabtu.com>
25349 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
25350 * util/i386/pc/grub-install.in (modules): Likewise.
25352 2008-06-13 Pavel Roskin <proski@gnu.org>
25354 * commands/ls.c (grub_ls_list_files): Fix format warnings.
25356 2008-06-13 Bean <bean123ch@gmail.com>
25358 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
25360 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
25362 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
25363 to indicate sparse block.
25365 2008-06-12 Pavel Roskin <proski@gnu.org>
25367 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
25368 number, grub_fshelp_read() does it for us.
25370 * fs/fshelp.c (grub_fshelp_read): New function. Implement
25371 linear disk read with journal translation.
25372 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
25373 * include/grub/fshelp.h: Declare grub_fshelp_read().
25375 2008-06-09 Pavel Roskin <proski@gnu.org>
25377 * fs/minix.c (grub_minix_mount): Handle error reading
25380 2008-06-08 Robert Millan <rmh@aybabtu.com>
25382 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
25383 don't append the RAID prefix afterwards.
25384 Reported by Clint Adams.
25386 2008-06-08 Robert Millan <rmh@aybabtu.com>
25388 Based on description from Pavel:
25389 * kern/disk.c (grub_disk_check_range): Rename to ...
25390 (grub_disk_adjust_range): ... this. Add a comment explaining the
25391 tasks performed by this function.
25393 2008-06-08 Robert Millan <rmh@aybabtu.com>
25395 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
25396 `num_serial' (for consistency with other variables).
25397 (struct grub_ntfs_data): Add `uuid' member.
25398 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
25399 (grub_ntfs_uuid): New function.
25400 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
25402 2008-06-07 Pavel Roskin <proski@gnu.org>
25404 * util/biosdisk.c (open_device): Revert last change to the
25405 function, it broke installation. The sector needs to be
25406 different dependent on which device is opened.
25408 2008-06-06 Robert Millan <rmh@aybabtu.com>
25410 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
25411 rest of GRUB, and breakage doesn't happen if its value were modified.
25413 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25414 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
25415 a constant (same value).
25416 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
25417 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
25419 2008-06-06 Robert Millan <rmh@aybabtu.com>
25421 * util/biosdisk.c (open_device): Do not modify sector offset when
25422 accessing a partition. kern/disk.c already handles this for us.
25424 2008-06-06 Robert Millan <rmh@aybabtu.com>
25426 * util/grub-emu.c (grub_machine_init): Move code in this function from
25428 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
25429 segfault in case grub_printf() is called).
25431 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
25432 grub_probe. Update all users not to explicitly add it again.
25433 (grub_device): New variable; contains corresponding device for grubdir.
25434 (fs_module, partmap_module, devabstraction_module): Pass
25435 `--device ${grub_device}' to grub_probe to avoid traversing /dev
25438 2008-06-05 Robert Millan <rmh@aybabtu.com>
25440 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
25441 is found, print it (same layout as with labels).
25443 2008-06-04 Robert Millan <rmh@aybabtu.com>
25445 * util/biosdisk.c (get_drive): Rename to ...
25446 (find_grub_drive): ... this. Update all users.
25448 (get_os_disk): Rename to ...
25449 (convert_system_partition_to_system_disk): ... this. Update all users.
25451 (find_drive): Rename to ...
25452 (find_system_device): ... this. Update all users.
25454 2008-06-04 Robert Millan <rmh@aybabtu.com>
25456 * util/biosdisk.c (get_os_disk): Handle IDA devices.
25457 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25458 (make_device_map): Likewise.
25460 2008-06-01 Robert Millan <rmh@aybabtu.com>
25462 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
25463 before dereferencing it.
25465 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
25466 union with fat12/fat16-specific ones. Add some new fields, including
25467 `num_serial' for both versions.
25468 (struct grub_fat_data): Add `uuid' member.
25469 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
25470 names. Initialize `data->uuid' using `num_serial'.
25471 (grub_fat_uuid): New function.
25472 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
25474 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
25475 (grub_reiserfs_uuid): New function.
25476 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
25479 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
25480 (grub_xfs_uuid): New function.
25481 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
25483 2008-06-01 Robert Millan <rmh@aybabtu.com>
25485 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
25486 code that is backward compatible with pre-uuid search command.
25488 2008-05-31 Robert Millan <rmh@aybabtu.com>
25490 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
25491 floppies after everything else, to ensure floppy drive isn't accessed
25492 unnecessarily (patch from Bean).
25494 2008-05-31 Robert Millan <rmh@aybabtu.com>
25496 * commands/search.c (search_label, search_fs_uuid, search_file): Do
25497 not print device names when we were asked to set a variable.
25499 2008-05-31 Robert Millan <rmh@aybabtu.com>
25501 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
25502 using "cursor-on" and "cursor-off" commands (understood at least by
25503 the Open Firmware flavour on OLPC).
25505 2008-05-31 Michael Gorven <michael@gorven.za.net>
25507 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
25508 on and off sequences.
25510 2008-05-31 Robert Millan <rmh@aybabtu.com>
25512 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
25513 * util/update-grub.in: Likewise.
25515 2008-05-30 Pavel Roskin <proski@gnu.org>
25517 * util/biosdisk.c (linux_find_partition): Simplify logic and
25518 make the code more universal. Keep special processing for
25519 devfs, but use a simple rule for all other devices. If the
25520 device ends with a number, append 'p' and the partition number.
25521 Otherwise, append only the partition number.
25523 2008-05-30 Robert Millan <rmh@aybabtu.com>
25525 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
25526 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
25527 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
25528 the `root' parameter to Linux.
25530 2008-05-30 Robert Millan <rmh@aybabtu.com>
25532 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
25533 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
25534 --fs_uuid with --fs-uuid.
25535 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
25536 all filesystems support them).
25538 2008-05-30 Robert Millan <rmh@aybabtu.com>
25540 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
25541 grub_printf() flags, since we're printing in units of 2 bytes.
25543 2008-05-30 Robert Millan <rmh@aybabtu.com>
25545 * util/grub.d/00_header.in: Remove obsolete comment referencing
25546 convert_system_path_to_grub_path().
25547 * util/update-grub.in: Likewise.
25548 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
25549 (convert_system_path_to_grub_path): Add a warning message explaining
25550 that this function is deprecated. Rely on is_path_readable_by_grub()
25551 for the readability checks.
25552 (font_path): Use is_path_readable_by_grub() for the readability
25553 check rather than convert_system_path_to_grub_path().
25555 2008-05-30 Robert Millan <rmh@aybabtu.com>
25557 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
25558 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
25559 converting it first.
25560 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
25561 grub.cfg for access to font file, and afterwards call it again to set
25564 2008-05-30 Robert Millan <rmh@aybabtu.com>
25566 * commands/search.c (options): Add --fs_uuid option.
25567 (search_fs_uuid): New function.
25568 (grub_cmd_search): Fix --set argument passing.
25569 Use search_fs_uuid() when requested via --fs_uuid.
25570 (grub_search_init): Update help message.
25571 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
25572 and redeclare it as an array of 16-bit words.
25573 (grub_ext2_uuid): New function.
25574 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
25575 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
25576 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
25577 (GRUB_DEVICE_BOOT_UUID): New variables.
25578 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
25579 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
25581 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
25582 just assume `root' variable has the right value.
25583 * util/grub.d/10_linux.in: Likewise.
25584 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
25586 (main): Recognise `-t fs_uuid' argument.
25588 2008-05-30 Robert Millan <rmh@aybabtu.com>
25590 * util/biosdisk.c (map): Redefine structure to hold information
25591 about GRUB drive name.
25592 (get_drive): Reimplement without assuming (and verifying) BIOS-like
25594 (call_hook): Remove.
25595 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
25596 member. Assume drive has partitions.
25597 (grub_util_biosdisk_open): Access device names via `.device' struct
25599 (open_device): Likewise.
25600 (find_drive): Likewise.
25601 (read_device_map): Adjust map[] usage to match the new struct
25602 definition. Don't check for duplicates (still possible, but not cheap
25604 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
25605 (make_device_name): Remove assumption of BIOS-like drive names.
25607 2008-05-30 Pavel Roskin <proski@gnu.org>
25609 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
25610 compiling execute.c doesn't need grub_script.tab.h anymore.
25611 (normal/command.c_DEPENDENCIES): Likewise.
25612 (normal/function.c_DEPENDENCIES): Likewise.
25613 * conf/i386-ieee1275.rmk: Likewise.
25614 * conf/i386-linuxbios.rmk: Likewise.
25615 * conf/i386-pc.rmk: Likewise.
25616 * conf/powerpc-ieee1275.rmk: Likewise.
25617 * conf/sparc64-ieee1275.rmk: Likewise.
25619 2008-05-29 Pavel Roskin <proski@gnu.org>
25621 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
25622 when scanning metadata for volume group name.
25624 * include/grub/script.h: Don't include grub_script.tab.h. It's
25625 a generated file, which may only be included from the files with
25626 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
25627 use union YYSTYPE, as the later allows forward declaration.
25628 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
25630 2008-05-29 Robert Millan <rmh@aybabtu.com>
25632 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
25633 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
25634 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
25635 (grub_console_checkkey): Add grub_dprintf() call to report unknown
25638 2008-05-29 Robert Millan <rmh@aybabtu.com>
25640 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
25641 control key combinations.
25643 2008-05-29 Robert Millan <rmh@aybabtu.com>
25645 * util/powerpc/ieee1275/grub-install.in: Move from here ...
25646 * util/ieee1275/grub-install.in: ... to here.
25647 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
25648 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
25649 (grub_install_SOURCES): Likewise.
25651 2008-05-29 Robert Millan <rmh@aybabtu.com>
25653 * fs/affs.c: Update copyright year.
25654 * fs/ext2.c: Likewise.
25655 * fs/fshelp.c: Likewise.
25656 * fs/hfsplus.c: Likewise.
25657 * fs/ntfs.c: Likewise.
25658 * fs/xfs.c: Likewise.
25659 * include/grub/fshelp.h: Likewise.
25660 * util/grub-mkdevicemap.c: Likewise.
25662 2008-05-28 Robert Millan <rmh@aybabtu.com>
25664 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
25665 might need to be fatfs to support some firmware implementations
25668 2008-05-28 Robert Millan <rmh@aybabtu.com>
25670 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
25672 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25673 (make_device_map): Likewise.
25675 2008-05-20 Bean <bean123ch@gmail.com>
25677 * fs/fshelp.c (grub_fshelp_map_block): New function.
25678 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
25679 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
25681 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
25682 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
25683 (grub_fshelp_journal): New structure.
25684 (grub_fshelp_map_block): New function prototype.
25685 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
25686 (grub_fshelp_map_block): Likewise.
25688 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
25689 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
25690 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
25691 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
25692 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
25693 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
25694 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
25695 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
25696 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
25697 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
25698 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
25699 (grub_ext2_sblock): New members for journal support.
25700 (grub_ext3_journal_header): New structure.
25701 (grub_ext3_journal_revoke_header): Likewise.
25702 (grub_ext3_journal_block_tag): Likewise.
25703 (grub_ext3_journal_sblock): Likewise.
25704 (grub_fshelp_node): New members logfile and journal.
25705 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
25706 grub_fshelp_map_block to get real block number.
25707 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
25709 (grub_ext2_read_inode): Likewise.
25710 (grub_ext3_get_journal): New function.
25711 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
25712 (grub_ext2_close): Release memory used by journal.
25714 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
25715 (REISERFS_MAGIC_DESC_BLOCK): New macro.
25716 (grub_reiserfs_transaction_header): Renamed to
25717 grub_reiserfs_description_block, replace field data with real_blocks.
25718 (grub_reiserfs_commit_block): New structure.
25719 (grub_reiserfs_data): New member journal.
25720 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
25722 (grub_reiserfs_read_symlink): Likewise.
25723 (grub_reiserfs_iterate_dir): Likewise.
25724 (grub_reiserfs_open): Likewise.
25725 (grub_reiserfs_read): Likewise.
25726 (grub_reiserfs_get_journal): New function.
25727 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
25728 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
25729 using grub_reiserfs_get_journal.
25730 (grub_reiserfs_close): Release memory used by journal.
25732 * fs/affs.c (grub_affs_read_block): Change block type to
25733 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
25735 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
25737 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
25739 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
25741 * fs/udf.c (grub_udf_read_block): Change block type to
25742 grub_disk_addr_t. Use type cast to avoid warning.
25744 * fs/xfs.c (grub_xfs_read_block): Likewise.
25746 2008-05-16 Christian Franke <franke@computer.org>
25748 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
25749 to ensure that break with ESC will always work.
25750 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
25751 Remove ESC from keyboard queue.
25753 2008-05-16 Christian Franke <franke@computer.org>
25755 * util/biosdisk.c: [__CYGWIN__] Add includes.
25756 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
25757 (get_os_disk): Move variable declarations to OS specific
25758 parts to avoid warning.
25759 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
25760 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
25761 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
25763 * util/getroot.c: [__CYGWIN__] Add includes.
25764 (strip_extra_slashes): Fix "/" case.
25765 [__CYGWIN__] (get_win32_path): New function.
25766 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
25767 [__CYGWIN__] (find_root_device): Disable.
25768 [__CYGWIN__] (get_bootsec_serial): New function.
25769 [__CYGWIN__] (find_cygwin_root_device): Likewise.
25770 [__linux__] (grub_guess_root_device): Add early returns to simplify
25772 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
25773 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
25774 check for Linux only.
25776 2008-05-15 Bean <bean123ch@gmail.com>
25778 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
25779 keyboard hang problem in apple's intel mac.
25781 2008-05-09 Robert Millan <rmh@aybabtu.com>
25783 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
25785 * util/grub-mkdevicemap.c (get_virtio_disk_name)
25786 (make_device_map): Likewise.
25787 Reported by Aurelien Jarno <aurel32@debian.org>
25789 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
25791 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
25792 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
25793 (make_device_map): Output entries for xvd type disks.
25795 2008-05-07 Robert Millan <rmh@aybabtu.com>
25797 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
25799 * util/grub-mkdevicemap.c (get_cciss_disk_name)
25800 (make_device_map): Likewise.
25801 Reported by Roland Dreier <rdreier@cisco.com>
25803 2008-05-07 Robert Millan <rmh@aybabtu.com>
25805 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
25806 grub_strstr() call. Correct a few mistakes in failure path handling.
25808 2008-05-06 Robert Millan <rmh@aybabtu.com>
25810 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
25811 Do not print a trailing slash (therefore, the root directory is an
25813 (convert_system_path_to_grub_path): Do not remove trailing slash
25814 from make_system_path_relative_to_its_root() output.
25816 * util/i386/pc/grub-install.in: Add trailing slash to output from
25817 make_system_path_relative_to_its_root().
25819 2008-05-06 Robert Millan <rmh@aybabtu.com>
25821 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
25822 ensures that output lines aren't intermangled with those sent to
25823 stderr (via grub_util_info()).
25824 * util/grub-probe.c (grub_refresh): Likewise.
25825 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
25827 2008-05-05 Christian Franke <franke@computer.org>
25829 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
25830 Add Cygwin device names.
25831 (get_ide_disk_name) [__CYGWIN__]: Likewise.
25832 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
25833 (check_device): Return error instead of success on empty name.
25834 (make_device_map): Move label inside linux specific code to
25835 prevent compiler warning.
25837 2008-04-30 Robert Millan <rmh@aybabtu.com>
25839 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
25840 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
25842 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
25844 2008-04-29 Robert Millan <rmh@aybabtu.com>
25846 * docs/grub.cfg: New file (example GRUB configuration).
25848 2008-04-26 Robert Millan <rmh@aybabtu.com>
25850 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
25851 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
25852 and `disk/ieee1275/nand.c'.
25854 2008-04-25 Bean <bean123ch@gmail.com>
25856 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
25859 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
25860 change the buffer size to 4096 for cdrom device.
25862 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
25864 (_linux_mod_SOURCES): New variable.
25865 (_linux_mod_CFLAGS): Likewise.
25866 (_linux_mod_LDFLAGS): Likewise.
25867 (linux_mod_SOURCES): Likewise.
25868 (linux_mod_CFLAGS): Likewise.
25869 (linux_mod_LDFLAGS): Likewise.
25870 (nand_mod_SOURCES): Likewise.
25871 (nand_mod_CFLAGS): Likewise.
25872 (nand_mod_LDFLAGS): Likewise.
25874 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
25875 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
25876 type property. (nand device in olpc don't have this property)
25878 * include/grub/disk.h (grub_disk_dev_id): New macro
25879 GRUB_DISK_DEVICE_NAND_ID.
25881 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
25882 function prototype.
25883 (grub_rescue_cmd_initrd): Likewise.
25885 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
25886 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
25887 ofw_cif_handler and ofw_idt, adjust padding number.
25889 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
25890 GRUB_MACHINE_IEEE1275 is defined.
25892 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
25893 Use NESTED_FUNC_ATTR attribute on the hook parameter.
25895 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
25896 on nested function heap_init.
25897 (grub_upper_mem): New variable for i386-ieee1275.
25898 (grub_get_extended_memory): New function for i386-ieee1275.
25899 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
25901 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
25902 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
25905 * loader/i386/ieee1275/linux.c: New file.
25907 * loader/i386/ieee1275/linux_normal.c: New file.
25909 * disk/ieee1275/nand.c: New file.
25911 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
25913 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
25915 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
25917 2008-04-18 Robert Millan <rmh@aybabtu.com>
25919 Restructures early code path on ieee1275 to unify grub_main() as
25920 the first C function that is executed in every platform.
25922 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
25923 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
25925 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
25926 * kern/ieee1275/cmain.c (cmain): Rename to ...
25927 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
25928 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
25931 2008-04-18 Robert Millan <rmh@aybabtu.com>
25933 * util/update-grub.in: Fix syntax error when setting
25934 `GRUB_PRELOAD_MODULES'.
25935 Reported by Stephane Chazelas <stephane@artesyncp.com>
25937 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
25939 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
25940 section into account, newer toolchains generate unique build ids
25941 * configure.ac: remove the test for --build-id=none acceptance,
25942 we want build ids to be preserved
25943 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
25944 far from other sections don't cause the raw binary images grow
25947 2008-04-15 Robert Millan <rmh@aybabtu.com>
25949 * disk/lvm.c: Update copyright year.
25950 * kern/misc.c: Likewise.
25952 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
25954 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
25955 there is no memory left for physical volume name.
25957 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
25959 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
25960 volume name mapping to support bigger than 9 character names properly.
25962 2008-04-13 Robert Millan <rmh@aybabtu.com>
25964 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
25965 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
25967 2008-04-13 Christian Franke <franke@computer.org>
25969 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
25970 to create a floppy emulation boot CD when non emulation mode
25972 Enable Joliet CD filesystem extension.
25974 2008-04-13 Robert Millan <rmh@aybabtu.com>
25976 * kern/misc.c (grub_strncat): Fix off-by-one error.
25977 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
25979 * kern/env.c (grub_env_context_close): Clear current context, not
25981 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
25983 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
25985 2008-04-13 Robert Millan <rmh@aybabtu.com>
25987 Improve robustness when handling LVM.
25989 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
25990 (and leave `*p' unmodified).
25991 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
25993 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
25994 iterating through it.
25995 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
25997 (grub_lvm_scan_device): Check the return value (and fail gracefully
25998 when due) on each grub_lvm_getvalue() or grub_strstr() call.
25999 Don't assume `vg->pvs != NULL' when iterating through it.
26001 2008-04-13 Robert Millan <rmh@aybabtu.com>
26003 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
26004 * genmk.rb (partmap): New variable.
26005 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
26006 (#{partmap}): New target rule.
26007 * genpartmaplist.sh: New file.
26008 * Makefile.in (pkglib_DATA): Add partmap.lst.
26009 (partmap.lst): New target rule.
26010 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
26011 modules (including all partition maps), instead of preloading them.
26013 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
26015 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
26016 `linux-boot-prober' (if installed) to detect other operating
26017 systems which are installed on the computer and add them to
26019 * conf/common.rmk: Build and install 30_os-prober.
26021 2008-04-12 Robert Millan <rmh@aybabtu.com>
26023 * kern/powerpc/ieee1275/init.c: Move from here ...
26024 * kern/ieee1275/init.c: ... to here. Update all users.
26026 * kern/powerpc/ieee1275/cmain.c: Move from here ...
26027 * kern/ieee1275/cmain.c: ... to here. Update all users.
26029 * kern/powerpc/ieee1275/openfw.c: Move from here ...
26030 * kern/ieee1275/openfw.c: ... to here. Update all users.
26032 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
26033 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
26035 2008-04-10 Pavel Roskin <proski@gnu.org>
26037 * configure.ac: Always use "_cv_" in cache variables for
26038 compatibility with Autoconf 2.62.
26040 2008-04-07 Robert Millan <rmh@aybabtu.com>
26042 Revert grub/machine/init.h addition by Pavel (since it breaks on
26043 i386-ieee1275 and others):
26044 * util/i386/pc/misc.c: Remove grub/machine/init.h.
26045 * util/powerpc/ieee1275/misc.c: Likewise.
26047 2008-04-07 Robert Millan <rmh@aybabtu.com>
26049 * util/grub-probe.c (probe): Improve error message.
26051 2008-04-07 Robert Millan <rmh@aybabtu.com>
26053 * util/biosdisk.c (read_device_map): Skip devices that don't exist
26054 (this prevents the presence of a bogus entry from ruining the whole
26057 2008-04-06 Pavel Roskin <proski@gnu.org>
26059 * util/biosdisk.c: Include grub/util/biosdisk.h.
26060 * util/grub-fstest.c (execute_command): Make static.
26061 * util/grub-mkdevicemap.c (check_device): Likewise.
26062 * util/i386/pc/misc.c: Include grub/machine/init.h.
26063 * util/powerpc/ieee1275/misc.c: Likewise.
26064 * util/lvm.c: Include grub/util/lvm.h.
26065 * util/misc.c: Include grub/kernel.h, grub/misc.h and
26067 * util/raid.c: Include grub/util/raid.h.
26068 (grub_util_getdiskname): Make static.
26070 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
26071 grub_hostfs_fini(), as they are called from grub_init_all() and
26072 grub_fini_all() respectively. This fixes an infinite loop in
26073 grub-fstest due to double registration of hostfs.
26074 Reported by Christian Franke <Christian.Franke@t-online.de>
26076 2008-04-05 Pavel Roskin <proski@gnu.org>
26078 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
26079 all 8 functions. Otherwise, probe function 0 only.
26081 2008-04-04 Pavel Roskin <proski@gnu.org>
26083 * commands/lspci.c (grub_lspci_iter): Print the bus number
26086 * commands/lspci.c (grub_pci_classes): Fix typos.
26087 (grub_lspci_iter): Don't print func twice. Print vendor ID
26088 before device ID, as it's normally done.
26090 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26091 Fix signedness warnings.
26092 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
26094 * util/ieee1275/get_disk_name.c: Include config.h so that
26095 _GNU_SOURCE is defined and getline() is declared. Mark an
26096 unused argument as such. Fix a signedness warning.
26098 2008-04-02 Pavel Roskin <proski@gnu.org>
26100 * genkernsyms.sh.in: Use more robust assignments for CC and
26101 srcdir. Quote srcdir.
26102 * gensymlist.sh.in: Likewise. Assert at the compile time that
26103 the symbol table is not empty.
26105 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
26106 * fs/cpio.c (grub_cpio_read): Likewise.
26108 2008-04-01 Pavel Roskin <proski@gnu.org>
26110 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
26111 * disk/host.c (grub_host_open): Likewise.
26112 * disk/loopback.c (grub_loopback_open): Likewise.
26113 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
26114 disk->id as in disk/host.c, not a multi-character constant.
26116 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
26117 later is obsolete, potentially dangerous and sets a bad example.
26118 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
26119 * util/misc.c (grub_util_get_image_size): Likewise.
26121 * disk/loopback.c (options): Improve help for "--partitions".
26123 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
26124 options to align them with the short options, e.g. "echo -e".
26126 2008-03-31 Bean <bean123ch@gmail.com>
26128 * video/reader/png.c (grub_png_data): New member is_16bit and
26130 (grub_png_decode_image_header): Detect 16 bit png image.
26131 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
26132 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
26133 (grub_video_reader_png): Release memory occupied by image_data.
26135 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
26137 (grub_nfs_mount): Skip the test for sector per cluster.
26139 * include/grub/ntfs.h (MAX_SPC): Removed.
26141 2008-03-31 Bean <bean123ch@gmail.com>
26143 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
26144 (grub_probe_SOURCES): Add fs/afs.c.
26145 (grub_fstest_SOURCES): Likewise.
26146 (afs_mod_SOURCES): New variable.
26147 (afs_mod_CFLAGS): Likewise.
26148 (afs_mod_LDFLAGS): Likewise.
26150 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
26151 (grub_emu_SOURCES): Likewise.
26153 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26155 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26157 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26161 * fs/afs.c: New file.
26163 2008-03-30 Pavel Roskin <proski@gnu.org>
26165 * disk/host.c: Include grub/misc.h to fix a warning.
26166 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
26167 warnings about implicit declarations.
26169 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
26171 * include/grub/i386/loader.h: Change declaration of
26172 grub_linux_boot() to match what grub_loader_set() expects.
26173 * util/getroot.c (grub_guess_root_device): Return const char* to
26175 * util/grub-probe.c (probe): Fix a warning about uninitialized
26176 abstraction_name variable.
26177 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
26178 second argument as unused to fix a warning.
26180 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
26181 missing grub_error() call.
26183 * util/update-grub_lib.in: Define datarootdir, since Autoconf
26184 2.60 and newer uses it to define datadir.
26186 * commands/sleep.c: Fix warning about implicit declaration.
26187 * disk/memdisk.c: Likewise.
26188 * loader/aout.c: Likewise.
26189 * loader/i386/bsd_normal.c: Likewise.
26190 * util/grub-probe.c: Likewise.
26192 * commands/i386/cpuid.c (has_longmode): Make static.
26193 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
26194 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
26196 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
26197 GDT. This is more robust, as %ds can change.
26198 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
26199 calling real_to_prot().
26200 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
26202 2008-03-28 Pavel Roskin <proski@gnu.org>
26204 * kern/i386/pc/startup.S: Assert that uncompressed functions
26205 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
26206 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
26207 code, as they push parts of the code (error handlers) beyond
26208 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
26209 code as correctness and size.
26211 2008-03-28 Pavel Roskin <proski@gnu.org>
26213 * kern/i386/pc/startup.S
26214 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
26215 data block address to the real mode, keep offset minimal. This
26216 works around a bug in AWARD BIOS on old Athlon systems, which
26217 makes CD detection hang.
26219 2008-03-26 Pavel Roskin <proski@gnu.org>
26221 * normal/color.c (grub_parse_color_name_pair): Make `name' a
26223 * include/grub/normal.h: Add grub_parse_color_name_pair()
26226 2008-03-24 Bean <bean123ch@gmail.com>
26228 * disk/i386/pc/biosdisk.c (cd_start): Removed.
26229 (cd_count): Removed.
26230 (cd_drive): New variable.
26231 (grub_biosdisk_get_drive): Don't check for (cdN) device.
26232 (grub_biosdisk_call_hook): Likewise.
26233 (grub_biosdisk_iterate): Change cdrom detection method.
26234 (grub_biosdisk_open): Replace cd_start with cd_drive.
26235 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
26236 detect cdrom device.
26238 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
26240 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
26241 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
26242 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
26243 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
26244 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
26245 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
26246 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
26247 (grub_biosdisk_cdrp): New structure.
26248 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
26250 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
26252 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
26255 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
26258 2008-03-20 Robert Millan <rmh@aybabtu.com>
26260 Remove 2 TiB limit in ata.mod.
26261 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
26262 (grub_ata_dumpinfo): Print sector count with 0x%llx.
26263 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
26264 grub_uint64_t instead of grub_uint32_t.
26266 2008-03-05 Bean <bean123ch@gmail.com>
26268 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
26269 (grub_multiboot): Set boot device.
26271 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
26273 2008-03-02 Bean <bean123ch@gmail.com>
26275 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
26278 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
26280 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
26283 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
26286 * docs/fdl.texi: New file.
26288 * docs/mdate-sh: New file. Copied from gnulib.
26289 * docs/texinfo.tex: Likewise.
26291 * config.guess: Updated from gnulib.
26292 * install-sh: Likewise.
26294 2008-02-28 Robert Millan <rmh@aybabtu.com>
26296 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
26297 (aout_mod_SOURCES): New variable.
26298 (aout_mod_CFLAGS): Likewise.
26299 (aout_mod_LDFLAGS): Likewise.
26301 * conf/i386-ieee1275.rmk: Likewise.
26303 2008-02-28 Robert Millan <rmh@aybabtu.com>
26305 * util/update-grub.in: Reorganise terminal validity check. Accept
26306 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
26307 Based on suggestion by Franklin PIAT.
26309 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
26311 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
26313 * util/getroot.c (grub_util_check_block_device): New function that
26314 returns the given argument if it is a block device and returns NULL else.
26315 * util/grub-probe.c (argument_is_device): New variable.
26316 (probe): Promote device_name from a variable to an argument. Receive
26317 device_name from grub_util_check_block_device() if path is NULL and from
26318 grub_guess_root_device() else. Do not free() device_name anymore.
26319 (options): Introduce new parameter '-d, --device'.
26320 (main): Add description of the new parameter to the help screen.
26321 Rename path variable to argument. Set argument_is_device if the '-d'
26322 option is given. Pass argument to probe() depending on
26323 argument_is_device.
26325 2008-02-24 Bean <bean123ch@gmail.com>
26327 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
26328 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
26329 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
26330 (GRUB_ISO9660_VOLDESC_PART): Likewise.
26331 (GRUB_ISO9660_VOLDESC_END): Likewise.
26332 (grub_iso9660_primary_voldesc): New member escape.
26333 (grub_iso9660_data): New member joliet.
26334 (grub_iso9660_convert_string): New function.
26335 (grub_iso9660_mount): Detect joliet extension.
26336 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
26337 (grub_iso9660_iso9660_label): Likewise.
26339 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
26340 (grub_setup_SOURCES): Add fs/udf.c.
26341 (grub_fstest_SOURCES): Likewise.
26342 (udf_mod_SOURCES): New variable.
26343 (udf_mod_CFLAGS): Likewise.
26344 (udf_mod_LDFLAGS): Likewise.
26346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
26347 (grub_emu_SOURCES): Likewise.
26349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26351 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26353 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26357 * fs/udf.c: New file.
26359 2008-02-24 Robert Millan <rmh@aybabtu.com>
26361 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
26362 (normal/lexer.c_DEPENDENCIES): New variables.
26363 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26364 (normal/lexer.c_DEPENDENCIES): Likewise.
26365 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
26366 (normal/lexer.c_DEPENDENCIES): Likewise.
26367 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
26368 (normal/lexer.c_DEPENDENCIES): Likewise.
26369 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26370 (normal/lexer.c_DEPENDENCIES): Likewise.
26371 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26372 (normal/lexer.c_DEPENDENCIES): Likewise.
26374 2008-02-23 Robert Millan <rmh@aybabtu.com>
26376 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
26377 since they were intended to be in hex. This didn't break previously
26378 because of a bug in gpt_partition_map_iterate() (see below).
26380 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
26381 when checking the validity of GPT header.
26382 Remove `partno', since it always provides the same information as `i'.
26384 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
26386 * include/grub/efi/time.h: Fix a wrong comment.
26388 2008-02-19 Pavel Roskin <proski@gnu.org>
26390 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
26393 2008-02-19 Bean <bean123ch@gmail.com>
26395 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
26396 (aout_mod_SOURCES): New variable.
26397 (aout_mod_CFLAGS): Likewise.
26398 (aout_mod_LDFLAGS): Likewise.
26399 (_bsd_mod_SOURCES): New variable.
26400 (_bsd_mod_CFLAGS): Likewise.
26401 (_bsd_mod_LDFLAGS): Likewise.
26402 (bsd_mod_SOURCES): New variable.
26403 (bsd_mod_CFLAGS): Likewise.
26404 (bsd_mod_LDFLAGS): Likewise.
26406 * include/grub/aout.h: New file.
26408 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
26410 * include/grub/i386/bsd.h: New file.
26412 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
26415 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
26416 function is called, so that it's possible to change it inside the hook.
26417 (grub_elf64_load): Likewise.
26418 (grub_elf_file): Don't close the file if elf header is not found.
26419 (grub_elf_close): Close the file if grub_elf_file fails (The new
26420 grub_elf_file won't close it).
26421 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
26422 (grub_elf64_size): Likewise.
26424 * kern/i386/loader.S (grub_unix_real_boot): New function.
26426 * loader/aout.c: New file.
26428 * loader/i386/bsd.c: New file.
26430 * loader/i386/bsd_normal.c: New file.
26432 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
26434 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
26435 can test other formats.
26437 2008-02-19 Robert Millan <rmh@aybabtu.com>
26439 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
26440 (grub_gpt_partition_type_empty): Redefine with macro from
26441 `<grub/gpt_partition.h>'.
26442 (gpt_partition_map_iterate): Adjust partition type comparison.
26444 Export `entry' as partmap-specific `part.data' struct.
26445 (grub_gpt_header, grub_gpt_partentry): Move from here ...
26447 * include/grub/gpt_partition.h (grub_gpt_header)
26448 (grub_gpt_partentry): ... to here (new file).
26450 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
26452 (grub_gpt_partition_type_bios_boot): New const variable, defined
26453 with macro from `<grub/gpt_partition.h>'.
26455 (setup): Replace `first_start' with `embed_region', which keeps
26456 track of the embed region (and is partmap-agnostic).
26458 Replace find_first_partition_start() with find_usable_region(),
26459 which finds a usable region for embedding using partmap-specific
26460 knowledge (supports PC/MSDOS and GPT).
26462 Fix all assumptions that the embed region start at sector 1, using
26463 `embed_region.start' from now on. Similarly, use `embed_region.end'
26464 rather than `first_start' to calculate available size.
26466 In grub_util_info() message, replace "into after the MBR" with an
26467 indication of the specific sector our embed region starts at.
26469 2008-02-19 Robert Millan <rmh@aybabtu.com>
26471 * DISTLIST: Replace `commands/ieee1275/halt.c' and
26472 `commands/ieee1275/reboot.c' with `commands/halt.c' and
26473 `commands/reboot.c'.
26474 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26475 (halt_mod_SOURCES): Likewise.
26476 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26477 (halt_mod_SOURCES): Likewise.
26479 2008-02-17 Christian Franke <franke@computer.org>
26481 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
26483 2008-02-17 Robert Millan <rmh@aybabtu.com>
26485 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26486 set `first_start' to 0 for non-PC/MSDOS partition maps.
26488 2008-02-16 Robert Millan <rmh@aybabtu.com>
26490 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26491 do not assume partition map is PC/MSDOS before performing checks that
26492 are specific to that layout.
26494 2008-02-13 Robert Millan <rmh@aybabtu.com>
26496 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
26497 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
26498 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
26500 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
26502 * configure.ac: Only a cosmetic change on the handling of
26503 -fno-stack-protector.
26505 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
26507 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
26508 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
26510 (grub_install_SOURCES): Add halt.mod and reboot.mod.
26511 (halt_mod_SOURCES): New variable.
26512 (halt_mod_CFLAGS): Likewise.
26513 (halt_mod_LDFLAGS): Likewise.
26514 (reboot_mod_SOURCES): Likewise.
26515 (reboot_mod_CFLAGS): Likewise.
26516 (reboot_mod_LDFLAGS): Likewise.
26518 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
26519 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
26521 (halt_mod_SOURCES): Likewise.
26522 (reboot_mod_SOURCES): Likewise.
26524 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
26525 commands/i386/pc/reboot.c by commands/reboot.c.
26526 (reboot_mod_SOURCES): Likewise.
26528 * commands/i386/pc/reboot.c: merge this file ...
26530 * commands/ieee1275/reboot.c: ... and this file ...
26532 * commands/reboot.c: ... to this file.
26533 Add some precompiler directive to include the correct header for
26536 * commands/ieee1275/halt.c: move this file ...
26538 * commands/halt.c: ... to here.
26539 Add some precompiler directive to include the correct header for
26542 * include/grub/efi/efi.h (grub_reboot): New function declaration.
26543 (grub_halt): Likewise.
26545 * kern/efi/efi.c (grub_reboot): New function.
26546 (grub_halt): Likewise.
26548 2008-02-12 Robert Millan <rmh@aybabtu.com>
26550 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
26551 /dev (like it is done for /dev/mapper). This doesn't provide support
26552 for EVMS, but at least it is now easy to identify the problem when it
26555 2008-02-11 Robert Millan <rmh@aybabtu.com>
26557 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
26558 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
26559 comparing it with -1, not 0.
26561 2008-02-10 Robert Millan <rmh@aybabtu.com>
26563 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
26565 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26566 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26568 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
26569 `disk/lvm.c' to the end of the list.
26570 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26571 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26573 2008-02-10 Robert Millan <rmh@aybabtu.com>
26575 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
26576 grub_print_error() instead. This will let user know why we're entering
26578 Based on suggestions from Sam Morris.
26580 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
26582 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
26583 on remaining N args, instead of "--" arg N times.
26585 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
26587 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
26588 (fill_with_default_glyph): Changed to use unknown_glyph for fill
26589 pattern for unknown glyphs.
26591 2008-02-09 Robert Millan <rmh@aybabtu.com>
26593 * configure.ac: Probe for `help2man'.
26594 * Makefile.in (builddir): New variable.
26595 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
26596 or otherwise add a few flags/options to it.
26597 (install-local): For every executable utility or script that is
26598 installed, invoke $(HELP2MAN) to install a manpage based on --help
26601 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
26602 that it doesn't prevent --help from working in build tree.
26604 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
26605 with `bug-grub@gnu.org'.
26606 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
26607 * util/update-grub.in (usage): New function.
26608 Implement proper argument check, with support for --help and --version
26609 (as well as existing -y).
26611 2008-02-09 Christian Franke <franke@computer.org>
26613 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
26614 avoid overwriting previous output.
26615 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
26617 2008-02-09 Robert Millan <rmh@aybabtu.com>
26619 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
26622 2008-02-09 Robert Millan <rmh@aybabtu.com>
26624 * commands/sleep.c: New file.
26625 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
26626 (sleep_mod_SOURCES): New variable.
26627 (sleep_mod_CFLAGS): Likewise.
26628 (sleep_mod_LDFLAGS): Likewise.
26630 2008-02-09 Robert Millan <rmh@aybabtu.com>
26632 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
26633 situations in which we can deduce the RAID size and the superblock
26636 2008-02-09 Robert Millan <rmh@aybabtu.com>
26638 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
26639 and return a grub_diskmemberlist_t composed of LVM physical volumes.
26640 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
26642 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
26643 and return a grub_diskmemberlist_t composed of physical array members.
26644 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
26646 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
26648 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
26649 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
26650 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
26652 * util/grub-probe.c (probe): Move partmap probing code from here ...
26653 (probe_partmap): ... to here.
26654 (probe): Use probe_partmap() once for the disk we're probing, and
26655 additionally, when such disk contains a memberlist() struct member,
26656 once for each disk that is contained in the structure returned by
26659 2008-02-09 Robert Millan <rmh@aybabtu.com>
26661 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
26662 environment variable to 'all' in order to obtain debug output from
26664 * util/i386/pc/grub-setup.c (main): Likewise.
26666 2008-02-08 Robert Millan <rmh@aybabtu.com>
26668 * disk/raid.c (grub_raid_scan_device): Check for
26669 `array->device[sb.this_disk.number]' rather than for
26670 `array->device[sb.this_disk.number]->name', since the latter is not
26671 guaranteed to be accessible.
26673 2008-02-08 Robert Millan <rmh@aybabtu.com>
26675 * disk/raid.c: Update copyright.
26676 * fs/cpio.c: Likewise.
26677 * include/grub/raid.h: Likewise.
26678 * loader/i386/pc/multiboot.c: Likewise.
26679 * util/hostfs.c: Likewise.
26681 2008-02-08 Robert Millan <rmh@aybabtu.com>
26683 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
26684 to a grub_disk_t array.
26685 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
26687 (grub_raid_scan_device): Replace `device[x].name' accesses with
26688 `device[x]->name'. Simplify initialization of `array->device[x]'.
26690 2008-02-08 Robert Millan <rmh@aybabtu.com>
26692 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
26693 grub_dprintf() calls.
26694 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
26697 2008-02-07 Christian Franke <franke@computer.org>
26699 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
26700 instead of fseek and ftell to support large files.
26701 (grub_hostfs_read): Likewise.
26703 2008-02-07 Robert Millan <rmh@aybabtu.com>
26705 Patch from Jeroen Dekkers.
26706 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
26707 failure, since successfully reading all array members might not be
26710 2008-02-06 Robert Millan <rmh@aybabtu.com>
26712 * util/grub-probe.c (probe): Simplify partmap probing (with the
26713 assumption that the first word up to the underscore equals to
26716 2008-02-06 Christian Franke <franke@computer.org>
26718 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
26719 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
26720 last block of a cpio or tar stream.
26721 Check for "TRAILER!!!" instead of any empty data
26722 block to detect last block of a cpio stream.
26723 (grub_cpio_dir): Fix constness of variable np.
26724 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
26725 cpio or tar trailer is detected. This fixes a crash
26726 on open of a non existing file.
26728 2008-02-05 Bean <bean123ch@gmail.com>
26730 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
26732 (grub_multiboot_load_elf64): Likewise.
26733 (grub_multiboot): Initialize mbi structure.
26735 * util/grub-fstest.c: Don't include unused header file script.h.
26737 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
26739 (grub_fstest_SOURCES): Likewise.
26741 2008-02-05 Robert Millan <rmh@aybabtu.com>
26743 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
26744 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
26745 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
26746 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
26748 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
26749 (translation_table): Replace hardcoded values with macros
26750 provided by `<grub/term.h>'.
26752 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
26753 (keyboard_map): Correct/add a few values, with macros provided
26754 by `<grub/term.h>'.
26755 (keyboard_map_shift): Zero values that don't differ from their
26756 `keyboard_map' equivalents.
26757 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
26758 Discard the second scan code that is always sent by Caps lock.
26759 Only use `keyboard_map_shift' when it provides a non-zero value,
26760 otherwise fallback to `keyboard_map'.
26762 2008-02-04 Bean <bean123ch@gmail.com>
26764 * Makefile.in (enable_grub_fstest): New variable.
26766 * conf/common.rmk (grub_fstest_init.lst): New rule.
26767 (grub_fstest_init.h): Likewise.
26768 (grub_fstest_init.c): Likewise.
26769 (util/grub-fstest.c_DEPENDENCIES): New variable.
26770 (grub_fstest_SOURCES): Likewise.
26772 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
26774 * util/grub-fstest.c: New file.
26776 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26778 Make grub-setup handle a separate root device.
26780 * util/i386/pc/grub-setup.c (setup): Always open the root device,
26781 so that the root device can be compared with the destination
26783 When embedding the core image, if the root and destination devices
26784 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
26786 When not embedding, set ROOT_DRIVE to 0xFF.
26788 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26790 Add support for having a grub directory in a different drive. This
26791 is still only the data handling part.
26793 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
26794 (codestart): Save %dh in GRUB_ROOT_DRIVE.
26795 (grub_root_drive): New variable.
26797 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
26798 instead of GRUB_BOOT_DRIVE to construct a device name. Set
26799 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
26802 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
26804 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
26806 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
26808 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
26809 is bogus, because PXE booting does not specify any drive
26812 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
26813 am not sure if this is really correct.
26815 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
26816 is always identical to the boot drive when booting from a CD.
26818 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
26820 (root_drive): New variable.
26821 (real_start): Unconditionally set %dh to ROOT_DRIVE.
26822 (setup_sectors): Push %dx right after popping it, because %dh will
26824 (copy_buffer): Restore %dx.
26826 2008-02-03 Robert Millan <rmh@aybabtu.com>
26828 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
26829 use `cdboot.img' for cdrom images.
26831 2008-02-03 Robert Millan <rmh@aybabtu.com>
26833 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
26834 only setup gfxterm when `font' command has succeeded.
26836 2008-02-03 Robert Millan <rmh@aybabtu.com>
26838 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
26839 (grub_rescue_cmd_multiboot_loader)
26840 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
26842 2008-02-03 Pavel Roskin <proski@gnu.org>
26844 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
26845 %edx and %esi from stack only after grub_gate_a20() is called.
26846 grub_gate_a20() clobbers %edx.
26848 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26850 * configure.ac (AC_INIT): Bumped to 1.96.
26852 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
26853 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
26854 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
26855 video/readers/png.c.
26857 2008-02-03 Bean <bean123ch@gmail.com>
26859 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
26860 (cdboot_img_SOURCES): New variable.
26861 (cdboot_img_ASFLAGS): New variable.
26862 (cdboot_img_LDFLAGS): New variable.
26864 * boot/i386/pc/cdboot.S: New file.
26866 * disk/i386/pc/biosdisk.c (cd_start): New variable.
26867 (cd_count): Likewise.
26868 (grub_biosdisk_get_drive): Add support for cd device.
26869 (grub_biosdisk_call_hook): Likewise.
26870 (grub_biosdisk_iterate): Likewise.
26871 (grub_biosdisk_open): Likewise.
26872 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
26873 (grub_biosdisk_rw): Support reading from cd device.
26874 (GRUB_MOD_INIT): Iterate cd devices.
26876 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
26877 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
26878 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
26880 * kern/i386/pc/init.c (make_install_device): Check for cd device.
26882 2008-02-02 Robert Millan <rmh@aybabtu.com>
26884 * commands/read.c: New file.
26885 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
26886 (read_mod_SOURCES): New variable.
26887 (read_mod_CFLAGS): Likewise.
26888 (read_mod_LDFLAGS): Likewise.
26890 2008-02-02 Robert Millan <rmh@aybabtu.com>
26892 * normal/main.c (grub_normal_execute): Check for `menu->size' when
26893 determining whether menu has to be displayed.
26895 2008-02-02 Marco Gerards <marco@gnu.org>
26897 * bus/pci.c: New file.
26899 * include/grub/pci.h: Likewise.
26901 * include/grub/i386/pc/pci.h: Likewise.
26903 * commands/lspci.c: Likewise.
26905 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
26907 (pci_mod_SOURCES): New variable.
26908 (pci_mod_CFLAGS): Likewise.
26909 (pci_mod_LDFLAGS): Likewise.
26910 (lspci_mod_SOURCES): Likewise.
26911 (lspci_mod_CFLAGS): Likewise.
26912 (lspci_mod_LDFLAGS): Likewise.
26914 2008-02-02 Bean <bean123ch@gmail.com>
26916 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
26917 (grub_ufs_get_file_block): Fix indirect block calculation problem.
26919 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
26920 (grub_xfs_btree_node): New structure.
26921 (grub_xfs_btree_root): New structure.
26922 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
26923 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
26924 (GRUB_XFS_EXTENT_BLOCK): Likewise.
26925 (GRUB_XFS_EXTENT_SIZE): Likewise.
26926 (grub_xfs_read_block): Support btree format type.
26927 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
26928 Use directory block as basic unit.
26930 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
26932 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
26933 __attribute__ ((__regparm__ (1))).
26935 2008-02-01 Robert Millan <rmh@aybabtu.com>
26937 Correct a mistake in previous commit.
26939 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
26941 (normal/command.c_DEPENDENCIES): New variable.
26943 2008-02-01 Robert Millan <rmh@aybabtu.com>
26945 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
26947 (normal/command.c_DEPENDENCIES): New variable.
26948 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
26949 * conf/i386-ieee1275.rmk: Likewise.
26950 * conf/i386-linuxbios.rmk: Likewise.
26951 * conf/i386-pc.rmk: Likewise.
26952 * conf/sparc64-ieee1275.rmk: Likewise.
26953 * conf/powerpc-ieee1275.rmk: Likewise.
26954 (grub_emu_SOURCES): Add `fs/fshelp.c'.
26956 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
26958 2008-02-01 Robert Millan <rmh@aybabtu.com>
26960 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
26961 call at beginning of function.
26963 2008-01-31 Pavel Roskin <proski@gnu.org>
26965 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
26966 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
26967 (grub_mkrescue_SOURCES): Likewise.
26968 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
26970 2008-01-30 Robert Millan <rmh@aybabtu.com>
26972 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
26973 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
26974 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
26975 (grub_probe_SOURCES): ... to here.
26977 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
26978 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
26979 * conf/i386-ieee1275.rmk: Likewise.
26980 * conf/i386-linuxbios.rmk: Likewise.
26981 * conf/powerpc-ieee1275.rmk: Likewise.
26983 2008-01-30 Tristan Gingold <gingold@free.fr>
26985 * kern/rescue.c: Silently accept empty lines.
26987 2008-01-29 Bean <bean123ch@gmail.com>
26989 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
26990 (real_code_2): Code cleanup and change comment style.
26991 (move_memory): Avoid using 32-bit address mode.
26993 2008-01-29 Bean <bean123ch@gmail.com>
26995 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
26996 (png_mod_SOURCES): New variable.
26997 (png_mod_CFLAGS): Likewise.
26998 (png_mod_LDFLAGS): Likewise.
27000 * video/readers/png.c: New file.
27002 2008-01-28 Robert Millan <rmh@aybabtu.com>
27004 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
27005 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
27006 `ifndef GRUB_MOD_GAP' hack.
27007 * util/elf/grub-mkimage.c (add_segments): Likewise.
27009 2008-01-27 Robert Millan <rmh@aybabtu.com>
27011 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
27012 `GRUB_MOD_GAP' for platforms in which it's not defined.
27013 * util/elf/grub-mkimage.c (add_segments): Likewise.
27015 2008-01-27 Robert Millan <rmh@aybabtu.com>
27017 Get grub-emu to build again (including parallel builds).
27019 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
27021 (util/grub-emu.c_DEPENDENCIES): ... this, ...
27022 (normal/execute.c_DEPENDENCIES): ... this, ...
27023 (grub-emu_DEPENDENCIES): ... and this.
27025 * conf/i386-efi.rmk: Likewise.
27026 * conf/i386-linuxbios.rmk: Likewise.
27027 * conf/i386-ieee1275.rmk: Likewise.
27028 * conf/powerpc-ieee1275.rmk: Likewise.
27029 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
27031 2008-01-27 Robert Millan <rmh@aybabtu.com>
27033 * NEWS: Add a few items.
27035 2008-01-27 Robert Millan <rmh@aybabtu.com>
27037 Fix parallel builds with grub-emu. Based on earlier commit for
27038 grub-probe and grub-setup.
27040 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27041 (util/grub-emu.c_DEPENDENCIES): ... this.
27042 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27043 (util/grub-emu.c_DEPENDENCIES): ... this.
27044 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27045 (util/grub-emu.c_DEPENDENCIES): ... this.
27046 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27047 (util/grub-emu.c_DEPENDENCIES): ... this.
27048 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27049 (util/grub-emu.c_DEPENDENCIES): ... this.
27051 2008-01-27 Pavel Roskin <proski@gnu.org>
27053 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
27054 to create a gap between _end and the modules added to the image
27055 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
27056 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
27057 * util/elf/grub-mkimage.c (add_segments): Likewise.
27059 2008-01-26 Pavel Roskin <proski@gnu.org>
27061 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
27062 just return an error.
27064 2008-01-26 Bean <bean123ch@gmail.com>
27066 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
27067 (grub_reiserfs_get_item): Save offset of the next item.
27068 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
27070 2008-01-25 Robert Millan <rmh@aybabtu.com>
27072 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
27073 make all filesystem sources appear together (possibly fixing omissions
27075 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27076 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27077 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27080 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
27082 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
27083 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27084 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
27085 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27087 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
27088 (probe): Add a sanity check to make sure of our ability to read
27089 requested files when probing for filesystem type.
27091 * genmk.rb: Update copyright year (2007).
27093 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
27094 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
27095 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
27096 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
27097 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
27098 : Remove function prototypes.
27100 2008-01-25 Robert Millan <rmh@aybabtu.com>
27102 Revert my previous commits (based on wrong assumption of how grub_errno
27105 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
27106 * kern/file.c (grub_file_open): Likewise.
27108 2008-01-24 Pavel Roskin <proski@gnu.org>
27110 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
27111 that hang if GRUB tries to setup colors.
27112 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
27113 colors for firmwares that don't support it.
27114 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
27115 Recognize Open Hack'Ware, set flags to work around its
27118 2008-01-24 Robert Millan <rmh@aybabtu.com>
27120 * kern/file.c (grub_file_open): Do not account previous failures of
27121 unrelated functions when grub_errno is checked for.
27122 Reported by Oleg Strikov.
27124 2008-01-24 Bean <bean123ch@gmail.com>
27126 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
27127 (grub_ufs_sblock): New member volume name.
27128 (grub_ufs_find_file): Fix string copy bug.
27129 (grub_ufs_label): Implement this function properly.
27131 * fs/hfs.c (grub_hfs_cnid_type): New enum.
27132 (grub_hfs_iterate_records): Use the correct file number for extents
27133 and catalog file. Fix problem in next index calculation.
27134 (grub_hfs_find_node): Replace recursive function call with loop.
27135 (grub_hfs_iterate_dir): Replace recursive function call with loop.
27137 2008-01-23 Robert Millan <rmh@aybabtu.com>
27139 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
27140 `<grub/symbol.h>' and `<grub/multiboot.h>'.
27141 (grub_multiboot2_real_boot): New function prototype.
27143 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
27144 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
27146 * kern/i386/ieee1275/init.c (grub_os_area_addr)
27147 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
27149 2008-01-23 Robert Millan <rmh@aybabtu.com>
27151 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
27152 #ifdef'ed out grub_printf().
27154 2008-01-23 Robert Millan <rmh@aybabtu.com>
27156 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
27157 grub_dprintf calls, since they make "debug=all" mode unusable.
27158 (grub_console_checkkey): Likewise.
27160 2008-01-23 Robert Millan <rmh@aybabtu.com>
27162 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27163 `term/i386/pc/at_keyboard.c'.
27164 (pkglib_MODULES): Add `serial.mod'.
27165 (serial_mod_SOURCES): New variable.
27166 (serial_mod_CFLAGS): Likewise.
27167 (serial_mod_LDFLAGS): Likewise.
27169 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
27170 `<grub/powerpc/ieee1275/console.h>'.
27171 (grub_keyboard_controller_init): New function prototype.
27172 (grub_console_checkkey): Likewise.
27173 (grub_console_getkey): Likewise.
27175 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
27178 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
27179 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
27181 2008-01-23 Robert Millan <rmh@aybabtu.com>
27183 * kern/i386/pc/init.c (make_install_device): When memdisk image is
27184 present, "(memdisk)/boot/grub" becomes the default prefix.
27186 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
27187 a memdisk tarball with all the modules. Add --overlay=DIR option that
27188 allows users to overlay additional files into the image.
27190 2008-01-23 Robert Millan <rmh@aybabtu.com>
27192 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
27193 and `machine/memory.h'.
27194 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
27195 (_multiboot_mod_SOURCES): New variable.
27196 (_multiboot_mod_CFLAGS): Likewise.
27197 (_multiboot_mod_LDFLAGS): Likewise.
27198 (multiboot_mod_SOURCES): Likewise.
27199 (multiboot_mod_CFLAGS): Likewise.
27200 (multiboot_mod_LDFLAGS): Likewise.
27202 * include/grub/i386/ieee1275/loader.h: New file.
27204 * include/grub/i386/ieee1275/machine.h: Likewise.
27206 * include/grub/i386/ieee1275/memory.h: Likewise.
27208 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
27209 variable declaration.
27210 (grub_os_area_size): Likewise.
27212 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
27213 (grub_lower_mem, grub_upper_mem): New variables.
27214 (grub_stop_floppy): New function (just to make
27215 grub_multiboot2_real_boot() happy).
27217 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
27218 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
27219 (grub_stop): New function.
27220 Include `"../realmode.S"' and `"../loader.S"'.
27222 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
27223 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
27225 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
27226 rely on grub_multiboot2_real_boot() for final boot.
27228 2008-01-22 Robert Millan <rmh@aybabtu.com>
27230 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
27231 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
27232 device that doesn't look like an SD card.
27233 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27234 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
27235 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
27236 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
27239 2008-01-22 Robert Millan <rmh@aybabtu.com>
27241 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
27242 avoid claiming over our own code.
27244 2008-01-22 Bean <bean123ch@gmail.com>
27246 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
27247 (jpeg_mod_SOURCES): New variable.
27248 (jpeg_mod_CFLAGS): Likewise.
27249 (jpeg_mod_LDFLAGS): Likewise.
27251 * video/readers/jpeg.c : New file.
27253 2008-01-22 Bean <bean123ch@gmail.com>
27255 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
27256 there are no more items.
27258 2008-01-21 Robert Millan <rmh@aybabtu.com>
27260 * kern/mm.c (grub_mm_init_region): Improve debug message.
27262 2008-01-21 Robert Millan <rmh@aybabtu.com>
27264 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
27265 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
27267 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
27269 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
27270 Indicates start of upper memory.
27271 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
27272 (generate_image): Abort when image size is big enough to corrupt
27275 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
27276 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
27277 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27278 instead of hardcoding 0xA0000.
27279 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
27280 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27281 instead of hardcoding 0xA0000.
27283 2008-01-21 Robert Millan <rmh@aybabtu.com>
27285 * disk/memdisk.c (memdisk_size): New variable.
27286 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
27288 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
27289 image to dynamic memory.
27290 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
27291 `memdisk_size'. Free memdisk block.
27293 2008-01-21 Robert Millan <rmh@aybabtu.com>
27295 Fix detection of very small filesystems (like tar).
27297 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
27298 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
27299 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
27300 a problem with this disk).
27302 2008-01-21 Robert Millan <rmh@aybabtu.com>
27304 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
27305 on grub_biosdisk_rw_standard() error.
27307 2008-01-21 Robert Millan <rmh@aybabtu.com>
27309 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
27311 * kern/elf.c: Likewise.
27312 * kern/ieee1275/ieee1275.c: Likewise.
27313 * kern/powerpc/ieee1275/openfw.c: Likewise.
27314 * term/ieee1275/ofconsole.c: Likewise.
27316 2008-01-21 Robert Millan <rmh@aybabtu.com>
27318 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
27320 * include/grub/kernel.h (grub_arch_memdisk_addr)
27321 (grub_arch_memdisk_size): Moved from here ...
27323 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
27324 (grub_arch_memdisk_size): ... to here.
27326 2008-01-21 Robert Millan <rmh@aybabtu.com>
27328 Mostly based on bugfix from Bean.
27330 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
27331 attribute with hook() parameter.
27332 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
27334 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
27335 attribute with hook() parameter.
27336 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
27339 2008-01-21 Robert Millan <rmh@aybabtu.com>
27341 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
27342 (pkglib_MODULES): Add `memdisk.mod'.
27343 (memdisk_mod_SOURCES): New variable.
27344 (memdisk_mod_CFLAGS): Likewise.
27345 (memdisk_mod_LDFLAGS): Likewise.
27347 * disk/memdisk.c: New file.
27349 * include/grub/disk.h (grub_disk_dev_id): Add
27350 `GRUB_DISK_DEVICE_MEMDISK_ID'.
27352 * include/grub/i386/pc/kernel.h
27353 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
27354 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
27355 (grub_kernel_image_size): New variable declaration.
27356 (grub_total_module_size): Likewise.
27357 (grub_memdisk_image_size): Likewise.
27359 * include/grub/i386/pc/memory.h
27360 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
27362 * include/grub/kernel.h: Include `<grub/symbol.h>'.
27363 (grub_arch_memdisk_addr): New variable declaration.
27364 (grub_arch_memdisk_size): Likewise.
27366 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
27367 (grub_arch_memdisk_size): Likewise.
27369 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
27370 (codestart): Replace hardcoded `0x100000' with
27371 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
27373 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
27374 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
27375 not NULL, append the contents of the file it refers to, at the end of
27376 the compressed kernel image. Initialize `grub_memdisk_image_size'
27377 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
27378 (options): Add "memdisk"|'m' option.
27379 (main): Parse --memdisk|-m option, and pass user-provided path as
27380 parameter to generate_image().
27382 2008-01-20 Robert Millan <rmh@aybabtu.com>
27384 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
27385 grub_dprintf() calls from here ...
27386 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
27388 2008-01-20 Robert Millan <rmh@aybabtu.com>
27390 Fix detection of "real mode" when /options/real-mode? doesn't exist.
27392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
27394 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
27395 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
27396 `GRUB_IEEE1275_FLAG_REAL_MODE'.
27397 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
27399 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
27400 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
27402 2008-01-19 Robert Millan <rmh@aybabtu.com>
27404 Get rid of confusing function (superseded by
27405 `grub_ieee1275_get_integer_property')
27406 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
27408 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
27410 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
27411 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
27412 in native endianness from grub_ieee1275_get_integer_property().
27414 2008-01-19 Robert Millan <rmh@aybabtu.com>
27416 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
27417 command after "shut-down", since implementations differ on which
27418 the command for halt is.
27420 2008-01-19 Robert Millan <rmh@aybabtu.com>
27422 * include/grub/i386/linuxbios/console.h: Add header protection.
27423 (grub_keyboard_controller_init): New function prototype.
27424 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
27425 (KEYBOARD_COMMAND_READ): Likewise.
27426 (KEYBOARD_COMMAND_WRITE): Likewise.
27427 (KEYBOARD_SCANCODE_SET1): Likewise.
27428 (grub_keyboard_controller_write): New function.
27429 (grub_keyboard_controller_read): Likewise.
27430 (grub_keyboard_controller_init): Likewise.
27432 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
27433 (grub_console_init): On coreboot/LinuxBIOS, call
27434 grub_keyboard_controller_init().
27436 2008-01-19 Robert Millan <rmh@aybabtu.com>
27438 PowerPC changes provided by Pavel Roskin.
27440 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
27441 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
27442 don't rely on cmain() doing it.
27443 * kern/i386/ieee1275/startup.S (_start): Store %eax in
27444 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
27446 2008-01-16 Robert Millan <rmh@aybabtu.com>
27448 * include/grub/i386/linuxbios/memory.h
27449 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
27450 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
27451 receive `table_header' as argument. Instead, probe for it in the
27452 known memory ranges where it can be present.
27453 (grub_available_iterate): Do not pass a fixed `table_header' address
27454 to grub_linuxbios_table_iterate().
27456 2008-01-15 Robert Millan <rmh@aybabtu.com>
27458 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
27459 * conf/i386-ieee1275.rmk: New file.
27460 * include/grub/i386/ieee1275/console.h: Likewise.
27461 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
27462 * include/grub/i386/ieee1275/kernel.h: Likewise.
27463 * include/grub/i386/ieee1275/time.h: Likewise.
27464 * kern/i386/ieee1275/init.c: Likewise.
27465 * kern/i386/ieee1275/startup.S: Likewise.
27467 2008-01-15 Robert Millan <rmh@aybabtu.com>
27469 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
27470 when pointers are 32-bit (but still do set it to one when they are
27473 2008-01-15 Robert Millan <rmh@aybabtu.com>
27475 * include/grub/ieee1275/ieee1275.h
27476 (grub_ieee1275_get_integer_property): New function prototype.
27478 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
27479 (grub_ieee1275_get_integer_property): New function. Wraps around
27480 grub_ieee1275_get_property() to handle endianness.
27482 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
27483 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
27485 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
27486 (grub_map): Likewise.
27487 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
27489 2008-01-15 Bean <bean123ch@gmail.com>
27491 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
27492 (grub_script_execute_cmdline): Reset grub_errno.
27494 * normal/main.c (read_config_file): Reset grub_errno.
27496 * normal/parse.y (script_init): New.
27497 (script): Move function and menuentry here.
27499 (command): Add delimiter at the end of command.
27500 (commands): Adjust to match the new command.
27501 (commandblock): Remove grub_script_lexer_record_start.
27502 (menuentry): Add grub_script_lexer_record_start, use the new commands.
27503 (if): Use the new commands.
27505 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
27507 2008-01-15 Robert Millan <rmh@aybabtu.com>
27509 * normal/menu.c (run_menu): Move timeout message from here ...
27510 (print_timeout): ... to here.
27511 (run_menu): Use print_timeout() once during initial draw to print
27512 the whole message, and again in every clock tick to update only
27513 the number of seconds.
27515 2008-01-15 Robert Millan <rmh@aybabtu.com>
27517 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
27518 actual size of `available' from grub_ieee1275_get_property(), and
27519 restrict parsing to that bound.
27521 2008-01-15 Christian Franke <franke@computer.org>
27523 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
27524 (argp_program_version): Remove variable.
27525 (argp_program_bug_address): Likewise.
27526 (options): Convert from struct argp_option to struct option.
27527 (struct arguments): Remove.
27528 (parse_opt): Remove.
27529 (usage): New function.
27530 (main): Replace struct args members by simple variables.
27531 Replace argp_parse() by getopt_long().
27532 Add switch to evaluate options.
27533 Add missing "(...)" around root_dev in prefix string.
27535 2008-01-14 Robert Millan <rmh@aybabtu.com>
27537 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
27538 for grub_ieee1275_exit(), in order to improve portability.
27540 2008-01-14 Robert Millan <rmh@aybabtu.com>
27542 * util/grub.d/10_linux.in (prefix): Define.
27543 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
27545 2008-01-13 Pavel Roskin <proski@gnu.org>
27547 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
27548 grub_errno if no errors have been detected.
27550 2008-01-12 Robert Millan <rmh@aybabtu.com>
27552 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
27553 (grub_util_get_dev_abstraction): New function prototype.
27555 * util/getroot.c: Include `<grub/util/getroot.h>'
27556 (grub_util_get_grub_dev): Move detection of abstraction type to ...
27557 (grub_util_get_dev_abstraction): ... here (new function).
27559 * util/grub-probe.c: Convert PRINT_* to an enum. Add
27560 `PRINT_ABSTRACTION'.
27561 (probe): Probe for abstraction type when requested.
27562 (main): Understand `--target=abstraction'.
27564 * util/i386/efi/grub-install.in: Add abstraction module to core
27565 image when it is found to be necessary.
27566 * util/i386/pc/grub-install.in: Likewise.
27567 * util/powerpc/ieee1275/grub-install.in: Likewise.
27569 * util/update-grub_lib.in (font_path): Return system path without
27570 converting to GRUB path.
27571 * util/update-grub.in: Convert system path returned by font_path()
27572 to a GRUB path. Use `grub-probe -t abstraction' to determine what
27573 abstraction module is needed for loading fonts (if any). Export
27574 that as `GRUB_PRELOAD_MODULES'.
27575 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
27578 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
27580 Remove some unused code from reiserfs.
27582 * fs/reiserfs.c (struct grub_reiserfs_key)
27583 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
27584 (struct grub_reiserfs_node_body): Removed.
27585 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27587 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27589 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27591 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27593 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27595 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
27597 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27598 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27599 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27601 2008-01-10 Robert Millan <rmh@aybabtu.com>
27603 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
27604 Determines if a file is garbage left by packaging systems, etc.
27605 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
27606 for processing /etc/grub.d scripts.
27607 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
27608 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
27609 as a condition for processing Linux images.
27611 2008-01-10 Pavel Roskin <proski@gnu.org>
27613 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
27614 to compile reiserfs.c on PowerPC.
27616 2008-01-10 Robert Millan <rmh@aybabtu.com>
27618 * kern/device.c (grub_device_iterate): Do not abort device iteration
27619 when one of the devices cannot be opened.
27620 * kern/disk.c (grub_disk_open): Do not account previous failures of
27621 unrelated functions when grub_errno is checked for.
27623 2008-01-08 Robert Millan <rmh@aybabtu.com>
27625 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
27626 `! grub_linux_is_bzimage', change order of address comparison to make
27627 it more intuitive, and improve "too big zImage" error message.
27629 2008-01-08 Robert Millan <rmh@aybabtu.com>
27631 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
27632 `$(update-grub_DATA)'.
27633 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
27636 2008-01-07 Robert Millan <rmh@aybabtu.com>
27638 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
27639 which instruction is modified by grub-setup during installation
27640 (since it wasn't obvious by only looking at this file).
27642 2008-01-07 Robert Millan <rmh@aybabtu.com>
27644 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
27645 listing actual TODO items.
27647 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27649 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
27651 (grub_reiserfs_get_key_offset): Likewise.
27652 (grub_reiserfs_set_key_offset): Likewise.
27653 (grub_reiserfs_set_key_type): Likewise.
27654 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
27656 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
27657 better to remove the bitfield version completely.
27659 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27661 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
27662 allocated from the heap, due to the fshelp implementation.
27663 (grub_reiserfs_dir): Free NODE, due to the same reason.
27665 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27667 Mostly from Vincent Pelletier:
27669 * fs/reiserfs.c: New file.
27671 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
27672 (reiserfs_mod_SOURCES): New variable.
27673 (reiserfs_mod_CFLAGS): Likewise.
27674 (reiserfs_mod_LDFLAGS): Likewise.
27676 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
27677 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
27678 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
27681 2008-01-06 Robert Millan <rmh@aybabtu.com>
27683 * normal/color.c: Remove `<grub/env.h>'.
27685 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
27687 * include/grub/normal.h: Include <grub/env.h>.
27689 2008-01-05 Robert Millan <rmh@aybabtu.com>
27691 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
27692 usage example with `(hd0,1)'.
27693 Reported by Samuel Thibault.
27695 2008-01-05 Robert Millan <rmh@aybabtu.com>
27697 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
27698 (grub_linux_boot_zimage): Rename to ...
27699 (grub_linux_boot): ... this.
27700 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
27701 (grub_linux_boot_zimage): Conditionalize zImage copy.
27703 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
27704 (grub_linux_boot_bzimage): Remove prototype.
27705 (grub_linux_boot_zimage): Rename to ...
27706 (grub_linux_boot): ... this.
27708 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
27709 (grub_linux_boot): Remove function.
27711 2008-01-05 Robert Millan <rmh@aybabtu.com>
27713 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
27714 (grub_env_write_color_highlight): Likewise.
27715 (grub_wait_after_message): Likewise.
27717 * normal/color.c: New file.
27719 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27720 (normal_mod_DEPENDENCIES): Likewise.
27722 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27723 (normal_mod_DEPENDENCIES): Likewise.
27725 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27726 (normal_mod_DEPENDENCIES): Likewise.
27728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27729 (normal_mod_DEPENDENCIES): Likewise.
27731 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
27732 for waiting after a message is printed.
27733 * normal/main.c (read_config_file): Likewise.
27734 (grub_normal_init): Register grub_env_write_color_normal() and
27735 grub_env_write_color_highlight() hooks. Mark `color_normal' and
27736 `color_highlight' variables as global.
27738 * normal/menu.c (grub_wait_after_message): New function.
27739 (grub_color_menu_normal): New variable. Replaces ...
27740 (GRUB_COLOR_MENU_NORMAL): ... this macro.
27741 (grub_color_menu_highlight): New variable. Replaces ...
27742 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
27743 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
27744 `GRUB_TERM_COLOR_STANDARD'.
27745 (print_message): Use `grub_setcolorstate' to reload colors. Rename
27746 `normal_code' and `highlight_code' to `old_color_normal' and
27747 `old_color_highlight', respectively.
27748 (grub_menu_init_page): Update colors when drawing the menu, based on
27749 `menu_color_normal' and `menu_color_highlight' variables.
27750 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
27751 a message is printed.
27753 2008-01-05 Robert Millan <rmh@aybabtu.com>
27755 * kern/env.c (grub_env_context_open): Propagate hooks for global
27756 variables to new context.
27758 * kern/main.c (grub_set_root_dev): Export `root' variable.
27760 2008-01-05 Robert Millan <rmh@aybabtu.com>
27762 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
27763 discs unconditionally, since udev and others have options to provide
27766 2008-01-05 Robert Millan <rmh@aybabtu.com>
27768 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
27770 2008-01-04 Christian Franke <franke@computer.org>
27772 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
27775 2008-01-03 Pavel Roskin <proski@gnu.org>
27777 * kern/i386/linuxbios/init.c: Put "void" to all function
27778 declarations with no arguments.
27779 * kern/powerpc/ieee1275/init.c: Likewise.
27780 * term/i386/pc/at_keyboard.c: Likewise.
27781 * term/i386/pc/vga_text.c: Likewise.
27782 * util/grub-mkdevicemap.c: Likewise.
27784 2008-01-02 Robert Millan <rmh@aybabtu.com>
27786 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
27787 message when loaded image is out of bounds.
27788 (grub_multiboot_load_elf64): Likewise.
27790 2008-01-02 Pavel Roskin <proski@gnu.org>
27792 * util/grub.d/10_linux.in: Try version without ".old" when
27793 looking for initrd. It's better to use initrd from the newer
27794 kernel of the same version than no initrd at all.
27796 2008-01-01 Robert Millan <rmh@aybabtu.com>
27798 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
27800 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
27802 * include/grub/video.h: Added grub_video_unmap_color and
27803 grub_video_get_active_render_target.
27804 (grub_video_adapter): Added unmap_color and get_active_render_target.
27806 * video/video.c: Added grub_video_unmap_color and
27807 grub_video_get_active_render_target.
27808 (grub_video_get_info): Changed method to accept NULL pointer as an
27809 argument to allow detection of active video adapter.
27811 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
27812 grub_video_vbe_unmap_color_int.
27813 Added grub_video_vbe_unmap_color and
27814 grub_video_vbe_get_active_render_target.
27815 (grub_video_vbe_adapter): Added unmap_color and
27816 get_active_render_target.
27818 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
27819 with grub_video_vbe_unmap_color_int.
27821 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
27822 (DEFAULT_NORMAL_COLOR): Likewise.
27823 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
27824 (DEFAULT_FG_COLOR): Removed.
27825 (DEFAULT_BG_COLOR): Likewise.
27826 (DEFAULT_CURSOR_COLOR): Changed value.
27827 (grub_virtual_screen): Added standard_color_setting,
27828 normal_color_setting, highlight_color_setting and term_color.
27829 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
27830 (bitmap_width): Added.
27831 (bitmap_height): Likewise.
27832 (bitmap): Likewise.
27833 (set_term_color): Likewise.
27834 (grub_virtual_screen_setup): Changed to use new terminal coloring
27836 (grub_gfxterm_init): Added init for bitmap.
27837 (grub_gfxterm_fini): Added destroy for bitmap.
27838 (redraw_screen_rect): Updated to use background bitmap and new
27840 (scroll_up): Added optimization for case when there is no bitmap.
27841 (grub_gfxterm_cls): Fixed to use correct background color.
27842 (grub_virtual_screen_setcolorstate): Changed to use new terminal
27844 (grub_virtual_screen_setcolor): Likewise.
27845 (grub_virtual_screen_getcolor): Added.
27846 (grub_gfxterm_background_image_cmd): Likewise.
27847 (grub_video_term): Added setcolor and getcolor.
27848 (MOD_INIT): Added registration of background_image command.
27849 (MOD_TERM): Added unregistration for background_image command.
27851 2007-12-30 Pavel Roskin <proski@gnu.org>
27853 * loader/multiboot_loader.c: Fix multiboot command
27854 unregistration. Fix all typos in the word "multiboot".
27856 2007-12-29 Pavel Roskin <proski@gnu.org>
27858 * util/grub.d/10_linux.in: Refactor search for initrd. Add
27859 support for initrd names used in Fedora.
27861 2007-12-26 Bean <bean123ch@gmail.com>
27863 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
27864 (cpio_mod_SOURCES): New variable.
27865 (cpio_mod_CFLAGS): Likewise.
27866 (cpio_mod_LDFLAGS): Likewise.
27868 * fs/cpio.c: New file.
27870 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
27872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27874 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27878 2007-12-25 Robert Millan <rmh@aybabtu.com>
27880 * include/grub/term.h (struct grub_term): Add `getcolor' function.
27881 (grub_getcolor): New function.
27883 * kern/term.c (grub_getcolor): New function.
27884 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
27885 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
27886 (print_entry): Set normal and highlight colors to
27887 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
27888 respectively, before printing and restore them to old
27890 (grub_menu_init_page): Likewise. Fill an additional colored space
27891 that would otherwise be left blank.
27893 * term/efi/console.c (grub_console_getcolor): New function.
27894 (struct grub_console_term.getcolor): New variable.
27895 * term/i386/pc/console.c (grub_console_getcolor): New function.
27896 (struct grub_console_term.getcolor): New variable.
27897 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
27898 (struct grub_console_term.getcolor): New variable.
27900 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
27901 (struct grub_console_term.setcolor): Remove variable.
27902 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
27903 (struct grub_console_term.setcolor): Remove variable.
27904 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
27905 (struct grub_console_term.setcolor): Remove variable.
27906 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
27907 (struct grub_console_term.setcolor): Remove variable.
27909 2007-12-25 Robert Millan <rmh@aybabtu.com>
27911 * configure.ac: Search for possible unifont.hex locations, and
27912 define UNIFONT_HEX if found.
27914 * Makefile.in (UNIFONT_HEX): Define variable.
27915 (DATA): Rename to ...
27916 (PKGLIB): ... this. Update all users.
27917 (PKGDATA): New variable.
27918 (pkgdata_IMAGES): Rename to ...
27919 (pkglib_IMAGES): ... this. Update all users.
27920 (pkgdata_MODULES): Rename to ...
27921 (pkglib_MODULES): ... this. Update all users.
27922 (pkgdata_PROGRAMS): Rename to ...
27923 (pkglib_PROGRAMS): ... this. Update all users.
27924 (pkgdata_DATA): Rename to ...
27925 (pkglib_DATA): ... this. Update all users.
27926 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
27927 (unicode.pff, ascii.pff): New rules.
27928 (all-local): Add `$(PKGDATA)' dependency.
27929 (install-local): Process `$(PKGDATA)'.
27931 * util/update-grub_lib.in (font_path): Search for *.pff files in
27932 a few more locations, including `${pkgdata}'.
27934 2007-12-23 Robert Millan <rmh@aybabtu.com>
27936 Patch from Bean <bean123ch@gmail.com>:
27937 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
27940 2007-12-21 Bean <bean123ch@gmail.com>
27942 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
27943 (ntfscomp_mod_SOURCES): New variable.
27944 (ntfscomp_mod_CFLAGS): Likewise.
27945 (ntfscomp_mod_LDFLAGS): Likewise.
27947 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
27948 (grub_probe_SOURCES): Likewise.
27949 (grub_emu_SOURCES): Likewise.
27951 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
27952 (grub_emu_SOURCES): Likewise.
27954 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
27955 (grub_emu_SOURCES): Likewise.
27957 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
27958 (grub_emu_SOURCES): Likewise.
27960 * fs/ntfs.c (grub_ntfscomp_func): New variable.
27961 (read_run_list): Renamed to grub_ntfs_read_run_list.
27962 (decomp_nextvcn): Moved to ntfscomp.c.
27963 (decomp_getch): Likewise.
27964 (decomp_get16): Likewise.
27965 (decomp_block): Likewise.
27966 (read_block): Likewise.
27967 (read_data): Partially moved to ntfscomp.c.
27968 (fixup): Change unsigned to grub_uint16_t.
27969 (read_mft): Change unsigned long to grub_uint32_t.
27970 (read_attr): Likewise.
27971 (read_data): Likewise.
27972 (read_run_data): Likewise.
27973 (read_run_list): Likewise.
27974 (read_mft): Likewise.
27976 * fs/ntfscomp.c: New file.
27978 * include/grub/ntfs.h: New file.
27980 2007-12-16 Robert Millan <rmh@aybabtu.com>
27982 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
27983 IDE disk check, since Linux is known to support 20 IDE disks.
27984 Reported by Colin Watson.
27986 2007-12-15 Bean <bean123ch@gmail.com>
27988 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
27989 (lnxboot_img_SOURCES): New variable.
27990 (lnxboot_img_ASFLAGS): Likewise.
27991 (lnxboot_img_LDFLAGS): Likewise.
27993 * boot/i386/pc/lnxboot.S: New file.
27995 2007-11-24 Pavel Roskin <proski@gnu.org>
27997 * configure.ac: Test if '--build-id=none' is supported by the
27998 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
27999 objcopy to generate incorrect binary files (binutils
28000 2.17.50.0.18-1 as shipped by Fedora 8).
28001 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
28002 linking, so that build ID doesn't break the test.
28004 2007-11-24 Pavel Roskin <proski@gnu.org>
28006 * include/grub/i386/time.h: use "void" in the argument list
28007 of grub_cpu_idle().
28008 * include/grub/powerpc/time.h: Likewise.
28009 * include/grub/sparc64/time.h: Likewise.
28011 2007-11-18 Christian Franke <franke@computer.org>
28013 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
28014 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
28015 This fixes the problem that function keys did not work in grub-emu.
28017 2007-11-18 Christian Franke <franke@computer.org>
28019 * disk/host.c (grub_host_open): Remove attribute unused from
28020 name parameter. Add check for "host". This fixes the problem
28021 that grub-emu does not find partitions.
28023 2007-11-18 Christian Franke <franke@computer.org>
28025 * util/hostfs.c (is_dir): New function.
28026 (grub_hostfs_dir): Handle missing dirent.d_type case.
28027 (grub_hostfs_read): Add missing fseek().
28028 (grub_hostfs_label): Clear label pointer. This fixes a crash
28029 of grub-emu on "ls (host)".
28031 2007-11-18 Christian Franke <franke@computer.org>
28033 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
28034 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
28035 to 64 bit boundary by default.
28037 2007-11-18 Bean <bean123ch@gmail.com>
28039 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
28040 (hexdump_mod_SOURCES): New variable.
28041 (hexdump_mod_CFLAGS): Likewise.
28042 (hexdump_mod_LDFLAGS): Likewise.
28044 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28046 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28048 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28052 * include/grub/hexdump.h: New file.
28054 * commands/hexdump.c: New file.
28056 2007-11-10 Robert Millan <rmh@aybabtu.com>
28058 * commands/i386/pc/play.c (beep_off): Switch order of arguments
28059 in grub_outb() calls.
28060 (beep_on): Likewise.
28062 2007-11-10 Christian Franke <franke@computer.org>
28064 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
28065 (grub_menu_run): Likewise.
28067 2007-11-10 Robert Millan <rmh@aybabtu.com>
28069 * include/grub/i386/efi/machine.h: New file.
28070 * include/grub/i386/linuxbios/machine.h: Likewise.
28071 * include/grub/i386/pc/machine.h: Likewise.
28072 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28073 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28075 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
28076 (serial_hw_io_addr): New variable.
28077 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
28078 instead of `(unsigned short *) 0x400'.
28080 2007-11-10 Bean <bean123ch@gmail.com>
28082 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
28084 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28086 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
28087 (vga_mod_SOURCES): Added.
28088 (vga_mod_CFLAGS): Likewise.
28089 (vga_mod_LDFLAGS): Likewise.
28091 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
28093 (set_map_mask): Likewise.
28094 (set_read_map): Likewise.
28095 (set_read_address): Likewise.
28096 (vga_font): Removed variable.
28097 (get_vga_glyph): Removed function.
28098 (invalidate_char): Likewise.
28099 (write_char): Changed to use grub_font_get_glyph() for font
28101 (grub_vga_putchar): Likewise.
28102 (grub_vga_getcharwidth): Likewise.
28104 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28106 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
28108 (pxeboot_img_LDFLAGS): Likewise.
28109 (diskboot_img_LDFLAGS): Likewise.
28110 (kernel_img_LDFLAGS): Likewise.
28112 2007-11-06 Robert Millan <rmh@aybabtu.com>
28114 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
28115 in grub_outb() calls.
28116 (serial_hw_init): Likewise.
28118 2007-11-05 Robert Millan <rmh@aybabtu.com>
28120 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
28121 spaces. Skip non-regular files.
28123 2007-11-05 Robert Millan <rmh@aybabtu.com>
28125 * kern/disk.c (grub_disk_firmware_fini)
28126 (grub_disk_firmware_is_tainted): New variables.
28128 * include/grub/disk.h (grub_disk_firmware_fini)
28129 (grub_disk_firmware_is_tainted): Likewise.
28131 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
28132 (grub_disk_biosdisk_fini): ... to here.
28133 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
28134 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
28135 is set. Register grub_disk_biosdisk_fini() in
28136 `grub_disk_firmware_fini'.
28138 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
28139 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
28140 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
28141 to finish existing firmware disk interface.
28143 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
28144 (ata_mod_SOURCES): New variable.
28145 (ata_mod_CFLAGS): Likewise.
28146 (ata_mod_LDFLAGS): Likewise.
28148 2007-11-05 Robert Millan <rmh@aybabtu.com>
28150 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
28151 (grub_ata_wait): Reimplement using grub_millisleep().
28153 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
28154 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
28156 2007-11-03 Marco Gerards <marco@gnu.org>
28158 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
28159 (CRTC_ADDR_PORT): New macro.
28160 (CRTC_DATA_PORT): Likewise.
28161 (CRTC_CURSOR): Likewise.
28162 (CRTC_CURSOR_ADDR_HIGH): Likewise.
28163 (CRTC_CURSOR_ADDR_LOW): Likewise.
28164 (update_cursor): New function.
28165 (grub_console_real_putchar): Call `update_cursor'.
28166 (grub_console_gotoxy): Likewise.
28167 (grub_console_cls): Set the default color when clearing the
28169 (grub_console_setcursor): Implemented.
28171 2007-11-03 Marco Gerards <marco@gnu.org>
28173 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
28175 (grub_ata_pio_write): Likewise.
28177 (grub_atapi_identify): Wait after issuing an ATA command.
28178 (grub_atapi_packet): Likewise.
28179 (grub_ata_identify): Likewise.
28180 (grub_ata_readwrite): Likewise.
28182 2007-11-03 Marco Gerards <marco@gnu.org>
28184 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
28185 (grub_ata_pio_write): Likewise.
28186 (grub_ata_readwrite): Use `grub_error', instead of
28187 returning `grub_errno'.
28189 2007-11-03 Marco Gerards <marco@gnu.org>
28191 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
28192 grub_ata_pio_write once for every single sector, instead of for
28195 2007-10-31 Robert Millan <rmh@aybabtu.com>
28197 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
28199 * conf/i386-linuxbios.rmk: New file.
28201 * kern/i386/pc/hardware.c: Likewise.
28202 * term/i386/pc/at_keyboard.c: Likewise.
28203 * term/i386/pc/vga_text.c: Likewise.
28205 * include/grub/i386/linuxbios/boot.h: Likewise.
28206 * include/grub/i386/linuxbios/console.h: Likewise.
28207 * include/grub/i386/linuxbios/init.h: Likewise.
28208 * include/grub/i386/linuxbios/kernel.h: Likewise.
28209 * include/grub/i386/linuxbios/loader.h: Likewise.
28210 * include/grub/i386/linuxbios/memory.h: Likewise.
28211 * include/grub/i386/linuxbios/serial.h: Likewise.
28212 * include/grub/i386/linuxbios/time.h: Likewise.
28214 * kern/i386/linuxbios/init.c: Likewise.
28215 * kern/i386/linuxbios/startup.S: Likewise.
28216 * kern/i386/linuxbios/table.c: Likewise.
28218 2007-10-31 Marco Gerards <marco@gnu.org>
28220 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
28221 (ata_mod_SOURCES): New variable.
28222 (ata_mod_CFLAGS): Likewise.
28223 (ata_mod_LDFLAGS): Likewise.
28225 * disk/ata.c: New file.
28227 * include/grub/disk.h (grub_disk_dev_id): Add
28228 `GRUB_DISK_DEV_ATA_ID'.
28230 2007-10-31 Robert Millan <rmh@aybabtu.com>
28232 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
28233 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
28235 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
28236 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
28238 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
28241 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
28243 2007-10-27 Robert Millan <rmh@aybabtu.com>
28245 * include/grub/types.h (ULONG_MAX): Define macro.
28247 2007-10-22 Robert Millan <rmh@aybabtu.com>
28249 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
28251 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
28253 2007-10-22 Robert Millan <rmh@aybabtu.com>
28255 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
28256 (pkgdata_MODULES): Add `biosdisk.mod'.
28257 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
28260 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
28261 (grub_biosdisk_init): Replace with ...
28262 (GRUB_MOD_INIT(biosdisk)): ... this.
28263 (grub_biosdisk_fini): Replace with ...
28264 (GRUB_MOD_FINI(biosdisk)): ... this.
28266 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
28267 (grub_machine_init): Remove call to grub_biosdisk_init().
28268 (grub_machine_fini): Remove call to grub_machine_fini().
28270 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
28272 2007-10-22 Robert Millan <rmh@aybabtu.com>
28274 * include/grub/time.h: New file.
28275 * include/grub/i386/time.h: Likewise.
28276 * include/grub/powerpc/time.h: Likewise.
28277 * include/grub/sparc64/time.h: Likewise.
28279 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
28281 (KERNEL_MACHINE_TIME_HEADER): ... this.
28282 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28284 (KERNEL_MACHINE_TIME_HEADER): ... this.
28285 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28287 (KERNEL_MACHINE_TIME_HEADER): ... this.
28289 * kern/i386/efi/init.c: Include `<grub/time.h>'.
28290 (grub_millisleep): New function.
28291 * kern/i386/pc/init.c: Include `<grub/time.h>'.
28292 (grub_millisleep): New function.
28293 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
28294 Remove `grub/machine/time.h' include.
28295 (grub_millisleep): New function.
28296 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
28297 Remove `grub/machine/time.h' include.
28298 (grub_millisleep): New function.
28300 * include/grub/misc.h (grub_div_roundup): New function.
28302 * kern/misc.c: Include `<grub/time.h>'.
28303 (grub_millisleep_generic): New function.
28305 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
28307 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
28309 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
28310 `machine/time.h'. Add `time.h'.
28311 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28313 2007-10-21 Robert Millan <rmh@aybabtu.com>
28315 * include/grub/misc.h (grub_max): New function.
28317 2007-10-21 Robert Millan <rmh@aybabtu.com>
28319 * util/misc.c (grub_util_info): Call fflush() before returning.
28321 2007-10-20 Robert Millan <rmh@aybabtu.com>
28323 * genmk.rb (Image): Copy `extra_flags' from here ...
28324 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
28326 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
28327 to `argc' and `args' arguments.
28329 2007-10-17 Robert Millan <rmh@aybabtu.com>
28331 * kern/i386/loader.S: New file.
28333 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
28334 * kern/i386/loader.S (grub_linux_prot_size)... to here.
28335 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
28336 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
28337 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
28338 * kern/i386/loader.S (grub_linux_real_addr)... to here.
28339 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
28340 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
28341 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
28342 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
28343 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
28344 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
28345 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
28346 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
28348 * kern/i386/realmode.S: New file.
28350 * kern/i386/pc/startup.S (protstack): Moved from here ...
28351 * kern/i386/realmode.S (protstack)... to here.
28352 * kern/i386/pc/startup.S (gdt): Moved from here ...
28353 * kern/i386/realmode.S (gdt)... to here.
28354 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
28355 * kern/i386/realmode.S (prot_to_real)... to here.
28357 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
28358 `kern/i386/realmode.S'.
28360 2007-10-17 Robert Millan <rmh@aybabtu.com>
28362 * include/grub/i386/loader.h: New file.
28364 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
28365 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28366 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28367 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28368 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
28369 * include/grub/i386/loader.h (grub_linux_prot_size)
28370 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28371 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28372 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28373 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
28375 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
28377 2007-10-15 Robert Millan <rmh@aybabtu.com>
28379 * normal/misc.c (grub_normal_print_device_info): Do not probe for
28380 filesystem when dev->disk is unset.
28381 Do probe for filesystem even when dev->disk->has_partitions is set.
28382 In case a filesystem is found, always report it.
28383 In case it isn't, if dev->disk->has_partitions is set, report that
28384 a partition table was found instead of reporting that no filesystem
28385 could be identified.
28387 2007-10-12 Robert Millan <rmh@aybabtu.com>
28389 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
28390 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
28392 * include/grub/types.h (grub_host_to_target16): New macro.
28393 (grub_host_to_target32): Likewise.
28394 (grub_host_to_target64): Likewise.
28395 (grub_target_to_host16): Likewise.
28396 (grub_target_to_host32): Likewise.
28397 (grub_target_to_host64): Likewise.
28399 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
28400 Renamed from to ...
28401 (GRUB_MOD_ALIGN): ...this. Update all users.
28403 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
28404 grub_host_to_target32.
28405 Replace grub_be_to_cpu32 with grub_target_to_host32.
28406 (load_modules): Likewise.
28407 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
28408 Replace grub_be_to_cpu32 with grub_target_to_host32.
28409 Replace grub_cpu_to_be16 with grub_host_to_target16.
28410 Replace grub_cpu_to_be32 grub_host_to_target32.
28412 2007-10-12 Robert Millan <rmh@aybabtu.com>
28414 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
28415 * util/elf/grub-mkimage.c: ... here.
28417 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
28418 `util/powerpc/ieee1275/grub-mkimage.c'.
28420 2007-10-07 Robert Millan <rmh@aybabtu.com>
28422 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
28423 and make it easier to figure out.
28424 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
28425 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
28426 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
28427 leave us with less than HEAP_MIN_SIZE total heap.
28428 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
28430 2007-10-03 Robert Millan <rmh@aybabtu.com>
28432 * include/grub/i386/io.h: New file.
28433 * commands/i386/pc/play.c (inb): Removed.
28435 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28437 * term/i386/pc/serial.c (inb): Removed.
28439 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28441 * term/i386/pc/vga.c (inb): Removed.
28443 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28446 2007-10-02 Robert Millan <rmh@aybabtu.com>
28448 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
28449 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28450 Reported by Marcin Kurek.
28452 2007-09-07 Robert Millan <rmh@aybabtu.com>
28454 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
28455 SmartFirmware version updates (as released by Sven Luther), and avoid
28456 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
28457 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
28460 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28462 From Hitoshi Ozeki:
28463 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
28464 when merging two regions.
28466 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28468 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
28469 * normal/completion.c (grub_normal_do_completion): Likewise.
28470 Reported by Hitoshi Ozeki.
28472 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28474 Do not use devices at boot in chainloading.
28476 * loader/i386/pc/chainloader.c (boot_drive): New variable.
28477 (boot_part_addr): Likewise.
28478 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
28479 with BOOT_DRIVE and BOOT_PART_ADDR.
28480 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
28481 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
28483 2007-08-29 Robert Millan <rmh@aybabtu.com>
28485 Patch from Simon Peter <dn.tlp@gmx.net>:
28486 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
28487 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
28488 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
28489 util/i386/pc/grub-setup.c_DEPENDENCIES.
28490 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
28491 util/grub-probe.c_DEPENDENCIES.
28492 * conf/powerpc-ieee1275.rmk: Likewise.
28494 2007-08-28 Robert Millan <rmh@aybabtu.com>
28496 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
28497 to tell grub-mkdevicemap how to name devices.
28498 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
28501 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
28502 util/i386/get_disk_name.c.
28503 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
28504 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
28505 util/ieee1275/get_disk_name.c.
28507 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
28509 * DISTLIST: Add util/i386/get_disk_name.c and
28510 util/ieee1275/get_disk_name.c.
28512 * util/grub-mkdevicemap.c: Replace device naming logic with
28513 grub_util_get_disk_name() calls.
28515 2007-08-20 Robert Millan <rmh@aybabtu.com>
28517 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
28518 (so that it works for both plural and singular quantities).
28520 2007-08-05 Robert Millan <rmh@aybabtu.com>
28522 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
28523 so that [xz] isn't taken into account when determining order.
28525 2007-08-02 Marco Gerards <marco@gnu.org>
28527 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
28528 `include/multiboot2.h', `include/grub/elfload.h',
28529 `include/multiboot.h', `include/grub/multiboot.h',
28530 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
28531 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
28532 `kern/elf.c', `loader/multiboot_loader.c',
28533 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
28534 `loader/i386/pc/multiboot2.c',
28535 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
28536 `util/i386/pc/grub-mkrescue.in'. Remove
28537 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
28538 `include/grub/i386/pc/util/biosdisk.h' and
28539 `include/grub/powerpc/ieee1275/multiboot.h'.
28541 2007-08-02 Bean <bean123ch@gmail.com>
28543 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
28544 (ntfs_mod_SOURCES): New variable.
28545 (ntfs_mod_CFLAGS): Likewise.
28546 (ntfs_mod_LDFLAGS): Likewise.
28548 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
28549 (grub_probe_SOURCES): Likewise.
28550 (grub_emu_SOURCES): Likewise.
28552 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28553 (grub_emu_SOURCES): Likewise.
28555 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28556 (grub_emu_SOURCES): Likewise.
28558 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
28560 * fs/ntfs.c: New file.
28562 2007-08-02 Bean <bean123ch@gmail.com>
28564 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
28566 * file.h (grub_file): Likewise.
28568 * fshelp.h (grub_fshelp_read_file): Likewise.
28570 * util/i386/pc/grub-setup.c (setup): Likewise.
28571 (save_first_sector): Likewise.
28572 (save_blocklists): Likewise.
28574 * fs/affs.c (grub_affs_read_file): Likewise.
28576 * fs/ext2.c (grub_ext2_read_file): Likewise.
28578 * fs/fat.c (grub_fat_read_data): Likewise.
28580 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
28582 * fs/hfs.c (grub_hfs_read_file): Likewise.
28584 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
28586 * fs/jfs.c (grub_jfs_read_file): Likewise.
28588 * fs/minix.c (grub_minix_read_file): Likewise.
28590 * fs/sfs.c (grub_sfs_read_file): Likewise.
28592 * fs/ufs.c (grub_ufs_read_file): Likewise.
28594 * fs/xfs.c (grub_xfs_read_file): Likewise.
28596 * command/blocklist.c (read_blocklist): Likewise.
28597 (print_blocklist): Likewise.
28599 2007-08-02 Marco Gerards <marco@gnu.org>
28601 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
28604 * disk/host.c: New file.
28606 * util/hostfs.c: Likewise.
28608 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
28609 return `GRUB_ERR_BAD_FS'.
28610 * fs/sfs.c (grub_sfs_mount): Likewise.
28611 * fs/xfs.c (grub_xfs_mount): Likewise.
28613 * include/grub/disk.h (enum grub_disk_dev_id): Add
28614 `GRUB_DISK_DEVICE_HOST_ID'.
28616 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
28618 2007-07-24 Jerone Young <jerone@gmail.com>
28620 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
28621 modules for compilation.
28622 * conf/powerpc-ieee1275.rmk: Likewise.
28624 * include/multiboot.h: Move multiboot definitions to one file. Rename
28625 many definitions to not get grub specific.
28626 * include/multiboot2.h: Create header with multiboot 2 definitions.
28627 * include/grub/multiboot.h: Header for grub specific function
28628 prototypes and definitions.
28629 * include/grub/multiboot2.h: Likewise.
28630 * include/grub/multiboot_loader.h: Likewise.
28631 * include/grub/i386/pc/multiboot.h: Removed.
28632 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
28634 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
28635 and 2 to allow for one multiboot and module commands.
28636 * loader/multiboot2.c: Add multiboot2 functionality.
28637 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
28638 and definition names.
28639 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
28641 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
28642 ieee1275 specific multiboot2 code.
28644 * kern/i386/pc/startup.S: Change headers and definition names for
28645 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
28647 2007-07-22 Robert Millan <rmh@aybabtu.com>
28649 * geninitheader.sh: Process file specified in first parameter rather
28650 than hardcoding grub_modules_init.lst.
28651 * geninit.sh: Likewise. Also, construct header name dynamically rather
28652 than hardcoding grub_modules_init.h.
28654 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
28655 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
28656 grub_probe_init.[ch] and grub_setup_init.[ch].
28658 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
28659 grub_modules_init.h with grub_emu_init.h.
28660 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
28661 grub_probe_init.[ch] files.
28662 * conf/i386-efi.rmk: Likewise.
28663 * conf/i386-pc.rmk: Likewise.
28664 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
28665 grub_setup_init.[ch] files.
28667 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
28668 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
28669 to initialize modules rather than a list of hardcoded functions.
28670 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
28671 grub_init_all() to initialize modules rather than a list of hardcoded
28674 2007-07-22 Robert Millan <rmh@aybabtu.com>
28676 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28677 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
28679 2007-07-22 Robert Millan <rmh@aybabtu.com>
28681 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
28682 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
28683 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
28684 flag when running on SmartFirmware.
28685 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
28686 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
28689 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
28690 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
28691 rather than decreasing it.
28693 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
28694 there's not enough space to do it, fail in the same way as when it
28695 can't be done because there are no partitions.
28697 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
28698 when nvsetenv failed.
28700 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28702 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
28703 because this rule is automatically generated.
28704 (grub-mkrescue): Removed for the same reason as above.
28706 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28708 Migrate to GNU General Public License Version 3.
28710 * COPYING: Replaced with the plain text version of GPLv3.
28712 * config.guess: Updated from gnulib.
28713 * config.sub: Likewise.
28715 * geninit.sh: Output a GPLv3 copyright notice.
28716 * geninitheader.sh: Likewise.
28717 * genmodsrc.sh: Likewise.
28718 * gensymlist.sh.in: Likewise.
28720 * boot/i386/pc/boot.S: Upgraded to GPLv3.
28721 * boot/i386/pc/diskboot.S: Likewise.
28722 * boot/i386/pc/pxeboot.S: Likewise.
28723 * commands/blocklist.c: Likewise.
28724 * commands/boot.c: Likewise.
28725 * commands/cat.c: Likewise.
28726 * commands/cmp.c: Likewise.
28727 * commands/configfile.c: Likewise.
28728 * commands/echo.c: Likewise.
28729 * commands/help.c: Likewise.
28730 * commands/ls.c: Likewise.
28731 * commands/search.c: Likewise.
28732 * commands/terminal.c: Likewise.
28733 * commands/test.c: Likewise.
28734 * commands/videotest.c: Likewise.
28735 * commands/i386/cpuid.c: Likewise.
28736 * commands/i386/pc/halt.c: Likewise.
28737 * commands/i386/pc/play.c: Likewise.
28738 * commands/i386/pc/reboot.c: Likewise.
28739 * commands/i386/pc/vbeinfo.c: Likewise.
28740 * commands/i386/pc/vbetest.c: Likewise.
28741 * commands/ieee1275/halt.c: Likewise.
28742 * commands/ieee1275/reboot.c: Likewise.
28743 * commands/ieee1275/suspend.c: Likewise.
28744 * disk/loopback.c: Likewise.
28745 * disk/lvm.c: Likewise.
28746 * disk/raid.c: Likewise.
28747 * disk/efi/efidisk.c: Likewise.
28748 * disk/i386/pc/biosdisk.c: Likewise.
28749 * disk/ieee1275/ofdisk.c: Likewise.
28750 * font/manager.c: Likewise.
28751 * fs/affs.c: Likewise.
28752 * fs/ext2.c: Likewise.
28753 * fs/fat.c: Likewise.
28754 * fs/fshelp.c: Likewise.
28755 * fs/hfs.c: Likewise.
28756 * fs/hfsplus.c: Likewise.
28757 * fs/iso9660.c: Likewise.
28758 * fs/jfs.c: Likewise.
28759 * fs/minix.c: Likewise.
28760 * fs/sfs.c: Likewise.
28761 * fs/ufs.c: Likewise.
28762 * fs/xfs.c: Likewise.
28763 * hello/hello.c: Likewise.
28764 * include/grub/acorn_filecore.h: Likewise.
28765 * include/grub/arg.h: Likewise.
28766 * include/grub/bitmap.h: Likewise.
28767 * include/grub/boot.h: Likewise.
28768 * include/grub/cache.h: Likewise.
28769 * include/grub/device.h: Likewise.
28770 * include/grub/disk.h: Likewise.
28771 * include/grub/dl.h: Likewise.
28772 * include/grub/elfload.h: Likewise.
28773 * include/grub/env.h: Likewise.
28774 * include/grub/err.h: Likewise.
28775 * include/grub/file.h: Likewise.
28776 * include/grub/font.h: Likewise.
28777 * include/grub/fs.h: Likewise.
28778 * include/grub/fshelp.h: Likewise.
28779 * include/grub/gzio.h: Likewise.
28780 * include/grub/hfs.h: Likewise.
28781 * include/grub/kernel.h: Likewise.
28782 * include/grub/loader.h: Likewise.
28783 * include/grub/lvm.h: Likewise.
28784 * include/grub/misc.h: Likewise.
28785 * include/grub/mm.h: Likewise.
28786 * include/grub/net.h: Likewise.
28787 * include/grub/normal.h: Likewise.
28788 * include/grub/parser.h: Likewise.
28789 * include/grub/partition.h: Likewise.
28790 * include/grub/pc_partition.h: Likewise.
28791 * include/grub/raid.h: Likewise.
28792 * include/grub/rescue.h: Likewise.
28793 * include/grub/script.h: Likewise.
28794 * include/grub/setjmp.h: Likewise.
28795 * include/grub/symbol.h: Likewise.
28796 * include/grub/term.h: Likewise.
28797 * include/grub/terminfo.h: Likewise.
28798 * include/grub/tparm.h: Likewise.
28799 * include/grub/types.h: Likewise.
28800 * include/grub/video.h: Likewise.
28801 * include/grub/efi/api.h: Likewise.
28802 * include/grub/efi/chainloader.h: Likewise.
28803 * include/grub/efi/console.h: Likewise.
28804 * include/grub/efi/console_control.h: Likewise.
28805 * include/grub/efi/disk.h: Likewise.
28806 * include/grub/efi/efi.h: Likewise.
28807 * include/grub/efi/pe32.h: Likewise.
28808 * include/grub/efi/time.h: Likewise.
28809 * include/grub/i386/linux.h: Likewise.
28810 * include/grub/i386/setjmp.h: Likewise.
28811 * include/grub/i386/types.h: Likewise.
28812 * include/grub/i386/efi/kernel.h: Likewise.
28813 * include/grub/i386/efi/loader.h: Likewise.
28814 * include/grub/i386/efi/time.h: Likewise.
28815 * include/grub/i386/pc/biosdisk.h: Likewise.
28816 * include/grub/i386/pc/boot.h: Likewise.
28817 * include/grub/i386/pc/chainloader.h: Likewise.
28818 * include/grub/i386/pc/console.h: Likewise.
28819 * include/grub/i386/pc/init.h: Likewise.
28820 * include/grub/i386/pc/kernel.h: Likewise.
28821 * include/grub/i386/pc/loader.h: Likewise.
28822 * include/grub/i386/pc/memory.h: Likewise.
28823 * include/grub/i386/pc/multiboot.h: Likewise.
28824 * include/grub/i386/pc/serial.h: Likewise.
28825 * include/grub/i386/pc/time.h: Likewise.
28826 * include/grub/i386/pc/vbe.h: Likewise.
28827 * include/grub/i386/pc/vbeblit.h: Likewise.
28828 * include/grub/i386/pc/vbefill.h: Likewise.
28829 * include/grub/i386/pc/vbeutil.h: Likewise.
28830 * include/grub/i386/pc/vga.h: Likewise.
28831 * include/grub/ieee1275/ieee1275.h: Likewise.
28832 * include/grub/ieee1275/ofdisk.h: Likewise.
28833 * include/grub/powerpc/libgcc.h: Likewise.
28834 * include/grub/powerpc/setjmp.h: Likewise.
28835 * include/grub/powerpc/types.h: Likewise.
28836 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
28837 * include/grub/powerpc/ieee1275/console.h: Likewise.
28838 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
28839 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28840 * include/grub/powerpc/ieee1275/loader.h: Likewise.
28841 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
28842 * include/grub/powerpc/ieee1275/time.h: Likewise.
28843 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
28844 * include/grub/sparc64/libgcc.h: Likewise.
28845 * include/grub/sparc64/setjmp.h: Likewise.
28846 * include/grub/sparc64/types.h: Likewise.
28847 * include/grub/sparc64/ieee1275/console.h: Likewise.
28848 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28849 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28850 * include/grub/sparc64/ieee1275/time.h: Likewise.
28851 * include/grub/util/biosdisk.h: Likewise.
28852 * include/grub/util/getroot.h: Likewise.
28853 * include/grub/util/lvm.h: Likewise.
28854 * include/grub/util/misc.h: Likewise.
28855 * include/grub/util/raid.h: Likewise.
28856 * include/grub/util/resolve.h: Likewise.
28857 * io/gzio.c: Likewise.
28858 * kern/device.c: Likewise.
28859 * kern/disk.c: Likewise.
28860 * kern/dl.c: Likewise.
28861 * kern/elf.c: Likewise.
28862 * kern/env.c: Likewise.
28863 * kern/err.c: Likewise.
28864 * kern/file.c: Likewise.
28865 * kern/fs.c: Likewise.
28866 * kern/loader.c: Likewise.
28867 * kern/main.c: Likewise.
28868 * kern/misc.c: Likewise.
28869 * kern/mm.c: Likewise.
28870 * kern/parser.c: Likewise.
28871 * kern/partition.c: Likewise.
28872 * kern/rescue.c: Likewise.
28873 * kern/term.c: Likewise.
28874 * kern/efi/efi.c: Likewise.
28875 * kern/efi/init.c: Likewise.
28876 * kern/efi/mm.c: Likewise.
28877 * kern/i386/dl.c: Likewise.
28878 * kern/i386/efi/init.c: Likewise.
28879 * kern/i386/efi/startup.S: Likewise.
28880 * kern/i386/pc/init.c: Likewise.
28881 * kern/i386/pc/lzo1x.S: Likewise.
28882 * kern/i386/pc/startup.S: Likewise.
28883 * kern/ieee1275/ieee1275.c: Likewise.
28884 * kern/powerpc/cache.S: Likewise.
28885 * kern/powerpc/dl.c: Likewise.
28886 * kern/powerpc/ieee1275/cmain.c: Likewise.
28887 * kern/powerpc/ieee1275/crt0.S: Likewise.
28888 * kern/powerpc/ieee1275/init.c: Likewise.
28889 * kern/powerpc/ieee1275/openfw.c: Likewise.
28890 * kern/sparc64/cache.S: Likewise.
28891 * kern/sparc64/dl.c: Likewise.
28892 * kern/sparc64/ieee1275/init.c: Likewise.
28893 * kern/sparc64/ieee1275/openfw.c: Likewise.
28894 * loader/efi/chainloader.c: Likewise.
28895 * loader/efi/chainloader_normal.c: Likewise.
28896 * loader/i386/efi/linux.c: Likewise.
28897 * loader/i386/efi/linux_normal.c: Likewise.
28898 * loader/i386/pc/chainloader.c: Likewise.
28899 * loader/i386/pc/chainloader_normal.c: Likewise.
28900 * loader/i386/pc/linux.c: Likewise.
28901 * loader/i386/pc/linux_normal.c: Likewise.
28902 * loader/i386/pc/multiboot.c: Likewise.
28903 * loader/i386/pc/multiboot_normal.c: Likewise.
28904 * loader/powerpc/ieee1275/linux.c: Likewise.
28905 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
28906 * normal/arg.c: Likewise.
28907 * normal/cmdline.c: Likewise.
28908 * normal/command.c: Likewise.
28909 * normal/completion.c: Likewise.
28910 * normal/execute.c: Likewise.
28911 * normal/function.c: Likewise.
28912 * normal/lexer.c: Likewise.
28913 * normal/main.c: Likewise.
28914 * normal/menu.c: Likewise.
28915 * normal/menu_entry.c: Likewise.
28916 * normal/misc.c: Likewise.
28917 * normal/parser.y: Likewise.
28918 * normal/script.c: Likewise.
28919 * normal/i386/setjmp.S: Likewise.
28920 * normal/powerpc/setjmp.S: Likewise.
28921 * normal/sparc64/setjmp.S: Likewise.
28922 * partmap/acorn.c: Likewise.
28923 * partmap/amiga.c: Likewise.
28924 * partmap/apple.c: Likewise.
28925 * partmap/gpt.c: Likewise.
28926 * partmap/pc.c: Likewise.
28927 * partmap/sun.c: Likewise.
28928 * term/gfxterm.c: Likewise.
28929 * term/terminfo.c: Likewise.
28930 * term/efi/console.c: Likewise.
28931 * term/i386/pc/console.c: Likewise.
28932 * term/i386/pc/serial.c: Likewise.
28933 * term/i386/pc/vesafb.c: Likewise.
28934 * term/i386/pc/vga.c: Likewise.
28935 * term/ieee1275/ofconsole.c: Likewise.
28936 * util/biosdisk.c: Likewise.
28937 * util/console.c: Likewise.
28938 * util/genmoddep.c: Likewise.
28939 * util/getroot.c: Likewise.
28940 * util/grub-emu.c: Likewise.
28941 * util/grub-mkdevicemap.c: Likewise.
28942 * util/grub-probe.c: Likewise.
28943 * util/lvm.c: Likewise.
28944 * util/misc.c: Likewise.
28945 * util/raid.c: Likewise.
28946 * util/resolve.c: Likewise.
28947 * util/update-grub.in: Likewise.
28948 * util/update-grub_lib.in: Likewise.
28949 * util/grub.d/00_header.in: Likewise.
28950 * util/grub.d/10_hurd.in: Likewise.
28951 * util/grub.d/10_linux.in: Likewise.
28952 * util/i386/efi/grub-install.in: Likewise.
28953 * util/i386/efi/grub-mkimage.c: Likewise.
28954 * util/i386/pc/grub-install.in: Likewise.
28955 * util/i386/pc/grub-mkimage.c: Likewise.
28956 * util/i386/pc/grub-mkrescue.in: Likewise.
28957 * util/i386/pc/grub-setup.c: Likewise.
28958 * util/i386/pc/misc.c: Likewise.
28959 * util/powerpc/ieee1275/grub-install.in: Likewise.
28960 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
28961 * util/powerpc/ieee1275/misc.c: Likewise.
28962 * video/bitmap.c: Likewise.
28963 * video/video.c: Likewise.
28964 * video/i386/pc/vbe.c: Likewise.
28965 * video/i386/pc/vbeblit.c: Likewise.
28966 * video/i386/pc/vbefill.c: Likewise.
28967 * video/i386/pc/vbeutil.c: Likewise.
28968 * video/readers/tga.c: Likewise.
28970 2007-07-02 Robert Millan <rmh@aybabtu.com>
28972 * conf/i386-efi.rmk: Replace obsolete reference to
28973 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
28974 with util/getroot.c.
28975 * conf/powerpc-ieee1275.rmk: Likewise.
28976 * conf/sparc64-ieee1275.rmk: Likewise.
28978 * util/grub-emu.c (main): Fix unchecked pointer handling.
28980 2007-07-02 Robert Millan <rmh@aybabtu.com>
28982 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
28983 invocation to fail, in order to support partition-less media.
28985 * util/i386/pc/grub-install.in: Likewise.
28987 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
28988 which fs or partmap modules are needed (akin to its sister scripts).
28990 Also use grub-probe to get rid of unportable /proc/mounts check.
28992 Print the same informational message that the other scripts do, before
28995 2007-06-23 Robert Millan <rmh@aybabtu.com>
28997 * util/update-grub_lib.in (font_path): New function. Determine whether
28998 a font file can be found and, if so, echo the GRUB path to it.
29000 * util/update-grub.in: Handle multiple terminals depending on user
29001 input, platform availability and font file presence. Propagate
29002 variables of our findings to /etc/grub.d/ children.
29004 * util/grub.d/00_header.in: Handle multiple terminals, based on
29005 environment setup by update-grub.
29007 2007-06-23 Robert Millan <rmh@aybabtu.com>
29009 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
29011 2007-06-21 Robert Millan <rmh@aybabtu.com>
29013 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
29014 indicate end of data section in kernel image.
29015 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
29016 GRUB_KERNEL_MACHINE_DATA_END.
29018 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
29020 * kern/i386/efi/startup.S: Likewise.
29022 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
29023 during image generation. Implement --prefix option to override this
29025 * util/i386/efi/grub-mkimage.c: Likewise.
29027 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
29028 code to make path relative to its root into a separate function.
29030 * util/i386/pc/grub-install.in: Use newly provided
29031 make_system_path_relative_to_its_root() to convert ${grubdir}, then
29032 pass the result to grub-install --prefix.
29034 2007-06-13 Robert Millan <rmh@aybabtu.com>
29036 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
29037 DEFAULT_DEVICE_MAP.
29038 * util/grub-emu.c: Use above definitions from misc.h instead of
29040 * util/grub-mkdevicemap.c: Likewise.
29041 * util/i386/pc/grub-setup.c: Likewise.
29042 * util/grub-probe.c: Likewise.
29043 (probe): Abort with grub_util_error() when either
29044 grub_guess_root_device or grub_util_get_grub_dev fails.
29046 2007-06-12 Robert Millan <rmh@aybabtu.com>
29048 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
29049 "pager" assignment.
29050 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
29052 * util/grub-probe.c (probe): Likewise for "drive_name".
29054 2007-06-11 Robert Millan <rmh@aybabtu.com>
29056 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
29057 not just the cdrom one.
29059 2007-06-11 Robert Millan <rmh@aybabtu.com>
29061 * util/i386/pc/grub-mkrescue.in: Add "set -e".
29062 Add --pkglibdir=DIR option to override pkglibdir.
29063 Mention --image-type=TYPE in help output.
29064 Fix --grub-mkimage (it was a no-op).
29065 Abort gracefully when no parameter is given.
29067 2007-06-11 Robert Millan <rmh@aybabtu.com>
29069 * util/i386/pc/grub-mkrescue.in: New file.
29070 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
29071 * Makefile.in: Handle bin_SCRIPTS.
29073 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
29075 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
29076 list of video modes.
29078 2007-06-06 Robert Millan <rmh@aybabtu.com>
29080 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
29081 file doesn't exist, or if it is in a filesystem grub can't read.
29083 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
29084 not abort if GRUB_DRIVE could not be defined. Rearrange generated
29085 header comment to fit in 80 columns when the variables are resolved.
29087 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
29088 could be identified by update-grub. Remove redundant check for
29089 unifont.pff existence (since convert_system_path_to_grub_path now
29092 2007-06-04 Robert Millan <rmh@aybabtu.com>
29094 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
29096 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
29098 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
29100 2007-06-04 Robert Millan <rmh@aybabtu.com>
29102 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
29104 * include/grub/partition.h: Declare grub_apple_partition_map_init and
29105 grub_apple_partition_map_fini.
29108 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
29109 to access >2 TiB disks).
29111 Print disk->total_sectors with %llu instead of %lu, since this
29112 variable is always 64-bit (prevents wrong disk size from being displayed
29113 on either >2 TiB disk or big-endian CPU).
29115 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
29116 into a generic case that supports all (sane) partition maps.
29118 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
29121 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
29122 and grub_apple_partition_map_fini() after that.
29124 2007-06-01 Robert Millan <rmh@aybabtu.com>
29126 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
29128 * util/grub.d/00_header.in: Only enable gfxterm when
29129 convert_system_path_to_grub_path() succeeds.
29131 2007-05-20 Robert Millan <rmh@aybabtu.com>
29133 * util/update-grub_lib.in: New file.
29134 * DISTLIST: Add update-grub_lib.in.
29135 * conf/common.rmk: Generate update-grub_lib and install it in
29137 * Makefile.in: Add install routine for $(lib_DATA).
29139 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
29140 function provided by update-grub_lib to support arbitrary paths of
29142 * util/update-grub.in: Use convert_system_path_to_grub_path() to
29143 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
29145 2007-05-19 Robert Millan <rmh@aybabtu.com>
29147 * commands/i386/cpuid.c: New module.
29148 * DISTLIST: Add it.
29149 * conf/i386-efi.rmk: Enable cpuid.mod.
29150 * conf/i386-pc.rmk: Likewise.
29152 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29154 * kern/disk.c (grub_disk_read): Check return value of
29157 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29159 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
29161 * disk/raid.c (grub_raid_open): Likewise.
29163 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29165 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
29166 stack instead of on the heap.
29168 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
29169 before doing a read on it.
29171 * configure.ac: Only use -fno-stack-protector for the target
29174 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29176 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
29177 __attribute_ ((unused)) to mode_type argument.
29179 * util/getroot.c (grub_guess_root_device): Fix #endif.
29181 * kern/misc.c (memcmp): Fix prototype.
29183 * include/grub/partition.h [GRUB_UTIL]
29184 (grub_gpt_partition_map_init): Add prototype.
29185 (grub_gpt_partition_map_fini): Likewise.
29187 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
29188 at the right place.
29190 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
29191 (grub_fat_read_data): Likewise.
29192 (grub_fat_find_dir): Likewise.
29194 * font/manager.c (find_glyph): Make table a const.
29195 (grub_font_get_glyph): Remove bitmap from if statement.
29197 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
29199 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
29200 code, first search for device in /dev/mapper, then in /dev.
29201 (grub_util_get_grub_dev): New function.
29202 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
29204 * util/grub-probe.c (probe): Remove check for RAID, call
29205 grub_util_get_grub_dev() instead of
29206 grub_util_biosdisk_get_grub_dev().
29207 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
29208 grub_util_biosdisk_get_grub_dev().
29209 * util/i386/pc/grub-setup.c (main): Likewise.
29211 2007-05-16 Robert Millan <rmh@aybabtu.com>
29213 * DISTLIST: Update for the latest changes.
29214 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
29215 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
29216 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
29217 grub/util/biosdisk.h.
29218 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
29219 grub/util/biosdisk.h.
29221 2007-05-16 Robert Millan <rmh@aybabtu.com>
29223 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
29225 2007-05-16 Robert Millan <rmh@aybabtu.com>
29227 * util/i386/efi/grub-install.in: New.
29228 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
29229 newly added grub-install.
29230 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
29232 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
29233 grub/util/biosdisk.h.
29234 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
29235 grub/util/biosdisk.h.
29237 2007-05-16 Robert Millan <rmh@aybabtu.com>
29239 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
29240 * include/grub/util/biosdisk.h: ... here.
29241 * util/i386/pc/biosdisk.c: Moved to ...
29242 * util/biosdisk.c: ... here.
29243 * util/i386/pc/getroot.c: Moved to ...
29244 * util/getroot.c: ... here.
29245 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
29246 * util/grub-mkdevicemap.c: ... here.
29247 * util/i386/pc/grub-probe.c: Moved to ...
29248 * util/grub-probe.c: ... here.
29250 2007-05-15 Robert Millan <rmh@aybabtu.com>
29252 * util/update-grub.in: Remove duplicated line in grub.cfg header
29255 2007-05-13 Robert Millan <rmh@aybabtu.com>
29257 * util/update-grub.in: Fix a few assumptions about the devices holding
29258 /, /boot and /boot/grub being the same.
29259 * util/grub.d/00_header.in: Likewise.
29260 * util/grub.d/10_hurd.in: Likewise.
29261 * util/grub.d/10_linux.in: Likewise.
29263 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
29264 patterns. Use that to define the `.old' suffix as older than `'.
29266 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
29268 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
29269 the grub.cfg header message.
29271 2007-05-11 Robert Millan <rmh@aybabtu.com>
29273 * util/update-grub.in: Create device.map if it doesn't already exist,
29274 before attempting to run grub-probe.
29275 Check for grub-probe and grub-mkdevicemap with the same code
29276 grub-install is using.
29279 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
29281 * Makefile.in: Add the datarootdir autoconf variable.
29283 2007-05-09 Robert Millan <rmh@aybabtu.com>
29285 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
29286 fail gracefully if dev->disk->partition == NULL.
29288 2007-05-07 Robert Millan <rmh@aybabtu.com>
29290 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
29291 determine partition map module.
29292 * util/i386/pc/grub-install.in: Use this feature to decide which
29293 partition module to load, instead of hardcoding pc and gpt.
29295 2007-05-07 Robert Millan <rmh@aybabtu.com>
29297 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
29298 source directory differs from build directory.
29300 2007-05-05 Robert Millan <rmh@aybabtu.com>
29302 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
29305 2007-05-05 Robert Millan <rmh@aybabtu.com>
29307 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
29309 2007-05-05 Robert Millan <rmh@aybabtu.com>
29311 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
29312 command-line arguments via ${GRUB_CMDLINE_LINUX}.
29314 2007-05-05 Robert Millan <rmh@aybabtu.com>
29316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
29317 (grub_probe_SOURCES): Likewise.
29318 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
29319 GPT and initialize dos_part and bsd_part accordingly.
29320 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
29322 (main): Activate gpt module for use during partition identification,
29323 and deactivate it afterwards.
29324 * util/i386/pc/grub-install.in: Add gpt module to core.img.
29325 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
29326 partition identification, and deactivate it afterwards.
29328 2007-05-05 Robert Millan <rmh@aybabtu.com>
29330 * term/i386/pc/console.c (grub_console_fini): Call
29331 grub_term_set_current() before grub_term_unregister().
29333 2007-05-04 Robert Millan <rmh@aybabtu.com>
29335 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
29336 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
29337 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
29338 and update-grub_DATA.
29339 * conf/common.rmk: Build and install update-grub components.
29340 * conf/common.mk: Regenerate.
29341 * util/update-grub.in: New. Core of update-grub.
29342 * util/grub.d/00_header.in: New. Generates grub.cfg header.
29343 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
29344 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
29345 * util/grub.d/README: New. Document grub.d directory layout.
29347 2007-05-01 Robert Millan <rmh@aybabtu.com>
29349 * util/grub-emu.c: Move initialization functions
29350 grub_util_biosdisk_init() and grub_init_all() before
29351 grub_util_biosdisk_get_grub_dev(), which relies on them.
29353 2007-04-19 Robert Millan <rmh@aybabtu.com>
29355 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
29358 2007-04-18 Jerone Young <jerone@gmail.com>
29360 * kernel/elf.c: Add missing parenthesis for conditional statement
29363 2007-04-10 Jerone Young <jerone@gmail.com>
29365 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
29366 continue on and look for device node with real device name.
29368 2007-04-10 Jerone Young <jerone@gmail.com>
29370 * configure.ac: Add argument for autoconf to use transformation
29372 * Makefile.in: Add autoconf package transformation code.
29373 * util/i386/pc/grub-install.in: Likewise.
29374 * util/powerpc/ieee1275/grub-install.in: Likewise.
29376 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
29378 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
29379 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
29380 (EXT2_REVISION): Likewise.
29381 (EXT2_INODE_SIZE): Likewise.
29382 (struct grub_ext2_block_group): Added a missing member
29384 (grub_ext2_read_inode): Divide by the inode size in a superblock
29385 instead of 128 to obtain INODES_PER_BLOCK.
29386 Use the macro EXT2_INODE_SIZE instead of directly using
29387 SBLOCK->INODE_SIZE.
29389 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
29391 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
29392 superblock instead of the structure size to compute an
29393 offset. This fixes the problem that GRUB could not read a
29394 filesystem when inode size is different from 128-byte.
29396 2007-03-05 Marco Gerards <marco@gnu.org>
29398 * normal/main.c (read_config_file): When "menu" is not set, create
29399 an initial context.
29401 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29403 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
29404 (HEAP_LIMIT): New macro.
29405 (grub_claim_heap): Claim memory up to `heaplimit'.
29407 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29409 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
29410 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
29411 (_start): Likewise.
29412 (grub_arch_modules_addr): Return address after `_end'.
29413 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
29414 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
29415 (add_segments): Calculate `_end' from phdr size and location.
29416 (ALIGN_UP): Moved to ...
29417 * include/grub/misc.h: here.
29418 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
29420 (GRUB_IEEE1275_MODULE_BASE): Removed.
29422 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29424 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
29427 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29429 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
29431 (grub_elf64_load_hook_t): Likewise.
29432 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
29435 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29437 * kern/mm.c: Update copyright.
29438 (grub_mm_debug): Correct syntax error.
29439 (grub_mm_dump_free): New function.
29440 (grub_debug_free): Call `grub_free'.
29441 * include/grub/mm.h: Update copyright.
29442 (grub_mm_dump_free): Add declaration.
29444 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29446 * include/grub/ieee1275/ieee1275.h: Update copyright.
29447 * kern/powerpc/ieee1275/init.c: Likewise.
29448 * kern/powerpc/ieee1275/openfw.c: Likewise.
29450 * loader/powerpc/ieee1275/linux.c: Likewise.
29451 * include/grub/elfload.h: Likewise.
29452 * kern/elf.c: Likewise.
29453 (grub_elf32_load): Pass `base' and `size' parameters. Update all
29455 (grub_elf64_load): Likewise.
29456 (grub_elf32_load_segment): Move to a nested function.
29457 (grub_elf64_load_segment): Likewise.
29459 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29461 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
29463 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
29464 (grub_heap_len): Likewise.
29465 (HEAP_SIZE): New macro.
29466 (grub_claim_heap): New function.
29467 (grub_machine_init): Don't claim heap directly. Call
29469 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
29470 (grub_available_iterate): New function.
29472 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
29474 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
29475 * configure.ac: Use it for testing the HOST and TARGET compilers.
29477 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
29479 * Makefile.in (enable_grub_emu): New variable.
29480 * configure.ac (--enable-grub-emu): New option.
29481 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
29482 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
29483 * conf/i386-pc.rmk: Likewise.
29484 * conf/powerpc-ieee1275.rmk: Likewise.
29485 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
29487 2006-12-12 Marco Gerards <marco@gnu.org>
29489 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
29491 * kern/env.c (grub_env_unset): Don't free the member `value' when
29492 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
29495 * normal/main.c (current_menu): Removed.
29496 (free_menu): Unset the `menu' environment variable.
29497 (grub_normal_menu_addentry): Make use of the environment variable
29498 `menu', instead of using the global `current_menu'. Allocate
29499 memory for the sourcecode of this entry.
29500 (read_config_file): New argument `nested', changed all callers.
29501 Only in the case of a new context, initialize a new menu. Set the
29502 `menu' environment variable.
29503 (grub_normal_execute): Don't set and unset the environment
29504 variable `menu' here anymore. Only free the menu when leaving the
29507 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
29510 2006-12-11 Marco Gerards <marco@gnu.org>
29512 * normal/menu_entry.c (run): Fix off by one bug so the last line
29513 is executed. Move the loader check to outside the loop.
29515 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
29517 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
29519 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
29521 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
29522 the number of sectors. Reported by Andrey Shuvikov
29523 <mr_hyro@yahoo.com>.
29525 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
29527 * kern/disk.c (grub_disk_read): When there is a read error, always
29528 try to read only the necessary data.
29530 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
29532 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
29534 [GRUB_UTIL] (grub_raid_fini): Likewise.
29535 [GRUB_UTIL] (grub_lvm_init): Likewise.
29536 [GRUB_UTIL] (grub_lvm_fini): Likewise.
29537 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
29538 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
29539 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
29540 and grub_raid_fini().
29542 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
29544 * include/grub/types.h (__unused): Rename to UNUSED.
29545 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
29546 (grub_elf64_size): Likewise.
29548 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29550 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
29551 grub_error_push and grub_error_pop in the error-handling path.
29552 (grub_elf32_load_segment): Only call grub_file_read with non-zero
29555 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29557 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
29558 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29560 (kernel_elf_SOURCES): Likewise.
29561 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
29562 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
29563 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29564 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29565 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
29566 (elf_mod_SOURCES): New variable.
29567 (elf_mod_CFLAGS): Likewise.
29568 (elf_mod_LDFLAGS): Likewise.
29569 * include/grub/types.h (__unused): New macro.
29570 * include/grub/elfload.h: New file.
29571 * kern/elf.c: Likewise.
29572 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
29573 (ELF32_LOADMASK): New macro.
29574 (ELF64_LOADMASK): Likewise.
29575 (vmlinux): Removed.
29576 (grub_linux_load32): New function.
29577 (grub_linux_load64): Likewise.
29578 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
29579 Use grub_elf_t instead of grub_file_t.
29581 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
29583 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
29584 `catch_result' to struct set_color_args.
29586 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29588 * normal/menu.c: Include grub/script.h.
29589 * normal/menu_entry.c: Likewise.
29590 * include/grub/normal.h: Do not include grub/script.h.
29592 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29594 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
29596 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29598 * kern/disk.c (grub_disk_open): Print debug messages when opening a
29600 (grub_disk_close): Print debug messages when closing a disk.
29601 (grub_disk_read): Print debug messages when disk read fails.
29602 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
29604 * kern/partition.c: Include misc.h.
29605 (grub_partition_iterate): Print debug messages when detecting
29608 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29610 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
29612 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
29614 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
29616 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
29617 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
29619 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
29621 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
29622 instead of sizeof(lv). Patch by Michael Guntsche.
29624 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
29626 * disk/lvm.c: Rename VGS to VG_LIST.
29627 (grub_lvm_iterate): Change VGS->LV to VG-LV.
29628 (grub_lvm_open): Likewise.
29629 Thanks to Michael Guntsche for finding this bug.
29631 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29633 * configure.ac (AC_INIT): Bumped to 1.95.
29635 2006-10-14 Robert Millan <rmh@aybabtu.com>
29637 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
29638 with "/dev/.static/dev/md".
29640 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29642 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
29643 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
29644 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
29645 DRIVE_NAME are always freed.
29647 * util/i386/pc/biosdisk.c (make_device_name): Add one into
29648 DOS_PART, as a DOS partition is counted from one instead of zero
29649 now. Reported by Robert Millan.
29651 2006-10-14 Robert Millan <rmh@aybabtu.com>
29653 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
29654 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
29655 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
29656 string returned by grub_guess_root_device.
29657 * util/i386/pc/grub-setup.c: Likewise.
29658 * util/i386/pc/grub-probefs.c: Likewise.
29660 * util/i386/pc/grub-probefs.c: Rename to ...
29661 * util/i386/pc/grub-probe.c: ... this.
29662 * DISTLIST: Remove grub-probefs, add grub-probe.
29663 * conf/i386-efi.rmk: Likewise.
29664 * conf/i386-pc.rmk: Likewise.
29665 * util/i386/pc/grub-install.in: Likewise.
29667 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
29668 choose which information we want to print.
29670 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29672 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
29673 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
29674 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
29675 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
29676 video/readers/tga.c and video/i386/pc/vbeutil.c.
29678 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
29680 Added support for RAID and LVM.
29682 * disk/lvm.c: New file.
29683 * disk/raid.c: Likewise.
29684 * include/grub/lvm.h: Likewise.
29685 * include/grub/raid.h: Likewise.
29686 * include/grub/util/lvm.h: Likewise.
29687 * include/grub/util/raid.h: Likewise.
29688 * util/lvm.c: Likewise.
29689 * util/raid.c: Likewise.
29691 * include/grub/disk.h (grub_disk_dev_id): Add
29692 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
29693 (grub_disk_get_size): New prototype.
29694 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
29695 returns a partition.
29696 (grub_disk_get_size): New function.
29698 * kern/i386/pc/init.c (make_install_device): Copy the prefix
29699 verbatim if grub_install_dos_part is -2.
29701 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
29704 * util/i386/pc/grub-setup.c (setup): New argument
29705 MUST_EMBED. Force embedding of GRUB when the argument is
29706 true. Close FILE before returning.
29707 (main): Add support for RAID and LVM.
29709 * conf/common.rmk: Add RAID and LVM modules.
29710 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
29712 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
29714 * kern/misc.c (grub_strstr): New function.
29715 * include/grub/misc.h (grub_strstr): New prototype.
29717 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
29719 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
29721 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
29723 * kern/misc.c (grub_strtoull): Guess the base only if not
29726 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29728 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
29731 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29733 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
29735 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
29736 Remove `flags' argument. All callers changed.
29737 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
29738 (IEEE1275_IHANDLE_INVALID): New variable.
29739 (IEEE1275_CELL_INVALID): New variable.
29740 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
29741 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
29742 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
29743 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
29744 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
29745 codes from Open Firmware. All callers updated.
29746 (grub_ieee1275_next_property): Directly return Open Firmware return
29748 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
29749 Standardize error checking from `grub_ieee1275_get_property'.
29750 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
29751 `devalias' to `aliases'. Correct comments. Consolidate error paths.
29753 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29755 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
29756 `instance_to_package_args' to `instance_to_path_args'.
29758 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
29759 `grub_ieee1275_chosen'.
29761 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
29762 `grub_ieee1275_interpret'.
29764 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
29766 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
29768 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
29770 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
29771 (__cmpdi): Likewise.
29773 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
29774 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
29777 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
29779 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
29780 to type `grub_ssize_t'.
29781 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
29783 2006-09-22 Marco Gerards <marco@gnu.org>
29785 * normal/script.c (grub_script_create_cmdmenu): Skip leading
29788 2006-09-22 Marco Gerards <marco@gnu.org>
29790 * commands/echo.c: New file.
29792 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
29794 * conf/common.rmk (echo_mod_SOURCES): New variable.
29795 (echo_mod_CFLAGS): Likewise.
29796 (echo_mod_LDFLAGS): Likewise.
29798 2006-09-22 Marco Gerards <marco@gnu.org>
29800 * normal/main.c (get_line): Malloc memory instead of using
29801 preallocated memory. Removed the arguments `cmdline' and
29802 `max_len'. Updated all callers.
29804 2006-09-22 Marco Gerards <marco@gnu.org>
29806 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
29807 (normal_mod_DEPENDENCIES): Likewise.
29809 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
29810 (normal_mod_DEPENDENCIES): Likewise.
29812 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
29814 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
29816 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
29818 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
29819 (normal_mod_DEPENDENCIES): Likewise.
29820 * conf/i386-pc.mk: Regenerate.
29821 * conf/i386-efi.mk: Likewise
29822 * conf/common.mk: Likewise.
29823 * conf/powerpc-ieee1275.mk: Likewise.
29824 * conf/sparc64-ieee1275.mk: Likewise.
29826 2006-09-22 Robert Millan <rmh@aybabtu.com>
29828 Sync with i386 version.
29829 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
29830 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
29832 2006-09-21 Robert Millan <rmh@aybabtu.com>
29834 Import from GRUB Legacy (lib/device.c):
29835 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
29836 (init_device_map) [__linux__]: Add support for I2O devices.
29838 2006-09-14 Marco Gerards <marco@gnu.org>
29840 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
29843 2006-09-14 Robert Millan <rmh@aybabtu.com>
29845 * util/i386/pc/grub-install.in: Skip menu.lst when removing
29848 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
29850 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
29851 before adding it to device.map.
29853 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
29855 * genmk.rb: Let GCC generate dependencies the first time it
29856 compiles a file; using the -MD option.
29857 * conf/common.mk: Regenerate.
29858 * conf/i386-pc.mk: Likewise.
29859 * conf/i386-efi.mk: Likewise.
29860 * conf/powerpc-ieee1275.mk: Likewise.
29861 * conf/sparc64-ieee1275.mk: Likewise.
29863 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
29865 Move the prototypes of grub_setjmp and grub_longjmp to
29866 cpu/setjmp.h, so that each architecture may specify different
29869 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
29870 (grub_longjmp): Likewise.
29871 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
29872 (grub_longjmp): Likewise.
29873 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
29874 (grub_longjmp): Likewise.
29876 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
29877 [!GRUB_UTIL] (grub_longjmp): Removed.
29879 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
29881 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
29882 "color!" method does not return any value.
29884 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
29886 * include/grub/bitmap.h: New file.
29888 * include/grub/i386/pc/vbeutil.h: Likewise.
29890 * video/bitmap.c: Likewise.
29892 * video/readers/tga.c: Likewise.
29894 * video/i386/pc/vbeutil.c: Likewise.
29896 * commands/videotest.c: Code cleanup and updated to reflect to new
29899 * term/gfxterm.c: Likewise.
29901 * video/video.c: Likewise.
29903 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
29904 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
29905 (bitmap_mod_SOURCES): New entry.
29906 (bitmap_mod_CFLAGS): Likewise.
29907 (bitmap_mod_LDFLAGS): Likewise.
29908 (tga_mod_SOURCES): Likewise.
29909 (tga_mod_CFLAGS): Likewise.
29910 (tga_mod_LDFLAGS): Likewise.
29912 * include/grub/video.h (grub_video_blit_operators): New enum type.
29913 (grub_video_render_target): Changed as forward declaration and moved
29914 actual definition to be video driver specific.
29915 (grub_video_adapter.blit_bitmap): Added blitting operator.
29916 (grub_video_adapter.blit_render_target): Likewise.
29917 (grub_video_blit_bitmap): Likewise.
29918 (grub_video_blit_render_target): Likewise.
29920 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
29921 driver specific render target definition.
29922 (grub_video_vbe_map_rgba): Added driver internal helper.
29923 (grub_video_vbe_unmap_color): Updated to use
29924 grub_video_i386_vbeblit_info.
29925 (grub_video_vbe_get_video_ptr): Likewise.
29927 * include/grub/i386/pc/vbeblit.h
29928 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
29929 grub_video_i386_vbeblit_info.
29930 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29931 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29932 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29933 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29934 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29935 (grub_video_i386_vbeblit_index_index): Likewise.
29936 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
29937 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29938 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29939 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
29941 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
29944 * video/i386/pc/vbeblit.c: Updated to reflect changes on
29945 include/grub/i386/pc/vbeblit.h.
29947 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
29948 Updated to use grub_video_i386_vbeblit_info.
29949 (grub_video_i386_vbefill_R8G8B8): Likewise.
29950 (grub_video_i386_vbefill_index): Likewise.
29951 (grub_video_i386_vbefill): Added generic filler.
29953 * video/i386/pc/vbefill.c: Updated to reflect changes on
29954 include/grub/i386/pc/vbefill.h.
29956 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
29957 grub_video_i386_vbeblit_info.
29958 (grub_video_vbe_unmap_color): Likewise.
29959 (grub_video_vbe_blit_glyph): Likewise.
29960 (grub_video_vbe_scroll): Likewise.
29961 (grub_video_vbe_draw_pixel): Removed function.
29962 (grub_video_vbe_get_pixel): Likewise.
29963 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
29964 updated code to use it.
29965 (common_blitter): Added common blitter for render target and bitmap.
29966 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
29967 (grub_video_vbe_blit_render_target): Likewise.
29969 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
29971 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
29972 is in text mode if there is no console control protocol instance
29975 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
29977 * include/grub/video.h: Code cleanup.
29979 * include/grub/i386/pc/vbe.h: Likewise.
29981 * video/i386/pc/vbe.c: Likewise.
29983 * video/i386/pc/vbeblit.c: Likewise.
29985 * video/i386/pc/vbefill.c: Likewise.
29987 * video/video.c: Likewise. Also added more comments.
29989 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
29991 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
29992 (struct grub_biosdisk_dap): Likewise.
29994 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
29995 linkage settings for all functions.
29997 2006-07-12 Marco Gerards <marco@gnu.org>
29999 * configure.ac (--enable-mm-debug): Fix typo.
30001 * genkernsyms.sh.in: Use proper quoting for `CC'.
30003 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
30005 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
30006 (normal_mod_ASFLAGS): Remove "-m32".
30008 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
30010 * util/misc.c: Include config.h.
30011 [!HAVE_MEMALIGN]: Do not include malloc.h.
30012 (grub_memalign): Use posix_memalign, if present. Then, use
30013 memalign, if present. Otherwise, emit an error.
30015 * util/grub-emu.c: Do not include malloc.h.
30017 * include/grub/util/misc.h: Include unistd.h. This is required for
30018 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
30019 D. Eades III <hde@foobar-qux.org>.
30021 * configure.ac (AC_GNU_SOURCE): Added.
30022 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
30025 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
30027 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
30028 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
30030 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
30032 * include/grub/types.h (grub_host_addr_t): Rename to
30033 grub_target_addr_t.
30034 (grub_host_off_t): Rename to grub_target_off_t.
30035 (grub_host_size_t): Rename to grub_target_size_t.
30036 (grub_host_ssize_t): Rename to grub_target_ssize_t.
30037 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
30039 * include/grub/kernel.h (struct grub_module_header): Change type
30040 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
30041 (grub_module_info): Likewise.
30043 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30045 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
30046 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
30047 Velazquez <jesus.velazquez@gmail.com>.
30049 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30051 Count partitions from 1 instead of 0 in the string representation
30052 of partitions. Still use 0-based internally.
30054 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
30055 (sun_partition_map_iterate): Use grub_partition_t instead of
30056 struct grub_partition *. Cast DESC->START_CYLINDER to
30057 grub_uint64_t after converting the endian.
30058 (sun_partition_map_probe): Subtract 1 for PARTNUM.
30059 (sun_partition_map_get_name): Add 1 to P->INDEX.
30061 * partmap/pc.c (grub_partition_parse): Subtract 1 for
30063 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
30065 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
30066 zero instead of one.
30067 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
30068 (gpt_partition_map_get_name): Add 1 into P->INDEX.
30070 * partmap/apple.c (apple_partition_map_iterate): Change the type
30071 of POS to unsigned.
30072 (apple_partition_map_probe): Subtract 1 for PARTNUM.
30073 (apple_partition_map_get_name): Add 1 into P->INDEX.
30075 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
30076 of POS to unsigned.
30077 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
30078 calculate the offset of a partition.
30079 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
30080 (amiga_partition_map_get_name): Add 1 into P->INDEX.
30082 * partmap/acorn.c (acorn_partition_map_find): Change the type of
30083 SECTOR to grub_disk_addr_t.
30084 (acorn_partition_map_iterate): Likewise.
30085 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
30086 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
30088 (acorn_partition_map_get_name): Add 1 into P->INDEX.
30090 * kern/i386/pc/init.c (make_install_device): Add 1 into
30091 GRUB_INSTALL_DOS_PART.
30093 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
30096 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30098 Clean up the code to support 64-bit addressing in disks and
30099 files. This change is not enough for filesystems yet.
30101 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
30102 type of "start" to grub_uint64_t.
30103 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
30104 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
30105 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
30108 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
30109 to grub_disk_addr_t.
30111 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
30114 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30116 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
30119 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
30121 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
30123 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
30125 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
30126 to grub_off_t, to detect an error from grub_file_seek.
30127 (grub_multiboot_load_elf32): Likewise.
30129 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
30130 maximum unsigned long value when an overflow is detected.
30131 (grub_strtoull): New function.
30132 (grub_divmod64): Likewise.
30133 (grub_lltoa): use grub_divmod64.
30135 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
30137 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
30138 the pointer to next character. Use grub_strtoull instead of
30140 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
30141 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
30144 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
30145 return value is signed.
30146 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
30147 test if OFFSET is less than zero, as OFFSET is unsigned now.
30149 * kern/disk.c (struct grub_disk_cache): Change the type of
30150 "sector" to grub_disk_addr_t.
30151 (grub_disk_cache_get_index): Change the type of SECTOR to
30152 grub_disk_addr_t. Calculate the hash with SECTOR casted to
30153 unsigned after shifting.
30154 (grub_disk_cache_invalidate): Change the type of SECTOR to
30156 (grub_disk_cache_unlock): Likewise.
30157 (grub_disk_cache_store): Likewise.
30158 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
30159 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
30160 grub_disk_addr_t and grub_uint64_t, respectively.
30161 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
30162 body, as the value of OFFSET is tweaked by
30163 grub_disk_check_range. Change the types of START_SECTOR, LEN and
30164 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
30166 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
30167 body, as the value of OFFSET is tweaked by
30168 grub_disk_check_range. Change the types of LEN and N to
30171 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
30172 and "saved_offset" to grub_off_t.
30173 (test_header): Cast BUF to char *.
30174 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
30176 (grub_gzio_read): Change the types of OFFSET and SIZE to
30177 grub_off_t and grub_size_t, respectively.
30179 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
30181 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
30182 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
30183 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
30184 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
30185 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
30187 * include/grub/types.h (grub_off_t): Unconditionally set to
30189 (grub_disk_addr_t): Changed to grub_uint64_t.
30191 * include/grub/partition.h (struct grub_partition): Change the
30192 types of "start", "len" and "offset" to grub_disk_addr_t,
30193 grub_uint64_t and grub_disk_addr_t, respectively.
30194 (grub_partition_get_start): Return grub_disk_addr_t.
30195 (grub_partition_get_len): Return grub_uint64_t.
30197 * include/grub/misc.h (grub_strtoull): New prototype.
30198 (grub_divmod64): Likewise.
30200 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
30201 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
30202 grub_off_t, respectively.
30203 All callers and references changed.
30205 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
30206 grub_size_t in "read".
30207 All callers and references changed.
30209 * include/grub/file.h (struct grub_file): Change the types of
30210 "offset" and "size" to grub_off_t and grub_off_t,
30211 respectively. Change the type of SECTOR to grub_disk_addr_t in
30213 (grub_file_read): Change the type of LEN to grub_size_t.
30214 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
30216 (grub_file_size): Return grub_off_t.
30217 (grub_file_tell): Likewise.
30218 All callers and references changed.
30220 * include/grub/disk.h (struct grub_disk_dev): Change the types of
30221 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
30223 (struct grub_disk): Change the type of "total_sectors" to
30224 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
30226 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
30227 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
30228 (grub_disk_write): Likewise.
30229 All callers and references changed.
30231 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
30232 char * for grub_strncmp to silence gcc.
30233 (grub_iso9660_mount): Likewise.
30234 (grub_iso9660_mount): Likewise.
30235 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
30237 (grub_iso9660_iterate_dir): Likewise.
30238 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
30240 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
30241 LEN to grub_disk_addr_t and grub_size_t, respectively.
30243 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30245 * fs/jfs.c (grub_jfs_read_file): Likewise.
30247 * fs/minix.c (grub_jfs_read_file): Likewise.
30249 * fs/sfs.c (grub_jfs_read_file): Likewise.
30251 * fs/ufs.c (grub_jfs_read_file): Likewise.
30253 * fs/xfs.c (grub_jfs_read_file): Likewise.
30255 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
30256 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
30259 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
30260 BLKNR to -1 instead of returning GRUB_ERRNO.
30261 (grub_ext2_read_file): Change the types of SECTOR and
30262 LEN to grub_disk_addr_t and grub_size_t, respectively.
30264 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
30265 LEN to grub_disk_addr_t and grub_size_t, respectively.
30267 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
30270 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
30271 string. Do not cast SECTOR explicitly.
30273 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
30274 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
30275 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
30276 grub_disk_addr_t and grub_size_t, respectively. If the sector is
30277 over 2TB and LBA mode is not supported, raise an error.
30278 (get_safe_sectors): New function.
30279 (grub_biosdisk_read): Use get_safe_sectors.
30280 (grub_biosdisk_write): Likewise.
30282 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
30283 (grub_efidisk_write): Likewise.
30285 * disk/loopback.c (delete_loopback): Cosmetic changes.
30286 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
30288 (grub_loopback_open): Likewise.
30289 (grub_loopback_read): Likewise. Also, change the type of POS to
30290 grub_off_t, and fix the usage of grub_memset.
30292 * commands/i386/pc/play.c: Include grub/machine/time.h.
30294 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
30297 * commands/configfile.c: Include grub/env.h.
30299 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
30300 GRUB_ERRNO directly instead. Change the type of POS to
30301 grub_off_t. Follow the coding standard.
30303 * commands/blocklist.c: Include grub/partition.h.
30304 (grub_cmd_blocklist): Return an error if the underlying device is
30305 not a disk. Take the starting sector of a partition into account,
30306 if a partition is used.
30308 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
30310 (lba_mode): Support 64-bit addresses.
30311 (chs_mode): Likewise.
30312 (copy_buffer): Adapted to the new offsets of a length field and a
30314 (blocklist_default_start): Allocate 64-bit space.
30316 * boot/i386/pc/boot.S (force_lba): Removed.
30317 (boot_drive): Moved to under KERNEL_SECTOR.
30318 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
30320 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
30322 (lba_mode): Refactored to support a 64-bit address. More size
30324 (setup_sectors): Likewise.
30326 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30328 * DISTLIST: Added include/grub/i386/linux.h. Removed
30329 include/grub/i386/pc/linux.h
30331 * configure.ac (AC_INIT): Bumped to 1.94.
30333 * config.guess: Updated from gnulib.
30334 * config.sub: Likewise.
30335 * install-sh: Likewise.
30336 * mkinstalldirs: Likewise.
30338 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30340 * conf/common.rmk (grub_modules_init.lst): Depended on
30341 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
30344 * genmk.rb (PModule::rule): Reverted the previous change.
30346 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30348 * conf/common.rmk (grub_modules_init.lst): Depends on
30349 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
30350 that the target does not exist before producing.
30351 (grub_modules_init.h): Remove the target before generating.
30352 (grub_emu_init.c): Likewise.
30354 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
30356 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
30358 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
30359 for the target-specific tests. Make sure that we also have the
30360 up-to-date target variables for those tests.
30362 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30364 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
30365 (PModule::rule): Likewise.
30367 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30369 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
30370 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
30371 target-specific flags should be prefixed.
30372 (PModule::rule): Likewise.
30374 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
30376 * configure.ac (CMP): Check if cmp is available explicitly.
30378 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
30380 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
30381 (target_cpu): New variable.
30382 (pkglibdir): Use target_cpu instead of host_cpu.
30384 * util/i386/pc/grub-install.in (host_cpu): Removed.
30385 (target_cpu): New variable.
30386 (pkglibdir): Use target_cpu instead of host_cpu.
30388 * util/genmoddep.c: Removed.
30390 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
30391 instead of GRUB_HOST_SIZEOF_VOID_P.
30392 * kern/dl.c: Likewise.
30394 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
30396 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30397 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30398 (GRUB_TARGET_SIZEOF_LONG): ... this.
30399 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30400 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30401 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30403 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30404 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30405 (GRUB_TARGET_SIZEOF_LONG): ... this.
30406 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30407 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30408 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30410 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30411 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30412 (GRUB_TARGET_SIZEOF_LONG): ... this.
30413 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30414 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30416 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
30417 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
30418 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
30419 instead of GRUB_HOST_SIZEOF_LONG.
30420 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
30421 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
30422 GRUB_CPU_WORDS_BIGENDIAN.
30423 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
30424 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
30427 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
30428 (genmoddep_SOURCES): Likewise.
30429 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
30430 (genmoddep_SOURCES): Likewise.
30431 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
30432 (genmoddep_SOURCES): Likewise.
30433 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
30435 (genmoddep_SOURCES): Likewise.
30437 * genmoddep.awk: New file.
30439 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
30440 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
30441 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
30442 (PModule::rule): Likewise.
30443 (Program::rule): Likewise.
30444 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
30445 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
30448 * configure.ac: Rewritten intensively to use host and target
30449 instead of build and host, respectively.
30451 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
30452 (host_cpu): Removed.
30453 (target_cpu): New variable.
30454 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
30455 (BUILD_CC): Removed.
30456 (BUILD_CFLAGS): Likewise.
30457 (BUILD_CPPFLAGS): Likewise.
30458 (TARGET_CC): New variable.
30459 (TARGET_CFLAGS): Likewise.
30460 (TARGET_CPPFLAGS): Likewise.
30461 (TARGET_LDFLAGS): Likewise.
30463 (include): Use target_cpu instead of host_cpu.
30464 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
30466 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
30468 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
30470 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
30471 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
30472 field 'false' to 'exec_on_false'.
30473 (grub_script_create_cmdif): Renamed argument names to reflect above
30476 * normal/execute.c (grub_script_execute_cmdif): Likewise.
30478 * normal/script.c (grub_script_create_cmdif): Likewise.
30480 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
30482 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
30484 (grub_hfsplus_btree_recptr): Likewise.
30485 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
30486 FILEBLOCK both to pass a block number and store next block
30488 (grub_hfsplus_read_block): Rewritten heavily to support an extent
30489 overflow file correctly. Specify errors appropriately, because
30490 fshelp expects that GRUB_ERRNO is set when fails. Reuse
30491 grub_hfsplus_btree_recptr to get the pointer to a found key.
30492 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
30495 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
30497 (_linux_mod_SOURCES): New variable.
30498 (_linux_mod_CFLAGS): Likewise.
30499 (_linux_mod_LDFLAGS): Likewise.
30500 (linux_mod_SOURCES): Likewise.
30501 (linux_mod_CFLAGS): Likewise.
30502 (linux_mod_LDFLAGS): Likewise.
30504 * DISTLIST: Added loader/i386/efi/linux.c,
30505 loader/i386/efi/linux_normal.c and
30506 include/grub/i386/efi/loader.h.
30508 * loader/i386/efi/linux.c: New file.
30509 * loader/i386/efi/linux_normal.c: Likewise.
30510 * include/grub/i386/efi/loader.h: Likewise.
30512 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
30514 * commands/blocklist.c: New file.
30516 * DISTLIST: Added commands/blocklist.c.
30518 * term/efi/console.c (grub_console_highlight_color): Use a lighter
30519 color for the background, and a darker color for the foreground.
30520 (grub_console_checkkey): Return READ_KEY.
30521 (grub_console_cls): Set the background to
30522 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
30524 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
30526 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
30527 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
30529 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
30532 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
30533 BG. The spec is wrong again.
30535 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
30537 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
30539 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30540 commands/blocklist.c.
30541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30543 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
30544 (blocklist_mod_SOURCES): New variable.
30545 (blocklist_mod_CFLAGS): Likewise.
30546 (blocklist_mod_LDFLAGS): Likewise.
30548 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
30550 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
30552 (lba_mode): Use %eax more intensively to reduce the code size.
30554 2006-05-20 Marco Gerards <marco@gnu.org>
30556 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
30558 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
30560 (script): Accept leading newlines.
30561 (newlines): New rule to describe 0 or more newlines.
30562 (commands): Accept `command' with trailing newline. Fixed the
30563 order in which arguments were passed to `grub_script_add_cmd'.
30564 Accept commands separated by newlines.
30565 (function): Changed to accept newlines.
30566 (menuentry) Rewritten.
30568 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
30569 front of the list, instead of to the end.
30571 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
30573 * util/i386/pc/grub-install.in (bindir): New variable.
30574 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
30575 Shaver <lbgwjl@gmail.com>.
30577 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
30579 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
30580 grub/machine/linux.h
30581 * loader/i386/pc/linux.c: Likewise.
30583 * include/grub/i386/pc/linux.h: Moved to ...
30584 * include/grub/i386/linux.h: ... here.
30586 * include/grub/i386/linux.h (struct linux_kernel_params): New
30589 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
30591 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
30593 (grub_video_vbe_blit_glyph): Likewise.
30594 (grub_video_vbe_blit_bitmap): Likewise.
30595 (grub_video_vbe_blit_render_target): Likewise.
30597 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
30599 * configure.ac (--with-platform): Properly quote the square
30602 2006-05-08 Marco Gerards <marco@gnu.org>
30604 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
30606 (kernel_elf_HEADERS): ...to this. Updated all users.
30607 (grubof_symlist.c): Renamed from this...
30608 (kernel_elf_symlist.c): ...to this. Updated all users.
30609 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30610 (grubof_SOURCES): Renamed from this...
30611 (kernel_elf_SOURCES): ...to this.
30612 (grubof_HEADERS): Renamed from this...
30613 (kernel_elf_HEADERS): ...to this.
30614 (grubof_CFLAGS): Renamed from this...
30615 (kernel_elf_CFLAGS): ...to this.
30616 (grubof_ASFLAGS): Renamed from this...
30617 (kernel_elf_ASFLAGS): ...to this.
30618 (grubof_LDFLAGS): Renamed from this...
30619 (kernel_elf_LDFLAGS): ...to this.
30621 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
30623 (kernel_elf_HEADERS): ...to this. Updated all users.
30624 (grubof_symlist.c): Renamed from this...
30625 (kernel_elf_symlist.c): ...to this. Updated all users.
30626 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30627 (grubof_SOURCES): Renamed from this...
30628 (kernel_elf_SOURCES): ...to this.
30629 (grubof_HEADERS): Renamed from this...
30630 (kernel_elf_HEADERS): ...to this.
30631 (grubof_CFLAGS): Renamed from this...
30632 (kernel_elf_CFLAGS): ...to this.
30633 (grubof_ASFLAGS): Renamed from this...
30634 (kernel_elf_ASFLAGS): ...to this.
30635 (grubof_LDFLAGS): Renamed from this...
30636 (kernel_elf_LDFLAGS): ...to this.
30638 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
30639 `kernel.elf' instead of `grubof'.
30641 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
30643 Add --with-platform to configure. Use pkglibdir instead of
30644 pkgdatadir. This is reported by Roger Leigh.
30646 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
30647 (host_vendor): Likewise.
30648 (host_os): Likewise.
30649 (pkgdatadir): Likewise.
30650 (platform): New variable.
30651 (pkglibdir): Likewise.
30652 Use PKGLIBDIR instead of PKGDATADIR.
30654 * util/i386/pc/grub-install.in (datadir): Removed.
30655 (host_vendor): Likewise.
30656 (host_os): Likewise.
30657 (pkgdatadir): Likewise.
30658 (platform): New variable.
30659 (pkglibdir): Likewise.
30660 Use PKGLIBDIR instead of PKGDATADIR.
30662 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
30663 instead of GRUB_DATADIR.
30665 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30667 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30670 * configure.ac (--with-platform): New option.
30671 Use PLATFORM instead of HOST_VENDOR to specify a platform.
30673 * Makefile.in: Include a makefile based on PLATFORM instead of
30675 (pkgdatadir): Not appended by the machine type.
30676 (pkglibdir): Appended by the machine type.
30677 (host_vendor): Removed.
30678 (platform): New variable.
30679 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
30680 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
30681 (uninstall): Likewise.
30683 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
30685 Use the environment context in the menu. Remove the commands
30686 "default" and "timeout", and use variables instead.
30688 * normal/menu.c: Include grub/env.h.
30689 (print_entry): Cast TITLE to silence gcc.
30690 (get_timeout): New function.
30691 (set_timeout): Likewise.
30692 (get_entry_number): Likewise.
30693 (run_menu): Use a default entry, a fallback entry and a timeout
30694 in the environment variables "default", "fallback" and
30695 "timeout". Also, tweak the default entry if it is not within the
30696 current menu entries.
30697 (grub_menu_run): Use a fallback entry in the environment variable
30700 * normal/main.c (read_config_file): Do not initialize
30701 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
30703 (grub_normal_execute): Use a data slot to store the menu.
30705 * include/grub/normal.h (struct grub_menu): Removed default_entry,
30706 fallback_entry and timeout.
30707 (struct grub_menu_list): Removed.
30708 (grub_menu_list_t): Likewise.
30709 (struct grub_context): Likewise.
30710 (grub_context_t): Likewise.
30711 (grub_context_get): Likewise.
30712 (grub_context_get_current_menu): Likewise.
30713 (grub_context_push_menu): Likewise.
30714 (grub_context_pop_menu): Likewise.
30715 (grub_default_init): Likewise.
30716 (grub_default_fini): Likewise.
30717 (grub_timeout_init): Likewise.
30718 (grub_timeout_fini): Likewise.
30720 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
30722 (normal_mod_SOURCES): Removed normal/context.c.
30724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
30725 commands/default.c, commands/timeout.c and normal/context.c.
30726 (normal_mod_SOURCES): Removed normal/context.c.
30728 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
30729 commands/timeout.c and normal/context.c.
30730 (normal_mod_SOURCES): Removed normal/context.c.
30732 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
30733 commands/default.c, commands/timeout.c and normal/context.c.
30734 (normal_mod_SOURCES): Removed normal/context.c.
30736 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
30738 (default_mod_SOURCES): Removed.
30739 (default_mod_CFLAGS): Likewise.
30740 (default_mod_LDFLAGS): Likewise.
30741 (timeout_mod_SOURCES): Removed.
30742 (timeout_mod_CFLAGS): Likewise.
30743 (timeout_mod_LDFLAGS): Likewise.
30745 * DISTLIST: Removed commands/default.c, commands/timeout.c and
30748 * commands/default.c: Removed.
30749 * commands/timeout.c: Likewise.
30750 * normal/context.c: Likewise.
30752 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
30754 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
30756 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
30758 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
30759 "next" to "prev" for readability.
30760 (struct grub_env_sorted_var): New struct.
30761 (grub_env_context): Renamed to ...
30762 (initial_context): ... this.
30763 (grub_env_var_context): Renamed to ...
30764 (current_context): ... this.
30765 (grub_env_find): Look only at CURRENT_CONTEXT.
30766 (grub_env_context_open): Rewritten to copy exported variables from
30768 (grub_env_context_close): Rewritten according to the new
30769 scheme. Also, add an assertion to prevent the initial context from
30771 (grub_env_insert): Removed the code for the sorted list.
30772 (grub_env_remove): Likewise.
30773 (grub_env_export): Simply mark the variable with
30774 GRUB_ENV_VAR_GLOBAL.
30775 (grub_env_set): A cosmetic change for naming consistency.
30776 (grub_env_get): Likewise.
30777 (grub_env_unset): Likewise.
30778 (grub_env_iterate): Rewritten to sort variables within this
30780 (grub_register_variable_hook): Fixed for naming consistency. Call
30781 grub_env_find again, only if NAME is not found at the first time.
30782 (mangle_data_slot_name): New function.
30783 (grub_env_set_data_slot): Likewise.
30784 (grub_env_get_data_slot): Likewise.
30785 (grub_env_unset_data_slot): Likewise.
30787 * include/grub/env.h (grub_env_var_type): New enum.
30788 (GRUB_ENV_VAR_LOCAL): New constant.
30789 (GRUB_ENV_VAR_GLOBAL): Likewise.
30790 (GRUB_ENV_VAR_DATA): Likewise.
30791 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
30793 (grub_env_set): Replace VAR with NAME for consistency.
30794 (grub_register_variable_hook): Likewise.
30795 (grub_env_export): Specify the name of the argument.
30796 (grub_env_set_data_slot): New prototype.
30797 (grub_env_get_data_slot): Likewise.
30798 (grub_env_unset_data_slot): Likewise.
30800 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
30802 Extend the loader so that GRUB can accept a loader which comes
30803 back to GRUB when a loaded image exits. Also, this change adds
30804 support for a chainloader on EFI.
30806 * term/efi/console.c: Include grub/misc.h.
30807 (grub_console_checkkey): Display a scan code on the top for
30808 debugging. This will be removed once the EFI port gets stable.
30809 Correct the scan code mapping.
30811 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
30812 allocate memory from larger regions, in order to reduce the number
30813 of allocated regions. Otherwise, the MacOSX loader panics.
30814 (filter_memory_map): Avoid less than 1MB for compatibility with
30816 (add_memory_regions): Allocate from the tail of a region, if
30817 possible, to avoid allocating a region near to 1MB, for the MacOSX
30820 * kern/efi/init.c (grub_efi_set_prefix): Specify
30821 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
30823 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
30824 argument IMAGE_HANDLE and specify it to get a loaded image.
30825 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
30826 grub_efi_get_loaded_image.
30827 (grub_efi_get_filename): Divide the length by the size of
30829 (grub_efi_get_device_path): New function.
30830 (grub_efi_print_device_path): Print End Device Path nodes. Divide
30831 the length by the size of grub_efi_char16_t for a file path device
30834 * kern/loader.c (grub_loader_noreturn): New variable.
30835 (grub_loader_set): Accept a new argument NORETURN. Set
30836 GRUB_LOADER_NORETURN to NORETURN.
30837 All callers changed.
30838 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
30841 * include/grub/efi/efi.h (grub_efi_get_device_path): New
30843 (grub_efi_get_loaded_image): Take an argument to specify an image
30846 * include/grub/loader.h (grub_loader_set): Added one more argument
30849 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
30850 instead of grub_efi_open_protocol.
30851 (grub_efidisk_get_device_name): Likewise.
30852 (grub_efidisk_close): Print a newline.
30853 (grub_efidisk_get_device_handle): Fixed to use
30854 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
30855 GRUB_EFI_DEVICE_PATH_TYPE.
30857 * disk/efi/efidisk.c (device_path_guid): Moved to ...
30858 * kern/efi/efi.c (device_path_guid): ... here.
30860 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
30862 (kernel_mod_HEADERS): Added efi/disk.h.
30863 (_chain_mod_SOURCES): New variable.
30864 (_chain_mod_CFLAGS): Likewise.
30865 (_chain_mod_LDFLAGS): Likewise.
30866 (chain_mod_SOURCES): Likewise.
30867 (chain_mod_CFLAGS): Likewise.
30868 (chain_mod_LDFLAGS): Likewise.
30870 * DISTLIST: Added include/grub/efi/chainloader.h,
30871 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
30873 * include/grub/efi/chainloader.h: New file.
30874 * loader/efi/chainloader.c: Likewise.
30875 * loader/efi/chainloader_normal.c: Likewise.
30877 2006-04-30 Marco Gerards <marco@gnu.org>
30879 * commands/configfile.c (grub_cmd_source): New function.
30880 (GRUB_MOD_INIT): Register the commands `source' and `.'.
30881 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
30883 2006-04-30 Marco Gerards <marco@gnu.org>
30885 * normal/execute.c (grub_script_execute_cmd): Change the return
30886 type to `grub_err_t'. Correctly return the error.
30887 (grub_script_execute_cmdline): In case a command line is not a
30888 command or a function, try to interpret it as an assignment.
30890 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
30892 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
30893 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
30894 skip a node whose name is obviously invalid as UTF-16,
30895 i.e. contains a NUL character. Stop the iteration when the last
30896 directory entry is found. Instead of using the return value of
30897 grub_hfsplus_btree_iterate_node, store the value in RET and use
30898 it, because the iterator can be stopped by the last directory
30901 2006-04-30 Marco Gerards <marco@gnu.org>
30903 * include/grub/env.h (grub_env_export): New prototype. Reported
30904 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
30906 2006-04-30 Marco Gerards <marco@gnu.org>
30908 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
30909 size of the extents in a catalog file record.
30911 2006-04-29 Marco Gerards <marco@gnu.org>
30913 * commands/configfile.c (grub_cmd_configfile): Execute the
30914 configfile within its own context.
30916 * include/grub/env.h (grub_env_context_open): New prototype.
30917 (grub_env_context_close): Likewise.
30919 * kern/env.c (grub_env): Removed.
30920 (grub_env_sorted): Likewise.
30921 (grub_env_context): New variable.
30922 (grub_env_var_context): Likewise.
30923 (grub_env_find): Search both the active context and the global
30925 (grub_env_context_open): New function.
30926 (grub_env_context_close): Likewise.
30927 (grub_env_insert): Likewise.
30928 (grub_env_remove): Likewise.
30929 (grub_env_export): Likewise.
30930 (grub_env_set): Changed to use helper functions to avoid code
30932 (grub_env_iterate): Rewritten so both the current context and the
30933 global context are being used.
30935 * normal/command.c (export_command): New function.
30936 (grub_command_init): Register the `export' function.
30938 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
30940 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
30941 explicitly to suppress gcc's warnings.
30942 * fs/fat.c (grub_fat_find_dir): Likewise.
30943 (grub_fat_label): Likewise.
30944 * fs/xfs.c (grub_xfs_read_inode): Likewise.
30945 (grub_xfs_mount): Likewise.
30946 (grub_xfs_label): Likewise.
30947 * fs/affs.c (grub_affs_mount): Likewise.
30948 (grub_affs_label): Likewise.
30949 (grub_affs_iterate_dir): Likewise.
30950 * fs/sfs.c (grub_sfs_mount): Likewise.
30951 (grub_sfs_iterate_dir): Likewise.
30952 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
30953 * fs/hfs.c (grub_hfs_mount): Likewise.
30954 (grub_hfs_cmp_catkeys): Likewise.
30955 (grub_hfs_find_dir): Likewise.
30956 (grub_hfs_dir): Likewise.
30957 (grub_hfs_label): Likewise.
30958 * fs/jfs.c (grub_jfs_mount): Likewise.
30959 (grub_jfs_opendir): Likewise.
30960 (grub_jfs_getent): Likewise.
30961 (grub_jfs_lookup_symlink): Likewise.
30962 (grub_jfs_label): Likewise.
30963 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
30964 (grub_hfsplus_iterate_dir): Likewise.
30965 (grub_hfsplus_btree_iterate_node): Made static.
30967 * util/grub-emu.c (prefix): New variable.
30968 (grub_machine_set_prefix): New function.
30969 (main): Do not set the environment variable "prefix" here. Only
30970 set PREFIX, which is used later by grub_machine_set_prefix.
30972 * include/grub/video.h: Do not include grub/symbol.h.
30973 (grub_video_register): Not exported. This symbol is not defined in
30975 (grub_video_unregister): Likewise.
30976 (grub_video_iterate): Likewise.
30977 (grub_video_setup): Likewise.
30978 (grub_video_restore): Likewise.
30979 (grub_video_get_info): Likewise.
30980 (grub_video_get_blit_format): Likewise.
30981 (grub_video_set_palette): Likewise.
30982 (grub_video_get_palette): Likewise.
30983 (grub_video_set_viewport): Likewise.
30984 (grub_video_get_viewport): Likewise.
30985 (grub_video_map_color): Likewise.
30986 (grub_video_map_rgb): Likewise.
30987 (grub_video_map_rgba): Likewise.
30988 (grub_video_fill_rect): Likewise.
30989 (grub_video_blit_glyph): Likewise.
30990 (grub_video_blit_bitmap): Likewise.
30991 (grub_video_blit_render_target): Likewise.
30992 (grub_video_scroll): Likewise.
30993 (grub_video_swap_buffers): Likewise.
30994 (grub_video_create_render_target): Likewise.
30995 (grub_video_delete_render_target): Likewise.
30996 (grub_video_set_active_render_target): Likewise.
30998 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
31000 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
31002 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
31003 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31004 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31005 instead of $(srcdir)/genkernsyms.sh.
31007 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
31008 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31009 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31010 instead of $(srcdir)/genkernsyms.sh.
31012 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
31013 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31014 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31015 instead of $(srcdir)/genkernsyms.sh.
31017 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
31018 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31019 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31020 instead of $(srcdir)/genkernsyms.sh.
31022 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
31025 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
31027 (gensymlist.sh): New target.
31028 (genkernsyms.sh): Likewise.
31030 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
31031 genkernsyms.sh.in and gensymlist.sh.in.
31033 * genkernsyms.sh: Removed.
31034 * gensymlist.sh: Likewise.
31036 * genkernsyms.sh.in: New file.
31037 * gensymlist.sh.in: Likewise.
31039 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31041 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
31042 clobber "prefix", since we may have already set it manually.
31044 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31046 * kern/misc.c (abort): New alias for grub_abort.
31048 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
31050 A new machine-specific function "grub_machine_set_prefix" is
31051 defined. This is called after loading modules, so that a prefix
31052 initialization can use modules. Also, this change adds an
31053 intensive debugging feature for the memory manager via the
31054 configure option "--enable-mm-debug".
31056 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
31059 * kern/sparc64/ieee1275/init.c (abort): Removed.
31060 (grub_stop): Likewise.
31061 (grub_exit): New function.
31062 (grub_set_prefix): Renamed to ...
31063 (grub_machine_set_prefix): ... this.
31064 (grub_machine_init): Do not call grub_set_prefix.
31066 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
31067 (grub_machine_set_prefix): ... this.
31068 (grub_machine_init): Do not call grub_set_prefix.
31070 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
31071 (grub_machine_init): Do not set the prefix here.
31073 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
31075 * kern/efi/init.c: Include grub/mm.h.
31076 (grub_efi_set_prefix): New function.
31078 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
31079 (grub_efi_get_filename): New function.
31080 (grub_print_device_path): Renamed to ...
31081 (grub_efi_print_device_path): ... this.
31083 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
31084 [MM_DEBUG] (grub_realloc): Likewise.
31085 [MM_DEBUG] (grub_free): Likewise.
31086 [MM_DEBUG] (grub_memalign): Likewise.
31087 [MM_DEBUG] (grub_mm_debug): New variable.
31088 [MM_DEBUG] (grub_debug_malloc): New function.
31089 [MM_DEBUG] (grub_debug_free): New function.
31090 [MM_DEBUG] (grub_debug_realloc): New function.
31091 [MM_DEBUG] (grub_debug_memalign): New function.
31093 * kern/misc.c (grub_abort): Print a newline to distinguish
31096 * kern/main.c (grub_main): Call grub_machine_set_prefix and
31097 grub_set_root_dev after loading modules. This is necessary when
31098 setting a prefix depends on modules.
31100 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
31101 (grub_efi_print_device_path): ... this.
31102 (grub_efi_get_filename): New prototype.
31103 (grub_efi_set_prefix): Likewise.
31105 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
31107 (grub_efidisk_get_device_handle): New prototype.
31108 (grub_efidisk_get_device_name): Likewise.
31110 * include/grub/mm.h: Include config.h.
31111 (MM_DEBUG): Removed.
31112 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
31113 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
31114 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
31115 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
31116 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
31117 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
31118 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
31119 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
31120 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
31122 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
31124 * disk/efi/efidisk.c: Include grub/partition.h.
31125 (iterate_child_devices): New function.
31126 (add_device): First, compare only last device path nodes, so that
31127 devices are sorted by the types.
31128 (grub_efidisk_get_device_handle): New function.
31129 (grub_efidisk_get_device_name): Likewise.
31131 * configure.ac (--enable-mm-debug): New option to enable the
31132 memory manager debugging feature. This makes the binary much
31133 bigger, so is disabled by default.
31135 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
31137 Use grub_abort instead of grub_stop, and grub_exit must be
31138 define in each architecture now. Also, this change adds support
31141 * util/i386/pc/grub-probefs.c: Include grub/term.h.
31142 (grub_getkey): New function.
31143 (grub_term_get_current): Likewise.
31145 * util/i386/pc/grub-setup.c: Include grub/term.h.
31146 (grub_getkey): New function.
31147 (grub_term_get_current): Likewise.
31149 * util/misc.c (grub_stop): Renamed to ...
31150 (grub_exit): ... this.
31152 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
31153 (grub_exit): ... this.
31154 (grub_machine_init): Use grub_abort instead of abort.
31155 (grub_stop): Removed.
31157 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
31160 * kern/i386/pc/startup.S (grub_exit): New function.
31161 (cold_reboot): New label.
31163 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
31164 (grub_efi_init): Call grub_efidisk_init.
31165 (grub_efi_fini): Call grub_efidisk_fini.
31167 * kern/efi/efi.c: Include grub/mm.h.
31168 (grub_efi_console_control_guid): Renamed to ...
31169 (console_control_guid): ... this.
31170 (grub_efi_loaded_image_guid): Renamed to ...
31171 (loaded_image_guid): ... this.
31172 (grub_efi_locate_handle): New function.
31173 (grub_efi_open_protocol): Likewise.
31174 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
31175 GRUB_EFI_CONSOLE_CONTROL_GUID.
31176 (grub_efi_exit): Removed.
31177 (grub_stop): Likewise.
31178 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
31179 (grub_exit): New function.
31180 (grub_print_device_path): Likewise.
31182 * kern/rescue.c (grub_rescue_cmd_exit): New function.
31183 (grub_enter_rescue_mode): Register "exit".
31185 * kern/misc.c (grub_real_dprintf): A cosmetic change.
31186 (grub_abort): New function.
31188 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
31190 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
31192 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
31194 * include/grub/efi/efi.h (grub_efi_exit): Removed.
31195 (grub_print_device_path): New prototype.
31196 (grub_efi_locate_handle): Likewise.
31197 (grub_efi_open_protocol): Likewise.
31199 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
31200 * disk/efi/efidisk.c: Likewise.
31202 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
31204 * include/grub/efi/console_control.h
31205 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
31207 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
31208 last 8 bytes as an array.
31209 (GRUB_EFI_DISK_IO_GUID): New macro.
31210 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
31211 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
31212 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
31214 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
31215 (struct grub_efi_device_path): Rename the member "sub_type" to
31217 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
31218 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
31219 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
31220 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
31221 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
31222 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
31223 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
31224 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
31225 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
31226 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
31227 (struct grub_efi_pci_device_path): New structure.
31228 (grub_efi_pci_device_path_t): New type.
31229 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
31230 (struct grub_efi_pccard_device_path): New structure.
31231 (grub_efi_pccard_device_path_t): New type.
31232 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
31233 (struct grub_efi_memory_mapped_device_path): New structure.
31234 (grub_efi_memory_mapped_device_path_t): New type.
31235 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
31236 (struct grub_efi_vendor_device_path): New structure.
31237 (grub_efi_vendor_device_path_t): New type.
31238 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
31239 (struct grub_efi_controller_device_path): New structure.
31240 (grub_efi_controller_device_path_t): New type.
31241 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
31242 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
31243 (struct grub_efi_acpi_device_path): New structure.
31244 (grub_efi_acpi_device_path_t): New type.
31245 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
31246 (struct grub_efi_expanded_acpi_device_path): New structure.
31247 (grub_efi_expanded_acpi_device_path_t): New type.
31248 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
31249 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
31250 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
31251 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
31252 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
31253 (struct grub_efi_atapi_device_path): New structure.
31254 (grub_efi_atapi_device_path_t): New type.
31255 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
31256 (struct grub_efi_fibre_channel_device_path): New structure.
31257 (grub_efi_fibre_channel_device_path_t): New type.
31258 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
31259 (struct grub_efi_1394_device_path): New structure.
31260 (grub_efi_1394_device_path_t): New type.
31261 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
31262 (struct grub_efi_usb_device_path): New structure.
31263 (grub_efi_usb_device_path_t): New type.
31264 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
31265 (struct grub_efi_usb_class_device_path): New structure.
31266 (grub_efi_usb_class_device_path_t): New type.
31267 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
31268 (struct grub_efi_i2o_device_path): New structure.
31269 (grub_efi_i2o_device_path_t): New type.
31270 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
31271 (struct grub_efi_mac_address_device_path): New structure.
31272 (grub_efi_mac_address_device_path_t): New type.
31273 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
31274 (struct grub_efi_ipv4_device_path): New structure.
31275 (grub_efi_ipv4_device_path_t): New type.
31276 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
31277 (struct grub_efi_ipv6_device_path): New structure.
31278 (grub_efi_ipv6_device_path_t): New type.
31279 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
31280 (struct grub_efi_infiniband_device_path): New structure.
31281 (grub_efi_infiniband_device_path_t): New type.
31282 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
31283 (struct grub_efi_uart_device_path): New structure.
31284 (grub_efi_uart_device_path_t): New type.
31285 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
31286 (struct grub_efi_vendor_messaging_device_path): New structure.
31287 (grub_efi_vendor_messaging_device_path_t): New type.
31288 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
31289 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
31290 (struct grub_efi_hard_drive_device_path): New structure.
31291 (grub_efi_hard_drive_device_path_t): New type.
31292 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
31293 (struct grub_efi_cdrom_device_path): New structure.
31294 (grub_efi_cdrom_device_path_t): New type.
31295 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
31296 (struct grub_efi_vendor_media_device_path): New structure.
31297 (grub_efi_vendor_media_device_path_t): New type.
31298 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
31299 (struct grub_efi_file_path_device_path): New structure.
31300 (grub_efi_file_path_device_path_t): New type.
31301 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
31302 (struct grub_efi_protocol_device_path): New structure.
31303 (grub_efi_protocol_device_path_t): New type.
31304 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
31305 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
31306 (struct grub_efi_bios_device_path): New structure.
31307 (grub_efi_bios_device_path_t): New type.
31308 (struct grub_efi_disk_io): New structure.
31309 (grub_efi_disk_io_t): New type.
31310 (struct grub_efi_block_io_media): New structure.
31311 (grub_efi_block_io_media_t): New type.
31312 (struct grub_efi_block_io): New structure.
31313 (grub_efi_block_io_t): New type.
31315 * include/grub/misc.h (grub_stop): Removed.
31316 (grub_exit): New prototype.
31317 (grub_abort): Likewise.
31319 * include/grub/disk.h (enum grub_disk_dev_id): Added
31320 GRUB_DISK_DEVICE_EFIDISK_ID.
31322 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
31323 disk/efi/efidisk.c.
31324 (kernel_syms.lst): Remove the target if an error occurs.
31326 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
31328 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
31329 as it was simply too buggy.
31331 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
31333 * kern/misc.c (grub_lltoa): New function.
31334 (grub_vsprintf): Added support for the long long suffix,
31337 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
31339 * Makefile.in (LDFLAGS): Add variable.
31340 (LD): Remove variable.
31341 * configure.ac: Add -m32 to LDFLAGS.
31342 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
31343 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
31344 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
31345 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
31346 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
31348 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
31349 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
31350 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
31352 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
31354 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
31355 length for unknown glyph.
31357 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31359 Add support for pre-loaded modules into the EFI port.
31361 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
31362 completely. Accept one more argument DIR. The caller has changed.
31364 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
31366 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
31367 (grub_efi_loaded_image_guid): New variable.
31368 (grub_efi_get_loaded_image): New function.
31369 (grub_arch_modules_addr): Likewise.
31371 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
31374 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
31375 (struct grub_efi_loaded_image): New structure.
31376 (grub_efi_loaded_image_t): New type.
31378 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31380 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
31381 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
31382 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
31384 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
31386 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
31388 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
31390 * DISTLIST: Added include/grub/efi/console.h,
31391 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
31392 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31394 * include/grub/efi/console.h: New file.
31395 * include/grub/efi/time.h: Likewise.
31396 * include/grub/i386/efi/kernel.h: Likewise.
31397 * kern/efi/init.c: Likewise.
31398 * kern/efi/mm.c: Likewise.
31399 * term/efi/console.c: Likewise.
31401 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
31402 (grub_stop): Removed.
31403 (grub_get_rtc): Likewise.
31404 (grub_machine_init): Simply call grub_efi_init.
31405 (grub_machine_fini): Call grub_efi_fini.
31407 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
31408 (grub_efi_output_string): Removed.
31409 (grub_efi_stall): New function.
31410 (grub_stop): Likewise.
31411 (grub_get_rtc): Likewise.
31413 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
31414 (grub_efi_stall): New prototype.
31415 (grub_efi_allocate_pages): Likewise.
31416 (grub_efi_free_pages): Likewise.
31417 (grub_efi_get_memory_map): Likewise.
31418 (grub_efi_mm_init): Likewise.
31419 (grub_efi_mm_fini): Likewise.
31420 (grub_efi_init): Likewise.
31421 (grub_efi_fini): Likewise.
31423 * include/grub/i386/efi/time.h: Do not include
31424 grub/symbol.h. Include grub/efi/time.h.
31425 (GRUB_TICKS_PER_SECOND): Removed.
31426 (grub_get_rtc): Likewise.
31428 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
31429 Added padding. The EFI spec is buggy.
31430 (GRUB_EFI_BLACK): New macro.
31431 (GRUB_EFI_BLUE): Likewise.
31432 (GRUB_EFI_GREEN): Likewise.
31433 (GRUB_EFI_CYAN): Likewise.
31434 (GRUB_EFI_RED): Likewise.
31435 (GRUB_EFI_MAGENTA): Likewise.
31436 (GRUB_EFI_BROWN): Likewise.
31437 (GRUB_EFI_LIGHTGRAY): Likewise.
31438 (GRUB_EFI_BRIGHT): Likewise.
31439 (GRUB_EFI_DARKGRAY): Likewise.
31440 (GRUB_EFI_LIGHTBLUE): Likewise.
31441 (GRUB_EFI_LIGHTGREEN): Likewise.
31442 (GRUB_EFI_LIGHTCYAN): Likewise.
31443 (GRUB_EFI_LIGHTRED): Likewise.
31444 (GRUB_EFI_LIGHTMAGENTA): Likewise.
31445 (GRUB_EFI_YELLOW): Likewise.
31446 (GRUB_EFI_WHITE): Likewise.
31447 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
31448 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
31449 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
31450 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
31451 (GRUB_EFI_BACKGROUND_RED): Likewise.
31452 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
31453 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
31454 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
31455 (GRUB_EFI_TEXT_ATTR): Likewise.
31457 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
31458 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31459 (kernel_mod_HEADERS): Added efi/time.h.
31461 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
31463 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
31464 include/grub/efi/api.h, include/grub/efi/console_control.h,
31465 include/grub/efi/efi.h, include/grub/efi/pe32.h,
31466 include/grub/i386/efi/time.h, kern/efi/efi.c,
31467 kern/i386/efi/init.c, kern/i386/efi/startup.S,
31468 and util/i386/efi/grub-mkimage.c.
31470 * Makefile.in (RMKFILES): Added i386-efi.rmk.
31472 * genmk.rb (PModule#rule): Do not export symbols if
31473 #{prefix}_EXPORTS is set to "no".
31475 * conf/i386-efi.mk: New file.
31476 * conf/i386-efi.rmk: Likewise.
31477 * include/grub/efi/api.h: Likewise.
31478 * include/grub/efi/console_control.h: Likewise.
31479 * include/grub/efi/efi.h: Likewise.
31480 * include/grub/efi/pe32.h: Likewise.
31481 * include/grub/i386/efi/time.h: Likewise.
31482 * kern/efi/efi.c: Likewise.
31483 * kern/i386/efi/init.c: Likewise.
31484 * kern/i386/efi/startup.S: Likewise.
31485 * util/i386/efi/grub-mkimage.c: Likewise.
31487 2006-04-17 Marco Gerards <marco@gnu.org>
31489 * include/grub/script.h: Include <grub/parser.h> and
31490 "grub_script.tab.h".
31491 (struct grub_lexer_param): New struct.
31492 (struct grub_parser_param): Likewise.
31493 (grub_script_create_arglist): Pass the state in an argument.
31494 (grub_script_add_arglist): Likewise.
31495 (grub_script_create_cmdline): Likewise.
31496 (grub_script_create_cmdblock): Likewise.
31497 (grub_script_create_cmdif): Likewise.
31498 (grub_script_create_cmdmenu): Likewise.
31499 (grub_script_add_cmd): Likewise.
31500 (grub_script_arg_add): Likewise.
31501 (grub_script_lexer_ref): Likewise.
31502 (grub_script_lexer_deref): Likewise.
31503 (grub_script_lexer_record_start): Likewise.
31504 (grub_script_lexer_record_stop): Likewise.
31505 (grub_script_mem_record): Likewise.
31506 (grub_script_mem_record_stop): Likewise.
31507 (grub_script_malloc): Likewise.
31508 (grub_script_yylex): Likewise.
31509 (grub_script_yyparse): Likewise.
31510 (grub_script_yyerror): Likewise.
31511 (grub_script_yylex): Likewise.
31512 (grub_script_lexer_init): Return the state.
31514 * normal/lexer.c (grub_script_lexer_state): Removed variable.
31515 (grub_script_lexer_done): Likewise.
31516 (grub_script_lexer_getline): Likewise.
31517 (grub_script_lexer_refs): Likewise.
31518 (script): Likewise.
31519 (newscript): Likewise.
31520 (record): Likewise.
31521 (recording): Likewise.
31522 (recordpos): Likewise.
31523 (recordlen): Likewise.
31524 (grub_script_lexer_init): Return the state instead of setting
31526 (grub_script_lexer_ref): Use the newly added argument for state
31527 instead of globals.
31528 (grub_script_lexer_deref): Likewise.
31529 (grub_script_lexer_record_start): Likewise.
31530 (grub_script_lexer_record_stop): Likewise.
31531 (recordchar): Likewise.
31532 (nextchar): Likewise.
31533 (grub_script_yylex2): Likewise.
31534 (grub_script_yylex): Likewise.
31535 (grub_script_yyerror): Likewise.
31537 * normal/parser.y (func_mem): Removed variable.
31538 (menu_entry): Likewise.
31540 (%lex-param): New parser option.
31541 (%parse-param): Likewise.
31542 (script): Always return the AST.
31543 (argument): Pass the state around.
31544 (arguments): Likewise.
31545 (grubcmd): Likewise.
31546 (commands): Likewise.
31547 (function): Likewise.
31548 (menuentry): Likewise.
31549 (if_statement): Likewise.
31552 * normal/script.c (grub_script_memused): Removed variable.
31553 (grub_script_parsed): Likewise.
31554 (grub_script_malloc): Added a state argument. Use that instead of
31556 (grub_script_mem_record): Likewise.
31557 (grub_script_mem_record_stop): Likewise.
31558 (grub_script_arg_add): Likewise.
31559 (grub_script_add_arglist): Likewise.
31560 (grub_script_create_cmdline): Likewise.
31561 (grub_script_create_cmdif): Likewise.
31562 (grub_script_create_cmdmenu): Likewise.
31563 (grub_script_add_cmd): Likewise.
31564 (grub_script_parse): Setup the state before calling the parser.
31566 2006-04-16 Marco Gerards <marco@gnu.org>
31568 * normal/command.c (grub_command_init): Remove the title command.
31570 * normal/lexer.c (grub_script_yylex): Renamed from this...
31571 (grub_script_yylex2): ... to this.
31572 (grub_script_yylex): New function. Temporary
31573 introduced to filter some tokens.
31574 (grub_script_yyerror): Print a newline.
31576 * normal/main.c (read_config_file): Output information about the
31577 lines that contain errors. Wait for a key after all lines have
31578 been processed. Don't return an empty menu.
31580 * normal/parser.y (func_mem): Don't initialize.
31581 (menu_entry): Likewise.
31582 (err): New variable.
31583 (script): Don't return anything when an error was encountered.
31584 (ws, returns): Removed rules.
31585 (argument): Disabled concatenated variable support.
31586 (arguments): Remove explicit separators.
31587 (grubcmd): Likewise.
31588 (function): Likewise.
31589 (menuentry): Likewise.
31591 (commands): Likewise. Add error handling.
31593 * normal/script.c (grub_script_create_cmdline): If
31594 `grub_script_parsed' is 0, assume the parser encountered an error.
31596 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
31598 * configure.ac: Add support for EFI. Fix the typo
31599 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
31601 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31603 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
31604 foreign multibyte characters should be shown correctly.
31606 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31608 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
31610 (read_config_file): Made it to close file before returning.
31612 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
31614 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
31615 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
31616 video/i386/pc/vbefill.c.
31618 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
31619 video/i386/pc/vbefill.c.
31621 * include/grub/video.h (grub_video_blit_format): New enum.
31622 (grub_video_mode_info): Added new member blit_format.
31623 (grub_video_get_blit_format): New function prototype.
31625 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
31626 function prototype.
31627 (grub_video_vbe_map_rgb): Likewise.
31628 (grub_video_vbe_unmap_color): Likewise.
31630 * include/grub/i386/pc/vbeblit.h: New file.
31632 * include/grub/i386/pc/vbefill.h: New file.
31634 * video/video.c (grub_video_get_blit_format): New function.
31635 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
31636 (grub_video_vbe_map_rgb): Likewise.
31637 (grub_video_vbe_unmap_color): Likewise.
31639 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
31641 (grub_video_vbe_blit_render_target): Changed to use more optimized
31643 (grub_video_vbe_setup): Added detection for optimized settings.
31644 (grub_video_vbe_create_render_target): Likewise.
31646 * video/i386/pc/vbeblit.c: New file.
31648 * video/i386/pc/vbefill.c: New file.
31650 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
31652 * font/manager.c (grub_font_get_glyph): Removed font fixup from
31655 * util/unifont2pff.rb: ... and moved it to here. Improved argument
31656 parsing to support both hex and dec ranges. If filename was missing
31657 show usage information.
31659 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
31661 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
31662 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
31664 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
31665 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
31666 (video_mod_SOURCES): Added.
31667 (video_mod_CFLAGS): Likewise.
31668 (video_mod_LDFLAGS): Likewise.
31669 (gfxterm_mod_SOURCES): Likewise.
31670 (gfxterm_mod_CFLAGS): Likewise.
31671 (gfxterm_mod_LDFLAGS): Likewise.
31672 (videotest_mod_SOURCES): Likewise.
31673 (videotest_mod_CFLAGS): Likewise.
31674 (videotest_mod_LDFLAGS): Likewise.
31675 (vesafb_mod_SOURCES): Removed.
31676 (vesafb_mod_CFLAGS): Likewise.
31677 (vesafb_mod_LDFLAGS): Likewise.
31678 (vga_mod_SOURCES): Likewise.
31679 (vga_mod_CFLAGS): Likewise.
31680 (vga_mod_LDFLAGS): Likewise.
31682 * commands/videotest.c: New file.
31684 * font/manager.c (fill_with_default_glyph): Modified to use
31686 (grub_font_get_glyph): Likewise.
31687 (fontmanager): Renamed from this...
31688 (font_manager): ... to this.
31690 * include/grub/font.h (grub_font_glyph): Added new structure.
31691 (grub_font_get_glyph): Modified to use grub_font_glyph.
31693 * include/grub/misc.h (grub_abs): Added as inline function.
31695 * include/grub/video.h: New file.
31697 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
31698 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
31699 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
31700 (grub_vbe_get_controller_info): Renamed from this...
31701 (grub_vbe_bios_get_controller_info): ... to this.
31702 (grub_vbe_get_mode_info): Renamed from this...
31703 (grub_vbe_bios_get_mode_info): ... to this.
31704 (grub_vbe_set_mode): Renamed from this...
31705 (grub_vbe_bios_set_mode): ... to this.
31706 (grub_vbe_get_mode): Renamed from this...
31707 (grub_vbe_bios_get_mode): ... to this.
31708 (grub_vbe_set_memory_window): Renamed from this...
31709 (grub_vbe_bios_set_memory_window): ... to this.
31710 (grub_vbe_get_memory_window): Renamed from this...
31711 (grub_vbe_bios_get_memory_window): ... to this.
31712 (grub_vbe_set_scanline_length): Renamed from this...
31713 (grub_vbe_set_scanline_length): ... to this.
31714 (grub_vbe_get_scanline_length): Renamed from this...
31715 (grub_vbe_bios_get_scanline_length): ... to this.
31716 (grub_vbe_set_display_start): Renamed from this...
31717 (grub_vbe_bios_set_display_start): ... to this.
31718 (grub_vbe_get_display_start): Renamed from this...
31719 (grub_vbe_bios_get_display_start): ... to this.
31720 (grub_vbe_set_palette_data): Renamed from this...
31721 (grub_vbe_bios_set_palette_data): ... to this.
31722 (grub_vbe_set_pixel_rgb): Removed.
31723 (grub_vbe_set_pixel_index): Likewise.
31725 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
31727 (grub_vbe_bios_get_controller_info): ... to this.
31728 (grub_vbe_get_mode_info): Renamed from this...
31729 (grub_vbe_bios_get_mode_info): ... to this.
31730 (grub_vbe_set_mode): Renamed from this...
31731 (grub_vbe_bios_set_mode): ... to this.
31732 (grub_vbe_get_mode): Renamed from this...
31733 (grub_vbe_bios_get_mode): ... to this.
31734 (grub_vbe_set_memory_window): Renamed from this...
31735 (grub_vbe_bios_set_memory_window): ... to this.
31736 (grub_vbe_get_memory_window): Renamed from this...
31737 (grub_vbe_bios_get_memory_window): ... to this.
31738 (grub_vbe_set_scanline_length): Renamed from this...
31739 (grub_vbe_set_scanline_length): ... to this.
31740 (grub_vbe_get_scanline_length): Renamed from this...
31741 (grub_vbe_bios_get_scanline_length): ... to this.
31742 (grub_vbe_set_display_start): Renamed from this...
31743 (grub_vbe_bios_set_display_start): ... to this.
31744 (grub_vbe_get_display_start): Renamed from this...
31745 (grub_vbe_bios_get_display_start): ... to this.
31746 (grub_vbe_set_palette_data): Renamed from this...
31747 (grub_vbe_bios_set_palette_data): ... to this.
31748 (grub_vbe_bios_get_controller_info): Fixed problem with registers
31749 getting corrupted after calling it. Added more pushes and pops.
31750 (grub_vbe_bios_set_mode): Likewise.
31751 (grub_vbe_bios_get_mode): Likewise.
31752 (grub_vbe_bios_get_memory_window): Likewise.
31753 (grub_vbe_bios_set_scanline_length): Likewise.
31754 (grub_vbe_bios_get_scanline_length): Likewise.
31755 (grub_vbe_bios_get_display_start): Likewise.
31756 (grub_vbe_bios_set_palette_data): Likewise.
31758 * normal/cmdline.c (cl_set_pos): Refresh the screen.
31759 (cl_insert): Likewise.
31760 (cl_delete): Likewise.
31762 * term/gfxterm.c: New file.
31764 * term/i386/pc/vesafb.c: Removed file.
31766 * video/video.c: New file.
31768 * video/i386/pc/vbe.c (real2pm): Added new function.
31769 (grub_video_vbe_draw_pixel): Likewise.
31770 (grub_video_vbe_get_video_ptr): Likewise.
31771 (grub_video_vbe_get_pixel): Likewise
31772 (grub_video_vbe_init): Likewise.
31773 (grub_video_vbe_fini): Likewise.
31774 (grub_video_vbe_setup): Likewise.
31775 (grub_video_vbe_get_info): Likewise.
31776 (grub_video_vbe_set_palette): Likewise.
31777 (grub_video_vbe_get_palette): Likewise.
31778 (grub_video_vbe_set_viewport): Likewise.
31779 (grub_video_vbe_get_viewport): Likewise.
31780 (grub_video_vbe_map_color): Likewise.
31781 (grub_video_vbe_map_rgb): Likewise.
31782 (grub_video_vbe_map_rgba): Likewise.
31783 (grub_video_vbe_unmap_color): Likewise.
31784 (grub_video_vbe_fill_rect): Likewise.
31785 (grub_video_vbe_blit_glyph): Likewise.
31786 (grub_video_vbe_blit_bitmap): Likewise.
31787 (grub_video_vbe_blit_render_target): Likewise.
31788 (grub_video_vbe_scroll): Likewise.
31789 (grub_video_vbe_swap_buffers): Likewise.
31790 (grub_video_vbe_create_render_target): Likewise.
31791 (grub_video_vbe_delete_render_target): Likewise.
31792 (grub_video_vbe_set_active_render_target): Likewise.
31793 (grub_vbe_set_pixel_rgb): Remove function.
31794 (grub_vbe_set_pixel_index): Likewise.
31795 (index_color_mode): Remove static variable.
31796 (active_mode): Likewise.
31797 (framebuffer): Likewise.
31798 (bytes_per_scan_line): Likewise.
31799 (grub_video_vbe_adapter): Added new static variable.
31800 (framebuffer): Likewise.
31801 (render_target): Likewise.
31802 (initial_mode): Likewise.
31803 (mode_in_use): Likewise.
31804 (mode_list): Likewise.
31806 2006-03-10 Marco Gerards <marco@gnu.org>
31808 * configure.ac (AC_INIT): Bumped to 1.93.
31810 * DISTLIST: Added `include/grub/hfs.h'.
31812 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
31814 * boot/i386/pc/boot.S (general_error): Before looping, try INT
31815 18H, which might help the BIOS falling back to next boot media.
31817 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
31819 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
31820 Poe Chen <poe.poechen@gmail.com>.
31822 2006-01-17 Marco Gerards <marco@gnu.org>
31824 * include/grub/normal.h: Include <grub/script.h>.
31825 (grub_command_list): Removed struct.
31826 (grub_command_list_t): Removed type.
31827 (grub_menu_entry): Remove members `num' and `command_list'. Add
31828 members `commands' and `sourcecode'.
31829 * include/grub/script.h: Add inclusion guards.
31830 (grub_script_cmd_menuentry): New struct.
31831 (grub_script_execute_menuentry): New prototype.
31832 (grub_script_lexer_record_start): Likewise.
31833 (grub_script_lexer_record_stop): Likewise.
31834 * normal/execute.c (grub_script_execute_menuentry): New function.
31835 * normal/lexer.c (record, recording, recordpos, recordlen): New
31837 (grub_script_lexer_record_start): New function.
31838 (grub_script_lexer_record_stop): Likewise.
31839 (recordchar): Likewise.
31840 (nextchar): Likewise.
31841 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
31842 2048 as the buffer size. Add the tokens `menuentry' and `@'.
31843 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
31844 (current_menu): New variable.
31845 (free_menu): Mainly rewritten.
31846 (grub_normal_menu_addentry): New function.
31847 (read_config_file): Rewritten.
31848 * normal/menu.c (run_menu_entry): Mainly rewritten.
31849 * normal/menu_entry.c (make_screen): Rewritten the code to insert
31851 (run): Mainly rewritten.
31852 * normal/parser.y (menu_entry): New variable.
31853 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
31854 (menuentry): New rule.
31855 (command): Add `menuentry'.
31856 (if_statement): Allow additional returns before `fi'.
31857 * normal/script.c (grub_script_create_cmdmenu): New function.
31859 2006-01-03 Marco Gerards <marco@gnu.org>
31861 * INSTALL: GNU Bison is required.
31862 * configure.ac: Rewritten the test to detect Bison.
31863 * Makefile.in (YACC): New variable. Reported by Xun Sun
31864 <xun.sun.cn@gmail.com>.
31866 2006-01-03 Marco Gerards <marco@gnu.org>
31868 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
31869 the HFS+ filesystem to filesystem blocks.
31870 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
31871 GCC warning is silenced.
31873 2006-01-03 Marco Gerards <marco@gnu.org>
31875 * partmap/apple.c (apple_partition_map_iterate): Convert the data
31876 read from disk from big endian to host byte order.
31878 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
31880 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
31882 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
31883 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
31884 embedded HFS+ filesystem.
31885 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
31886 (grub_hfs_sblock): Move from here...
31887 * include/grub/hfs.h: To here... New file.
31888 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
31890 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
31892 (grub_hfsplus_volheader): Change type of member `magic' to
31894 (grub_hfsplus_data): Add new member `embedded_offset'.
31895 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
31897 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
31898 Calculate the offset.
31900 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31902 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
31904 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
31906 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31908 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
31909 ENV->NAME is NULL after allocating ENV->VALUE.
31911 2005-12-25 Marco Gerards <marco@gnu.org>
31913 * kern/env.c (grub_env_set): Rewritten the error handling code.
31915 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31917 * geninit.sh: Made more robust, and more portable.
31919 2005-12-25 Marco Gerards <marco@gnu.org>
31921 Add support for Apple HFS+ filesystems.
31923 * fs/hfsplus.c: New file.
31925 * DISTLIST: Added `fs/hfsplus.c'.
31927 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
31928 (hfsplus_mod_SOURCES): New variable.
31929 (hfsplus_mod_CFLAGS): Likewise.
31930 (hfsplus_mod_LDFLAGS): Likewise.
31931 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
31932 (grub_setup_SOURCES): Likewise.
31933 (grub_mkdevicemap_SOURCES): Likewise.
31934 (grub_emu_SOURCES): Likewise.
31935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31937 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
31939 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
31941 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31943 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
31944 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
31945 include/grub/parser.h, include/grub/script.h, kern/parser.c,
31946 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
31947 normal/lexer.c, normal/parser.y, normal/script.c, and
31949 Removed kern/sparc64/cache.c.
31951 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
31952 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
31955 * configure.ac (AC_INIT): Bumped to 1.92.
31957 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
31959 * kern/err.c (grub_error_push): Added new function to support error
31961 (grub_error_pop): Likewise.
31962 (grub_error_stack_items): New local variable to support error stacks.
31963 (grub_error_stack_pos): Likewise.
31964 (grub_error_stack_assert): Likewise.
31965 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
31967 (grub_print_error): Added support to print errors from error stack.
31969 * include/grub/err.h (grub_error_push): Added function prototype.
31970 (grub_error_pop): Likewise.
31972 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
31974 * configure.ac: Accept `powerpc64' as host_cpu.
31975 (amd64): Rename to `biarch32'.
31977 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
31978 non-cacheline-aligned addresses.
31980 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
31981 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
31982 if `size' is non-zero.
31984 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
31986 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
31987 and `cd' to make sure the filename is not prefixed with a
31989 (pkgdata_MODULES): Add `gpt.mod'.
31990 (gpt_mod_SOURCES): New variable.
31991 (gpt_mod_CFLAGS): Likewise.
31992 (gpt_mod_LDFLAGS): Likewise.
31994 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
31996 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
31999 * partmap/gpt.c: New file.
32001 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
32002 GPT partition map is detected.
32004 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
32006 * commands/i386/pc/play.c: New file.
32007 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
32008 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
32011 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
32013 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
32014 ((unused))' to silence gcc warning.
32016 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
32018 * configure.ac: Correct `AC_PROG_YACC' test.
32020 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32022 * util/powerpc/ieee1275/grub-install.in: Run the mount point
32023 check before installing files.
32025 2005-11-22 Mike Small <smallm@panix.com>
32027 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
32028 number regex so multidigit numbers are recognized correctly.
32030 2005-11-22 Mike Small <smallm@panix.com>
32032 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
32033 debugging message before attempting to claim memory.
32034 (grub_rescue_cmd_initrd): Add a claim debugging message and try
32035 multiple addresses in case of failure.
32037 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32039 * term/tparm.c (get_space): Remove empty `if' statement.
32041 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
32043 * kern/parser.c (check_varstate): Rename `state' to 's'.
32045 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32047 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
32048 variable definitions to the beginning of each function. Sort stack
32050 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
32051 `buf' argument to `char *'.
32053 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32055 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
32056 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32057 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32058 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32059 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32060 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32061 configfile.mod, search.mod, gzio.mod and test.mod.
32062 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32063 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32064 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32065 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32066 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32067 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32068 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32069 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32070 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32071 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32072 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32073 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32074 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32075 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32076 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32077 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32078 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32079 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32080 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32081 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32082 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32083 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32084 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
32086 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
32088 (pkgdata_MODULES): Add test.mod.
32090 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32092 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
32093 appending to variables with "+=".
32094 (PModule): Use full pathname to generate *.lst filenames.
32096 * Makefile.in: Fixed list rules moved from genmk.rb.
32097 (.DELETE_ON_ERROR): New special target.
32098 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
32100 * conf/i386-pc.rmk: Include conf/common.mk.
32101 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32102 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32103 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32104 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32105 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32106 configfile.mod, search.mod, gzio.mod and test.mod.
32107 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32108 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32109 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32110 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32111 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32112 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32113 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32114 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32115 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32116 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32117 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32118 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32119 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32120 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32121 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32122 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32123 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32124 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32125 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32126 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32127 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32128 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32129 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
32131 * conf/common.rmk: ... to here. New file.
32133 * conf/common.mk: New file.
32135 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
32137 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
32138 (grub_script.tab.c): ... here.
32140 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
32141 (grub_script.tab.c): ... here.
32143 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
32144 (grub_script.tab.c): ... here.
32146 * normal/command.c (grub_command_find): Fixed a memory leak of
32147 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
32149 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32151 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
32152 "@" which marks the start of a comment on ARM.
32153 (VARIABLE): Likewise.
32155 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32157 Add support for Linux/ADFS partition tables.
32159 * partmap/acorn.c: New file.
32161 * include/grub/acorn_filecore.h: Likewise.
32163 * DISTLIST: Added `partmap/acorn.c' and
32164 `include/grub/acorn_filecore.h'.
32166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32168 (pkgdata_MODULES): Add `acorn.mod'.
32169 (acorn_mod_SOURCES): New variable.
32170 (acorn_mod_CFLAGS): Likewise.
32172 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32174 (pkgdata_MODULES): Add `acorn.mod'.
32175 (acorn_mod_SOURCES): New variable.
32176 (acorn_mod_CFLAGS): Likewise.
32178 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
32179 (pkgdata_MODULES): Add `acorn.mod'.
32180 (acorn_mod_SOURCES): New variable.
32181 (acorn_mod_CFLAGS): Likewise.
32182 (acorn_mod_LDFLAGS): Likewise.
32184 * include/types.h (grub_disk_addr_t): New typedef.
32186 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
32188 * geninit.sh: New file.
32190 * geninitheader.sh: Likewise.
32192 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
32193 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
32194 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
32195 * commands/configfile.c (grub_configfile_init)
32196 (grub_configfile_fini): Likewise.
32197 * commands/default.c (grub_default_init, grub_default_fini):
32199 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
32200 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
32201 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
32202 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
32204 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
32205 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
32207 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
32208 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
32210 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
32212 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
32214 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
32215 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
32216 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
32217 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
32218 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
32219 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
32220 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
32221 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
32222 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
32223 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
32224 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
32225 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
32226 * partmap/amiga.c (grub_amiga_partition_map_init)
32227 (grub_amiga_partition_map_fini): Likewise.
32228 * partmap/apple.c (grub_apple_partition_map_init)
32229 (grub_apple_partition_map_fini): Likewise.
32230 * partmap/pc.c (grub_pc_partition_map_init)
32231 (grub_pc_partition_map_fini): Likewise.
32232 * partmap/sun.c (grub_sun_partition_map_init,
32233 grub_sun_partition_map_fini): Likewise.
32234 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
32237 * util/grub-emu.c: Include <grub_modules_init.h>.
32238 (main): Don't initialize and de-initialize any modules directly,
32239 use `grub_init_all' and `grub_fini_all' instead.
32241 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
32242 `grub_vesafb_mod_init'.
32243 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
32245 * term/i386/pc/vga.c (grub_vga_init): Renamed to
32246 `grub_vga_mod_init'. Updated all users.
32247 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
32249 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
32250 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
32253 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
32254 Generate a function to initialize the module in utilities.
32255 Updated all callers.
32256 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
32257 initialize the module in utilities. Updated all callers.
32259 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32261 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
32262 escape sequence and a literal ^L to clear the screen.
32264 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
32265 when returning from Open Firmware.
32267 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32269 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
32270 (grub_ofconsole_height): Likewise.
32271 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
32272 manually insert a '\n'.
32273 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
32274 `grub_ofconsole_height'. Return early if these are already set.
32276 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
32278 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32279 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
32280 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
32281 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
32282 and `normal/script.c'.
32283 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32284 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32285 (test_mod_SOURCES): New variable.
32286 (test_mod_CFLAGS): Likewise.
32287 (test_mod_LDFLAGS): Likewise.
32288 (pkgdata_MODULES): Add `test.mod'.
32289 (grub_script.tab.c): New rule.
32290 (grub_script.tab.h): Likewise.
32292 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
32294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32295 `commands/test.c', `normal/execute.c', `normal/lexer.c',
32296 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32297 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32298 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32299 (test_mod_SOURCES): New variable.
32300 (test_mod_CFLAGS): Likewise.
32301 (pkgdata_MODULES): Add `test.mod'.
32302 (grub_script.tab.c): New rule.
32303 (grub_script.tab.h): Likewise.
32305 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
32307 Add initial scripting support.
32309 * commands/test.c: New file.
32310 * include/grub/script.h: Likewise.
32311 * normal/execute.c: Likewise.
32312 * normal/function.c: Likewise.
32313 * normal/lexer.c: Likewise.
32314 * normal/parser.y: Likewise.
32315 * normal/script.c: Likewise.
32317 * configure.ac: Add `AC_PROG_YACC' test.
32319 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
32320 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
32321 `normal/function.c' and `normal/script.c'.
32322 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32323 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32324 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
32326 (pkgdata_MODULES): Add `test.mod'.
32327 (grub_script.tab.c): New rule.
32328 (grub_script.tab.h): Likewise.
32330 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
32332 * include/grub/normal.h (grub_test_init): New prototype.
32333 (grub_test_fini): Likewise.
32335 * normal/command.c: Include <grub/script.h>.
32336 (grub_command_execute): Rewritten.
32338 * util/grub-emu.c (main): Call `grub_test_init' and
32341 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32343 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
32345 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
32346 there are no pending characters.
32348 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32350 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
32351 `grub_strndup' to drop device arguments. Replace unnecessary
32352 `grub_strndup' with `grub_strdup'.
32354 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32356 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
32357 `debug' environment variable has been set.
32359 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
32361 * Makefile.in (install-local): Use $(DATA).
32362 (uninstall): Likewise.
32363 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
32364 (sbin_UTILITIES): ... to here.
32365 (sbin_SCRIPTS): New variable.
32366 (grub_install_SOURCES): New variable.
32367 * util/powerpc/ieee1275/grub-install.in: New file.
32368 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
32370 (add_segments): Call `grub_util_get_path'.
32372 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
32374 From Timothy Baldwin:
32375 * commands/ls.c (grub_ls_list_files): Close FILE with
32377 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
32379 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
32381 * include/grub/parser.h: New file.
32383 * kern/parser.c: Likewise.
32385 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
32386 (grub_setup_SOURCES): Likewise.
32387 (grub_probefs_SOURCES): Likewise.
32388 (grub_emu_SOURCES): Likewise.
32389 (kernel_img_HEADERS): Add `parser.h'.
32391 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32392 (grub_emu_SOURCES): Add `kern/parser.c'.
32393 (grubof_SOURCES): Likewise.
32395 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32396 (grubof_SOURCES): Add `kern/parser.c'.
32398 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
32400 * kern/misc.c (grub_split_cmdline): Removed function.
32402 * kern/rescue.c: Include <grub/parser.h>.
32403 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
32404 of `grub_split_cmdline'.
32406 * normal/command.c: Include <grub/parser.h>.
32407 (grub_command_execute): Use `grub_parser_split_cmdline' instead
32408 of `grub_split_cmdline'.
32410 * normal/completion.c: Include <grub/parser.h>.
32411 (cmdline_state): New variable.
32412 (iterate_dir): End the filename with a quote depending on the
32413 command line state.
32414 (get_state): new function.
32415 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
32416 split the arguments and determine the current argument. When the
32417 argument string is not quoted, escape all spaces.
32419 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32421 * normal/sparc64/setjmp.S: New file.
32423 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32425 * include/grub/sparc64/libgcc.h: New file.
32426 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
32427 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
32428 normal/sparc64/setjmp.c.
32430 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32432 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
32433 * kern/sparc64/cache.S: New file.
32434 * kern/sparc64/cache.c: Removed.
32435 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
32436 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
32438 (COMMON_LDFLAGS): Add -melf64_sparc.
32439 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
32440 (grubof_SOURCES): Use cache.S instead of cache.c.
32441 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
32442 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
32443 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
32445 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
32446 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
32447 (linux_mod_CFLAGS): Commented out.
32448 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
32449 out because module isn't built.
32450 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
32451 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
32452 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
32453 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
32454 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
32455 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32456 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32457 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
32458 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
32459 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
32460 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32461 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32462 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
32463 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
32465 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
32467 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
32468 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
32469 longer, because HFS should not be used on PC.
32471 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32473 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
32474 consistently within the loop.
32476 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
32478 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
32479 directory can not be read.
32481 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32483 * configure.ac (AC_INIT): Increase the version number to 1.91.
32485 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
32486 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
32487 term/i386/pc/serial.c.
32489 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32491 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
32492 file size must be permitted.
32494 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
32495 between %ah and %al.
32497 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32499 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
32501 Call the hook with a NUL-terminated filename.
32502 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
32505 * kern/term.c (cursor_state): New variable.
32506 (grub_term_set_current): Reset the cursor state on a new
32508 (grub_setcursor): Rewritten to use CURSOR_STATE.
32509 (grub_getcursor): New function.
32511 * include/grub/term.h (grub_getcursor): New prototype.
32513 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
32514 integers on ARM. Reported by Timothy Baldwin
32515 <T.E.Baldwin99@members.leeds.ac.uk>.
32517 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
32519 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
32521 (grub_sfs_dir): Likewise.
32523 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
32525 Add support for the SFS filesystem.
32527 * fs/sfs.c: New file.
32529 * DISTLIST: Added `fs/sfs.c'.
32531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
32532 (grub_probefs_SOURCES): Likewise.
32533 (grub_emu_SOURCES): Likewise.
32534 (pkgdata_MODULES): Add `sfs.mod'.
32535 (sfs_mod_SOURCES): New variable.
32536 (sfs_mod_CFLAGS): Likewise.
32537 (sfs_mod_LDFLAGS): Likewise.
32539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
32540 (pkgdata_MODULES): Add `sfs.mod'.
32541 (sfs_mod_SOURCES): New variable.
32542 (sfs_mod_CFLAGS): Likewise.
32544 * util/grub-emu.c (main): Call `grub_sfs_init' and
32547 * include/grub/fs.h (grub_sfs_init): New prototype.
32548 (grub_sfs_fini): Likewise.
32550 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
32552 Add support for the AFFS filesystem.
32554 * fs/affs.c: New file.
32556 * DISTLIST: Added `fs/affs.c'.
32558 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
32559 (grub_probefs_SOURCES): Likewise.
32560 (grub_emu_SOURCES): Likewise.
32561 (pkgdata_MODULES): Add `affs.mod'.
32562 (affs_mod_SOURCES): New variable.
32563 (affs_mod_CFLAGS): Likewise.
32564 (affs_mod_LDFLAGS): Likewise.
32566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
32567 (pkgdata_MODULES): Add `affs.mod'.
32568 (affs_mod_SOURCES): New variable.
32569 (affs_mod_CFLAGS): Likewise.
32571 * util/grub-emu.c (main): Call `grub_affs_init' and
32574 * include/grub/fs.h (grub_affs_init): New prototype.
32575 (grub_affs_fini): Likewise.
32577 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
32579 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
32581 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
32583 * configure.ac: Accept `x86_64' as host_cpu. In that case add
32586 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
32589 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
32590 (COMMON_LDFLAGS): New variable.
32591 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
32592 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
32593 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
32594 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
32595 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
32596 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
32597 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
32598 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
32599 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
32600 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
32601 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32602 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32603 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
32604 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
32605 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
32607 (normal_mod_ASFLAGS): Add `-m32'.
32609 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
32610 (grub_host_size_t, grub_host_ssize_t): New types.
32611 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
32612 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
32613 `GRUB_HOST_SIZEOF_VOID_P'.
32615 * include/grub/kernel.h (struct grub_module_header): Type of
32616 member offset changed to `grub_host_off_t'. Type of member size
32617 changed to `grub_host_size_t'.
32618 (struct grub_module_info): Type of member offset changed to
32619 `grub_host_off_t'. Type of member size changed to
32620 `grub_host_size_t'.
32622 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
32624 Make GRUB's kernel compliant to Multiboot Specification.
32626 * kern/i386/pc/startup.S (multiboot_header): New label.
32627 (multiboot_entry): Likewise.
32628 (multiboot_trampoline): Likewise.
32630 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32631 Increased to 0x4A0.
32633 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
32634 put parentheses after a question mark.
32635 [!GRUB_UTIL] (my_mod): New variable.
32637 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
32639 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
32641 Adds support for the XFS filesystem. Btrees are not supported
32644 * fs/xfs.c: New file.
32646 * DISTLIST: Added `fs/xfs.c'.
32648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
32649 (grub_probefs_SOURCES): Likewise.
32650 (grub_emu_SOURCES): Likewise.
32651 (pkgdata_MODULES): Add `xfs.mod'.
32652 (xfs_mod_SOURCES): New variable.
32653 (xfs_mod_CFLAGS): Likewise.
32655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
32656 (pkgdata_MODULES): Add `xfs.mod'.
32657 (xfs_mod_SOURCES): New variable.
32658 (xfs_mod_CFLAGS): Likewise.
32660 * util/grub-emu.c (main): Call `grub_xfs_init' and
32663 * include/grub/fs.h (grub_xfs_init): New prototype.
32664 (grub_xfs_fini): Likewise.
32667 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
32669 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
32670 color modes, allow greater than 16 colors to be configured as
32673 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32675 * normal/completion.c (complete_arguments): Add the qualifier
32676 const into OPTIONS.
32678 From Omniflux <omniflux+lists@omniflux.com>:
32679 * include/grub/terminfo.h: New file.
32680 * include/grub/tparm.h: Likewise.
32681 * include/grub/i386/pc/serial.h: Likewise.
32682 * term/terminfo.c: Likewise.
32683 * term/tparm.c: Likewise.
32684 * term/i386/pc/serial.c: Likewise.
32685 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
32687 (terminfo_mod_SOURCES): New variable.
32688 (terminfo_mod_CFLAGS): Likewise.
32689 (serial_mod_SOURCES): Likewise.
32690 (serial_mod_CFLAGS): Likewise.
32692 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
32694 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
32695 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
32696 and kern/powerpc/ieee1275/cmain.c, respectively.
32698 * boot/powerpc/ieee1275/crt0.S: Moved to ...
32699 * kern/powerpc/ieee1275/crt0.S: ... here.
32701 * boot/powerpc/ieee1275/cmain.c: Moved to ...
32702 * kern/powerpc/ieee1275/cmain.c: ... here.
32704 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
32705 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
32706 instead of boot/powerpc/ieee1275/crt0.S and
32707 boot/powerpc/ieee1275/cmain.c, respectively.
32709 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
32710 sectors. It was not used anyway.
32712 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32714 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
32715 `unused parameter' warning.
32717 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32719 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
32721 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
32724 2005-08-28 Marco Gerards <metgerards@student.han.nl>
32726 * include/grub/normal.h (enum grub_completion_type): Added
32727 `GRUB_COMPLETION_TYPE_ARGUMENT'.
32729 * normal/cmdline.c (print_completion): Handle
32730 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
32731 * normal/menu_entry.c (store_completion): Likewise.
32733 * normal/completion.c (complete_arguments): New function.
32734 (grub_normal_do_completion): Call `complete_arguments' when the
32735 current words start with a dash.
32737 2005-08-27 Marco Gerards <metgerards@student.han.nl>
32739 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
32740 `gzio.mod' instead of `io.mod').
32742 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
32744 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
32745 (DISTDIRS): Added io and video.
32746 Rewrite the search routine to make an output consistently.
32748 * DISTLIST: Added conf/sparc64-ieee1275.mk,
32749 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
32750 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
32751 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
32752 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
32753 util/powerpc/ieee1275/misc.c.
32755 * include/grub/gzio.h: New file.
32756 * io/gzio.c: Likewise.
32758 * kern/file.c (grub_file_close): Call grub_device_close only if
32759 FILE->DEVICE is not NULL.
32761 * include/grub/mm.h [!NULL] (NULL): New macro.
32763 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
32765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
32766 (pkgdata_MODULES): Added gzio.mod.
32767 (gzio_mod_SOURCES): New variable.
32768 (gzio_mod_CFLAGS): Likewise.
32770 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
32771 (pkgdata_MODULES): Added gzio.mod.
32772 (gzio_mod_SOURCES): New variable.
32773 (gzio_mod_CFLAGS): Likewise.
32775 * commands/cat.c: Include grub/gzio.h.
32776 (grub_cmd_cat): Use grub_gzfile_open instead of
32779 * commands/cmp.c: Include grub/gzio.h.
32780 (grub_cmd_cmp): Use grub_gzfile_open instead of
32783 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
32784 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
32786 (grub_rescue_cmd_module): Likewise.
32788 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32790 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
32791 kern/sparc64/ieee1275/init.c because it contains _start.
32792 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
32794 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32796 * configure.ac: Add support for sparc64 host with ieee1275
32798 * configure: Generated from configure.ac.
32799 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
32801 (grub_ofdisk_read): Likewise.
32802 (grub_ofdisk_open): Use %p to print pointer values, and cast the
32803 pointers as (void *) to remove a warning.
32804 (grub_ofdisk_close): Likewise.
32805 (grub_ofdisk_read): Likewise.
32806 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
32807 returns, so make it return void to remove a warning.
32808 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
32809 Corresponding prototype change.
32810 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
32811 values, and cast the pointers as (void *) to remove a warning.
32812 (grub_mm_dump): Likewise.
32813 * conf/sparc64-ieee1275.mk: New file.
32814 * conf/sparc64-ieee1275.rmk: Likewise.
32815 * include/grub/sparc64/setjmp.h: Likewise.
32816 * include/grub/sparc64/types.h: Likewise.
32817 * include/grub/sparc64/ieee1275/console.h: Likewise.
32818 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32819 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32820 * include/grub/sparc64/ieee1275/time.h: Likewise.
32821 * kern/sparc64/cache.c: Likewise.
32822 * kern/sparc64/dl.c: Likewise.
32823 * kern/sparc64/ieee1275/init.c: Likewise.
32824 * kern/sparc64/ieee1275/openfw.c: Likewise.
32826 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
32828 * util/console.c (grub_ncurses_putchar): If C is greater than
32829 0x7f, set C to a question mark.
32830 (grub_ncurses_getcharwidth): New function.
32831 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
32834 * normal/menu.c (print_entry): Made aware of Unicode. First,
32835 convert TITLE to UCS-4, and predict the cursor position by
32838 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
32840 * kern/misc.c (grub_utf16_to_utf8): Likewise.
32842 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32844 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
32845 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
32848 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
32849 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
32850 grub_strcpy and grub_strlen. Take it into account that a space
32851 character is inserted as a delimiter.
32853 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32855 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
32856 invalid magic in the error.
32858 * commands/search.c: New file.
32860 * util/grub-emu.c (main): Call grub_search_init and
32863 * kern/rescue.c (grub_rescue_print_disks): Removed.
32864 (grub_rescue_print_devices): New function.
32865 (grub_rescue_cmd_ls): Use grub_device_iterate with
32866 grub_rescue_print_devices instead of grub_disk_dev_iterate with
32867 grub_rescue_print_disks.
32869 * kern/partition.c (grub_partition_iterate): Return the result of
32870 PARTMAP->ITERATE instead of GRUB_ERRNO.
32872 * kern/device.c: Include grub/partition.h.
32873 (grub_device_iterate): New function.
32875 * include/grub/partition.h (grub_partition_iterate): Return int
32876 instead of grub_err_t.
32878 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
32880 [GRUB_UTIL] (grub_search_fini): Likewise.
32882 * include/grub/device.h (grub_device_iterate): New prototype.
32884 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
32886 (pkgdata_MODULES): Added search.mod.
32887 (search_mod_SOURCES): New variable.
32888 (search_mod_CFLAGS): Likewise.
32890 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
32891 (pkgdata_MODULES): Added search.mod.
32892 (search_mod_SOURCES): New variable.
32893 (search_mod_CFLAGS): Likewise.
32895 * commands/ls.c (grub_ls_list_disks): Renamed to ...
32896 (grub_ls_list_devices): ... this, and use grub_device_iterate.
32897 All callers changed.
32899 * DISTLIST: Added commands/search.c.
32901 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32903 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
32905 (grub_getcharwidth): New function.
32907 * kern/misc.c (grub_utf8_to_ucs4): New function.
32909 * include/grub/term.h (struct grub_term): Added a new member
32911 (grub_getcharwidth): New prototype.
32913 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
32915 * term/i386/pc/console.c (map_char): New function. Segregated from
32916 grub_console_putchar.
32917 (grub_console_putchar): Use map_char.
32918 (grub_console_getcharwidth): New function.
32919 (grub_console_term): Specified grub_console_getcharwidth as
32922 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
32923 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
32925 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
32927 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
32928 on grub_strtoul completely.
32929 (write_char): Declare local variables in the beginning of the
32931 (grub_vesafb_getcharwidth): New function.
32932 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
32935 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
32937 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
32938 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
32939 commands/i386/pc/vbetest.c.
32941 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
32942 call grub_vbe_get_controller_info again, because the returned
32943 information is volatile.
32944 (grub_vbe_set_video_mode): Mostly rewritten.
32945 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
32946 grub_vbe_status_t correctly.
32947 (grub_vbe_get_video_mode_info): Likewise.
32948 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
32949 several if statements.
32951 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
32952 * commands/i386/pc/vbeinfo.c: ... this.
32954 * commands/i386/pc/vbe_test.c: Renamed to ...
32955 * commands/i386/pc/vbetest.c: ... this.
32957 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
32959 (grub_cmd_vbeinfo): ... this. Save video modes before
32960 iterating. Skip a video mode, if it is not available, not enough
32961 information is given or it is monochrome. Show the memory
32962 model. Leave the interpretation of MODEVAR to grub_strtoul
32964 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
32965 (GRUB_MOD_FINI): Likewise.
32967 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
32968 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
32969 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
32970 duplicated grub_env_get. Leave the interpretation of MODEVAR to
32971 grub_strtoul completely.
32972 (real2pm): Removed.
32973 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
32974 (GRUB_MOD_FINI): Likewise.
32976 * normal/misc.c: Include grub/mm.h.
32978 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
32979 vbe_list_modes with vbetest.mod and vbeinfo.mod.
32980 (vbe_list_modes_mod_SOURCES): Removed.
32981 (vbe_list_modes_mod_CFLAGS): Likewise.
32982 (vbe_test_mod_SOURCES): Likewise.
32983 (vbe_test_mod_CFLAGS): Likewise.
32984 (vbeinfo_mod_SOURCES): New variable.
32985 (vbeinfo_mod_CFLAGS): Likewise.
32986 (vbetest_mod_SOURCES): Likewise.
32987 (vbetest_mod_CFLAGS): Likewise.
32989 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
32991 * normal/misc.c: New file.
32993 * DISTLIST: Added normal/misc.c.
32995 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
32996 DISK to HOOK. Call HOOK with DISK.
32997 * partmap/apple.c (apple_partition_map_iterate): Likewise.
32998 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32999 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33001 * normal/menu_entry.c (struct screen): Added a new member
33002 "completion_shown".
33003 (completion_buffer): New global variable.
33004 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
33005 (store_completion): New function.
33006 (complete): Likewise.
33007 (clear_completions): Likewise.
33008 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
33009 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
33010 a tab, call complete.
33012 * normal/completion.c (disk_dev): Removed.
33013 (print_simple_completion): Likewise.
33014 (print_partition_completion): Likewise.
33015 (print_func): New global variable.
33016 (add_completion): Do not take the arguments WHAT or PRINT any
33017 longer. Added a new argument TYPE. Instead of printing directly,
33018 call PRINT_FUNC if not NULL.
33019 All callers changed.
33020 (complete_device): Use a local variable DEV instead of
33021 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
33022 (grub_normal_do_completion): Take a new argument HOOK. Do not
33023 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
33024 empty string, return NULL instead.
33025 All callers changed.
33027 * normal/cmdline.c (print_completion): New function.
33029 * kern/partition.c (grub_partition_iterate): Add an argument DISK
33031 All callers changed.
33033 * kern/disk.c (grub_print_partinfo): Removed.
33035 * include/grub/partition.h (struct grub_partition_map): Add a new
33036 argument DISK into HOOK of ITERATE.
33037 (grub_partition_iterate): Add a new argument DISK to HOOK.
33039 * include/grub/normal.h (enum grub_completion_type): New enum.
33040 (grub_completion_type_t): New type.
33041 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
33042 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
33043 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
33044 (GRUB_COMPLETION_TYPE_FILE): Likewise.
33045 (grub_normal_do_completion): Added a new argument HOOK.
33046 (grub_normal_print_device_info): New prototype.
33048 * include/grub/disk.h (grub_print_partinfo): Removed.
33050 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
33051 (normal_mod_SOURCES): Likewise.
33052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33053 (normal_mod_SOURCES): Likewise.
33055 * commands/ls.c (grub_ls_list_disks): Use
33056 grub_normal_print_device_info instead of grub_print_partinfo. Free
33058 (grub_ls_list_files): Use grub_normal_print_device_info instead of
33059 duplicating the code.
33061 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33063 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
33064 follow GCS more precisely.
33065 * commands/i386/pc/vbe_test.c: Likewise.
33066 * include/grub/i386/pc/vbe.h: Likewise.
33067 * term/i386/pc/vesafb.c: Likewise.
33068 * video/i386/pc/vbe.c: Likewise.
33070 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33072 * DISTLIST: Added term/i386/pc/vesafb.c
33073 DISTLIST: Added video/i386/pc/vbe.c
33074 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
33075 DISTLIST: Added commands/i386/pc/vbe_test.c.
33076 * commands/i386/pc/vbe_list_modes.c: New file.
33077 * commands/i386/pc/vbe_test.c: Likewise.
33078 * term/i386/pc/vesafb.c: Likewise.
33079 * video/i386/pc/vbe.c: Likewise.
33080 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
33081 (grub_vbe_probe) Added prototype.
33082 (grub_vbe_set_video_mode) Likewise.
33083 (grub_vbe_get_video_mode) Likewise.
33084 (grub_vbe_get_video_mode_info) Likewise.
33085 (grub_vbe_set_pixel_rgb) Likewise.
33086 (grub_vbe_set_pixel_index) Likewise.
33087 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
33088 (pkgdata_MODULES): Added vesafb.mod.
33089 (pkgdata_MODULES): Added vbe_list_modes.mod.
33090 (pkgdata_MODULES): Added vbe_test.mod.
33091 (vbe_mod_SOURCES): Added.
33092 (vbe_mod_CFLAGS): Likewise.
33093 (vesafb_mod_SOURCES): Likewise.
33094 (vesafb_mod_CFLAGS): Likewise.
33095 (vbe_list_modes_mod_SOURCES): Likewise.
33096 (vbe_list_modes_mod_CFLAGS): Likewise.
33097 (vbe_test_mod_SOURCES): Likewise.
33098 (vbe_test_mod_CFLAGS): Likewise.
33100 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
33102 * normal/command.c (grub_command_execute): If INTERACTIVE is
33103 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
33104 CMDLINE. Disable the pager if INTERACTIVE is true.
33105 All callers are changed.
33107 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
33108 before reading a config file.
33109 * normal/main.c (read_config_file): Even if a command is not
33110 found, register it if it is within an entry.
33112 * util/grub-emu.c: Include sys/types.h and unistd.h.
33113 (options): Added --hold.
33114 (struct arguments): Added a new member "hold".
33115 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
33117 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
33118 cleared by a debugger, if it is not zero.
33120 * include/grub/normal.h (grub_command_execute): Add an argument
33123 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
33125 * DISTLIST: Added include/grub/i386/pc/vbe.h.
33127 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
33129 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
33130 program with another one, because the old one didn't detect a bug
33131 in gcc-3.4. Always use regparm 2, because the new test is still
33132 not enough for gcc-4.0. Someone must investigate a simple test
33133 case which detects a bug in gcc-4.0.
33135 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
33137 * DISTLIST: Added normal/completion.c.
33139 * normal/completion.c: New file.
33141 * term/i386/pc/console.c (grub_console_getwh): New function.
33142 (grub_console_term): Assign grub_console_getwh to getwh.
33144 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
33145 function is defined in normal/completion.c as
33146 grub_normal_do_completion.
33147 (grub_cmdline_get): Use grub_normal_do_completion instead of
33150 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
33151 returns non-zero, otherwise return 0.
33152 (grub_partition_iterate): First, probe the partition map. Then,
33153 call ITERATE only for this partition map.
33155 * kern/misc.c (grub_strncmp): Rewritten.
33157 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
33158 returns non-zero. Otherwise return 0.
33160 * include/grub/partition.h (grub_partition_map_iterate): Return
33161 int instead of void.
33163 * include/grub/normal.h (grub_normal_do_completion): New prototype.
33165 * include/grub/misc.h (grub_strncmp): Change the type of N to
33168 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
33171 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
33172 unsigned explicitly before comparing it with I.
33174 * kern/main.c (grub_env_write_root): Add the attribute unused into
33177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33178 normal/completion.c.
33179 (normal_mod_SOURCES): Likewise.
33180 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33181 (normal_mod_SOURCES): Likewise.
33183 * normal/command.c (grub_iterate_commands): If ITERATE returns
33184 non-zero, return one immediately.
33186 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
33188 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
33189 * kern/i386/pc/startup.S: Updated Global Descriptor table's
33191 (grub_vbe_get_controller_info): New function.
33192 (grub_vbe_get_mode_info): Likewise.
33193 (grub_vbe_set_mode): Likewise.
33194 (grub_vbe_get_mode): Likewise.
33195 (grub_vbe_set_memory_window): Likewise.
33196 (grub_vbe_get_memory_window): Likewise.
33197 (grub_vbe_set_scanline_length): Likewise.
33198 (grub_vbe_get_scanline_length): Likewise.
33199 (grub_vbe_set_display_start): Likewise.
33200 (grub_vbe_get_display_start): Likewise.
33201 (grub_vbe_set_palette_data): Likewise.
33202 * include/grub/i386/pc/vbe.h: New file.
33204 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33206 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33207 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
33208 * DISTLIST: Likewise.
33209 * kern/ieee1275/of.c: Moved to ...
33210 * kern/ieee1275/ieee1275.c: ... here.
33212 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33214 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
33215 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
33216 Pass 0 as `end' parameter to grub_strtoul().
33218 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33220 * include/grub/powerpc/ieee1275/console.h: Do not include
33221 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
33223 (grub_console_cur_color): Remove i386-specific prototype.
33224 (grub_console_real_putchar): Likewise.
33225 (grub_console_checkkey): Likewise.
33226 (grub_console_getkey): Likewise.
33227 (grub_console_getxy): Likewise.
33228 (grub_console_gotoxy): Likewise.
33229 (grub_console_cls): Likewise.
33230 (grub_console_setcursor): Likewise.
33231 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
33232 Include <grub/machine/console.h>.
33233 * term/ieee1275/ofconsole.c: Likewise.
33235 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
33237 * Makefile.in (LIBLZO): New variable.
33239 * configure.ac: Check for LZO version 2.
33241 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
33242 lzo/lzo1x.h instead of lzo1x.h.
33244 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
33247 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
33248 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
33250 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
33251 copying the data from PARTITION to P.
33253 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33255 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
33256 negative, unload the module.
33258 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
33259 map is "pc_partition_map" but not "pc".
33260 (usage): Fix the description. The options are --boot-image and
33261 --core-image but not --boot-file or --core-file.
33262 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
33263 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
33266 * util/i386/pc/grub-install.in: Do not specify --boot-file or
33267 --core-file. Specify INSTALL_DEVICE as an argument.
33269 * util/console.c: Include config.h.
33270 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
33271 [HAVE_NCURSES_H]: Include ncurses.h.
33272 [HAVE_CURSES_H]: Include curses.h.
33273 [!A_NORMAL] (A_NORMAL): Defined as zero.
33274 [!A_STANDOUT] (A_STANDOUT): Likewise.
33276 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
33278 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
33280 * configure.ac: Check for curses libraries and headers.
33282 * Makefile.in (LIBCURSES): New variable.
33284 * genmk.rb (Script::rule): Set the executable bits.
33286 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
33287 name of the PC partition map is "pc_partition_map" but not "pc".
33289 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33291 * util/i386/pc/grub-install.in (grub_probefs): New variable.
33292 (modules): Likewise.
33293 (usage): Added descriptions for --modules and --grub-probefs.
33294 Handle --modules and --grub-probefs. Save the arguments in MODULES
33295 and GRUB_PROBEFS, respectively.
33296 Auto-detect a filesystem module against GRUBDIR. If the result is
33297 empty and modules are not specified explicitly, abort the
33298 installation. Add the result to MODULES.
33300 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
33301 disk/powerpc/ieee1275/ofdisk.c,
33302 include/grub/powerpc/ieee1275/init.h and
33303 term/powerpc/ieee1275/ofconsole.c.
33304 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
33305 term/ieee1275/ofconsole.c.
33307 * include/grub/powerpc/ieee1275/console.h: Resurrected.
33309 * COPYING: Upgraded to the latest version. Only the address of the
33310 FSF office has changed.
33312 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33314 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33315 kern/ieee1275.c with kern/ieee1275/of.c.
33317 * kern/ieee1275.c: Moved to ...
33318 * kern/ieee1275/of.c: ... here.
33320 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
33322 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
33325 * config.guess: Updated to the latest version from gnulib.
33326 * config.sub: Likewise.
33327 * install.sh: Likewise.
33328 * mkinstalldirs: Likewise.
33330 * include/grub/console.h: Removed. This file is arch-specific. Do
33331 not put this in include/grub.
33333 * include/grub/i386/pc/console.h: Resurrected.
33335 * util/console.c: Include grub/machine/console.h instead of
33337 * util/grub-emu.c: Likewise.
33339 2005-08-04 Marco Gerards <metgerards@student.han.nl>
33341 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
33344 From Vincent Pelletier <subdino2004@yahoo.fr>
33345 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
33346 Redefined to use grub_getwh.
33347 (grub_term): New member named getwh.
33348 (grub_getwh): New prototype.
33349 * kern/term.c (grub_getwh): New function.
33350 * term/i386/pc/console.c (grub_console_getwh): New function.
33351 (grub_console_term): New member `getwh'.
33352 * term/i386/pc/vga.c (grub_vga_getwh): New function.
33353 (grub_vga_term): New member `getwh'.
33354 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
33356 (grub_ofconsole_getw): New function.
33357 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
33358 (grub_ofconsole_term): New field named getwh and new initial
33361 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
33363 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
33364 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
33365 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
33366 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
33367 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
33368 of <grub/machine/ieee1275.h>.
33369 * commands/ieee1275/reboot.c: Likewise.
33370 * boot/powerpc/ieee1275/ieee1275.c: Move ...
33371 * kern/ieee1275.c: ... to here. All users updated. Change all
33372 parameter structs to use new type `grub_ieee1275_cell_t'.
33373 * term/powerpc/ieee1275/ofconsole.c: Move ...
33374 * term/ieee1275/ofconsole.c: ... to here. All users updated.
33375 * disk/powerpc/ieee1275/ofdisk.c: Move ...
33376 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
33377 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
33379 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
33380 Remove unused prototypes. All users updated.
33381 * include/grub/powerpc/ieee1275/console.h: Removed.
33382 * include/grub/powerpc/ieee1275/ieee1275.h: Define
33383 `grub_ieee1275_cell_t'.
33384 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
33385 Cast comparisons with -1 to the correct type.
33386 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
33387 type to match `grub_ieee1275_entry_fn'.
33389 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
33391 * DISTLIST: Added util/i386/pc/grub-probefs.c.
33393 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
33394 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
33396 (grub_probefs_SOURCES): New variable.
33398 * util/i386/pc/grub-probefs.c: New file.
33400 * util/i386/pc/grub-setup.c (main): Call
33401 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
33402 grub_hfs_init and grub_jfs_init to initialize the system. Call
33403 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
33404 grub_pc_partition_map_fini to finish the system.
33406 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
33408 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
33410 (grub_multiboot_load_elf32): Likewise.
33411 (grub_multiboot_is_elf64): Likewise.
33412 (grub_multiboot_load_elf64): Likewise.
33413 (grub_multiboot_load_elf): Likewise.
33414 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
33415 an ELF32 or ELF64 file.
33416 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
33418 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
33419 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
33420 NULL before calling FS->LABEL.
33421 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
33422 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
33423 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
33424 before calling FS->LABEL.
33426 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
33428 * util/i386/pc/grub-install.in (datadir): New variable.
33430 (pkgdatadir): New variable.
33431 (pkglibdir): Removed.
33433 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
33435 * DISTLIST: Added util/i386/pc/grub-install.in.
33437 * util/i386/pc/grub-install.in: New file.
33439 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
33440 (grub_install_SOURCES): Likewise.
33442 * genmk.rb: Added support for scripts.
33443 (Script): New class.
33444 (scripts): New variable.
33446 * Makefile.in (install-local): Install sbin_SCRIPTS by
33448 (uninstall): Remove sbin_SCRIPTS.
33450 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
33451 device, try to get a GRUB device by
33452 grub_util_biosdisk_get_grub_dev.
33455 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
33456 description for --device-map.
33458 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33460 Change the semantics of variable hooks. They now return strings
33461 instead of error values.
33463 * util/i386/pc/grub-setup.c: Include grub/env.h.
33464 (setup): Use grub_device_set_root instead of grub_env_set.
33466 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
33467 grub_env_get instead of grub_device_set_root and
33468 grub_device_get_root, respectively.
33470 * kern/main.c (grub_env_write_root): New function.
33471 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
33472 grub_env_set instead of grub_device_set_root.
33474 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
33476 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
33477 rather than calling ENV->WRITE_HOOK afterwards.
33478 (grub_env_get): Return the result of ENV->READ_HOOK rather than
33479 passing a pointer of a pointer.
33480 (grub_register_variable_hook): Change the types of "read_hook" and
33481 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
33483 Allocate the default empty string on the heap, because this string
33484 may be freed later.
33486 * kern/device.c: Include grub/env.h.
33487 (grub_device_set_root): Removed.
33488 (grub_device_get_root): Likewise.
33489 (grub_device_open): Use grub_env_get instead of
33490 grub_device_get_root.
33492 * include/grub/env.h (grub_env_read_hook_t): New type.
33493 (grub_env_write_hook_t): Likewise.
33494 (grub_env_var): Change the types of "read_hook" and "write_hook"
33495 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
33496 (grub_register_variable_hook): Likewise.
33498 * include/grub/device.h (grub_device_set_root): Removed.
33499 (grub_device_set_root): Likewise.
33501 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
33502 make sure that DIRNAME terminates with '/', so that
33503 grub_fat_find_dir will fail if PATH is not a directory.
33505 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
33507 Use the qualifier auto for print_files and print_files_long.
33508 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
33510 Put a newline only if there is no error.
33511 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
33514 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33516 * kern/partition.c (grub_partition_probe): Initialize PART to
33517 NULL. Otherwise, when no partition map is registered, this returns
33520 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
33522 * partmap/apple.c (apple_partition_map_iterate): Check if POS
33523 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
33526 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
33528 * commands/ls.c (grub_ls_list_disks): Print the filesystem
33529 information on each device, if it does not have partitions. Print
33530 "Device" instead of "Disk", because this function is not specific
33533 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
33534 static to ensure that it is put on the memory rather than a
33537 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33539 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
33540 (grub_cat_init): Likewise.
33541 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
33542 (options): Likewise.
33543 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
33544 (grub_configfile_init): Likewise.
33545 * font/manager.c (GRUB_MOD_INIT): Likewise.
33546 * commands/help.c (GRUB_MOD_INIT): Likewise.
33547 (grub_help_init): Likewise.
33548 * normal/command.c (grub_command_init): Likewise.
33549 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
33550 * disk/loopback.c (grub_loop_init): Likewise.
33551 (GRUB_MOD_INIT): Likewise.
33552 * commands/ls.c (grub_ls_init): Likewise.
33553 (GRUB_MOD_INIT): Likewise.
33554 (options): Likewise.
33555 * commands/boot.c (grub_boot_init): Likewise.
33556 (GRUB_MOD_INIT): Likewise.
33557 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
33558 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
33559 (GRUB_MOD_INIT): Likewise.
33560 * commands/cmp.c (grub_cmp_init): Likewise.
33561 (GRUB_MOD_INIT): Likewise.
33563 * normal/arg.c: Use <> instead of "" to include header files.
33564 (SHORT_ARG_HELP): New macro.
33565 (SHORT_ARG_USAGE): Likewise.
33566 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
33567 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
33569 (find_short): Check if C is 'h' or 'u' explicitly.
33570 (grub_arg_show_help): Use space characters instead of tabs. Treat
33571 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
33572 are shown with --help and --usage only if they are not used for
33573 the command itself.
33574 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
33577 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
33578 const into "longarg". Change the type of "shortarg" to int.
33580 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33582 * boot/i386/pc/boot.S (boot_drive_check): New label.
33584 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
33587 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
33588 which do not pass a boot drive correctly. Copied from GRUB Legacy.
33590 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33592 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
33593 When turning off Gate A20, skip the check and return immediately,
33594 because this is not fatal usually.
33596 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33598 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
33599 be 0x7C00 instead of 0x8000.
33601 * boot/i386/pc/pxeboot.S: Rewritten.
33603 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
33605 (gate_a20_check_state): Read a byte from 0x108000. Invert the
33608 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
33610 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
33611 robustness. This routine now supports a BIOS call and System
33612 Control Port A to modify the gate A20.
33614 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33615 Increased to 0x440.
33617 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
33619 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
33620 device path and resulting ihandle.
33621 (grub_ofdisk_close): dprintf the ihandle being closed.
33622 (grub_ofdisk_read): dprintf function parameters.
33623 * kern/mm.c (grub_mm_init_region): Likewise.
33624 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
33625 (grub_linux_boot): dprintf the Linux entry point, initrd address and
33626 size, and boot arguments.
33627 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
33628 before loading into memory.
33629 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
33630 before loading into memory.
33632 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
33634 * kern/mm.c: Added much documentation.
33635 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
33636 8, set to 5 instead of 8.
33638 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
33640 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
33642 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
33643 (grub_mkdevicemap_SOURCES): New variable.
33645 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
33646 lib/device.c of GRUB Legacy.
33648 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
33650 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
33651 instead of PATH is NULL.
33653 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
33655 * commands/cmp.c (BUFFER_SIZE): New macro.
33656 (grub_cmd_cmp): Close the right file at the right time. Compare
33657 only data just read. Don't report files of different size as
33658 identical. Dynamically allocate buffers. Move variable
33659 declarations at the beginning of function.
33661 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
33663 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
33666 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
33668 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
33669 when backspace is pressed at beginning of line.
33671 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
33673 * DISTLIST: Added genfslist.sh.
33675 * normal/main.c (fs_module_list): New variable.
33676 (autoload_fs_module): New function.
33677 (read_fs_list): Likewise.
33678 (grub_normal_execute): Call read_fs_list.
33680 * kern/fs.c (grub_fs_autoload_hook): New variable.
33681 (grub_fs_probe): Added support for auto-loading.
33683 * include/grub/normal.h (struct grub_fs_module_list): New struct.
33684 (grub_fs_module_list_t): New type.
33686 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
33687 (grub_fs_autoload_hook): New prototype.
33689 * genfslist.sh: New file.
33691 * genmk.rb: Added a rule to generate a filesystem list.
33693 2005-06-30 Marco Gerards <metgerards@student.han.nl>
33695 * configure.ac: Fix the test for cross-compiling.
33697 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
33698 define GRUB_UTIL anymore.
33700 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
33701 so this function works on other systems than just big endian.
33702 (load_modules): Likewise.
33703 (add_segments): Likewise.
33705 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
33707 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
33708 contains `l' modifier, get a long from va_arg().
33710 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
33712 * kern/mm.c (grub_free): If the next free block which is being
33713 merged is the first free block, set the first block to the block
33715 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
33717 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33719 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
33720 `grub_ieee1275_chosen'.
33722 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33724 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
33725 (grub_ieee1275_chosen): New variable.
33726 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
33728 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
33729 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33730 Rename first argument to `phandle' for consistency.
33731 (grub_ieee1275_get_property_length): Likewise.
33732 (grub_ieee1275_next_property): Likewise. Change type of first argument
33733 to grub_ieee1275_phandle_t.
33734 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
33735 Move export next to declaration.
33736 (grub_ieee1275_chosen): New variable.
33737 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
33738 Correct cosmetic typo.
33739 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
33740 `grub_ieee1275_chosen'.
33741 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
33742 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
33743 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
33744 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
33745 `grub_ieee1275_chosen'.
33747 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
33749 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
33751 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
33752 /chosen/bootargs as "variable=value" pairs.
33754 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
33756 * include/grub/misc.h (grub_dprintf): New macro.
33757 (grub_real_dprintf): New prototype.
33758 (grub_strword): Likewise.
33759 (grub_iswordseparator): Likewise.
33760 * kern/misc.c (grub_real_dprintf): New function.
33761 (grub_strword): Likewise.
33762 (grub_iswordseparator): Likewise.
33764 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
33766 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
33767 (roundup): Remove macro.
33768 (grub_ieee1275_flags): Make static.
33769 (grub_ieee1275_realmode): Remove.
33770 (grub_ieee1275_test_flag): New function.
33771 (grub_ieee1275_set_flag): Likewise.
33772 (find_options): Rename to `grub_ieee1275_find_options'; update
33773 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
33774 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
33775 (cmain): New prototype.
33776 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
33777 `grub_ieee1275_flags' directly.
33778 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
33779 machine/biosdisk.h.
33780 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
33781 Don't include grub/machine/init.h.
33782 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
33783 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
33785 (grub_ieee1275_realmode): Likewise.
33786 (grub_ieee1275_flag): New enum.
33787 (grub_ieee1275_test_flag): New prototype.
33788 (grub_ieee1275_set_flag): New prototype.
33789 * include/grub/powerpc/ieee1275/init.h: Remove file.
33790 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
33791 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
33792 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
33793 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
33795 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
33796 `grub_ieee1275_test_flag'.
33797 (grub_ieee1275_encode_devname): Likewise.
33799 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
33801 * include/grub/powerpc/ieee1275/ieee1275.h
33802 (grub_ieee1275_encode_devname): New prototype.
33803 (grub_ieee1275_get_filename): Likewise.
33804 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
33806 (grub_set_prefix): Likewise.
33807 (grub_machine_init): Call grub_set_prefix.
33808 * kern/powerpc/ieee1275/openfw.c: Fix typos.
33809 (grub_parse_type): New enum.
33810 (grub_ieee1275_get_devargs): New function.
33811 (grub_ieee1275_get_devname): Likewise.
33812 (grub_ieee1275_parse_args): Likewise.
33813 (grub_ieee1275_get_filename): Likewise.
33814 (grub_ieee1275_encode_devname): Likewise.
33816 2005-03-30 Marco Gerards <metgerards@student.han.nl>
33818 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
33819 `grub_loader_unset'.
33821 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
33823 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
33824 instead of grub_ieee1275_interpret.
33825 (grub_halt_init): New function.
33826 (grub_halt_fini): Likewise.
33827 (GRUB_MOD_INIT): Correct message grammar.
33828 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
33829 instead of grub_ieee1275_interpret.
33830 (grub_reboot_init): New function.
33831 (grub_reboot_fini): Likewise.
33832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
33833 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
33834 util/i386/pc/misc.c with commands/ieee1275/halt.c,
33835 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
33836 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
33838 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
33840 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
33842 (grub_halt): Likewise.
33843 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
33844 (cmain): Remove __attribute__((unused)).
33845 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
33846 (grub_heap_len): Likewise.
33847 (grub_machine_fini): New function.
33848 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
33849 (grub_halt): Likewise.
33850 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
33852 * util/powerpc/ieee1275/misc.c: New file.
33854 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33856 * DISTLIST: New file.
33857 * gendistlist.sh: Likewise.
33859 * Makefile.in (COMMON_DISTFILES): Removed.
33860 (BOOT_DISTFILES): Likewise.
33861 (CONF_DISTFILES): Likewise.
33862 (DISK_DISTFILES): Likewise.
33863 (FS_DISTFILES): Likewise.
33864 (INCLUDE_DISTFILES): Likewise.
33865 (KERN_DISTFILES): Likewise.
33866 (LOADER_DISTFILES): Likewise.
33867 (TERM_DISTFILES): Likewise.
33868 (UTIL_DISTFILES): Likewise.
33869 (DISTFILES): Likewise.
33870 (uninstall): Uninstall files in $(pkgdata_DATA).
33871 (DISTLIST): New target.
33872 (distdir): Use the contents of the file DISTLIST to get a list of
33875 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33877 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
33878 descriptor. This is ported from GRUB Legacy.
33880 * gencmdlist.sh: Added an extra semicolon to make it work with
33881 old sed versions. Reported by Robert Bihlmeyer
33882 <robbe@orcus.priv.at>.
33884 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
33886 Automatic loading of commands is supported.
33888 * normal/main.c (read_command_list): New function.
33889 (grub_normal_execute): Call read_command_list.
33891 * normal/command.c (grub_register_command): Return zero or CMD.
33892 Allocate CMD->NAME from the heap.
33893 Initialize CMD->MODULE_NAME to zero.
33894 Find the same name as well. If the same command is found and it is
33895 a dummy command, overwrite members. If it is not a dummy command,
33897 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
33898 (grub_command_find): If a dummy command is found, load a module
33899 and retry to find a command only once.
33901 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
33902 make sure that each command is loaded.
33904 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
33906 (struct grub_command): Remove const from the member `name'.
33907 Add a new member `module_name'.
33908 (grub_register_command): Return grub_command_t.
33910 * commands/help.c (grub_cmd_help): Call grub_command_find to make
33911 sure that each command is loaded.
33913 * genmk.rb (PModule::rule): Specify a module name without the
33914 suffix ".mod" to gencmdlist.sh.
33916 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
33918 * gencmdlist.sh: New file.
33920 * genmk.rb (PModule::rule): Generate a rule for a command list.
33922 Generate command.lst from $(COMMANDFILES).
33924 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
33925 (DATA): Added $(pkgdata_DATA).
33926 (install-local): Install files in $(pkgdata_DATA).
33928 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
33930 * term/i386/pc/vga.c (debug_command): Removed.
33931 (GRUB_MOD_INIT): Do not register the command "debug".
33933 From Hollis Blanchard:
33934 * commands/configfile.c: New file.
33935 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
33936 commands/configfile.c.
33937 (pkgdata_MODULES): Added configfile.mod.
33938 (configfile_mod_SOURCES): New variable.
33939 (configfile_mod_CFLAGS): Likewise.
33940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33941 commands/configfile.c.
33942 (pkgdata_MODULES): Added configfile.mod.
33943 (configfile_mod_SOURCES): New variable.
33944 (configfile_mod_CFLAGS): Likewise.
33945 * util/grub-emu.c (main): Call grub_configfile_init and
33946 grub_configfile_fini.
33947 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
33949 [GRUB_UTIL] (grub_configfile_fini): Likewise.
33951 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
33953 * normal/arg.c (grub_arg_show_help): Do not show the bug report
33956 * commands/help.c (grub_cmd_help): Do not print newlines after
33957 the last command in print_command_help.
33959 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
33961 * commands/default.h: New file.
33962 * commands/timeout.h: Likewise.
33963 * normal/context.c: Likewise.
33965 * util/misc.c: Do not include sys/times.h.
33966 Include sys/time.h and grub/machine/time.h.
33967 (grub_get_rtc): Rewritten with gettimeofday.
33969 * util/grub-emu.c (main): Call grub_default_init and
33970 grub_timeout_init before grub_normal_init, and call
33971 grub_timeout_fini and grub_default_fini after grub_main.
33973 * util/console.c (grub_ncurses_checkkey): Return the read
33976 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
33979 * normal/main.c (read_config_file): Push MENU. If this fails,
33980 print an error and wait for a user input.
33981 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
33982 If a menu is empty or an error occurs, pop MENU.
33983 (grub_normal_execute): Pop and free MENU after grub_menu_run
33986 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
33988 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
33990 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
33992 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
33994 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
33997 * include/grub/normal.h (struct grub_menu_list): New struct.
33998 (grub_menu_list_t): New type.
33999 (struct grub_context): New struct.
34000 (grub_context_t): New type.
34001 (grub_register_command): Got rid of EXPORT_FUNC.
34002 (grub_unregister_command): Likewise.
34003 (grub_context_get): New prototype.
34004 (grub_context_get_current_menu): Likewise.
34005 (grub_context_push_menu): Likewise.
34006 (grub_context_pop_menu): Likewise.
34007 [GRUB_UTIL] (grub_default_init): Likewise.
34008 [GRUB_UTIL] (grub_default_fini): Likewise.
34009 [GRUB_UTIL] (grub_timeout_init): Likewise.
34010 [GRUB_UTIL] (grub_timeout_fini): Likewise.
34012 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
34013 commands/timeout.c and normal/context.c.
34014 (pkgdata_MODULES): Added default.mod and timeout.mod.
34015 (normal_mod_SOURCES): Added normal/context.c.
34016 (default_mod_SOURCES): New variable.
34017 (default_mod_CFLAGS): Likewise.
34018 (timeout_mod_SOURCES): Likewise.
34019 (timeout_mod_CFLAGS): Likewise.
34020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
34022 (pkgdata_MODULES): Added default.mod and timeout.mod.
34023 (normal_mod_SOURCES): Added normal/context.c.
34024 (default_mod_SOURCES): New variable.
34025 (default_mod_CFLAGS): Likewise.
34026 (timeout_mod_SOURCES): Likewise.
34027 (timeout_mod_CFLAGS): Likewise.
34029 * Makefile.in (all-local): Added $(MKFILES).
34031 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
34033 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
34034 (grub_emu_SOURCES): Likewise.
34035 (pkgdata_MODULES): Add `sun.mod'.
34036 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34039 (pkgdata_MODULES): Add `sun.mod'.
34040 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34041 * include/grub/partition.h (grub_sun_partition_map_init): New
34043 (grub_sun_partition_map_fini): Likewise.
34044 * partmap/sun.c: New file.
34045 * util/grub-emu.c (main): Initialize and de-initialize the sun
34046 partitionmap support.
34048 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
34050 This implements an Emacs-like menu entry editor.
34052 * normal/menu_entry.c: New file.
34054 * util/console.c (grub_ncurses_putchar): Translate some Unicode
34055 characters to ASCII.
34056 (saved_char): New variable.
34057 (grub_ncurses_checkkey): Rewritten completely.
34058 (grub_ncurses_getkey): Likewise.
34059 (grub_ncurses_init): Call raw instead of cbreak.
34061 * normal/menu.c (print_entry): Do not put a space.
34062 (init_page): Renamed to ...
34063 (grub_menu_init_page): ... this. All callers changed.
34064 (edit_menu_entry): Removed.
34065 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
34067 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
34069 * kern/misc.c (grub_vprintf): Call grub_refresh.
34071 * normal/menu.c (DISP_LEFT): Renamed to ...
34072 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
34073 * normal/menu.c (DISP_UP): Renamed to ...
34074 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
34075 * normal/menu.c (DISP_RIGHT): Renamed to ...
34076 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
34077 * normal/menu.c (DISP_DOWN): Renamed to ...
34078 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
34079 * normal/menu.c (DISP_HLINE): Renamed to ...
34080 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
34081 * normal/menu.c (DISP_VLINE): Renamed to ...
34082 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
34083 * normal/menu.c (DISP_UL): Renamed to ...
34084 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
34085 * normal/menu.c (DISP_UR): Renamed to ...
34086 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
34087 * normal/menu.c (DISP_LL): Renamed to ...
34088 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
34089 * normal/menu.c (DISP_LR): Renamed to ...
34090 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
34091 * normal/menu.c (TERM_WIDTH): Renamed to ...
34092 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
34093 * normal/menu.c (TERM_HEIGHT): Renamed to ...
34094 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
34095 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
34096 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
34097 * normal/menu.c (TERM_MARGIN): Renamed to ...
34098 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
34099 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
34100 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
34101 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
34102 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
34103 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
34104 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
34105 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
34106 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
34107 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
34108 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
34109 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
34110 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
34111 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
34112 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
34113 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
34114 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
34115 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
34116 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
34117 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
34118 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
34119 All callers changed.
34121 * include/grub/normal.h: New prototype.
34123 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34124 normal/menu_entry.c.
34125 (normal_mod_SOURCES): Likewise.
34126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34127 (normal_mod_SOURCES): Likewise.
34129 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
34131 * include/grub/normal.h (grub_halt_init): New prototype.
34132 (grub_halt_fini): Likewise.
34133 (grub_reboot_init): Likewise.
34134 (grub_reboot_fini): Likewise.
34136 * util/grub-emu.c: Include signal.h.
34137 (main_env): New global variable.
34138 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
34140 (grub_machine_fini): New function.
34141 (main): Call grub_halt_init and grub_reboot_init before
34142 grub_main, and grub_reboot_fini and grub_halt_fini after it.
34143 Call setjmp with MAIN_ENV to go back afterwards.
34144 Call grub_machine_fini right before return.
34146 * include/grub/util/misc.h: Include setjmp.h.
34147 (main_env): New prototype.
34149 * include/grub/kernel.h (grub_machine_fini): New prototype.
34150 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
34151 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
34153 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
34154 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
34155 * term/i386/pc/console.c (grub_console_fini): Likewise.
34157 * util/i386/pc/misc.c: New file.
34159 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34160 util/i386/pc/misc.c, commands/i386/pc/halt.c and
34161 commands/i386/pc/reboot.c.
34163 2005-02-14 Guillem Jover <guillem@hadrons.org>
34165 * include/grub/dl.h (grub_dl_check_header): New prototype.
34166 (grub_arch_dl_check_header): Change return type to grub_err_t,
34167 remove size parameter and export function. Update all callers.
34168 * kern/dl.c (grub_dl_check_header): New function.
34169 (grub_dl_load_core): Use `grub_dl_check_header' instead of
34170 `grub_arch_dl_check_header'. Check ELF type. Check if sections
34171 are inside the core.
34172 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
34173 independent ELF header checks.
34174 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34175 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
34176 `grub_dl_check_header' instead of explicit checks. Check for the
34178 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
34179 `grub_dl_check_header' instead of explicit checks. Remove arch
34180 specific ELF header checks.
34182 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
34185 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
34187 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
34188 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
34190 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
34192 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
34193 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
34194 (part_map_iterate): Clear `grub_errno' and return 0 if
34195 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
34196 * partmap/amiga.c (amiga_partition_map_iterate): Return
34197 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
34198 * partmap/apple.c (apple_partition_map_iterate): Likewise.
34200 2005-02-01 Guillem Jover <guillem@hadrons.org>
34202 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
34205 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34207 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
34209 (grub_rescue_cmd_linux): New prototype.
34210 (grub_rescue_cmd_initrd): Likewise.
34211 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
34213 (grub_linux_release_mem): Release the memory for the initrd.
34214 (grub_load_linux): Renamed from this...
34215 (grub_rescue_cmd_linux): ...To this. Changed all callers.
34216 Changed `entry' not to be static. Loop over memory regions to
34217 find another one when the default fails.
34218 (grub_rescue_cmd_initrd): New function.
34219 (grub_linux_init): Remove function.
34220 (grub_linux_fini): Likewise.
34221 (GRUB_MOD_INIT): Register `initrd'.
34222 (GRUB_MOD_FINI): Unregister `initrd'.
34223 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
34225 (grub_linux_normal_fini): Likewise.
34226 (GRUB_MOD_INIT): Register `initrd'.
34227 (GRUB_MOD_FINI): Unregister `initrd'.
34229 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34231 * commands/help.c: New file.
34232 * normal/arg.c (show_help): Renamed to...
34233 (grub_arg_show_help): ... this.
34234 * commands/i386/pc/halt.c: New file.
34235 * commands/i386/pc/reboot.c: Likewise.
34236 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
34237 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
34238 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
34239 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
34241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34243 (pkgdata_MODULES): Add `help.mod'.
34244 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
34245 * grub/i386/pc/init.h (grub_reboot): New prototype.
34246 (grub_halt): Likewise.
34247 * include/grub/normal.h (grub_arg_show_help): New prototype.
34248 (grub_help_init): Likewise.
34249 (grub_help_fini): Likewise.
34250 * util/grub-emu.c (main): Initialize and deinitialize the help
34253 * normal/cmdline.c (grub_cmdline_get): Doc fix.
34255 * normal/command.c (grub_command_init): Fixed the description of
34256 the `set' and `unset' commands.
34258 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34260 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
34262 * commands/ieee1275/halt.c: New file.
34263 * commands/ieee1275/reboot.c: Likewise.
34264 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
34265 `__attribute__ ((unused))'. Some GCS related fixed.
34266 (grub_suspend_init) [GRUB_UTIL]: Function removed.
34267 (grub_suspend_fini): Likewise.
34268 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
34270 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
34271 (halt_mod_CFLAGS): New variables.
34272 * include/grub/powerpc/ieee1275/ieee1275.h
34273 (grub_ieee1275_interpret): New prototype.
34275 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
34277 * include/grub/misc.h (memmove): New prototype.
34278 (memcpy): Likewise.
34280 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
34282 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
34283 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
34285 2005-01-22 Marco Gerards <metgerards@student.han.nl>
34287 * kern/misc.c (grub_strndup): Function rewritten.
34289 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
34291 * normal/menu.c (TERM_WIDTH): Macro redefined.
34292 (TERM_TOP_BORDER_Y): Likewise.
34293 (draw_border): Replaced while-loop by a for-loop. Make the number
34294 of lines consistent with the number of lines displayed in
34295 print_entries. Added a margin below the rectangle.
34296 (print_entry): Make the entry fit in the rectangle.
34297 (print_entries): Display the scroll arrows next to the right
34300 2005-01-21 Marco Gerards <metgerards@student.han.nl>
34302 * fs/minix.c (grub_minix_find_file): Reserve more space for
34303 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
34304 `grub_strncpy' to copy `path' into it.
34306 2005-01-21 Marco Gerards <metgerards@student.han.nl>
34308 Add the loopback device, a device via which files can be accessed
34311 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
34312 (pkgdata_MODULES): Add loopback.mod.
34313 (loopback_mod_SOURCES): New variable.
34314 (loopback_mod_CFLAGS): Likewise.
34315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34317 (pkgdata_MODULES): Add loopback.mod.
34318 (loopback_mod_SOURCES): New variable.
34319 (loopback_mod_CFLAGS): Likewise.
34320 * disk/loopback.c: new file.
34321 * include/grub/normal.h (grub_loop_init): New prototype.
34322 (grub_loop_fini): New prototype.
34323 * util/grub-emu.c (main): Initialize and de-initialize loopback
34325 * include/grub/disk.h (grub_disk_dev_id): Add
34326 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
34328 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
34330 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
34332 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
34333 (suspend_mod_SOURCES): New variable.
34334 (suspend_mod_CFLAGS): Likewise.
34335 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
34337 * commands/ieee1275/suspend.c: New file.
34339 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34341 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
34342 ((unused))' to `__attribute__ ((used))'.
34343 (GRUB_MOD_FINI): Likewise.
34344 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
34345 * genmk.rb (PModule): Assign space to common symbols when linking
34348 2005-01-20 Marco Gerards <metgerards@student.han.nl>
34350 * include/grub/mm.h (grub_mm_init_region): Change the type of the
34351 `unsigned' arguments to `grub_size_t'.
34352 (grub_malloc): Likewise.
34353 (grub_realloc): Likewise.
34354 (grub_memalign): Likewise.
34355 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
34356 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34357 * util/misc.c (grub_malloc): Likewise.
34358 (grub_realloc): Likewise.
34359 * kern/mm.c (get_header_from_pointer): Change the casts to
34360 `unsigned' into a cast to `grub_size_t'.
34362 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
34363 point to `currnode' when `currnode' is changed.
34365 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
34366 Schottelius <nico-linux@schottelius.org>.
34368 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
34370 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
34371 (note_path): Remove variable.
34372 (GRUB_IEEE1275_NOTE_NAME): New macro.
34373 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
34374 (grub_ieee1275_note_hdr): New structure.
34375 (grub_ieee1275_note_desc): Likewise.
34376 (grub_ieee1275_note): Likewise.
34377 (load_note): Remove `dir' argument. All callers updated. Remove
34378 `note_img' and `path'. Do not load a file from `note_path'.
34379 Initialize a struct grub_ieee1275_note and write that to `out'.
34380 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
34382 2005-01-05 Marco Gerards <metgerards@student.han.nl>
34384 * util/misc.c (grub_util_read_image): Revert last change. It
34385 called `grub_util_read_at', which seeks from the beginning of the
34388 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
34390 * TODO: Add note about endianness in grub-mkimage.
34391 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
34393 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
34394 (grub_mkimage_SOURCES): New target.
34395 * include/grub/kernel.h (grub_start_addr): Remove variable.
34396 (grub_end_addr): Likewise.
34397 (grub_total_module_size): Likewise.
34398 (grub_kernel_image_size): Likewise.
34399 (GRUB_MODULE_MAGIC): New constant.
34400 (grub_module_info): New structure.
34401 (grub_arch_modules_addr): New prototype.
34402 (grub_get_end_addr): Remove prototype.
34403 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
34404 * include/grub/powerpc/ieee1275/kernel.h: New file.
34405 * include/grub/util/misc.h (grub_util_get_fp_size): New
34407 (grub_util_read_at): Likewise.
34408 (grub_util_write_image_at): Likewise.
34409 * kern/main.c (grub_get_end_addr): Remove function.
34410 (grub_load_modules): Call grub_arch_modules_addr instead of using
34411 grub_end_addr. Look for a grub_module_info struct in memory. Use
34412 the grub_module_info fields instead of calling grub_get_end_addr
34413 as loop conditions. Move grub_add_unused_region code here.
34414 (grub_add_unused_region): Remove function.
34415 * kern/i386/pc/init.c: Include grub/cache.h.
34416 (grub_machine_init): Remove call to grub_get_end_addr. Remove
34417 one call to add_mem_region.
34418 (grub_arch_modules_addr): New function.
34419 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
34420 (grub_total_module_size): Likewise.
34421 Include grub/machine/kernel.h.
34422 (grub_arch_modules_addr): New function.
34423 * util/grub-emu.c (grub_end_addr): Remove variable.
34424 (grub_total_module_size): Likewise.
34425 (grub_arch_modules_addr): New function.
34426 * util/misc.c: Include unistd.h.
34427 (grub_util_get_fp_size): New function.
34428 (grub_util_read_at): Likewise.
34429 (grub_util_write_image_at): Likewise.
34430 (grub_util_read_image): Call grub_util_read_at.
34431 (grub_util_write_image): Call grub_util_write_image_at.
34432 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
34433 additional memory in kernel_img for a struct grub_module_info.
34434 Fill in that grub_module_info.
34435 * util/powerpc/ieee1275/grub-mkimage.c: New file.
34437 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34439 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
34441 * include/grub/powerpc/ieee1275/ieee1275.h
34442 (grub_ieee1275_milliseconds): New prototype.
34443 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
34445 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
34446 grub_ieee1275_milliseconds.
34448 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34450 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
34452 (find_options): New function.
34453 (cmain): Call find_options.
34454 * include/grub/powerpc/ieee1275/ieee1275.h
34455 (grub_ieee1275_realmode): New extern variable.
34456 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
34457 grub_map if grub_ieee1275_realmode is false.
34459 2004-12-29 Marco Gerards <metgerards@student.han.nl>
34461 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
34462 lines are inserted and make it work like readline. Reported by
34463 Vincent Pelletier <subdino2004@yahoo.fr>.
34465 2004-12-28 Marco Gerards <metgerards@student.han.nl>
34467 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
34469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
34470 `kern/powerpc/cache.S'.
34472 2004-12-27 Marco Gerards <metgerards@student.han.nl>
34474 * genmk.rb: Handle the `Program' class in the main loop. Written
34475 by Johan Rydberg <jrydberg@gnu.org>.
34476 (Program): New class.
34477 (programs): New variable.
34478 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
34479 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
34480 instead of "grub/kernel.h". Include <grub/machine/init.h>.
34481 (help_arch): Function removed.
34482 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
34483 `powerpc/libgcc.h' and `loader.h'.
34484 (pkgdata_PROGRAMS): New variable.
34485 (sbin_UTILITIES): Variable removed.
34486 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
34487 (grubof_SOURCES): Variable re-defined so it only includes the
34488 core functionality.
34489 (grubof_CFLAGS): Remove `-DGRUBOF'.
34490 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
34491 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
34492 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
34493 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
34494 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
34495 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
34496 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
34497 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
34498 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
34499 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
34500 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34501 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
34502 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
34503 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
34504 (pc_mod_CFLAGS): New variables.
34505 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
34506 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
34507 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
34508 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
34510 * include/grub/i386/pc/init.h (grub_os_area_addr)
34511 (rub_os_area_size): ... to here.
34512 * include/grub/powerpc/ieee1275/ieee1275.h
34513 (grub_ieee1275_entry_fn): Export symbol.
34514 * include/grub/powerpc/ieee1275/init.h: New file.
34515 * include/grub/powerpc/libgcc.h: Likewise.
34516 * include/grub/cache.h: Likewise.
34517 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
34518 <hollis@penguinppc.org>.
34519 * kern/dl.c: Include <grub/cache.h>.
34520 (grub_dl_flush_cache): New function.
34521 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
34523 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
34524 (grub_console_init): Removed prototypes.
34525 (grub_machine_init): Don't initialize the modules anymore.
34526 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
34528 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
34529 Macro undef removed.
34530 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
34531 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
34532 relocation `R_PPC_REL32'. Return an error when the relocation is
34534 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
34535 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
34536 * util/misc.c (grub_arch_sync_caches): Likewise.
34538 2004-12-19 Marco Gerards <metgerards@student.han.nl>
34540 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
34541 `symlist.c', add `grubof_symlist.c'.
34542 (symlist.c): Variable removed.
34543 (grubof_HEADERS): Variable added.
34544 (grubof_symlist.c): New target.
34545 (kernel_syms.lst): Use `grubof_HEADERS' instead of
34546 `kernel_img_HEADERS'.
34547 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
34548 * kern/powerpc/dl.c: New file.
34549 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
34551 (grub_arch_dl_relocate_symbols): Likewise.
34552 (grub_register_exported_symbols): Likewise.
34554 2004-12-13 Marco Gerards <metgerards@student.han.nl>
34556 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
34557 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
34558 to fail instead. Reported by Vincent Pelletier
34559 <subdino2004@yahoo.fr>.
34561 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
34562 it is not allocated. Reported by Vincent Pelletier
34563 <subdino2004@yahoo.fr>.
34565 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
34566 output so the output looks better.
34568 2004-12-04 Marco Gerards <metgerards@student.han.nl>
34570 Modulize the partition map support and add support for the amiga
34573 * commands/ls.c: Include <grub/partition.h> instead of
34574 <grub/machine/partition.h>.
34575 * kern/disk.c: Likewise.
34576 * kern/rescue.c: Likewise.
34577 * loader/i386/pc/chainloader.c: Likewise.
34578 * normal/cmdline.c: Likewise.
34579 * kern/powerpc/ieee1275/init.c: Likewise.
34580 (grub_machine_init): Call `grub_pc_partition_map_init',
34581 `grub_amiga_partition_map_init' and
34582 `grub_apple_partition_map_init'.
34583 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
34584 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
34585 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
34586 `partition.h' and `pc_partition.h'.
34587 (grub_setup_SOURCES): Remove
34588 `disk/i386/pc/partition.c'. Add `kern/partition.c',
34589 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34590 (grub_emu_SOURCES): Likewise.
34591 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
34592 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
34593 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
34594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34595 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
34596 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34597 (grubof_SOURCES): Likewise.
34598 * disk/i386/pc/partition.c: File removed.
34599 * disk/powerpc/ieee1275/partition.c: Likewise.
34600 * include/grub/powerpc/ieee1275/partition.h: Likewise.
34601 * include/grub/i386/pc/partition.h: Likewise.
34602 * kern/partition.c: New file.
34603 * partmap/amiga.c: Likewise.
34604 * partmap/apple.c: Likewise.
34605 * partmap/pc.c: Likewise.
34606 * include/grub/partition.h: Likewise..
34607 * include/grub/pc_partition.h: Likewise.
34608 * util/grub-emu.c: Include <grub/partition.h> instead of
34609 <grub/machine/partition.h>.
34610 (main): Call `grub_pc_partition_map_init',
34611 `grub_amiga_partition_map_init' and
34612 `grub_apple_partition_map_init' and deinitialize afterwards.
34613 * util/i386/pc/biosdisk.c: Include `#include
34614 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34615 `<grub/machine/partition.h>'.
34616 * util/i386/pc/grub-setup.c: Likewise.
34617 * util/i386/pc/biosdisk.c: Likewise.
34618 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
34619 partition information in case of a PC partition.
34620 * util/i386/pc/grub-setup.c: Include `#include
34621 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34622 `<grub/machine/partition.h>'.
34623 (setup): Only access the PC specific partition information in case
34626 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
34628 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
34629 (grub_longjmp): Likewise.
34630 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
34632 * normal/powerpc/setjmp.S: New file.
34633 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
34634 `normal/powerpc/setjmp.S'.
34635 (grubof_CFLAGS): Add `-DGRUBOF'.
34636 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
34637 [GRUB_UTIL && !GRUBOF].
34639 2004-11-16 Marco Gerards <metgerards@student.han.nl>
34641 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
34642 property named `name'. Correctly handle the error returned by
34643 `grub_ieee1275_finddevice' if a device can not be opened.
34645 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
34647 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
34648 `actual' for negativity.
34649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34652 2004-11-01 Marco Gerards <metgerards@student.han.nl>
34654 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
34655 (PAGE_OFFSET): New macro.
34656 (CRTC_ADDR_PORT): Likewise.
34657 (CRTC_DATA_PORT): Likewise.
34658 (START_ADDR_HIGH_REGISTER): Likewise.
34659 (START_ADDR_LOW_REGISTER): Likewise.
34660 (GRAPHICS_ADDR_PORT): Likewise.
34661 (GRAPHICS_DATA_PORT): Likewise.
34662 (READ_MAP_REGISTER): Likewise.
34663 (INPUT_STATUS1_REGISTER): Likewise.
34664 (INPUT_STATUS1_VERTR_BIT): Likewise.
34665 (page): New variable.
34666 (wait_vretrace): New function.
34667 (set_read_map): Likewise.
34668 (set_start_address): Likewise.
34669 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
34671 (check_vga_mem): Take the page into account.
34672 (write_char): Likewise.
34673 (write_cursor): Likewise.
34674 (scroll_up): Likewise. Copy the page to the page that is not
34675 shown and switch between both pages.
34676 (grub_vga_putchar): Fix off by one error.
34677 (grub_vga_cls): Wait for the vertical retrace. Take the page into
34680 2004-11-01 Marco Gerards <metgerards@student.han.nl>
34682 Add support for iso9660 (including rockridge).
34684 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34685 (iso9660_mod_SOURCES): New variable.
34686 (iso9660_mod_CFLAGS): Likewise.
34687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34688 * include/grub/fs.h (grub_iso9660_init): New prototype.
34689 * util/grub-emu.c (main): Call `grub_iso9660_init'.
34690 * fs/iso9660.c: New file.
34692 * include/grub/misc.h (grub_strncat): New prototype.
34693 * kern/misc.c (grub_strncat): New function.
34695 * fs/hfs.c (grub_hfs_mount): Translate the error
34696 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
34697 * fs/jfs.c (grub_jfs_mount): Likewise.
34698 * fs/ufs.c (grub_ufs_mount): Likewise.
34700 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
34702 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
34703 which initialized BAT registers.
34704 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
34705 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34707 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
34708 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34710 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
34711 (grub_mapclaim): Likewise.
34712 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
34713 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
34716 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
34718 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
34719 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
34720 -ffreestanding and -msoft-float.
34722 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
34724 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
34725 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
34726 set in grub_ieee1275_flags.
34728 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
34730 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
34732 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
34733 grub_console_init first.
34734 Change the memory range used for grub_ieee1275_claim and
34735 grub_mm_init_region.
34736 Print an error message if the claim fails.
34737 Include <grub/misc.h>.
34739 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
34741 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
34742 Call grub_children_iterate for device nodes of type `scsi',
34744 (grub_ofdisk_open): Remove manual device alias resolution.
34745 Fix memory leak when device cannot be opened.
34746 * include/grub/powerpc/ieee1275/ieee1275.h
34747 (grub_children_iterate): New prototype.
34748 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
34750 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34751 Return -1 if args.size was -1.
34753 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34755 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
34756 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
34757 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
34758 Open Firmware's memory for it; claim memory from _start to _end.
34759 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
34760 (_end): New extern.
34761 (_start): Zero BSS from __bss_start to _end.
34762 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
34764 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
34766 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34768 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
34769 -1 if args.base was -1.
34771 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
34773 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
34774 escape sequence instead of a literal ^L. Also call
34775 grub_ofconsole_gotoxy.
34777 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
34779 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
34780 void * arguments to grub_addr_t. All callers updated. Also make
34781 the `result' argument optional.
34782 (grub_ieee1275_release): change void * arguments to grub_addr_t.
34783 All callers updated.
34785 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
34787 * commands/ls.c (grub_ls_list_files): Use the string following the
34788 initial ')', if present, as the filesystem path.
34789 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
34791 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
34793 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
34795 Make the source code of the menu interface more readable.
34797 * normal/menu.c: Include grub/mm.h.
34798 (TERM_WIDTH): New macro.
34799 (TERM_HEIGHT): Likewise.
34800 (TERM_INFO_HEIGHT): Likewise.
34801 (TERM_MARGIN): Likewise.
34802 (TERM_SCROLL_WIDTH): Likewise.
34803 (TERM_TOP_BORDER_Y): Likewise.
34804 (TERM_LEFT_BORDER_X): Likewise.
34805 (TERM_BORDER_WIDTH): Likewise.
34806 (TERM_MESSAGE_HEIGHT): Likewise.
34807 (TERM_BORDER_HEIGHT): Likewise.
34808 (TERM_NUM_ENTRIES): Likewise.
34809 (TERM_FIRST_ENTRY_Y): Likewise.
34810 (TERM_ENTRY_WIDTH): Likewise.
34811 (TERM_CURSOR_X): Likewise.
34812 (draw_border): Use macros instead of magic numbers.
34813 (print_entry): Likewise.
34814 (print_entries): Likewise.
34815 (run_menu): Likewise. Also, handle the key 'e'.
34816 (run_menu_entry): Ignore empty command lines.
34817 (print_message): Added a new argument EDIT. If EDIT is true,
34818 print a different message.
34819 (init_page): Likewise.
34820 (edit_menu_entry): New function. Not implemented yet.
34822 2004-09-17 Marco Gerards <metgerards@student.han.nl>
34824 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
34825 can be loaded from normal mode.
34827 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
34829 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
34830 (multiboot_mod_CFLAGS): New variables.
34831 * loader/i386/pc/linux_normal.c: New file.
34832 * loader/i386/pc/multiboot_normal.c: Likewise.
34834 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
34835 attribute `unused'.
34837 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
34838 `fdiro' to read the mode information from instead of `diro'.
34840 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
34841 looking up a symlink.
34843 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
34845 * normal/command.c (grub_command_execute): Don't parse the
34846 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
34847 flags of the command.
34849 * normal/menu.c (grub_menu_run): Fix typo.
34851 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
34853 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
34855 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
34856 `y + 1' instead of `y - 1'.
34858 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
34860 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
34862 From Hollis Blanchard <hollis@penguinppc.org>:
34863 * kern/misc.c (memmove): New alias for grub_memmove.
34864 (memcmp): New alias for grub_memcmp.
34865 (memset): New alias for grub_memset.
34866 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34867 Change "int handle" to "grub_ieee1275_phandle_t handle".
34868 * include/grub/powerpc/ieee1275/ieee1275.h
34869 (grub_ieee1275_get_property): Likewise.
34871 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
34873 Added normal mode command `chainloader' as module chain.mod, which
34874 depends on normal.mod and _chain.mod.
34876 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
34877 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
34878 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
34880 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
34881 but arguments parsing moved to ...
34882 (grub_chainloader_cmd): ... here. New function.
34883 * include/grub/i386/pc/chainloader.h: New file.
34884 * loader/i386/pc/chainloader_normal.c: Likewise.
34886 2004-09-11 Marco Gerards <metgerards@student.han.nl>
34888 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
34889 (grub_mkimage_LDFLAGS): Likewise.
34890 (grub_emu_SOURCES): Likewise.
34891 (kernel_img_HEADERS): Added fshelp.h.
34892 * fs/ext2.c: Include <grub/fshelp.h>.
34893 (FILETYPE_REG): New macro.
34894 (FILETYPE_INO_REG): Likewise.
34895 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
34897 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
34899 (grub_fshelp_node): New struct.
34900 (grub_ext2_data): Added member `diropen'. Changed member `inode'
34902 (grub_ext2_get_file_block): Removed function.
34903 (grub_ext2_read_block): New function.
34904 (grub_ext2_read_file): Replaced parameter `data' by `node'.
34905 This function was written.
34906 (grub_ext2_mount): Read the root inode. Create a diropen struct.
34907 (grub_ext2_find_file): Removed function.
34908 (grub_ext2_read_symlink): New function.
34909 (grub_ext2_iterate_dir): Likewise.
34910 (grub_ext2_open): Rewritten.
34911 (grub_ext2_dir): Rewritten.
34912 * include/grub/fshelp.h: New file.
34913 * fs/fshelp.c: Likewise.
34915 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
34917 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
34918 (print_message): Add a missing newline.
34919 (run_menu): Added timeout support.
34920 (run_menu_entry): New local function.
34921 (grub_menu_run): Added support for booting.
34923 * kern/loader.c (grub_loader_is_loaded): New function.
34925 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
34926 (grub_get_rtc): Exported.
34928 * include/grub/i386/pc/time.h: Include grub/symbol.h.
34929 (grub_get_rtc): Exported.
34931 * include/grub/normal.h (struct grub_command_list): Remove
34932 constant from the member `command'.
34934 * include/grub/loader.h (grub_loader_is_loaded): Declared.
34936 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
34938 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
34940 2004-08-28 Marco Gerards <metgerards@student.han.nl>
34942 Add support for the JFS filesystem.
34944 * fs/jfs.c: New file.
34945 * include/grub/fs.h (grub_jfs_init): New prototype.
34946 (grub_jfs_fini): New prototype.
34947 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
34948 (grub_emu_SOURCES): Likewise.
34949 (pkgdata_MODULES): Add jfs.mod.
34950 (jfs_mod_SOURCES): New variable.
34951 (jfs_mod_CFLAGS): Likewise.
34952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
34953 (grubof_SOURCES): Likewise.
34954 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
34956 * fs/fat.c (grub_fat_find_dir): Convert the filename little
34957 endian to the host endian.
34958 (grub_fat_utf16_to_utf8): Move function from there...
34959 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
34960 the endianness of the source string anymore.
34961 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
34963 2004-08-24 Marco Gerards <metgerards@student.han.nl>
34965 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
34966 (grub_boot_fini) [GRUB_UTIL]: Likewise.
34967 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
34968 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
34970 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
34971 (grub_hfs_iterate_dir): Make the function static. Add prototypes
34972 for `node_found' and `it_dir'.
34973 (grub_hfs_dir): Add prototype for `dir_hook'.
34975 * fs/minix.c (grub_minix_get_file_block): Add prototype for
34976 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
34977 and `indir32' to silence a gcc warning.
34979 * include/grub/fs.h (grub_hfs_init): New prototype.
34980 (grub_hfs_fini): Likewise.
34983 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
34985 Each disk device has its own id now. This is useful to make use
34986 of multiple disk devices.
34988 * include/grub/disk.h (grub_disk_dev_id): New enum.
34989 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
34990 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
34992 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
34993 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
34995 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
34996 GRUB_DISK_DEVICE_OFDISK_ID as an id.
34998 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
34999 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35001 * include/grub/disk.h (struct grub_disk_dev): Added a new member
35002 "id" which is used by the cache manager.
35004 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
35007 2004-08-18 Marco Gerards <metgerards@student.han.nl>
35009 * fs/hfs.c: New file.
35010 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
35011 (grub_emu_SOURCES): Likewise.
35012 (pkgdata_MODULES): Add hfs.mod.
35013 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
35014 (grubof_SOURCES): Likewise.
35015 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
35017 * include/grub/misc.h (grub_strncasecmp): Add prototype.
35018 * kern/misc.c (grub_strncasecmp): Add function.
35020 2004-08-14 Marco Gerards <metgerards@student.han.nl>
35022 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
35025 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
35026 (grub_ext2_dir): In case the directory entry type is unknown, read
35029 2004-08-02 Peter Bruin <pjbruin@dds.nl>
35031 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
35032 grub_load_linux instead of grub_rescue_cmd_linux as second
35033 argument of grub_rescue_register_command.
35035 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
35037 2004-07-27 Marco Gerards <metgerards@student.han.nl>
35039 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
35041 * commands/boot.c: Remove the check for `GRUB_UTIL'.
35042 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
35043 `loader/powerpc/ieee1275/linux.c',
35044 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
35045 * include/grub/powerpc/ieee1275/ieee1275.h
35046 (grub_ieee1275_release): New prototype.
35047 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
35048 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
35049 normal, boot, linux and linux_normal.
35050 * loader/powerpc/ieee1275/linux.c: New file.
35051 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35053 2004-07-12 Marco Gerards <metgerards@student.han.nl>
35055 * normal/arg.c (grub_arg_parse): Correct error handling after
35056 reallocating the argumentlist (check if `argl' is not null instead
35057 of checking if `args' is not null).
35058 * kern/mm.c (grub_realloc): Return the same pointer when using the
35059 same region, instead of returning the header address.
35061 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35063 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
35064 one block instead of two when looking for the initial partition.
35065 (grub_partition_probe): Initialize the local variable `p' with 0.
35066 Use base 10 for the grub_strtoul call.
35067 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
35068 need for one local variable.
35069 (grub_strtoul): Don't add the new value to `num', instead of that
35072 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35074 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
35075 (pxeboot_img_SOURCES): New variable.
35076 (pxeboot_img_ASFLAGS): Likewise.
35077 (pxeboot_img_LDFLAGS): Likewise.
35078 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
35079 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
35080 <lode_leroy@hotmail.com>.
35082 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35084 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
35085 there was no input.
35087 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35089 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
35090 the history buffer logic.
35092 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35094 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
35095 (FILETYPE_INO_SYMLINK): New macros.
35096 (grub_ext2_find_file): Check if the node is a directory using the
35097 inode stat information instead of using the filetype in the
35098 dirent. Exclude the first character of an absolute symlink.
35099 (grub_ext2_dir): Mask out the filetype part of the mode member of
35102 2004-05-24 Marco Gerards <metgerards@student.han.nl>
35104 Add support for UFS version 1 and 2. Add support for the minix
35105 filesystem version 1 and 2, both the variants with 14 and 30 long
35108 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
35110 (grub_emu_SOURCES): Likewise.
35111 (pkgdata_MODULES): Add ufs.mod and minix.mod.
35112 (ufs_mod_SOURCES): New variable.
35113 (ufs_mod_CFLAGS): Likewise.
35114 (minix_mod_SOURCES): Likewise.
35115 (minix_mod_CFLAGS): Likewise.
35116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
35118 (grubof_SOURCES): Likewise.
35119 * fs/ufs.c: New file.
35120 * fs/minix.c: New file.
35121 * include/grub/fs.h (grub_ufs_init): New prototype.
35122 (grub_ufs_fini): Likewise.
35123 (grub_minix_init): Likewise.
35124 (grub_minix_fini): Likewise.
35125 * util/grub-emu.c (main): Initialize and deinitialize UFS and
35128 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
35130 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
35131 commands/ls.c, commands/terminal.c, commands/boot.c,
35132 commands/cmp.c and commands/cat.c.
35133 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
35135 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
35138 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35140 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
35141 and grub_, respectively. Because the conversion is trivial and
35142 mechanical, I omit the details here. Please refer to the CVS
35143 if you need more information.
35145 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35147 * include/pupa: Renamed to ...
35148 * include/grub: ... this.
35149 * util/i386/pc/pupa-mkimage.c: Renamed to ...
35150 * util/i386/pc/grub-mkimage.c: ... this.
35151 * util/i386/pc/pupa-setup.c: Renamed to ...
35152 * util/i386/pc/grub-setup.c: ... this.
35153 * util/pupa-emu.c: Renamed to ...
35154 * util/grub-emu.c: ... this.
35156 2004-03-29 Marco Gerards <metgerards@student.han.nl>
35158 Add support for the newworld apple macintosh (PPC). This has been
35159 tested on the powerbook 2000 only. It only adds support for
35160 generic ieee1275 functions, console and disk support. This should
35161 be easy to port to other architectures with support for Open
35164 * configure.ac: Accept the powerpc as host_cpu. In the case of
35165 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
35166 specific tests are only executed while building for the i386.
35167 Inverse test for crosscompile.
35168 * genmk.rb (Utility): Allow assembler files.
35169 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
35170 * conf/powerpc-ieee1275.rmk: New file.
35171 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
35172 * disk/powerpc/ieee1275/partition.c: Likewise.
35173 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
35174 * include/pupa/powerpc/ieee1275/console.h: Likewise.
35175 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
35176 * include/pupa/powerpc/ieee1275/time.h: Likewise.
35177 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
35178 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
35179 * include/pupa/powerpc/ieee1275/loader.h
35180 * include/pupa/powerpc/setjmp.h: Likewise.
35181 * include/pupa/powerpc/types.h: Likewise.
35182 * kern/powerpc/ieee1275/init.c: Likewise.
35183 * kern/powerpc/ieee1275/openfw.c: Likewise.
35184 * term/powerpc/ieee1275/ofconsole.c: Likewise.
35186 These files were written by Johan Rydberg
35187 (jrydberg@night.trouble.net) and I only modified them slightly.
35189 * boot/powerpc/ieee1275/cmain.c: New file.
35190 * boot/powerpc/ieee1275/crt0.S: Likewise.
35191 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
35192 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
35194 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
35196 * Makefile.in: Update copyright.
35197 * genmodsrc.sh: Likewise.
35198 * gensymlist.sh: Likewise.
35199 * term/i386/pc/vga.c: Indent correctly.
35201 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
35202 bugreporting address.
35203 * util/i386/pc/pupa-setup.c (usage): Likewise,
35204 (main): Call pupa_ext2_init and pupa_ext2_fini.
35206 * fs/fat.c (log2): Renamed to ...
35207 (fat_log2): ... this.
35208 All callers changed.
35209 * kern/misc.c (memcpy): Alias to pupa_memmove.
35210 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
35212 * util/console.c (pupa_ncurses_fini): Return 0.
35214 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
35215 Move fail label here.
35216 [__GNU__]: Don't warn when using stat.
35217 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
35218 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
35219 long int. Use strtol instead of strtoul.
35221 2004-03-14 Marco Gerards <metgerards@student.han.nl>
35223 * commands/boot.c: New file.
35224 * commands/cat.c: Likewise.
35225 * commands/cmp.c: Likewise.
35226 * commands/ls.c: Likewise.
35227 * commands/terminal.c: Likewise.
35228 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
35229 (pupa_register_command): Changed interface to match the new
35231 (pupa_command_execute): Changed (almost rewritten) so it uses
35232 pupa_split_command. Added support for setting variables using the
35234 (rescue_command): Changed to work with the new argument parser.
35235 (terminal_command): Moved from here to commands/terminal.c.
35236 (set_command): New function.
35237 (unset_command): New function.
35238 (insmod_command): New function.
35239 (rmmod_command): New function.
35240 (lsmod_command): New function.
35241 (pupa_command_init): Don't initialize the command terminal
35242 anymore. Initialize the commands set, unset, insmod, rmmod and
35244 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
35245 (kernel_img_HEADERS): Add arg.h and env.h.
35246 (pupa_mkimage_LDFLAGS): Add kern/env.c.
35247 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
35248 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
35250 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
35252 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
35253 (boot_mod_SOURCES): New variable.
35254 (terminal_mod_SOURCES): Likewise.
35255 (ls_mod_SOURCES): Likewise.
35256 (cmp_mod_SOURCES): Likewise.
35257 (cat_mod_SOURCES): Likewise.
35259 * normal/arg.c: New file.
35260 * kern/env.c: Likewise.
35261 * include/pupa/arg.h: Likewise.
35262 * include/pupa/env.h: Likewise.
35263 * font/manager.c (font_command): Changed to match argument parsing
35265 (PUPA_MOD_INIT): Likewise.
35266 * hello/hello.c (pupa_cmd_hello): Likewise.
35267 (PUPA_MOD_INIT): Likewise.
35268 * include/pupa/disk.h: Include <pupa/device.h>.
35269 (pupa_print_partinfo): New prototype.
35270 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
35271 (pupa_dl_get_prefix): Likewise.
35272 * include/pupa/misc.h: Include <pupa/err.h>.
35273 (pupa_isgraph): New prototype.
35274 (pupa_isdigit): Likewise.
35275 (pupa_split_cmdline): Likewise.
35276 * include/pupa/normal.h: Include <pupa/arg.h>.
35277 (pupa_command): Changed the prototype of the member `func' to
35278 match the argument parsing interface. Added member `options'.
35279 (pupa_register_command): Updated to match function.
35280 (pupa_arg_parse): New prototype.
35281 (pupa_hello_init) [PUPA_UTIL]: New prototype.
35282 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
35283 (pupa_ls_init) [PUPA_UTIL]: Likewise.
35284 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
35285 (pupa_cat_init) [PUPA_UTIL]: Likewise.
35286 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
35287 (pupa_boot_init) [PUPA_UTIL]: Likewise.
35288 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
35289 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
35290 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
35291 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
35292 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
35293 * kern/disk.c: Include <pupa/file.h>.
35294 (pupa_print_partinfo): New function.
35295 * kern/dl.c: Include <pupa/env.h>.
35296 (pupa_dl_dir): Variable removed.
35297 (pupa_dl_load): Use the environment variable `prefix' instead of
35298 the variable pupa_dl_dir.
35299 (pupa_dl_set_prefix): Function removed.
35300 (pupa_dl_get_prefix): Likewise.
35301 * kern/i386/pc/init.c: Include <pupa/env.h>.
35302 (pupa_machine_init): Use the environment variable `prefix' instead of
35303 using pupa_dl_set_prefix to set the prefix.
35304 * kern/main.c: Include <pupa/env.h>.
35305 (pupa_set_root_dev): Use the environment variable `prefix' instead of
35306 using pupa_dl_get_prefix to get the prefix.
35307 * kern/misc.c: Include <pupa/env.h>.
35308 (pupa_isdigit): New function.
35309 (pupa_isgraph): Likewise.
35310 (pupa_ftoa): Likewise.
35311 (pupa_vsprintf): Added support for printing values of the type
35312 `double'. Make it possible to format variable output when using
35313 formatting like `%1.2%f'.
35314 (pupa_split_cmdline): New function.
35315 * kern/rescue.c: Include <pupa/env.h>.
35316 (next_word): Removed function.
35317 (pupa_rescue_cmd_prefix): Likewise.
35318 (pupa_rescue_cmd_set): New function.
35319 (pupa_rescue_cmd_unset): New function.
35320 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
35321 split the command line instead of splitting it here. Added
35322 support for setting variables using the syntax `foo=bar'. Don't
35323 initialize the prefix command anymore. Initialized the set and
35325 * normal/cmdline.c: Include <pupa/env.h>.
35326 (pupa_tab_complete): Added prototypes for print_simple_completion,
35327 print_partition_completion, add_completion, iterate_commands,
35328 iterate_dev, iterate_part and iterate_dir. Moved code to print
35329 partition information from here to kern/disk.c.
35330 (pupa_cmdline_run): Don't check if the function exists anymore.
35331 * normal/main.c: Include <pupa/env.h>.
35332 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
35333 instead of using pupa_dl_get_prefix to get the prefix.
35334 * term/i386/pc/vga.c: Include <pupa/arg.h>.
35335 (check_vga_mem): Cast pointers to `void *' to silence a gcc
35337 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
35338 (pupa_vga_setcolor): Declare unused variables with `__attribute__
35339 ((unused))' to silence a gcc warning.
35340 (pupa_vga_setcolor): Likewise.
35341 (debug_command): Changed to match argument parsing
35343 * util/pupa-emu.c: Include <pupa/env.h>.
35344 (options): Added 0's for unused fields to silence a gcc warning.
35346 (main): Use the environment variable `prefix' instead of using
35347 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
35348 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
35351 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
35352 * util/misc.c: Include <malloc.h>.
35353 (pupa_malloc): Rewritten so errors are correctly reported.
35354 (pupa_realloc): Likewise.
35355 (pupa_memalign): Likewise.
35356 (pupa_mm_init_region): Declare unused variables with
35357 `__attribute__ ((unused))' to silence a gcc warning.
35358 * normal/i386/setjmp.S: Remove tab at the end of the file to
35359 silence a gcc warning.
35360 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
35361 variables with `__attribute__ ((unused))' to silence a gcc
35363 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
35364 local variable i unsigned to silence a gcc warning.
35366 * kern/term.c: Include <pupa/misc.h>.
35367 (pupa_more_lines): New variable.
35368 (pupa_more): Likewise.
35369 (pupa_putcode): When the pager is active pause at the end of every
35371 (pupa_set_more): New function.
35372 * include/pupa/term.h (pupa_set_more): New prototype.
35375 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
35377 Now this project is GRUB 2 rather than PUPA. The location of
35378 the CVS repository was moved to GRUB's.
35380 * configure.ac: Use bug-grub as the reporting address.
35381 Use GRUB instead of PUPA.
35382 Change the version number to 1.90.
35384 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
35386 * genkernsyms.sh: Updated copyright information.
35387 * genmk.rb: Likewise.
35388 * genmodsrc.sh: Likewise.
35389 * gensymlist.sh: Likewise.
35390 * boot/i386/pc/boot.S: Likewise.
35391 * boot/i386/pc/diskboot.S: Likewise.
35392 * disk/i386/pc/biosdisk.c: Likewise.
35393 * disk/i386/pc/partition.c: Likewise.
35394 * font/manager.c: Likewise.
35395 * fs/ext2.c: Likewise.
35396 * fs/fat.c: Likewise.
35397 * include/pupa/boot.h: Likewise.
35398 * include/pupa/device.h: Likewise.
35399 * include/pupa/disk.h: Likewise.
35400 * include/pupa/dl.h: Likewise.
35401 * include/pupa/elf.h: Likewise.
35402 * include/pupa/err.h: Likewise.
35403 * include/pupa/file.h: Likewise.
35404 * include/pupa/font.h: Likewise.
35405 * include/pupa/fs.h: Likewise.
35406 * include/pupa/kernel.h: Likewise.
35407 * include/pupa/loader.h: Likewise.
35408 * include/pupa/misc.h: Likewise.
35409 * include/pupa/mm.h: Likewise.
35410 * include/pupa/net.h: Likewise.
35411 * include/pupa/normal.h: Likewise.
35412 * include/pupa/rescue.h: Likewise.
35413 * include/pupa/setjmp.h: Likewise.
35414 * include/pupa/symbol.h: Likewise.
35415 * include/pupa/term.h: Likewise.
35416 * include/pupa/types.h: Likewise.
35417 * include/pupa/i386/setjmp.h: Likewise.
35418 * include/pupa/i386/types.h: Likewise.
35419 * include/pupa/i386/pc/biosdisk.h: Likewise.
35420 * include/pupa/i386/pc/boot.h: Likewise.
35421 * include/pupa/i386/pc/console.h: Likewise.
35422 * include/pupa/i386/pc/init.h: Likewise.
35423 * include/pupa/i386/pc/kernel.h: Likewise.
35424 * include/pupa/i386/pc/linux.h: Likewise.
35425 * include/pupa/i386/pc/loader.h: Likewise.
35426 * include/pupa/i386/pc/memory.h: Likewise.
35427 * include/pupa/i386/pc/multiboot.h: Likewise.
35428 * include/pupa/i386/pc/partition.h: Likewise.
35429 * include/pupa/i386/pc/time.h: Likewise.
35430 * include/pupa/i386/pc/vga.h: Likewise.
35431 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
35432 * include/pupa/util/getroot.h: Likewise.
35433 * include/pupa/util/misc.h: Likewise.
35434 * include/pupa/util/resolve.h: Likewise.
35435 * kern/device.c: Likewise.
35436 * kern/disk.c: Likewise.
35437 * kern/dl.c: Likewise.
35438 * kern/err.c: Likewise.
35439 * kern/file.c: Likewise.
35440 * kern/fs.c: Likewise.
35441 * kern/loader.c: Likewise.
35442 * kern/main.c: Likewise.
35443 * kern/misc.c: Likewise.
35444 * kern/mm.c: Likewise.
35445 * kern/rescue.c: Likewise.
35446 * kern/term.c: Likewise.
35447 * kern/i386/dl.c: Likewise.
35448 * kern/i386/pc/init.c: Likewise.
35449 * kern/i386/pc/lzo1x.S: Likewise.
35450 * kern/i386/pc/startup.S: Likewise.
35451 * loader/i386/pc/chainloader.c: Likewise.
35452 * loader/i386/pc/linux.c: Likewise.
35453 * loader/i386/pc/multiboot.c: Likewise.
35454 * normal/cmdline.c: Likewise.
35455 * normal/command.c: Likewise.
35456 * normal/main.c: Likewise.
35457 * normal/menu.c: Likewise.
35458 * normal/i386/setjmp.S: Likewise.
35459 * term/i386/pc/console.c: Likewise.
35460 * term/i386/pc/vga.c: Likewise.
35461 * util/console.c: Likewise.
35462 * util/genmoddep.c: Likewise.
35463 * util/misc.c: Likewise.
35464 * util/pupa-emu.c: Likewise.
35465 * util/resolve.c: Likewise.
35466 * util/unifont2pff.rb: Likewise.
35467 * util/i386/pc/biosdisk.c: Likewise.
35468 * util/i386/pc/getroot.c: Likewise.
35469 * util/i386/pc/pupa-mkimage.c: Likewise.
35470 * util/i386/pc/pupa-setup.c: Likewise.
35472 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
35474 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
35475 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
35476 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
35477 reading and reset it after reading.
35478 (pupa_ext2_close): Return PUPA_ERR_NONE.
35480 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
35482 (struct linux_kernel_header): Add kernel_version and
35484 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
35485 pupa_file_read succeeds.
35486 (pupa_rescue_cmd_initrd): Implement.
35488 2003-12-03 Marco Gerards <metgerards@student.han.nl>
35490 * fs/ext2.c (pupa_ext2_label): New function.
35491 (pupa_ext2_fs): Added label.
35492 * fs/fat.c (pupa_fat_label): New function.
35493 (pupa_fat_fs): Added label.
35494 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
35496 * kern/misc.c (pupa_strndup): New function.
35497 * include/pupa/misc.h (pupa_strndup): New prototype.
35499 * include/pupa/normal.h: Include <pupa/err.h>.
35500 (pupa_set_history): New prototype.
35501 (pupa_iterate_commands): New prototype.
35502 * normal/cmdline.c: Include <pupa/machine/partition.h>,
35503 <pupa/disk.h>, <pupa/file.h>.
35504 (hist_size): New variable.
35505 (hist_lines): Likewise.
35506 (hist_end): Likewise.
35507 (hist_used): Likewise.
35508 (pupa_set_history): New function.
35509 (pupa_history_get): Likewise.
35510 (pupa_history_add): Likewise.
35511 (pupa_history_replace): Likewise.
35512 (pupa_tab_complete): Likewise.
35513 (pupa_cmdline_run): Added tab completion and history buffer. Tab
35514 completion shows partitionnames while completing partitions, this
35515 feature was suggested by Jeff Bailey.
35516 * normal/command.c (pupa_iterate_commands): New function.
35517 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
35518 (pupa_normal_init): Initialize history buffer.
35519 (PUPA_MOD_INIT): Likewise.
35520 (pupa_normal_fini): Free the history buffer.
35521 (PUPA_MOD_FINI): Likewise.
35523 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
35526 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
35527 * configure.ac [i386]: Check for regparam bug.
35528 (NESTED_FUNC_ATTR) [! i386]: Defined.
35530 2003-11-17 Marco Gerards <metgerards@student.han.nl>
35532 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
35533 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
35534 (pupa_emu_SOURCES): New variable.
35535 (pupa_emu_LDFLAGS): Likewise.
35536 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
35537 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
35538 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
35539 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35540 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
35541 (pupa_jmp_buf): New typedef.
35542 (pupa_setjmp) [PUPA_UTIL]: New macro.
35543 (pupa_longjmp) [PUPA_UTIL]: Likewise.
35544 * include/pupa/term.h (struct pupa_term): New member `refresh'.
35545 (pupa_refresh): New prototype.
35546 * include/pupa/util/getroot.h: New file.
35547 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
35549 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
35550 (pupa_rescue_cmd_cat): Likewise.
35551 (pupa_rescue_cmd_ls): Likewise.
35552 (pupa_rescue_cmd_testload): Likewise.
35553 (pupa_rescue_cmd_lsmod): Likewise.
35554 * normal/cmdline.c (pupa_cmdline_get): Likewise.
35555 * normal/menu.c (run_menu): Likewise.
35556 * kern/term.c (pupa_cls): Likewise.
35557 (pupa_refresh): New function.
35558 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
35559 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35560 * util/console.c: New file.
35562 * util/i386/pc/getroot.c: New file.
35563 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
35564 (pupa_putchar): New function.
35565 (pupa_refresh): Likewise.
35566 (xgetcwd): Function moved to ...
35567 (strip_extra_slashes): Likewise.
35568 (get_prefix): Likewise.
35569 * util/i386/pc/getroot.c: ... here.
35570 (find_root_device): Function moved and renamed to...
35571 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
35572 Changed all callers.
35573 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
35575 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
35576 Changed all callers.
35577 * util/misc.c (pupa_memalign): New function.
35578 (pupa_mm_init_region): Likewise.
35579 (pupa_register_exported_symbols): Likewise.
35580 (pupa_putchar): Function removed.
35581 * util/pupa-emu.c: New file.
35583 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
35585 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
35586 (_multiboot_mod_SOURCES): New variable.
35587 (_multiboot_mod_CFLAGS): Likewise.
35588 * loader/i386/pc/multiboot.c: New file.
35589 * include/pupa/i386/pc/multiboot.h: Likewise.
35590 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
35591 (pupa_multiboot_real_boot): New function.
35592 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
35593 (pupa_multiboot_real_boot): New prototype.
35594 (pupa_rescue_cmd_multiboot): Likewise
35595 (pupa_rescue_cmd_module): Likewise.
35597 * kern/loader.c (pupa_loader_set): Continue when
35598 pupa_loader_unload_func() fails.
35599 (pupa_loader_unset): New function.
35600 * include/pupa/loader.h (pupa_loader_unset): New prototype.
35602 * kern/misc.c (pupa_stpcpy): New function.
35603 * include/pupa/misc.h (pupa_stpcpy): New prototype.
35605 2003-11-12 Marco Gerards <metgerards@student.han.nl>
35607 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
35608 for available extensions.
35610 * include/pupa/i386/pc/time.h: New file.
35611 * kern/disk.c: Include <pupa/machine/time.h>.
35612 (PUPA_CACHE_TIMEOUT): New macro.
35613 (pupa_last_time): New variable.
35614 (pupa_disk_open): Flush the cache when there was a timeout.
35615 (pupa_disk_close): Reset the timer.
35616 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
35618 * util/misc.c: Include <sys/times.h>
35619 (pupa_get_rtc): New function.
35621 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
35623 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
35625 (pupa_ext2_get_file_block): Use blocks member.
35627 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
35628 first block. Return -1 instead of pupa_errno on error.
35630 2003-10-27 Marco Gerards <metgerards@student.han.nl>
35632 * README: In the pupa-mkimage example use _chain instead of chain
35633 and ext2 instead of fat.
35634 * TODO: Replace ext2fs with jfs as an example. Add an item for
35635 adding journal playback for ext2fs.
35636 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
35637 (pkgdata_MODULES): Added ext2.mod.
35638 (ext2_mod_SOURCES): New variable.
35639 (ext2_mod_CFLAGS): Likewise.
35640 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
35641 * include/pupa/misc.h (pupa_strncpy): New prototype.
35642 (pupa_strcat): Likewise.
35643 (pupa_strncmp): Likewise.
35644 * kern/misc.c (pupa_strcat): Enable function.
35645 (pupa_strncpy): New function.
35646 (pupa_strncmp): Likewise.
35647 * fs/ext2.c: New file.
35649 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
35650 when the read failed before retrying.
35651 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
35652 (_FILE_OFFSET_BITS): Likewise.
35653 * configure.ac: Added AC_SYS_LARGEFILE.
35655 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35657 * genmk.rb (PModule#rule): Make sure to get only symbol names
35658 from the output of nm.
35659 Reported by Robert Millan <rmh.grub@aybabtu.com>.
35661 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35663 I forgot to check in these changes for a long time. This adds
35664 incomplete support for VGA console, and this is still very
35665 buggy. Also, a lot of consideration is required for I18N,
35666 UNICODE, and VGA font issues. Therefore, assume that this is
35667 such that "better than nothing".
35669 * font/manager.c: New file.
35670 * include/pupa/font.h: Likewise.
35671 * include/pupa/i386/pc/vga.h: Likewise.
35672 * term/i386/pc/vga.c: Likewise.
35673 * util/unifont2pff.rb: Likewise.
35675 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
35676 (pkgdata_MODULES): Added vga.mod and font.mod.
35677 (vga_mod_SOURCES): New variables.
35678 (vga_mod_CFLAGS): Likewise.
35679 (font_mod_SOURCES): Likewise.
35680 (font_mod_CFLAGS): Likewise.
35682 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
35684 * include/pupa/term.h: Include pupa/err.h.
35685 (struct pupa_term): Added init and fini.
35686 Changed the argument of putchar to pupa_uint32_t.
35688 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
35689 (pupa_console_real_putchar): New prototype.
35690 (pupa_console_putchar): Removed.
35691 (pupa_console_checkkey): Exported.
35692 (pupa_console_getkey): Likewise.
35694 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
35697 * kern/term.c (pupa_term_set_current): Rewritten.
35698 (pupa_putchar): Likewise.
35699 (pupa_putcode): New function.
35701 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
35702 (pupa_console_real_putchar): ... this.
35703 (pupa_vga_set_mode): New function.
35704 (pupa_vga_get_font): Likewise.
35706 * normal/command.c: Include pupa/term.h.
35707 (terminal_command): New function.
35708 (pupa_command_init): Register the command "terminal".
35710 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
35711 (DISP_UP): Likewise.
35712 (DISP_RIGHT): Likewise.
35713 (DISP_DOWN): Likewise.
35714 (DISP_HLINE): Likewise.
35715 (DISP_VLINE): Likewise.
35716 (DISP_UL): Likewise.
35717 (DISP_UR): Likewise.
35718 (DISP_LL): Likewise.
35719 (DISP_LR): Likewise.
35721 * term/i386/pc/console.c (pupa_console_putchar): New function.
35723 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
35725 * util/resolve.c (pupa_util_resolve_dependencies): BUG
35726 FIX. Reverse the path_list.
35728 * include/pupa/normal.h: Export pupa_register_command and
35729 pupa_unregister_command.
35731 * hello/hello.c (pupa_cmd_hello): New module.
35732 * conf/i386-pc.rmk: Added hello.mod.
35734 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
35736 * kern/i386/pc/lzo1x.S: New file.
35738 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
35739 (compress_kernel): New variable.
35740 (generate_image): Heavily modified to support compressing a
35741 large part of the core image.
35743 * util/misc.c (pupa_util_read_image): Fix a file descriptor
35745 (pupa_util_load_image): New function.
35747 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
35748 (pupa_compressed_size): New variable.
35749 (codestart): Enable Gate A20 here.
35750 Decompress the compressed part of the core image.
35751 Rearrange the code to put functions and variables which are
35752 required for initialization in the non-compressed part.
35755 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
35758 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
35760 * include/pupa/i386/pc/kernel.h
35761 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
35762 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
35763 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
35764 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
35765 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
35767 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
35769 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
35770 (Utility#rule): Likewise.
35772 * configure.ac: Check if LZO is available.
35774 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
35776 * include/pupa/normal.h: New file.
35777 * include/pupa/setjmp.h: Likewise.
35778 * include/pupa/i386/setjmp.h: Likewise.
35779 * normal/cmdline.c: Likewise.
35780 * normal/command.c: Likewise.
35781 * normal/main.c: Likewise.
35782 * normal/menu.c: Likewise.
35783 * normal/i386/setjmp.S: Likewise.
35785 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
35786 (pupa_rescue_cmd_initrd): Likewise.
35788 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
35791 * kern/i386/pc/startup.S (translation_table): New variable.
35792 (translate_keycode): New function.
35793 (pupa_console_getkey): Call translate_keycode.
35795 * kern/rescue.c (attempt_normal_mode): New function.
35796 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
35797 it failed, print a message.
35799 * kern/mm.c (pupa_real_malloc): Print more information when a
35800 free magic is broken.
35801 (pupa_free): If the first free header is not free actually, set
35804 * kern/main.c (pupa_load_normal_mode): Just load the module
35806 (pupa_main): Don't print the message
35807 "Entering into rescue mode..." here.
35809 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
35811 (pupa_rescue_cmd_initrd): Likewise.
35812 (pupa_rescue_cmd_initrd): Likewise.
35814 * include/pupa/symbol.h (FUNCTION): Specify the type.
35815 (VARIABLE): Likewise.
35817 * include/pupa/err.h (pupa_err_t): Added
35818 PUPA_ERR_UNKNOWN_COMMAND.
35820 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
35821 (pupa_dl_get_prefix): Likewise.
35823 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
35824 Added _chain.mod and _linux.mod instead of chain.mod and
35826 (chain_mod_SOURCES): Renamed to ...
35827 (_chain_mod_SOURCES): ... this.
35828 (chain_mod_CFLAGS): Renamed to ...
35829 (_chain_mod_CFLAGS): ... this.
35830 (linux_mod_SOURCES): Renamed to ...
35831 (_linux_mod_SOURCES): ... this.
35832 (linux_mod_CFLAGS): Renamed to ...
35833 (_linux_mod_CFLAGS): ... this.
35834 (normal_mod_SOURCES): New variable.
35835 (normal_mod_CFLAGS): Likewise.
35836 (normal_mod_ASFLAGS): Likewise.
35838 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
35840 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
35843 * kern/dl.c (pupa_dl_ref): Refer depending modules
35845 (pupa_dl_unref): Unrefer depending modules recursively.
35846 Don't call pupa_dl_unload implicitly, because PUPA can crash if
35847 a module is unloaded before one depending on that module is
35849 (pupa_dl_unload): Unload depending modules explicitly,
35852 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
35854 * include/pupa/i386/pc/linux.h: New file.
35855 * loader/i386/pc/linux.c: Likewise.
35857 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
35859 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
35860 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
35861 of PUPA_CHAINLOADER_BOOT_SECTOR.
35863 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
35864 (pupa_linux_prot_size): New variable.
35865 (pupa_linux_tmp_addr): Likewise.
35866 (pupa_linux_real_addr): Likewise.
35867 (pupa_linux_boot_zimage): New function.
35868 (pupa_linux_boot_bzimage): Likewise.
35870 * kern/i386/pc/init.c (struct mem_region): New structure.
35871 (MAX_REGIONS): New macro.
35872 (mem_regions): New variable.
35873 (num_regions): Likewise.
35874 (pupa_os_area_addr): Likewise.
35875 (pupa_os_area_size): Likewise.
35876 (pupa_lower_mem): Likewise.
35877 (pupa_upper_mem): Likewise.
35878 (add_mem_region): New function.
35879 (compact_mem_regions): Likewise.
35880 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
35881 the size of the conventional memory and that of so-called upper
35882 memory (before the first memory hole).
35883 Instead of adding each found region to free memory, use
35884 add_mem_region and add them after removing overlaps.
35885 Also, add only 1/4 of the upper memory to free memory. The rest
35886 is used for loading OS images. Maybe this is ad hoc, but this
35887 makes it much easier to relocate OS images when booting.
35889 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
35890 (pupa_enter_rescue_mode): Don't register initrd and module.
35892 * kern/mm.c: Include pupa/dl.h.
35894 * kern/main.c: Include pupa/file.h and pupa/device.h.
35896 * kern/loader.c (pupa_loader_load_module_func): Removed.
35897 (pupa_loader_load_module): Likewise.
35899 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
35902 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
35903 (pupa_linux_tmp_addr): Likewise.
35904 (pupa_linux_real_addr): Likewise.
35905 (pupa_linux_boot_zimage): Likewise.
35906 (pupa_linux_boot_bzimage): Likewise.
35908 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
35909 (pupa_upper_mem): Likewise.
35910 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
35911 module is too dangerous.
35913 * include/pupa/loader.h (pupa_os_area_addr): Declared.
35914 (pupa_os_area_size): Likewise.
35915 (pupa_loader_set): Remove the first argument. Loader doesn't
35916 manage modules or initrd any longer.
35917 (pupa_loader_load_module): Removed.
35919 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
35920 (linux_mod_SOURCES): New variable.
35921 (linux_mod_CFLAGS): Likewise.
35923 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
35925 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
35926 the length of a blocklist correctly.
35928 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
35929 Use ioctl only if the OS file is a block device.
35930 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
35931 not very useful for normal files.
35933 * kern/main.c (pupa_set_root_dev): New function.
35934 (pupa_load_normal_mode): Likewise.
35935 (pupa_main): Call those above.
35937 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
35940 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
35942 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
35944 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
35945 (setup): Configure the installed partition information and the
35948 * loader/i386/pc/chainloader.c (my_mod): New variable.
35949 (pupa_chainloader_unload): New function.
35950 (pupa_rescue_cmd_chainloader): Refer itself.
35951 (PUPA_MOD_INIT): Save its own module in MY_MOD.
35953 * kern/i386/pc/startup.S (install_partition): Removed.
35954 (version_string): Likewise.
35955 (config_file): Likewise.
35956 (pupa_install_dos_part): New variable.
35957 (pupa_install_bsd_part): Likewise.
35958 (pupa_prefix): Likewise.
35959 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
35961 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
35963 (make_install_device): New function.
35964 (pupa_machine_init): Set the dl prefix.
35966 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
35967 (buf): Renamed to ...
35968 (linebuf): ... this.
35969 (pupa_rescue_cmd_prefix): New function.
35970 (pupa_rescue_cmd_insmod): Likewise.
35971 (pupa_rescue_cmd_rmmod): Likewise.
35972 (pupa_rescue_cmd_lsmod): Likewise.
35973 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
35976 * kern/mm.c (pupa_memalign): If failed even after invalidating
35977 disk caches, unload unneeded modules and retry.
35979 * kern/misc.c (pupa_memmove): New function.
35980 (pupa_memcpy): Removed.
35981 (pupa_strcpy): New function.
35982 (pupa_itoa): Made static.
35984 * kern/dl.c (pupa_dl_iterate): New function.
35985 (pupa_dl_ref): Likewise.
35986 (pupa_dl_unref): Likewise.
35987 (pupa_dl_unload): Return if succeeded or not.
35988 (pupa_dl_unload_unneeded): New function.
35989 (pupa_dl_unload_all): Likewise.
35990 (pupa_dl_init): Renamed to ...
35991 (pupa_dl_set_prefix): ... this.
35992 (pupa_dl_get_prefix): New function.
35994 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
35995 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
35996 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
35997 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
35998 (pupa_install_dos_part): Declared.
35999 (pupa_install_bsd_part): Likewise.
36000 (pupa_prefix): Likewise.
36001 (pupa_boot_drive): Likewise.
36003 * include/pupa/types.h: Fix a typo.
36005 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
36007 (pupa_memmove): Declared.
36008 (pupa_strcpy): Likewise.
36010 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
36011 pupa_mod_init takes one argument, its own module.
36012 (pupa_dl_unload_unneeded): Declared.
36013 (pupa_dl_unload_all): Likewise.
36014 (pupa_dl_ref): Likewise.
36015 (pupa_dl_unref): Likewise.
36016 (pupa_dl_iterate): Likewise.
36017 (pupa_dl_init): Renamed to ...
36018 (pupa_dl_set_prefix): ... this.
36019 (pupa_dl_get_prefix): Declared.
36021 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
36022 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
36024 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
36025 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
36027 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
36028 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
36030 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36032 * util/i386/pc/pupa-setup.c (setup): Define the internal
36033 function find_first_partition_start at the top level, because GCC
36034 3.0.x cannot compile internal functions in deeper scopes
36036 (find_root_device): Use lstat instead of stat.
36037 Don't follow symbolic links.
36038 Fix the path-constructing code.
36040 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
36041 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
36042 by a BLKGETSIZE ioctl first, because block devices don't fill
36043 the member st_mode of the structure stat on Linux.
36044 [__linux__] (linux_find_partition): Use a temporary buffer
36045 REAL_DEV for the working space. Copy it to DEV before returning.
36046 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
36047 buffer cache consistent.
36048 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
36049 strncmp. The previous value was merely wrong.
36050 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
36052 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
36053 FAT size is 12. The previous value was merely wrong.
36055 * kern/main.c (pupa_main): Don't split the starting message from
36058 * kern/term.c (pupa_putchar): Put CR after LF instead of before
36059 LF, because BIOS goes crazy about character attributes in this
36062 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36064 * include/i386/pc/util/biosdisk.h: New file.
36065 * util/i386/pc/biosdisk.c: Likewise.
36066 * util/i386/pc/pupa-setup.c: Likewise.
36068 * Makefile.in (INCLUDE_DISTFILES): Added
36069 include/pupa/i386/pc/util/biosdisk.h.
36070 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
36071 directory util/i386/pc.
36072 (install-local): Added a rule for sbin_UTILITIES.
36073 (uninstall): Likewise.
36075 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
36077 * util/misc.c (xrealloc): New function.
36078 (pupa_malloc): Likewise.
36079 (pupa_free): Likewise.
36080 (pupa_realloc): Likewise.
36081 (pupa_stop): Likewise.
36082 (pupa_putchar): Likewise.
36084 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
36086 * include/pupa/util/misc.h (xrealloc): Declared.
36088 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
36090 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
36091 (PUPA_BOOT_MACHINE_BPB_END): ... this.
36093 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
36094 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36096 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
36097 way should be implemented.
36098 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36100 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
36101 the size of NAME for safety.
36102 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
36105 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
36106 (pupa_setup_SOURCES): Likewise.
36108 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
36110 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36112 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
36113 bunch of pushl's from pusha, because this destroys the return
36116 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36118 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
36119 This means that any missing prototypes could be fatal. Also, you
36120 must take care when writing assembly code. See the comments at
36121 the beginning of startup.S, for more details.
36123 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
36124 compilation mechanism.
36125 (pupa_chainloader_real_boot): Likewise.
36126 (pupa_biosdisk_rw_int13_extensions): Likewise.
36127 (pupa_biosdisk_rw_standard): Likewise.
36128 (pupa_biosdisk_check_int13_extensions): Likewise.
36129 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
36130 (pupa_biosdisk_get_diskinfo_standard): Likewise.
36131 (pupa_get_memsize): Likewise.
36132 (pupa_get_mmap_entry): Likewise.
36133 (pupa_console_putchar): Likewise.
36134 (pupa_console_setcursor): Likewise.
36135 (pupa_getrtsecs): Use pushl instead of push.
36137 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
36138 memory instead of the stack for a mmap entry, because some
36139 BIOSes may ignore the maximum size and overflow.
36141 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
36143 * genmk.rb (PModule#rule): Compile automatically generated
36144 sources with module-specific CFLAGS as well as other sources.
36146 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36148 * configure.ac: Check ld.
36149 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
36150 respectively, before checking endianness and sizes.
36152 * Makefile.in (LD): New variable.
36154 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36156 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
36158 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36160 * Changelog: New file.