1 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
6 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
7 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9 Don't stat devices unless we have to.
11 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
13 (grub_guess_root_device): Use already known os_dev if possible.
14 * grub-core/kern/emu/hostdisk.c
15 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
16 if device is known to be a dm one.
18 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
20 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
21 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
22 Reported by: Pawel Tecza.
24 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
26 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
27 (lsefisystab): Likewise.
29 (lsefimmap): Likewise.
30 (hdparm): Enable on qemu-mips.
31 (setjmp): Add ia64 nodist.
32 (serial): Simplify tags.
34 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
36 * Makefile.util.def (grub-ofpathname): Install manual page.
38 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
40 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
42 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
44 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
46 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
48 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
51 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
53 Use full 64-bit division.
55 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
56 (grub_divmod64): ... this.
57 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
60 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
62 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
65 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
67 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
68 to avoid accidents when debugging with 'sh -x'.
69 * grub-core/gensyminfo.sh.in: Likewise.
70 * tests/example_scripted_test.in: Likewise.
71 * tests/grub_cmd_regexp.in: Likewise.
72 * tests/grub_script_blanklines.in: Likewise.
73 * tests/grub_script_dollar.in: Likewise.
74 * tests/grub_script_expansion.in: Likewise.
75 * tests/grub_script_final_semicolon.in: Likewise.
76 * tests/partmap_test.in: Likewise.
77 * tests/util/grub-shell-tester.in: Likewise.
78 * tests/util/grub-shell.in: Likewise.
80 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
82 Move gfxmenu color handling to video, so that gfxterm can use it
85 * grub-core/gfxmenu/named_colors.c: Move to ...
86 * grub-core/video/colors.c: ... here. Rename
87 grub_gui_get_named_color to grub_video_get_named_color.
88 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
89 * grub-core/video/colors.c (my_isxdigit): ... here.
90 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
92 * grub-core/video/colors.c (parse_hex_color_component): ... here.
93 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
95 * grub-core/video/colors.c (grub_video_parse_color): ... here.
97 * include/grub/gui.h (grub_gui_color_t): Move to ...
98 * include/grub/video.h (grub_video_rgba_color_t): ... here.
99 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
100 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
101 * include/grub/gui.h (grub_gui_map_color): Move to ...
102 * include/grub/video.h (grub_video_map_rgba_color): ... here.
103 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
105 * include/grub/video.h (grub_video_get_named_color): ... here.
106 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
107 * include/grub/video.h (grub_video_parse_color): ... here.
109 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
111 (gfxmenu): Remove gfxmenu/named_colors.c.
112 (video) [videomodules]: Add video/colors.c.
114 Add a background_color command.
116 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
118 (GRUB_MOD_INIT): Register background_color command.
119 (GRUB_MOD_FINI): Unregister background_color command.
120 (redraw_screen_rect): Allow blend/replace of text layer to be
121 controlled independently from whether there is a background bitmap.
122 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
125 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
127 Patch BPB in ntldr and chainloader --bpb.
129 * grub-core/fs/fat.c: Include grub/fat.h.
130 (grub_fat_bpb): Moved to ...
131 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
132 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
134 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
136 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
138 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
140 (grub_chainloader_cmd): Patch BPB if --bpb is given.
141 (GRUB_MOD_INIT): Show --bpb.
142 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
143 * grub-core/normal/main.c (features): New variable.
144 (GRUB_MOD_INIT): Set feature_* variables.
145 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
147 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
149 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
151 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
154 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
156 FreeDOS direct loading support.
158 * docs/grub.texi (Supported OS): Add FreeDOS.
159 * grub-core/Makefile.core.def (freedos): New module.
160 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
162 (grub_relocator16_boot): Handle %ebx.
163 * grub-core/lib/i386/relocator16.S: Likewise.
164 * grub-core/loader/i386/pc/freedos.c: New file.
166 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
168 Long Linux command line support.
170 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
171 (maximal_cmdline_size): New variable.
172 (allocate_pages): Use maximal_cmdline_size.
173 (grub_cmd_linux): Set and use maximal_cmdline_size.
174 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
175 (allocate_pages): Use maximal_cmdline_size.
176 (grub_cmd_linux): Set and use maximal_cmdline_size.
177 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
178 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
181 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
182 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
184 Improve devmapper support
186 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
187 (grub_util_is_lvm): New function.
188 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
189 than lvm if not dmraid.
190 Handle mapped md nodes.
191 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
192 (grub_util_device_is_mapped): ... this. Make always available. All users
194 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
195 (convert_system_partition_to_system_disk): Handle lvm, mpath and
197 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
199 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
201 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
203 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
204 * grub-core/modinfo.sh.in: New file.
205 * grub-core/Makefile.core.def (modinfo.sh): New script.
206 * util/grub-mknetdir.in: Use modinfo.sh.
207 * util/grub-mkrescue.in: Likewise.
209 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
211 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
212 Fix potential usage of Elf32 instead of Elf64 when compiling on
213 32-bit architecture. Add endianness macros while on it.
215 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
217 Use mipsel- rather than mips- in directories involving mipsel ports to
218 allow both endiannesses coexist.
220 * configure.ac: proparate target_cpu=mipsel rather than resetting to
221 mips. All conditions adjusted.
222 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
224 * util/grub-install.in: Adjust conditions to take renaming into account.
225 * util/grub-mkimage.c (image_targets): Likewise. New target
226 mips-qemu_mips-elf for bigendian mips.
228 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
230 Avoid unnecessary copying on MIPS.
232 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
233 early if src == dest.
234 * util/grub-mkimage.c (generate_image): Arange for src == dest if
237 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
239 Reduce memory footprint on SGI by putting modules before the kernel
242 * grub-core/Makefile.core.def (kernel): Increase linking address.
243 (none_decompress): Likewise.
244 (xz_decompress): Likewise.
245 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
247 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
249 (grub_arch_modules_addr): New function.
250 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
251 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
252 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
254 * grub-core/kern/mips/startup.S (total_size): Rename to ...
255 (grub_total_modules_size): ... this. Make global.
256 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
257 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
259 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
260 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
261 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
262 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
263 * util/grub-mkimage.c (image_target_desc): New flag
264 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
265 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
266 (generate_image): Handle images with modules before kernel.
268 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
270 Prevent potential loss of memory map by overwrite on qemu-mips.
272 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
273 Save ram size in $s4.
274 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
275 All users changed to grub_arch_memsize.
276 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
278 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
279 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
280 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
283 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
285 * .bzrignore: Remove grub-dumpbios.
287 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
289 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
290 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
291 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
292 existing options which append).
293 * docs/grub.texi (Simple configuration): Document new options.
294 Reported by: Ian Jackson. Fixes Debian bug #617538.
296 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
298 * util/grub-fstest.c (cmd_cat): New function.
299 (fstest): Handle CMD_CAT.
301 (argp_parser): Handle cat.
303 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
305 * Makefile.util.def (grub-bin2h): Don't install.
306 * docs/man/grub-bin2h.h2m: Remove.
308 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
310 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
313 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
315 Reenable qemu-mips port.
317 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
318 Fix small arc bug while on it.
319 * gentpl.py: Handle qemu_mips.
320 * grub-core/Makefile.am: Likewise.
321 * grub-core/Makefile.core.def: Likewise.
322 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
323 inappropriate includes.
324 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
325 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
326 * grub-core/kern/main.c (grub_modules_get_end)
327 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
328 * grub-core/kern/mips/qemu-mips: Moved to ..
329 * grub-core/kern/mips/qemu_mips: ... this.
330 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
331 (grub_machine_init): Call terminfo_init and serial_init.
332 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
333 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
335 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
337 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
338 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
339 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
340 * include/grub/mips/qemu_mips/cmos.h: New file.
341 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
342 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
344 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
345 Use correct mips-style address.
346 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
347 (GRUB_TICKS_PER_SECOND): Removed.
348 (grub_get_rtc): Likewise.
349 (grub_cpu_idle): Likewise.
350 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
352 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
353 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
354 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
355 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
356 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
357 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
358 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
359 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
361 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
365 * Makefile.util.def (libgrubmods.a): Add dvh.c.
366 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
368 * configure.ac: New target mips-arc.
369 * gentpl.py: Likewise.
370 * grub-core/Makefile.am: Likewise.
371 * grub-core/Makefile.core.def: Likewise.
372 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
373 (none_decompress): Likewise.
375 (datetime): Use lib/arc/datetime.c on ARC.
376 (part_dvh): New module.
377 * grub-core/commands/arc/lsdev.c: New file.
378 * grub-core/disk/arc/arcdisk.c: Likewise.
379 * grub-core/kern/mips/arc/init.c: Likewise.
380 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
382 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
384 (grub_arch_dl_relocate_symbols): Likewise.
385 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
386 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
387 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
389 * grub-core/lib/arc/datetime.c: New file.
390 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
391 pci.h on non-loongson.
392 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
393 (grub_linux_boot): Set unused registers to 0.
394 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
395 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
396 * grub-core/mmap/mips/uppermem.c: ...here.
397 * grub-core/partmap/dvh.c: New file.
398 * grub-core/term/arc/console.c: Likewise.
399 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
400 (grub_terminfo_set_current): Add terminal "arc".
401 (grub_terminfo_readkey): Support ARC sequences.
402 * include/grub/arc/arc.h: New file.
403 * include/grub/arc/console.h: Likewise.
404 * include/grub/disk.h (grub_disk_dev_id): Add
405 GRUB_DISK_DEVICE_ARCDISK_ID.
406 * include/grub/mips/arc/kernel.h: New file.
407 * include/grub/mips/arc/memory.h: Likewise.
408 * include/grub/mips/arc/time.h: Likewise.
409 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
410 * include/grub/mips/kernel.h (grub_halt): ... here.
411 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
413 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
414 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
415 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
416 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
418 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
420 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
421 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
422 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
423 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
424 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
425 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
426 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
427 (grub_phys_addr_t): Moved from here ...
428 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
429 (grub_vtop): Moved from here ...
430 * include/grub/mips/memory.h (grub_vtop): ... here.
431 (grub_map_memory): Moved from here ...
432 * include/grub/mips/memory.h (grub_map_memory): ... here.
433 (grub_unmap_memory): Moved from here ...
434 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
435 (grub_machine_mmap_iterate): Moved from here ...
436 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
437 (grub_mmap_get_lower): Moved from here ...
438 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
439 (grub_mmap_get_upper): Moved from here ...
440 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
441 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
443 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
444 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
446 * include/grub/mips/time.h (grub_get_rtc): ... here.
447 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
449 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
450 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
452 * include/grub/mips/time.h (grub_cpu_idle): ... here.
453 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
455 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
456 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
457 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
458 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
459 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
460 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
461 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
462 (GRUB_MACHINE_LINK_ADDR): Likewise.
463 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
465 * util/grub-install.in: Run dvhtool on ARC.
466 * util/grub-mkimage.c (image_targets): Add mips-arc.
467 (generate_image): Handle ECOFF output for mips-arc.
469 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
471 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
474 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
476 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
479 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
481 Skip incorrect USB devices.
483 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
485 * include/grub/usb.h (grub_usb_err_t): New enum value
486 GRUB_USB_ERR_BADDEVICE.
488 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
490 Fuloong video init support.
492 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
494 (grub_vga_read_arx): New function.
495 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
497 (framebuffer): New members io, mmioptr and mmiobase.
498 (read_sis_cmd): New function.
499 (write_sis_cmd): Likewise.
500 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
502 * grub-core/video/sis315_init.c: New file.
504 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
506 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
508 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
509 to grub_dl_register_symbol.
511 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
513 Fix compilation errors.
515 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
517 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
518 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
519 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
520 to loongson machines.
522 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
524 Several FS mtime support.
526 * grub-core/fs/affs.c (grub_affs_time): New struct.
527 (grub_affs_file): New field mtime.
528 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
529 type. Removed 'size'. New field 'di'. All users updated.
530 (grub_affs_mount): Simplify checsum checking.
531 (grub_affs_iterate_dir): New helper grub_affs_create_node.
532 (grub_affs_dir): Handle mtime.
533 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
534 (grub_cpio_dir): Likewise.
535 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
536 (grub_hfs_filerec): New field mtime.
537 (grub_hfs_dir): Handle mtime.
538 (grub_hfs_mtime): New function.
539 (grub_hfs_fs): Register grub_hfs_mtime.
540 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
541 (grub_iso9660_dir): New field mtime.
542 (grub_fshelp_node): New field dirent.
543 (iso9660_to_unixtime): New function.
544 (iso9660_to_unixtime2): Likewise.
545 (grub_iso9660_read_symlink): Use node->dirent.
546 (grub_iso9660_iterate_dir): Likewise.
547 (grub_iso9660_dir): Set mtime.
548 (grub_iso9660_mtime): New function.
549 (grub_iso9660_fs): Register grub_iso9660_mtime.
550 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
551 (grub_jfs_inode): New fields atime, ctime and mtime.
552 (grub_jfs_dir): Set mtime.
553 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
554 * grub-core/fs/ntfs.c (list_file): Set mtime.
555 (grub_ntfs_dir): Likewise.
556 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
557 (grub_reiserfs_iterate_dir): Set mtime.
558 (grub_reiserfs_dir): Likewise.
559 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
560 (grub_fshelp_node): Likewise.
561 (grub_sfs_iterate_dir): Set mtime.
562 (grub_sfs_dir): Likewise.
563 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
564 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
565 (grub_xfs_inode): New fields atime, mtime, ctime.
566 (grub_xfs_dir): Set mtime.
567 * include/grub/datetime.h (grub_datetime2unixtime): New function.
568 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
569 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
571 Support UDF symlinks.
573 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
574 (grub_ufs_read_symlink): New function. All users updated.
576 Check amiga partmap checksum.
578 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
579 (grub_amiga_partition): Likewise.
580 (amiga_partition_map_checksum): New function.
581 (amiga_partition_map_iterate): Check checksum.
583 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
587 * Makefile.util.def (libgrubmods.a): Add romfs.
588 * grub-core/Makefile.core.def (romfs): New module.
589 * grub-core/fs/romfs.c: New file.
591 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
595 * Makefile.util.def (libgrubmods.a): Add squash4.
596 * grub-core/Makefile.core.def (squash4): New module.
597 * grub-core/fs/squash4.c: New file.
598 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
599 disk_input_start, disk_input.
600 (get_byte): Handle disk_input.
601 (grub_zlib_disk_read): New function.
602 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
604 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
605 2011-05-15 Feiran Zheng <famcool@gmail.com>
607 * Makefile.util.def (libgrubmods.a): Add minix3.
608 * grub-core/Makefile.core.def (minix3): New module.
609 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
610 (GRUB_MINIX_BSIZE): Removed.
611 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
612 (grub_minix_ino_t): New type.
613 (grub_minix_le_to_cpu_ino): New macro.
614 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
615 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
616 (grub_minix_data): New field block_size.
617 (grub_minix_read_file): Handle 64-bit correctly.
618 * grub-core/fs/minix3.c: New file.
620 2011-05-15 Tristan Gingold <gingold@free.fr>
621 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
622 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
626 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
627 * configure.ac: Add ia64-efi target.
628 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
629 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
630 * gentpl.py: Add ia64_efi platform.
631 Rename x86_efi to efi and Add ia64-efi. All users updated.
632 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
633 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
634 Remove kern/generic/rtc_get_time_ms.c on EFI.
635 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
636 kern/ia64/dl_helper.c on ia64-efi.
637 Add kern/emu/cache.c on emu.
638 (linux): Use on loader/ia64/efi/linux.c on ia64.
639 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
640 whether symbol is a function.
641 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
642 (grub_symbol): New field 'isfunc'.
643 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
644 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
645 (grub_dl_load_segments): Place all sections into the same region.
646 [__ia64__]: Create trampolines and got.
647 [GRUB_MACHINE_EMU]: Call mprotect.
648 (grub_dl_resolve_symbols): Resolve symbol type as well.
649 [__ia64__]: Create function descriptors.
650 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
651 (grub_rtc_get_time_ms): ... this. Expressions simplified.
652 (grub_get_rtc): New function.
653 * grub-core/kern/emu/cache.c [__ia64__]: New file.
654 * grub-core/kern/emu/cache.S: Renamed to ...
655 * grub-core/kern/emu/cache_s.S: ... this.
656 [__ia64__]: Add a nop.
657 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
658 [__ia64__]: New function.
659 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
660 * grub-core/kern/ia64/dl.c: New file.
661 * grub-core/kern/ia64/dl_helper.c: Likewise.
662 * grub-core/kern/ia64/efi/init.c: New file.
663 * grub-core/kern/ia64/efi/startup.S: Likewise.
664 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
665 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
666 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
667 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
668 * grub-core/loader/ia64/efi/linux.c: New file.
669 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
670 (GRUB_MOD_DEP): Likewise.
671 (grub_dl) [__ia64__]: New fields got and tramp.
672 (grub_dl): New field 'base'.
673 (grub_dl_register_symbol): New argument isfunc. All users updated.
674 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
675 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
676 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
677 (grub_ia64_dl_get_tramp_got_size): New proto.
678 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
679 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
680 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
681 * include/grub/efi/api.h: Skip call wrappers on ia64.
682 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
683 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
684 * include/grub/elf.h (ELF_ST_INFO): New definition.
685 * include/grub/ia64/efi/kernel.h: New file.
686 * include/grub/ia64/efi/memory.h: Likewise.
687 * include/grub/ia64/efi/time.h: Likewise.
688 * include/grub/ia64/kernel.h: Likewise.
689 * include/grub/ia64/setjmp.h: Likewise (from glibc).
690 * include/grub/ia64/time.h: New file.
691 * include/grub/ia64/types.h: Likewise.
692 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
693 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
695 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
696 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
697 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
698 * util/grub-mkimage.c (image_target_desc): New field pe_target.
700 (EFI64_HEADER_SIZE): New definition. All users updated.
701 (image_targets): Add ia64-efi.
702 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
703 jumpers_addr. All users updated.
704 Create function descriptors.
705 (count_funcs): New function.
706 (unaligned_uint32): New struct.
707 (MASK20): New definition.
710 (add_value_to_slot_20b): New function.
711 (add_value_to_slot_21_real): Likewise.
712 (add_value_to_slot_21): Likewise.
713 (ia64_kernel_trampoline): New struct.
714 (nopm): New variable.
716 (make_trampoline): New function.
717 (relocate_addresses): Handle ia64.
718 (make_reloc_section): Likewise.
719 (load_image): Likewise.
721 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
723 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
724 warning. Move variables before code while on it.
726 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
730 * configure.ac: Rename yeeloong platform to loongson. All users updated.
731 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
732 * grub-core/boot/mips/loongson/fuloong.S: New file.
733 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
734 Explicitly init CS5536.
735 [FULOONG]: Don't use serial until CS5536 is available.
736 Set GPIO based on dumps.
737 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
738 [FULOONG]: Handle GPIO and memory controller differences.
739 Parse machine type in $a2.
740 * grub-core/boot/mips/startup_raw.S: Determine and save the
742 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
743 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
744 init on architecture type.
745 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
746 SIS315E. Don't init at_keyboard on fuloong.
747 (grub_halt): Support Fuloong.
748 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
749 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
750 (loongson_machtypes): New array.
751 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
753 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
754 config. All users updated. Handle CS5536 serial.
755 * grub-core/term/serial.c (grub_serial_register): Conditionalise
756 default port on machine type. Register serial as inactive.
757 * grub-core/video/sis315pro.c: New file.
758 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
760 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
761 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
762 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
763 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
764 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
765 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
767 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
768 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
770 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
771 (grub_arch_machine): New extern var.
772 * include/grub/mips/loongson/serial.h
773 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
774 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
775 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
776 (GRUB_MACHINE_SERIAL_PORT0): ... this.
777 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
778 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
779 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
780 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
781 * include/grub/term.h (grub_term_register_input_inactive): New inline
783 (grub_term_register_output_inactive): Likewise.
784 * include/grub/video.h (grub_video_driver_id): New value
785 GRUB_VIDEO_DRIVER_SIS315PRO.
786 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
787 New field "names". All users updated.
788 New field value IMAGE_FULOONG_FLASH.
789 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
791 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
793 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
794 and add some clarification.
796 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
798 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
799 platforms if kernel is compressed.
801 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
803 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
804 unused modules since currently referrence counter isn't reliable and
805 there isn't much memory to recover there anyway.
807 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
809 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
810 rather than resetting it to allow modules to reference themselves
813 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
815 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
816 counter on dependencies since grub_dl_unref already handles this.
818 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
820 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
821 on error if not already done.
823 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
825 Fix few potential memory misusage.
827 * grub-core/font/font.c (load_font_index): Don't free char_index to
829 (grub_font_load): Zero-fill font at alloc for safety.
831 (free_font): Free bmp_idx.
833 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
835 * docs/grub.texi (Installation): Fix several outdated claims.
837 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
839 Handle module_license on windows.
841 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
843 (insert_string): Make argument const char * instead of char *.
844 (write_section_data): Handle long section names.
845 Handle module_license.
847 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
849 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
850 handle class-free menuentries.
851 (grub_normal_add_menu_entry): Add a check to be sure.
853 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
855 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
858 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
860 * configure.ac: Bump version to 1.99.
862 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
864 Give ATA device a bit more time on first try in order to allow disks
867 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
868 if dev->present is 1. Reset dev->present on failure.
869 (grub_ata_device_initialize): Set dev->present to 1.
870 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
871 (grub_ata_device): New member 'present'.
873 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
875 * util/grub-mkimage.c (generate_image): Update hash.
877 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
879 Flush caches on DMA memory.
881 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
882 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
883 (grub_dma_free): Likewise.
884 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
886 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
888 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
889 to avoid asm treating ld and sd as macros.
891 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
893 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
896 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
898 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
899 grub_decompress_core since later would fail if grub_decompress_core
902 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
904 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
905 R_MIPS_JALR since it's used by newer compiler.
907 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
909 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
911 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
913 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
914 file_path to 0 for surety.
915 (grub_chainloader_boot): Set exit_data to NULL.
916 Unset the loader once done.
917 (grub_cmd_chainloader): Fix confusing error message if file is empty.
919 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
921 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
922 unknown key into a dprintf.
924 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
926 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
927 on first non-existant partition.
929 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
931 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
933 Reported by: Mark Korenberg.
935 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
937 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
940 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
942 * util/grub-mkimage.c (main): Explicitely flush and sync the output
943 before closing to ensure that it will be readable by grub-setup.
945 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
947 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
948 (devpath_1): Use MAKE_PIWG_PATH.
949 (devpath_2): Likewise.
950 (devpath_3): Likewise.
951 (devpath_4): Likewise.
952 (devpath_5): Likewise.
953 (devpath_6): Likewise.
955 The appleldr.mod was checked that to be binary identical to previous
958 2011-05-05 Zach <mikezackles>
960 Support 2010 Macbooks.
962 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
963 (devs): Add devpath_6.
965 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
967 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
968 /dev/random. /dev/urandom is good enough for our purposes (salting).
970 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
972 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
974 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
976 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
979 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
981 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
982 and not 0 on failure.
984 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
986 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
987 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
988 disk; otherwise grub_fs_probe will not fall back to the next
990 (grub_pxefs_open): Likewise, for consistency.
991 Reported and tested by: Ezekiel Grave.
993 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
995 * tests/partmap_test.in: Don't hardcode path to parted.
996 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
998 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
1000 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
1001 of `ls' to find out which devices are available.
1003 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1005 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
1006 than source address for efi mmap buffer.
1008 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1010 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
1011 wrong action on non-detecting the magic.
1013 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1015 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
1016 already supplied by another part of the module (fixes compilation on
1019 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1021 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
1022 match the one used by mdadm.
1024 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1026 * po/README: Add instructions for creating po/LINGUAS.
1028 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1030 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
1033 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
1034 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
1035 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
1036 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1037 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
1038 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
1039 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
1040 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
1041 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
1042 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1043 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
1044 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
1045 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
1046 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
1047 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
1048 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
1049 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
1050 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
1051 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
1052 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
1053 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
1054 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
1056 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1058 * grub-core/kern/emu/getroot.c
1059 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
1060 test that was incorrectly reintroduced in r3214.
1061 Reported by: Ian Dall. Fixes Savannah bug #33133.
1063 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
1065 Fix stack pointer handling in 16-bit relocator.
1067 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
1068 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
1069 Fixes Ubuntu bug #683904.
1071 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1073 * configure.ac: Bump version to 1.99~rc2.
1075 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1077 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
1078 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
1079 * grub-core/lib/x86_64/setjmp.S: Likewise.
1080 * grub-core/lib/mips/setjmp.S: Likewise.
1081 * grub-core/lib/powerpc/setjmp.S: Likewise.
1082 * grub-core/lib/sparc64/setjmp.S: Likewise.
1084 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1086 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
1087 * grub-core/lib/efi/datetime.c: Likewise.
1089 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1091 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
1093 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
1094 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
1095 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
1097 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1099 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
1101 (grub_gfxterm_term_init): Likewise.
1103 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1105 Take into account the decorations the computing menu entry width.
1107 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
1108 (grub_gfxmenu_create_box): Register get_border_width.
1109 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
1111 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
1114 2011-04-18 Endres Puschner <code@e7p.de>
1116 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
1117 Don't skip first class.
1119 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1121 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
1123 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
1125 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1127 Complete 64-bit division support.
1129 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
1130 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
1131 * include/grub/misc.h (grub_divmod64): Rename to ...
1132 (grub_divmod64_full): ... this.
1133 (grub_divmod64): New inline function.
1135 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1137 * util/grub-mkimage.c (generate_image): Add forgotten comma.
1139 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1141 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
1142 performing the necessary test.
1144 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1146 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
1147 (kfreebsd.elf): Likewise.
1148 (pc-chainloader.elf): Likewise.
1149 (ntldr.elf): Likewise.
1151 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1153 Identify RAID by its UUID rather than (guessed) name.
1155 * grub-core/disk/raid.c (ascii2hex): New function.
1156 (grub_raid_open): Accept mduuid/%s specification.
1157 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
1158 (get_mdadm_uuid): ... this.
1159 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
1161 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
1163 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
1166 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1168 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
1170 * util/grub.d/20_linux_xen.in: Likewise.
1172 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
1174 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
1175 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
1177 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1178 Build a list of relevant visible mounts using the mnt_id and
1179 parent_mnt_id fields, and then scan that list at the end.
1181 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1183 * docs/grub.texi (normal): New section.
1184 (normal_exit): New section.
1185 (Embedded configuration): Add reference to normal.
1186 (GRUB only offers a rescue shell): Likewise.
1187 * docs/grub-dev.texi (Error Handling): Fix typo.
1189 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1191 * NEWS: Drop obsolete entry about probe-only btrfs support.
1193 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
1195 * util/import_gcry.py: Fix typo.
1197 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1199 * NEWS: Add btrfs support.
1201 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1202 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1204 BtrFS support. Written by me (Vladimir) with important bugfixes and
1205 even more important testing by Colin.
1207 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
1208 * grub-core/Makefile.core.def (btrfs): Add crc.c.
1209 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
1210 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
1211 mem_input_off and mem_input. All users updated to accept in-RAM input.
1212 (gzio_seek): New function.
1213 (test_zlib_header): Likewise.
1214 (grub_gzio_read): Likewise.
1215 (grub_zlib_decompress): Likewise.
1216 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
1217 Accept partial and non-virtual mounts.
1218 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
1219 avoid receiving /dev/dm-X as device.
1220 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
1221 Handle bind and partial mounts.
1222 * grub-core/lib/crc.c: New file.
1223 * include/grub/deflate.h: Likewise.
1224 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
1226 * include/grub/lib/crc.h: New file.
1228 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1230 Implement automatic module license checking according to new GNU
1233 * grub-core/kern/dl.c (grub_dl_check_license): New function.
1234 (grub_dl_load_core): Use grub_dl_check_license.
1235 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
1236 (GRUB_MOD_LICENSE): Likewise.
1237 (GRUB_MOD_DUAL_LICENSE): Likewise.
1238 All modules updated.
1240 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
1242 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
1243 reserved_first_sector to 1. btrfs reserves plenty of space for boot
1245 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
1247 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1249 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
1251 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1253 * util/grub-fstest.c (read_file): Report GRUB error if file opening
1256 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1258 * grub-core/kern/file.c (grub_file_open): Don't take into account the
1259 parenthesis in the middle of the filename.
1261 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1263 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
1264 rather than trying to put initrd way too high.
1265 Reported by: Ryan Lortie <desrt@desrt.ca>
1267 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1269 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
1270 improperly removed string.
1272 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1274 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
1276 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
1277 (open_device) Likewise.
1278 (grub_util_biosdisk_close): Likewise.
1279 Reported by: Mark Korenberg.
1281 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
1283 * util/grub-mkconfig_lib.in: Add missing quotes.
1285 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
1287 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
1290 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1292 Dynamically count the number of lines for the lower banner.
1294 * grub-core/normal/menu_entry.c (per_term_screen): New member
1296 (print_down): Use num_entries.
1297 (update_screen): Likewise.
1298 (grub_menu_entry_run): Set num_entries.
1299 * grub-core/normal/menu_text.c (menu_viewer_data): New member
1301 (grub_print_message_indented): Move real part to ...
1302 (grub_print_message_indented_real): ... here. Additional argument
1304 (draw_border): Additional argument num_entries.
1305 (print_message): Additional argument dry_run.
1306 (print_entries): Receive menu viewer data.
1307 (grub_menu_init_page): New argment num_entries.
1308 (menu_text_set_chosen_entry): Use num_entries.
1309 (grub_menu_try_text): Likewise.
1310 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
1312 (grub_ucs4_count_lines): New function.
1313 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
1314 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
1315 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
1316 (grub_term_border_height): Likewise.
1317 (grub_term_num_entries): Likewise.
1319 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1321 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
1322 Remove now unused string.
1324 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
1326 * docs/grub-dev.texi (Finding your way around): Update for 1.99
1328 (Getting started): GRUB is developed in Bazaar now, not Subversion.
1330 (Comment): Fix typo.
1331 (Getting started): General copy-editing.
1332 (Typical Development Experience): Likewise.
1333 (Error Handling): Likewise.
1334 (Video API): Likewise.
1336 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
1338 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
1341 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1343 * util/grub-mkimage.c (main): Handle special naming of yeeloong
1346 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
1348 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
1349 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
1352 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1354 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
1355 grub_strcpy since the lines aren't necessarily 0-terminated.
1357 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1359 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
1362 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1364 * grub-core/commands/probe.c (options): Argument to set isn't optional.
1365 (GRUB_MOD_INIT): DEVICE isn't optional.
1367 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1369 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
1370 word on new line if it's too long anyway. Fixes a hang.
1372 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1374 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
1376 * util/grub-setup.c (main): Reuse md device name if available.
1377 * util/raid.c (grub_util_raid_getmembers): Receive device name and
1378 not GRUB name as argument.
1379 Based on patch by: Florian Wagner <fwagner>.
1381 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1383 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
1384 Place mbi on low memory for better compatibility.
1386 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1388 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
1390 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1391 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
1393 * autogen.sh: Ensure that collate and ctype locale is C.
1394 * conf/Makefile.common: Likewise.
1396 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1398 * grub-core/normal/menu.c: Add missing include.
1400 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1402 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
1404 2011-04-08 Martin Zuther <mzuther@mzuther.de>
1406 * util/grub-mkconfig.in: Ignore emacsen backup.
1408 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1410 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
1412 (grub_util_biosdisk_close): Likewise.
1414 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1416 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
1417 const attribute and use grub_isdigit.
1419 2011-04-06 Andrey <dev_null@ukr.net>
1421 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
1424 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1426 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
1427 useful grub_dprintf's.
1429 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1431 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
1433 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1435 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
1437 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1439 Output errors if theme loading failed.
1441 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
1442 grub_gfxterm_fullscreen on error paths to ...
1443 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
1444 theme loading error.
1446 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1448 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
1449 space for older compilers.
1450 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1452 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1454 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
1455 and report them as not RAID members since they are useless for GRUB.
1456 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1458 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1460 Increase LVM implementation robustness in order not to crash on
1461 configurations like pvmove. Previously code assumed that in some places
1462 only lvs or only pvs are used whereas it seems that they are used
1465 * grub-core/disk/lvm.c (read_node): New function.
1466 (read_lv): Use read_node.
1467 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
1468 Match volumes only at the end when all lvs are found. Take both
1469 pvs (first) and lvs (second) into account.
1470 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
1471 mirror_* into node_*. All users updated.
1472 (grub_lvm_stripe): Merge this ...
1473 (grub_lvm_mirror): ... and this ...
1474 (grub_lvm_node): ... into this. All users updated.
1476 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1478 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
1479 of function to allow further scanning for LVMs.
1481 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1483 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
1484 on failed seek as it breaks open fd reusage.
1486 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1488 * util/grub-install.in: Add a recommendation to use --recheck before
1491 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1493 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
1496 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1498 GRUB developper manual based on existing Internals section and
1499 contributions by the various authors with active copyright assignment.
1501 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
1502 * docs/font_char_metrics.png: New file.
1503 * docs/font_char_metrics.txt: Likewise.
1504 * docs/grub-dev.texi: Likewise.
1505 * docs/grub.texi (Internals): Move from here ...
1506 * docs/grub-dev.texi: ... here.
1508 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1510 Store the loopback device as data on loopback grub_disk structures,
1511 rather than the file it points to. This fixes use of freed memory
1512 if an existing loopback device is replaced.
1514 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
1515 disk->data, not dev->file.
1516 (grub_loopback_read): Adjust file assignment to match.
1517 Fixes Ubuntu bug #742967.
1519 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1521 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
1522 when replacing an existing device.
1524 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
1526 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
1529 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
1531 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
1532 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
1533 (grub_jfs_read_inode): Likewise.
1534 (grub_jfs_opendir): Likewise. Remove now useless casts.
1535 (grub_jfs_getent): Likewise.
1536 Make ino a grub_uint32_t rather than int.
1537 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
1538 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
1539 division and module with bit operations.
1540 (grub_jfs_find_file): Make ino a grub_uint32_t.
1541 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
1543 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
1545 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
1546 warning. (This was in fact always initialised before use, but GCC
1547 wasn't smart enough to prove that.)
1548 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
1550 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
1554 (efi_wrap_1): Likewise.
1555 (efi_wrap_2): Likewise.
1556 (efi_wrap_3): Likewise.
1557 (efi_wrap_4): Likewise.
1558 (efi_wrap_5): Likewise.
1559 (efi_wrap_6): Likewise.
1560 (efi_wrap_10): Likewise.
1561 Based on information by: Red Hat/Peter Jones.
1563 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
1565 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
1566 set-but-not-used variable.
1568 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
1570 * docs/grub.texi (Simple configuration): Be more explicit about
1571 GRUB_DEFAULT, and add an example.
1572 Reported by: Leslie Rhorer.
1574 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1576 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
1579 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1581 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
1582 * util/grub.d/20_linux_xen.in: Likewise.
1584 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1586 * util/grub.d/10_linux.in: Try alternative config filenames where
1587 we parse config file.
1588 * util/grub.d/20_linux_xen.in: Likewise.
1590 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1592 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
1593 * util/grub.d/20_linux_xen.in: Likewise.
1595 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1597 * grub-core/disk/raid.c (insert_array): Add few potentially
1598 useful grub_util_info.
1599 (grub_raid_register): Likewise.
1601 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1603 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
1604 Preserve partition number in mdadm code path.
1606 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1608 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
1609 few potentially useful grub_util_info.
1611 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1613 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
1615 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1617 * docs/grub.texi (default): Use @example rather than nested
1618 itemized lists to avoid breaking gendocs.
1620 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1622 * docs/grub.texi (Future): Update.
1624 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1626 * docs/grub.texi (Environment): New chapter.
1627 (Changes from GRUB Legacy): Link to "Environment block" section for
1628 details of limitations.
1629 (Simple configuration): Likewise. Link to documentation of gfxmode
1630 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
1632 (Shell-like scripting): Note that normal variables are stored in the
1634 (gettext): Link to documentation of lang and locale_dir.
1635 (list_env): New section.
1636 (load_env): New section.
1637 (save_env): New section.
1639 (Reporting bugs): Fix typo.
1641 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1643 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
1646 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1648 * grub-core/term/at_keyboard.c (set_scancodes)
1649 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
1651 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1653 * docs/grub.texi (Menu-specific commands): Remove some semantics
1654 that were true in GRUB Legacy but not in GRUB 2.
1655 (submenu): New section.
1656 (false): New section.
1657 (read): New section.
1658 (true): New section.
1660 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1662 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
1664 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
1666 * docs/grub.texi (Simple configuration): Explain some of the
1667 current limitations of grub-mkconfig.
1668 Reported by: Leslie Rhorer.
1670 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1672 Old macs search for boot.efi rather than for bootia32.efi.
1674 * util/grub-install.in: Copy bootia32.efi to boot.efi.
1675 * util/grub-mkrescue.in: Likewise.
1676 Suggested by: Peter Jones.
1678 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1680 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
1682 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1684 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
1685 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
1686 (grub_lvm_mirror): New struct.
1687 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
1688 (grub_lvm_iterate): Iterate only visible volumes.
1689 (grub_lvm_read): Factor out to ..
1690 (read_lv): ... this. Support mirrors.
1691 (grub_lvm_read): New wrapper function.
1692 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
1693 stripped or mirrored.
1695 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1697 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
1699 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1701 * docs/grub.texi (loopback): New section.
1703 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1705 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
1708 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1710 * docs/grub.texi (BIOS installation): New section, partly based on
1711 previous text in other sections.
1712 (Installing GRUB using grub-install): Replace BIOS discussion with a
1716 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1718 * grub-core/kern/emu/hostdisk.c (find_partition_start)
1719 [HAVE_DIOCGDINFO]: Add safety checks.
1721 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1723 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
1724 per default compiled in kernel and prior to 8.0 isn't shipped at all.
1726 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
1728 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
1729 real_sb->size is zero (e.g. RAID-0), get the disk size from
1730 real_sb->data_size instead.
1731 Fixes Ubuntu bug #743136.
1733 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1735 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
1736 printf clauses for printing size and start.
1738 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1740 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
1741 Reported and tested by: Timothy Nikkel.
1743 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1745 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
1746 (dirty_region_add_real): ... this.
1747 (dirty_region_add): Don't discard margin refresh when performing
1750 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1752 * grub-core/lib/relocator.c (allocate_regstart)
1753 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
1754 terminals are capabple of malloc-free operation.
1755 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1756 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1758 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
1760 * util/grub-setup.c: Copy the partition table zone if floppy support
1761 is disabled, even if no partition table is found.
1763 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
1764 during POST if an invalid partition table is contained in the PBR
1765 of the active partition when GRUB is installed to a partition.
1767 2011-03-28 Colin Watson <cjwatson@debian.org>
1769 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
1772 2011-03-28 Colin Watson <cjwatson@debian.org>
1774 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
1775 to be specific about what kind of RAID device we're scanning for.
1777 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
1779 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
1780 return freed string.
1782 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1784 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
1786 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1788 Use libgeom on FreeBSD to detect partitions.
1790 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
1791 (grub-mkrelpath): Likewise.
1792 (grub-script-check): Likewise.
1793 (grub-editenv): Likewise.
1794 (grub-mkpasswd-pbkdf2): Likewise.
1795 (grub-fstest): Likewise.
1796 (grub-mkfont): Likewise.
1797 (grub-mkdevicemap): Likewise.
1798 (grub-probe): Likewise.
1799 (grub-setup): Likewise.
1800 (grub-ofpathname): Likewise.
1801 (grub-mklayout): Likewise.
1802 (example_unit_test): Likewise.
1803 (grub-menulst2cfg): Likewise.
1804 * grub-core/Makefile.core.def (grub-emu): Likewise.
1805 (grub-emu-lite): Likewise.
1806 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
1807 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
1808 define HAVE_DIOCGDINFO.
1809 (follow_geom_up) [FreeBSD]: New function.
1810 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
1811 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
1812 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
1813 unconditionally of HAVE_DIOCGDINFO.
1815 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1817 Fix FreeBSD compilation problem.
1819 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
1820 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
1822 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
1824 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
1825 Switch back to page zero before loading a kernel, since some kernel
1826 drivers expect that.
1827 Thanks to: Felix Kuehling.
1829 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1831 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
1832 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
1833 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
1835 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1837 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
1838 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
1840 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1842 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
1843 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
1846 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1848 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
1849 for modules headers when counting the needed allocation size.
1851 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1853 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
1854 if no ASCII character is found to prevent crash.
1856 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
1858 * grub-core/video/bitmap.c (match_extension): Ignore case.
1860 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1862 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
1864 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1866 * grub-core/script/parser.y: Declare "time" as valid argument.
1868 2011-03-23 Peter Jones <pjones@redhat.com>
1870 Fix incorrect assert failure reporting.
1872 * grub-core/tests/example_functional_test.c (example_test): Add
1874 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
1875 (failure_start): ...this. Check that malloc succeeded.
1876 Don't call xvasprintf. Return failure struct.
1877 (failure_append_vtext): New function.
1878 (failure_append_text): Likewise.
1879 (add_failure): Likewise.
1880 (grub_test_assert_helper): Likewise.
1881 * include/grub/test.h (grub_test_assert_helper): New declaration.
1882 (grub_test_assert): Macro rewritten.
1884 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1886 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
1888 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1890 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
1892 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1894 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
1895 into GRUB-style one.
1897 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1899 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
1900 error and not grub_errno.
1901 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
1903 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1905 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
1906 GRUB_USB_SPEED_NONE in case of failure and not the error code.
1908 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1910 * grub-core/efiemu/i386/pc/cfgtables.c
1911 (grub_machine_efiemu_init_tables): Make declaration a prototype.
1912 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
1913 (grub_xnu_unlock): Likewise.
1914 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
1916 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1918 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
1919 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
1920 * grub-core/commands/hashsum.c (aliases): Likewise.
1921 * grub-core/commands/setpci.c (pci_registers): Likewise.
1922 * grub-core/disk/usbms.c (attach_hook): Likewise.
1923 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
1924 (zio_checksum_table): Likewise.
1925 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
1926 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
1927 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
1928 * grub-core/lib/relocator.c (leftovers): Likewise.
1929 (extra_blocks): Likewise.
1930 * grub-core/loader/i386/bsd.c (relocator): Likewise.
1931 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
1932 (modules_last): Likewise.
1933 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
1934 (devices): Likewise.
1935 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
1936 (modules_last): Likewise.
1937 * grub-core/normal/auth.c (users): Likewise.
1938 * grub-core/normal/context.c (initial_menu): Likewise.
1939 (current_menu): Likewise.
1940 * grub-core/normal/crypto.c (crypto_specs): Likewise.
1941 * grub-core/term/serial.c (grub_serial_ports): Likewise.
1942 (grub_serial_terminfo_input_template): Likewise.
1943 (grub_serial_terminfo_output_template): Likewise.
1944 (grub_serial_terminfo_input): Likewise.
1945 (grub_serial_terminfo_output): Likewise.
1946 (registered): Likewise.
1947 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
1949 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1951 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
1952 grub_video_mode_type_t.
1953 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
1954 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
1955 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
1957 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1959 * util/grub-install.in: Correct the x86-64 name as x86_64.
1961 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
1963 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
1964 initial chunk read from the kernel always includes GRUB's multiboot
1965 header, which is now outside the first sector.
1967 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
1969 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
1970 cached mmap_size, so that this works correctly when called multiple
1972 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
1974 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
1976 * docs/grub.texi (Simple configuration): Tidy up formatting.
1978 2011-03-07 Szymon Janc <szymon@janc.net.pl>
1980 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
1981 Set-but-not-used variable removed.
1983 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1985 Workaround yet another IEEE1275 bug.
1987 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1988 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
1989 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
1990 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
1992 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1993 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
1995 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
1997 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
2000 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
2002 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
2003 empty, since in that case we can only generate either nothing or a
2004 syntactically invalid configuration file.
2005 Reported by: Michal Suchanek. Fixes Debian bug #612898.
2007 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2009 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
2010 (Making a GRUB bootable CD-ROM): Likewise.
2011 (Invoking grub-mkrescue): New section.
2012 Reported by: Yann Dirson. Fixes Debian bug #612585.
2014 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
2016 * util/grub-install.in: Remove unnecessary brackets from tr
2018 * util/grub.d/10_hurd.in: Likewise.
2019 * util/grub.d/10_kfreebsd.in: Likewise.
2020 * util/grub.d/10_linux.in: Likewise.
2021 * util/grub.d/20_linux_xen.in: Likewise.
2022 Reported by: Jamie Heilman. Fixes Debian bug #612564.
2024 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
2026 * include/grub/file.h (not_easly_seekable): Rename to ...
2027 (not_easily_seekable): ... this. Update all users.
2029 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
2031 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
2034 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2036 * util/grub-mkimage.c (generate_image): Refuse to create the images
2037 bigger than the actual flash (512K) in Loongson machines. 512K is also
2038 the biggest chip supported by them.
2040 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2042 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
2044 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
2046 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
2049 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2051 * util/grub-install.in: Ignore install device on platforms
2052 where it doesn't make sense. Always use UUIDs except on pc, efi and
2054 Reported by: Daniel Kahn Gillmor.
2056 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2058 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
2060 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2062 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
2063 (iterate_real): Don't rely on partition being non-NULL.
2065 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2067 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
2068 supported platforms. Put a compile time assert for this rather than
2069 generate a warning with 32-bit shift.
2071 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2073 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
2074 logical expression more readable.
2076 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2078 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
2079 even if some elements have a name.
2080 Reported by: Alexander GQ Gerasiov.
2082 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2084 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
2085 path unreadable if `grub-probe -t abstraction' fails, for example if
2086 memberlist fails on an LVM volume group.
2087 Reported by: Darius Jahandarie.
2089 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
2091 * docs/grub.texi (Simple configuration): Document
2092 GRUB_PRELOAD_MODULES.
2094 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
2096 * .bzrignore: Remove nonexistent grub-pbkdf2.
2098 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2100 * configure.ac: Bump version to 1.99~rc1.
2102 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
2104 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
2107 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2109 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
2112 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2114 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
2116 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2118 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
2121 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2123 Fix compilation on cygwin.
2125 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
2126 -R .drectve on cygwin.
2127 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
2128 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
2129 (COND_CYGWIN): New condition.
2130 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
2131 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
2132 not @TARGET_OBJ2ELF@.
2133 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
2134 type to determine whether aux is to be used.
2136 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2138 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
2139 realpath'ed device string.
2140 Handle floppy (somewhat).
2141 Issue error in unknown case rather than garbage.
2142 Reported by: Axel Beckert.
2144 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2146 * util/grub.d/00_header.in (load_video): Handle the case when no video
2148 Thanks to: Axel Beckert.
2150 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2152 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
2153 variable. Fixes problem on big endian platforms.
2155 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2157 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
2158 It doesn't work well there.
2160 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2162 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
2164 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
2165 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
2168 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2170 Use alias->path rather than buggy "canon".
2172 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
2173 (ofdisk_hash_add): New argument curcan. All users updated.
2175 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2177 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
2179 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2181 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
2182 loadmask before doing any calculations. Use correct type for offset.
2183 (grub_linux_load64): Likewise.
2185 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
2187 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
2189 (console_grub_equivalences_unshift): Likewise.
2190 Reported by: Daniel Dehennin.
2192 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2194 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
2195 (set_env_limn_ro): Likewise.
2196 (GRUB_MOD_INIT): Likewise.
2197 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
2198 ARRAY_SIZE while on it.
2199 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
2200 * grub-core/normal/context.c (grub_env_export): Move from here ...
2201 * grub-core/kern/env.c (grub_env_export): ... here.
2202 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
2204 * grub-core/kern/main.c (grub_main): Export root and prefix.
2205 * include/grub/env.h (grub_env_export): Export.
2206 Reported by: Seth Goldberg.
2208 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2210 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2211 Take into account space used by ELF sections and multiboot palette.
2212 Reported by: Grégoire Sutre.
2214 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2218 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2220 Pass more appropriate video id to Linux.
2222 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
2223 grub_video_get_driver_id and variable gfxpayloadforcelfb to
2225 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
2226 shift params->lfb_size.
2227 * include/grub/i386/linux.h: Make an enume out of have_vga values.
2229 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2231 * util/grub-menulst2cfg.c: Add missing include of misc.h.
2233 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2235 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
2236 separator and pass bootpath/devid even if only one of them is available.
2237 Reported by: Seth Goldberg.
2239 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2241 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
2242 implementations bug on them.
2244 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
2246 (filter_memory_map): Likewise.
2248 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2250 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
2251 Reported by: nebuchadnezzar.
2253 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2255 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
2256 Reported by: nebuchadnezzar.
2258 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2260 Submenu default support.
2262 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
2263 auto_boot. All users updated.
2265 Handle chosen and default with submenus.
2266 (grub_menu_execute_with_fallback): Declared static.
2267 Don't notify failure if autobooted. Upper level does it.
2268 (menuentry_eq): New function.
2269 (get_entry_number): Use menuentry_eq.
2270 (show_menu): New parameter "autobooted". All users updated.
2271 (grub_show_menu): Likewise.
2272 * include/grub/normal.h (grub_show_menu): Likewise.
2273 * include/grub/menu.h (grub_menu_execute_entry): Removed.
2274 (grub_menu_execute_with_fallback): Likewise.
2276 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2278 * util/grub-mklayout.c (usage): Update help text.
2280 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2282 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
2284 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2286 * util/grub-menulst2cfg.c (main): Trim the line.
2288 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2290 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
2291 (grub_machine_init): Don't check amount of low memory as reportedly
2292 INT 12h can be broken and if low memory is too low we wouldn't have
2293 gotten into grub_machine_init anyway.
2295 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2297 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
2298 (grub_machine_mmap_iterate): Take low memory into account
2300 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2302 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
2306 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2308 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
2311 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2313 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
2314 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
2316 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2318 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
2319 openbsd and netbsd types being in part_bsd module.
2321 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2323 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
2324 (_FILE_OFFSET_BITS): Likewise.
2325 Reported by: Seth Goldberg.
2327 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2329 * configure.ac: Check for libdevmapper header.
2331 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2333 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
2335 (fzap_lookup): Likewise.
2336 (dnode_get): Likewise.
2337 (make_mdn): Likewise.
2338 (zfs_mount): Likewise.
2339 (fzap_iterate): Use temporary pointer to avoid aliasing.
2340 (grub_zfs_read): Likewise.
2341 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
2342 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
2343 pointers to avoid aliasing.
2344 (grub_cmd_xnu_kernel64): Likewise.
2345 (grub_xnu_load_driver): Likewise.
2347 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2349 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
2351 (grub_cmd_terminal_output): Likewise.
2352 Reported and tested by: Grégoire Sutre.
2354 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2356 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
2358 Reported and tested by: Grégoire Sutre.
2360 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2362 * configure.ac: Do CPU substitution even if it's specified explicitly.
2363 Reported and tested by: Alain Greppin.
2365 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2367 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
2368 Reported and tested by: Alain Greppin.
2370 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2372 Satisfy some bison versions need for inttypes.h.
2374 * grub-core/lib/posix_wrap/inttypes.h: New file.
2375 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
2376 (int16_t): Likewise.
2377 (int32_t): Likewise.
2378 (int64_t): Likewise.
2379 Reported and tested by: Alain Greppin.
2381 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2383 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
2384 Silence spurious warning.
2385 Reported and tested by: Alain Greppin.
2387 2011-01-07 Szymon Janc <szymon@janc.net.pl>
2389 * docs/grub.texi (Support automatic decompression): Update with xz
2390 decompression support.
2392 2011-01-07 Szymon Janc <szymon@janc.net.pl>
2394 Improve loaders' kernel command line handling.
2396 * grub-core/lib/cmdline.c: New file.
2397 * include/grub/lib/cmdline.h: Likewise.
2398 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
2399 grub_create_loader_cmdline to create kernel command line.
2400 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2401 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
2402 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
2403 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
2404 (linux): Add lib/cmdline.c on common.
2406 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2408 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
2409 inopos might be unaligned.
2411 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2413 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
2414 endian transformations.
2415 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2416 Based on report by: Doug Nazar.
2418 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
2420 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
2421 array->members[i].start_sector.
2422 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2424 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2426 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
2427 Reported and tested by: Grégoire Sutre.
2429 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
2431 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
2432 avoid causing test failures by clearing the screen.
2434 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
2436 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
2437 Fix prefix check to handle the case where dir ends with a slash
2438 (most significantly, "/" itself).
2439 Reported by: Michael Vogt.
2441 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2443 Run terminfo_cls on initing terminfo output to clear the screen and
2444 move the cursor to (0,0).
2446 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
2447 Call grub_terminfo_output_init.
2448 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
2449 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
2450 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
2452 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2454 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
2457 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2459 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
2462 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2464 The E820 type 5 is BADRAM, not EXEC_CODE.
2466 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2467 (GRUB_E820_BADRAM): New define.
2468 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
2469 into reserved. Propagate BADRAM.
2470 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2471 (GRUB_E820_BADRAM): New define.
2473 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2475 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
2476 Ignore the memory post-4G.
2477 (grub_relocator_firmware_alloc_region): Additional debug statement.
2479 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2481 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
2483 Reported by: David Pravec.
2485 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2487 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
2490 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2492 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
2494 (grub_reed_solomon_recover): Likewise.
2496 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2498 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
2500 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2502 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
2505 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
2507 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
2508 descriptions of extract_legacy_entries_source and
2509 extract_legacy_entries_configfile.
2510 Reported by: Seung Soo, Ha.
2512 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
2514 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
2515 on devices that do not implement function 0.
2517 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
2519 * grub-core/fs/hfsplus.c: Make parent unsigned.
2520 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
2522 (grub_hfsplus_cmp_extkey): Likewise
2524 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2526 * util/grub-install.in: Correctly use bootloader_id and not
2527 GRUB_DISTRIBUTOR on efibootmgr line.
2529 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2531 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
2533 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
2535 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
2536 Xen and reorder menu item wording to make it clearer that this entry
2537 will launch Xen. Print separate messages when loading Xen and
2540 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2542 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
2543 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
2544 loop in case of incorrect amiga partmap.
2546 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2548 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
2549 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
2552 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2554 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
2556 Reported by: crocket
2558 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2560 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
2562 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
2564 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2566 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
2568 (grub_cmd_xnu_kextdir): Likewise.
2569 (grub_cmd_xnu_splash): Likewise.
2571 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2573 Avoid using Reed-Solomon with 0 redundancy.
2575 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
2576 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
2578 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
2579 (grub_reed_solomon_recover): Likewise.
2581 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2583 Don't use disk subsystem in freebsd_boot.
2585 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
2586 (freebsd_biosdev): Likewise.
2587 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
2588 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
2590 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2592 Handling of files of unknown size is currently limited. They can't be
2593 used e.g. for initrd or modules. Moreover gzip handling of not
2594 easily seekable files is buggy. Disable unknown file size for now. May
2595 be inefficient but works.
2597 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
2598 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2600 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
2602 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
2605 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
2607 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
2609 2010-12-25 Shea Levy <shlevy>
2611 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
2613 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2615 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
2616 Windows Server 2008.
2617 Reported by: Devin Giddings.
2619 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2621 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
2622 writing an error message because of async power management.
2623 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
2624 (grub_reboot): Likewise.
2626 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
2628 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
2629 keep unit tests from failing when they shouldn't.
2631 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2633 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
2634 previous patch increased the size of the RS code by 20 bytes (at
2635 least with gcc-4.4), so increase this by 20 bytes to match.
2636 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2638 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2640 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
2641 scratch area. Make sure to initialise chosen in standalone mode as
2642 well as non-standalone.
2643 Reported by: Robert Hooker and Andy Whitcroft.
2644 Tested by: Andy Whitcroft.
2646 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2648 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
2649 constructing a new unescaped string and passing it to grub_xputs in
2650 one go, rather than passing characters to grub_printf one at a time.
2652 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2654 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
2657 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
2659 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
2660 comment. Add an extra layer of quotation, requiring the output of
2661 this function to be used in a printf format string.
2662 (gettext_printf): New function.
2663 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
2664 Extract translatable strings from here-documents and use a temporary
2665 variable instead, so that xgettext can find them.
2666 * util/grub.d/10_kfreebsd.in: Likewise.
2667 * util/grub.d/10_linux.in: Likewise.
2668 * util/grub.d/20_linux_xen.in: Likewise.
2670 * po/grub.d.sed: New file.
2671 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
2672 arguments. Set c-format flags on all strings extracted from
2673 util/grub.d/ (xgettext refuses to include these itself for strings
2674 it extracted from a shell file, but these really are c-format).
2676 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2678 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
2679 Avoid next pointing to nowhere.
2681 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2683 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
2684 rather than assuming than rootblock is exactly in the middle.
2685 (grub_affs_label): Likewise.
2687 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2689 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
2690 reserved_first_sector to 0.
2691 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
2692 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
2693 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
2695 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2697 Fix handling of UTF-16 UDF labels.
2699 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
2700 (read_string): .. here.
2701 (grub_udf_label): Use read_string.
2703 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
2705 * grub-core/normal/menu_entry.c (run): Execute commands from menu
2706 editor under argument scope.
2707 Reported by: Jordan Uggla
2709 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2711 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
2713 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
2715 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
2716 line, and other keys scroll an entire page (previous handling was
2717 for \r and \n to scroll a page and other keys to scroll two lines).
2719 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2721 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2722 Set ptrdest to correct get_physical_target_address rather than
2723 incorrect get_virtual_current_address.
2725 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
2727 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
2728 correct cat to grub_uint8_t * rather than grub_uint32_t *.
2730 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
2732 * .bzrignore: Ignore grub-core/rs_decoder.S.
2734 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
2736 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
2737 .mo/.mo.gz opening sequence to ...
2738 (grub_mofile_open_lang): ... here.
2739 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
2740 * util/grub.d/00_header.in (grub_lang): Include country part of
2742 Reported by: Mario Limonciello.
2744 2010-12-09 Robert Millan <rmh@gnu.org>
2746 * NEWS: Document addition of ZFS support.
2748 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
2750 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
2751 rather than `/ 2', as the latter requires -Wa,--divide which would
2752 require bumping our minimum binutils version.
2754 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
2756 * util/grub-script-check.c (main): Print script line number on
2759 2010-12-01 Robert Millan <rmh@gnu.org>
2761 * grub-core/fs/zfs/zfs.c: New file.
2762 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
2763 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
2764 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
2765 * grub-core/fs/zfs/zfsinfo.c: Likewise.
2767 * include/grub/zfs/dmu.h: Likewise.
2768 * include/grub/zfs/dmu_objset.h: Likewise.
2769 * include/grub/zfs/dnode.h: Likewise.
2770 * include/grub/zfs/dsl_dataset.h: Likewise.
2771 * include/grub/zfs/dsl_dir.h: Likewise.
2772 * include/grub/zfs/sa_impl.h: Likewise.
2773 * include/grub/zfs/spa.h: Likewise.
2774 * include/grub/zfs/uberblock_impl.h: Likewise.
2775 * include/grub/zfs/vdev_impl.h: Likewise.
2776 * include/grub/zfs/zap_impl.h: Likewise.
2777 * include/grub/zfs/zap_leaf.h: Likewise.
2778 * include/grub/zfs/zfs.h: Likewise.
2779 * include/grub/zfs/zfs_acl.h: Likewise.
2780 * include/grub/zfs/zfs_znode.h: Likewise.
2781 * include/grub/zfs/zil.h: Likewise.
2782 * include/grub/zfs/zio.h: Likewise.
2783 * include/grub/zfs/zio_checksum.h: Likewise.
2785 * Makefile.util.def: Build ZFS into libgrubmods.
2786 * grub-core/Makefile.core.def: Build zfs.mod.
2788 2010-11-30 Szymon Janc <szymon@janc.net.pl>
2790 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
2792 * grub-core/commands/wildcard.c (match_files): Likewise.
2794 2010-11-30 Robert Millan <rmh@gnu.org>
2796 * grub-core/loader/i386/bsd.c
2797 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
2798 whether kernel is loaded using grub_loader_is_loaded(), rather
2799 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
2800 certain error conditions.
2802 2010-11-30 Robert Millan <rmh@gnu.org>
2804 * grub-core/commands/echo.c: Include `<grub/term.h>'.
2805 (grub_cmd_echo): Call grub_refresh() after printing a message.
2807 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2809 Avoid using tricks for initialising endian variables.
2811 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
2813 (GRUB_MOD_INIT): Don't byte-swap.
2814 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
2815 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
2816 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
2817 (grub_swap_bytes32_compile_time): Likewise.
2818 (grub_cpu_to_le32_compile_time): Likewise.
2819 (grub_cpu_to_le16_compile_time): Likewise.
2821 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2823 * util/grub-setup.c (setup): Stop recommending --force. People who
2824 understand the dangers of blocklists are able to find this option
2825 anyway and the ones who don't shouldn't use it anyway.
2827 2010-11-26 Robert Millan <rmh@gnu.org>
2829 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
2832 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
2834 Fix LVM-on-RAID probing.
2836 * util/grub-probe.c (probe): Remember which disk was detected as
2837 RAID (perhaps an LVM physical volume). Use that disk's raidname
2838 rather than that of the top-level disk.
2840 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
2842 Fix cmdline argument quotes for setparams command of menuentry
2845 * grub-core/commands/menuentry.c (setparams_prefix): Use single
2846 quotes for arguments.
2847 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
2848 grub_strchrsub function instead.
2850 * include/grub/misc.h (grub_strchrsub): New function.
2852 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
2854 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
2855 effort by skipping "." and ".." entries up-front.
2856 Suggested by: Michael Lazarev.
2858 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
2860 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
2861 ldflags to ldadd, to fix link line ordering.
2862 (none_decompress): Likewise.
2864 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
2866 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
2868 (grub-emu-lite): Remove kern/emu/cache.S.
2870 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2872 * util/deviceiter.c (compare_devices): If the by-id link for a
2873 device couldn't be resolved, fall back to sorting by the by-id link
2874 rather than segfaulting.
2875 Reported and tested by: Daniel Mierswa.
2877 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2879 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
2880 ldflags, to fix link line ordering.
2882 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2884 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
2885 linkers are picky about this.
2887 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2889 * grub-core/Makefile.am (command.lst): Adjust sed expression
2890 ordering so that extended and priority commands aren't treated as
2893 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
2895 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
2896 Remove byte-swapping function calls, which are not valid in
2897 structure initialisers.
2898 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
2900 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
2901 grub_gpt_partition_type_bios_boot.
2903 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
2905 Fix test program build on GNU/kFreeBSD.
2907 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
2908 $(LIBNVPAIR)' library dependencies.
2910 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
2912 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
2914 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
2916 * util/grub-install.in: Remove excessive quoting that broke
2917 installations to RAID devices.
2919 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2921 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
2922 bootloader version instead of 0.
2924 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2926 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
2929 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2931 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
2932 retrieve the metadat sector if size isn't known.
2933 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2935 2010-11-18 Robert Millan <rmh@gnu.org>
2937 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
2940 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2942 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
2944 Reported by: Jordan Uggla.
2946 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2948 Make better UTF compliant.
2950 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
2951 sequences as incorrect.
2952 (grub_is_valid_utf8): Likewise.
2953 (grub_utf8_to_ucs4): Likewise.
2954 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
2955 (grub_ucs4_to_utf8_alloc): Likewise.
2956 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
2958 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2960 Make legacy_source behave like source.
2962 * grub-core/commands/legacycfg.c (legacy_file): Don't call
2964 (grub_cmd_legacy_source): Call grub_show_menu if needed.
2966 2010-11-16 Colin Watson <cjwatson@debian.org>
2968 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
2969 (-Wunused implies -Wunused-parameter, but not vice versa).
2971 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
2973 * configure.ac: Make error messages less confusing by testing for
2974 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
2975 accepted, but produces a diagnostic if something else is wrong).
2977 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2979 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
2980 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
2982 (grub_keyboard_controller_init)
2983 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
2984 read the initial state since controller isn't inited yet.
2986 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2988 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
2989 allocate_regbeg may need to create new chunk header.
2991 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2993 Fix quoting in legacy parser.
2995 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
2997 (grub_legacy_parse): Likewise.
2998 Reported by: Jordan Uggla.
2999 Tested by: Jordan Uggla.
3001 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3003 Don't add -lgcc on i386 and x86_64.
3005 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
3006 * conf/Makefile.common (LDADD_KERNEL): Likewise.
3007 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
3009 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3011 * configure.ac: Add -Wno-trampolines when supported.
3013 2010-11-14 Modestas Vainius <modax@debian.org>
3015 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
3018 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3020 Add generic logical block size support for UDF.
3022 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
3023 (GRUB_UDF_BLKSZ): Removed.
3024 (struct grub_udf_data): New field "lbshift" to hold the logical block
3025 size of the file system in log2 format. All users updated.
3026 (sblocklist): Change type to unsigned.
3027 (grub_udf_mount): Change type of "sblklist" to unsigned.
3028 Move AVDP search before VRS recognition, because the latter requires
3029 knowledge of the logical block size, which is detected during the
3031 Detect and validate logical block size during AVDP search, adding
3032 support for block sizes 512, 1024 and 4096.
3033 Make VRS recognition independent of block size.
3035 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3037 Properly handle deleted files on UDF.
3039 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
3040 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
3043 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3045 Support reading files larger than 2 GiB.
3047 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
3048 "offset" to grub_off_t.
3049 (grub_udf_read_file): Likewise for parameter "pos".
3051 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3053 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
3055 (Simple configuration): Refer to Changes from GRUB Legacy about
3056 save_env availability.
3058 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3060 * util/grub-install.in: Ignore empty partition table detection
3061 instead of trying to include part_ module.
3063 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3065 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
3066 LVM on RAID support.
3068 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3070 Properly define WORDS_BIGENDIAN in wrapped environments.
3072 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
3074 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
3076 Reported by: Manoel Rebelo Abranches.
3077 Tested by: Manoel Rebelo Abranches.
3079 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3081 * util/grub-mkconfig.in: Fix quoting.
3083 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3085 Support big ext2 files.
3087 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
3088 (grub_ext2_read_block): Support triple indirect blocks.
3089 (grub_ext2_read_file): Use 64-bit types and read size_high.
3090 (grub_ext2_open): Read size_high.
3091 Reported by: Ximin Luo.
3092 Tested by: Manoel Rebelo Abranches.
3094 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3096 * util/grub-install.in: Handle filenames containing spaces.
3097 Reported by: Jordan Uggla.
3098 Tested by: Jordan Uggla.
3100 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3102 * util/grub-mkconfig.in (grub_script_check): New variable.
3103 Use grub_script_check instead of grub-script-check.
3104 Reported by: Barry Jackson.
3106 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3108 * docs/grub.texi (menu): Correct the order.
3109 Reported by: D. Hugh Redelmeier.
3111 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
3116 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3118 * include/grub/elfload.h (grub_elf32_size): New parameter.
3120 Return maximum segments alignment.
3121 (grub_elf64_size): Likewise.
3122 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
3123 Return maximum segments alignment.
3124 (grub_elf64_size): Likewise.
3125 * grub-core/loader/powerpc/ieee1275/linux.c:
3126 (grub_linux_claimmap_iterate): New function. Uses the
3127 "available" property in the "memory" node for memory allocation
3128 for kernel in the PowerPC loader.
3129 (grub_linux_load32): Correctly find linux entry point offset.
3130 (grub_linux_load64): Likewise.
3132 2010-11-07 Robert Millan <rmh@gnu.org>
3134 On mips-yeeloong, build with -march=loongson2f when this flag is
3135 available (GCC >= 4.4).
3136 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
3138 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
3139 or otherwise add -march=mips3.
3141 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
3143 Suppress shell expansion on echo '*' and echo "*" like cases.
3144 Reported by: Jordan Uggla.
3146 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3147 string arguments before shell expansion.
3148 * tests/grub_cmd_echo.in: New testcases.
3150 2010-11-07 Robert Millan <rmh@gnu.org>
3152 * conf/mips-qemu-mips.rmk: Remove stale file from previous
3155 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3157 * grub-core/kern/emu/hostdisk.c
3158 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
3160 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3162 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
3163 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
3164 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
3166 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3168 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
3170 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3172 * util/grub-install.in: Replace useless recomendation to pass
3173 --modules with a recomendation to report a bug.
3175 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3177 Properly register serial terminfo.
3178 Reported by: Jordan Uggla
3180 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
3182 (grub_serial_terminfo_output_template): Likewise.
3183 (grub_cmd_serial): Register "serial" with terminfo.
3184 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
3185 grub_serial_terminfo_output.
3187 2010-11-05 Robert Millan <rmh@gnu.org>
3189 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
3192 2010-11-05 Robert Millan <rmh@gnu.org>
3194 On Yeeloong, pass machine type information to Linux.
3196 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
3197 (LOONGSON_MACHTYPE): New macro, set to
3198 "machtype=lemote-yeeloong-2f-8.9inches".
3199 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
3200 additional argument to Linux.
3202 2010-11-04 Robert Millan <rmh@gnu.org>
3204 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
3205 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
3206 (its SATA disks are detected as slaveless IDE master drives on
3208 Reported by Carsten Aulbert.
3210 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
3212 * util/bin2h.c (main): Fix spelling error in generated output.
3214 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
3216 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
3218 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3220 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
3221 vga= option is supplied.
3223 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3225 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
3226 * util/grub.d/10_kfreebsd.in: Likewise.
3227 * util/grub.d/10_linux.in: Likewise.
3228 * util/grub.d/20_linux_xen.in: Likewise.
3230 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3232 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
3233 argument as an argument to no-argument option.
3235 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3237 * util/grub.d/10_linux.in: Add missing load_video with explicit
3238 GRUB_GFXPAYLOAD_LINUX.
3240 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3242 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
3244 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3246 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
3247 elements with invlid index.
3248 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3249 * grub-core/disk/raid.c (insert_array): Automatically reallocate
3251 * include/grub/raid.h (grub_raid_member): New struct.
3252 (grub_raid_array): Transform devices and start_sector into usage of
3253 grub_raid_member. All users updated
3254 (allocated_devs): New member.
3256 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3258 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
3261 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
3263 NetBSD build fix for getline function conflict from gnulib.
3265 * Makefile.util.def (libgrubkern.a): New library for grub kernel
3266 components that depend on gnulib headers.
3267 (libgrubmods.a): Renamed from earlier libgrub.a.
3268 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
3270 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3272 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
3273 install rather than creating a broken install.
3275 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3277 * util/grub-setup.c (argp): Remove misleading example of installing to
3280 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3282 * util/grub-setup.c (setup): Clarify the error message.
3284 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3286 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
3288 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3290 * grub-core/kern/emu/misc.c
3291 (grub_make_system_path_relative_to_its_root)
3292 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
3294 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3296 * grub-core/kern/emu/misc.c
3297 (grub_make_system_path_relative_to_its_root): Revert r2882.
3299 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3301 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
3302 useless field head. All users updated.
3303 (free_subchunk): Correct handling of IN_REGION subchunk.
3305 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
3307 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
3308 (Supported kernels): Likewise.
3310 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
3312 Make mktemp invocations portable.
3314 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
3315 exit if mktemp fails.
3316 * tests/grub_script_blockarg.in: Likewise.
3317 * tests/partmap_test.in: Likewise.
3318 * tests/util/grub-shell-tester.in: Likewise.
3319 * tests/util/grub-shell.in: Likewise.
3320 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3321 * Makefile.am: Likewise, and chain shell commands with `&&'
3323 * util/grub-mkrescue.in: Use the same explicit template as above, and
3324 exit if mktemp fails.
3326 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
3328 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
3329 Linux kernel, reported by Dennis Schridde.
3331 2010-10-17 Szymon Janc <szymon@janc.net.pl>
3333 * grub-core/normal/auth.c (grub_auth_check_authentication):
3334 Set-but-not-used variable removed.
3336 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3338 * docs/grub.texi (GNU/Linux): Document APM unavailability with
3339 32-bit linux protocol.
3341 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3343 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
3344 cursor shape for sanity.
3346 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3348 * docs/grub.texi (Installation): Document buggy BIOS install.
3350 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3352 * docs/grub.texi (Installation): Indent.
3354 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3356 * util/grub-setup.c (setup): New parameter allow_floppy.
3357 (arguments): New member allow_floppy.
3358 (argp_parser): Handle --allow-floppy.
3359 (main): Pass allow_floppy.
3360 * util/grub-install.in: New option --allow-floppy passed though to
3363 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3365 * util/grub-install.in: Handle partitionless disks.
3367 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3369 * util/grub-setup.c (setup): Don't clean blocklists before readability
3372 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3374 * docs/grub.texi (Installation): Document embedding zone. Remove
3375 obsolete grub-install example.
3377 2010-10-16 Szymon Janc <szymon@janc.net.pl>
3379 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
3380 Set-but-not-used variable ifdef'ed.
3381 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
3382 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
3384 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
3385 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
3386 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
3387 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
3388 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
3389 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3390 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
3391 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
3392 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3393 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
3394 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
3397 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3399 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
3400 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
3403 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3405 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
3406 synonym to _S5_. Needed for some DSDTs.
3408 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3410 Userspace ACPI parser debugging.
3412 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
3413 headers and add relevant defines. Don't include standard headers.
3414 (main) [GRUB_DSDT_TEST]: New function.
3415 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
3416 Don't declare functions.
3418 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3420 Remove dead grub_efi_mm_fini.
3422 * grub-core/kern/efi/mm.c (allocated_page): Removed.
3423 (ALLOCATED_PAGES_SIZE): Likewise.
3424 (MAX_ALLOCATED_PAGES): Likewise.
3425 (allocated_pages): Likewise.
3426 (grub_efi_allocate_pages): Don't record allocated pages.
3427 (grub_efi_free_pages): Likewise.
3428 (grub_efi_mm_init): Likewise.
3429 (grub_efi_mm_fini): Removed.
3431 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3433 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
3434 (grub_efi_mm_init): Take into account the memory map size increase.
3436 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3438 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
3439 (serial_hw_put): Wait based on real time rather than port reads. Don't
3441 * include/grub/serial.h (grub_serial_port): New field broken.
3443 2010-10-16 Robert Millan <rmh@gnu.org>
3445 * grub-core/kern/emu/misc.c
3446 (grub_make_system_path_relative_to_its_root): Fix premature return
3447 when processing non-root ZFS filesystems.
3448 Reported by Sergio Talens-Oliag.
3450 2010-10-15 Robert Millan <rmh@gnu.org>
3452 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
3453 guarantee compressed ones are processed first.
3455 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3457 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
3458 grub_efiemu_autocore.
3460 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3462 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
3464 (grub_console_getkey): Use correct jae opcode rather than ja.
3466 2010-10-12 Robert Millan <rmh@gnu.org>
3468 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
3469 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
3470 variable. All references updated.
3472 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
3474 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3476 Correctly distinguish mdraid flavours.
3478 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
3479 (insert_array): New argument raid.
3480 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
3481 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
3482 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
3484 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3486 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
3487 handling of special keys.
3489 2010-10-02 Aleš Nesrsta <starous@volny.cz>
3491 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
3492 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3494 2010-10-02 Aleš Nesrsta <starous@volny.cz>
3496 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
3497 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
3499 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
3500 Use right endpoint when querying descriptor.
3502 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3504 Clear out 0x80 color bit on EFI.
3506 Reported by: decoder and meta tech.
3508 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
3509 (grub_console_setcolorstate): Clear out 0x80 bit.
3510 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
3511 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
3512 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
3514 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3516 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
3519 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3521 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
3522 mo_file after freeing.
3524 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3526 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
3528 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
3533 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3535 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
3538 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3540 Put terminfo into core on ieee1275 and yeeloong (needed for console).
3542 * gentpl.py: New groups terminfoinkernel and terminfomodule.
3543 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
3544 and terminfo.h when needed.
3545 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
3546 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
3547 (terminfo): Enable only on terminfokernel.
3549 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
3550 * include/grub/lib/arg.h: Likewise.
3551 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
3552 incorrect usage of ->.
3554 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3556 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
3557 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
3559 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3561 Fix coreboot compilation.
3563 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3564 Take VBE info into account even if only text is supported.
3565 (fill_vbe_info): Take into account the case when only VGA text
3567 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
3568 on coreboot, multiboot and qemu.
3570 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3572 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
3574 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
3576 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3578 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
3581 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3583 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
3584 if they were BSD-style.
3586 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3588 * grub-core/boot/i386/pc/lnxboot.S: Replace
3589 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
3590 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
3592 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3594 Write embedding zone using Reed-Solomon.
3596 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
3597 * grub-core/Makefile.am (rs_decoder.S): New target.
3598 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
3599 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
3600 (multiboot): Move to RS part.
3601 (post_reed_solomon): New label.
3602 (grub_boot_drive): Move to non-RS part since it's modified in memory
3604 Include rs_decoder.S.
3605 * grub-core/lib/reed_solomon.c: New file.
3606 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
3608 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
3609 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
3610 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
3611 * include/grub/partition.h (grub_partition_map): Change prototype of
3612 embed to allow returning additional sectors.
3613 * include/grub/reed_solomon.h: New file.
3614 * util/grub-setup.c (setup): Handle Reed-Solomon.
3616 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
3618 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3619 i386 and x86-64 definedness tests.
3621 2010-09-27 Yves Blusseau <blusseau@zetam.org>
3623 Fix generation of kernel_syms.lst
3625 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
3628 2010-09-26 Robert Millan <rmh@gnu.org>
3630 Support degraded ZFS arrays in "grub-probe -t device" resolution.
3632 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
3633 the pool is an array of devices, iterate through it and return the
3634 first device that passes a stat() test (instead of blindly returning
3637 2010-09-26 Robert Millan <rmh@gnu.org>
3639 Build fixes for GNU/kFreeBSD.
3641 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
3642 to programs that require ZFS conversion.
3643 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
3644 kernels that don't have FLOPPY_MAJOR.
3646 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3648 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
3650 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3654 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
3655 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
3656 mdraid09 and mdraid1x.
3658 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
3660 Re-enable grub-extras.
3662 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
3663 avoid confusing Automake. Run autogen only twice, once for the top
3664 level and once for grub-core. Add Makefile.util.def and
3665 Makefile.core.def from extra modules to the appropriate autogen
3666 invocations. If Makefile.common exists in an extra module, include
3667 it in both Makefile.util.am and grub-core/Makefile.core.am;
3668 similarly, include any Makefile.util.common file in Makefile.util.am
3669 and any Makefile.core.common file in grub-core/Makefile.core.am.
3670 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
3671 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
3672 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
3673 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
3675 * gentpl.py (gvar_add): Turn GVARS into a set.
3676 (global_variable_initializers): Sort global variables on output.
3677 (vars_init): New function.
3678 (first_time): Likewise.
3679 (library): Ensure that non-global variable initialisations are
3680 emitted before the first time we emit code for a library block.
3681 Append to variables rather than setting them. Only emit
3682 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
3683 each conditional path.
3684 (program): installdir() emits an Autogen macro, so must be passed to
3685 var_add rather than gvar_add.
3688 (rules): New function, centralising handling for different target
3689 types. Set up Guile association lists for first_time and vars_init,
3690 and send most output to a diversion so that variable initialisations
3691 can be emitted first.
3692 (module_rules): Use new rules function.
3693 (kernel_rules): Likewise.
3694 (image_rules): Likewise.
3695 (library_rules): Likewise.
3696 (program_rules): Likewise.
3697 (script_rules): Likewise.
3698 (data_rules): Likewise.
3700 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
3702 * .bzrignore: Add contrib and grub-core/contrib. Remove
3703 grub-core/Makefile.gcry.am.
3705 2010-09-24 Yves Blusseau <blusseau@zetam.org>
3707 * grub-core/lib/LzFind.c: Add missing include.
3708 * grub-core/lib/LzmaEnc.c: Likewise.
3709 * grub-core/script/lexer.c: Likewise.
3710 * grub-core/script/yylex.l: Likewise.
3711 * util/grub-macho2img.c: Likewise.
3712 * util/grub-menulst2cfg.c: Likewise.
3713 * util/grub-mklayout.c: Likewise.
3714 * util/grub-mkpasswd-pbkdf2.c
3715 * util/grub-mkrelpath.c: Likewise.
3716 * util/resolve.c: Likewise.
3718 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
3720 * Makefile.util.def (example_unit_test): Add
3721 grub-core/gnulib/libgnu.a.
3723 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
3725 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
3727 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3729 Support xz compression on yeeloong.
3731 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
3732 * configure.ac: Check for LZMA.
3733 * grub-core/Makefile.core.def (xz_decompress): New target.
3734 (none_decompress): Likewise.
3735 * grub-core/boot/decompressor/minilib.c: New file.
3736 * grub-core/boot/decompressor/none.c: Likewise.
3737 * grub-core/boot/decompressor/xz.c: Likewise.
3738 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
3739 * grub-core/kern/mips/cache_flush.S: Likewise.
3740 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
3741 * grub-core/kern/mips/startup.S: Move first stage to ...
3742 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
3744 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
3745 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
3746 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
3747 Allocate statically.
3748 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
3749 Allocate statically or use scratch. Don't check CRC32.
3750 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
3751 Allocate statically. Don't check CRC32.
3752 * include/grub/decompressor.h: New file.
3753 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
3755 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
3756 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
3757 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
3758 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
3759 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
3760 * util/grub-mkimage.c (grub_compression_t): New type.
3761 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
3762 (image_target_desc): New field default_compression.
3763 (image_targets): Adjust yeeloong targets.
3764 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
3765 (compress_kernel): New parameter comp.
3766 (generate_image): Likewise. Handle new compression case.
3767 (options): New option --compression
3769 (main): Handle new option.
3771 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
3773 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
3775 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
3777 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3778 typo in __i386__ conditional.
3780 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3782 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
3785 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3787 Implement EFI and ACPI multiboot2 extensions.
3789 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
3790 new tags as supported.
3791 (acpiv2_size): New function.
3792 (grub_multiboot_get_mbi_size): Take new tags into account.
3793 (grub_multiboot_make_mbi): Add new tags.
3794 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
3796 2010-09-21 Aleš Nesrsta <starous@volny.cz>
3798 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
3799 Added missing configuration of USB device.
3801 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3803 * grub-core/normal/menu_entry.c (run): Make sure we always return
3806 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3808 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
3809 NumberOfPages is UINT64 according to the UEFI specification, not
3810 UINTN. Fix printf format.
3812 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3814 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
3815 `err' to grub_usb_err_t.
3816 Reported and tested by: KESHAV P.R.
3818 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3820 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
3821 tpart non-const, so that we can assign to it. (Since this is a
3822 typedef, the constness refers to the pointer rather than what it
3825 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3827 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
3828 $(top_srcdir)/grub-core/gnulib as well as
3829 $(top_builddir)/grub-core/gnulib.
3830 Reported by: KESHAV P.R.
3832 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3834 * util/grub-install.in: Fix the bootloader ID option to be
3835 consistently --bootloader-id, not --bootloader_id.
3836 Reported by: KESHAV P.R.
3838 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3840 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
3841 check hash checksum." consistently translatable.
3843 2010-09-21 Yves Blusseau <blusseau@zetam.org>
3845 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
3848 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3850 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
3851 (GRUB_MOD_INIT): Register sha1sum command.
3852 (GRUB_MOD_FINI): Unregister sha1sum command.
3854 2010-09-21 Yves Blusseau <blusseau@zetam.org>
3856 Keep boot and grub directory names in sync with utils scripts
3858 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
3859 * config.h.in: Add previous macros.
3860 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
3861 * util/grub-install.in: Use $bootdir and $grubdir variables.
3863 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3865 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
3866 convert partition names to disk names if the new `convert' parameter
3868 (grub_util_biosdisk_get_grub_dev): If opening the disk device
3869 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
3870 disk in its own right. This can happen with Xen disk images.
3872 2010-09-21 Yves Blusseau <blusseau@zetam.org>
3874 * util/grub-editenv.c: Update strings to avoid warnings when generating
3876 * util/grub-setup.c: Likewise.
3878 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
3880 * configure.ac: Change version to 1.99~beta0.
3882 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
3884 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
3886 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
3888 * include/multiboot.h: Resynced with specification.
3889 * include/multiboot2.h: Likewise.
3891 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
3893 Fix po directory handling.
3895 * configure.ac: Create po/Makefile.in rather than po/Makefile.
3896 * grub-core/gnulib/Makefile.am: Import gettext module.
3897 * m4/gnulib-cache.m4: Likewise.
3898 * m4/gnulib-comp.m4: Likewise.
3899 * m4/gettext.m4: New file, from gnulib.
3900 * m4/glibc2.m4: Likewise.
3901 * m4/iconv.m4: Likewise.
3902 * m4/intdiv0.m4: Likewise.
3903 * m4/intl.m4: Likewise.
3904 * m4/intldir.m4: Likewise.
3905 * m4/intlmacosx.m4: Likewise.
3906 * m4/intmax.m4: Likewise.
3907 * m4/inttypes-pri.m4: Likewise.
3908 * m4/lcmessage.m4: Likewise.
3909 * m4/lib-ld.m4: Likewise.
3910 * m4/lib-link.m4: Likewise.
3911 * m4/lib-prefix.m4: Likewise.
3912 * m4/lock.m4: Likewise.
3913 * m4/nls.m4: Likewise.
3914 * m4/po.m4: Likewise.
3915 * m4/printf-posix.m4: Likewise.
3916 * m4/progtest.m4: Likewise.
3917 * m4/threadlib.m4: Likewise.
3918 * m4/uintmax_t.m4: Likewise.
3919 * m4/visibility.m4: Likewise.
3920 * po/Makefile.am: Remove.
3921 * po/Makefile.in.in: New file, from gettext.
3922 ($(DOMAIN).pot-update): Support POTFILES-shell.
3923 * po/Makevars: New file.
3924 * po/POTFILES-shell: Rename to ...
3925 * po/POTFILES-shell.in: ... this. Update.
3926 * po/POTFILES: Rename to ...
3927 * po/POTFILES.in: ... this. Update.
3928 * po/Rules-quot: New file, from gettext.
3929 * po/boldquot.sed: Likewise.
3930 * po/en@boldquot.header: Likewise.
3931 * po/en@quot.header: Likewise.
3932 * po/insert-header.sin: Likewise.
3933 * po/quot.sed: Likewise.
3934 * po/remove-potcdate.sin: Likewise.
3936 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3938 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
3940 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3942 * util/grub.d/20_linux_xen.in: Use submenus.
3944 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3948 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
3949 parameter submenu. All users updated.
3950 * grub-core/normal/main.c (free_menu): Rename to ...
3951 (grub_normal_free_menu): ... this. Made global.
3952 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
3954 * grub-core/normal/menu_entry.c (screen): New field submenu.
3955 (make_screen): Set submenu.
3956 (run): Open new context if requested.
3957 * include/grub/menu.h (grub_menu_entry): New field submenu.
3958 * include/grub/normal.h (grub_normal_free_menu): New proto.
3960 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3962 Menu entries extractor.
3964 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
3966 (GRUB_MOD_INIT): Register new variants.
3967 (GRUB_MOD_FINI): Unregister new variants.
3968 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
3969 into grub_cmd_legacy_source.
3970 (grub_cmd_legacy_source): Implement extractor variants.
3971 (GRUB_MOD_INIT): Register new variants.
3972 (GRUB_MOD_FINI): Unregister new variants.
3973 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
3975 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
3976 search as an extractor.
3977 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
3978 test as an extractor.
3979 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
3981 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
3982 (grub_env_new_context): New function.
3983 (grub_env_context_open): Likewise.
3984 (grub_env_extractor_open): Likewise.
3985 (grub_env_extractor_close): Likewise.
3986 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
3987 grub_extractor_level.
3988 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
3989 * include/grub/env.h (grub_env_extractor_open): New proto.
3990 (grub_env_extractor_close): Likewise.
3991 * include/grub/normal.h (grub_extractor_level): New external variable.
3993 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
3995 Make cutmem accept a region specification.
3996 Suggested by: Samuel Thibault
3998 * grub-core/mmap/mmap.c (parsemem): New function.
3999 (grub_cmd_cutmem): Handle new arguments.
4001 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4005 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
4006 (GRUB_MOD_INIT): Register new command.
4007 (GRUB_MOD_FINI): Unregister new command.
4009 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4011 Support some annoying BSD and Minix subpartitions.
4013 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
4014 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4015 Properly handle concatenation.
4016 * grub-core/kern/device.c (grub_device_iterate): Likewise.
4017 * grub-core/normal/completion.c (iterate_partition): Likewise.
4018 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
4019 contain partition. All users updated.
4020 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
4022 (grub_openbsdlabel_partition_map): Likewise.
4023 (bsdlabel_partition_map_iterate): Rename to ..
4024 (iterate_real): ... this. New arguments sector, freebsd and pmap.
4025 (bsdlabel_partition_map_iterate): New function.
4026 (netopenbsdlabel_partition_map_iterate): Likewise.
4027 (netbsdlabel_partition_map_iterate): Likewise.
4028 (openbsdlabel_partition_map_iterate): Likewise.
4029 (GRUB_MOD_INIT): Register new partmaps.
4030 (GRUB_MOD_FINI): Unregister new partmaps.
4031 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
4032 (grub_partition_msdos_iterate): ... this. All users updated.
4033 Don't support embedding other than in a minix partition.
4034 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
4036 * include/grub/partition.h (grub_partition): New field msdostype.
4037 * util/grub-install.in: Handle openbsd and netbsd types being in
4040 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4042 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
4044 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
4045 * grub-core/Makefile.core.def (mdraid): Renamed to ...
4046 (mdraid09): ... this.
4047 (mdraid1x): New module.
4048 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
4049 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
4051 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4053 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
4056 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4058 * grub-core/commands/efi/lsefimmap.c: Correct header.
4061 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4063 * util/grub-editenv.c (argp_parser): Don't pass translated strings
4064 as printf format strings; the translations might contain '%' which
4065 could cause a crash.
4067 * util/grub-fstest.c (argp_parser): Likewise.
4068 * util/grub-setup.c (argp_parser): Likewise.
4071 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4073 Use argp in grub-fstest.
4075 * util/grub-fstest.c: Don't include getopt.h.
4077 (root): New variable.
4078 (args_count): Likewise.
4080 (num_disks): Likewise.
4083 (debug_str): Likewise.
4085 (options): Transformed to argp.
4087 (main): Split argument parsing into ...
4088 (argp_parser): ... this. Changed to argp format.
4089 (argp): New variable.
4090 (main): Use argp_parse.
4092 2010-09-20 Tristan Gingold <gingold@free.fr>
4093 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
4094 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4096 * grub-core/commands/efi/lsefimmap.c: New file.
4097 * grub-core/Makefile.core.def (lsefimmap): New module.
4098 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
4100 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4102 Pause the execution (10s max) if any errors are displayed so the user
4103 has a chance to see them.
4105 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
4106 (grub_print_error): Increment grub_err_printed_errors.
4107 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
4108 execution if any errors were displayed.
4109 (show_menu): Remove old code for pause.
4110 * grub-core/normal/menu_entry.c (run): Likewise.
4111 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
4113 (grub_normal_get_char_counter): Likewise.
4114 * include/grub/err.h (grub_err_printed_errors): New external variable.
4115 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
4117 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4119 Support multiboot VBE info.
4121 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4122 Take VBE info into account.
4123 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
4124 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4125 Call fill_vbe_info when appropriate.
4126 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
4127 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
4129 (grub_multiboot_get_mbi_size): Take new tags into account.
4130 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
4131 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4132 Call fill_vbe_tag when appropriate.
4133 (grub_multiboot_make_mbi): Properly align tags.
4134 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
4136 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
4138 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
4140 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4142 Suport manual terminal geometry specification.
4144 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
4145 Save state in grub_ofconsole_terminfo_output.
4146 (grub_ofconsole_term): Use grub_terminfo_getwh.
4147 (grub_ofconsole_getwh): Removed.
4148 * grub-core/term/serial.c (grub_serial_getwh): Removed.
4149 (grub_serial_term): Use grub_terminfo_getwh.
4150 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
4151 (options): New struct.
4152 (OPTION_*): New enum.
4153 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
4154 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
4156 (grub_terminfo_getwh): New proto.
4157 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
4159 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4161 Handle legacy "terminal" command.
4163 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
4165 (legacy_commands): Add terminal and title.
4166 (grub_legacy_parse): Handle terminal. Simplify title handling.
4168 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4170 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
4171 parameters overflow.
4173 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4175 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
4178 * docs/grub.texi (Shell-like scripting): Document `!'.
4179 (Network): Simplify using new i386-pc-pxe format. Mention
4184 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4186 * Makefile.am (SUBDIRS): Restore "."; it's important to force
4187 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
4190 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4192 * grub-core/commands/efi/lsefisystab.c: Correct header.
4193 * grub-core/commands/efi/lssal.c: Likewise.
4194 * grub-core/commands/testload.c: Likewise.
4196 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4198 * util/grub-mkrescue.in: Add explicit root argument to --set to
4199 prevent the UUID being interpreted as an argument to --set (matches
4200 previous change to prepare_grub_to_access_device).
4202 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
4204 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
4205 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
4206 the verbosity of later #ifs.
4207 (find_partition_start): Define this function on FreeBSD too.
4208 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
4210 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
4213 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4215 * util/grub-editenv.c: Use argp instead of getopt.
4217 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4219 * util/grub-setup.c: Use argp instead of getopt.
4221 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4223 Use gnulib-tool to create gnulib source files.
4225 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
4226 grub-core/gnulib directories
4227 * .bzignore: Add **/.deps and autogenerated gnulib files
4228 * configure.ac: Assign auxiliary directory to build-aux, add invocation
4229 of gnulib macros, add grub-core/gnulib/Makefile
4230 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
4231 include m4 directory to aclocal.
4232 * Makefile.util.def: Remove direct compilation of gnulib source files
4233 and use the new grub-core/gnulib/libgnu.a.
4234 * build-aux/config.rpath: move config.rpath from top directory to
4236 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
4238 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
4239 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
4240 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
4242 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
4245 2010-09-20 Yves Blusseau <blusseau@zetam.org>
4247 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
4248 grub-core/genmod.sh and grub-core/gensyminfo.sh
4250 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
4252 Add a test for echo command options.
4254 * tests/grub_cmd_echo.in: New test.
4255 * Makefile.util.def: Rules for new test.
4257 2010-09-20 Szymon Janc <szymon@janc.net.pl>
4259 Remove crc.mod and move crc command to hashsum.mod.
4260 Remove lib/crc.c - users updated to use gcrypt implementation.
4262 * grub-core/commands/crc.c: Removed.
4263 * grub-core/Makefile.core.def (crc): Module removed.
4264 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
4265 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
4266 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
4267 * grub-core/lib/crc.c: Removed.
4268 * include/grub/lib/crc.h: Removed.
4269 * Makefile.util.def (crc): Remove lib/crc.c
4270 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
4271 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
4272 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
4273 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
4274 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
4275 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
4277 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4279 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
4281 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4283 Split config.h for util and core.
4285 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
4288 (BSS_START_SYMBOL): Likewise.
4289 (END_SYMBOL): Likewise.
4290 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
4291 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
4292 * config.h.in: New file.
4293 * configure.ac: Use config-util.h as config define file.
4294 Rename MACHINE into GRUB_MACHINE. All users updated.
4295 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
4297 (NESTED_FUNC_ATTR): Likewise.
4298 Substitue new variables.
4299 (COND_HAVE_ASM_USCORE): New conditional.
4300 * grub-core/Makefile.am (ASM_PREFIX): New variable.
4301 (kernel_syms.lst): Use ASM_PREFIX.
4302 * grub-core/kern/emu/console.c: Include config-util.h.
4303 * grub-core/kern/emu/misc.c: Likewise.
4304 * grub-core/kern/emu/mm.c: Likewise.
4305 * include/grub/emu/misc.h: Likewise.
4306 * include/grub/libgcc.h: Likewise.
4308 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4310 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
4312 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
4313 Fix GRUB_TERM_KEY_* constants usage.
4314 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
4316 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4318 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
4320 * grub-core/bus/usb/uhci.c: Remove empty define.
4321 (grub_uhci_check_transfer): Add missing cast.
4322 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
4324 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
4326 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
4328 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4330 * grub-core/Makefile.core.def (legacycfg): Add
4331 lib/i386/pc/vesa_modes_table.c on emu.
4333 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4335 Reduce number of temporary files generated by build system.
4337 * grub-core/gencmdlist.sh: Removed.
4338 * grub-core/genfslist.sh: Removed.
4339 * grub-core/genhandlerlist.sh: Removed.
4340 * grub-core/genmodsrc.sh: Removed.
4341 * grub-core/genpartmaplist.sh: Removed.
4342 * grub-core/genparttoollist.sh: Removed.
4343 * grub-core/gentermiinallist.sh: Removed.
4344 * grub-core/genvideolist.sh: Removed.
4346 * grub-core/genmod.sh.in: New file.
4347 * grub-core/gensyminfo.sh.in: New file.
4349 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
4350 * conf/Makefile.extra-dist: Update with new files.
4351 * gentpl.py: Remove rules related to unnecessary temporary files.
4352 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
4354 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
4356 * grub-core/bus/usb/uhci.c: Remove empty #define.
4357 * grub-core/genmoddep.awk: Updated with new syminfo format.
4358 * util/bash-completion.d/Makefile.am: Add config.log to
4361 2010-09-19 Yves Blusseau <blusseau@zetam.org>
4363 * Makefile.util.def: Add forgotten $(LIBINTL) library.
4365 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4367 * util/grub-mkconfig.in: Check the config script for syntax errors
4370 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
4371 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4373 * Makefile.util.def (grub-install): Use util/grub-install.in on all
4375 * util/grub-install.in: Add EFI and IEEE1275 support.
4376 * util/i386/efi/grub-install.in: Removed.
4377 * util/ieee1275/grub-install.in: Likewise.
4379 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4381 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
4382 (grub_cmd_cmosclean): Likewise.
4383 (GRUB_MOD_INIT): Register command cmosclean.
4384 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
4385 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
4387 2010-09-18 Carles Pina i Estany <carles@pina.cat>
4388 2010-09-18 Aleš Nesrsta <starous@volny.cz>
4389 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4391 Add keyboard layouts support.
4393 * Makefile.util.def (grub-mklayout): New file.
4394 (grub-kbdcomp): New script.
4395 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
4396 Add keyboard_layouts.h.
4397 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
4398 commands/boot.c on yeeloong.
4399 (keylayouts): New module.
4400 * grub-core/bus/usb/ohci.c
4401 * grub-core/bus/usb/uhci.c
4402 * grub-core/bus/usb/usbhub.c (rescan): New variable.
4403 (grub_usb_add_hub): Poll interrupt pipe for device handling.
4404 (attach_root_port): Likewise.
4405 (poll_nonroot_hub): Likewise.
4406 (grub_usb_poll_devices): Likewise.
4407 (detach_device): Close transfer.
4408 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
4410 (grub_usb_bulk_setup_readwrite): Likewise.
4411 (grub_usb_bulk_finish_readwrite): Likewise.
4412 * grub-core/commands/keylayouts.c: New file.
4413 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
4414 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
4416 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
4418 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
4419 * include/grub/keyboard_layouts.h: New file.
4420 * util/grub-mklayout.c: New file.
4421 * util/grub-kbdcomp.in: Likewise.
4423 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4427 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
4428 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
4430 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
4431 (grub_upper_mem): Likewise.
4432 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
4433 * include/grub/memory.h (grub_memory_type_t): New enum.
4436 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4438 * grub-core/Makefile.core.def (lsapm): New module.
4439 * grub-core/commands/i386/pc/lsapm.c: New file.
4440 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
4441 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
4443 * include/grub/i386/pc/apm.h: New file.
4444 * include/multiboot.h (multiboot_apm_info): New struct.
4446 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4448 GRUB-legacy configuration file support.
4450 * Makefile.util.def (grub-menulst2cfg): New util.
4451 * docs/man/grub-menulst2cfg.h2m: New file.
4452 * grub-core/Makefile.core.def (legacycfg): New module.
4453 * grub-core/commands/legacycfg.c: New file.
4454 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
4455 (grub_normal_add_menu_entry): ... this.
4456 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
4457 (grub_normal_set_password): ...this.
4458 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
4459 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
4460 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
4461 * grub-core/lib/legacy_parse.c: New file.
4462 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
4463 * include/grub/i386/pc/vesa_modes_table.h: New file.
4464 * include/grub/legacy_parse.h: Likewise.
4465 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
4466 * util/grub-menulst2cfg.c: New file.
4468 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4470 * grub-core/kern/emu/hostdisk.c
4471 (convert_system_partition_to_system_disk): Initialise node.
4473 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4475 * grub-core/kern/emu/hostdisk.c
4476 (convert_system_partition_to_system_disk): Fix devmapper memory pool
4478 Reported and based on patch by: Modestas Vainius.
4480 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
4482 Fix DM-RAID probing with recent versions of device-mapper udev
4485 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
4486 canonicalise device paths under /dev/mapper/.
4487 (convert_system_partition_to_system_disk): Compare the
4488 uncanonicalised path to /dev/mapper/ rather than the canonicalised
4489 path, since device nodes under /dev/mapper/ are often symlinks.
4491 2010-09-17 Yves Blusseau <blusseau@zetam.org>
4493 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
4495 2010-09-16 Yves Blusseau <blusseau@zetam.org>
4497 * configure.ac: Avoid some annoying error messages if freetype-config
4498 program is not found.
4500 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4502 Support RAID on virtio devices, and others.
4504 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
4506 [__MINGW32__] (grub_find_device): ... this.
4507 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
4508 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
4509 reasonable default if dir is NULL.
4510 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
4512 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
4513 (grub_guess_root_device): Update callers.
4514 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
4516 * util/raid.c (grub_util_getdiskname): Remove.
4517 (grub_util_raid_getmembers): Use grub_find_device rather than
4518 grub_util_getdiskname.
4520 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4522 * docs/grub.texi (serial): Remove obsolete comment about GRUB
4523 needing to be compiled with serial support.
4524 (ls): Indicate that multiple files are accepted.
4525 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
4526 indicate that multiple files are accepted.
4528 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
4530 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
4531 libgrub_a_init.c, and util/bash-completion.d/grub.
4533 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4535 * util/grub-setup.c (setup): Fix incorrect container semantics.
4537 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4539 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
4541 Reported by: J. Nick Terry
4543 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4545 Move embedding routines to partmap sources files.
4547 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
4548 [GRUB_UTIL]: New variable.
4549 (gpt_partition_map_iterate): Set part.parent.
4550 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
4551 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
4552 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
4554 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
4555 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
4556 (grub_partition_map) [GRUB_UTIL]: New field embed.
4557 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
4558 (setup): Use ->embed.
4560 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4562 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
4564 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
4565 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
4567 2010-09-15 Yves Blusseau <blusseau@zetam.org>
4569 Add function to get completions from usage.
4571 * util/bash-completion.d/grub-completion.bash.in: Add function to get
4572 completions from usage. Use LC_ALL=C to get options properly.
4574 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4576 * grub-core/gnulib/basename-lgpl.c: Imported.
4577 * grub-core/gnulib/basename.c: Likewise.
4578 * grub-core/gnulib/dirname-lgpl.c: Likewise.
4579 * grub-core/gnulib/dirname.c: Likewise.
4580 * grub-core/gnulib/dirname.h: Likewise.
4581 * grub-core/gnulib/stripslash.c: Likewise.
4583 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4585 * grub-core/gnulib/error.c: Resynced.
4586 * grub-core/gnulib/getopt.c: Likewise.
4587 * grub-core/gnulib/getopt_int.h: Likewise.
4588 * grub-core/gnulib/regex.h: Likewise.
4589 * grub-core/gnulib/regex_internal.c: Likewise.
4590 * grub-core/gnulib/regex_internal.h: Likewise.
4592 2010-09-15 Szymon Janc <szymon@janc.net.pl>
4594 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
4595 CRC calculations and validity checks.
4596 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
4599 2010-09-15 Szymon Janc <szymon@janc.net.pl>
4601 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
4603 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4605 Fix incorrect echo options handling.
4606 Reported by: Yves Blusseau.
4608 * include/grub/command.h (grub_command_flags_t): New flags
4609 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
4610 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
4611 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
4613 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4615 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
4617 (GRUB_COMMAND_FLAG_MENU): Likewise.
4618 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4619 (GRUB_COMMAND_FLAG_TITLE): Removed.
4620 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4621 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
4622 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
4623 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
4624 (grub_command_flags_t): New enum. All users updated.
4626 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
4628 Fix solaris compilation.
4630 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
4631 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
4632 (grub-emu-list): Likewise.
4634 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4636 Remove deprecated root command.
4638 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
4641 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4643 * util/i386/pc/grub-setup.c: Merge this ...
4644 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
4645 * util/grub-setup.c: ... into this.
4646 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
4649 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4651 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
4654 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4656 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
4659 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4661 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
4662 explicit root argument to set to prevent UUID to be interpreted as
4665 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4667 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
4669 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4671 Don't export grub_gate_a20.
4673 * grub-core/kern/i386/pc/init.c: Remove leftovers.
4674 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
4676 (grub_gate_a20): ... this. All users updated.
4677 * include/grub/i386/pc/init.h: Removed. All users updated.
4679 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4681 Create euro.pf2 which supports most European languages.
4683 * Makefile.am (grubdata_DATA): Add euro.pf2.
4684 (euro.pf2): New target.
4685 (CLEANFILES): Add euro.pf2.
4687 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4689 * configure.ac: Disable emu-usb by default to prevent inadvertent
4692 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4694 Disable usbserial on grub-emu since our libusb code isn't good enough
4697 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
4698 (usbserial_pl2303): Likewise.
4699 (usbserial_ftdi): Likewise.
4701 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4703 * include/grub/disk.h (grub_disk): Remove has_partitions.
4705 * disk/loopback.c (grub_loopback): Remove has_partitions.
4707 (options): Remove partitions. All users updated.
4708 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
4709 * util/i386/pc/grub-setup.c (setup): copy partition table only when
4710 actual partition table is found.
4712 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4714 Remove readability checks (too many false negatives).
4716 * util/grub-install.in: Remove readability checks.
4717 * util/grub-mkconfig.in: Likewise.
4718 * util/grub.d/10_hurd.in: Likewise.
4719 * util/grub.d/10_kfreebsd.in: Likewise.
4720 * util/grub.d/10_linux.in: Likewise.
4721 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
4724 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4726 Enable acpi shutdown on all ACPI platforms.
4728 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
4729 on coreboo, multiboot and EFI.
4730 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
4731 (grub_acpi_halt): Likewise.
4732 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
4733 (grub_cmd_halt): Don't call grub_acpi_halt directly.
4734 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
4735 * grub-core/lib/i386/halt.c (grub_halt)
4736 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
4738 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4740 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
4743 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4745 * grub-core/video/efi_gop.c: Fix over-80-chars line.
4746 * grub-core/video/efi_uga.c: Likewise.
4748 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4750 Filter devaliases and never open same device twice.
4752 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
4753 (last_ihandle): Likewise.
4754 (ofdisk_hash_ent): New member shortest.
4755 (ofdisk_hash_add): Add canonical path too.
4756 (scan): New function.
4757 (grub_ofdisk_iterate): Iterate over hashed entries.
4758 (compute_dev_path): Don't add :0.
4759 (grub_ofdisk_open): Don't really open the disk.
4760 (grub_ofdisk_close): Avoid closing unrelated disk.
4761 (grub_ofdisk_read): Implement reopen logic.
4762 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
4764 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
4767 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4771 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
4772 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
4773 right address. Add sparc64_ieee1275_ldflags.
4774 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
4775 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
4776 to grub_host_to_target_addr
4777 (load_image): Likewise.
4779 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4781 * grub-core/normal/completion.c (complete_file): Handle device
4783 Fix based on patch by Doug Nazar.
4785 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4787 grub-mknetdir script.
4789 * Makefile.util.def (grub-mknetdir): New module.
4790 * tests/util/grub-shell.in: Support boot=net
4791 * util/grub-mknetdir.in: New file.
4793 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4795 videoinfo on non-vbe.
4797 * grub-core/Makefile.core.def (vbeinfo): Removed.
4799 (videoinfo): New module.
4800 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
4801 * grub-core/commands/i386/pc/vbetest.c: Removed.
4802 * grub-core/commands/videoinfo.c: New file.
4803 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
4805 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
4807 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
4808 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
4809 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
4810 mode_number. New parameter mode. All users updated.
4811 (grub_video_gop_iterate): New function.
4812 (grub_video_efi_gop): New member iterate.
4813 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
4814 (grub_vbe_set_video_mode): Remove setting useless fields.
4815 (vbe2videoinfo): New function.
4816 (grub_video_vbe_iterate): Likewise.
4817 (grub_video_vbe_setup): Use vbe2videoinfo.
4818 (grub_video_vbe_print_adapter_specific_info): New function.
4819 (grub_video_vbe_adapter): New fields iterate and
4820 print_adapter_specific_info.
4821 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
4823 (grub_video_mode_info): New field mode_number.
4824 (grub_video_adapter): New fields iterate and
4825 print_adapter_specific_info.
4827 2010-09-13 Tristan Gingold <gingold@free.fr>
4828 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
4829 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4831 * grub-core/commands/efi/lsefisystab.c: New file.
4832 * grub-core/commands/efi/lssal.c: Likewise.
4833 * grub-core/Makefile.core.def (lsacpi): New module.
4834 (lsefisystab): Likewise.
4835 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
4836 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
4837 (grub_efi_sal_system_table): New struct.
4838 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
4839 (grub_efi_sal_system_table_memory_descriptor): Likewise.
4840 (grub_efi_sal_system_table_platform_features): Likewise.
4841 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
4842 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
4843 (grub_efi_sal_system_table_ap_wakeup): Likewise.
4844 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
4846 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4848 Support explicit user claim that a device is BIOS-visible.
4850 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
4851 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
4852 * grub-core/kern/emu/hostdisk.c
4853 (convert_system_partition_to_system_disk): Support mdX.
4854 (find_system_device): New parameter add. All users updated.
4855 (grub_util_biosdisk_is_present): New function.
4856 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
4859 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4861 Search hints support.
4863 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
4866 2010-09-13 Yves Blusseau <blusseau@zetam.org>
4868 Bash completion script for util commands
4870 * Makefile.am: Add util/bash-completion.d directory
4871 * configure.ac: Likewise.
4872 * util/bash-completion.d/Makefile.am: New file.
4873 * util/bash-completion.d/grub-completion.bash.in: Likewise.
4875 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4877 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
4878 (print_backlog): set backlog_ucs4 and backlog_glyphs.
4879 Reported by: Yves Blusseau.
4881 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4883 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
4884 partition size and offset.
4886 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4888 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
4890 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4892 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
4894 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4896 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
4897 (grub_xvasprintf): Likewise.
4899 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4901 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
4903 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4905 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
4906 args ending with NULL.
4908 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4910 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
4913 2010-09-11 Szymon Janc <szymon@janc.net.pl>
4915 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
4917 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4919 Shutdown using ACPI.
4921 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
4922 * grub-core/commands/acpihalt.c: New file.
4923 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
4924 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
4925 (grub_acpi_halt): New proto.
4926 (GRUB_ACPI_SLP_EN): New const.
4927 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
4928 (GRUB_ACPI_OPCODE_*): New enum.
4929 (GRUB_ACPI_EXTOPCODE_*): Likewise.
4931 2010-09-11 Tristan Gingold <gingold@free.fr>
4932 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
4933 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4935 * commands/lsacpi.c: New file.
4936 * grub-core/Makefile.core.def (lsacpi): New module.
4937 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
4938 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
4939 (grub_acpi_madt_entry_header): New struct.
4940 (grub_acpi_madt): Likewise.
4941 (grub_acpi_madt_entry_interrupt_override): Likewise.
4942 (grub_acpi_madt_entry_sapic): Likewise.
4943 (grub_acpi_madt_entry_lsapic): Likewise.
4944 (grub_acpi_madt_entry_platform_int_source): Likewise.
4945 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
4946 (PRIuGRUB_UINT32_T): Likewise.
4947 (PRIxGRUB_UINT64_T): Likewise.
4949 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4951 Implement loading palette on ieee1275_fb.
4953 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
4954 (have_setcolors): Likewise.
4955 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
4956 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
4957 (grub_video_ieee1275_set_palette): Implement.
4959 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4960 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
4962 * util/grub-install.in (grub_partition): New variable.
4963 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
4964 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
4965 Fixes a bug reported by Yves Blusseau.
4967 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4971 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
4972 =grub_cpu_flush_cache on all mips and not only yeeloong.
4973 * configure.ac (COND_mips): New conditional.
4974 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
4976 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
4977 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
4978 [GRUB_LINKER_HAVE_INIT]: New function.
4979 (grub_emu_post_init): Likewise.
4980 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
4981 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
4982 * include/grub/cache.h (_mips): Include mips/cache.h.
4983 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
4984 LVM and RAID prototypes.
4985 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
4986 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
4989 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
4991 * util/grub-install.in: Don't try to verify core.img until after
4992 running grub-mkimage to create it.
4994 2010-09-10 Robert Millan <rmh@gnu.org>
4996 * util/grub.d/10_hurd.in: Add misc readability checks.
4997 * util/grub.d/10_kfreebsd.in: Likewise.
4998 * util/grub.d/10_linux.in: Likewise.
5000 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5002 * util/grub-install.in: ${imgext} won't be defined here until the
5003 install branch is merged. For the meantime, only verify core.img on
5004 i386-pc and sparc64-ieee1275 platforms.
5006 2010-09-10 Robert Millan <rmh@gnu.org>
5008 Solaris support in grub_find_zpool_from_dir(). Thanks
5009 Seth Goldberg for referring to getextmntent() facility.
5011 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
5013 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
5015 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
5016 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
5017 method for finding zpool name.
5019 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
5021 grub-fstest needs the host and hostfs modules while other utilities
5022 actively require those modules to be absent, so grub-fstest needs
5023 its own initialisation and finalisation code.
5025 * Makefile.am (grub_fstest.pp): New target.
5026 (grub_fstest_init.lst): Likewise.
5027 (grub_fstest_init.c): Likewise.
5028 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
5030 2010-09-10 Robert Millan <rmh@gnu.org>
5032 * configure.ac: Check for `struct statfs.f_fstypename' and
5033 `struct statfs.f_mntfromname'.
5035 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
5036 kFreeBSD-specific code.
5038 2010-09-10 Robert Millan <rmh@gnu.org>
5040 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
5041 on ZFS. Now non-main filesystems are supported as / too.
5043 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
5045 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
5046 and grub-core/disk/host.c to ...
5047 (grub-fstest): ... here. Having the host disk implementation
5048 present confuses grub-probe and other utility programs.
5050 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
5051 when writing to a file, not when writing to stdout.
5053 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
5055 * tests/partmap_test.in: New test for partitions.
5056 * Makefile.util.def: Rules for new test.
5058 2010-09-09 Robert Millan <rmh@gnu.org>
5060 * util/grub-probe.c (probe): Fix a pair of unhandled error
5063 2010-09-09 Robert Millan <rmh@gnu.org>
5065 Basic Btrfs support (detection and UUID).
5067 * grub-core/fs/btrfs.c: New file.
5068 * Makefile.util.def (library): Register btrfs.c.
5069 * grub-core/Makefile.core.def: Likewise.
5071 2010-09-08 Robert Millan <rmh@gnu.org>
5073 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
5074 with (optional) parameters to specify device and relative path.
5075 * util/grub-install.in: Use is_path_readable_by_grub() to
5076 verify readability of a few critical files.
5077 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
5078 verify readability of grub.cfg.new.
5080 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5082 Split minix.mod into minix.mod and minix2.mod.
5084 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
5085 * grub-core/Makefile.core.def (minix2): New module.
5086 * grub-core/fs/minix.c: Use definitions instead of runtime version
5088 * grub-core/fs/minix2.c: New file.
5090 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5092 Add new --boot-directory option to replace --root-directory
5094 * util/grub-install.in: Add new --boot-directory option
5095 * util/grub-reboot.in: Likewise.
5096 * util/grub-set-default.in: Likewise.
5098 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5100 * util/grub-mkconfig.in: Use new variable.
5102 2010-09-08 Yves Blusseau <blusseau@zetam.org>
5104 * configure.ac: Define some useful variables.
5106 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5108 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5109 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
5110 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
5111 Use terminfo and don't use cursor-on/cursor-off unless it's known
5113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
5114 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
5116 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
5118 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
5119 starts with "(,", fill the drive containing the loaded image in
5120 between those two characters, but expect that a full partition
5121 specification including partition map names will follow.
5123 2010-09-08 Robert Millan <rmh@gnu.org>
5125 * configure.ac: Remove `--enable-grub-fstest' option.
5126 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
5128 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
5129 `grub-fstest' instead of `grub-probe' for readability verification.
5130 * util/grub-probe.c (probe): Remove readability verification kludge.
5132 2010-09-08 Robert Millan <rmh@gnu.org>
5134 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
5135 initializing `GRUB_FS'.
5137 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
5139 Not command (!) support to GRUB script.
5141 * tests/grub_script_not.in: New test.
5142 * Makefile.util.def: Rules for new test.
5144 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
5145 ! command as a special case.
5146 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
5148 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5150 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
5153 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5155 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
5157 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5159 * docs/grub.texi (Shell-like scripting): Documentation for break,
5160 continue, shift and return commands.
5162 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
5164 Rename CD-ROM to cd on BIOS.
5166 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
5168 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
5170 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5172 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
5173 * util/grub-probe.c (main): Likewise.
5174 * util/i386/pc/grub-setup.c (main): Likewise.
5175 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
5176 Reported and debugged by: alexxy
5178 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5180 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
5183 2010-09-05 Jo Shields <directhex@apebox.org>
5185 * util/grub.d/30_os-prober.in: Add missing classes.
5187 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5189 * docs/grub.texi (Theme file format): Document new position format.
5191 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5193 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
5194 a table. Use @code instead of @verbatim.
5196 2010-09-05 Colin D Bennett <colin@gibibit.com>
5198 Gfxmenu documentation.
5200 * docs/grub.texi (Theme file format): New chapter.
5202 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5204 * grub-core/Makefile.core.def (xzio): New module.
5205 * grub-core/io/xzio.c: New file.
5206 * grub-core/lib/xzembed/xz.h: New file (from xembed).
5207 * grub-core/lib/xzembed/xz_config.h: Likewise.
5208 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
5209 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
5210 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
5211 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
5212 * grub-core/lib/xzembed/xz_private.h: Likewise.
5213 * grub-core/lib/xzembed/xz_stream.h: Likewise.
5214 * include/grub/file.h (grub_file_filter_id): New compression filter
5215 GRUB_FILE_FILTER_XZIO.
5217 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5219 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
5220 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
5223 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5225 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
5226 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
5228 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5230 Uncompressed checksum support.
5232 * grub-core/commands/hashsum.c (options): Add option --uncompress.
5233 (check_list): New parameter uncompress.
5234 (grub_cmd_hashsum): Handle --uncompress.
5236 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5238 Reintroduce testload.
5240 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
5242 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
5243 (GRUB_MOD_INIT): New function.
5244 (GRUB_MOD_FINI): Likewise.
5245 * grub-core/Makefile.core.def (testload): New module.
5247 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5249 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
5250 (uint8_t): New type.
5251 (uint16_t): Likewise.
5252 (uint32_t): Likewise.
5253 (uint64_t): Likewise.
5255 2010-09-05 Szymon Janc <szymon@janc.net.pl>
5257 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
5259 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5261 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
5263 (grub_gzfile_open): Removed. All users updated.
5264 (GRUB_MOD_INIT): New function.
5265 (GRUB_MOD_FINI): Likewise.
5266 * grub-core/kern/file.c (grub_file_filters_all): New variable.
5267 (grub_file_filters_enabled): Likewise.
5268 (grub_file_open): Handle filters.
5269 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
5270 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
5271 * include/grub/file.h (grub_file_filter_id_t): New type.
5272 (grub_file_filter_t): Likewise.
5273 (grub_file_filters_all): New extern variable.
5274 (grub_file_filters_enabled): Likewise.
5275 (grub_file_filter_register): New inline function.
5276 (grub_file_filter_unregister): Likewise.
5277 (grub_file_filter_disable): Likewise.
5278 (grub_file_filter_disable_compression): Likewise.
5279 * include/grub/gzio.h: Removed.
5281 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5283 Filename expansion support for wildcards in GRUB script.
5285 * tests/grub_script_expansion.in: New test.
5286 * Makefile.util.def: Rule for new test.
5288 * grub-core/commands/wildcard.c: New file, implements filename
5289 expansion support for GRUB script.
5290 * grub-core/Makefile.core.def: Rule update for regexp.mod.
5291 * grub-core/script/argv.c: Cosmetic changes.
5292 * grub-core/script/execute.c (grub_script_arglist_to_argv):
5293 Refactored to perform wildcard expansion on arguments.
5294 * include/grub/script_sh.h (grub_script_wildcard_translator): New
5297 * tests/util/grub-shell.in: Fix quoting for read input.
5299 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5301 Support for updating environment variables with matched substrings
5304 * tests/grub_cmd_regexp.in: New test.
5305 * Makefile.util.def: Rule for new test.
5307 * grub-core/commands/regexp.c: New option -s to update environment
5308 variables with regexp matches.
5310 2010-09-04 Szymon Janc <szymon@janc.net.pl>
5312 * include/grub/file.h (grub_file): New member not_easly_seekable.
5313 (grub_file_seekable): New inline function.
5314 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
5316 (grub_gzio_open): Set not_easly_seekable.
5317 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
5318 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
5320 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5322 Support for options to appear multiple times on cmdline.
5324 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
5325 * grub-core/commands/extcmd.c: Support for repeatable option.
5326 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
5327 repeatable option support.
5329 Refactor menuentry into a regular command.
5331 * grub-core/commands/menuentry.c: New file, menuentry command
5333 * grub-core/Makefile.core.def: Rule update for normal.mod.
5334 * grub-core/normal/main.c: Moved menuentry creation to
5335 grub-core/commands/menuentry.c.
5336 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
5337 (grub_menu_execute_entry_real): Removed.
5338 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
5340 (grub_script_execute_menuentry): Removed.
5341 * grub-core/script/parser.y (menuentry): Removed.
5342 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
5343 * grub-core/script/yylex.l (menuentry): Removed.
5344 * include/grub/menu.h (grub_menu_init): New prototype.
5345 (grub_menu_fini): New prototype.
5346 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
5347 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
5348 (grub_script_execute_sourcecode): New prototype.
5350 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5352 "return" command for GRUB script functions.
5354 * tests/grub_script_return.in: New test.
5355 * Makefile.util.def: Rules for new test.
5357 * grub-core/script/execute.c (grub_script_return): New function.
5358 * grub-core/script/main.c: Register/unregister return commaond.
5359 * include/grub/script_sh.h (grub_script_return): New prototype.
5361 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5363 "setparams" command to update positional parameters.
5365 * tests/grub_script_setparams.in: New test.
5366 * Makefile.util.def: Rules for new test.
5368 * grub-core/script/argv.c (grub_script_argv_make): New function.
5369 * grub-core/script/execute.c (replace_scope): New function.
5370 (grub_script_setparams): New function.
5371 * grub-core/script/lexer.c: Remove unused variables.
5372 * grub-core/script/main.c: Register/unregister setparams command.
5373 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
5374 (grub_script_setparams): New prototype.
5376 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5378 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
5381 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5383 Support for passing block of commands as an argument to extcmds.
5385 * Makefile.util.def: Rules for new test.
5386 * tests/grub_script_blockarg.in: New test.
5387 * grub-core/tests/test_blockarg.c: New file, block argument
5388 command used in the test.
5390 * include/grub/extcmd.h (grub_extcmd_context): New struct.
5391 (grub_register_extcmd_prio): New function prototype.
5392 (grub_extcmd_dispatcher): New function prototype.
5393 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
5395 * include/grub/script_sh.h (struct grub_script): New members
5396 `children', `next_siblings' and `refcnt' for block arguments and
5398 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
5399 (grub_script_arg): New member `script' for block argument.
5400 (grub_script_argv): New member `script' for block argument.
5401 (grub_parser_param): New member `scripts' for block argument.
5402 (grub_script_mem_free): New extern function prototype.
5403 (grub_script_ref): New function prototype.
5404 (grub_script_unref): New function prototype.
5406 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
5407 extcmd form to support block arguments.
5408 * grub-core/script/argv.c: Block arguments support.
5409 * grub-core/script/execute.c: Likewise.
5410 * grub-core/script/lexer.c: Likewise.
5411 * grub-core/script/main.c: Likewise.
5412 * grub-core/script/script.c: Likewise.
5413 * grub-core/script/parser.y: Likewise. New `block' and `block0'
5416 * grub-core/commands/acpi.c: Update extcmd implementations with
5417 grub_extcmd_context_t.
5418 * grub-core/commands/cat.c: Likewise.
5419 * grub-core/commands/echo.c: Likewise.
5420 * grub-core/commands/extcmd.c: Likewise.
5421 * grub-core/commands/hashsum.c: Likewise.
5422 * grub-core/commands/hdparm.c: Likewise.
5423 * grub-core/commands/help.c: Likewise.
5424 * grub-core/commands/hexdump.c: Likewise.
5425 * grub-core/commands/i386/cpuid.c: Likewise.
5426 * grub-core/commands/i386/pc/drivemap.c: Likewise.
5427 * grub-core/commands/i386/pc/halt.c: Likewise.
5428 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5429 * grub-core/commands/iorw.c: Likewise.
5430 * grub-core/commands/keystatus.c: Likewise.
5431 * grub-core/commands/loadenv.c: Likewise.
5432 * grub-core/commands/ls.c: Likewise.
5433 * grub-core/commands/lspci.c: Likewise.
5434 * grub-core/commands/memrw.c: Likewise.
5435 * grub-core/commands/probe.c: Likewise.
5436 * grub-core/commands/search_wrap.c: Likewise.
5437 * grub-core/commands/setpci.c: Likewise.
5438 * grub-core/commands/sleep.c: Likewise.
5439 * grub-core/disk/loopback.c: Likewise.
5440 * grub-core/hello/hello.c: Likewise.
5441 * grub-core/loader/i386/bsd.c: Likewise.
5442 * grub-core/loader/xnu.c: Likewise.
5443 * grub-core/term/gfxterm.c: Likewise.
5444 * grub-core/term/serial.c: Likewise.
5445 * grub-core/tests/lib/functional_test.c: Likewise.
5447 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5449 Multi-line quoted strings support.
5451 * grub-core/script/lexer.c (append_newline): Removed.
5452 (grub_script_lexer_yywrap): Refactored.
5453 (grub_script_lexer_init): Refactored.
5454 * grub-core/script/yylex.l (yywrap): New function.
5455 (grub_lexer_resplit): New function.
5456 (grub_lexer_unput): New function.
5457 * include/grub/script_sh.h (grub_lexer_param): New members, unput
5459 * tests/grub_script_echo1.in: Added few more testcases.
5461 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
5463 * grub-core/kern/misc.c: Don't add abort alias in utils.
5464 Reported by: echoline.
5466 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
5468 Add missing files into "make dist" tarball for other platforms.
5470 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
5471 * conf/Makefile.common (dist_noinst_DATA): New variable.
5472 * conf/Makefile.extra-dist: Added missing make dist files.
5473 * grub-core/Makefile.core.def: Likewise.
5475 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5477 Compress grub_prefix.
5479 * grub-core/boot/i386/pc/lnxboot.S: Use
5480 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
5481 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
5482 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
5483 GRUB_MACHINE_PREFIX_END. All users updated.
5484 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
5485 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
5487 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5488 * util/grub-mkimage.c (image_target_desc): Change data_end to
5489 prefix_end. All users updated.
5491 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5493 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
5495 (grub_openbsd_boot): Likewise.
5496 (grub_netbsd_boot): Likewise.
5497 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
5498 (grub_xnu_boot): Likewise.
5500 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5502 * configure.ac: Clean LIBS variable after tests.
5504 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5506 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
5508 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5510 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
5511 echo if libdevmapper will be used.
5513 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
5515 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
5516 constant for the same file.
5518 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5520 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
5522 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5524 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
5527 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
5529 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
5530 required by the boot protocol.
5532 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
5533 ebp and edi members.
5534 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
5535 state.ebp and state.edi.
5536 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
5537 %ebp and %edi according to grub_relocator32_ebp and
5538 grub_relocator32_edi respectively.
5539 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
5542 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5544 Add i386-pc-pxe image target.
5546 * util/grub-mkimage.c (image_target_desc): New enum value
5548 (image_targets): New target i386-pc-pxe.
5549 (generate_image): Handle i386-pc-pxe image.
5551 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5555 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
5556 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
5558 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
5559 (grub_pxe_pxenv): Correct type.
5561 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5563 * NEWS: Document most of the important changes since 1.98.
5565 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5567 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
5568 generated manual page) a little.
5570 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
5572 * docs/grub.texi: Add myself as an author.
5574 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
5576 * Makefile.util.def (libgrub.a): Add missing sunpc.
5577 Reported by: Seth Goldberg.
5579 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5581 Interrupt wrapping and code simplifications.
5583 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
5584 x86_noieee1275 which are functionaly equivalent in this case.
5585 (grub-install): Make source on each platform explicit. Enable on
5587 * gentpl.py (x86_efi_pc): Removed group.
5588 (x86_noefi): Likewise.
5589 (i386_noefi): Likewise.
5590 (x86_noieee1275): Likewise.
5591 (i386_noieee1275): Likewise.
5592 (i386_noefi_noieee1275): Likewise.
5593 (i386_pc_qemu_coreboot): Likewise.
5594 (i386_coreboot_multiboot): Likewise.
5595 (i386_pc_coreboot_multiboot_qemu): Likewise.
5596 (x86_noefi_mips): Likewise.
5597 (noieee1275): Likewise.
5598 (ieee1275_mips): Likewise.
5599 (noemu_noieee1275): Likewise.
5602 (videoinkernel): Likewise.
5603 (videomodules): Likewise.
5604 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
5605 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
5606 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
5607 include/grub/loader.h, include/grub/msdos_partition.h,
5608 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
5609 include/grub/machine/console.h, include/grub/machine/vga.h,
5610 include/grub/machine/vbe.h, include/grub/machine/init.h,
5611 include/grub/machine/kernel.h, include/grub/cpu/time.h,
5612 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
5613 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
5614 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
5615 * grub-core/Makefile.core.def (kernel): Explicit the source for
5616 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
5617 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
5618 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
5619 Use videoinkernel tag.
5620 (usb): Enable on all usb.
5621 (usbserial_common): Likewise.
5622 (usbserial_pl2303): Likewise.
5623 (usbserial_ftdi): Likewise.
5624 (uhci): Enable on all x86.
5625 (ohci): Enable on all pci.
5626 (cmostest): Enable on all CMOS.
5627 (acpi): Include commands/acpi.c on all platforms.
5628 (halt): Add relevant lib/*/halt.c.
5629 (hdparm): Enable on all pci.
5631 (usbtest): Enable on all usb.
5632 (ata): Enable on all pci.
5633 (ata_pthru): Likewise.
5634 (usbms): Enable on all usb.
5635 (usb_keyboard): Likewise.
5636 (font): Use tag videomodules.
5638 (datetime): Use tag cmos. Enable on all noemu.
5639 (mmap): Use tags common and x86.
5640 (gfxterm): Use tag videomodules.
5642 (bitmap_scale): Likewise.
5643 (video_fb): Likewise.
5645 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
5646 adjust padding accordingly. All users updated.
5647 (grub_ohci_transaction): Fix bad format specification.
5648 (GRUB_MOD_INIT): Add asserts for struct size.
5649 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
5650 (grub_alloc_td): Likewise.
5651 (grub_free_queue): Likewise.
5652 (grub_uhci_transfer): Likewise.
5653 (grub_uhci_transaction): Fix bad format specification.
5654 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
5655 (grub_usb_bulk_readwrite): Likewise.
5656 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
5657 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
5659 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
5661 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
5662 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
5664 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
5666 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
5667 ... here. Transformed into C. Made static.
5668 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
5670 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
5671 ... here. Transformed into C. Made static.
5672 * grub-core/kern/i386/pc/startup.S
5673 (grub_biosdisk_check_int13_extensions): Moved from here ...
5674 * grub-core/disk/i386/pc/biosdisk.c
5675 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
5677 * grub-core/kern/i386/pc/startup.S
5678 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
5679 * grub-core/disk/i386/pc/biosdisk.c
5680 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
5681 Transformed into C. Made static.
5682 * grub-core/kern/i386/pc/startup.S
5683 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
5684 * grub-core/disk/i386/pc/biosdisk.c
5685 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
5686 Transformed into C. Made static.
5687 * grub-core/kern/i386/pc/startup.S
5688 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
5689 * grub-core/disk/i386/pc/biosdisk.c
5690 (grub_biosdisk_get_diskinfo_standard): ... here.
5691 Transformed into C. Made static.
5692 * grub-core/kern/i386/pc/startup.S
5693 (grub_biosdisk_get_num_floppies): Moved from here ...
5694 * grub-core/disk/i386/pc/biosdisk.c
5695 (grub_biosdisk_get_num_floppies): ... here.
5696 Transformed into C. Made static.
5697 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
5699 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
5700 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
5701 Transformed into C. Made static.
5702 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
5703 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
5704 Transformed into C. Made static.
5705 * grub-core/kern/i386/ieee1275/init.c: Removed.
5706 * grub-core/kern/i386/misc.S: Likewise.
5707 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
5708 Splitted from here ...
5709 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
5710 Transformed into C. Made static. All users updated.
5711 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
5712 Transformed into C. Made static. All users updated.
5713 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
5715 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
5716 Transformed into C. Made static. All users updated.
5717 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
5719 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
5720 Transformed into C. Made static. All users updated.
5721 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
5722 Removed (replaced by C version).
5723 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
5725 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
5726 Transformed into C. Made static.
5727 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
5729 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
5730 ... here. Transformed into C.
5731 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
5733 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
5734 ... here. Transformed into C.
5735 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
5737 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
5738 ... here. Transformed into C. Made static.
5739 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
5741 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
5742 ... here. Transformed into C.
5743 * grub-core/kern/i386/pc/startup.S
5744 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
5745 * grub-core/video/i386/pc/vbe.c
5746 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
5747 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
5749 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
5750 ... here. Transformed into C.
5751 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
5753 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
5754 ... here. Transformed into C.
5755 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
5757 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
5758 ... here. Transformed into C.
5759 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
5761 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
5762 ... here. Transformed into C.
5763 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
5765 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
5766 ... here. Transformed into C. Made static.
5767 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
5769 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
5770 ... here. Transformed into C. Made static.
5771 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
5773 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
5774 ... here. Transformed into C. Made static.
5775 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
5776 pxe_rm_entry as third argument.
5777 (grub_bios_interrupt): New function.
5778 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
5779 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
5780 of calling grub_stop.
5781 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
5782 * grub-core/lib/efi/halt.c (grub_halt): ...here.
5783 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
5784 * grub-core/lib/emu/halt.c (grub_halt): ... here.
5785 * grub-core/lib/i386/halt.c: Moved from here ...
5786 * grub-core/lib/i386/halt.c: ... here.
5787 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
5788 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
5789 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
5791 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
5792 * include/grub/i386/coreboot/init.h: Removed.
5793 * include/grub/i386/multiboot/init.h: Likewise.
5794 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
5795 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
5796 * include/grub/i386/pc/int.h: New file.
5797 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
5798 (grub_pxe_scan): Removed.
5799 (grub_pxe_call): Update prototype.
5800 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
5802 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
5803 * include/grub/i386/qemu/init.h: Removed.
5804 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
5806 (grub_halt): Likewise.
5807 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
5808 (grub_reboot): Likewise.
5809 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
5810 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
5811 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
5813 2010-08-30 Robert Millan <rmh@gnu.org>
5815 * NEWS: Document addition of ZFS support in `grub-install' and
5818 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
5820 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
5823 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5825 Remove leftover embedding of font objects.
5827 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
5828 * util/grub-install.in (font): Removed.
5829 * util/grub-mkimage.c (generate_image): Remove font support. All users
5832 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5834 Remove leftover embedding of font objects.
5836 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
5837 * util/grub-install.in (font): Removed.
5838 * util/grub-mkimage.c (generate_image): Remove font support. All users
5841 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5843 * docs/grub.texi (Network): Fix reference to pxe_blksize.
5844 Reported by: Ian Turner
5846 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5848 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
5849 timeout to avoid indefinite boot stalling.
5851 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5853 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
5854 (grub_env_write_color_highlight): Likewise.
5856 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5858 * grub-core/normal/term.c (print_more): Return to normal and not
5859 to standard state after printing "---MORE---".
5861 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5863 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
5864 Mask out the bit 0x80 since it has other meaning that specifiing color.
5866 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
5868 New relocator. Allows for more kernel support and more straightforward
5871 * Makefile.am (BOOTTARGET): New variable.
5873 (linux.init.x86_64): New target.
5874 (linux.init.i386): Likewise.
5875 (multiboot.elf): Likewise.
5876 (kfreebsd.elf): Likewise.
5877 (kfreebsd.aout): Likewise.
5878 (pc-chainloader.elf): Likewise.
5879 (pc-chainloader.bin): Likewise.
5880 (ntldr.elf): Likewise.
5881 (ntldr.bin): Likewise.
5882 (multiboot2.elf): Likewise.
5883 (kfreebsd.init.x86_64): Likewise.
5884 (kfreebsd.init.i386): Likewise.
5885 (knetbsd.init.i386): Likewise.
5886 (kopenbsd.init.i386): Likewise.
5887 (knetbsd.init.x86_64): Likewise.
5888 (kopenbsd.init.x86_64): Likewise.
5889 (linux-initramfs.i386): Likewise.
5890 (linux-initramfs.x86_64): Likewise.
5891 (kfreebsd-mfsroot.i386.img): Likewise.
5892 (knetbsd.image.i386): Likewise.
5893 (kopenbsd.image.i386): Likewise.
5894 (kopenbsd.image.x86_64): Likewise.
5895 (knetbsd.miniroot-image.i386.img): Likewise.
5896 (kfreebsd-mfsroot.x86_64.img): Likewise.
5897 (knetbsd.image.x86_64): Likewise.
5898 (knetbsd.miniroot-image.x86_64.img): Likewise.
5899 (kfreebsd-mfsroot.i386.gz): Likewise.
5900 (bootcheck-kfreebsd-i386): Likewise.
5901 (kfreebsd-mfsroot.x86_64.gz): Likewise.
5902 (bootcheck-kfreebsd-x86_64): Likewise.
5903 (knetbsd.miniroot-image.i386.gz): Likewise.
5904 (bootcheck-knetbsd-i386): Likewise.
5905 (bootcheck-kopenbsd-i386): Likewise.
5906 (bootcheck-kopenbsd-x86_64): Likewise.
5907 (knetbsd.miniroot-image.x86_64.gz): Likewise.
5908 (bootcheck-knetbsd-x86_64): Likewise.
5909 (bootcheck-linux-i386): Likewise.
5910 (bootcheck-linux-x86_64): Likewise.
5911 (bootcheck-linux16-i386): Likewise.
5912 (bootcheck-linux16-x86_64): Likewise.
5913 (bootcheck-multiboot): Likewise.
5914 (bootcheck-multiboot2): Likewise.
5915 (bootcheck-kfreebsd-aout): Likewise.
5916 (bootcheck-pc-chainloader): Likewise.
5917 (bootcheck-ntldr): Likewise.
5918 (CLEANFILES): Add new targets.
5919 (BOOTCHECKS): New variable.
5920 (.PHONY): Add bootchecks.
5921 (SUCCESSFUL_BOOT_STRING): New variable.
5922 (BOOTCHECK_TIMEOUT): Likewise.
5923 (bootcheck): New target
5924 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
5925 * configure.ac: Correct efiemu excuse.
5926 * docs/grub.texi (Supported kernels): New chapter.
5927 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
5928 include/grub/mm_private.h. Simplify inclusion of
5929 include/grub/boot.h, include/grub/loader.h
5930 and include/grub/msdos_partition.h
5931 (KERNEL_HEADER_FILES) [i386_coreboot]:
5932 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
5933 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
5934 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
5935 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
5936 include/grub/machine/loader.h.
5937 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
5938 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
5940 (pci.mod): Enable on i386-multiboot.
5941 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
5942 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
5944 (relocator.mod): Rewritten.
5945 (aout.mod): Enable on all x86.
5946 (bsd.mod): Likewise.
5947 (ntldr.mod): New module.
5948 (linux.mod): Use loader/i386/linux.c on all x86.
5949 (xnu.mod): Enable on all x86.
5950 (vga_text.mod): disable on EFI and QEMU.
5951 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
5952 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
5953 * grub-core/efiemu/loadcore.c: Likewise.
5954 * grub-core/efiemu/main.c: Likewise.
5955 (grub_efiemu_exit_boot_services): Removed.
5956 (grub_efiemu_finish_boot_services): Likewise.
5957 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
5959 * grub-core/efiemu/i386/nocfgtables.c: New file.
5960 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
5961 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
5962 (grub_efi_finish_boot_services): Moved from here ...
5963 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
5964 Fille finish memory map and related data.
5965 (finish_mmap_buf): New variable.
5966 (grub_efi_uintn_t finish_mmap_size): Likewise.
5967 (grub_efi_uintn_t finish_key): Likewise.
5968 (grub_efi_uintn_t finish_desc_size): Likewise.
5969 (grub_efi_uint32_t finish_desc_version): Likewise.
5970 (grub_efi_is_finished): Likewise.
5971 (grub_efi_get_memory_map): Use saved memory map if EFI is already
5973 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
5974 (grub_elf64_phdr_iterate): Likewise.
5975 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
5976 (grub_os_area_size): Likewise.
5977 (grub_machine_init): Don't reserve os area.
5978 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
5979 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
5980 * grub-core/kern/i386/loader.S: Removed.
5981 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
5982 (grub_os_area_size): Likewise.
5983 (grub_machine_init): Don't reserve os area.
5984 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
5985 Don't call grub_dl_unload_all.
5986 Don't include loader.S.
5987 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
5988 Declare the memory after _end as available.
5989 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
5990 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
5991 (GRUB_MM_ALLOC_MAGIC): Moved from here...
5992 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
5993 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
5994 * include/grub/mm_private.h (grub_mm_header): ... here.
5995 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
5996 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
5997 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
5998 (grub_mm_region): ..here. Removed addr. Added pre_size.
6000 * grub-core/kern/mm.c (base): Renamed to ...
6001 (grub_mm_base): ... this. Made global.
6002 (grub_real_malloc): Alloc from end of region.
6003 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
6004 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
6005 * grub-core/kern/powerpc/cache_flush.S: ... here.
6006 * grub-core/lib/efi/relocator.c: New file.
6007 * grub-core/lib/i386/relocator.c: Rewritten.
6008 * grub-core/lib/i386/relocator16.S: New file.
6009 * grub-core/lib/i386/relocator32.S: Likewise.
6010 * grub-core/lib/i386/relocator64.S: Likewise.
6011 * grub-core/lib/i386/relocator_asm.S: Rewritten.
6012 * grub-core/lib/i386/relocator_common.S: New file.
6013 * grub-core/lib/ieee1275/relocator.c: Likewise.
6014 * grub-core/lib/mips/relocator.c: Rewritten.
6015 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
6016 stylistic adjustments.
6017 * grub-core/lib/powerpc/relocator.c: New file.
6018 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
6019 * grub-core/lib/relocator.c: Rewritten.
6020 * grub-core/lib/x86_64/relocator_asm.S: New file.
6021 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
6022 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
6023 (bsd_tag): New struct.
6024 (tags): New variable.
6025 (tags_last): Likewise.
6026 (netbsd_module): New struct.
6027 (netbsd_mods): New variable.
6028 (netbsd_mods_last): Likewise.
6029 (openbsd_opts): New parameter "serial".
6030 (OPENBSD_SERIAL_ARG): New definition.
6031 (netbsd_opts): New parameter "serial".
6032 (NETBSD_SERIAL_ARG): New definition.
6033 (grub_freebsd_add_meta): Reorganised into ...
6034 (grub_bsd_add_meta): ...this. All users updated.
6035 (grub_freebsd_add_mmap): Reorganised into ...
6036 (generate_e820_mmap): ...this...
6037 (grub_bsd_add_mmap): ...and this. All users updated.
6038 (grub_freebsd_list_modules): Use tags.
6039 (grub_netbsd_add_meta_module): New function.
6040 (grub_netbsd_list_modules): Likewise.
6041 (grub_freebsd_boot): Use relocator and finish EFI.
6042 (grub_openbsd_boot): Likewise.
6043 (grub_netbsd_setup_video): New function.
6044 (grub_netbsd_add_modules): Likewise.
6045 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
6047 (grub_bsd_unload): Unload tags.
6048 (grub_bsd_load_aout): Use relocator.
6049 (grub_bsd_elf32_size_hook): New function.
6050 (grub_bsd_elf32_hook): Use relocator.
6051 (grub_bsd_elf64_size_hook): New function.
6052 (grub_bsd_elf64_hook): Use relocator.
6053 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
6054 (grub_bsd_load): Zero-out openbsd_ramdisk.
6055 (grub_bsd_load): Use relocator.
6056 (grub_cmd_openbsd): Support serial.
6057 (grub_cmd_netbsd): Support modules.
6058 (grub_cmd_freebsd_module): Use relocator.
6059 (grub_netbsd_module_load): New function.
6060 (grub_cmd_netbsd_module): Likewise.
6061 (grub_cmd_openbsd_ramdisk): Likewise.
6062 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
6064 (GRUB_MOD_FINI): Unregister new commands.
6065 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
6066 (grub_freebsd_load_elfmodule_obj): Use relocator.
6067 (grub_freebsd_load_elfmodule): Likewise.
6068 (grub_freebsd_load_elf_meta): Likewise.
6069 (grub_netbsd_load_elf_meta): New function.
6070 (grub_openbsd_find_ramdisk): Likewise.
6071 * grub-core/loader/i386/bsd_helper.S: Removed.
6072 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
6073 * grub-core/loader/i386/bsd_trampoline.S: Removed.
6074 * grub-core/loader/i386/efi/linux.c: Likewise.
6075 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
6076 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
6077 (DEFAULT_VIDEO_MODE): Likewise.
6078 (real_mode_target): New variable.
6079 (prot_mode_target): Likewise.
6080 (initrd_mem_target): Likewise.
6081 (relocator): Likewise.
6082 (efi_mmap_buf): Likewise.
6083 (efi_mmap_size): Likewise.
6084 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
6085 (free_pages): Use relocator.
6086 (allocate_pages): Account for efi_mmap and use relocator. Return error.
6087 (grub_linux_setup_video): Return error.
6088 (grub_linux_trampoline_start): Removed.
6089 (grub_linux_trampoline_end): Likewise.
6090 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
6091 andd video parameters depending on firmware.
6092 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
6093 [GRUB_MACHINE_EFI]: Pass EFI parameters.
6094 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
6095 (grub_cmd_initrd): Use relocator.
6096 * grub-core/loader/i386/linux_trampoline.S: Removed.
6097 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
6098 (elf_sec_entsize): Likewise.
6099 (elf_sec_shstrndx): Likewise.
6100 (elf_sections): Likewise.
6101 (grub_multiboot_load): Use relocator.
6102 (grub_multiboot_get_mbi_size): Account for sections.
6103 (grub_multiboot_make_mbi): Use relocator and support sections.
6104 (grub_multiboot_add_elfsyms): New function.
6105 (grub_multiboot_free_mbi): Free sections.
6106 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
6107 (grub_linux_real_target): Likewise.
6108 (grub_linux_real_chunk): Likewise.
6109 (grub_linux16_prot_size): Likewise.
6110 (grub_linux16_boot): Use relocator.
6111 (grub_linux_unload): Unload relocator.
6112 (grub_cmd_linux): Use relocator.
6113 (grub_cmd_initrd): Likewise.
6114 * grub-core/loader/i386/pc/ntldr.c: New file.
6115 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
6116 Don't try to guess CPU frequency.
6117 (grub_xnu_set_video): Stretch bitmap.
6118 (grub_xnu_boot): Use relocator.
6119 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
6120 (grub_linux_unload): Free relocator.
6121 (grub_linux_load32): Use relocator.
6122 (grub_linux_load64): Likewise.
6123 (grub_cmd_initrd): Likewise.
6124 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
6125 (grub_multiboot_unload): Unload relocator.
6126 (grub_cmd_multiboot): Use relocator.
6127 (grub_cmd_module): Likewise.
6128 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
6129 Use relocator and support sections.
6130 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
6131 (elf_sec_entsize): Likewise.
6132 (elf_sec_shstrndx): Likewise.
6133 (elf_sections): Likewise.
6134 (grub_multiboot_load): Use relocator.
6135 (grub_multiboot_get_mbi_size): Account for sections.
6136 (grub_multiboot_make_mbi): Use relocator and support sections.
6137 (grub_multiboot_add_elfsyms): New function.
6138 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
6139 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
6140 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
6141 Prototype changed. All users updated.
6142 (grub_xnu_align_heap): Simplified.
6143 (grub_xnu_writetree_toheap): Likewise.
6144 (grub_xnu_unload): Unload relocator.
6145 (grub_cmd_xnu_kernel): Use relocator.
6146 (grub_cmd_xnu_kernel64): Likewise.
6147 (grub_xnu_register_memory): Simplified.
6148 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
6149 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
6151 (grub_console_checkkey): Likewise.
6152 (grub_console_getkey): Likewise.
6153 (grub_console_getwh): Likewise.
6154 (grub_console_getxy): Likewise.
6155 (grub_console_gotoxy): Likewise.
6156 (grub_console_cls): Likewise.
6157 (grub_console_setcolorstate): Likewise.
6158 (grub_console_setcursor): Likewise.
6159 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
6160 * grub-core/tests/boot/kbsd.init-i386.S: New file.
6161 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
6162 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
6163 * grub-core/tests/boot/kernel-8086.S: Likewise.
6164 * grub-core/tests/boot/kernel-i386.S: Likewise.
6165 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
6166 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
6167 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
6168 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
6169 * grub-core/tests/boot/knetbsd.cfg: Likewise.
6170 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
6171 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
6172 * grub-core/tests/boot/linux.cfg: Likewise.
6173 * grub-core/tests/boot/linux.init-i386.S: Likewise.
6174 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
6175 * grub-core/tests/boot/linux16.cfg: Likewise.
6176 * grub-core/tests/boot/multiboot.cfg: Likewise.
6177 * grub-core/tests/boot/multiboot2.cfg: Likewise.
6178 * grub-core/tests/boot/ntldr.cfg: Likewise.
6179 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
6180 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
6181 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
6183 * include/grub/dl.h (grub_dl_unload_all): Removed.
6184 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
6185 (grub_efi_finish_boot_services): Change prototype.
6186 (grub_efi_is_finished): New variable.
6187 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
6189 (grub_efiemu_finish_boot_services): Removed.
6190 (grub_machine_efiemu_init_tables): New prototype.
6191 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
6192 (grub_elf64_phdr_iterate): Likewise.
6193 * include/grub/i386/bsd.h: Include relocator.h.
6194 (freebsd_tag_header): New struct.
6195 (grub_openbsd_bios_mmap): Removed.
6196 (grub_unix_real_boot): Removed.
6197 (grub_freebsd_load_elfmodule32): Changed prototype.
6198 (grub_freebsd_load_elfmodule_obj64): Likewise.
6199 (grub_freebsd_load_elf_meta32): Likewise.
6200 (grub_freebsd_load_elf_meta64): Likewise.
6201 (grub_freebsd_add_meta): Removed.
6202 (grub_netbsd_load_elf_meta32): New prototype.
6203 (grub_netbsd_load_elf_meta64): Likewise.
6204 (grub_bsd_add_meta): Likewise.
6205 (grub_openbsd_ramdisk_descriptor): New struct.
6206 (grub_openbsd_find_ramdisk32): New prototype.
6207 (grub_openbsd_find_ramdisk64): Likewise.
6208 * include/grub/i386/coreboot/loader.h: Removed.
6209 * include/grub/i386/efi/loader.h: Likewise.
6210 * include/grub/i386/ieee1275/loader.h: Likewise.
6211 * include/grub/i386/linux.h (linux_kernel_header): Change void *
6213 * include/grub/i386/loader.h: Removed.
6214 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
6216 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
6217 (grub_phys_addr_t): New type.
6218 (grub_vtop): New inline function.
6219 (grub_map_memory): Likewise.
6220 (grub_unmap_memory): Likewise.
6221 * include/grub/i386/multiboot/loader.h: Removed.
6222 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
6223 (NETBSD_BTINFO_CONSOLE): New definition.
6224 (NETBSD_BTINFO_SYMTAB): Likewise.
6225 (NETBSD_BTINFO_MODULES): Likewise.
6226 (NETBSD_BTINFO_FRAMEBUF): Likewise.
6227 (grub_netbsd_bootinfo): New struct.
6228 (grub_netbsd_btinfo_common): Use explicit bitsize.
6229 (grub_netbsd_btinfo_mmap_entry): Removed.
6230 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
6231 (grub_netbsd_btinfo_bootdisk): New struct.
6232 (grub_netbsd_btinfo_symtab): Likewise.
6233 (grub_netbsd_btinfo_serial): Likewise.
6234 (grub_netbsd_btinfo_modules): Likewise.
6235 (grub_netbsd_btinfo_framebuf): Likewise.
6236 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
6237 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
6239 (grub_openbsd_bootargs): Use explicit bitsize.
6240 (grub_openbsd_bootarg_console): New struct.
6241 (GRUB_OPENBSD_COM_MAJOR): New definition.
6242 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
6243 * include/grub/i386/pc/efiemu.h: Removed.
6244 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
6245 * include/grub/i386/qemu/loader.h: Removed.
6246 * include/grub/i386/relocator.h: Rewritten.
6247 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
6248 * include/grub/mips/memory.h: New file.
6249 * include/grub/mips/multiboot.h: Rewritten.
6250 * include/grub/mips/relocator.h: Rewritten.
6251 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
6252 (grub_vtop): New function.
6253 (grub_map_memory): Likewise.
6254 (grub_unmap_memory): Likewise.
6255 * include/grub/misc.h (ALIGN_DOWN): New definition.
6256 * include/grub/mm.h (grub_mm_check_real): New proto.
6257 (GRUB_MM_CHECK): New definition.
6258 * include/grub/mm_private.h: New file.
6259 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
6260 (grub_multiboot_get_mbi_size): Removed.
6261 (grub_multiboot_make_mbi): Change prottype.
6262 (grub_multiboot_set_accepts_video): New proto.
6263 (grub_multiboot_add_elfsyms): Likewise.
6264 (grub_multiboot_payload_eip): New variable.
6265 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
6267 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
6269 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
6270 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
6271 * include/grub/powerpc/ieee1275/loader.h: Removed.
6272 * include/grub/powerpc/memory.h: New file.
6273 * include/grub/powerpc/relocator.h: Likewise.
6274 * include/grub/relocator.h: Likewise.
6275 * include/grub/relocator_private.h: Likewise.
6276 * include/grub/sparc64/ieee1275/loader.h: Removed.
6277 * include/grub/x86_64/memory.h: New file.
6278 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
6279 (grub_xnu_heap_malloc): Likewise.
6280 (grub_xnu_heap_real_start): Removed.
6281 (grub_xnu_heap_start): Likewise.
6282 (grub_xnu_relocator): New variable.
6283 (grub_xnu_heap_target_start): Likewise.
6284 * tests/util/grub-shell.in: Support non-pc.
6285 * util/grub-mkimage.c (image_targets): Fix multiboot target.
6287 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6289 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
6291 (grub_bidi_logical_to_visual): Check that malloc succeded.
6292 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
6294 (grub_xputs_normal): Likewise.
6296 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6298 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
6301 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6303 * grub-core/efiemu/runtime/efiemu.sh: Removed.
6305 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6307 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
6309 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6311 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
6314 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
6316 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
6318 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6320 * grub-core/normal/term.c (print_more): Fix a memory leak.
6321 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
6322 (grub_xputs_normal): Likewise.
6324 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6326 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
6327 the begining of the string
6329 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6331 * grub-core/script/script.c (grub_script_parse): Free parsed on
6334 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6336 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
6339 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6341 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
6344 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6346 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
6347 (scroll_up): Fix a memory leak.
6349 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6351 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
6354 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
6356 Handle USB pendrives exposed as floppies.
6358 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
6360 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
6361 Check for partitions on all devices.
6363 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6365 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
6366 (readkey): Likewise.
6368 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
6370 Multiple variable names support to "export" command.
6372 * normal/context.c (grub_cmd_export): "export" command supports
6373 multiple variable names.
6375 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
6377 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
6378 --target=drive output to Mach device name.
6380 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6382 New Automake based build system for GRUB.
6384 * ABOUT-NLS: New file.
6385 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
6386 in Makefile.util.def file.
6387 * Makefile.util.def: New file. Autogen build definitions file for
6389 * conf/Makefile.common: New file. Common variables for GRUB host
6390 utils and target modules.
6391 * conf/Makefile.extra-dist: New file. Extra files for make dist.
6392 * docs/Makefile.am: New file. Automake file for docs.
6393 * gentpl.py: New file. Python script to generate Autogen
6395 * grub-core/Makefile.am: New file. GRUB target modules' rules
6396 that doesn't fit in Makefile.core.def file.
6397 * grub-core/Makefile.core.def: New file. Autogen build
6398 definitions file for GRUB target modules.
6399 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
6400 specific setjmp.S file.
6401 * po/Makefile.am: New file.
6403 * .bzrignore: New ignores.
6404 * INSTALL: New requirements, without Ruby.
6405 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
6406 * autogen.sh: Updated to invoke autogen as necessary.
6407 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
6408 and defines for Automake conditionals.
6409 * geninit.sh: Refactoring.
6411 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
6413 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
6416 * include/grub/test.h: Fix functional test modules' naming.
6417 * grub-core/tests/example_functional_test.c: Fix test module name.
6419 * util/misc.c: Hosted versions' of grub functions for libgrub.a
6420 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
6421 * util/grub-editenv.c: Likewise.
6422 * util/grub-fstest.c: Likewise.
6423 * util/grub-mkdevicemap.c: Likewise.
6424 * util/grub-mkfont.c: Likewise.
6425 * util/grub-mkimage.c: Likewise.
6426 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6427 * util/grub-probe.c: Likewise.
6428 * util/grub-script-check.c: Likewise.
6429 * util/i386/pc/grub-setup.c: Likewise.
6430 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6432 * tests/util/grub-shell.in: Fix override directory path.
6433 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
6434 * util/import_gcry.py: Create Makefile.gcry.def file instead.
6436 * util/lvm.c: Update #includes.
6437 * util/raid.c: Likewise.
6438 * util/resolve.c: Likewise.
6439 * grub-core/bus/emu/pci.c: Likewise.
6440 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
6441 * grub-core/lib/posix_wrap/string.h: Likewise.
6442 * grub-core/kern/emu/main.c: Likewise.
6444 * grub-core/gensymlist.sh: New file. Script for generating kernel
6446 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
6448 * grub-core/gentrigtables.c: Fix unused variable warnings.
6450 * Makefile.in: Removed.
6451 * conf/any-emu.rmk: Removed.
6452 * conf/common.rmk: Removed.
6453 * conf/i386-coreboot.rmk: Removed.
6454 * conf/i386-efi.rmk: Removed.
6455 * conf/i386-ieee1275.rmk: Removed.
6456 * conf/i386-multiboot.rmk: Removed.
6457 * conf/i386-pc.rmk: Removed.
6458 * conf/i386-qemu.rmk: Removed.
6459 * conf/i386.rmk: Removed.
6460 * conf/mips-yeeloong.rmk: Removed.
6461 * conf/mips.rmk: Removed.
6462 * conf/powerpc-ieee1275.rmk: Removed.
6463 * conf/sparc64-ieee1275.rmk: Removed.
6464 * conf/tests.rmk: Removed.
6465 * conf/x86-efi.rmk: Removed.
6466 * conf/x86_64-efi.rmk: Removed.
6467 * gendistlist.sh: Removed.
6468 * geninitheader.sh: Removed.
6469 * genkernsyms.sh.in: Removed.
6470 * genmk.rb: Removed.
6471 * gensymlist.sh.in: Removed.
6472 * mkinstalldirs: Removed.
6474 * grub-core/boot: ... to here.
6476 * grub-core/bus: ... to here.
6477 * commands: Moved ...
6478 * grub-core/commands: ... to here.
6480 * grub-core/disk: ... to here.
6482 * grub-core/efiemu: ... to here.
6484 * grub-core/font: ... to here.
6486 * grub-core/fs: ... to here.
6487 * gencmdlist.sh: Moved ...
6488 * grub-core/gencmdlist.sh: ... to here.
6489 * genemuinit.sh: Moved ...
6490 * grub-core/genemuinit.sh: ... to here.
6491 * genemuinitheader.sh: Moved ...
6492 * grub-core/genemuinitheader.sh: ... to here.
6493 * genfslist.sh: Moved ...
6494 * grub-core/genfslist.sh: ... to here.
6495 * genhandlerlist.sh: Moved ...
6496 * grub-core/genhandlerlist.sh: ... to here.
6497 * genmoddep.awk: Moved ...
6498 * grub-core/genmoddep.awk: ... to here.
6499 * genmodsrc.sh: Moved ...
6500 * grub-core/genmodsrc.sh: ... to here.
6501 * genpartmaplist.sh: Moved ...
6502 * grub-core/genpartmaplist.sh: ... to here.
6503 * genparttoollist.sh: Moved ...
6504 * grub-core/genparttoollist.sh: ... to here.
6505 * genterminallist.sh: Moved ...
6506 * grub-core/genterminallist.sh: ... to here.
6507 * gentrigtables.c: Moved ...
6508 * grub-core/gentrigtables.c: ... to here.
6509 * genvideolist.sh: Moved ...
6510 * grub-core/genvideolist.sh: ... to here.
6511 * gettext: Moved ...
6512 * grub-core/gettext: ... to here.
6513 * gfxmenu: Moved ...
6514 * grub-core/gfxmenu: ... to here.
6516 * grub-core/gnulib: ... to here.
6518 * grub-core/hello: ... to here.
6520 * grub-core/hook: ... to here.
6522 * grub-core/io: ... to here.
6524 * grub-core/kern: ... to here.
6526 * grub-core/lib: ... to here.
6528 * grub-core/loader: ... to here.
6530 * grub-core/mmap: ... to here.
6532 * grub-core/normal: ... to here.
6533 * partmap: Moved ...
6534 * grub-core/partmap: ... to here.
6535 * parttool: Moved ...
6536 * grub-core/parttool: ... to here.
6538 * grub-core/script: ... to here.
6540 * grub-core/term: ... to here
6541 * tests/example_functional_test.c: Moved ...
6542 * grub-core/tests/example_functional_test.c: ... to here.
6543 * tests/lib/functional_test.c: Moved ...
6544 * grub-core/tests/lib/functional_test.c: ... to here.
6545 * tests/lib/test.c: Moved ...
6546 * grub-core/tests/lib/test.c: ... to here.
6548 * grub-core/video: ... to here.
6550 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6552 Replace --enable-grub-emu-modules with grub-emu-lite.
6554 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
6557 * include/grub/emu/misc.h (grub_emu_init): New prototype.
6558 * kern/emu/full.c: New file. For grub-emu specific initialization.
6559 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
6560 * kern/emu/main.c: Call initialization function grub_emu_init.
6562 * Makefile.in: Include grub-emu-lite in install.
6563 * commands/parttool.c: Use grub_no_autoload to differentiate
6564 between grub-emu and grub-emu-lite.
6565 * include/grub/misc.h: New variable grub_no_autoload.
6567 * conf/any-emu.rmk: New rules for grub-emu-lite.
6568 * configure.ac: Remove --enable-grub-emu-modules.
6569 * genmk.rb: Cleanup unnecessary rules.
6570 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
6572 * normal/main.c: Don't load list files on grub-emu-lite.
6573 * util/misc.c (grub_arch_sync_caches): Removed.
6575 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
6577 * kern/mips/startup.S (grub_prefix): Update comment to refer to
6578 grub-mkimage rather than grub-mkelfimage.
6579 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
6581 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
6583 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
6584 a key after CapsLock or NumLock. It's just a qemu bug.
6586 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6588 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
6589 needed by libusb wrapper.
6591 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6593 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
6595 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6597 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
6598 --nounzip is passed.
6600 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
6602 USB hotunplugging and USB serial support.
6604 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
6605 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
6606 (grub_uhci_transfer): Respect timeout and set *actual.
6607 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
6608 non-standard length.
6609 (grub_usb_device_attach): Autoload modules.
6610 (GRUB_MOD_INIT): Set grub_term_poll_usb.
6611 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
6612 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
6614 (grub_usb_add_hub): Fill nports and children.
6615 (attach_root_port): Receive hub instead of controller.
6616 All users updated. Fill hub->devices.
6617 (grub_usb_root_hub): Allocate hub->devices.
6618 (detach_device): New function.
6619 (poll_nonroot_hub): Fill children and detach devices.
6620 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
6621 actual arguments. All users updated.
6622 (grub_usb_bulk_read_extended): New function.
6623 * bus/usb/serial/common.c: New file.
6624 * bus/usb/serial/ftdi.c: Likewise.
6625 * bus/usb/serial/pl2303.c: Likewise.
6626 * commands/terminal.c (handle_command): Support wildcard.
6627 * commands/usbtest.c: Output "Unknown" instead of empty string.
6628 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
6629 (usbserial_common_mod_SOURCES): New variable.
6630 (usbserial_common_mod_CFLAGS): Likewise.
6631 (usbserial_common_mod_LDFLAGS): Likewise.
6632 (pkglib_MODULES): Add usbserial_pl2303.mod.
6633 (usbserial_pl2303_mod_SOURCES): New variable.
6634 (usbserial_pl2303_mod_CFLAGS): Likewise.
6635 (usbserial_pl2303_mod_LDFLAGS): Likewise.
6636 (pkglib_MODULES): Add usbserial_ftdi.mod.
6637 (usbserial_ftdi_mod_SOURCES): New variable.
6638 (usbserial_ftdi_mod_CFLAGS): Likewise.
6639 (usbserial_ftdi_mod_LDFLAGS): Likewise.
6640 (pkglib_MODULES): Add serial.mod.
6641 (serial_mod_SOURCES): New variable.
6642 (serial_mod_CFLAGS): Likewise.
6643 (serial_mod_LDFLAGS): Likewise.
6644 * conf/i386-pc.rmk: Likewise.
6645 * conf/mips-yeeloong.rmk: Likewise.
6646 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
6647 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6648 * disk/usbms.c (first_available_slot): New variable.
6649 (grub_usbms_attach): Don't reuse free slots due to potential cache
6651 * include/grub/serial.h: Moved to ..
6652 * include/grub/ns8250.h: ...this.
6653 * include/grub/serial.h: New file.
6654 * include/grub/term.h (grub_term_poll_usb): New variable.
6655 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
6656 readkey. All users updated.
6657 (grub_terminfo_output_state): Pass term to put.
6658 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
6659 (grub_usb_controller_dev): Add timeout and actual arguments to
6660 transfer. All users updated.
6661 (grub_usb_interface): New field detach_data.
6662 (grub_usb_device): New fields children and nports.
6663 (grub_usb_ep_type_t): New type.
6664 (grub_usb_get_ep_type): New function.
6665 (grub_usb_bulk_read_extended): Likewise.
6666 * include/grub/usbdesc.h (grub_usb_desc): New type.
6667 * include/grub/usbserial.h: New file.
6668 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
6669 * kern/term.c (grub_term_poll_usb): New variable.
6670 (grub_getkey): Call grub_term_poll_usb if set.
6671 (grub_checkkey): Likewise.
6672 (grub_getkeystatus): Likewise.
6673 * term/serial.c: Moved controller-specific parts to ...
6674 * term/ns8250.c: ... here.
6675 * term/serial.c: Mostly rewritten.
6676 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
6679 2010-08-20 Robert Millan <rmh@gnu.org>
6681 Make kFreeBSD code more generic to support ext2fs as root, ufs as
6682 a separate module and maybe other interesting combinations.
6684 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
6685 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
6686 (kfreebsd_entry): Add generic filesystem module load routine.
6687 Map GRUB `ext2' to kFreeBSD `ext2fs'.
6689 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
6691 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
6692 "numcenter" (I misunderstood the purpose of this entry).
6693 * docs/grub.texi (sendkey): Likewise.
6695 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
6697 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
6698 status flag options; simply omitting the option is equivalent and
6699 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
6700 (keysym_table): Rename "num5numlock" to "numlock".
6701 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
6702 can uniformly say that only the last of multiple `sendkey'
6703 invocations has any effect.
6704 * docs/grub.texi (sendkey): New section.
6706 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
6708 * commands/i386/pc/sendkey.c (options): Fix three typos.
6710 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6712 Implement sendkey support.
6714 * commands/i386/pc/sendkey.c: New file.
6715 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
6716 (sendkey_mod_SOURCES): New variable.
6717 (sendkey_mod_CFLAGS): Likewise.
6718 (sendkey_mod_LDFLAGS): Likewise.
6720 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
6722 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
6723 fix warnings from Autoconf.
6725 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
6727 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
6728 to avoid false positives with some assemblers that output things
6729 like "someprefix_func" as part of their output.
6731 2010-08-15 Robert Millan <rmh@gnu.org>
6733 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
6735 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
6736 grub_get_libzfs_handle() errors.
6738 2010-08-14 Robert Millan <rmh@gnu.org>
6740 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
6741 filesystem is not ZFS.
6743 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6745 Fix for misspelled color names defaulting to black/black (bug
6746 reported by Doug Nazar)
6748 * include/grub/normal.h (grub_parse_color_name_pair): Add return
6749 status to prototype.
6750 * normal/color.c (grub_parse_color_name_pair): Return failure
6752 (grub_env_write_color_normal): Ignore bad color names.
6753 (grub_env_write_color_highlight): Likewise.
6754 * normal/main.c (GRUB_MOD_INIT): Set default color names.
6756 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6758 "shift" command support to GRUB script.
6760 * include/grub/script_sh.h (grub_script_shift): New prototype.
6761 * script/execute.c (grub_script_shift): New function.
6762 * script/main.c (grub_script_init): Register shift command.
6763 (grub_script_fini): Unregister shift command.
6764 * util/grub-script-check.c (grub_script_cmd_shift): New function.
6766 * tests/grub_script_shift.in: New testcase.
6767 * conf/tests.rmk: Rules for new testcase.
6769 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6771 "continue" command support to GRUB script.
6773 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
6774 (grub_script_break): Continue support.
6775 * script/main.c (grub_script_init): Register continue command.
6776 (grub_script_fini): Unregister continue command.
6778 * tests/grub_script_continue.in: New testcase.
6779 * conf/tests.rmk: Rules for new testcase.
6781 2010-08-12 BVK Chaitanya <bvk@dbook>
6783 "break" command support to GRUB script.
6785 * conf/common.rmk: Rule updates to grub-script-check.
6786 * include/grub/misc.h (grub_min): New function.
6787 * include/grub/script_sh.h (grub_script_init): New prototype.
6788 (grub_script_fini): New prototype.
6789 (grub_script_break): New prototype.
6790 * script/main.c (grub_script_init): New function.
6791 (grub_script_fini): New function.
6792 * script/execute.c (grub_script_break): New function.
6793 * normal/main.c: Calls to grub_script_{init,fini}.
6794 * util/grub-script-check.c (grub_script_break): New function.
6796 * tests/grub_script_break.in: New testcase.
6797 * conf/tests.rmk: Rules for new test case.
6799 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6801 Function parameters support to GRUB script.
6803 * script/yylex.l (VARIABLE): Regular expression update.
6804 * script/function.c (grub_script_function_call): Moved ...
6805 * script/execute.c (grub_script_function_call): ... to here.
6806 (grub_script_execute_arglist_to_argv): Removed.
6807 (grub_script_arglist_to_argv): New function.
6808 * script/argv.c: New file.
6809 (grub_script_argv_free): New function.
6810 (grub_script_argv_next): Likewise.
6811 (grub_script_argv_append): Likewise.
6812 (grub_script_argv_split_append): Likewise.
6813 * include/grub/script_sh.h (grub_script_argv): New struct.
6814 (grub_script_argv_free): New function.
6815 (grub_script_argv_next): Likewise.
6816 (grub_script_argv_append): Likewise.
6817 (grub_script_argv_split_append): Likewise.
6819 * conf/common.rmk (normal.mod): New source script/argv.c.
6821 * tests/grub_script_echo1.in: More tests.
6822 * tests/grub_script_vars1.in: Likewise.
6823 * tests/grub_script_functions.in: New test case.
6824 * conf/tests.rmk: Rules for new testcase.
6826 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6828 Remove grub_script_cmdblock struct.
6830 * include/grub/script_sh.h: Remove grub_script_cmdblock.
6831 * script/parser.y: Likewise.
6832 * script/execute.c: Rename cmdblock suffix to cmdlist.
6833 * script/script.c: Likewise.
6834 * util/grub-script-check.c: Likewise.
6836 2010-08-11 Yves Blusseau <blusseau@zetam.org>
6838 * .bzrignore: add grub-macho2img
6840 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
6842 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
6844 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
6846 Remove the dump of sm712 initialisation sequence.
6848 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
6849 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
6850 (GRUB_VGA_IO_MISC_WRITE): Likewise.
6851 (GRUB_VGA_CR_*): Added many registers.
6852 (GRUB_VGA_SR_*): Likewise.
6853 (GRUB_VGA_GR_*): Likewise.
6854 (grub_vga_write_arx): New function.
6855 (grub_video_hw_config): New struct.
6856 (grub_vga_set_geometry): New function.
6857 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
6858 GRUB_PCI_CLASS_SUBCLASS_VGA.
6859 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
6860 * video/sm712.c (grub_sm712_write_reg): New function
6861 (grub_sm712_read_reg): Likewise.
6862 (grub_sm712_sr_write): Likewise.
6863 (grub_sm712_gr_write): Likewise.
6864 (grub_sm712_cr_write): Likewise.
6865 (grub_sm712_write_arx): Likewise.
6866 (grub_sm712_cr_shadow_write): Likewise.
6867 (grub_sm712_write_dda_lookup): Likewise.
6868 (grub_video_sm712_setup): Initialise the video rather then
6869 blindly replay the dump.
6870 (main) [TEST]: Add a routine to be able to compile as standalone for
6872 * video/sm712_init.c (sm712_init): Removed.
6873 (sm712_sr_seq1): New array.
6874 (sm712_sr_seq2): Likewise.
6876 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
6878 * include/grub/vga.h: Add missing grub/pci.h include.
6880 2010-08-10 Yves Blusseau <blusseau@zetam.org>
6882 * util/grub-macho2img.c (main): fix typo
6884 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
6886 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
6887 (grub_vga_gr_read): Likewise.
6888 (grub_vga_cr_write): Likewise.
6889 (grub_vga_cr_read): Likewise.
6890 (grub_vga_sr_write): Likewise.
6891 (grub_vga_sr_read): Likewise.
6892 (grub_vga_palette_read): Likewise.
6893 (grub_vga_palette_write): Likewise.
6894 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
6895 (grub_sm712_sr_read): New function.
6896 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
6897 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
6899 2010-08-09 Robert Millan <rmh@gnu.org>
6901 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
6902 out unused variables on non-ZFS build.
6904 2010-08-08 Robert Millan <rmh@gnu.org>
6906 Fix path generation for sub-filesystems in ZFS.
6908 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
6911 2010-08-08 Robert Millan <rmh@gnu.org>
6913 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
6915 2010-08-08 Robert Millan <rmh@gnu.org>
6917 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
6918 exist, issue a proper error message (rely on `ls' for translated
6921 2010-08-08 Robert Millan <rmh@gnu.org>
6923 Fix grub-probe invocation.
6925 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
6927 2010-08-04 Robert Millan <rmh@gnu.org>
6929 * configure.ac: Remove checks for getfsstat() and getmntany().
6930 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
6931 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
6932 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
6933 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
6934 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
6936 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
6937 via find_mount_point_from_dir() and getfsstat() / getmntany().
6939 2010-08-04 Robert Millan <rmh@gnu.org>
6941 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
6942 (grub_find_zpool_from_mount_point): Merge into ...
6943 (grub_find_zpool_from_dir): ... this.
6944 * kern/emu/misc.c: Likewise.
6947 (grub_make_system_path_relative_to_its_root): Replace
6948 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
6949 with grub_find_zpool_from_dir().
6950 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
6952 2010-08-04 Robert Millan <rmh@gnu.org>
6954 Support OpenSolaris in ZFS device resolution.
6956 * configure.ac: Check for getmntany().
6957 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
6958 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
6961 2010-08-03 Robert Millan <rmh@gnu.org>
6965 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
6966 * include/grub/emu/misc.h: ... here.
6968 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
6969 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
6971 * util/misc.c: Remove `<grub/util/libzfs.h>'.
6972 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
6973 (grub_get_libzfs_handle): Move to ...
6974 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
6975 (grub_get_libzfs_handle): ... here.
6977 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
6979 * script/execute.c (grub_script_execute_cmdline): Check for NULL
6980 as command name case.
6982 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
6984 * disk/raid.c (insert_array): Select unique numbers for named arrays
6985 as well, for use as keys in the disk cache.
6987 2010-08-01 Robert Millan <rmh@gnu.org>
6989 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
6990 kFreeBSD device name, except on ZFS where the filesystem label is
6992 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
6993 `/boot/zfs/zpool.cache'.
6994 Set mountfrom kernel variable using ${kfreebsd_device}.
6996 2010-08-01 Robert Millan <rmh@gnu.org>
6998 Make it even harder to use uninitialized `libzfs_handle' (and
6999 make the interface a bit simpler).
7001 * include/grub/util/misc.h (grub_util_init_libzfs)
7002 (libzfs_handle): Remove.
7003 (grub_get_libzfs_handle): New prototype.
7005 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
7007 (grub_util_init_libzfs): Remove.
7008 (grub_get_libzfs_handle): New function.
7010 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
7011 grub_get_libzfs_handle() to obtain a libzfs handle instead of
7012 accessing `libzfs_handle' directly.
7014 2010-08-01 Robert Millan <rmh@gnu.org>
7016 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7017 (grub_find_zpool_from_mount_point): New function prototypes.
7019 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7020 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7022 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7023 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7026 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7027 finding zpool from mount point into ...
7028 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7030 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7031 requested path is part of a ZFS pool, use
7032 grub_find_zpool_from_mount_point() to detect its filesystem name,
7033 and generate a path with `/fsname@path' syntax.
7035 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7037 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
7038 (void) rather than () so that this is a proper prototype.
7040 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7042 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
7044 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7046 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
7047 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
7049 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7051 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
7053 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7055 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
7057 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7059 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
7060 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
7061 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
7063 (Shell-like scripting): Add real content.
7064 (Serial terminal): Suggest `terminal_input serial; terminal_output
7065 serial' rather than putting the two commands on separate lines,
7066 since console input will be inoperative after the first command.
7067 (menuentry): Document --class, --users, and --hotkey options.
7068 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
7069 Vladimir Serbinenko).
7071 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7072 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7074 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
7076 2010-08-01 Robert Millan <rmh@gnu.org>
7078 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7079 (grub_find_zpool_from_mount_point): New function prototypes.
7081 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7082 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7084 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7085 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7088 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7089 finding zpool from mount point into ...
7090 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7092 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7093 requested path is part of a ZFS pool, use
7094 grub_find_zpool_from_mount_point() to detect its filesystem name,
7095 and generate a path with `/fsname@path' syntax.
7097 2010-08-01 Robert Millan <rmh@gnu.org>
7099 Prevent accidental use of uninitialized libzfs_handle.
7101 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
7102 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
7103 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
7105 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
7107 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
7108 util/grub.d/10_linux.in). Fixes Debian bug #591093.
7110 2010-08-01 Robert Millan <rmh@gnu.org>
7112 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
7114 2010-07-31 Robert Millan <rmh@gnu.org>
7116 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
7118 2010-07-31 Robert Millan <rmh@gnu.org>
7120 * kern/emu/misc.c: Add missing license header.
7122 2010-07-31 Robert Millan <rmh@gnu.org>
7124 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
7126 * include/grub/util/libnvpair.h: Include `<config.h>'.
7127 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
7128 declaring libnvpair prototypes ourselves.
7129 * include/grub/util/libzfs.h: Include `<config.h>'.
7130 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
7131 declaring libzfs prototypes ourselves.
7133 (libzfs_handle): Moved to ...
7134 * include/grub/util/misc.h (libzfs_handle): ... here.
7135 Include `<grub/util/libzfs.h>'.
7137 2010-07-30 Robert Millan <rmh@gnu.org>
7139 * include/grub/emu/misc.h: Add missing license header.
7141 2010-07-30 Robert Millan <rmh@gnu.org>
7143 Enable `grub-probe -t device' resolution on ZFS.
7145 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
7146 * include/grub/util/libnvpair.h: New file.
7147 * include/grub/util/libzfs.h: New file.
7149 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
7150 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
7151 `<grub/util/libnvpair.h>'.
7152 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
7154 (find_mount_point_from_dir): New static function.
7155 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
7157 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
7158 find_root_device_from_libzfs() before ressorting to find_root_device().
7160 * include/grub/util/misc.h (grub_util_init_libzfs): New function
7162 * util/misc.c: Include `<grub/util/libzfs.h>'.
7163 (grub_util_init_libzfs): New function.
7164 [HAVE_LIBZFS] (libzfs_handle): New global variable.
7165 [HAVE_LIBZFS] (fini_libzfs): New static function.
7166 (grub_util_init_libzfs): New function.
7167 * util/grub-probe.c (main): Call grub_util_init_libzfs().
7169 2010-07-30 Robert Millan <rmh@gnu.org>
7171 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
7172 (xmalloc, xrealloc, xstrdup, xasprintf): Add
7173 `warn_unused_result' attribute.
7174 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
7175 (grub_xasprintf, grub_xvasprintf): Likewise.
7176 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
7178 2010-07-29 Robert Millan <rmh@gnu.org>
7180 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
7181 (probe): Handle `PRINT_FS_LABEL'.
7182 (main): Handle `-t fs_label'.
7184 2010-07-29 Robert Millan <rmh@gnu.org>
7186 * configure.ac: Remove grub-mkisofs checks.
7188 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
7190 * util/ieee1275/grub-install.in: Don't use empty grub_device.
7191 Reported by: Lennart Sorensen.
7193 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7195 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
7196 prior to terminal_input/terminal_output separation. It's been over 1.5
7197 years and those versions weren't widely deployed.
7199 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
7201 * disk/raid.c (insert_array): Don't count named arrays when looking
7202 for unused array numbers.
7203 Reported and tested by: Michael Guntsche.
7205 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7207 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
7208 implementation of this so that grub-emu links again, with a note
7209 that this should support hotplugging in the future.
7211 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7213 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7215 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7217 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
7219 (grub_loopback_close): Remove empty function.
7220 (grub_loopback_dev): Remove close method.
7222 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7224 Disable EFI cursor when the EFI console becomes inactive.
7226 * term/efi/console.c (grub_efi_console_init): New function.
7227 (grub_efi_console_fini): New function.
7228 (grub_console_term_output): Register init and fini methods.
7230 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7232 * tests/util/grub-shell-tester.in: Remove bashism and declare as
7235 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7237 * disk/loopback.c (grub_loopback): Replace filename with file.
7238 (delete_loopback): Handle new semantics.
7239 (grub_cmd_loopback): Likewise.
7240 (grub_loopback_iterate): Likewise.
7241 (grub_loopback_close): Likewise.
7243 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7245 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
7247 Reported by: Tito Keitel.
7249 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7251 * docs/grub.texi (Naming convention): Document new naming convention.
7253 2010-07-20 Vadim Solomin <vadic052@gmail.com>
7254 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7256 Generate device.map in something closer to the old ordering.
7258 * util/deviceiter.c (struct device): New declaration.
7259 (compare_file_names): Rename to ...
7260 (compare_devices): ... this. Sort by kernel name in preference to
7261 the stable by-id name, but keep the latter as a fallback comparison.
7262 Update header comment.
7263 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
7264 of `struct device' rather than of plain file names.
7266 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
7268 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
7271 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7273 * commands/acpi.c (setup_common_tables): Use sizeof instead of
7275 (setv1table): Likewise.
7277 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7279 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
7280 removing the homehost if present.
7281 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
7282 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
7283 removing the homehost if present.
7284 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
7286 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
7288 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
7289 parameter. Set its pointer target to 0.
7290 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
7291 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
7292 `data_offset' value from the superblock for 1.x metadata.
7293 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
7295 (insert_array): Record the start sector of data on the device.
7296 (grub_raid_register): Pass start_sector parameters to
7297 grub_raid_list->detect and insert_array.
7298 * include/grub/raid.h (struct grub_raid_array): Add start_sector
7300 (struct grub_raid): Add start_sector parameter to `detect'.
7302 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
7303 __attribute__ ((packed)), leaving a comment.
7304 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
7305 (grub_mdraid_detect_09): ... here and ...
7306 (grub_mdraid_detect_1x): ... here.
7308 2010-07-20 Peter Henn <peter.henn@web.de>
7310 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
7311 chunk size and disk size, which are already given as sector counts
7312 as distinct from the 0.90 units. Fetch the correct device number
7313 from the role table instead of using the table index.
7315 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
7317 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
7318 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
7319 (WriteMostly1): New macro.
7320 Set array->name to NULL for metadata format 0.90. Add support for
7321 metadata 1.x. Fix some comments.
7322 * disk/raid.c (): Add support for name based RAID arrays. Fix a
7324 * util/getroot.c (grub_util_get_grub_dev): Add support for
7325 /dev/md/name style devices.
7327 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
7329 * .bzrignore: Ignore 20_linux_xen.
7331 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
7333 * util/import_unicode.py: Remove unnecessary imports.
7335 2010-07-17 Aleš Nesrsta <starous@volny.cz>
7337 Hotplugging and USB hub support.
7339 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
7340 (grub_ohci): Likewise.
7341 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
7342 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
7343 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
7344 (GRUB_OHCI_CTRL_EDS): Likewise.
7345 (GRUB_OHCI_BULK_EDS): Likewise.
7346 (GRUB_OHCI_TDS): Likewise.
7347 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
7348 (grub_ohci_ed_phys2virt): New function.
7349 (grub_ohci_virt_to_phys): Likewise.
7350 (grub_ohci_td_phys2virt): Likewise.
7351 (grub_ohci_td_virt2phys): Likewise.
7352 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
7354 (grub_ohci_find_ed): New function.
7355 (grub_ohci_alloc_td): Likewise.
7356 (grub_ohci_free_td): Likewise.
7357 (grub_ohci_free_tds): Likewise.
7358 (grub_ohci_transfer): Use previously allocated memory.
7359 (grub_ohci_portstatus): Reset status changed bit.
7360 (grub_ohci_detect_dev): Supply status changed.
7361 (grub_ohci_fini_hw): Free memory.
7362 (grub_ohci_restore_hw): Reallocate memory.
7363 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
7364 Reset status change.
7365 (grub_uhci_detect_dev): Supply status_change.
7366 * bus/usb/usb.c (attach_hooks): New var.
7367 (grub_usb_device_attach): New function.
7368 (grub_usb_register_attach_hook_class): Likewise.
7369 (grub_usb_unregister_attach_hook_class): Likewise.
7370 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
7371 (grub_usb_add_hub): Reset connection changed bit.
7372 (attach_root_port): New function.
7373 (grub_usb_root_hub): Likewise.
7374 (poll_nonroot_hub): Likewise.
7375 (grub_usb_poll_devices): Likewise.
7376 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
7377 * disk/usbms.c (grub_usbms_open): Use device hooks.
7378 (grub_usbms_iterate) :Poll devices.
7379 (grub_usbms_finddevs): Split into ...
7380 (grub_usbms_attach): ... this ...
7381 (grub_usbms_attach): ... and this.
7382 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
7384 (grub_usb_interface): New fields attached and detach_hook.
7385 (grub_usb_attach_hook_class): New type.
7386 (grub_usb_attach_desc): New struct.
7387 (grub_usb_register_attach_hook_class): New function.
7388 (grub_usb_unregister_attach_hook_class): Likewise.
7389 (grub_usb_poll_devices): Likewise.
7390 (grub_usb_device_attach): Likewise.
7391 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
7392 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
7394 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7396 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
7397 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
7398 delta determination style. Works with most NetBSD partitions too.
7400 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7402 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
7403 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
7405 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7407 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
7409 2010-07-14 Anton Blanchard <anton@samba.org>
7411 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
7414 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7416 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
7418 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7420 * kern/partition.c (grub_partition_check_containment): New function to
7421 check that a partition is physically contained in a parent. Since
7422 offsets are relative (and non-negative), this reduces to checking that
7423 the partition ends before its parent.
7424 (grub_partition_map_probe): Discard out-of-range sub-partitions.
7425 (grub_partition_iterate): Likewise.
7426 * include/grub/partition.h (grub_partition_map): Slightly more detailed
7428 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
7429 partitions that start before their parent, and add debug printfs.
7431 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
7433 * Makefile.in (.SUFFIX): Spell correctly, as ...
7434 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
7435 bare module name without `.mod', e.g. `test') tried to invoke a
7438 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
7440 * README: Point to the Info manual.
7442 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
7444 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
7445 2nd superblock position from partition size.
7447 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
7449 * Makefile.in (MAINTAINER_CLEANFILES): Remove
7450 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
7451 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
7454 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7456 Restructure SCSI .id handling.
7457 Reported and tested by: Aleš Nesrsta.
7459 * disk/ata.c (grub_atapi_close): Removed. All users updated.
7460 (grub_atapi_dev): Changed .name to "ata". New field .id.
7461 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
7462 (grub_usbms_dev): New field .id.
7463 * disk/scsi.c (grub_scsi_iterate): Generate name.
7464 (grub_scsi_open): Parse name.
7465 * include/grub/scsi.h (grub_make_scsi_id): New function.
7466 (grub_scsi_dev): Change iterate and open to number instead of naming
7467 busses. All users updated.
7468 (grub_scsi): Remove name. Add .bus.
7470 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7472 * commands/help.c (grub_cmd_help): Fix a typo.
7474 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7476 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
7477 Reported and tested by: Colin Watson.
7479 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7481 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
7484 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7486 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
7488 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
7490 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
7493 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7495 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
7496 and disk/raid6_recover.c.
7497 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7498 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
7500 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7502 * term/gfxterm.c (repaint_schedulded): Rename to ...
7503 (repaint_scheduled): ... this. Update all callers.
7504 (repaint_was_schedulded): Rename to ...
7505 (repaint_was_scheduled): ... this. Update all callers.
7507 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7509 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
7510 which we expect to be handled by upper layers.
7512 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
7514 * bus/usb/usbhub.c: #include time.h header.
7516 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7518 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
7519 entry_name also for entries without stat blocks (e.g. ".."); fixes
7520 corruption of the first entry in a directory.
7522 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
7524 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
7525 after setting gfxterm as the active terminal. GRUB_BACKGROUND
7526 doesn't work otherwise.
7528 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7530 * docs/grub.texi (Features): Update list of supported file systems.
7531 (GNU/Linux): Update for GRUB 2.
7532 (Serial terminal): Remove mention of --disable-serial, which was a
7533 GRUB Legacy configure option. Update instructions to use
7534 `terminal_input' and `terminal_output' rather than `terminal'.
7535 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
7536 configuration' and `Installing GRUB using grub-install'.
7537 (Menu entry editor): Update for GRUB 2.
7538 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
7539 Document new -a, -u, and -v options.
7540 (initrd): New section.
7541 (initrd16): New section.
7542 (linux): New section.
7543 (linux16): New section.
7544 (search): The `var' argument to `--set' is optional.
7545 (GRUB only offers a rescue shell): Go into a little more detail on
7548 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7550 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
7552 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7554 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
7555 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
7557 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
7559 * util/i386/pc/grub-setup.c (setup): Rename prefix to
7560 install_prefix, in line with install_dos_part and install_bsd_part.
7561 Add new prefix variable, which is copied to install_prefix after
7562 comparing core.img in memory with the one read from disk in the
7563 no-embedding case, and use that rather than overwriting
7564 install_prefix immediately when installing to a partition.
7565 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
7568 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7570 * configure.ac: Avoid == in test command, it's not portable.
7571 * util/grub.d/30_os-prober.in: Likewise.
7573 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
7575 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
7577 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7579 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
7580 multiple (top-level) partmaps.
7582 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7584 * util/i386/efi/grub-install.in: Don't use empty grub_device.
7585 Reported by: Tino Keitel.
7587 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7589 Bidi and diacritics support.
7591 * Makefile.in (widthspec.bin): New target.
7592 (widthspec.h): Likewise.
7593 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
7594 * autogen.sh: Generate unidata.c.
7595 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
7596 * commands/ls.c (grub_ls_list_devices): Likewise.
7597 (grub_ls_list_files): Likewise.
7598 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
7599 (grub_mini_cmd_lsmod): Likewise.
7600 * commands/read.c: Likewise.
7601 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
7602 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
7603 * lib/arg.c (grub_arg_show_help): Likewise.
7604 * lib/crypto.c (grub_password_get): Likewise.
7605 * normal/auth.c (grub_username_get): Likewise.
7606 * normal/misc.c (grub_normal_print_device_info): Likewise.
7607 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
7608 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
7609 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
7610 (normal/charset.c_DEPENDENCIES): New variable.
7611 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
7612 (pkglib_MODULES): Remove charset.mod.
7613 (charset_mod_SOURCES): Removed.
7614 (charset_mod_CFLAGS): Likewise.
7615 (charset_mod_LDFLAGS): Likewise.
7616 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
7617 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
7619 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7620 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7621 (kernel_img_HEADERS): Add terminfo.h.
7622 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
7623 Fill ->font. Reverse ascii bitmaps.
7624 (grub_font_get_xheight): New function.
7625 * font/font.c (grub_font_get_string_width): Moved from here ...
7626 * gfxmenu/font.c (grub_font_get_string_width): ... here.
7627 * font/font.c (grub_font_draw_string): Moved from here ...
7628 * gfxmenu/font.c (grub_font_draw_string): ... here.
7629 * font/font.c (grub_font_dup_glyph): New function.
7630 (grub_font_blit_glyph): Likewise.
7631 (grub_font_blit_glyph_mirror): Likewise.
7632 (blit_comb): Likewise.
7633 (grub_font_construct_dry_run): Likewise.
7634 (grub_font_get_constructed_device_width): Likewise.
7635 (grub_font_construct_glyph): Likewise.
7636 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
7637 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
7638 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
7639 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
7640 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
7641 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
7642 (grub_font_get_xheight): New proto.
7643 (grub_font_get_constructed_device_width): Likewise.
7644 (grub_font_construct_glyph): Likewise.
7645 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
7646 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
7647 * include/grub/font.h (grub_font_draw_string): Moved from here ...
7648 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
7649 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
7650 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
7651 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
7652 (grub_console_getcharwidth): Likewise.
7653 * include/grub/misc.h (grub_xputs): New proto.
7654 (grub_puts): Inlined.
7655 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
7656 (grub_normal_get_line_counter): Removed.
7657 (grub_install_newline_hook): Likewise.
7658 (grub_normal_get_char_counter): New proto.
7659 (grub_normal_reset_more): Likewise.
7660 (grub_xputs_normal): Likewise.
7661 * include/grub/powerpc/ieee1275/console.h: Removed.
7662 * include/grub/sparc64/ieee1275/console.h: Likewise.
7663 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
7664 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
7665 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
7666 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
7667 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
7668 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
7669 (grub_term_input): Pass reference to self. All users updated.
7670 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
7671 Pass reference to self. New fields normal_color, highlight_color and
7672 data. All users updated.
7673 (grub_putchar): Removed.
7674 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
7675 (grub_unicode_estimate_width): New function.
7676 (grub_term_getcharwidth): Add defaults.
7677 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
7678 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
7679 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
7680 (grub_cls): Remove EXPORT_FUNC.
7681 (grub_setcolorstate): Inline.
7682 (grub_newline_hook): Removed.
7683 * include/grub/terminfo.h: Rewritten. All users updated.
7684 * include/grub/unicode.h: New file.
7685 * include/grub/video.h (grub_video_signed_rect): New type.
7686 * kern/emu/console.c (grub_console_highlight_color): Removed.
7687 (grub_console_normal_color): Likewise.
7688 (grub_console_standard_color): Made static.
7689 (grub_ncurses_putchar): Remove mapping.
7690 (grub_ncurses_getcharwidth): Removed.
7691 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7692 (grub_ncurses_setcolor): Removed.
7693 (grub_ncurses_getcolor): Likewise.
7694 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
7695 (grub_console_putchar): ... this.
7696 (grub_console_putchar): Handle argument difference.
7697 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
7698 console_init_early and console_init_lately.
7699 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
7700 * kern/misc.c (grub_puts): Removed.
7701 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
7702 (grub_vsnprintf_real): Remove str = NULL support.
7703 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
7704 * normal/charset.c (grub_utf8_to_ucs4): ... here.
7705 * kern/term.c (grub_putcode): Renamed to ...
7706 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
7707 (grub_putchar): Removed.
7708 (grub_xputs_dumb): New function.
7709 (grub_xputs): New variable.
7710 * lib/charset.c: Move from here ...
7711 * normal/charset.c: ... to here.
7712 (grub_ucs4_to_utf8): New function.
7713 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
7714 (join_types): New variable.
7715 (unpack_join): New function.
7716 (bidi_types): New variable.
7717 (unpack_bidi): New function.
7718 (get_bidi_type): Likewise.
7719 (get_join_type): Likewise.
7720 (is_mirrored): Likewise.
7721 (grub_unicode_get_comb_type): Likewise.
7722 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
7723 (is_type_after): Likewise.
7724 (grub_unicode_aglomerate_comb): Likewise.
7725 (bidi_line_wrap): Likewise.
7726 (grub_bidi_line_logical_to_visual): Likewise.
7727 (grub_bidi_logical_to_visual): Likewise.
7728 (grub_unicode_mirror_code): Likewise.
7729 (grub_unicode_shape_code): Likewise.
7730 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
7731 Don't use grub_putchar.
7732 * normal/main.c (grub_normal_init_page): Use grub_putcode.
7733 (grub_normal_reader_init): Likewise.
7734 (grub_xputs_saved): New variable.
7735 (GRUB_MOD_INIT): Set grub_xputs.
7736 (GRUB_MOD_FINI): Restore grub_xputs.
7737 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
7738 (menu_init): Avoid printing gfxmenu error.
7739 (show_menu): Use grub_normal_get_char_counter.
7740 * normal/menu_entry.c (update_screen): Fix out-of-array.
7741 (complete): Avoid NULL dereferencing.
7742 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
7743 * normal/menu_text.c (print_spaces): Removed.
7744 (grub_print_ucs4): Likewise.
7745 (grub_print_message_indented): Use grub_print_ucs4.
7746 (print_message): Use grub_putcode.
7747 (print_entry): Hanlde diacritics.
7748 * normal/term.c (term_state): New type.
7749 (grub_more_lines): Removed.
7750 (term_states): New variable.
7751 (grub_normal_line_counter): Renamed to ..
7752 (grub_normal_char_counter): ...this. All users updated.
7753 (grub_normal_get_line_counter): Renamed to ...
7754 (grub_normal_get_char_counter): ... this.
7755 (grub_normal_reset_more): New function.
7756 (process_newline): Removed.
7757 (print_more): New function.
7758 (grub_install_newline_hook): Removed.
7759 (map_code): New function.
7760 (grub_puts_terminal): Use grub_print_ucs4.
7761 (putglyph): New function.
7762 (putcode_real): Likewise.
7763 (grub_putcode): Use putcode_real.
7764 (get_maxwidth): New function.
7765 (get_startwidth): Likewise.
7766 (print_ucs4_terminal): Likewise.
7767 (find_term_state): Likewise.
7768 (put_glyphs_terminal): Likewise.
7769 (print_backlog): Likewise.
7770 (print_ucs4_real): Likewise.
7771 (grub_print_ucs4): Likewise.
7772 (grub_xputs_normal): Likewise.
7773 * term/efi/console.c (grub_console_putchar): Output diacritics.
7774 (grub_console_getcharwidth): Removed.
7775 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
7776 * term/gfxterm.c (clear_char): Free chars.
7777 (scroll_up): Avoid leaking memory.
7778 (grub_gfxterm_putchar): Support diacritics.
7779 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
7780 * term/i386/pc/console.c (grub_console_term_output): Declare as
7781 GRUB_TERM_CODE_TYPE_VGA.
7782 * term/i386/pc/vga.c (grub_vga_term): Declare as
7783 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
7784 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
7785 GRUB_TERM_CODE_TYPE_VGA.
7786 * term/i386/vga_common.c (map_char): Removed.
7787 (grub_console_putchar): Likewise.
7788 (grub_console_getcharwidth): Likewise.
7789 * term/ieee1275/ofconsole.c: Simplify using terminfo.
7790 (colors): Reordered to match terminfo.
7791 (grub_ofconsole_normal_color): Removed.
7792 (grub_ofconsole_writeesc): Likewise.
7793 (grub_ofconsole_highlight_color): Likewise.
7794 (grub_ofconsole_getcharwidth): Likewise.
7795 (grub_ofconsole_setcolorstate): Likewise.
7796 (grub_ofconsole_setcolor): Likewise.
7797 (grub_ofconsole_getcolor): Likewise.
7798 (grub_ofconsole_readkey): Renamed to ...
7799 (readkey): ... this. Remove escape sequence handling. Return -1 on no
7801 (grub_ofconsole_checkkey): Removed.
7802 (grub_ofconsole_getkey): Likewise.
7803 (grub_ofconsole_getxy): Likewise.
7804 (grub_ofconsole_gotoxy): Likewise.
7805 (grub_ofconsole_cls): Likewise.
7806 (grub_ofconsole_refresh): Likewise.
7807 (grub_ofconsole_terminfo_input): New struct.
7808 (grub_ofconsole_terminfo_output): Likewise.
7809 (grub_ofconsole_term_input): Use terminfo.
7810 (grub_ofconsole_term_output): Likewise.
7811 (grub_console_init): Split into ...
7812 (grub_console_init_early): ...this and ...
7813 (grub_console_init_lately): ...this. Use terminfo.
7814 (grub_ofconsole_putchar): Renamed to ...
7815 (put): ... this. Remove mapping.
7816 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7817 * term/serial.c: Simplify using terminfo.
7820 (keep_track): Likewise.
7821 (registered): Likewise.
7822 (input_buf): Likewise.
7823 (npending): Likewise.
7824 (serial_translate_key_sequence): Likewise.
7825 (fill_input_buf): Likewise.
7826 (grub_serial_checkkey): Likewise.
7827 (grub_serial_getkey): Likewise.
7828 (grub_serial_getxy): Likewise.
7829 (grub_serial_gotoxy): Likewise.
7830 (grub_serial_putchar): Likewise.
7831 (grub_serial_cls): Likewise.
7832 (grub_serial_setcolorstate): Likewise.
7833 (grub_serial_setcursor): Likewise.
7834 (serial_hw_init): Use serial_hw_fetch.
7835 (grub_serial_terminfo_input): New variable.
7836 (grub_serial_terminfo_output): Likewise.
7837 (grub_serial_term_input): Use terminfo.
7838 (grub_serial_term_output): Likewise.
7839 * term/terminfo.c (putstr): Use put.
7840 (grub_terminfo_all_free): New function
7841 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
7842 (grub_terminfo_output_register): New function.
7843 (grub_terminfo_output_unregister): Likewise.
7844 (grub_terminfo_getxy): Likewise.
7845 (grub_terminfo_readkey): Likewise.
7846 (grub_terminfo_checkkey): Likewise.
7847 (grub_terminfo_getkey): Likewise.
7848 (grub_terminfo_input_init): Likewise.
7849 (print_terminfo): Likewise.
7850 (grub_cmd_terminfo): Handle encoding.
7851 (grub_terminfo_gotoxy): Track position.
7852 (grub_terminfo_cls): Likewise.
7853 (grub_terminfo_putchar): Likewise.
7854 (grub_terminfo_setcolorstate): Handle colors
7855 (grub_terminfo_cursor_on): This ...
7856 (grub_terminfo_cursor_off): ... and this merged into ...
7857 (grub_terminfo_setcursor): ... this.
7858 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
7859 * unicode/ArabicShaping.txt: New file (imported from Unicode).
7860 * unicode/BidiMirroring.txt: Likewise.
7861 * unicode/UnicodeData.txt: Likewise.
7862 * unicode/COPYING: Likewise.
7863 * util/grub-editenv.c (grub_putchar): Removed.
7864 (grub_xputs_real): New function.
7865 (grub_xputs): New variable.
7866 * util/grub-fstest.c (grub_putchar): Removed.
7867 (grub_xputs_real): New function.
7868 (grub_xputs): New variable.
7869 * util/grub-mkdevicemap.c (grub_putchar): Removed.
7870 (grub_xputs_real): New function.
7871 (grub_xputs): New variable.
7872 * util/grub-probe.c (grub_putchar): Removed.
7873 (grub_xputs_real): New function.
7874 (grub_xputs): New variable.
7875 * util/grub-script-check.c (grub_putchar): Removed.
7876 (grub_xputs_real): New function.
7877 (grub_xputs): New variable.
7878 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
7879 (grub_xputs_real): New function.
7880 (grub_xputs): New variable.
7881 * util/import_unicode.py: New file.
7882 * util/grub-mkfont.c (ft_errmsgs): New array.
7883 (grub_glyph_info): Make bitmap a pointer.
7884 (file_formats): New type WIDTH_SPEC.
7885 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
7886 (options): Add width-spec.
7888 (add_char): Renamed to ...
7889 (add_glyph): ... this.
7890 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
7891 (glyph_replace): New type.
7892 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
7893 (add_char): New function.
7894 (add_subst): Likewise.
7895 (process_cursive): Likewise.
7896 (add_font): Handle GSUB.
7897 (write_font_width_spec): New function.
7898 (main): Sort glyphs.
7899 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
7900 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
7901 * kern/term.c (grub_cls): Moved from here...
7902 * normal/term.c (grub_cls): ... here.
7904 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7906 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
7907 suitable for using within the format argument of printf when
7908 converting grub_size_t.
7909 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
7910 "x" to convert grub_size_t arguments.
7912 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7914 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
7916 (list_get_minimal_size): Take selection box into account.
7918 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7920 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
7923 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7925 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
7926 devices when iterating over /dev/disk/by-id; they will be handled
7927 later if appropriate, which they aren't always (e.g. LVM).
7929 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7931 * include/grub/misc.h (grub_reboot): Declare as noreturn.
7932 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
7934 (grub_halt): Likewise.
7935 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
7937 (grub_halt): Don't return, even if all of shut-down, power-off, and
7940 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7942 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
7943 arguments, not three.
7945 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7947 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
7948 * util/grub.d/10_linux.in: Use it to check for LVM, so that
7949 LVM-on-RAID is handled correctly.
7951 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7953 * docs/grub.texi (Changes from GRUB Legacy): New section.
7956 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
7958 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
7959 grub.d/README accidentally ends up executable for one reason or
7962 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7964 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
7965 (gpt_partition_map_iterate): Support non-512B sectors.
7967 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7969 * kern/efi/init.c (grub_efi_init): Disable watchdog.
7970 Tested by: Seth Goldberg.
7972 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7974 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
7976 Reported by: Seth Goldberg.
7978 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
7980 * util/grub-mkrescue.in: Avoid module duplication.
7982 2010-07-01 Sean Finney <seanius@seanius.net>
7984 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
7986 2010-07-01 Sean Finney <seanius@seanius.net>
7988 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
7990 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
7992 * disk/lvm.c (grub_lvm_checkvalue): New function.
7993 (grub_lvm_check_flag): Likewise.
7995 2010-07-01 Robert Millan <rmh@gnu.org>
7997 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
7998 Support 'p' as partition separator on kernel of FreeBSD (used
8000 (grub_util_biosdisk_get_grub_dev): Likewise.
8002 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8004 Yeeloong firmware port.
8006 * boot/mips/yeeloong/fwstart.S: New file.
8007 * bus/cs5536.c (gpiodump): New const.
8008 (set_io_space): New function.
8009 (set_iod): Likewise.
8010 (set_p2d): Likewise.
8011 (grub_cs5536_init_geode): Likewise.
8012 * commands/mips/yeeloong/lsspd.c: New file.
8013 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
8014 (serial_mod_SOURCES): New variable.
8015 (serial_mod_CFLAGS): Likewise.
8016 (serial_mod_LDFLAGS): Likewise.
8017 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
8018 term/terminfo.c and term/tparm.c.
8019 (pkglib_IMAGES): Add fwstart.img.
8020 (fwstart_img_SOURCES): New variable.
8021 (fwstart_img_CFLAGS): Likewise.
8022 (fwstart_img_ASFLAGS): Likewise.
8023 (fwstart_img_LDFLAGS): Likewise.
8024 (fwstart_img_FORMAT): Likewise.
8025 (pkglib_MODULES): Add lsspd.mod.
8026 (lsspd_mod_SOURCES): New variable.
8027 (lsspd_mod_CFLAGS): Likewise.
8028 (lsspd_mod_LDFLAGS): Likewise.
8029 (pkglib_MODULES): Add halt.mod.
8030 (halt_mod_SOURCES): New variable.
8031 (halt_mod_CFLAGS): Likewise.
8032 (halt_mod_LDFLAGS): Likewise.
8033 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
8034 (serial_mod_SOURCES): Removed.
8035 (serial_mod_CFLAGS): Likewise.
8036 (serial_mod_LDFLAGS): Likewise.
8037 * disk/ata.c (check_device): New function.
8038 (grub_ata_device_initialize): Use check_device.
8039 (grub_ata_iterate): Recheck devices.
8040 (grub_ata_open): Likewise.
8041 (grub_atapi_iterate): Likewise.
8042 (grub_atapi_open): Likewise.
8043 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
8044 (GRUB_ATA_CH1_PORT1): Likewise.
8045 (GRUB_ATA_CH0_PORT2): Likewise.
8046 (GRUB_ATA_CH1_PORT2): Likewise.
8047 * include/grub/mips/loongson.h: New file.
8048 * include/grub/mips/yeeloong/ec.h: Likewise.
8049 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
8050 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
8051 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
8052 * include/grub/misc.h (grub_halt): Declare as noreturn.
8053 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
8054 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
8055 (UART_ENABLE_FIFO_TRIGGER1): New definition.
8056 (UART_ENABLE_DTRRTS): Likewise.
8057 (UART_ENABLE_MODEM): Removed.
8058 (UART_ENABLE_OUT2): New const.
8059 * include/grub/term.h (grub_term_register_input_active): New function.
8060 (grub_term_register_output_active): Likewise.
8061 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
8063 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
8064 (init_pci): New function.
8065 (grub_machine_init): Execute platform init when firmware. Init serial.
8066 (grub_halt): Implement.
8067 (grub_exit): Likewise.
8068 (grub_reboot): Likewise.
8069 * term/serial.c (serial_hw_init): Update macros.
8070 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
8071 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
8072 (image_targets): New target mipsel-yeeloong-flash.
8073 (generate_image): Support IMAGE_YEELOONG_FLASH.
8074 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
8075 (grub_video_sm712_setup): Init card.
8076 (grub_video_sm712_set_palette): Removed.
8077 * video/sm712_init.c: New file.
8079 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
8081 * Makefile.in (install-local): Temporarily prepend $(builddir) to
8082 PATH when running help2man and then run it on the unadorned
8083 executable names, rather than passing $(builddir)/* paths to
8084 help2man. This avoids the build directory ending up in generated
8087 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8089 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
8090 to avoid accidents when debugging with 'sh -x'.
8091 * util/grub-mkrescue.in: Likewise.
8092 * util/grub.d/00_header.in: Likewise.
8093 * util/grub.d/10_hurd.in: Likewise.
8094 * util/grub.d/10_kfreebsd.in: Likewise.
8095 * util/grub.d/10_linux.in: Likewise.
8096 * util/grub.d/10_netbsd.in: Likewise.
8097 * util/grub.d/10_windows.in: Likewise.
8098 * util/grub.d/20_linux_xen.in: Likewise.
8099 * util/grub.d/30_os-prober.in: Likewise.
8100 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8102 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
8104 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
8105 last character in the buffer.
8106 Reported by: Vladimir Serbinenko.
8108 2010-06-29 Robert Millan <rmh@gnu.org>
8110 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
8111 (Command-line and menu entry commands): Document `badram' command.
8113 2010-06-28 Robert Millan <rmh@gnu.org>
8115 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
8116 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
8117 command using ${GRUB_BADRAM} as parameter.
8119 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8121 * docs/grub.texi (Device map): New section.
8122 (Themes): New section (stub).
8123 * Makefile.in (docs/grub.info): The info documentation now builds
8124 without errors. Make sure it stays that way.
8126 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8128 Use normal parser for menu entries.
8129 Reported by: Thomas Frauendorfer
8131 * include/grub/parser.h (grub_parser_execute): Don't export.
8132 * normal/menu.c (grub_menu_execute_entry_real): New function.
8133 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
8135 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8137 * docs/grub.texi (Embedded configuration): New section (replacing
8138 old "Preset Menu" stub).
8139 (Images): New section.
8140 (configfile): Note that any menu entries defined in `file' are shown
8143 2010-06-28 Josh Triplett <josh@joshtriplett.org>
8145 * mmap/i386/pc/mmap_helper.S: Set CF on return.
8147 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8149 * util/grub-install.in: Add --debug-image= option.
8151 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8153 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
8156 * util/deviceiter.c (check_device): Rename to ...
8157 (check_device_readable_unique): ... this. Update all callers.
8158 Maintain and check a list of which devices (by canonicalized name)
8159 have already been seen.
8160 (clear_seen_devices): New function.
8161 (compare_file_names) [__linux__]: New function.
8162 (grub_util_iterate_devices): Clear the list of seen devices on exit
8163 and (just in case) on entry.
8164 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
8165 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
8166 seen-devices list, superseded by general code in check_device.
8168 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
8170 * commands/cat.c (options): New variable.
8171 (grub_cmd_cat): Parse options. If the --dos option is given, print
8172 DOS-style "\r\n" line endings as simple newlines (Debian bug
8174 (GRUB_MOD_INIT): Use extcmd.
8175 (GRUB_MOD_FINI): Likewise.
8176 * docs/grub.texi (cat): Document --dos.
8178 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8180 XEN with Linux grub-mkconfig support.
8182 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
8183 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
8184 GRUB_CMDLINE_XEN_DEFAULT.
8185 * util/grub.d/20_linux_xen.in: New file.
8187 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8189 Initialise VGA video on qemu ourselves.
8191 * boot/i386/qemu/boot.S: Don't call 0xc000.
8192 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
8193 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
8194 (kernel_img_HEADERS): Add pci.h.
8195 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
8196 * configure.ac: Force unifont on qemu and yeeloong.
8197 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
8198 (grub_vga_palette_write): Use correct register.
8199 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
8200 Call grub_qemu_init_cirrus.
8201 * kern/i386/qemu/init.c: New file.
8202 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
8204 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
8206 2010-06-26 Pavel Roskin <proski@gnu.org>
8208 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
8211 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8213 * docs/grub.texi (Simple configuration): Explain that
8214 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
8215 set to `true' to disable their respective recovery entries, not
8218 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
8220 Make the `source' command slightly faster.
8222 * normal/main.c (grub_normal_execute): Don't re-read list files when
8225 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8227 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
8228 field position and mask size to red fields from mode_info, not
8230 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
8231 Remove redundant tag->common.framebuffer_type assignment.
8232 Reported by: Seth Goldberg.
8234 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
8236 Sync up other versions of the Linux loader with Robert Millan's
8237 change of 2010-01-09, "Make loader output a bit more user-friendly".
8239 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
8241 (grub_cmd_linux): Likewise.
8242 (grub_cmd_initrd): Likewise.
8243 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
8244 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8246 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
8248 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
8249 larger than MEMORY_MAP_SIZE.
8251 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
8255 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
8257 * script/parser.y: #include grub_script.tab.h header.
8259 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8261 Support >3GiB and <16MiB RAM in i386-qemu.
8263 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
8264 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
8265 (grub_lower_mem): Removed.
8266 (grub_upper_mem): Likewise.
8267 (mem_size): Made static.
8268 (above_4g): New variable.
8269 (grub_machine_mmap_init): Detect small mem_size and above_4g.
8270 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
8273 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8275 Cirrus 5446 and Bochs video cards support.
8277 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
8279 (video_cirrus_mod_SOURCES): New variable.
8280 (video_cirrus_mod_CFLAGS): Likewise.
8281 (video_cirrus_mod_LDFLAGS): Likewise.
8282 (video_bochs_mod_SOURCES): Likewise.
8283 (video_bochs_mod_CFLAGS): Likewise.
8284 (video_bochs_mod_LDFLAGS): Likewise.
8285 * include/grub/vga.h: New file.
8286 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
8287 (grub_video_fb_set_page_t): New type.
8288 (grub_video_fb_setup): New prototype.
8289 (grub_video_fb_swap_buffers): Likewise.
8290 (grub_video_fb_get_info_and_fini): Likewise.
8291 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
8292 (CRTC_DATA_PORT): Likewise.
8293 (CRTC_CURSOR): Likewise.
8294 (CRTC_CURSOR_ADDR_HIGH): Likewise.
8295 (CRTC_CURSOR_ADDR_LOW): Likewise.
8296 (CRTC_CURSOR_DISABLE): Likewise.
8297 (update_cursor): Use grub_vga_cr_write.
8298 (grub_vga_text_setcursor): Likewise.
8299 * video/bochs.c: New file.
8300 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
8301 (palette): Likewise.
8302 (palette_size): Likewise.
8303 (framebuffer): New variable.
8304 (grub_video_fb_init): Use 'framebuffer'.
8305 (grub_video_fb_fini): Likewise.
8306 (grub_video_fb_get_info): Likewise.
8307 (grub_video_fb_get_palette): Likewise.
8308 (grub_video_fb_set_palette): Likewise.
8309 (grub_video_fb_set_viewport): Likewise.
8310 (grub_video_fb_get_viewport): Likewise.
8311 (grub_video_fb_map_color): Likewise.
8312 (grub_video_fb_map_rgb): Likewise.
8313 (grub_video_fb_map_rgba): Likewise.
8314 (grub_video_fb_unmap_color): Likewise.
8315 (grub_video_fb_unmap_color_int): Likewise.
8316 (grub_video_fb_fill_rect): Likewise.
8317 (grub_video_fb_blit_bitmap): Likewise.
8318 (grub_video_fb_blit_render_target): Likewise.
8319 (grub_video_fb_scroll): Likewise.
8320 (grub_video_fb_create_render_target): Likewise.
8321 (grub_video_fb_doublebuf_blit_init): Likewise.
8322 (grub_video_fb_set_active_render_target): Handle doublebuffering.
8323 (doublebuf_pageflipping_update_screen): New function.
8324 (doublebuf_pageflipping_init): Likewise.
8325 (grub_video_fb_setup): Likewise.
8326 (grub_video_fb_swap_buffers): Likewise.
8327 (grub_video_fb_get_info_and_fini): Likewise.
8328 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
8330 (doublebuf_pageflipping_commit): Restructured into ...
8331 (doublebuf_pageflipping_set_page): ... this.
8332 (doublebuf_pageflipping_update_screen): Removed.
8333 (doublebuf_pageflipping_init): Likewise.
8334 (double_buffering_init): Likewise.
8335 (grub_video_vbe_setup): Use grub_video_fb_setup.
8336 (grub_video_vbe_swap_buffers): Removed.
8337 (grub_video_vbe_set_active_render_target): Likewise.
8338 (grub_video_vbe_get_active_render_target): Likewise.
8339 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
8340 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
8341 grub_video_fb_set_active_render_target and
8342 grub_video_fb_get_active_render_target.
8343 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
8344 (SEQUENCER_DATA_PORT): Likewise.
8345 (MAP_MASK_REGISTER): Likewise.
8346 (CRTC_ADDR_PORT): Likewise.
8347 (CRTC_DATA_PORT): Likewise.
8348 (START_ADDR_HIGH_REGISTER): Likewise.
8349 (START_ADDR_LOW_REGISTER): Likewise.
8350 (GRAPHICS_ADDR_PORT): Likewise.
8351 (GRAPHICS_DATA_PORT): Likewise.
8352 (READ_MAP_REGISTER): Likewise.
8353 (INPUT_STATUS1_REGISTER): Likewise.
8354 (INPUT_STATUS1_VERTR_BIT): Likewise.
8355 (get_map_mask): Use grub_vga_sr_read.
8356 (set_map_mask): Use grub_vga_sr_write.
8357 (set_read_map): Use grub_vga_gr_write.
8358 (set_start_address): Use grub_vga_cr_write.
8359 * video/sm712.c (framebuffer): Remove leftover fields.
8361 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
8363 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
8364 setting GRUB_VIDEO_BACKEND. Make it available as a user override
8365 instead. Replace the gfxterm backend check with a check that
8366 ${GRUB_PREFIX}/video.lst is non-empty.
8367 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
8369 (load_video): New generated function. Call it before loading
8370 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
8371 * util/grub.d/10_linux.in (linux_entry): Call load_video.
8372 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
8373 * docs/grub.texi (Simple configuration): Document
8376 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8378 Use video functions in linux and xnu loaders.
8380 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
8381 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
8382 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
8383 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
8384 loader/i386/pc/linux.c.
8385 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
8386 (find_line_len): Removed.
8387 (find_framebuf): Likewise.
8388 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
8389 * loader/i386/efi/xnu.c: Removed.
8390 * loader/i386/pc/xnu.c: Moved from here...
8391 * loader/i386/xnu.c: ...here.
8393 Enable priorities in video drivers.
8395 * include/grub/video.h (grub_video_adapter_prio_t): New type.
8396 (grub_video_adapter): New field prio.
8397 (grub_video_register): Respect prio when inserting.
8398 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
8399 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
8400 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
8401 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
8402 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
8403 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
8404 * video/sm712.c (grub_video_sm712_adapter): Likewise.
8408 * include/grub/video.h (grub_video_driver_id_t): New value
8409 GRUB_VIDEO_DRIVER_SDL.
8410 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
8412 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8414 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
8416 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8418 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8420 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
8421 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8423 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8425 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
8426 directly, and recommend grub-install instead.
8427 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8429 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
8431 Fix i386-pc prefix handling with nested partitions (Debian bug
8432 #585068). Note that the case where the core image is booted using
8433 multiboot and relocated from its original location still requires
8436 * kern/i386/pc/init.c (make_install_device): If the prefix starts
8437 with "(,", fill the boot drive in between those two characters, but
8438 expect that a full partition specification including partition map
8440 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
8441 specified, write a prefix without the drive name but including a
8442 full partition specification.
8444 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
8446 * util/grub-mkconfig.in: Ignore non-option arguments, for
8447 compatibility with older versions (before 2010-06-12) which did the
8448 same. In particular, this makes it easier to ship an update-grub
8449 wrapper which is compatible with that used with GRUB Legacy (Debian
8452 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8454 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
8455 for manual page generation.
8457 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8459 * po/POTFILES: Remove leftover commands/handler.c.
8461 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
8463 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
8464 left this script non-functional.
8466 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
8468 * docs/man/grub-emu.h2m: New file.
8470 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
8472 * docs/grub.texi (Commands): Document reduced command set in rescue
8474 (cpuid): New section.
8476 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
8478 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
8479 new partition naming style.
8480 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
8482 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
8484 Add "-o grub.iso" like cmdline options support.
8486 * util/grub-install.in: Improve cmdline option parsing.
8487 * util/grub-mkconfig.in: Likewise.
8488 * util/grub-mkrescue.in: Likewise.
8489 * util/grub-reboot.in: Likewise.
8490 * util/grub-set-default.in: Likewise.
8491 * util/i386/efi/grub-install.in: Likewise.
8492 * util/ieee1275/grub-install.in: Likewise.
8493 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8495 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8497 * .bzrignore: Ignore 41_custom.
8499 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8501 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
8503 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8505 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
8506 prototype declarations.
8508 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
8509 generating fs, partmap, and video lists.
8510 * include/grub/fs.h (grub_fs_register): Omit prototype if
8511 GRUB_LST_GENERATOR is defined.
8512 * include/grub/partition.h (grub_partition_map_register): Likewise.
8513 * include/grub/video.h (grub_video_register): Likewise.
8515 2010-06-12 Javier Martín <lordhabbit@gmail.com>
8517 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
8519 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8521 * util/grub-mkrescue.in: Support --xorriso argument.
8523 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8525 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
8526 Suggested by: Thomas Schmitt.
8528 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8530 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
8531 Suggested by: Thomas Schmitt.
8533 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8537 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
8538 * util/grub.d/41_custom.in: New file.
8540 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
8542 * util/grub-mkrescue.in (make_image): Remove sh module, which has
8543 been merged back into normal.
8545 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
8547 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
8548 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
8550 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
8552 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
8553 when generating manual pages.
8554 * docs/man/grub-bin2h.h2m: New file.
8555 * docs/man/grub-editenv.h2m: New file.
8556 * docs/man/grub-fstest.h2m: New file.
8557 * docs/man/grub-install.h2m: New file.
8558 * docs/man/grub-macho2img.h2m: New file.
8559 * docs/man/grub-mkconfig.h2m: New file.
8560 * docs/man/grub-mkdevicemap.h2m: New file.
8561 * docs/man/grub-mkfont.h2m: New file.
8562 * docs/man/grub-mkimage.h2m: New file.
8563 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
8564 * docs/man/grub-mkrelpath.h2m: New file.
8565 * docs/man/grub-mkrescue.h2m: New file.
8566 * docs/man/grub-ofpathname.h2m: New file.
8567 * docs/man/grub-pe2elf.h2m: New file.
8568 * docs/man/grub-probe.h2m: New file.
8569 * docs/man/grub-reboot.h2m: New file.
8570 * docs/man/grub-script-check.h2m: New file.
8571 * docs/man/grub-set-default.h2m: New file.
8572 * docs/man/grub-setup.h2m: New file.
8574 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
8576 Use FOR_* macros instead of *_iterate whenever possible.
8578 * commands/handler.c: Removed.
8579 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
8580 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
8581 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8582 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
8583 (grub_probe_SOURCES): Remove kern/parser.c.
8584 (util/grub-script-check.c_DEPENDENCIES): Removed.
8585 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
8586 and grub_script_check_init.c.
8587 (grub_script_check_init.lst): Removed.
8588 (grub_script_check_init.h): Likewise.
8589 (grub_script_check_init.c): Likewise.
8590 (pkglib_MODULES): Remove handler.mod and sh.mod.
8591 (handler_mod_SOURCES): Removed.
8592 (handler_mod_CFLAGS): Likewise.
8593 (handler_mod_LDFLAGS): Likewise.
8594 (normal_mod_SOURCES): Remove normal/handler.c.
8595 Add script/main.c, script/script.c, script/execute.c,
8596 script/function.c, script/lexer.c, grub_script.tab.c
8597 and grub_script.yy.c.
8598 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8599 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8600 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
8601 (grub_setup_SOURCES): Remove kern/parser.c.
8602 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8603 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
8604 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8605 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8606 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8607 (grub_setup_SOURCES): Remove kern/parser.c.
8608 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8609 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
8610 * include/grub/command.h (grub_command_iterate): Removed.
8611 (FOR_COMMANDS): New macro.
8612 * include/grub/dl.h (grub_dl): New member next.
8613 (grub_dl_iterate): Removed.
8614 (grub_dl_head): New variable declaration.
8615 (FOR_DL_MODULES): New macro.
8616 * include/grub/fs.h: Include list.h.
8617 (grub_fs): Make next first element.
8618 (grub_fs_list): New variable declaration.
8619 (grub_fs_register): Make inline.
8620 (grub_fs_unregister): Likewise.
8621 (grub_fs_iterate): Removed.
8622 (FOR_FILESYSTEMS): New macro.
8623 * include/grub/handler.h: Removed.
8624 * include/grub/list.h (grub_list_hook_t): Removed.
8625 (grub_list_test_t): Likewise.
8626 (grub_list_pop): Likewise.
8627 (grub_list_iterate): Likewise.
8628 (grub_list_insert): Likewise.
8629 (FOR_LIST_ELEMENTS): New macro.
8630 * include/grub/parser.h (grub_parser_class): Removed.
8631 (grub_parser_register): Likewise.
8632 (grub_parser_unregister): Likewise.
8633 (grub_parser_get_current): Likewise.
8634 (grub_parser_set_current): Likewise.
8635 (grub_register_rescue_parser): Likewise.
8636 (grub_rescue_parse_line): New function.
8637 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
8638 * include/grub/script_sh.h (grub_script_function_list): New variable
8640 (FOR_SCRIPT_FUNCTIONS): New macro.
8641 (grub_script_function_iterate): Removed.
8642 (grub_normal_parse_line): New prototype.
8643 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
8644 (FOR_DISABLED_TERM_INPUTS): Likewise.
8645 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
8646 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
8647 * include/grub/video.h (grub_video_adapter): Move 'next' to first
8649 (grub_video_register): Inline.
8650 (grub_video_unregister): Likewise.
8651 (grub_video_adapter_list): New variable declaration.
8652 (grub_video_iterate): Removed.
8653 (FOR_VIDEO_ADAPTERS): New macro.
8654 * kern/dl.c (grub_dl_list): Removed. All users updated.
8655 (grub_dl_iterate): Removed.
8656 * kern/fs.c (grub_fs_list): Make global.
8657 (grub_fs_register): Removed.
8658 (grub_fs_unregister): Likewise.
8659 (grub_fs_iterate): Likewise.
8660 * kern/handler.c: Removed.
8661 * kern/list.c (grub_list_pop): Removed.
8662 (grub_list_iterate): Likewise.
8663 (grub_list_insert): Likewise.
8664 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
8665 (grub_prio_list_insert): Don't use grub_list_insert.
8666 * kern/main.c (grub_register_rescue_parser): Don't call
8667 grub_register_rescue_parser.
8668 * kern/parser.c (grub_parser_class): Removed.
8669 (grub_parser_execute): Use grub_rescue_parse_line.
8670 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
8671 (grub_rescue_parser): Removed.
8672 (grub_register_rescue_parser): Likewise.
8673 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
8674 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
8675 (grub_auth_check_authentication): Likewise.
8676 * normal/completion.c (iterate_command): Removed.
8677 (grub_normal_do_completion): Use FOR_COMMANDS.
8678 * normal/handler.c: Removed.
8679 * normal/main.c (read_config_file): Remove parser changing.
8680 (grub_normal_execute): Don't call read_handler_list.
8681 (grub_normal_read_line_real): Statically allocate prompt.
8682 (grub_cmdline_run): Use grub_normal_parse_line.
8683 (GRUB_MOD_FINI): Don't call free_handler_list.
8684 * normal/menu_entry.c (run): Likewise.
8685 * script/function.c (grub_script_function_list): Make global.
8686 (grub_script_function_iterate): Removed.
8687 * script/main.c (grub_normal_parse_line): Make global.
8688 (grub_sh_parser): Removed.
8689 (GRUB_MOD_INIT): Likewise.
8690 (GRUB_MOD_FINI): Likewise.
8691 * tests/lib/functional_test.c (grub_functional_test): Use
8693 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
8694 (grub_test_run): Use FOR_LIST_ELEMENTS.
8695 * tests/lib/unit_test.c (main): Likewise.
8696 * util/deviceiter.c (grub_util_iterate_devices): Don't use
8698 * util/grub-fstest.c (grub_term_input_class): Removed.
8699 (grub_term_output_class): Likewise.
8700 * util/grub-probe.c: Likewise.
8701 * util/i386/pc/grub-setup.c: Likewise.
8702 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8703 * util/grub-script-check.c (main): Don't call grub_init_all and
8705 * video/video.c (grub_video_adapter_list): Make global.
8706 (grub_video_register): Removed.
8707 (grub_video_unregister): Likewise.
8708 (grub_video_iterate): Likewise.
8710 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8712 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
8713 reported by Henrique Ferreiro.
8715 2010-06-09 Robert Millan <rmh@gnu.org>
8717 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
8718 ones, when both are available.
8720 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8722 Make --version uniform and avoid hard-coded program name.
8724 * util/grub-mkimage.c (main): Use `program_name' instead of
8726 * util/i386/pc/grub-setup.c (main): Likewise.
8727 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
8728 * util/grub-install.in: Save the basename of $0 in $self, and use the
8729 latter in informational messages. Use the same format for --version
8730 as the binary programs.
8731 * util/grub-mkconfig.in: Likewise.
8732 * util/grub-mkrescue.in: Likewise.
8733 * util/grub-reboot.in: Likewise.
8734 * util/grub-set-default.in: Likewise.
8735 * util/i386/efi/grub-install.in: Likewise.
8736 * util/ieee1275/grub-install.in: Likewise.
8737 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8739 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8741 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
8742 embedding area. Use <= instead of == when checking for non-emptiness.
8744 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8746 * configure.ac: Add `.' to the directories searched for unifont.
8748 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8750 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
8753 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8755 * docs/grub.texi (History): Expand to cover GRUB 2.
8756 (Serial terminal): Refer to `terminal_input' and `terminal_output'
8757 commands, not `terminal'.
8759 (terminal_input): New section.
8760 (terminal_output): New section.
8761 (uppermem): New section (stub).
8762 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
8764 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
8766 * docs/grub.texi (Security): Menu entries are unrestricted by
8767 default, not restricted to superusers as I had previously thought.
8768 Reword to account for this.
8770 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8772 * kern/emu/misc.c (device_mapper_null_log): New function.
8773 (grub_device_mapper_supported): New function.
8774 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
8776 * kern/emu/hostdisk.c (find_partition_start): Check whether
8777 device-mapper is supported before trying to use it.
8778 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
8780 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8782 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
8783 (File name syntax): Likewise.
8784 (help): --all is no longer supported in GRUB 2. Be more precise
8785 about pattern matching.
8787 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8789 * normal/completion.c (grub_normal_do_completion): When completing
8790 arguments to "set" and the current word contains an equals sign,
8791 skip to after the equals sign before starting completion.
8793 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8795 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
8797 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8799 * docs/grub.texi (Network): New section.
8800 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
8801 `(nd)' as in GRUB Legacy.
8802 (pxe_unload): New section.
8804 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8806 * docs/grub.texi (Troubleshooting): `echo' is not usually available
8807 in the rescue shell, so recommend using `set' instead. Thanks,
8810 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8812 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
8813 (password): New section.
8814 (password_pbkdf2): New section.
8815 (search): New section.
8816 (Security): New section.
8817 (Troubleshooting): New section, currently very incomplete.
8818 (Invoking grub-mkpasswd-pbkdf2): New section.
8819 (Internals): New section, currently very incomplete.
8821 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8823 * util/grub.d/00_header.in: Add some more quoting (of
8824 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
8826 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
8828 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
8830 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
8831 to `count', fixing variable shadowing that broke the -c option.
8833 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
8835 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
8836 in case they contain spaces.
8838 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
8840 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
8841 "part_" to partmap module names, in line with grub-install.
8842 Reported by: Jindřich Makovička (Debian bug #584426).
8844 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
8846 * util/grub-mkimage.c: Make target-related error messages slightly
8847 more helpful; -O talks about "format". Explicitly point to the use
8848 of -O if no target is specified.
8849 Reported by: Didier Raboud (Debian bug #584415).
8851 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
8853 * INSTALL: Document several build requirements for optional features
8854 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
8856 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
8858 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
8859 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
8860 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
8862 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
8864 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
8865 Thanks to Jordan Uggla for spotting this.
8867 2010-06-02 Aleš Nesrsta <starous@volny.cz>
8869 Finally make USB usable.
8871 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
8872 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
8873 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
8874 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
8875 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
8876 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
8877 (GRUB_OHCI_FSMPS): Likewise.
8878 (GRUB_OHCI_PERIODIC_START): Likewise.
8879 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
8880 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
8881 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
8882 (GRUB_OHCI_SET_PORT_RESET): Likewise.
8883 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
8884 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
8885 (grub_ohci_transaction): Likewise.
8886 (grub_ohci_transfer): Improve condition detection algorithms.
8887 Handle toggle property. Program the transactions correctly.
8888 Improve error handling. Various important fixups.
8889 (grub_ohci_portstatus): Put register writes in right order.
8890 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
8891 (grub_uhci_transfer): Don't show "failed" message on success.
8892 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
8894 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
8896 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
8897 before initialization is completed. Use IN direction for empty
8898 transfers. Use last_trans and compute toggle.
8899 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
8900 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
8901 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
8902 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
8903 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
8904 (grub_usb_device): Increase toggle to 256.
8905 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
8906 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
8907 GRUB_USBMS_SUBCLASS_SFF8070.
8908 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
8909 (grub_scsi_inquiry): New member page and alloc_length.
8910 (grub_scsi_request_sense): New structure.
8911 (grub_scsi_request_sense_data): Likewise.
8912 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
8914 * disk/scsi.c (grub_scsi_request_sense): New function.
8915 (grub_scsi_test_unit_ready): Likewise.
8916 (grub_scsi_inquiry): Fill new fields.
8917 (grub_scsi_read_capacity): Likewise.
8918 (grub_scsi_read10): Add request sense at the end.
8919 (grub_scsi_read12): Likewise.
8920 (grub_scsi_write10): Likewise.
8921 (grub_scsi_write12): Likewise.
8922 (grub_scsi_open): Add Test Unit Ready.
8923 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
8924 Support additional subclasses. Con't clear halt yet. Activate the
8925 proper config. Calculate LUNs correctly.
8926 (grub_usbms_transfer): Various important fixups.
8928 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8930 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
8931 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
8932 (grub_ohci_fini_hw): New function.
8933 (grub_ohci_restore_hw): Likewise.
8934 (GRUB_MOD_INIT(ohci)): Register preboot hook.
8935 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
8936 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
8938 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8940 Dedicated DMA allocations.
8942 * bus/pci.c (grub_memalign_dma32): New function
8943 (grub_dma_free): Likewise.
8944 (grub_dma_get_virt): Likewise.
8945 (grub_dma_get_phys): Likewise.
8946 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
8947 (grub_ohci_pci_iter): Use dma32_alloc.
8948 (grub_ohci_transfer): Likewise.
8949 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
8950 (grub_usb_bulk_readwrite): Likewise.
8951 * include/grub/pci.h: Add declarations.
8953 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
8957 * bus/cs5536.c: New file.
8958 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
8959 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
8960 (cs5536_mod_SOURCES): New variable.
8961 (cs5536_mod_CFLAGS): Likewise.
8962 (cs5536_mod_LDFLAGS): Likewise.
8963 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
8965 (kernel_img_SOURCES): Add bus/cs5536.c.
8966 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
8968 (usb_mod_SOURCES): New variable.
8969 (usb_mod_CFLAGS): New variable.
8970 (usb_mod_LDFLAGS): New variable.
8971 (usbtest_mod_SOURCES): New variable.
8972 (usbtest_mod_CFLAGS): New variable.
8973 (usbtest_mod_LDFLAGS): New variable.
8974 (ohci_mod_SOURCES): New variable.
8975 (ohci_mod_CFLAGS): New variable.
8976 (ohci_mod_LDFLAGS): New variable.
8977 (usbms_mod_SOURCES): New variable.
8978 (usbms_mod_CFLAGS): New variable.
8979 (usbms_mod_LDFLAGS): New variable.
8980 (usb_keyboard_mod_SOURCES): New variable.
8981 (usb_keyboard_mod_CFLAGS): New variable.
8982 (usb_keyboard_mod_LDFLAGS): New variable.
8983 * include/grub/smbus.h: New file.
8984 * include/grub/cs5536.h: New file.
8986 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
8988 * util/grub.d/00_header.in: Add safety check to make sure that
8989 ${locale_dir} exists before trying to probe it.
8991 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
8993 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
8994 per the GNU Coding Standards; this is now too obscure to be worth
8997 (chainloader): Remove cross-reference to `SCO UnixWare'.
8999 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9001 * docs/grub.texi (Chain-loading): New section.
9002 (DOS/Windows): New section, borrowed from GRUB Legacy with details
9003 adjusted for GRUB 2.
9004 (SCO UnixWare): Likewise.
9006 (chainloader): Add reference to `Block list syntax'.
9007 (drivemap): New section.
9008 (parttool): New section.
9010 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9012 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
9014 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
9015 (Installing GRUB using grub-install): Remove reference to the grub
9016 shell; mention `grub-mkimage' and `grub-setup' instead.
9017 (Invoking grub-install): Likewise.
9018 (Interface): Add reference to `Menu entry editor'.
9019 (serial): Remove `--device' option.
9021 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9023 * docs/grub.texi (Configuration): New section, documenting
9024 configuration file generation using grub-mkconfig. I've left a slot
9025 for documenting the full shell scripting format but have not yet
9026 started on writing that up.
9027 (Invoking grub-mkconfig): New section.
9029 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9031 * docs/grub.texi (direntry): Remove grub-terminfo reference.
9032 (GNU GRUB manual): Likewise.
9033 (General commands): Update description of `terminfo' for GRUB 2.
9035 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9037 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
9038 (GRUB_MOD_INIT): Fix capitalisation.
9039 * docs/grub.texi (Command-line and menu entry commands): Document
9040 gettext and gptsync commands.
9042 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
9044 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
9045 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
9047 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
9049 Add btrfs probing support, currently only in the single-device case.
9051 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
9053 (grub_guess_root_device): Call find_root_device_from_mountinfo
9054 before looking in /dev.
9056 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9058 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
9059 GRUB_DISK_SIZE_UNKNOWN.
9060 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
9062 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
9064 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
9065 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
9066 corrupted or not synced properly.
9068 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9070 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
9071 Reported by: Seth Goldberg.
9073 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9075 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
9077 Reported by: Seth Goldberg.
9079 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9081 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
9082 Reported by: Seth Goldberg.
9084 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9086 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
9087 64-bit address as signed on MIPS.
9089 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9091 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
9092 to the empty string.
9094 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
9096 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
9098 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
9099 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
9100 * kern/misc.c (__enable_execute_stack): Disable on
9103 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
9105 Make grub-probe work with symbolic links under /dev/mapper as well
9106 as with real block devices. The Linux world seems to be (at best)
9107 in transition here, and GRUB shouldn't get caught in the middle.
9109 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
9112 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9114 * util/grub-script-check.c (main): Ensure defined behaviour on empty
9115 input files (in which case exit zero).
9117 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9119 * kern/emu/misc.c (canonicalize_file_name): realpath can still
9120 return NULL for various reasons even if it has a maximum-length
9121 buffer: for example, there might be a symlink loop, or the path
9122 might exceed PATH_MAX. If this happens, return NULL.
9124 2010-05-27 Robert Millan <rmh@gnu.org>
9126 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
9127 partmap module to handle cross-partmap setups.
9128 Reported by Orestes Mas. Gràcies!
9130 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
9132 * util/grub-mkrescue.in: Initialise override_dir rather than
9133 assuming that it's unset or empty in the environment.
9135 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
9137 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
9138 variable index into p_index to suppress a warning with -Wshadow.
9140 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
9142 * INSTALL: Added flex >= 2.5.35 requirement.
9144 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9146 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
9148 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9152 * commands/i386/cmostest.c: New file.
9153 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
9154 (cmostest_mod_SOURCES): New variable.
9155 (cmostest_mod_CFLAGS): Likewise.
9156 (cmostest_mod_LDFLAGS): Likewise.
9157 * conf/i386-pc.rmk: Likewise.
9158 * docs/grub.texi (Vendor power-on keys): New section.
9159 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
9160 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
9161 and GRUB_BUTTON_CMOS_ADDRESS.
9162 * util/grub.d/00_header.in: Handle powering-on by separate button.
9164 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9166 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
9167 Removed drawing_scrollbar argument. All users updated
9169 Reported by Jo Shields
9171 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9173 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
9174 buffer since gfxterm handles double repaint.
9176 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9178 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
9179 * term/gfxterm.c (real_scroll): Likewise.
9181 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9183 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
9184 before calling BIOS.
9186 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9188 * include/grub/i18n.h: Always enable grub_gettext.
9190 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9192 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
9193 partition naming style.
9195 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
9197 * util/grub-mkconfig.in: Fix handling of -o so that it works when
9198 not the first option.
9200 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9202 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
9204 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
9206 * util/misc.c: Move inclusion of <limits.h> to ...
9207 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
9209 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
9211 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
9212 Fix merge error in NetBSD code.
9213 (find_partition_start) [__NetBSD__]: Likewise.
9215 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
9217 Fix grub-mkrescue usage unit testing.
9219 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
9221 2010-05-18 Christian Franke <franke@computer.org>
9223 * util/grub.d/10_windows.in: Use path names instead of
9224 drive letters to prevent warning from Cygwin 1.7.
9225 Add drivemap command to menuentry if needed.
9227 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
9229 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
9230 gnumach and gnumach.gz.
9232 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9234 * include/grub/i18n.h (gettext): Inline instead of using #define.
9235 (grub_gettext): Likewise.
9238 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9240 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
9241 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
9242 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
9243 (main): Add a slash after pkglibdirroot.
9245 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9247 * util/grub-install.in: Add missing "in" keyword.
9249 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9251 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
9252 Reported by: Seth Goldberg.
9254 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9256 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
9258 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9260 * configure.ac: Check for Linux device-mapper support.
9262 * util/hostdisk.c (device_is_mapped): New function.
9263 (find_partition_start): New function, partly broken out from
9264 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
9265 device-mapper support added.
9266 (linux_find_partition): Use find_partition_start.
9267 (convert_system_partition_to_system_disk): Add `st' argument.
9268 Support Linux /dev/mapper/* devices if device-mapper support is
9269 available; only DM-RAID devices are understood at present.
9270 (find_system_device): Add `st' argument. Pass it to
9271 convert_system_partition_to_system_disk.
9272 (grub_util_biosdisk_get_grub_dev): Pass stat result to
9273 find_system_device and convert_system_partition_to_system_disk. Use
9274 find_partition_start.
9276 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
9277 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
9278 * util/deviceiter.c [__linux__]: Define MINOR.
9279 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
9280 * util/mkdevicemap.c (grub_putchar): New function.
9281 (grub_getkey): New function.
9282 (grub_refresh): New function.
9283 (main): Set debug=all if -v -v is used.
9285 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9287 Fix build with non-GNU libcs.
9289 * util/misc.c (canonicalize_file_name): Move to ...
9290 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
9291 grub_make_system_path_relative_to_its_root.
9293 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
9295 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
9296 we handle finding grub-mkimage. Default to finding grub-mkimage in
9297 ${bindir} with program_transform_name applied, and provide a
9298 --grub-mkimage option to override this.
9300 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9302 Remove grub-mkisofs.
9304 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
9305 (grub_mkisofs_SOURCES): Removed.
9306 (grub_mkisofs_CFLAGS): Removed.
9307 * util/mkisofs/defaults.h: Removed.
9308 * util/mkisofs/eltorito.c: Likewise.
9309 * util/mkisofs/exclude.h: Likewise.
9310 * util/mkisofs/hash.c: Likewise.
9311 * util/mkisofs/include/: Likewise.
9312 * util/mkisofs/include/fctldefs.h: Likewise.
9313 * util/mkisofs/include/mconfig.h: Likewise.
9314 * util/mkisofs/include/prototyp.h: Likewise.
9315 * util/mkisofs/include/statdefs.h: Likewise.
9316 * util/mkisofs/iso9660.h: Likewise.
9317 * util/mkisofs/joliet.c: Likewise.
9318 * util/mkisofs/match.c: Likewise.
9319 * util/mkisofs/match.h: Likewise.
9320 * util/mkisofs/mkisofs.c: Likewise.
9321 * util/mkisofs/mkisofs.h: Likewise.
9322 * util/mkisofs/msdos_partition.h: Likewise.
9323 * util/mkisofs/multi.c: Likewise.
9324 * util/mkisofs/name.c: Likewise.
9325 * util/mkisofs/rock.c: Likewise.
9326 * util/mkisofs/tree.c: Likewise.
9327 * util/mkisofs/write.c: Likewise.
9329 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9331 Unify grub-mkimage accross platforms.
9333 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
9334 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
9335 (grub_mkelfimage_SOURCES): Removed.
9336 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
9337 (util/grub-mkimage.c_DEPENDENCIES): .. this.
9338 (bin_UTILITIES): Add grub-mkimage.
9339 (grub_mkimage_SOURCES): New variable.
9340 (kernel_img_HEADERS): Remove machine/kernel.h.
9341 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
9342 (pkglib_PROGRAMS): Add kernel.img.
9343 (kernel_img_HEADERS): Add machine/kernel.h.
9344 (kernel_img_FORMAT): Removed.
9345 (bin_UTILITIES): Remove grub-mkimage.
9346 (grub_mkimage_SOURCES): Removed.
9347 (grub_mkimage_CFLAGS): Likewise.
9348 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9349 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
9350 (pkglib_PROGRAMS): Add kernel.img.
9351 (bin_UTILITIES): Remove grub-mkimage.
9352 (grub_mkimage_SOURCES): Removed.
9353 (grub_mkimage_CFLAGS): Likewise.
9354 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9355 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
9356 (pkglib_PROGRAMS): Add kernel.img.
9357 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
9358 (pkglib_PROGRAMS): Add kernel.img.
9359 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
9360 (grub_mkimage_SOURCES): Removed.
9361 (grub_mkimage_CFLAGS): Likewise.
9362 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9363 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
9364 (pkglib_PROGRAMS): Add kernel.img.
9365 (bin_UTILITIES): Remove grub-mkimage.
9366 (grub_mkimage_SOURCES): Removed.
9367 (grub_mkimage_CFLAGS): Likewise.
9368 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9369 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
9370 (grub_mkimage_SOURCES): Removed.
9371 (grub_mkimage_CFLAGS): Likewise.
9372 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9373 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
9374 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
9375 (grub_pe32_optional_header): ... this.
9376 (grub_pe64_optional_header): ... and this. All users updated.
9377 (GRUB_PE32_PE32_MAGIC): Split into ..
9378 (GRUB_PE32_PE32_MAGIC): .. this.
9379 (GRUB_PE32_PE64_MAGIC): .. and this.
9380 (GRUB_PE32_SIGNATURE_SIZE): New definition.
9381 * include/grub/elf.h (PT_GNU_STACK): New definition.
9382 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
9383 * include/grub/i386/efi/kernel.h: Likewise.
9384 * include/grub/i386/kernel.h: Likewise.
9385 * include/grub/i386/pc/kernel.h: Likewise.
9386 * include/grub/i386/qemu/boot.h: Likewise.
9387 * include/grub/mips/kernel.h: Likewise.
9388 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9389 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9390 * include/grub/powerpc/kernel.h: Likewise.
9391 * include/grub/sparc64/ieee1275/boot.h: Likewise.
9392 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9393 * include/grub/sparc64/kernel.h: Likewise.
9394 * include/grub/x86_64/efi/kernel.h: Likewise.
9395 * include/grub/x86_64/kernel.h: Likewise.
9396 * include/grub/offsets.h: New file.
9397 * include/grub/kernel.h (grub_module_info): Split into ...
9398 (grub_module_info32): ... this.
9399 (grub_module_info64): ... and this.
9400 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
9401 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
9402 (grub_boot_blocklist): Moved from here ...
9403 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
9404 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
9405 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
9406 * include/grub/types.h (grub_target_to_host16): Removed.
9407 (grub_target_to_host32): Likewise.
9408 (grub_target_to_host64): Likewise.
9409 (grub_host_to_target16): Likewise.
9410 (grub_host_to_target32): Likewise.
9411 (grub_host_to_target64): Likewise.
9412 (grub_host_to_target_addr): Likewise.
9414 Support grub-mkrescue for efi, coreboot and qemu.
9416 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
9417 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
9418 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
9419 * util/grub-mkrawimage.c: Moved from here ...
9420 * util/grub-mkimage.c: ... here. All users updated.
9421 (ALIGN_ADDR): Use image_target.
9422 (TARGET_NO_FIELD): New const.
9423 (image_target_desc): New type.
9424 (image_targets): New array.
9425 (grub_target_to_host64): Use image_target.
9426 (grub_target_to_host32): Likewise.
9427 (grub_target_to_host16): Likewise.
9428 (grub_host_to_target64): Likewise.
9429 (grub_host_to_target32): Likewise.
9430 (grub_host_to_target16): Likewise.
9431 (grub_host_to_target_addr): Likewise.
9432 (generate_image): Handle multiimage.
9433 (main): Require -O parameter. All users updated.
9434 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
9435 util/efi/grub-mkimage.c
9436 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
9437 New option --rom-directory.
9439 * util/i386/efi/grub-mkimage.c: Removed.
9440 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
9441 (grub_target_to_host32): Likewise.
9442 (grub_target_to_host64): Likewise.
9443 (grub_host_to_target16): Likewise.
9444 (grub_host_to_target32): Likewise.
9445 (grub_host_to_target64): Likewise.
9446 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
9447 (grub_target_to_host32): Likewise.
9448 (grub_target_to_host64): Likewise.
9449 (grub_host_to_target16): Likewise.
9450 (grub_host_to_target32): Likewise.
9451 (grub_host_to_target64): Likewise.
9453 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
9455 Source tree is reorganized for emu build.
9457 * include/grub/util/console.h: Move from here...
9458 * include/grub/emu/console.h: ...to here.
9459 * include/grub/util/getroot.h: Move from here...
9460 * include/grub/emu/getroot.h: ...to here.
9461 * include/grub/util/hostdisk.h: Move from here...
9462 * include/grub/emu/hostdisk.h: ...to here.
9463 * util/console.c: Move from here...
9464 * kern/emu/console.c: ...to here.
9465 * util/getroot.c: Move from here...
9466 * kern/emu/getroot.c: ...to here.
9467 * util/grub-emu.c: Move from here...
9468 * kern/emu/main.c: ...to here.
9469 * util/hostdisk.c: Move from here...
9470 * kern/emu/hostdisk.c: ...to here.
9471 * util/hostfs.c: Move from here...
9472 * kern/emu/hostfs.c: ...to here.
9473 * util/mm.c: Move from here...
9474 * kern/emu/mm.c: ...to here.
9475 * util/pci.c: Move from here...
9476 * bus/emu/pci.c: ...to here.
9477 * util/sdl.c: Move from here...
9478 * video/emu/sdl.c: ...to here.
9479 * util/time.c: Move from here...
9480 * kern/emu/time.c: ...to here.
9481 * util/usb.c: Move from here...
9482 * bus/usb/emu/usb.c: ...to here.
9484 * include/grub/emu/misc.h: New header for grub-emu functions.
9485 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
9487 * conf/any-emu.rmk: Rule updates for above renames.
9488 * conf/common.rmk: Likewise.
9489 * conf/i386-pc.rmk: Likewise.
9490 * conf/i386-qemu.rmk: Likewise.
9491 * conf/mips.rmk: Likewise.
9492 * conf/sparc64-ieee1275.rmk: Likewise.
9493 * conf/x86-efi.rmk: Likewise.
9495 * disk/lvm.h: #include updates for above renames.
9496 * util/grub-mkrelpath.c: Likewise.
9497 * util/grub-probe.c: Likewise.
9498 * util/i386/pc/grub-setup.c: Likewise.
9499 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9500 * kern/emu/console.c: Likewise.
9501 * kern/emu/getroot.c: Likewise.
9502 * kern/emu/hostdisk.c: Likewise.
9503 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
9505 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
9506 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
9507 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
9508 * util/misc.c: Remove grub-emu functions.
9510 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9513 Reported by: Thorsten Grützmacher.
9515 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
9517 (circprog_set_property): Register and unregister timeout hook.
9518 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
9519 (label_destroy): Free template. and unregister hook.
9520 (label_set_state): New function.
9521 (label_set_property): Handle templates and hooks.
9522 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
9524 (progress_bar_set_property): Register and unregister timeout hook.
9525 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
9526 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
9527 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
9528 (update_timeout_visit): Removed.
9529 (update_timeouts): New function.
9530 (redraw_timeouts): Likewise.
9531 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
9532 (grub_gfxmenu_clear_timeout): Likewise.
9533 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
9534 (grub_gfxmenu_timeout_notify): Likewise.
9535 (grub_gfxmenu_timeout_notifications): New external variable.
9536 (grub_gfxmenu_timeout_register): New function.
9537 (grub_gfxmenu_timeout_unregister): Likewise.
9539 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9541 Transform (broken) vga terminal into (working) vga video driver.
9543 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
9544 video/i386/pc/vga.c.
9545 * include/grub/video.h (grub_video_driver_id):
9546 Add GRUB_VIDEO_DRIVER_VGA.
9547 * term/i386/pc/vga.c: Renamed to ...
9548 * video/i386/pc/vga.c: ...this
9549 (DEBUG_VGA): Removed.
9550 (CHAR_WIDTH): Likewise.
9551 (CHAR_HEIGHT): Likewise.
9552 (TEXT_WIDTH): Likewise.
9553 (TEXT_HEIGHT): Likewise.
9554 (DEFAULT_FG_COLOR): Likewise.
9555 (DEFAULT_BG_COLOR): Likewise.
9556 (colored_char): Likewise.
9559 (cursor_state): Likewise.
9560 (fg_color): Likewise.
9561 (bg_color): Likewise.
9562 (text_buf): Likewise.
9565 (framebuffer): New variable.
9566 (set_read_map): Disabled.
9567 (setup): New variable.
9568 (is_target): Likewise.
9569 (grub_vga_mod_init): Likewise.
9570 (grub_vga_mod_fini): Likewise.
9571 (check_vga_mem): Likewise.
9572 (write_char): Likewise.
9573 (write_cursor): Likewise.
9574 (scroll_up): Likewise.
9575 (grub_vga_putchar): Likewise.
9576 (grub_vga_getcharwidth): Likewise.
9577 (grub_vga_getwh): Likewise.
9578 (grub_vga_getxy): Likewise.
9579 (grub_vga_gotoxy): Likewise.
9580 (grub_vga_cls): Likewise.
9581 (grub_vga_setcolorstate): Likewise.
9582 (grub_vga_setcursor): Likewise.
9583 (grub_video_vga_init): New function.
9584 (grub_video_vga_setup): Likewise.
9585 (grub_video_vga_fini): Likewise.
9586 (update_target): Likewise.
9587 (grub_video_vga_blit_bitmap): Likewise.
9588 (grub_video_vga_blit_render_target): Likewise.
9589 (grub_video_vga_set_active_render_target): Likewise.
9590 (grub_video_vga_get_active_render_target): Likewise.
9591 (grub_video_vga_swap_buffers): Likewise.
9592 (grub_video_vga_set_palette): Likewise.
9593 (grub_video_vga_get_info_and_fini): Likewise.
9594 (grub_vga_term): Removed.
9595 (grub_video_vga_adapter): New variable.
9596 (GRUB_MOD_INIT): Register a video driver instead of terminal.
9597 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
9599 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9601 * video/readers/jpeg.c: Indented.
9603 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9605 Various jpeg cleanups.
9607 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
9608 (grub_jpeg_decode_quan_table): Use sizeof.
9609 (grub_jpeg_decode_du): Use ARRAY_SIZE.
9611 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
9613 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
9614 tables. Ignore non-last ac bit.
9615 (grub_jpeg_decode_quan_table): Likewise.
9617 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9619 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
9620 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
9621 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9622 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
9623 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
9624 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
9626 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9628 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
9631 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9633 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
9635 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9637 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
9640 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9642 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
9645 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9647 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
9650 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9652 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
9654 2010-05-01 Christian Franke <franke@computer.org>
9656 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
9657 Remove broken Cygwin path conversion.
9658 * util/misc.c: [__CYGWIN__] Add include and define.
9659 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
9661 (make_system_path_relative_to_its_root): Simplify loop, replace early
9663 [__CYGWIN__] Add conversion to win32 path.
9664 Include "/" case in trailing slash removal.
9666 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9668 * kern/main.c (grub_load_config): Fix copy-pasted comment.
9669 Reported by: Seth Goldberg
9671 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9673 * commands/help.c (grub_cmd_help): Fix a typo.
9674 Reported by: Seth Goldberg
9676 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9678 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
9680 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
9681 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
9682 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
9683 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
9684 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
9685 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
9686 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9687 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9688 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9689 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9690 * normal/context.c (GRUB_MOD_INIT): Likewise.
9691 * normal/main.c (GRUB_MOD_INIT): Likewise.
9692 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9693 * term/serial.c (GRUB_MOD_INIT): Likewise.
9694 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9696 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9698 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
9701 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9703 * commands/iorw.c: New file.
9704 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
9705 (iorw_mod_SOURCES): New variable.
9706 (iorw_mod_CFLAGS): Likewise.
9707 (iorw_mod_LDFLAGS): Likewise.
9709 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9713 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
9714 * normal/main.c (hotkey_aliases): New variable.
9715 (grub_normal_add_menu_entry): Parse "--hotkey".
9716 * normal/menu_text.c (run_menu): Handle hotkeys.
9718 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9720 * kern/i386/coreboot/init.c (grub_machine_init): Call
9721 grub_machine_mmap_init on qemu.
9723 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9725 * boot/i386/qemu/boot.S: Add a missing .code16.
9727 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9729 Use LBIO on coreboot.
9731 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
9732 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
9733 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
9735 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
9736 grub_machine_mmap_init on coreboot.
9737 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
9738 GRUB_LINUXBIOS_MEMBER_LINK.
9739 (grub_machine_mmap_iterate): Fix declaration.
9740 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
9742 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9744 Split coreboot and multiboot ports.
9746 * conf/i386-multiboot.rmk: New file.
9747 * configure.ac: Add multiboot port.
9748 * include/grub/i386/multiboot/boot.h: New file.
9749 * include/grub/i386/multiboot/console.h: Likewise.
9750 * include/grub/i386/multiboot/init.h: Likewise.
9751 * include/grub/i386/multiboot/kernel.h: Likewise.
9752 * include/grub/i386/multiboot/loader.h: Likewise.
9753 * include/grub/i386/multiboot/memory.h: Likewise.
9754 * include/grub/i386/multiboot/serial.h: Likewise.
9755 * include/grub/i386/multiboot/time.h: Likewise.
9756 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
9757 * loader/multiboot.c: Likewise.
9758 * loader/multiboot_mbi2.c: Likewise.
9759 * util/grub-mkrescue.in: Generate multiboot rescue.
9761 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9763 * kern/parser.c (grub_parser_execute): Cope with read-only config.
9765 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9767 Merge handling of input and output terminals. Fix a hang.
9769 * commands/terminal.c (abstract_terminal): New struct.
9770 (handle_command): New function. Based on grub_cmd_terminal_input.
9771 (grub_cmd_terminal_input): Use handle_command.
9772 (grub_cmd_terminal_output): Use handle_command.
9774 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
9776 Fix comment handling.
9778 * tests/grub_script_comments.in: New testcase.
9779 * conf/tests.rmk: Rules for new testcase.
9780 * script/yylex.l: Updated flex rules.
9782 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9784 * docs/grub.texi (play): Document that zero pitches produce rests.
9785 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
9788 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
9790 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
9793 2010-04-26 Christian Franke <franke@computer.org>
9795 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
9796 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
9797 (grub_get_prefix): Remove function.
9798 * util/grub-emu.c (main): Replace grub_get_prefix () call by
9799 make_system_path_relative_to_its_root ().
9800 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
9802 2010-04-24 Christian Franke <franke@computer.org>
9804 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
9805 (kernel_img_LDFLAGS): Remove -static-libgcc.
9807 2010-04-24 Christian Franke <franke@computer.org>
9809 * configure.ac: Do not CHECK_BSS_START_SYMBOL
9810 and CHECK_END_SYMBOL if grub-emu is built.
9811 Unset TARGET_OBJ2ELF if grub-emu is built
9812 without module support.
9814 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
9818 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
9819 (grub_fstest_SOURCES): Likewise.
9820 (pkglib_MODULES): Add nilfs2.mod.
9821 (nilfs2_mod_SOURCES): New variable.
9822 (nilfs2_mod_CFLAGS): Likewise.
9823 (nilfs2_mod_LDFLAGS): Likewise.
9824 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
9825 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
9826 * fs/nilfs2.c: New file.
9828 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9830 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
9833 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
9835 Add grub-mkconfig support for NetBSD.
9837 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
9838 * util/grub-mkconfig.in: export new NetBSD specific variables.
9839 * po/POTFILES-shell: added 10_netbsd.in.
9840 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
9842 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
9844 Fix emu build with grub-emu-pci and grub-emu-modules.
9846 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
9848 * include/grub/libpciaccess.h: New file.
9849 * conf/any-emu.rmk: Update kernel headers for emu build.
9851 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
9853 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
9855 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
9857 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
9859 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9861 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
9862 Retrieve chosen/bootpath if bootpath isn't hardcoded.
9863 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
9864 util/ieee1275/ofpath.c.
9865 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
9866 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
9867 * include/grub/sparc64/ieee1275/boot.h
9868 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
9869 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
9870 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
9871 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
9873 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
9874 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
9875 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
9878 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
9880 * util/grub-mkconfig.in: Corrected two == equality tests.
9881 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
9882 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
9883 expect a number appended to it.
9884 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
9885 expects a number appended to it.
9887 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9889 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
9891 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
9893 * util/hostdisk.c (make_device_name): Change to new partition naming.
9895 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
9897 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
9899 2010-04-17 Christian Franke <franke@computer.org>
9901 * Makefile.in: Add missing localedir setting.
9903 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
9905 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
9906 mistake in r2156. Noticed by Anthony Fok.
9908 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
9910 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
9912 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
9914 Fix a spurious, uninitialized variable warning.
9916 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
9917 Initialize variable, shdr.
9918 (grub_freebsd_load_elfmodule): Likewise.
9919 (grub_freebsd_load_elf_meta): Likewise.
9921 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
9923 Fix for escaped dollar in double quoted strings.
9925 * script/yylex.l: Updated flex rules.
9926 * conf/tests.rmk: Rule for new testcase.
9927 * tests/grub_script_dollar.in: New testcase.
9929 2010-04-13 Carles Pina i Estany <carles@pina.cat>
9930 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
9932 Enclose all translated strings in grub.cfg in single quotes, and
9933 escape them appropriately (Ubuntu bug #552921).
9935 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
9936 * util/grub.d/10_hurd.in: Use it.
9937 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
9938 * util/grub.d/10_linux.in (linux_entry): Likewise.
9940 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9942 Fix cygwin compilation.
9944 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
9945 * include/grub/misc.h (__register_frame_info)
9946 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
9947 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
9948 * kern/misc.c (__register_frame_info)
9949 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
9950 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
9952 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9954 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
9956 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
9958 Unify libgcc processing.
9960 * Makefile.in (kernel_img_LDFLAGS): New variable.
9961 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
9962 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
9964 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
9965 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
9966 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
9967 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
9968 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
9969 overwriting. Remove -lgcc and -static-libgcc
9970 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
9971 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
9972 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
9973 (kernel_img_LDFLAGS): Append instead of overwriting.
9974 Remove -lgcc and -static-libgcc
9975 * conf/sparc64-ieee1275.rmk: Likewise.
9976 * include/grub/powerpc/libgcc.h: Move to ...
9977 * include/grub/libgcc.h: .. this.
9978 * include/grub/libgcc.h: Don't export most of the function on x86.
9979 (__bswapsi2): New export.
9980 (__bswapdi2): Likewise.
9981 * include/grub/mips/libgcc.h: Removed.
9982 * include/grub/sparc64/libgcc.h: Likewise.
9984 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
9986 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
9987 disk_info_msg (conflicts with gettexting into languages with cases).
9989 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
9991 Add grub-probe support for NetBSD.
9993 * util/getroot.c (find_root_device): Convert block device to
9994 character device on NetBSD.
9995 * util/probe.c (probe): Require character device on NetBSD.
9996 * util/hostdisk.c: NetBSD specific headers.
9997 (configure_device_driver): new function to tune device driver
9998 parameters (currently only for NetBSD floppy driver).
9999 (grub_util_biosdisk_open): NetBSD specific code (get disk size
10000 via disklabel ioctl).
10001 (open_device): call configure_device_driver on NetBSD.
10002 (convert_system_partition_to_system_disk): NetBSD specific code.
10003 (device_is_wholedisk): Likewise.
10004 (grub_util_biosdisk_get_grub_dev): Likewise.
10005 (make_device_name): Fixed a typo in bsd_part_str.
10006 * configure.ac: check for opendisk() and getrawpartition() on
10007 NetBSD and set LIBUTIL.
10008 * Makefile.in: add LIBUTIL to LIBS.
10010 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10014 * util/grub-script-check.c: Better help message.
10016 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10020 * configure.ac: Flex version check.
10021 * conf/common.rmk: Add -Wno-error to sh.mod.
10022 * script/yylex.l: Remove all #pragma.
10024 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10026 * include/grub/util/misc.h (canonicalise_file_name): Add missing
10028 Reported by: Seth Goldberg.
10030 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10032 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
10033 Rename "module" to "module2".
10034 Reported by: Seth Goldberg.
10036 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10038 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
10040 Reported by: Seth Goldberg.
10042 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10044 * lib/posix_wrap/locale.h: Add missing file.
10045 Reported by: Seth Goldberg.
10047 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10049 grub-emu module load support.
10051 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
10052 NO_DYNAMIC_MODULES switched to this.
10053 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
10054 (CFLAGS): Likewise.
10055 * conf/any-emu.rmk: Generate symlist.
10056 (kernel_img_HEADERS): Add util/datetime.h.
10057 (kernel_img_HEADERS) [sdl]: Add sdl.h.
10058 (kernel_img_HEADERS) [libusb]: Add libusb.h.
10059 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
10060 kern/$(target_cpu)/cache.S.
10061 * configure.ac (grub-emu-modules): New option.
10062 * genmk.rb: Handle multiple source lists.
10063 * include/grub/sdl.h: New file.
10064 * include/grub/libusb.h: Likewise.
10065 * util/grub-emu.c (main): Hanle (host) root.
10066 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
10067 GRUB_ERR_UNKNOWN_DEVICE.
10068 * util/misc.c: Move mm functions to ...
10069 * util/mm.c: ... here. All users updated.
10071 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10073 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
10074 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
10076 (maintainer-clean): Remove libgcrypt-grub.
10078 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10080 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
10082 2010-04-09 EFI Coder <eficoder@hotmail.com>
10084 * normal/menu_text.c (print_message): Clean up the message and show
10085 the Fn information when on EFI
10086 * term/efi/console.c (grub_console_checkkey): Add F4 support.
10088 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10090 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
10092 * normal/crypto.c (read_crypto_list): Likewise.
10093 * normal/dyncmd.c (read_command_list): Likewise.
10094 * normal/term.c (read_terminal_list): Likewise.
10095 * normal/main.c (read_lists): Use explicit prefix.
10096 (read_lists_hook): Use read_lists.
10097 (grub_normal_execute): Likewise.
10099 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10101 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
10102 Reported by: Thomas Schmitt.
10103 Add -no-emul-boot to grub-mkisofs parameters.
10105 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10107 * font/font.c: Indented.
10109 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10111 Elif support to GRUB script (by Deepak Vankadaru).
10113 * tests/grub_script_if.in: New testcase.
10114 * conf/tests.rmk: Rule for new testcase.
10115 * script/parser.y: Grammar rules for elif.
10117 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10119 While and until loops support to GRUB script.
10121 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
10122 (grub_script_create_cmdwhile): New function prototype.
10123 (grub_script_execute_cmdwhile): New function prototype.
10124 * script/execute.c (grub_script_execute_cmdwhile): New function.
10125 * script/parser.y (command): New commands.
10126 (whilecmd): New grammar rule.
10127 (untilcmd): New grammar rule.
10128 * script/script.c (grub_script_create_cmdwhile): New function.
10129 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
10132 * tests/grub_script_while1.in: New testcase.
10133 * conf/tests.rmk: Rule for new testcase.
10135 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10137 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
10140 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
10142 GRUB_BACKGROUND support.
10144 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
10145 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
10147 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10149 Load fonts and modules for gfxmenu in grub-mkconfig.
10150 Idea by: Mario Vazquez
10152 * util/grub.d/00_header.in: Load pf2 and image modules.
10154 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10156 grub-mkconfig multiple terminal support.
10158 * util/grub-mkconfig.in: Handle multiple terminals correctly.
10159 * util/grub.d/00_header.in: Likewise.
10161 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10163 * Makefile.in: Specify files explicitly instead of using $< and $@ since
10164 we use cd $(srcdir).
10166 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
10168 * util/grub.d/10_linux.in: Only use the first word of
10169 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
10170 spaces in GRUB_DISTRIBUTOR.
10171 * util/grub.d/10_kfreebsd.in: Likewise.
10172 * util/grub.d/10_hurd.in: Likewise.
10174 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
10176 Fix unit testing framework for Qemu 0.12.
10178 * tests/util/grub-shell.in: Remove -serial stdio option.
10180 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
10182 POSIX header file wrappers.
10184 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
10186 * lib/posix_wrap/ctype.h: Likewise.
10187 * lib/posix_wrap/errno.h: Likewise.
10188 * lib/posix_wrap/langinfo.h: Likewise.
10189 * lib/posix_wrap/limits.h: Likewise.
10190 * lib/posix_wrap/localcharset.h: Likewise.
10191 * lib/posix_wrap/stdint.h: Likewise.
10192 * lib/posix_wrap/stdio.h: Likewise.
10193 * lib/posix_wrap/stdlib.h: Likewise.
10194 * lib/posix_wrap/string.h: Likewise.
10195 * lib/posix_wrap/sys/types.h: Likewise.
10196 * lib/posix_wrap/unistd.h: Likewise.
10197 * lib/posix_wrap/wchar.h: Likewise.
10198 * lib/posix_wrap/wctype.h: Likewise.
10199 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
10200 (grub_script.yy.h): Likewise.
10201 * script/yylex.l: Remove POSIX emulation #defines.
10202 * Makefile.in (POSIX_CFLAGS): New variable.
10203 (GNULIB_UTIL_CFLAGS): Likewise.
10207 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
10208 (regexp_mod_SOURCES): New variable.
10209 (regexp_mod_CFLAGS): Likewise.
10210 (regexp_mod_LDFLAGS): Likewise.
10211 * commands/regexp.c: New file.
10212 * gnulib/regcomp.c: New file. Imported from gnulib.
10213 * gnulib/regex.c: Likewise.
10214 * gnulib/regex_internal.c: Likewise.
10215 * gnulib/regex_internal.h: Likewise.
10216 * gnulib/regexec.c: Likewise.
10217 * gnulib/regex.h: Likewise.
10219 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10221 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
10222 unsupported video mode types.
10224 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10226 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
10228 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10230 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
10231 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
10233 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10235 Remove unused grub_vga_get_font.
10237 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
10238 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
10240 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10242 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
10243 * include/grub/misc.h: Likewise.
10245 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10247 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
10248 for which failure is fatal.
10250 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10252 * util/grub-install.in: Use mkdir -p to create grub directory.
10253 * util/i386/efi/grub-install.in: Likewise.
10254 * util/ieee1275/grub-install.in: Likewise.
10256 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10258 * Makefile.in (LEX): new variable.
10260 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10262 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
10263 `=' and added double quotes on operands of this equality test.
10265 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10267 * Makefile.in (uninstall): Remove a leftover debug echo.
10268 Reported by: Grégoire Sutre
10270 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10272 MIPS multiboot2 support.
10274 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
10275 (multiboot2_mod_SOURCES): New variable.
10276 (multiboot2_mod_CFLAGS): Likewise.
10277 (multiboot2_mod_LDFLAGS): Likewise.
10278 (multiboot2_mod_ASFLAGS): Likewise.
10279 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
10281 (MULTIBOOT_ENTRY_REGISTER): Likewise.
10282 (MULTIBOOT_MBI_REGISTER): Likewise.
10283 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
10284 (MULTIBOOT_ELF32_MACHINE): Likewise.
10285 (MULTIBOOT_ELF64_MACHINE): Likewise.
10286 * include/grub/mips/multiboot.h: New file.
10287 * include/grub/video.h (grub_video_driver_id): New type
10288 GRUB_VIDEO_DRIVER_SM712.
10289 (grub_video_get_info_and_fini): Export.
10290 (grub_video_get_palette): Likewise.
10291 (grub_video_get_driver_id): Likewise.
10292 * include/multiboot2.h: Resynced with spec.
10293 * loader/i386/multiboot.c: Moved from here ...
10294 * loader/multiboot.c: ... here. All users updated.
10295 (grub_multiboot_boot): Use platform-specific macros.
10296 * loader/i386/multiboot_elfxx.c: Moved from here ...
10297 * loader/multiboot_elfxx.c: ... here. All users updated.
10298 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
10299 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
10300 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
10302 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
10304 Import gnulib argp module.
10306 * gnulib/argp-ba.c: New file.
10307 * gnulib/argp-eexst.c: Likewise.
10308 * gnulib/argp-fmtstream.c: Likewise.
10309 * gnulib/argp-fmtstream.h: Likewise.
10310 * gnulib/argp-fs-xinl.c: Likewise.
10311 * gnulib/argp-help.c: Likewise.
10312 * gnulib/argp-namefrob.h: Likewise.
10313 * gnulib/argp-parse.c: Likewise.
10314 * gnulib/argp-pin.c: Likewise.
10315 * gnulib/argp-pv.c: Likewise.
10316 * gnulib/argp-pvh.c: Likewise.
10317 * gnulib/argp-version-etc.c: Likewise.
10318 * gnulib/argp-version-etc.h: Likewise.
10319 * gnulib/argp-xinl.c: Likewise.
10320 * gnulib/argp.h: Likewise.
10322 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10324 * kern/device.c (grub_device_iterate): Clear errors after failed
10327 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10329 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
10330 returned by firmware.
10332 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
10334 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
10335 compilation on coreboot and qemu
10337 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10339 * include/multiboot2.h: Resync with spec.
10341 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10343 Multiboot2 tag support
10345 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
10346 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
10347 Remove loader/multiboot_loader.c.
10348 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
10349 (grub_multiboot2_real_boot): Likewise.
10350 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
10351 (grub_get_multiboot_mmap_count): New proto.
10352 (grub_fill_multiboot_mmap): Likewise.
10353 (grub_multiboot_set_video_mode): Likewise.
10354 (grub_multiboot_set_console): Likewise.
10355 (grub_multiboot_load): Likewise.
10356 (grub_multiboot_load_elf): Likewise.
10357 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
10358 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
10359 * include/multiboot.h: Resynced with specification.
10360 * include/multiboot2.h: Resynced with specification.
10361 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
10362 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
10363 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
10364 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
10366 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
10367 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
10368 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
10370 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
10372 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
10373 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10375 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
10376 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
10377 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
10379 * loader/i386/multiboot_mbi2.c: New file.
10381 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10383 Resync with gnulib.
10385 * Makefile.in (GNULIB_CFLAGS): New variable.
10386 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
10387 (grub_script_check_CFLAGS): New variable.
10388 * gnulib/alloca.h: Resync with gnulib.
10389 * gnulib/error.c: Likewise.
10390 * gnulib/error.h: Likewise.
10391 * gnulib/fnmatch.c: Likewise.
10392 * gnulib/fnmatch_loop.c: Likewise.
10393 * gnulib/getdelim.c: Likewise.
10394 * gnulib/getline.c: Likewise.
10395 * gnulib/getopt.c: Likewise.
10396 * gnulib/getopt1.c: Likewise.
10397 * gnulib/getopt_int.h: Likewise.
10398 * gnulib/gettext.h: Likewise.
10399 * gnulib/progname.c: Likewise.
10400 * gnulib/progname.h: Likewise.
10402 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
10404 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
10405 which is the case with --disabled-nls.
10407 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
10408 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
10409 * util/misc.c: Likewise.
10410 * util/mkisofs/mkisofs.c: Likewise.
10411 * util/mkisofs/mkisofs.h: Likewise.
10413 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10415 Simplify Apple CC support.
10417 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
10418 Add 0 byte at the end not to have a symbol with empty target.
10419 * mmap/i386/pc/mmap_helper.S: Likewise.
10420 * genmk.rb: Ignore errors 2030 and 2050.
10421 * kern/i386/pc/startup.S: Use LOCAL when possible.
10423 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
10425 Testcase and the fix for final semicolon on cmdline.
10427 * tests/grub_script_final_semicolon.in: New testcase.
10428 * conf/tests.rmk: Rules for the new testcase.
10429 * script/parser.y: Grammar fix.
10431 2010-03-26 BVK Chaitanya <bvk@localhost>
10433 Blank lines testcase for GRUB script.
10435 * tests/grub_script_blanklines.in: New testcase.
10436 * conf/tests.rmk: Rules for the new testcase.
10438 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10440 Don't use __FILE__.
10442 * genmk.rb: Add -DGRUB_FILE to all C targets.
10443 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
10444 * include/grub/list.h: Likewise.
10445 * include/grub/misc.h: Likewise.
10446 * include/grub/mm.h: Likewise.
10447 * include/grub/test.h: Likewise.
10448 * kern/mm.c: Likewise.
10449 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10451 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10453 Sunpc partitions support.
10455 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
10456 (grub_fstest_SOURCES): Likewise.
10457 (pkglib_MODULES): Add part_sunpc.mod.
10458 (part_sunpc_mod_SOURCES): New variable.
10459 (part_sunpc_mod_CFLAGS): Likewise.
10460 (part_sunpc_mod_LDFLAGS): Likewise.
10461 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
10462 * partmap/sunpc.c: New file.
10464 2010-03-26 BVK Chaitanya <bvk@localhost>
10466 For loop support to GRUB script.
10468 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
10469 (grub_script_create_cmdfor): New function prototype.
10470 (grub_script_execute_cmdfor): New function prototype.
10471 * script/execute.c (grub_script_execute_cmdfor): New function.
10472 * script/parser.y (command): New for command.
10473 (forcmd): New grammar rule.
10474 * script/script.c (grub_script_create_cmdfor): New function.
10475 * util/grub-script-check.c (grub_script_execute_cmdfor): New
10477 * tests/grub_script_for1.in: New testcase.
10478 * conf/tests.rmk: Rules for new testcase.
10480 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10484 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
10485 'partition' is NULL, grub_partition_get_start already does that.
10486 * commands/loadenv.c (check_blocklists): Likewise.
10487 (write_blocklists): Likewise.
10488 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
10489 (grub_fstest_SOURCES): Likewise.
10490 (pkglib_MODULES): Add part_bsd.mod.
10491 (part_bsd_mod_SOURCES): New variable.
10492 (part_bsd_mod_CFLAGS): Likewise.
10493 (part_bsd_mod_LDFLAGS): Likewise.
10494 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
10495 (grub_emu_SOURCES): Likewise.
10496 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10497 * include/grub/bsdlabel.h: New file.
10498 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
10500 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
10501 (grub_partition_map_list): New variable.
10502 (grub_partition_map_register): Inline.
10503 (grub_partition_map_unregister): Likewise.
10504 (FOR_PARTITION_MAPS): New macro.
10505 (grub_partition_map_iterate): Removed.
10506 (grub_partition_get_start): Handle nested partitions.
10507 * include/grub/msdos_partition.h: Remove bsd-related entries.
10508 (grub_pc_partition): Remove.
10509 * kern/disk.c (grub_disk_close): Free partition data.
10510 (grub_disk_adjust_range): Handle nested partitions.
10511 * kern/partition.c (grub_partition_map_probe): New function.
10512 (grub_partition_probe): Parse name to number, handle subpartitions.
10513 (get_partmap): New function.
10514 (grub_partition_iterate): Handle subpartitions.
10515 (grub_partition_get_name): Likewise.
10516 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
10517 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
10518 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
10519 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
10521 (acorn_partition_map_probe): Remove.
10522 (acorn_partition_map_get_name): Likewise.
10523 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
10525 Set 'index' to 0 since there can be only one partition entry per sector.
10526 (amiga_partition_map_probe): Remove.
10527 (amiga_partition_map_get_name): Likewise.
10528 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
10530 Set 'offset' and 'index' to real positions of partitions.
10531 (apple_partition_map_probe): Remove.
10532 (apple_partition_map_get_name): Likewise.
10533 * partmap/bsdlabel.c: New file.
10534 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
10536 Allocate 'data' so it can be correctly freed.
10537 Set 'index' to offset inside sector.
10538 (gpt_partition_map_probe): Remove.
10539 (gpt_partition_map_get_name): Likewise.
10540 * partmap/msdos.c (grub_partition_parse): Remove.
10541 (pc_partition_map_iterate): Don't force raw access.
10543 Make 'ext_offset' a local variable.
10544 (pc_partition_map_probe): Remove.
10545 (pc_partition_map_get_name): Remove.
10546 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
10548 (sun_partition_map_probe): Remove.
10549 (sun_partition_map_get_name): Likewise.
10550 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
10551 (grub_pcpart_type): Likewise.
10552 * util/hostdisk.c (open_device): Handle new numbering scheme.
10553 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
10554 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
10555 * util/grub-probe.c (probe_partmap): Handle nested paritions.
10556 * util/grub-install.in: Insert all subpartition modules.
10557 * util/ieee1275/grub-install.in: Likewise.
10559 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
10561 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
10564 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
10566 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
10568 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
10570 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
10571 match where 'make install' puts them.
10572 * util/i386/efi/grub-install.in: Likewise.
10574 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
10576 * .bzrignore: Add gentrigtables, grub-script-check,
10577 grub_script_check_init.c, grub_script_check_init.h, and
10580 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
10582 * kern/parser.c: Indented.
10584 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10586 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
10588 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10590 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
10591 alpha_mask_size == 0 case.
10593 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
10595 GRUB shell lexer and parser improvements.
10597 * conf/any-emu.rmk: Build rule updates.
10598 * conf/common.rmk: Likewise.
10599 * conf/i386-coreboot.rmk: Likewise.
10600 * conf/i386-efi.rmk: Likewise.
10601 * conf/i386-ieee1275.rmk: Likewise.
10602 * conf/i386-pc.rmk: Likewise.
10603 * conf/powerpc-ieee1275.rmk: Likewise.
10604 * conf/x86_64-efi.rmk: Likewise.
10606 * configure.ac: Configure check for flex.
10608 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
10610 (grub_lexer_param): Struct member updates.
10611 (grub_parser_param): Likewise.
10612 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
10613 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
10614 (grub_script_lexer_init): Prototype update.
10615 (grub_script_lexer_record_start): Likewise.
10616 (grub_script_lexer_record_stop): Likewise.
10617 (grub_script_lexer_yywrap): New function prototype.
10618 (grub_script_lexer_fini): Likewise.
10619 (grub_script_execute_argument_to_string): Removed by...
10620 (grub_script_execute_argument_to_argv): ...better version.
10622 * script/execute.c (ROUND_UPTO): New macro.
10623 (grub_script_execute_cmdline): Out of memory fixes.
10624 (grub_script_execute_menuentry): Likewise.
10625 (grub_script_execute_argument_to_string): Removed. Update all
10627 (grub_script_execute_argument_to_argv): ...better version.
10628 * script/function.c (grub_script_function_create): Use
10629 grub_script_execute_argument_to_argv instead of
10630 grub_script_execute_argument_to_string.
10632 * script/lexer.c (check_varstate): Removed.
10633 (check_textstate): Removed.
10634 (grub_script_lexer_record_start): Likewise.
10635 (grub_script_lexer_record_stop): Likewise.
10636 (recordchar): Replaced with...
10637 (grub_script_lexer_record): ...new function.
10638 (nextchar): Removed.
10639 (grub_script_lexer_init): Rewritten.
10640 (grub_script_yylex): Rewritten.
10641 (append_newline): New function.
10642 (grub_script_lexer_yywrap): New function.
10643 (grub_script_lexer_fini): New function.
10644 (grub_script_yyerror): Sets error flag.
10646 * script/yylex.l: New file.
10647 (grub_lexer_yyfree): Wrapper for flex yyffre.
10648 (grub_lexer_yyalloc): Likewise.
10649 (grub_lexer_yyrealloc): Likewise.
10650 * script/parser.y: Refactored.
10652 * script/script.c (grub_script_arg_add): Out of memory fixes.
10653 (grub_script_add_arglist): Likewise.
10654 (grub_script_create_cmdline): Likewise.
10655 (grub_script_create_cmdmenu): Likewise.
10656 (grub_script_add_cmd): Likewise.
10657 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
10658 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
10661 * tests/grub_script_echo1.in: New testcase.
10662 * tests/grub_script_vars1.in: New testcase.
10663 * tests/grub_script_echo_keywords.in: New testcase.
10665 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10667 Remove some redundancy in build system.
10669 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
10670 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
10671 (TARGET_LDFLAGS): Add -nostdlib.
10672 (TARGET_IMG_LDFLAGS): Likewise.
10673 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
10674 anything since mmap isn't available.
10675 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
10677 (pkglib_MODULES): Remove reboot.mod.
10678 (reboot_mod_SOURCES): Removed.
10679 (reboot_mod_CFLAGS): Likewise.
10680 (reboot_mod_LDFLAGS): Likewise.
10681 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
10682 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
10683 (DEFSYMFILES): Add kernel_syms.lst.
10684 (kernel_img_HEADERS): Add common headers.
10685 (symlist.c): New target.
10686 (kernel_syms.lst): Likewise.
10687 (pkglib_MODULES): Add memdisk.mod.
10688 (memdisk_mod_SOURCES): New variable.
10689 (memdisk_mod_CFLAGS): Likewise.
10690 (memdisk_mod_LDFLAGS): Likewise.
10691 (pkglib_MODULES): Add reboot.mod.
10692 (reboot_mod_SOURCES): New variable.
10693 (reboot_mod_CFLAGS): Likewise.
10694 (reboot_mod_LDFLAGS): Likewise.
10695 (pkglib_MODULES): Add date.mod.
10696 (date_mod_SOURCES): New variable.
10697 (date_mod_CFLAGS): Likewise.
10698 (date_mod_LDFLAGS): Likewise.
10699 (pkglib_MODULES): Add datehook.mod.
10700 (datehook_mod_SOURCES): New variable.
10701 (datehook_mod_CFLAGS): Likewise.
10702 (datehook_mod_LDFLAGS): Likewise.
10703 (pkglib_MODULES): Add lsmmap.mod.
10704 (lsmmap_mod_SOURCES): New variable.
10705 (lsmmap_mod_CFLAGS): Likewise.
10706 (lsmmap_mod_LDFLAGS): Likewise.
10707 (pkglib_MODULES): Add boot.mod.
10708 (boot_mod_SOURCES): New variable.
10709 (boot_mod_CFLAGS): Likewise.
10710 (boot_mod_LDFLAGS): Likewise.
10711 * conf/i386-coreboot.rmk: Removed redundant parts.
10712 * conf/i386-ieee1275.rmk: Likewise.
10713 * conf/i386-pc.rmk: Likewise.
10714 * conf/mips-yeeloong.rmk: Likewise.
10715 * conf/mips.rmk: Likewise.
10716 * conf/powerpc-ieee1275.rmk: Likewise.
10717 * conf/sparc64-ieee1275.rmk: Likewise.
10718 * conf/x86_64-efi.rmk: Likewise.
10719 * conf/i386-coreboot.rmk: Moved qemu parts ..
10720 * conf/i386-qemu.rmk: ... here
10721 * conf/i386-efi.rmk: Moved common parts to...
10722 * conf/x86-efi.rmk: ... here.
10723 * conf/i386.rmk: Added modules common to all x86 variants.
10724 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
10725 * disk/memdisk.c: Remove grub/machine/kernel.h.
10726 * gensymlist.sh.in: Include symbol.h.
10727 * hook/datehook.c: Correct module name.
10728 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
10729 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
10730 * include/grub/i386/efi/serial.h: New file.
10731 * include/grub/x86_64/efi/serial.h: Likewise.
10732 * util/time.c: Likewise.
10733 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
10735 2010-03-14 Colin King <colin.king@ubuntu.com>
10736 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
10738 Shrink the pre-partition-table part of boot.img by eight bytes.
10740 * boot/i386/pc/boot.S (ERR): New macro.
10741 (chs_mode): Use ERR.
10742 (geometry_error): Likewise.
10743 (hd_probe_error): Remove. This is only used once, so we wrwite
10745 (read_error): Instead of printing read_error_string, just set up
10746 %si and fall through to ...
10747 (error_message): ... this new function, also used by ERR.
10749 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
10751 Speed up consecutive hostdisk operations on the same device.
10753 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
10754 (grub_util_biosdisk_open): Initialise disk->data.
10755 (struct linux_partition_cache): New structure.
10756 (linux_find_partition): Cache partition start positions; these are
10757 expensive to compute on every read and write.
10758 (open_device): Cache open file descriptor in disk->data, so that we
10759 don't have to reopen it and flush the buffer cache for consecutive
10760 operations on the same device.
10761 (grub_util_biosdisk_close): New function.
10762 (grub_util_biosdisk_dev): Set `close' member.
10764 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
10765 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
10766 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10767 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
10768 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
10770 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10772 Compile parts of grub-emu as modules.
10774 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
10775 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
10776 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
10777 (all-local): Add $(GRUB_EMU).
10778 (install-local): Install $(GRUB_EMU).
10779 (uninstall): Uninstall $(GRUB_EMU).
10780 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
10781 * kern/dl.c: Likewise.
10782 * commands/sleep.c: Not include machine/time.h.
10783 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
10784 (COMMON_CFLAGS): Likewise.
10785 (sbin_UTILITIES): Remove grub-emu.
10786 (grub_emu_SOURCES): Removed.
10787 (kernel_img_RELOCATABLE): New variable.
10788 (pkglib_PROGRAMS): Add kernel.img.
10789 (kernel_img_SOURCES): New variable
10790 (kernel_img_CFLAGS): Likewise.
10791 (kernel_img_LDFLAGS): Likewise.
10792 (TARGET_NO_STRIP): Likewise.
10793 (TARGET_NO_DYNAMIC_MODULES): Likewise.
10794 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
10795 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
10796 (grub-emu): New target.
10797 (GRUB_EMU): New variable.
10798 * configure.ac: Whitelist -emu as possible x86_64 architecture.
10799 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
10800 * loader/xnu.c: Likewise.
10801 * include/grub/pci.h: Likewise.
10802 * genemuinit.sh: New file.
10803 * genemuinitheader.sh: Likewise.
10804 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
10805 Support TARGET_NO_DYNAMIC_MODULES.
10806 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
10807 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
10808 * disk/loopback.c: Likewise.
10809 * font/font_cmd.c: Likewise.
10810 * partmap/acorn.c: Likewise.
10811 * partmap/amiga.c: Likewise.
10812 * partmap/apple.c: Likewise.
10813 * partmap/gpt.c: Likewise.
10814 * partmap/msdos.c: Likewise.
10815 * partmap/sun.c: Likewise.
10816 * parttool/msdospart.c: Likewise.
10817 * term/gfxterm.c: Likewise.
10818 * video/bitmap.c: Likewise.
10819 * video/readers/jpeg.c: Likewise.
10820 * video/readers/png.c: Likewise.
10821 * video/readers/tga.c: Likewise.
10822 * video/video.c: Likewise.
10823 * util/grub-emu.c (read_command_list): Removed.
10824 (main): Don't call util_init_nls.
10825 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
10826 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
10828 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10830 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
10831 date.mod, datehook.mod.
10832 (datetime_mod_SOURCES): New variable.
10833 (datetime_mod_CFLAGS): Likewise.
10834 (datetime_mod_LDFLAGS): Likewise.
10835 (date_mod_SOURCES): Likewise.
10836 (date_mod_CFLAGS): Likewise.
10837 (date_mod_LDFLAGS): Likewise.
10838 (datehook_mod_SOURCES): Likewise.
10839 (datehook_mod_CFLAGS): Likewise.
10840 (datehook_mod_LDFLAGS): Likewise.
10841 * conf/sparc64-ieee1275.rmk: Likewise.
10842 * lib/ieee1275/datetime.c: New file.
10844 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10846 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
10847 (ieee1275_fb_mod_SOURCES): New variable.
10848 (ieee1275_fb_mod_CFLAGS): Likewise.
10849 (ieee1275_fb_mod_LDFLAGS): Likewise.
10850 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
10852 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
10853 (HEAP_MAX_ADDR): Likewise.
10854 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
10856 Correct stop condition.
10857 (grub_ieee1275_devices_iterate): New function.
10858 * video/ieee1275.c: New file.
10860 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10862 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
10864 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
10866 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
10867 SCRATCH_PAD_DISKBOOT as scratch.
10868 (bootit): Pass Openfirmware pointer in %o4.
10869 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
10871 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
10872 with util/grub-mkrawimage.c.
10873 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
10874 * include/grub/aout.h (AOUT_MID_SUN): New definition.
10875 (grub_aout_get_type) [GRUB_UTIL]: Removed.
10876 (grub_aout_load) [GRUB_UTIL]: Likewise.
10877 * include/grub/kernel.h (grub_modules_get_end): New proto.
10878 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
10879 (SCRATCH_PAD_BOOT): New definition.
10880 (SCRATCH_PAD_DISKBOOT): Likewise.
10881 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
10882 * include/grub/sparc64/ieee1275/ieee1275.h
10883 (grub_ieee1275_original_stack): New variable
10884 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
10886 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
10887 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
10888 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
10889 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
10890 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
10891 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
10892 (grub_platform_image_format_t): New type.
10893 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
10894 * kern/main.c (grub_modules_get_end)
10895 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
10896 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
10897 (codestart): Switch stacks.
10898 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
10900 (grub_heap_init): Use grub_modules_get_end.
10901 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
10903 * util/grub-mkrawimage.c (generate_image): Support sparc64.
10905 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
10907 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
10909 * util/grub-mkrescue.in: Base ISO UUID on UTC.
10911 2010-03-08 Matt Kraai <kraai@ftbfs.org>
10913 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
10916 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
10918 * genmoddep.awk: Output all missing symbols and not only first.
10920 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10922 * NEWS: Put the date of 1.98 release.
10924 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10926 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
10929 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10931 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
10932 completition in the middle of string.
10934 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10936 * util/grub-mkrescue.in: Use mktemp with explicit template.
10938 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10940 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
10942 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
10944 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
10947 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10949 Fix FreeBSD compilation.
10951 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
10952 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
10954 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
10956 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
10958 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10960 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
10962 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10964 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
10966 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
10968 Support relative image path in theme file.
10970 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
10971 (image_set_property): Handle theme_dir and relative path.
10973 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10975 * configure.ac: Alias amd64 to x86_64.
10977 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10979 * NEWS: mention multiboot on EFI.
10981 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10983 * kern/main.c (grub_load_modules): Handle errors from init functions of
10986 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10988 * normal/autofs.c (autoload_fs_module): Handle errors.
10990 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
10992 Disable linux.mod on qemu-mips since it's not functional and leads
10993 to compilation failure.
10995 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
10996 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
10997 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
10998 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
10999 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
11000 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
11001 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
11002 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
11003 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
11004 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
11005 Reported by: BVK Chaitanya
11007 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
11009 * INSTALL: Add gettext as a dependency and add qemu to a new section
11010 "Prerequisites for make-check".
11012 2010-03-04 Christian Franke <franke@computer.org>
11014 * util/grub-pe2elf.c: Add missing include "progname.h".
11016 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11018 * normal/crypto.c (read_crypto_list): Fix a typo.
11019 Reported by: Seth Goldberg.
11021 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11023 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
11024 Reported by: Seth Goldberg.
11026 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11028 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
11031 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11033 * genmk.rb: Remove terminal*.lst in make clean.
11034 Reported by: Seth Goldberg.
11036 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11038 * util/i386/efi/grub-install.in: Copy gettext files.
11040 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11042 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
11044 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11046 Wait for user entry basing on presence of output rather than on errors.
11048 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
11049 (grub_install_newline_hook): Likewise.
11050 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
11051 * normal/menu.c (show_menu): Check line_counter to determine presence
11053 * normal/term.c (grub_normal_line_counter): New variable.
11054 (grub_normal_get_line_counter): New function.
11055 (grub_install_newline_hook): Likewise.
11057 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11059 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
11061 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11063 * configure.ac: Update version to 1.98.
11065 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11067 * util/grub.d/10_linux.in (linux_entry): Don't default to
11068 gfxpayload=keep if Linux doesn't support video handover.
11070 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11072 Don't compile video modules on yeeloong since video subsystem is part
11075 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
11076 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
11077 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
11078 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
11079 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
11080 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
11081 * include/grub/bitmap_scale.h: Likewise.
11082 * include/grub/bufio.h: Likewise.
11083 * include/grub/font.h: Likewise.
11084 * include/grub/gfxterm.h: Likewise.
11085 * include/grub/video.h: Likewise.
11086 * include/grub/vbe.h: Don't include video_fb.h.
11087 * video/i386/pc/vbe.c: Include video_fb.h.
11088 * commands/i386/pc/vbetest.c: Include video.h.
11090 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
11092 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
11093 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
11094 default entry if GRUB_SAVEDEFAULT=true. This allows using
11095 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
11096 saving a new default on every boot.
11098 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11100 * normal/crypto.c (read_crypto_list): Fix a memory leak.
11101 * normal/term.c (read_terminal_list): Likewise.
11102 * normal/main.c (grub_normal_init_page): Likewise.
11103 (grub_normal_read_line_real): Likewise.
11105 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11107 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
11109 Reported by: Seth Goldberg.
11111 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
11113 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
11114 duplicate declaration of `start'.
11116 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11118 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
11120 Reported by: Georgy Buranov
11122 2010-02-20 Carles Pina i Estany <carles@pina.cat>
11124 * util/grub-mkrawimage.c (usage): Change string formatting to
11127 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
11129 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
11132 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11134 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
11135 Reported by: Michael Suchanek.
11137 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
11139 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
11140 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
11142 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
11144 Remove any reference to non-free fonts.
11146 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
11147 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
11148 uses non-free components.
11149 * font/font.c (grub_font_get_name): Remove example name.
11150 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
11151 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11152 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
11153 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
11155 2010-02-16 Georgy Buranov <gburanov@gmail.com>
11157 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
11159 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11161 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
11163 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
11165 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
11167 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11169 * gensymlist.sh.in: Use TARGET_CC instead of CC.
11171 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11173 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
11174 * docs/grub.texi (Command-line and menu entry commands): Document play
11177 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11179 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
11180 parse arguments as inline tempo and notes. Move code for playing notes
11182 (play): ... new function.
11184 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11186 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
11187 grub_uint16_t instead of short.
11188 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
11189 disk from little endian to cpu endianness.
11191 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
11193 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
11194 GRUB_TICKS_PER_SECOND instead of 120.
11196 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11198 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
11199 escape sequence after \e.
11201 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11203 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
11204 non-ASCII characters.
11206 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11208 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
11209 set root in single quotes to prevent \, from being unescaped.
11211 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11213 Prevent unknown commands from stopping menuentry execution.
11215 * script/execute.c (grub_script_execute_cmdline): Print error after
11218 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11220 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
11221 Reported by: Pavel Pisa.
11223 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11225 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
11227 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11229 Merge grub_ieee1275_map_physical into grub_map and rename to
11232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
11233 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
11235 * kern/ieee1275/openfw.c (grub_map): Rename to ...
11236 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
11238 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
11240 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11242 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
11243 opening and not after.
11245 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11247 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
11250 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11252 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
11253 (alloc_phys): Use ALIGN_UP instead of align_addr.
11255 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11257 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
11259 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11261 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
11263 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11265 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
11268 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11270 Fix over-4GiB seek on sparc64.
11272 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
11273 Replace pos_i and pos_lo with pos. All users updated.
11274 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11276 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11278 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
11281 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11283 * util/grub-mkrawimage.c (main): Call set_program_name.
11285 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11287 Properly align 64-bit targets.
11289 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
11290 (generate_image): Use ALIGN_ADDR.
11292 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11294 Properly create cross-endian images.
11296 * include/grub/types.h (grub_host_to_target_addr): New macro
11297 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
11299 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11301 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
11303 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11305 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
11307 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
11308 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
11309 (grub_linux_boot): Divide by 64K when on VESA.
11311 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11313 Support GRUB_GFXPAYLOAD_LINUX.
11315 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
11316 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
11318 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11320 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
11321 to show messages instead of discarding them.
11322 Process errors after executing command and not before. Keep old method
11325 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
11327 * configure.ac: Check for ft2build.h.
11329 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11331 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
11333 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11335 * genkernsyms.sh.in: Use TARGET_CC.
11337 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
11341 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11343 * include/grub/multiboot2.h: Remove leftover file.
11344 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
11345 * include/grub/partition.h [GRUB_UTIL]: Likewise.
11347 2010-02-07 Yves Blusseau <blusseau@zetam.org>
11349 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
11351 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11353 Fix warnings in grub-emu when compiling with maximum warning options.
11355 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
11356 (grub_arch_modules_addr): Return 0 and not NULL.
11357 * util/misc.c (ENABLE_RELOCATABLE): New definition.
11358 (xstrdup): Use newstr instead of dup.
11359 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
11360 of disk to dsk to avoid shadowing.
11361 (find_free_slot): Fix prototype.
11362 * util/getroot.c (grub_util_is_dmraid): Make static.
11363 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
11364 Add missing prototype.
11365 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
11367 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11369 * loader/i386/linux.c (grub_linux_setup_video): Handle error
11372 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11374 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
11377 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11379 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
11380 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
11381 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
11382 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
11383 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
11384 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
11386 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11388 * include/grub/err.h (grub_err_printf): Don't export.
11390 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11392 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
11394 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11396 * include/grub/i18n.h (grub_gettext_dummy): Removed.
11397 * kern/misc.c (grub_gettext_dummy): Make static.
11399 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11401 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
11403 * kern/term.c (grub_putchar): Likewise.
11405 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11407 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
11408 buggy hook call and memory leak.
11410 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11412 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
11414 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11416 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
11418 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11420 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
11422 Return grub_errno on allocation error.
11424 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11426 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
11428 2010-02-06 Yves Blusseau <blusseau@zetam.org>
11430 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
11431 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
11433 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11435 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
11437 (grub_pxefs_open): Likewise.
11439 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11441 * util/grub.d/10_hurd.in: Add --class information to menuentries.
11442 * util/grub.d/10_kfreebsd.in: Likewise.
11443 * util/grub.d/10_linux.in: Likewise.
11445 2010-02-06 Colin D Bennett <colin@gibibit.com>
11447 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
11448 (gfxmenu_mod_SOURCES): New variable.
11449 (gfxmenu_mod_CFLAGS): Likewise.
11450 (gfxmenu_mod_LDFLAGS): Likewise.
11451 * include/grub/term.h (grub_term_set_current_output): Declare
11453 * docs/gfxmenu-theme-example.txt: New file.
11454 * gfxmenu/gfxmenu.c: Likewise.
11455 * gfxmenu/gui_box.c: Likewise.
11456 * gfxmenu/gui_canvas.c: Likewise.
11457 * gfxmenu/gui_circular_progress.c: Likewise.
11458 * gfxmenu/gui_image.c: Likewise.
11459 * gfxmenu/gui_label.c: Likewise.
11460 * gfxmenu/gui_list.c: Likewise.
11461 * gfxmenu/gui_progress_bar.c: Likewise.
11462 * gfxmenu/gui_string_util.c: Likewise.
11463 * gfxmenu/gui_util.c: Likewise.
11464 * gfxmenu/icon_manager.c: Likewise.
11465 * gfxmenu/model.c: Likewise.
11466 * gfxmenu/named_colors.c: Likewise.
11467 * gfxmenu/theme_loader.c: Likewise.
11468 * gfxmenu/view.c: Likewise.
11469 * gfxmenu/widget-box.c: Likewise.
11470 * include/grub/gfxmenu_model.h: Likewise.
11471 * include/grub/gfxmenu_view.h: Likewise.
11472 * include/grub/gfxwidgets.h: Likewise.
11473 * include/grub/gui.h: Likewise.
11474 * include/grub/gui_string_util.h: Likewise.
11475 * include/grub/icon_manager.h: Likewise.
11477 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11479 Agglomerate scrolling in gfxterm.
11481 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
11482 (grub_virtual_screen_setup): Initialise 'total_screen'.
11483 (write_char): Split to ...
11484 (paint_char): ... this ...
11485 (write_char): ... and this.
11486 (paint_char): Handle delayed scrolling.
11487 (draw_cursor): Likewise.
11488 (scroll_up): Split to ...
11489 (real_scroll): ... this ...
11490 (scroll_up): ... and this.
11491 (real_scroll): Handle multi-line scroll and draw below-the-bottom
11493 (grub_gfxterm_refresh): Call real_scroll.
11495 2010-02-06 Colin D Bennett <colin@gibibit.com>
11497 * include/grub/misc.h (grub_iscntrl): New inline function.
11498 (grub_isalnum): Likewise.
11499 (grub_strtol): Likewise.
11501 2010-02-06 Colin D Bennett <colin@gibibit.com>
11503 * normal/menu_text.c (get_entry_number): Move from here ...
11504 * normal/menu.c (get_entry_number): ... moved here.
11505 * include/grub/menu.h (grub_menu_get_default_entry_index):
11507 * normal/menu.c (grub_menu_get_default_entry_index): New function.
11508 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
11509 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
11510 (grub_menu_viewer_should_return): Likewise.
11511 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
11512 * normal/menu_text.c (run_menu): Enable menu switching.
11513 * normal/menu_viewer.c (should_return): New variable.
11514 (menu_viewer_changed): Likewise.
11515 (grub_menu_viewer_show_menu): Handle menu viewer changes.
11516 (grub_menu_viewer_should_return): New function.
11517 (menuviewer_write_hook): Likewise.
11518 (grub_menu_viewer_init): Likewise.
11520 2010-02-06 Colin D Bennet <colin@gibibit.com>
11521 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11523 Support for gfxterm in a window.
11525 * include/grub/gfxterm.h: New file.
11526 * include/grub/video.h (struct grub_video_rect): New declaration.
11527 (grub_video_rect_t): Likewise.
11528 * term/gfxterm.c (struct grub_gfxterm_window): New type.
11529 (refcount): New variable.
11530 (render_target): Likewise.
11531 (window): Likewise.
11532 (repaint_callback): Likewise.
11533 (grub_virtual_screen_setup): Use 'render_target'.
11534 (init_window): New function.
11535 (grub_gfxterm_init_window): Likewise.
11536 (grub_gfxterm_init): Check reference counter.
11538 (destroy_window): New function.
11539 (grub_gfxterm_destroy_window): Likewise.
11540 (grub_gfxterm_fini): Check reference counter.
11541 Use destroy_window.
11542 (redraw_screen_rect): Restore viewport.
11543 Use 'render_target' and 'window'.
11544 Call 'repaint_callback'.
11545 (write_char): Use 'render_target'.
11546 (draw_cursor): Likewise.
11547 (scroll_up): Restore viewport.
11548 Use 'render_target' and 'window'.
11549 Call 'repaint_callback'.
11550 (grub_gfxterm_cls): Likewise.
11551 (grub_gfxterm_refresh): Use 'window'.
11552 (grub_gfxterm_set_repaint_callback): New function.
11553 (grub_gfxterm_background_image_cmd): Use 'window'.
11554 (grub_gfxterm_get_term): New function.
11555 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
11557 2010-02-06 Colin D Bennett <colin@gibibit.com>
11559 Bitmap scaling support.
11561 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
11562 (bitmap_scale_mod_SOURCES): New variable.
11563 (bitmap_scale_mod_CFLAGS): Likewise.
11564 (bitmap_scale_mod_LDFLAGS): Likewise.
11565 * include/grub/bitmap_scale.h: New file.
11566 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
11567 (background_image_cmd_options): New variable.
11568 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
11569 (cmd): Rename and change type to ...
11570 (background_image_cmd_handle): ... this. All users updated.
11571 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
11572 * video/bitmap_scale.c: New file.
11574 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11578 * Makefile.in (LIBSDL): New variable.
11579 (enable_grub_emu_sdl): Likewise.
11580 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
11581 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
11582 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
11583 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
11584 * util/sdl.c: New file.
11586 2010-02-06 Colin D Bennett <colin@gibibit.com>
11587 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11589 Double buffering support.
11591 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
11592 * include/grub/video.h: Update comment.
11593 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
11595 (grub_video_fb_doublebuf_blit_init): New prototype.
11596 * term/gfxterm.c (scroll_up): Support double buffering.
11597 (grub_gfxterm_refresh): Likewise.
11598 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
11599 (grub_video_fb_doublebuf_blit_init): Likewise.
11600 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
11601 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
11602 'displayed_page', 'render_page' and 'update_screen'.
11603 (grub_video_vbe_fini): Free offscreen buffer.
11604 (doublebuf_pageflipping_commit): New function.
11605 (doublebuf_pageflipping_update_screen): Likewise.
11606 (doublebuf_pageflipping_init): Likewise.
11607 (double_buffering_init): Likewise.
11608 (grub_video_vbe_setup): Enable doublebuffering.
11609 (grub_video_vbe_swap_buffers): Implement.
11610 (grub_video_vbe_set_active_render_target): Handle double buffering.
11611 (grub_video_vbe_get_active_render_target): Likewise.
11612 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
11613 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
11614 (grub_video_vbe_enable_double_buffering): Likewise.
11615 (grub_video_vbe_swap_buffers): Use update_screen.
11616 (grub_video_set_mode): Use double buffering.
11618 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11620 * maintainance/gentrigtables.py: Remove.
11621 * lib/trig.c: Likewise.
11623 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
11625 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
11627 (trigtables.c): New rule.
11628 (gentrigtables): Likewise.
11629 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
11631 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11633 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
11636 2010-02-06 Colin D Bennet <colin@gibibit.com>
11638 Trigonometry support.
11640 * include/grub/trig.h: New file.
11641 * lib/trig.c: Likewise.
11642 * maintainance/gentrigtables.py: Likewise.
11643 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
11644 (trig_mod_SOURCES): New variable.
11645 (trig_mod_CFLAGS): Likewise.
11646 (trig_mod_LDFLAGS): Likewise.
11648 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11650 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
11653 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11655 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
11658 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11660 * util/hostdisk.c (open_device): Don't use partition device when reading
11661 before the partition.
11662 (grub_util_biosdisk_read): Don't read from partition and before the
11663 partition in single operation.
11664 (grub_util_biosdisk_write): Don't write to partition and before the
11665 partition in single operation.
11667 2010-02-03 Torsten Landschoff <torsten@debian.org>
11669 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11672 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11674 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
11676 (grub_biosdisk_write): Refuse to write to CDROM.
11678 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11680 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
11682 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11684 * font/font.c (find_glyph): Check that bmp_idx is available before
11686 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
11687 with (font == NULL).
11689 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
11691 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
11693 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
11695 * include/grub/script_sh.h (sourcecode): Add const qualifier.
11696 * util/grub-script-check.c (getline): Fix empty lines case.
11698 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
11700 * Makefile.in (check): Exit with fail status when one of the tests
11702 * tests/example_functional_test.c (example_test): Fix reversed assert.
11703 * tests/example_unit_test.c (example_test): Likewise.
11705 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
11707 * util/grub.d/10_linux.in: This script does not use any of the
11708 contents of gettext.sh, only the external command `gettext', so stop
11709 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
11710 the same prefix as GRUB.)
11711 * util/grub.d/10_kfreebsd.in: Likewise.
11713 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11715 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
11718 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11720 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11723 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11725 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
11726 having a 4KiB and not 32KiB buffer size.
11728 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11730 * util/hostfs.c: Include `<errno.h>'.
11731 (grub_hostfs_read): Handle errors from fseeko() and fread().
11733 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11735 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
11736 loop when using read hooks on files whose size isn't sector-aligned.
11738 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11740 Remove unused parameter.
11742 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
11743 (grub_iso9660_open): Remove initialization of `data->length'.
11745 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11747 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
11748 memleak conditions.
11750 2010-01-27 Carles Pina i Estany <carles@pina.cat>
11752 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
11753 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
11755 2010-01-26 Carles Pina i Estany <carles@pina.cat>
11757 * util/bin2h.c (usage): Fix warning (space after backslash).
11759 2010-01-26 Carles Pina i Estany <carles@pina.cat>
11761 * font/font.c: Include `grub/fontformat.h.
11762 Remove font file format constants.
11763 (grub_font_load): Use the new macros.
11764 * include/grub/fontformat.h: New file.
11765 * util/grub-mkfont.c: Include `grub/fontformat.c'.
11766 (write_font_pf2): Use the new macros.
11768 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11770 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
11773 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11775 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
11777 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
11778 (_start): Macroify `0x7F'.
11780 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
11781 (make_install_device): Use "(pxe)" as fallback prefix when booting
11784 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11786 * configure.ac: Reset LIBS after check for libgcc symbols.
11788 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
11790 * util/hostdisk.c (open_device): Add trailing newline to debug
11793 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
11795 * configure.ac: Check for `limits.h'.
11796 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
11798 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
11800 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
11801 capitalize error strings.
11803 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
11805 * util/grub.d/10_hurd.in: Add a recovery mode.
11807 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11809 * configure.ac: Check for libgcc symbols with -nostdlib.
11811 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
11813 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
11815 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11817 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
11818 stack since heap may be unavailable at that point.
11819 (grub_ofconsole_gotoxy): Likewise.
11821 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11823 * configure.ac: Check for _restgpr_14_x.
11824 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
11825 and _savegpr_* prototypes.
11827 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
11829 Use generic grub_reboot() for i386-efi.
11831 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
11832 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
11833 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
11835 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11837 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
11838 presence of "prefix" variable as it breaks when normal.mod is
11841 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11843 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
11844 stack since heap is unavailable at that point.
11846 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11848 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
11849 (grub_freebsd_bootinfo): Rewritten.
11850 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
11852 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11854 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
11856 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
11858 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
11861 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
11863 * util/misc.c (make_system_path_relative_to_its_root): Change the work
11864 around for handling "/" to the correct fix. Fix a memory leak. Use
11865 xstrdup instead of strdup.
11867 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11869 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
11871 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11873 Optimise glyph lookup by Basic Multilingual Plane lookup array.
11875 * font/font.c (struct grub_font): New member 'bmp_idx'.
11876 (font_init): Initialise 'bmp_idx'.
11877 (load_font_index): Fill 'bmp_idx'.
11878 (find_glyph): Make inline. Use bmp_idx for BMP characters.
11880 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11882 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
11885 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11887 Move context handling out of the kernel.
11889 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
11890 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
11891 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
11892 * conf/i386-efi.rmk: Likewise.
11893 * conf/i386-ieee1275.rmk: Likewise.
11894 * conf/i386-pc.rmk: Likewise.
11895 * conf/powerpc-ieee1275.rmk: Likewise.
11896 * conf/sparc64-ieee1275.rmk: Likewise.
11897 * conf/x86_64-efi.rmk: Likewise.
11898 * include/grub/env.h: Include grub/menu.h.
11899 (grub_env_var_type): Removed.
11900 (grub_env_var): Replaced field 'type' with 'global'.
11901 (grub_env_find): New prototype.
11902 (grub_env_context_open): Remove EXPORT_FUNC.
11903 (grub_env_context_close): Likewise.
11904 (grub_env_export): Likewise.
11905 (grub_env_set_data_slot): Removed.
11906 (grub_env_get_data_slot): Likewise.
11907 (grub_env_unset_data_slot): Likewise.
11908 (grub_env_unset_menu): New prototype.
11909 (grub_env_set_menu): Likewise.
11910 (grub_env_get_menu): Likewise.
11911 * include/grub/env_private.h: New file.
11912 * include/grub/normal.h (grub_context_init): New prototype.
11913 (grub_context_fini): Likewise.
11914 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
11915 * normal/context.c (grub_cmd_export): ... to here.
11916 * kern/env.c: Include env_private.h.
11917 (HASHSZ): Moved to include/grub/env_private.h.
11918 (grub_env_context): Likewise.
11919 (grub_env_sorted_var): Likewise.
11920 (current_context): Renamed from this ...
11921 (grub_current_context): ...to this. 'static' removed. All users updated.
11922 (grub_env_find): Removed 'static'.
11923 (grub_env_context_open): Moved to normal/context.c.
11924 (grub_env_context_close): Likewise.
11925 (grub_env_export): Likewise.
11926 (mangle_data_slot_name): Removed.
11927 (grub_env_set_data_slot): Likewise.
11928 (grub_env_get_data_slot): Likewise.
11929 (grub_env_unset_data_slot): Likewise.
11930 * kern/main.c (grub_set_root_dev): Don't export root.
11931 It will be done later.
11932 (grub_main): Don't export prefix.
11933 It will be done later.
11934 * normal/context.c: New file.
11935 * normal/main.c (free_menu): Use grub_env_unset_menu.
11936 (grub_normal_add_menu_entry): Use grub_env_get_menu.
11937 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
11938 (GRUB_MOD_INIT(normal)): Call grub_context_init.
11939 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
11941 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11945 * commands/setpci.c: New file.
11946 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
11947 (setpci_mod_SOURCES): New variable.
11948 (setpci_mod_CFLAGS): Likewise.
11949 (setpci_mod_LDFLAGS): Likewise.
11951 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11953 Byte-addressable PCI configuration space.
11955 * bus/pci.c (grub_pci_make_address): Use byte address instead of
11957 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
11958 GRUB_PCI_REG_CACHELINE.
11959 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
11960 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
11961 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
11962 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
11963 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
11964 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
11965 grub_pci_make_address.
11966 (lock_rom_area): Likewise.
11967 * commands/lspci.c (grub_lspci_iter): Use macroses
11968 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
11969 of grub_pci_make_address.
11970 * disk/ata.c (grub_ata_pciinit): Likewise.
11971 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
11972 (GRUB_PCI_REG_VENDOR): Likewise.
11973 (GRUB_PCI_REG_DEVICE): Likewise.
11974 (GRUB_PCI_REG_COMMAND): Likewise.
11975 (GRUB_PCI_REG_STATUS): Likewise.
11976 (GRUB_PCI_REG_REVISION): Likewise.
11977 (GRUB_PCI_REG_CLASS): Likewise.
11978 (GRUB_PCI_REG_CACHELINE): Likewise.
11979 (GRUB_PCI_REG_LAT_TIMER): Likewise.
11980 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
11981 (GRUB_PCI_REG_BIST): Likewise.
11982 (GRUB_PCI_REG_ADDRESSES): Likewise.
11983 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
11984 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
11985 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
11986 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
11987 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
11988 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
11989 (GRUB_PCI_REG_CIS_POINTER): Likewise.
11990 (GRUB_PCI_REG_SUBVENDOR): Likewise.
11991 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
11992 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
11993 (GRUB_PCI_REG_CAP_POINTER): Likewise.
11994 (GRUB_PCI_REG_IRQ_LINE): Likewise.
11995 (GRUB_PCI_REG_IRQ_PIN): Likewise.
11996 (GRUB_PCI_REG_MIN_GNT): Likewise.
11997 (GRUB_PCI_REG_MAX_LAT): Likewise.
11998 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
11999 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
12000 * video/efi_uga.c (find_framebuf): Likewise.
12001 * video/sm712.c (grub_video_sm712_setup): Likewise.
12002 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
12005 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12007 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
12008 can be reliably determined to be supported.
12010 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12012 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
12013 that VESA is supported.
12014 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
12017 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12019 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
12021 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12023 * util/misc.c (make_system_path_relative_to_its_root): Work around
12024 special-casing of "/", as previous incarnation of this routine did.
12026 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12028 Fix any-emu compilation.
12030 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
12031 * grub_bin2h_SOURCES: New variable.
12033 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12035 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
12037 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12039 * util/grub.d/00_header.in: Fix handling of locale_dir.
12041 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12043 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
12044 as possible unifont location (Gentoo).
12045 Reported by: Alexander Brüning
12047 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12049 Don't try to generate lists for kernel.img.
12051 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
12052 (pkglib_MODULES): Remove kernel.img.
12053 (kernel_img_EXPORTS): Removed.
12054 (kernel_img_RELOCATABLE): New variable.
12055 * conf/x86_64-efi.rmk: Likewise.
12056 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
12058 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12060 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
12061 grub_xasprintf or grub_snprintf.
12062 (grub_vsprintf): Likewise.
12063 (grub_snprintf): New proto.
12064 (grub_vsnprintf): Likewise.
12065 (grub_xasprintf): Likewise.
12066 (grub_xvasprintf): Likewise.
12067 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
12068 (grub_sprintf): Removed.
12069 (grub_vsnprintf): New function.
12070 (grub_snprintf): Likewise.
12071 (grub_xvasprintf): Likewise.
12072 (grub_xasprintf): Likewise.
12073 (grub_vsprintf): Renamed to ...
12074 (grub_vsnprintf_real): ...this. New argument max_len.
12076 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
12078 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
12079 fix grub-script-check warning.
12081 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12083 * include/grub/font.h (grub_font_load): Fix prototype.
12085 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12087 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
12089 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12091 * include/grub/x86_64/at_keyboard.h: New file.
12093 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12095 * loader/mips/linux.c: Include missing grub/i18n.h.
12097 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12099 * normal/menu.c (notify_execution_failure): Clarify error message.
12101 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12103 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
12104 return value (and revert all return statements). Update users.
12106 2010-01-20 Dan Merillat <debian@dan.merillat.org>
12108 * kern/device.c (grub_device_iterate): Allocate new part_ent
12109 structure based on sizeof (*p) rather than sizeof (p->next), to
12110 account for structure padding.
12112 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
12113 disk is NULL, which might happen for LVM physical volumes with no
12116 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12118 * loader/mips/linux.c (grub_cmd_initrd)
12119 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
12121 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12123 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
12124 (grub_video_video_init, grub_video_bitmap_init)
12125 (grub_font_manager_init, grub_term_gfxterm_init)
12126 (grub_at_keyboard_init): New extern declarations.
12127 (grub_machine_init): Initialize gfxterm and at_keyboard.
12129 * kern/main.c (grub_main): Revert grub_printf delay kludge.
12131 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
12132 `gfxterm.mod' into core image.
12134 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12135 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12136 (kernel_img_FORMAT): Copy to ...
12138 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12139 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12140 (kernel_img_FORMAT): ... here, and ...
12142 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12143 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12144 (kernel_img_FORMAT): ... here.
12146 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
12147 and input (at_keyboard) terminals in kernel.
12148 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
12150 (pkglib_MODULES): Remove `pci.mod'.
12151 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
12152 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
12153 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
12154 (at_keyboard_mod_LDFLAGS): Remove variables.
12156 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
12158 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
12160 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
12162 * include/grub/mips/libgcc.h: Only export symbols for functions
12163 that libgcc provides.
12165 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
12169 * bus/bonito.c: New file.
12170 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
12171 GRUB_PCI_NUM_DEVICES.
12172 * term/i386/pc/serial.c: Move to ...
12173 * term/serial.c: ... here. All users updated.
12174 * util/i386/pc/grub-mkimage.c: Move to ...
12175 * util/grub-mkrawimage.c: ... here. All users updated.
12176 * term/i386/pc/at_keyboard.c: Move to ...
12177 * term/at_keyboard.c: ... here. All users updated.
12178 * conf/mips-qemu-mips.rmk: New file.
12179 * conf/mips-yeeloong.rmk: Likewise.
12180 * conf/mips.rmk: Likewise.
12181 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
12183 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
12185 (grub_ata_pciinit): Support CS5536.
12186 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
12187 * font/font_cmd.c (loadfont_command): Open file before passing it to
12189 (pseudo_file_read): New function.
12190 (pseudo_file_close): Likewise.
12191 (pseudo_fs): New structure.
12192 (load_font_module): New function.
12193 (GRUB_MOD_INIT(font_manager)): Load embedded font.
12194 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
12195 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
12196 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
12197 * include/grub/i386/at_keyboard.h: Split into ...
12198 * include/grub/at_keyboard.h: ... this ...
12199 * include/grub/i386/at_keyboard.h: ... and this.
12200 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
12202 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
12204 (grub_elf64_size): Likewise.
12205 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
12207 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
12208 * include/grub/i386/coreboot/serial.h: Rewritten.
12209 * include/grub/i386/ieee1275/serial.h: Include
12210 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
12211 * include/grub/i386/pc/serial.h: Moved from here ...
12212 * include/grub/serial.h: ... to here. All users updated.
12213 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
12214 (GRUB_PCI_NUM_BUS): Likewise.
12215 (GRUB_PCI_NUM_DEVICES): Likewise.
12216 (grub_pci_device_map_range): Add missing volatile keyword.
12217 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
12218 * include/grub/mips/at_keyboard.h: New file.
12219 * include/grub/mips/cache.h: Likewise.
12220 * include/grub/mips/io.h: Likewise.
12221 * include/grub/mips/kernel.h: Likewise.
12222 * include/grub/mips/libgcc.h: Likewise.
12223 * include/grub/mips/pci.h: Likewise.
12224 * include/grub/mips/qemu-mips/boot.h: Likewise.
12225 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12226 * include/grub/mips/qemu-mips/loader.h: Likewise.
12227 * include/grub/mips/qemu-mips/memory.h: Likewise.
12228 * include/grub/mips/qemu-mips/serial.h: Likewise.
12229 * include/grub/mips/qemu-mips/time.h: Likewise.
12230 * include/grub/mips/relocator.h: Likewise.
12231 * include/grub/mips/time.h: Likewise.
12232 * include/grub/mips/types.h: Likewise.
12233 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
12234 * include/grub/mips/yeeloong/boot.h: Likewise.
12235 * include/grub/mips/yeeloong/kernel.h: Likewise.
12236 * include/grub/mips/yeeloong/loader.h: Likewise.
12237 * include/grub/mips/yeeloong/memory.h: Likewise.
12238 * include/grub/mips/yeeloong/pci.h: Likewise.
12239 * include/grub/mips/yeeloong/serial.h: Likewise.
12240 * include/grub/mips/yeeloong/time.h: Likewise.
12241 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
12242 * kern/elf.c (grub_elf32_size): New parameter. All users
12244 (grub_elf64_size): Likewise.
12245 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
12246 Load modules before saying "Welcome to GRUB!".
12247 Call grub_refresh after saying "Welcome to GRUB!".
12248 * kern/mips/cache.S: New file.
12249 * kern/mips/cache_flush.S: Likewise.
12250 * kern/mips/dl.c: Likewise.
12251 * kern/mips/init.c: Likewise.
12252 * kern/mips/qemu-mips/init.c: Likewise.
12253 * kern/mips/startup.S: Likewise.
12254 * kern/mips/yeeloong/init.c: Likewise.
12255 * kern/term.c (grub_putcode): Handle NULL terminal.
12256 (grub_getcharwidth): Likewise.
12257 (grub_getkey): Likewise.
12258 (grub_checkkey): Likewise.
12259 (grub_getkeystatus): Likewise.
12260 (grub_getxy): Likewise.
12261 (grub_getwh): Likewise.
12262 (grub_gotoxy): Likewise.
12263 (grub_cls): Likewise.
12264 (grub_setcolorstate): Likewise.
12265 (grub_setcolor): Likewise.
12266 (grub_getcolor): Likewise.
12267 (grub_refresh): Likewise.
12268 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
12269 (write_jump): Add hatch nop.
12270 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
12271 * lib/mips/setjmp.S: New file.
12272 * loader/mips/linux.c: Likewise.
12273 * term/i386/pc/at_keyboard.c: Move from here ...
12274 * term/at_keyboard.c: ... to here.
12275 * term/i386/pc/serial.c: Moved from here ...
12276 * term/serial.c: ... to here. All users updated.
12277 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
12278 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
12279 (serial_translate_key_sequence): Avoid deadlock.
12280 (grub_serial_getkey): Handle backspace.
12281 (grub_serial_putchar): Fix newline handling.
12282 * util/i386/pc/grub-mkimage.c: Move from here ...
12283 * util/grub-mkrawimage.c: ... to here. All users updated.
12284 (generate_image): New parameters 'font_path' and 'format'.
12285 Support embedding font.
12286 Use grub_host_to_target* instead of grub_cpu_to_le*.
12287 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
12288 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
12289 (options): New option "--font".
12291 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
12292 (main): Handle "--font".
12293 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
12294 (grub_virtual_screen_setup): Set bg_color_display.
12295 (redraw_screen_rect): Use bg_color_display instead of incorrect
12297 (grub_gfxterm_cls): Likewise.
12298 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
12299 Support embedding config file.
12300 (add_segments): Likewise.
12301 (options): New option "--config".
12302 (main): Handle "--config".
12303 * video/sm712.c: New file.
12305 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12307 Fix parallel builds.
12309 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
12310 font.c depend on ascii.h).
12312 2010-01-12 Carles Pina i Estany <carles@pina.cat>
12314 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
12316 2010-01-11 Carles Pina i Estany <carles@pina.cat>
12318 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
12319 By default: disabled.
12320 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
12323 2010-01-10 Carles Pina i Estany <carles@pina.cat>
12325 * font/font.c: Update copyright years.
12326 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
12328 2010-01-10 Carles Pina i Estany <carles@pina.cat>
12330 * font/font.c: Include `ascii.h'.
12331 (ASCII_BITMAP_SIZE): New macro.
12332 (ascii_font_glyph): Define.
12333 (ascii_glyph_lookup): New function.
12334 (grub_font_get_string_width): Change comment. If glyph not found, use
12335 ascii_glyph_lookup.
12336 (grub_font_get_glyph_with_fallback): If glyph not available returns
12337 ascii_glyph_lookup.
12338 * util/grub-mkfont.c (file_formats): New enum.
12339 (options): Add `ascii-bitmaps' new option.
12340 (usage): Add `asii-bitmaps' new option.
12341 (write_font_ascii_bitmap): New function.
12342 (write_font): Rename to ...
12343 (write_font_p2): ... this. Remove print_glyphs call.
12344 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
12345 used. Call print_glyphs.
12346 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
12348 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12350 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
12351 (grub_bin2h_SOURCES): New variable.
12352 * util/bin2h.c: New file.
12354 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12356 * include/multiboot.h: Resynced with spec.
12357 * include/multiboot2.h: Likewise.
12358 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
12359 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
12361 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12363 * include/grub/term.h (grub_term_register_input,
12364 grub_term_register_output): Check return of terminal init()
12365 routines, and abort if errors are raised.
12367 * commands/terminal.c: Update copyright year.
12369 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12371 * commands/terminal.c (grub_cmd_terminal_input)
12372 (grub_cmd_terminal_output): Check return of terminal init()
12373 routines, and abort if errors are raised.
12375 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12377 * include/grub/i386/bsd.h: Fix include pathes.
12379 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12381 Add missing *BSD copyright headers.
12383 * include/grub/aout.h: Add BSD licence.
12384 * include/grub/i386/bsd.h: Parts under different licences moved to ...
12385 * include/grub/i386/freebsd_linker.h: ... here,
12386 * include/grub/i386/freebsd_reboot.h: ... here,
12387 * include/grub/i386/netbsd_bootinfo.h: ... here,
12388 * include/grub/i386/netbsd_reboot.h: ... here,
12389 * include/grub/i386/openbsd_bootarg.h: ... here,
12390 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
12391 licence to each file.
12393 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12395 * acinclude.m4: Remove `nop' assembly instruction; it's not
12396 implemented by all architectures.
12398 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12400 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
12401 ELILO. This is no longer necessary.
12403 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
12405 Added new tool, grub-scrit-check to verify grub.cfg syntax.
12407 * util/grub-script-check.c: grub-script-check tool.
12408 * conf/common.rmk: Make rules for grub-script-check.
12410 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12412 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
12413 spotting it back in 2008. Shame on me for forgetting he did.
12415 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
12417 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12419 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
12420 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
12421 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
12422 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
12423 (GRUB_VIDEO_TYPE_EFI): Rename to ...
12424 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
12426 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
12428 * include/grub/test.h: Add license header.
12429 * tests/example_functional_test.c: Likewise.
12430 * tests/example_unit_test.c: Likewise.
12431 * tests/lib/functional_test.c: Likewise.
12432 * tests/lib/test.c: Likewise.
12433 * tests/lib/unit_test.c: Likewise.
12435 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
12437 Use flag-based instead of hook-based video mode selection and "auto"
12440 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
12441 (grub_video_set_mode): Changed prototype. All users updated.
12442 (grub_video_check_mode_flag): New inline function.
12443 * video/video.c (parse_modespec): New function.
12444 (grub_video_set_mode): Parse flags and keywords.
12446 2010-01-17 Carles Pina i Estany <carles@pina.cat>
12448 * util/misc.c (grub_util_info): Fix the order of the parameters in a
12451 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
12453 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
12455 2010-01-16 Carles Pina i Estany <carles@pina.cat>
12457 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
12459 * util/grub-emu.c (usage): Likewise.
12460 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
12461 * util/i386/efi/grub-mkimage.c (usage): Likewise.
12462 * util/i386/pc/grub-mkimage.c (usage): Likewise.
12463 * util/i386/pc/grub-setup.c (usage): Likewise.
12465 2010-01-16 Carles Pina i Estany <carles@pina.cat>
12467 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
12469 (grub_util_info): Likewise.
12470 (grub_util_error): Likewise.
12471 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
12472 and/or new lines in `grub_util_warna', `grub_util_info',
12473 `grub_util_error' calls.
12474 * util/getroot.c: Likewise.
12475 * util/grub-editenv.c: Likewise.
12476 * util/grub-emu.c: Likewise.
12477 * util/grub-fstest.c: Likewise.
12478 * util/grub-mkdevicemap.c: Likewise.
12479 * util/grub-mkfont.c: Likewise.
12480 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12481 * util/grub-mkrelpath.c: Likewise.
12482 * util/grub-pe2elf.c: Likewise.
12483 * util/grub-probe.c: Likewise.
12484 * util/hostdisk.c: Likewise.
12485 * util/i386/efi/grub-mkimage.c: Likewise.
12486 * util/i386/pc/grub-mkimage.c: Likewise.
12487 * util/i386/pc/grub-setup.c: Likewise.
12488 * util/ieee1275/ofpath.c: Likewise.
12489 * util/mkisofs/eltorito.c: Likewise.
12490 * util/mkisofs/rock.c: Likewise.
12491 * util/mkisofs/write.c: Likewise.
12492 * util/raid.c: Likewise.
12493 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12494 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12496 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12498 Enable multiboot on non-pc.
12500 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
12501 multiboot.mod and multiboot2.mod to ...
12502 * conf/i386.rmk (pkglib_MODULES): ... here.
12503 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
12505 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
12506 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
12508 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
12509 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
12511 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
12512 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
12514 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
12515 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
12517 (ata_mod_SOURCES): Removed.
12518 (ata_mod_CFLAGS): Likewise.
12519 (ata_mod_LDFLAGS): Likewise.
12520 (relocator_mod_SOURCES): Removed.
12521 (relocator_mod_CFLAGS): Likewise.
12522 (relocator_mod_ASFLAGS): Likewise.
12523 (relocator_mod_LDFLAGS): Likewise.
12525 * include/grub/x86_64/multiboot.h: New file.
12526 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
12529 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12531 Video multiboot support.
12533 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
12535 * include/multiboot.h: Resynced with multiboot specification.
12536 * include/multiboot2.h: Likewise.
12537 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
12538 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
12539 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
12540 (HAS_VGA_TEXT): Likewise.
12541 (accepts_video): New variable.
12542 (grub_multiboot_set_accepts_video): New function.
12543 (grub_multiboot_get_mbi_size): Account for video structures.
12544 (set_video_mode): New function.
12545 (retrieve_video_parameters): Likewise.
12546 (grub_multiboot_make_mbi): Fill video fields.
12548 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12552 * include/grub/video.h (grub_video_driver_id): New type.
12553 (grub_video_adapter): New member 'id'. All users updated.
12554 (grub_video_get_driver_id): New proto.
12555 * video/video.c (grub_video_get_driver_id): New function.
12557 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12559 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
12562 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12564 * normal/cmdline.c (print_completion): Gettextizze.
12566 2001-01-14 Carles Pina i Estany <carles@pina.cat>
12568 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
12570 2010-01-14 Carles Pina i Estany <carles@pina.cat>
12572 * gettext/gettext.c (grub_gettext_translate): Push and pop
12574 (grub_gettext_delete_list): Change comment style.
12575 * kern/err.c (grub_error): Gettextizze.
12576 (grub_fatal): Gettextizze.
12578 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12580 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
12581 (grub_linux16_real_boot): ... this.
12582 * kern/i386/loader.S: Likewise.
12583 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
12584 (grub_linux16_boot): New function. Switches to text mode and calls
12585 grub_linux16_real_boot().
12587 * loader/i386/bsd.c: Include `<grub/video.h>'.
12588 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
12589 text mode before calling grub_unix_real_boot().
12591 * loader/i386/multiboot.c: Include `<grub/video.h>'.
12592 (grub_multiboot_boot): Switch to text mode before calling
12593 grub_relocator32_boot().
12595 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
12596 (grub_chainloader_boot): Switch to text mode before calling
12597 grub_chainloader_real_boot().
12599 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12600 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12602 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
12605 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12606 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12608 * util/grub.d/00_header.in: Define a "savedefault" function for use
12610 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
12612 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
12613 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
12615 * util/grub-mkconfig_lib.in (save_default_entry): Only set
12616 saved_entry if boot_once is unset.
12617 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
12618 previous saved entry (i.e. grub-reboot).
12620 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12622 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
12624 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12626 * util/grub.d/00_header.in: Use `set var=val' rather than plain
12628 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
12630 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12632 * util/grub-reboot.in: Fix --version output.
12633 * util/grub-set-default.in: Likewise.
12635 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12637 * util/grub.d/00_header.in: Silently ignore zero-sized environment
12640 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12642 * util/grub.d/00_header.in: Quote the value assigned to `default',
12643 in case it contains spaces.
12645 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
12647 * util/grub.d/30_os-prober.in: Fix merge error that moved a
12648 `save_default_entry' call from the macosx case to the linux case.
12650 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12651 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
12653 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
12654 in `chosen' environment variable.
12655 * normal/menu_text.c (get_entry_number): Check if the variable
12656 matches the title of a menu entry.
12657 (run_menu): Pass menu to get_entry_number.
12659 * util/grub-reboot.in: New file.
12660 * util/grub-set-default.in: New file.
12661 * conf/common.rmk (grub-reboot): New utility.
12662 (grub-set-default): New utility.
12664 * util/grub-mkconfig_lib.in (save_default_entry): New function.
12665 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
12666 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
12667 move it to `saved_entry' for the next boot. Load environment on
12669 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
12670 * util/grub.d/10_hurd.in: Likewise.
12671 * util/grub.d/10_linux.in (linux_entry): Likewise.
12672 * util/grub.d/10_windows.in: Likewise.
12673 * util/grub.d/30_os-prober.in: Likewise.
12675 * util/grub-install.in: Create environment block.
12676 * util/i386/efi/grub-install.in: Likewise.
12677 * util/ieee1275/grub-install.in: Likewise.
12678 * util/sparc64/ieee1275/grub-install.in: Likewise.
12680 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
12682 Unit testing framework for GRUB.
12684 * Makefile.in: Test framework build rules for 'make check'.
12685 * conf/tests.rmk: Build rules for individual tests and framework.
12687 * include/grub/test.h: Header file for whitebox tests.
12688 * tests/lib/functional_test.c: Framework support for whitebox
12690 * tests/lib/test.c: Common whitebox testing code for unit and
12692 * tests/lib/unit_test.c: Framework support for whitebox unit
12695 * tests/util/grub-shell-tester.in: Support utility for grub-script
12697 * tests/util/grub-shell.in: Utility to execute grub-script
12698 commands in a Qemu instance.
12700 * tests/example_functional_test.c: Example whitebox functional
12702 * tests/example_grub_script_test.in: Example grub-script test.
12703 * tests/example_scripted_test.in: Example scripted test.
12704 * tests/example_unit_test.c: Example whitebox unit test.
12706 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12708 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
12709 Add loader/i386/multiboot_mbi.c.
12710 (multiboot2_mod_SOURCES): Likewise.
12711 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
12712 (multiboot2_mod_SOURCES): Likewise.
12713 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
12714 (grub_multiboot_make_mbi): Likewise.
12715 (grub_multiboot_free_mbi): Likewise.
12716 (grub_multiboot_init_mbi): Likewise.
12717 (grub_multiboot_add_module): Likewise.
12718 (grub_multiboot_set_bootdev): Likewise.
12719 * loader/i386/multiboot.c (mbi): Removed.
12720 (mbi_dest): Likewise.
12721 (alloc_mbi): New variable.
12722 (grub_multiboot_payload_size): Removed. All users updated.
12723 (grub_multiboot_pure_size): New variable.
12724 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
12725 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
12726 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
12727 (grub_fill_multiboot_mmap): Likewise.
12728 (grub_multiboot_get_bootdev): Likewise.
12729 (grub_multiboot): Use multiboot_mbi functions.
12730 * loader/i386/multiboot_mbi.c: New file.
12732 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12734 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
12735 it would result in module crash.
12737 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12739 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
12740 (grub_ofconsole_getwh): Split to ...
12741 (grub_ofconsole_getwh): ... this.
12742 (grub_ofconsole_dimensions): ...and this.
12743 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
12745 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
12747 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
12749 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12751 * loader/i386/pc/multiboot2.c: Removed stalled file.
12753 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12755 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
12756 Reported by: Grégoire Sutre
12758 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
12760 * util/misc.c (canonicalize_file_name): New function.
12761 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
12762 instead of realpath().
12764 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
12766 * util/grub-install.in (usage): Clarify meaning of --root-directory,
12767 and make it clearer that it's optional. Based on confusion
12770 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12772 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
12773 in premature implicit newline.
12775 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12777 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
12778 which resulted in garbled command line at the end of screen.
12780 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12782 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
12783 initialization with similar approach as with other Linux loaders.
12785 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12787 Fix i386-ieee1275 build.
12789 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
12790 and grub_term_height() for video_{width,height} initialization.
12792 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12794 Fix grub-emu build.
12796 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
12798 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
12799 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
12801 Support for multiple terminals.
12803 * Makefile.in (pkglib_DATA): terminal.lst.
12804 (terminal.lst): New target.
12805 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
12806 (GRUB_MOD_INIT(handler)): Likewise.
12807 (GRUB_MOD_FINI(handler)): Likewise.
12808 * commands/help.c (grub_cmd_help): Handle multiple terminals.
12809 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
12810 * commands/sleep.c (do_print): Use grub_term_restore_pos.
12811 (grub_cmd_sleep): Use grub_term_save_pos.
12812 * commands/terminal.c: New file.
12813 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
12814 commands/terminal.c and lib/charset.c.
12815 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
12816 (pkglib_MODULES): Add terminal.mod.
12817 (terminal_mod_SOURCES): New variable.
12818 (terminal_mod_CFLAGS): Likewise.
12819 (terminal_mod_LDFLAGS): Likewise.
12820 * genhandlerlist.sh: Don't handle terminals.
12821 * genmk.rb: Generate terminal-*.lst.
12822 * genterminallist.sh: New file.
12823 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
12824 (grub_is_valid_utf8): Likewise.
12825 (grub_utf8_to_ucs4_alloc): Likewise.
12826 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
12827 (grub_menu_register_viewer): Changed argument.
12828 (grub_menu_try_text): New proto.
12829 (grub_gfxmenu_try_hook): New declaration.
12830 * include/grub/normal.h (grub_normal_exit_level): New declaration.
12831 (grub_menu_init_page): Additional argument term.
12832 (grub_normal_init_page): Likewise.
12833 (grub_cmdline_get): Arguments simplified.
12834 (grub_utf8_to_ucs4_alloc): Removed.
12835 (grub_print_ucs4): Additional argument term.
12836 (grub_getstringwidth): Likewise.
12837 (grub_print_message_indented): Likewise.
12838 (grub_menu_text_register_instances): New proto.
12839 (grub_show_menu): Likewise.
12840 (read_terminal_list): Likewise.
12841 (grub_set_more): Likewise.
12842 * include/grub/parser.h: Include handler.h.
12843 * include/grub/reader.h: Rewritten.
12844 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
12845 (GRUB_TERM_WIDTH): Changed to function.
12846 (GRUB_TERM_HEIGHT): Likewise.
12847 (GRUB_TERM_BORDER_WIDTH): Likewise.
12848 (GRUB_TERM_BORDER_HEIGHT): Likewise.
12849 (GRUB_TERM_NUM_ENTRIES): Likewise.
12850 (GRUB_TERM_ENTRY_WIDTH): Likewise.
12851 (GRUB_TERM_CURSOR_X): Likewise.
12852 (grub_term_input_class): Likewise.
12853 (grub_term_output_class): Likewise.
12854 (grub_term_outputs_disabled): New declaration.
12855 (grub_term_inputs_disabled): Likewise.
12856 (grub_term_outputs): Likewise.
12857 (grub_term_inputs): Likewise.
12858 (grub_term_register_input): Rewritten.
12859 (grub_term_register_output): Likewise.
12860 (grub_term_unregister_input): Likewise.
12861 (grub_term_unregister_output): Likewise.
12862 (FOR_ACTIVE_TERM_INPUTS): New macro.
12863 (FOR_DISABLED_TERM_INPUTS): Likewise.
12864 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
12865 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
12866 * include/grub/terminfo.h: Add oterm argument to all protypes.
12867 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
12868 Use grub_rescue_run.
12869 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
12871 * kern/reader.c: Removed. All users updated.
12872 * kern/rescue_reader.c (grub_rescue_init): Removed.
12873 (grub_rescue_reader): Likewise.
12874 (grub_register_rescue_reader): Likewise.
12875 (grub_rescue_run): New function based on kern/reader.c.
12876 * kern/term.c: Adapted for multiterm.
12877 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
12878 (grub_is_valid_utf8): Likewise.
12879 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
12880 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
12882 * loader/i386/linux.c (grub_linux_boot): Likewise.
12883 * normal/auth.c (grub_username_get): New function.
12884 (grub_auth_check_authentication): Use grub_username_get.
12885 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
12886 * normal/color.c: Adapt for multiterm.
12887 * normal/main.c (read_config_file): Don't use grub_reader_loop.
12888 (grub_normal_init_page): Additional argument term.
12889 (read_lists): Call read_terminal_lists.
12890 (grub_enter_normal_mode): Call grub_cmdline_run.
12891 Handle grub_normal_exit_level.
12892 (grub_cmd_normal): Make reentrant.
12893 (grub_cmd_normal_exit): New function.
12894 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
12895 * normal/menu.c: Adapt for multiterm.
12896 * normal/menu_entry.c: Likewise.
12897 * normal/menu_text.c: Likewise.
12898 * normal/menu_viewer.c: Removed. All users updated.
12899 * normal/term.c: New file.
12900 * util/console.c: Change order of includes to workaround a bug in
12902 * term/terminfo.c: New argument oterm on all exported functions.
12904 * util/grub-editenv.c (grub_term_input_class): Removed.
12905 (grub_term_output_class): Likewise.
12907 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
12909 Make loader output a bit more user-friendly.
12911 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
12912 is being loaded. Likewise for the Hurd.
12914 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
12915 that kernel of FreeBSD ${version} is being loaded.
12917 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
12919 (grub_cmd_initrd): Likewise.
12920 * util/grub.d/10_linux.in (linux_entry): Print message indicating
12921 that Linux ${version} is being loaded. Likewise for initrd.
12923 2010-01-09 Carles Pina i Estany <carles@pina.cat>
12925 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
12927 2010-01-08 Carles Pina i Estany <carles@pina.cat>
12929 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
12930 (GRUB_MOD_INIT): Gettextizze.
12931 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
12932 (GRUB_MOD_INIT): Gettextizze.
12933 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
12934 (grub_cmd_linux): Capitalise Linux.
12935 (GRUB_MOD_INIT): Gettextizze.
12936 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
12937 (grub_cmd_linux): Capitalise Linux.
12938 (GRUB_MOD_INIT): Gettextizze.
12939 * loader/i386/linux.c: Include `<grub/i18n.h>'.
12940 (grub_cmd_linux): Capitalise Linux.
12941 (GRUB_MOD_INIT): Gettextizze.
12942 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
12943 (GRUB_MOD_INIT): Gettextizze.
12944 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
12945 (grub_cmd_linux): Capitalise Linux.
12946 (GRUB_MOD_INIT): Gettextizze.
12947 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
12948 (grub_cpu_xnu_init): Gettextizze.
12949 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
12950 (GRUB_MOD_INIT): Gettextizze.
12951 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
12952 (GRUB_MOD_INIT): Gettextizze.
12953 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
12954 (grub_linux_load64): Capitalise Linux.
12955 (GRUB_MOD_INIT): Gettextizze.
12956 * loader/xnu.c: Include `<grub/i18n.h>'.
12957 (GRUB_MOD_INIT): Gettextizze.
12958 * po/POTFILES: Add `loader/efi/appleloader.c',
12959 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
12960 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
12961 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
12962 `loader/i386/xnu.c', `loader/multiboot_loader.c',
12963 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
12964 and `loader/xnu.c'.
12966 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
12968 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
12970 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
12972 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
12973 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
12974 * util/mkisofs/mkisofs.c (main): Readjust --version output.
12976 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
12978 Reset Multiboot 2 support. New loader implements the draft in
12979 /branches/multiboot2 and shares as much code as possible with the
12980 production Multiboot 1 implementation.
12982 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
12983 * loader/multiboot2.c: Likewise.
12984 * loader/i386/multiboot_helper.S: Likewise.
12985 * include/multiboot2.h: Replace with latest version from the draft
12986 in /branches/multiboot2.
12988 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
12989 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
12990 and `loader/multiboot2.c'.
12991 (pkglib_MODULES): Add `multiboot2.mod'.
12992 (multiboot2_mod_SOURCES): New variable.
12993 (multiboot2_mod_LDFLAGS): Likewise.
12994 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
12996 * conf/i386-pc.rmk: Likewise.
12998 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
12999 (multiboot_mod_SOURCES): Remove variable.
13000 (multiboot_mod_LDFLAGS): Likewise.
13001 (multiboot_mod_CFLAGS): Likewise.
13003 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
13004 `<multiboot2.h>' instead of `<multiboot.h>'.
13005 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
13006 (MULTIBOOT_HEADER_MAGIC): New macros.
13008 * loader/multiboot_loader.c (module_version_status): Remove variable.
13009 (find_multi_boot2_header): Remove function.
13010 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
13011 logic. Always check for the Multiboot version we're compiling for.
13012 (grub_cmd_module_loader): Likewise.
13013 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
13014 command instead of `multiboot'.
13016 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13018 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
13019 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
13022 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13023 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13025 Fix breakage introduced with previous commit.
13027 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
13029 * normal/handler.c (read_handler_list): Revert part of previous commit
13030 affecting this file.
13031 * normal/main.c (read_lists): Move read_handler_list() call back to ...
13032 (grub_normal_execute): ... here.
13034 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13036 Merge prefix-redefinition-fix branch.
13038 * normal/autofs.c (read_fs_list): Make function capable of being
13039 run multiple times, gracefuly replacing the previous data
13041 * normal/dyncmd.c (read_command_list): Likewise.
13042 * normal/handler.c (read_handler_list): Likewise.
13043 * normal/main.c (read_lists): New function. Calls all the
13044 list reading functions.
13045 (grub_normal_execute): Use read_lists() instead of calling all
13046 list reading functions explicitly. Register read_lists() as a
13047 variable hook attached to ${prefix}.
13049 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13051 Merge crypto branch.
13053 * Makefile.in (pkglib_DATA): Add crypto.lst.
13054 (crypto.lst): New target.
13055 * commands/hashsum.c: New file.
13056 * commands/password.c (check_password): Use grub_crypto_memcmp.
13057 * commands/password_pbkdf2.c: New file.
13058 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
13059 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
13060 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
13061 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
13062 -I$(srcdir)/lib/libgcrypt_wrap.
13063 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
13064 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
13065 password_pbkdf2.mod.
13066 (crypto_mod_SOURCES): New variable.
13067 (crypto_mod_CFLAGS): Likewise.
13068 (crypto_mod_LDFLAGS): Likewise.
13069 (hashsum_mod_SOURCES): New variable.
13070 (hashsum_mod_CFLAGS): Likewise.
13071 (hashsum_mod_LDFLAGS): Likewise.
13072 (pbkdf2_mod_SOURCES): New variable.
13073 (pbkdf2_mod_CFLAGS): Likewise.
13074 (pbkdf2_mod_LDFLAGS): Likewise.
13075 (password_pbkdf2_mod_SOURCES): New variable.
13076 (password_pbkdf2_mod_CFLAGS): Likewise.
13077 (password_pbkdf2_mod_LDFLAGS): Likewise.
13078 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
13079 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
13080 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
13081 Include conf/gcry.rmk.
13082 * include/grub/auth.h: Rewritten.
13083 * include/grub/crypto.h: New file.
13084 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
13085 * include/grub/normal.h (read_crypto_list): New prototype.
13086 * lib/crypto.c: New file.
13087 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13088 * lib/pbkdf2.c: Likewise.
13089 * normal/auth.c (grub_auth_strcmp): Removed.
13090 (grub_iswordseparator): Likewise.
13091 (grub_auth_strword): Likewise.
13092 (is_authenticated): Use grub_strword.
13093 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
13094 and grub_strword. Pass entered password to authentication callback.
13095 * normal/crypto.c: New file.
13096 * normal/main.c: Call read_crypto_list.
13097 * util/grub-mkpasswd-pbkdf2.c: New file.
13098 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
13100 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
13102 Fix descent and ascent calculation.
13104 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
13105 (options): New option "asce".
13107 (add_char): Ignore invalid glyphs for descent calculation.
13108 Calculate ascent from actual content.
13109 (print_glyphs): Use 'asce'.
13110 (write_font): Likewise. Allow ascent override.
13111 (main): Handle "asce" option.
13113 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13115 * kern/err.c: Include `<grub/i18n.h>'.
13116 (grub_print_error): Add full stop. Gettextizze.
13117 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
13118 (grub_bsd_load_elf): Capitalise ELF.
13119 (grub_cmd_freebsd_loadenv): Add `s' in error string.
13120 (grub_cmd_freebsd_module): Likewise.
13121 (grub_cmd_freebsd_module_elf): Likewise.
13122 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
13124 2010-01-06 Carles Pina i Estany <carles@pina.cat>
13126 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
13127 * commands/search_file.c (HELP_MESSAGE): New macro.
13128 * commands/search_label.c (HELP_MESSAGE): Likewise.
13129 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
13130 * po/POTFILES: Add `commands/search_file.c',
13131 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
13132 `commands/search.c'.
13134 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13136 * config.rpath: Update from Gnulib.
13138 2010-01-05 Yves Blusseau <blusseau@zetam.org>
13140 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
13142 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
13144 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
13146 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13148 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
13149 arguments to fread so that we get a return value in bytes, rather
13150 than something that will normally be rounded down to 0.
13151 Adjust error handling to avoid producing garbage when size_t is not
13152 the same size as long long.
13154 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
13156 * util/mkisofs/write.c (padblock_write): Check return value of
13159 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13161 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
13164 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
13166 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13168 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
13169 instead of manual alignment.
13170 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
13171 verbose). Avoid attempts to read past end of the device
13172 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
13173 but GRUB_DISK_CACHE_SIZE may exceed that).
13175 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13177 * commands/crc.c (grub_cmd_crc): Abort on read errors.
13178 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
13181 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13183 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
13185 (grub_efi_piwg_device_path): New structure
13186 (grub_efi_piwg_device_path_t): New type.
13187 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
13188 (devpath_1): Transform to a structure. All users updated.
13189 (devpath_2): Likewise.
13190 (devpath_3): Likewise.
13191 (devpath_4): Likewise.
13192 (devpath_5): Likewise.
13194 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13196 * loader/efi/appleloader.c: Restored. Update all users.
13198 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13200 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
13202 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
13203 (struct boot_blocklist): Move from here ...
13204 * include/grub/i386/pc/boot.h [ASM_FILE]
13205 (struct grub_boot_blocklist): ... to here. Update all users.
13206 (setup): Only initialize `start' member of `first_block'
13207 structure. Add assert() calls to verify the other members.
13209 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
13210 (generate_image): Fix broken blocklist length initialization.
13211 Add assert() call to verify blocklist `segment' field.
13213 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13215 * loader/efi/appleloader.c: Remove. Update all users.
13217 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13219 * boot/i386/pc/boot.S: Update copyright year.
13220 * boot/i386/pc/cdboot.S: Likewise.
13221 * boot/i386/pc/diskboot.S: Likewise.
13222 * boot/i386/pc/lnxboot.S: Likewise.
13223 * boot/i386/pc/pxeboot.S: Likewise.
13224 * bus/pci.c: Likewise.
13225 * commands/cmp.c: Likewise.
13226 * commands/help.c: Likewise.
13227 * commands/hexdump.c: Likewise.
13228 * commands/i386/pc/halt.c: Likewise.
13229 * commands/i386/pc/play.c: Likewise.
13230 * commands/i386/pc/vbeinfo.c: Likewise.
13231 * commands/ls.c: Likewise.
13232 * commands/test.c: Likewise.
13233 * disk/dmraid_nvidia.c: Likewise.
13234 * disk/i386/pc/biosdisk.c: Likewise.
13235 * disk/ieee1275/nand.c: Likewise.
13236 * disk/ieee1275/ofdisk.c: Likewise.
13237 * disk/lvm.c: Likewise.
13238 * disk/raid.c: Likewise.
13239 * disk/raid6_recover.c: Likewise.
13240 * disk/scsi.c: Likewise.
13241 * fs/affs.c: Likewise.
13242 * fs/cpio.c: Likewise.
13243 * fs/ext2.c: Likewise.
13244 * fs/hfs.c: Likewise.
13245 * fs/iso9660.c: Likewise.
13246 * fs/ntfs.c: Likewise.
13247 * fs/sfs.c: Likewise.
13248 * fs/udf.c: Likewise.
13249 * fs/ufs.c: Likewise.
13250 * fs/xfs.c: Likewise.
13251 * gencmdlist.sh: Likewise.
13252 * genmk.rb: Likewise.
13253 * include/grub/disk.h: Likewise.
13254 * include/grub/efi/api.h: Likewise.
13255 * include/grub/efi/efi.h: Likewise.
13256 * include/grub/efi/pe32.h: Likewise.
13257 * include/grub/elf.h: Likewise.
13258 * include/grub/fs.h: Likewise.
13259 * include/grub/i386/at_keyboard.h: Likewise.
13260 * include/grub/i386/pc/memory.h: Likewise.
13261 * include/grub/i386/pc/vbe.h: Likewise.
13262 * include/grub/i386/pci.h: Likewise.
13263 * include/grub/i386/tsc.h: Likewise.
13264 * include/grub/ieee1275/ieee1275.h: Likewise.
13265 * include/grub/ntfs.h: Likewise.
13266 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13267 * include/grub/sparc64/libgcc.h: Likewise.
13268 * include/grub/symbol.h: Likewise.
13269 * include/grub/types.h: Likewise.
13270 * include/multiboot2.h: Likewise.
13271 * io/gzio.c: Likewise.
13272 * kern/device.c: Likewise.
13273 * kern/disk.c: Likewise.
13274 * kern/efi/efi.c: Likewise.
13275 * kern/efi/mm.c: Likewise.
13276 * kern/elf.c: Likewise.
13277 * kern/file.c: Likewise.
13278 * kern/i386/dl.c: Likewise.
13279 * kern/i386/pc/init.c: Likewise.
13280 * kern/i386/pc/startup.S: Likewise.
13281 * kern/ieee1275/ieee1275.c: Likewise.
13282 * kern/ieee1275/init.c: Likewise.
13283 * kern/main.c: Likewise.
13284 * kern/mm.c: Likewise.
13285 * kern/powerpc/dl.c: Likewise.
13286 * kern/sparc64/dl.c: Likewise.
13287 * kern/x86_64/dl.c: Likewise.
13288 * lib/hexdump.c: Likewise.
13289 * loader/efi/appleloader.c: Likewise.
13290 * loader/i386/ieee1275/linux.c: Likewise.
13291 * loader/i386/pc/chainloader.c: Likewise.
13292 * loader/i386/pc/linux.c: Likewise.
13293 * loader/i386/pc/multiboot2.c: Likewise.
13294 * loader/ieee1275/multiboot2.c: Likewise.
13295 * loader/multiboot2.c: Likewise.
13296 * loader/multiboot_loader.c: Likewise.
13297 * loader/powerpc/ieee1275/linux.c: Likewise.
13298 * normal/completion.c: Likewise.
13299 * normal/menu_entry.c: Likewise.
13300 * partmap/apple.c: Likewise.
13301 * util/grub.d/10_hurd.in: Likewise.
13302 * util/hostfs.c: Likewise.
13303 * video/readers/png.c: Likewise.
13305 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
13307 * include/grub/misc.h (GNUC_PREREQ): New macro.
13308 (ATTRIBUTE_ERROR): New macro.
13309 * include/grub/list.h (grub_bad_type_cast_real): Use
13312 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13314 * normal/menu_text.c (print_message): Change messages.
13316 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13318 * normal/menu_entry.c (store_completion): Gettextizze.
13320 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13322 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
13324 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13326 * po/POTFILES: Sort correctly.
13328 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13330 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
13331 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
13332 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
13334 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
13335 summary. Gettextizze the strings.
13336 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
13337 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
13338 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
13340 (GRUB_MOD_INIT): Remove command name from summary.
13341 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
13343 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
13344 * term/i386/pc/serial.c (options): Add full stops.
13345 (GRUB_MOD_INIT): Remove command name from the summary.
13347 2010-01-03 Carles Pina i Estany <carles@pina.cat>
13349 * commands/acpi.c: Gettextizze help strings and/or options. Include
13350 `grub/i18n.h' if needed.
13351 * commands/blocklist.c: Likewise.
13352 * commands/boot.c: Likewise.
13353 * commands/cat.c: Likewise.
13354 * commands/cmp.c: Likewise.
13355 * commands/configfile.c: Likewise.
13356 * commands/crc.c: Likewise.
13357 * commands/date.c: Likewise.
13358 * commands/echo.c: Likewise.
13359 * commands/efi/fixvideo.c: Likewise.
13360 * commands/efi/loadbios.c: Likewise.
13361 * commands/gptsync.c: Likewise.
13362 * commands/halt.c: Likewise.
13363 * commands/handler.c: Likewise.
13364 * commands/hdparm.c: Likewise.
13365 * commands/hexdump.c: Likewise.
13366 * commands/i386/cpuid.c: Likewise.
13367 * commands/i386/pc/drivemap.c: Likewise.
13368 * commands/i386/pc/halt.c: Likewise.
13369 * commands/i386/pc/pxecmd.c: Likewise.
13370 * commands/i386/pc/vbeinfo.c: Likewise.
13371 * commands/i386/pc/vbetest.c: Likewise.
13372 * commands/ieee1275/suspend.c: Likewise.
13373 * commands/keystatus.c: Likewise.
13374 * commands/loadenv.c: Likewise.
13375 * commands/ls.c: Likewise.
13376 * commands/lsmmap.c: Likewise.
13377 * commands/lspci.c: Likewise.
13378 * commands/memrw.c: Likewise.
13379 * commands/minicmd.c: Likewise.
13380 * commands/parttool.c: Likewise.
13381 * commands/password.c: Likewise.
13382 * commands/probe.c: Likewise.
13383 * commands/read.c: Likewise.
13384 * commands/reboot.c: Likewise.
13385 * commands/search.c: Likewise.
13386 * commands/sleep.c: Likewise.
13387 * commands/test.c: Likewise.
13388 * commands/true.c: Likewise.
13389 * commands/usbtest.c: Likewise.
13390 * commands/videotest.c: Likewise.
13391 * commands/xnu_uuid.c: Likewise.
13392 * disk/loopback.c: Likewise.
13393 * hello/hello.c: Likewise.
13394 * loader/i386/bsd.c: Likewise.
13395 * term/i386/pc/serial.c: Likewise.
13396 * po/POTFILES: Add new files.
13398 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
13400 * term/i386/pc/at_keyboard.c
13401 (keyboard_controller_wait_untill_ready): Rename to ...
13402 (keyboard_controller_wait_until_ready): ... this. Update all users.
13404 2010-01-01 Carles Pina i Estany <carles@pina.cat>
13406 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
13407 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
13408 string using string width.
13409 * normal/menu_text.c (grub_print_message_indented): Use
13410 grub_print_spaces and not print_spaces.
13411 (print_timeout): Likewise.
13412 (print_spaces): Move to...
13413 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
13415 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
13417 Import from Gnulib.
13419 * gnulib/getdelim.c: New file.
13420 * gnulib/getline.c: Likewise.
13422 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
13424 * include/grub/list.h (grub_assert_fail): Removed.
13425 (grub_bad_type_cast_real): New function.
13426 (grub_bad_type_cast): New macro.
13427 (GRUB_AS_LIST): Use grub_bad_type_cast.
13428 (GRUB_AS_LIST_P): Likewise.
13429 (GRUB_AS_NAMED_LIST): Likewise.
13430 (GRUB_AS_NAMED_LIST_P): Likewise.
13431 (GRUB_AS_PRIO_LIST): Likewise.
13432 (GRUB_AS_PRIO_LIST_P): Likewise.
13433 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
13435 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
13437 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
13440 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
13442 * configure.ac: Check for TARGET_CFLAGS initialization before we
13443 initialize it ourselves (sigh).
13444 Move a few modifications to TARGET_CFLAGS to be unconditional
13445 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
13448 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
13449 * term/i386/pc/at_keyboard.c
13450 (keyboard_controller_wait_untill_ready): Likewise.
13451 (keyboard_controller_led): Rename `led_status' paramter to avoid
13454 2009-12-28 Carles Pina i Estany <carles@pina.cat>
13456 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
13459 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13461 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
13463 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13465 * normal/menu_text.c (grub_print_message_indented): Prevent
13466 past-the-end-of-array dereference.
13468 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13470 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
13471 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
13473 2009-12-27 Carles Pina i Estany <carles@pina.cat>
13475 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
13476 * normal/main.c (grub_normal_read_line): Remove a space from the
13479 2009-12-27 Carles Pina i Estany <carles@pina.cat>
13481 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
13482 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13483 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13484 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13485 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13486 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13487 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13489 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13491 * video/readers/jpeg.c (cmd): Declare.
13492 (grub_cmd_jpegtest): Use `grub_command_t' type.
13493 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13495 (GRUB_MOD_FINI): Use `cmd' to unregister.
13496 * video/readers/png.c (cmd): Declare.
13497 (grub_cmd_pngtest): Use `grub_command_t' type.
13498 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13500 (GRUB_MOD_FINI): Use `cmd' to unregister.
13501 * video/readers/tga.c (cmd): Declare.
13502 (grub_cmd_tgatest): Use `grub_command_t' type.
13503 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13505 (GRUB_MOD_FINI): Use `cmd' to unregister.
13507 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13509 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
13511 * kern/corecmd.c (grub_register_core_commands): Likewise.
13512 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
13513 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13514 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
13515 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13516 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13517 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
13518 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13519 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
13520 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13521 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13522 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13523 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13524 * normal/handler.c (insert_handler): Likewise.
13525 * normal/main.c (GRUB_MOD_INIT): Likewise.
13526 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13528 2009-12-26 Carles Pina i Estany <carles@pina.cat>
13530 * commands/help.c (grub_cmd_help): Print the command name before the
13532 (GRUB_MOD_INIT): Remove command name from the summary.
13533 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
13535 * lib/arg.c (find_long): Print the command name before the summary.
13536 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
13538 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
13539 * commands/cat.c (GRUB_MOD_INIT): Likewise.
13540 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
13541 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
13542 * commands/crc.c (GRUB_MOD_INIT): Likewise.
13543 * commands/date.c (GRUB_MOD_INIT): Likewise.
13544 * commands/echo.c (GRUB_MOD_INIT): Likewise.
13545 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
13546 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
13547 * commands/handler.c (GRUB_MOD_INIT): Likewise.
13548 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
13549 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
13550 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
13551 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
13552 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
13553 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
13554 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
13555 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
13556 * commands/ls.c (GRUB_MOD_INIT): Likewise.
13557 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
13558 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
13559 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
13560 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
13561 * commands/password.c (GRUB_MOD_INIT): Likewise.
13562 * commands/probe.c (GRUB_MOD_INIT): Likewise.
13563 * commands/read.c (GRUB_MOD_INIT): Likewise.
13564 * commands/search.c (GRUB_MOD_INIT): Likewise.
13565 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
13566 * commands/test.c (GRUB_MOD_INIT): Likewise.
13567 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
13568 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13569 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13570 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
13571 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13572 * lib/arg.c (GRUB_MOD_INIT): Likewise.
13573 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
13574 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13575 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13576 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13577 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13578 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
13579 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
13580 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
13582 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13584 Use search command for preliminar UUID search.
13586 * commands/search.c: Split into ...
13587 * commands/search_wrap.c: ...this
13588 * commands/search.c: ...and this.
13589 * commands/search_file.c: New file.
13590 * commands/search_label.c: New file.
13591 * commands/search_uuid.c: New file.
13592 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
13593 Add commands/search_wrap.c, commands/search_file.c,
13594 commands/search_label.c and commands/search_uuid.c.
13595 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
13596 (search_mod_SOURCES): Set to commands/search_wrap.c.
13597 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
13599 (search_fs_file_mod_SOURCES): New variable.
13600 (search_fs_file_mod_CFLAGS): Likewise.
13601 (search_fs_file_mod_LDFLAGS): Likewise.
13602 (search_label_mod_SOURCES): Likewise.
13603 (search_label_mod_CFLAGS): Likewise.
13604 (search_label_mod_LDFLAGS): Likewise.
13605 (search_fs_uuid_mod_SOURCES): New variable.
13606 (search_fs_uuid_mod_CFLAGS): Likewise.
13607 (search_fs_uuid_mod_LDFLAGS): Likewise.
13608 (fs_file_mod_SOURCES): Removed.
13609 (fs_file_mod_CFLAGS): Likewise.
13610 (fs_file_mod_LDFLAGS): Likewise.
13611 (fs_uuid_mod_SOURCES): Removed.
13612 (fs_uuid_mod_CFLAGS): Likewise.
13613 (fs_uuid_mod_LDFLAGS): Likewise.
13614 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
13615 Set to util/grub-install.in.
13616 * disk/fs_file.c: Removed.
13617 * disk/fs_uuid.c: Likewise.
13618 * include/grub/search.h: New file.
13619 * util/grub-install.in: Handle sparc64.
13620 Create and use load.cfg.
13621 * util/sparc64/ieee1275/grub-install.in: Removed.
13623 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13625 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
13626 Ignore return status if CF is cleared.
13627 (grub_biosdisk_get_diskinfo_standard): Likewise.
13629 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13631 * term/i386/pc/at_keyboard.c
13632 (keyboard_controller_wait_untill_ready): New function.
13633 (grub_keyboard_controller_write, grub_keyboard_controller_read)
13634 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
13635 for keyboard polling, rather than duplicate the same loop. This
13636 saves a few bytes in code size.
13638 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13640 Support for (pxe[:server[:gateway]]) syntax and
13641 use environment variable for PXE.
13643 * commands/i386/pc/pxecmd.c (options): Removed.
13644 (print_ip): Removed.
13645 (grub_cmd_pxe): Removed
13646 (grub_cmd_pxe_unload): New function.
13647 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
13648 (grub_pxe_your_ip): Made static.
13649 (grub_pxe_default_server_ip): Likewise.
13650 (grub_pxe_default_gateway_ip): Likewise.
13651 (grub_pxe_blksize): Likewise.
13652 (parse_ip): New function.
13653 (grub_pxe_open): Support server and gateway specification.
13654 (grub_pxe_close): Free disk->data.
13655 (grub_pxefs_open): Use disk->data.
13656 (grub_pxefs_read): Likewise.
13657 (grub_env_write_readonly): New function.
13658 (set_mac_env): Likewise.
13659 (set_env_limn_ro): Likewise.
13660 (parse_dhcp_vendor): Likewise.
13661 (grub_pxe_detect): Set the environment variables.
13662 (set_ip_env): New function.
13663 (write_ip_env): Likewise.
13664 (grub_env_write_pxe_default_server): Likewise.
13665 (grub_env_write_pxe_default_gateway): Likewise.
13666 (grub_env_write_pxe_blocksize): Likewise.
13667 (GRUB_MOD_INIT(pxe)): Set environment variables.
13668 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
13669 (grub_pxe_mac_addr_t): ... this. All users updated.
13670 (grub_pxe_your_ip): Removed.
13671 (grub_pxe_server_ip): Likewise.
13672 (grub_pxe_gateway_ip): Likewise.
13673 (grub_pxe_blksize): Likewise.
13675 2009-12-25 Carles Pina i Estany <carles@pina.cat>
13677 * commands/help.c: Include `<grub/i18n.h>'.
13678 (grub_cmd_help): Gettextizze.
13679 (GRUB_MOD_INIT): Likewise.
13680 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
13681 (GRUB_MOD_INIT): Gettextizze.
13682 * commands/search.c: Include `<grub/i18n.h>'.
13683 (options): Gettextizze.
13684 (GRUB_MOD_INIT): Gettextizze.
13685 * lib/arg.c: Include `<grub/i18n.h>'.
13686 (help_options): Gettextizze.
13687 (find_long): Likewise.
13688 (grub_arg_show_help): Likewise.
13689 * normal/dyncmd.c: Include `<grub/i18n.h>'.
13690 (read_command_list): Gettextizze.
13691 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
13692 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
13694 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13696 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
13697 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
13698 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
13699 (led_status): New variable.
13700 (keyboard_controller_led): New function.
13701 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
13702 update led status for caps lock, num lock and scroll lock.
13704 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
13706 * util/hostdisk.c (open_device): Fix a comment.
13708 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13710 * util/grub-install.in (host_os): New variable.
13711 * util/i386/efi/grub-install.in (host_os): Likewise.
13713 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13715 * util/mkisofs/write.c (padblock_write): Abort when given an
13716 excedingly large embed image, instead of silently truncating it.
13718 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13720 * include/multiboot.h: Indentation fixes.
13722 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13724 * include/multiboot.h (struct multiboot_aout_symbol_table)
13725 (struct multiboot_elf_section_header_table): New structure
13726 declarations (stolen from GRUB Legacy).
13727 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
13730 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
13731 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
13734 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13736 * include/multiboot.h: Make comments src2texi-friendly.
13738 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13740 For consistency with [multiboot]/docs/boot.S.
13742 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
13743 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
13744 (MULTIBOOT_MAGIC2): Rename from this ...
13745 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
13747 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13749 * include/multiboot.h: Remove `<grub/types.h>'.
13750 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
13751 types. Update all users.
13753 2009-12-25 Carles Pina i Estany <carles@pina.cat>
13755 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
13756 `couldn't' and `can not' by `cannot'.
13757 * commands/i386/pc/drivemap.c: Likewise.
13758 * disk/ata.c: Likewise.
13759 * disk/ieee1275/nand.c: Likewise.
13760 * fs/affs.c: Likewise.
13761 * fs/fat.c: Likewise.
13762 * fs/hfs.c: Likewise.
13763 * fs/hfsplus.c: Likewise.
13764 * fs/iso9660.c: Likewise.
13765 * fs/jfs.c: Likewise.
13766 * fs/minix.c: Likewise.
13767 * fs/reiserfs.c: Likewise.
13768 * fs/sfs.c: Likewise.
13769 * fs/udf.c: Likewise.
13770 * fs/ufs.c: Likewise.
13771 * fs/xfs.c: Likewise.
13772 * loader/powerpc/ieee1275/linux.c: Likewise.
13773 * loader/sparc64/ieee1275/linux.c: Likewise.
13774 * util/grub-probe.c: Likewise.
13775 * util/misc.c: Likewise.
13777 2009-12-24 Carles Pina i Estany <carles@pina.cat>
13779 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
13781 * commands/acpi.c: Likewise.
13782 * commands/blocklist.c: Likewise.
13783 * commands/efi/loadbios.c: Likewise.
13784 * commands/i386/pc/drivemap.c: Likewise.
13785 * commands/loadenv.c: Likewise.
13786 * commands/memrw.c: Likewise.
13787 * commands/password.c: Likewise.
13788 * commands/videotest.c: Likewise.
13789 * disk/ata.c: Likewise.
13790 * disk/ata_pthru.c: Likewise.
13791 * disk/dmraid_nvidia.c: Likewise.
13792 * disk/ieee1275/nand.c: Likewise.
13793 * disk/ieee1275/ofdisk.c: Likewise.
13794 * disk/loopback.c: Likewise.
13795 * disk/lvm.c: Likewise.
13796 * disk/mdraid_linux.c: Likewise.
13797 * disk/raid.c: Likewise.
13798 * disk/raid6_recover.c: Likewise.
13799 * disk/scsi.c: Likewise.
13800 * efiemu/main.c: Likewise.
13801 * efiemu/mm.c: Likewise.
13802 * efiemu/pnvram.c: Likewise.
13803 * efiemu/symbols.c: Likewise.
13804 * font/font.c: Likewise.
13805 * fs/cpio.c: Likewise.
13806 * fs/hfsplus.c: Likewise.
13807 * fs/iso9660.c: Likewise.
13808 * fs/jfs.c: Likewise.
13809 * fs/minix.c: Likewise.
13810 * fs/ntfs.c: Likewise.
13811 * fs/ntfscomp.c: Likewise.
13812 * fs/reiserfs.c: Likewise.
13813 * fs/ufs.c: Likewise.
13814 * fs/xfs.c: Likewise.
13815 * gettext/gettext.c: Likewise.
13816 * include/grub/auth.h: Likewise.
13817 * kern/elf.c: Likewise.
13818 * kern/file.c: Likewise.
13819 * kern/ieee1275/init.c: Likewise.
13820 * kern/ieee1275/mmap.c: Likewise.
13821 * kern/ieee1275/openfw.c: Likewise.
13822 * kern/powerpc/dl.c: Likewise.
13823 * kern/sparc64/dl.c: Likewise.
13824 * lib/arg.c: Likewise.
13825 * loader/i386/bsd.c: Likewise.
13826 * loader/i386/bsdXX.c: Likewise.
13827 * loader/i386/efi/linux.c: Likewise.
13828 * loader/i386/efi/xnu.c: Likewise.
13829 * loader/i386/ieee1275/linux.c: Likewise.
13830 * loader/i386/linux.c: Likewise.
13831 * loader/i386/multiboot.c: Likewise.
13832 * loader/i386/pc/linux.c: Likewise.
13833 * loader/i386/pc/multiboot2.c: Likewise.
13834 * loader/i386/xnu.c: Likewise.
13835 * loader/ieee1275/multiboot2.c: Likewise.
13836 * loader/macho.c: Likewise.
13837 * loader/machoXX.c: Likewise.
13838 * loader/multiboot2.c: Likewise.
13839 * loader/multiboot_loader.c: Likewise.
13840 * loader/powerpc/ieee1275/linux.c: Likewise.
13841 * loader/sparc64/ieee1275/linux.c: Likewise.
13842 * loader/xnu.c: Likewise.
13843 * loader/xnu_resume.c: Likewise.
13844 * mmap/i386/pc/mmap.c: Likewise.
13845 * normal/menu_viewer.c: Likewise.
13846 * partmap/acorn.c: Likewise.
13847 * partmap/amiga.c: Likewise.
13848 * partmap/apple.c: Likewise.
13849 * script/lexer.c: Likewise.
13850 * term/gfxterm.c: Likewise.
13851 * term/i386/pc/serial.c: Likewise.
13852 * term/i386/pc/vga.c: Likewise.
13853 * term/ieee1275/ofconsole.c: Likewise.
13854 * term/terminfo.c: Likewise.
13855 * video/bitmap.c: Likewise.
13856 * video/efi_gop.c: Likewise.
13857 * video/efi_uga.c: Likewise.
13858 * video/fb/video_fb.c: Likewise.
13859 * video/i386/pc/vbe.c: Likewise.
13860 * video/readers/tga.c: Likewise.
13861 * video/video.c: Likewise.
13863 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
13865 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
13866 * commands/lspci.c: Likewise.
13867 * commands/probe.c: Likewise.
13868 * commands/xnu_uuid.c: Likewise.
13869 * conf/i386-coreboot.rmk: Likewise.
13870 * conf/i386-efi.rmk: Likewise.
13871 * conf/i386-ieee1275.rmk: Likewise.
13872 * conf/i386-pc.rmk: Likewise.
13873 * conf/powerpc-ieee1275.rmk: Likewise.
13874 * conf/sparc64-ieee1275.rmk: Likewise.
13875 * conf/x86_64-efi.rmk: Likewise.
13876 * fs/i386/pc/pxe.c: Likewise.
13877 * gettext/gettext.c: Likewise.
13878 * include/grub/efi/graphics_output.h: Likewise.
13879 * include/grub/i386/pc/memory.h: Likewise.
13880 * kern/env.c: Likewise.
13881 * kern/i386/qemu/startup.S: Likewise.
13882 * lib/i386/pc/biosnum.c: Likewise.
13883 * lib/i386/relocator.c: Likewise.
13884 * lib/i386/relocator_asm.S: Likewise.
13885 * lib/relocator.c: Likewise.
13886 * loader/i386/bsd.c: Likewise.
13887 * loader/i386/multiboot.c: Likewise.
13888 * loader/i386/pc/chainloader.c: Likewise.
13889 * loader/i386/xnu.c: Likewise.
13890 * loader/xnu.c: Likewise.
13891 * normal/main.c: Likewise.
13892 * normal/menu_text.c: Likewise.
13893 * util/getroot.c: Likewise.
13894 * util/grub-mkconfig_lib.in: Likewise.
13895 * util/grub.d/00_header.in: Likewise.
13896 * util/i386/pc/grub-mkimage.c: Likewise.
13897 * util/mkisofs/eltorito.c: Likewise.
13898 * util/mkisofs/exclude.h: Likewise.
13899 * util/mkisofs/hash.c: Likewise.
13900 * util/mkisofs/iso9660.h: Likewise.
13901 * util/mkisofs/joliet.c: Likewise.
13902 * util/mkisofs/mkisofs.c: Likewise.
13903 * util/mkisofs/mkisofs.h: Likewise.
13904 * util/mkisofs/multi.c: Likewise.
13905 * util/mkisofs/name.c: Likewise.
13906 * util/mkisofs/rock.c: Likewise.
13907 * util/mkisofs/tree.c: Likewise.
13908 * util/mkisofs/write.c: Likewise.
13909 * video/efi_gop.c: Likewise.
13911 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
13913 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
13916 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13918 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
13919 * genmk.rb (class SCRIPT): Modify the target file instead of source.
13921 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13923 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
13924 (GRUB_MOD_INIT(memrw)): Update help line.
13926 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13928 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
13929 Use grub_extcmd_t. All users updated.
13930 (options): New variable.
13931 (grub_cmd_read): Restructure for readability. Support "-v" option.
13932 (grub_cmd_write): Restructure for readability.
13934 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13936 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
13938 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13940 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
13941 with the actual contents of the correspondending make variable.
13942 * util/grub-mkrescue.in (pkglib_DATA): New variable.
13943 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
13944 specifying `*.lst' and `efiemu??.o'
13946 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13948 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
13949 after function name.
13950 Noticed by Rene Engelhard <rene@debian.org>.
13952 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13954 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
13955 (options): New variable.
13956 (iospace): Likewise.
13957 (grub_lspci_iter): List IO spaces if "-i" was given.
13958 (grub_cmd_lspci): Parse options.
13959 (GRUB_MOD_INIT(lspci)): Use extcmd.
13960 (GRUB_MOD_FINI(lspci)): Likewise.
13962 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
13964 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
13965 `function' keyword.
13966 Patch by Tony Mancill <tmancill@debian.org>.
13968 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
13970 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
13971 (grub_uhci_portstatus): Likewise.
13972 (grub_uhci_portstatus): Add necessary delay.
13973 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
13975 2009-12-21 Carles Pina i Estany <carles@pina.cat>
13977 * commands/acpi.c (options): Fix capitalizations and/or full stops.
13978 (GRUB_MOD_INIT): Likewise.
13979 * commands/boot.c (GRUB_MOD_INIT): Likewise.
13980 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
13981 * commands/echo.c (options): Fix capitalizations and/or full stops.
13982 * commands/efi/loadbios.c (enable_rom_area): Likewise.
13983 (enable_rom_area): Likewise.
13984 (GRUB_MOD_INIT): Likewise.
13985 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
13986 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
13987 * commands/handler.c (GRUB_MOD_INIT): Likewise.
13988 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
13989 * commands/hexdump.c (options): Likewise.
13990 * commands/i386/cpuid.c (options): Likewise.
13991 (GRUB_MOD_INIT): Likewise.
13992 * commands/i386/pc/drivemap.c (options): Likewise.
13993 (GRUB_MOD_INIT): Likewise.
13994 * commands/i386/pc/halt (options): Likewise.
13995 (GRUB_MOD_INIT): Likewise.
13996 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
13997 * commands/i386/pc/pxecmd.c (options): Likewise.
13998 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
13999 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
14000 * commands/keystatus.c (options): Likewise.
14001 (GRUB_MOD_INIT): Likewise.
14002 * commands/loadenv.c (options): Likewise.
14003 * commands/ls.c (options): Likewise.
14004 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14005 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
14006 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
14007 * commands/parttool.c (helpmsg): Likewise.
14008 * commands/probe.c (options): Likewise.
14009 * commands/read.c (GRUB_MOD_INIT): Likewise.
14010 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
14011 * commands/search.c (options): Likewise.
14012 * commands/sleep.c (options): Likewise.
14013 * commands/test.c (GRUB_MOD_INIT): Likewise.
14014 * commands/true.c (GRUB_MOD_INIT): Likewise.
14015 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
14016 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
14017 * lib/arg.c (help_options): Likewise.
14018 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
14020 * po/POTFILES: Add `commands/loadenv.c'.
14022 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
14024 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
14025 instead of specifying them explicit.
14027 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14029 * NEWS: Add grub-probe support for GNU/Hurd.
14031 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14033 * NEWS: gettext was added after 1.97.
14035 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14037 * util/mkisofs/msdos_partition.h: New file (based on
14038 include/grub/msdos_partition.h).
14039 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
14040 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
14041 (ld_options, main): Recognize --protective-msdos-label.
14042 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
14043 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
14044 (padblock_write): If `use_protective_msdos_label' is set, patch a
14045 protective DOS-style label in the output image.
14047 * util/grub-mkrescue.in: Use --protective-msdos-label.
14049 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14051 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
14054 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14056 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
14058 (ld_options, main): Recognize `--embedded-boot'.
14059 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
14061 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
14062 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
14063 (padblock_write): Likewise. Rewrite to support embedded boot image.
14065 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
14066 for BIOS-based disk boot instead of only ElTorito.
14068 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14070 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
14071 build (not needed for bootstrap).
14073 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14075 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
14076 from i386-pc build (not needed for bootstrap).
14077 Rewrite a pair of strings.
14079 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14081 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
14083 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
14085 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
14087 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14089 * kern/env.c (grub_env_context_open): Mark exported variable for
14092 2009-12-21 Andreas Born <futur.andy@googlemail.com>
14094 * kern/env.c (grub_env_export): Create nonexistent variables before
14097 2009-12-20 Carles Pina i Estany <carles@pina.cat>
14099 * include/grub/auth.h: Include `<grub/i18n.h>'.
14100 (GRUB_GET_PASSWORD): Gettextizze string.
14101 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
14103 (grub_utf8_to_ucs4_alloc): Fix indentation.
14104 (grub_print_ucs4): Likewise.
14105 (grub_getstringwidth): Likewise.
14106 (print_message_indented): New declaration.
14107 * normal/auth.c: Include `<grub/i18n.h>'.
14108 (grub_auth_check_authentication): Gettexttize string.
14109 * normal/cmdline.c: Include `<grub/i18n.h>'.
14110 (grub_cmdline_get): Gettextizze.
14111 * normal/color.c: Include `<grub/i18n.h>'.
14112 (grub_parse_color_name_pair): Gettexttize strings.
14113 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
14114 string (use `print_message_indented').
14115 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
14116 `include/grub/normal.h'.
14117 (print_message_indented): Renamed to ...
14118 (grub_print_message_indented): ... this. Remove `static' qualifer (now
14119 used in normal/main.c).
14120 (print_message): Use `grub_print_message_indented' instead of
14121 `print_message_indented'.
14122 (print_timeout): Likewise.
14123 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
14124 (grub_normal_print_device_info): Gettexttize strings.
14125 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
14127 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14129 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
14130 of arguments. Return number of tokens and not arguments. All users
14133 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14135 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
14136 non-MSDOS paritions.
14138 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14140 * include/grub/types.h (UNUSED): Removed since it conflicts with
14141 NetBSD headers. All users changed to direct __attribute__ ((unused)).
14142 Reported by Grégoire Sutre.
14144 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14146 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
14147 (grub_print_ucs4_alloc): Likewise.
14148 (grub_getstringwidth): Likewise.
14149 * normal/main.c (grub_normal_init_page): Gettextize version string.
14150 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
14151 (getstringwidth): Renamed to ...
14152 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
14153 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
14154 (grub_print_ucs4): Remove `static' qualifer (now used in
14156 * po/POTFILES: Add normal/main.c.
14158 2009-12-19 Carles Pina i Estany <carles@pina.cat>
14160 * normal/menu_text.c (STANDARD_MARGIN): New macro.
14161 (print_message_indented): Add `margin_left' and `margin_right'
14163 (print_message): Update `print_message_indented' calls. Adds '\n' to the
14165 (print_timeout): Use `print_message_indented' to print the message.
14166 Deletes `second_stage' parameter.
14167 (run_menu): Update `print_timeout' calls.
14169 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14171 Fix console palette on OpenFirmware.
14173 * term/ieee1275/ofconsole.c (MAX): Removed.
14174 (colors): Redone based on VGA palette.
14175 (grub_ofconsole_setcolor): Discard brightness bit since only 8
14176 colors are supported.
14177 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
14179 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14181 Fix potential EfiEmu double prepare.
14183 * efiemu/main.c (prepared): New variable
14184 (grub_efiemu_unload): Set prepare to '0'.
14185 (grub_efiemu_prepare): Return if already prepared. Set prepared.
14187 set_virtual_address_map support.
14189 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
14191 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
14193 (grub_efiemu_crc32): Likewise.
14194 (grub_efiemu_crc64): Likewise.
14195 (grub_efiemu_set_virtual_address_map): Likewise.
14196 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
14198 (grub_autoefi_set_virtual_address_map): Likewise.
14199 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
14200 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
14201 Restructure flow to accomodate it.
14202 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
14203 (grub_efiemu_crc): Recompute CRC32.
14204 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
14205 (efiemu_ptv_relocated): ... this. Made global. All users updated.
14206 * efiemu/symbols.c (relocated_handle): New variable.
14207 (grub_efiemu_free_syms): Free relocated_handle.
14208 (grub_efiemu_alloc_syms): Allocate relocated_handle.
14209 (grub_efiemu_write_sym_markers): New function.
14210 (grub_efiemu_set_virtual_address_map): Likewise.
14212 Newer XNU parameters.
14214 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
14215 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
14216 (grub_xnu_fill_devicetree): New prototype.
14217 (grub_xnu_heap_real_start): New variable.
14218 * loader/xnu.c (get_name_ptr): New function.
14219 (grub_xnu_load_driver): Fill namelen and name.
14221 64-bit xnu support.
14223 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
14224 and 'loader/macho64.c'.
14225 * conf/i386-pc.rmk: Likewise.
14226 * conf/x86_64-efi.rmk: Likewise.
14227 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
14228 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
14229 * include/grub/macho.h (grub_macho_segment64): New structure.
14230 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
14231 (grub_macho_size32): ... to this.
14232 (grub_macho32_get_entry_point): Renamed from ...
14233 (grub_macho_get_entry_point32): ... to this.
14234 (grub_macho_contains_macho64): New prototype.
14235 (grub_macho_size64): Likewise.
14236 (grub_macho_get_entry_point64): Likewise.
14237 (grub_macho32_load): Renamed from ...
14238 (grub_macho_load32): ... to this.
14239 (grub_macho32_filesize): Renamed from ...
14240 (grub_macho_filesize32): ... to this.
14241 (grub_macho32_readfile): Renamed from ...
14242 (grub_macho_readfile32): ... to this.
14243 (grub_macho_filesize64): New prototype.
14244 (grub_macho_readfile64): Likewise.
14245 (grub_macho_parse32): Likewise.
14246 (grub_macho_parse64): Likewise.
14247 * loader/macho.c: Split into ...
14248 * loader/machoXX.c: ... and this. Replace 32 with XX.
14249 * loader/macho32.c: New file.
14250 * loader/macho64.c: Likewise.
14251 * loader/xnu.c (grub_xnu_is_64bit): New variable.
14252 (grub_cmd_xnu_kernel): Make 32-bit only.
14253 (grub_cmd_xnu_kernel64): New function.
14254 (grub_xnu_load_driver): Support Mach-O 64.
14255 (grub_cmd_xnu_mkext): Likewise.
14256 * util/grub.d/30_os-prober.in (osx_entry): New function.
14257 Generate entries for 64-bit boot too.
14259 Eliminate ad-hoc tree format in XNU and EfiEmu.
14261 * efiemu/main.c (grub_efiemu_prepare): Update comment.
14262 * efiemu/pnvram.c: Rewritten to use environment variables.
14265 Inline utf16_to_utf8.
14267 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
14268 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
14270 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
14272 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
14273 * commands/usbtest.c (grub_usb_get_string): ... move here.
14274 (usb_print_str): Fix error handling.
14275 * include/grub/usb.h (grub_usb_get_string): Remove.
14277 UTF-8 to UTF-16 transformation.
14279 * conf/common.rmk (pkglib_MODULES): Add charset.mod
14280 (charset_mod_SOURCES): New variable.
14281 (charset_mod_CFLAGS): Likewise.
14282 (charset_mod_LDFLAGS): Likewise.
14283 * include/grub/utf.h: New file.
14284 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
14286 Support for device properties.
14288 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
14289 (grub_xnu_devprop_device_header): Likewise.
14290 (grub_xnu_devprop_device_descriptor): Likewise.
14291 (grub_xnu_devprop_add_device): New prototype.
14292 (grub_xnu_devprop_remove_device): Likewise.
14293 (grub_xnu_devprop_remove_property): Likewise.
14294 (grub_xnu_devprop_add_property_utf8): Likewise.
14295 (grub_xnu_devprop_add_property_utf16): Likewise.
14296 (grub_cpu_xnu_init): Likewise.
14297 (grub_cpu_xnu_fini): Likewise.
14298 (grub_cpu_xnu_unload): Likewise.
14299 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
14300 (property_descriptor): Likewise.
14301 (devices): New variable.
14302 (grub_xnu_devprop_remove_property): New function.
14303 (grub_xnu_devprop_add_device): Likewise.
14304 (grub_xnu_devprop_remove_device): Likewise.
14305 (grub_xnu_devprop_add_property): Likewise.
14306 (grub_xnu_devprop_add_property_utf8): Likewise.
14307 (grub_xnu_devprop_add_property_utf16): Likewise.
14308 (hextoval): Likewise.
14309 (grub_cpu_xnu_fill_devprop): Likewise.
14310 (grub_cmd_devprop_load): Likewise.
14311 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
14312 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
14313 (cmd_devprop_load): New variable.
14314 (grub_cpu_xnu_init): New function.
14315 (grub_cpu_xnu_fini): Likewise.
14316 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
14317 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
14318 (grub_cmd_xnu_devtree): Likewise.
14319 (hextoval): New function.
14320 (unescape): Likewise.
14321 (grub_xnu_fill_devicetree): Likewise.
14323 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
14324 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
14326 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14328 Workaround for broken ATI VBE.
14330 * video/i386/pc/vbe.c (last_set_mode): New variable.
14331 (grub_vbe_set_video_mode): Set 'last_set_mode'.
14332 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
14333 (grub_video_vbe_setup): Don't check for reserved flag.
14335 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
14337 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
14338 the `find' command.
14340 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14342 UUID support for HFS.
14344 * fs/hfs.c (grub_hfs_uuid): New function.
14345 (grub_hfs_fs): New value .uuid.
14346 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
14348 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
14350 Fix a segfault with parsing unknown long options.
14352 * util/grub-mkrelpath.c (options): Zero terminate it.
14354 2009-12-13 Carles Pina i Estany <carles@pina.cat>
14356 * include/grub/misc.h (grub_puts): New declaration.
14357 (grub_puts_): Likewise.
14358 * kern/misc.c (grub_puts): New definition.
14359 (grub_puts_): Likewise.
14361 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14363 * util/grub-probe.c (probe): Improve error message.
14365 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14367 * loader/i386/multiboot_elfxx.c
14368 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
14371 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14373 Relocator framework
14375 * loader/i386/xnu_helper.S: Removed. All users updated.
14376 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
14377 (relocator_mod_SOURCES): New variable.
14378 (relocator_mod_CFLAGS): Likewise.
14379 (relocator_mod_LDFLAGS): Likewise.
14380 (relocator_mod_ASFLAGS): Likewise.
14381 * conf/x86_64.rmk: Likewise.
14382 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
14383 (grub_multiboot_payload_entry_offset): Likewise.
14384 (grub_multiboot_forward_relocator): Likewise.
14385 (grub_multiboot_forward_relocator_end): Likewise.
14386 (grub_multiboot_backward_relocator): Likewise.
14387 (grub_multiboot_backward_relocator_end): Likewise.
14388 (grub_multiboot_payload_eip): New variable.
14389 (grub_multiboot_payload_orig): Likewise.
14390 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
14391 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
14392 * include/grub/i386/memory.h
14393 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
14394 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
14395 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
14396 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
14397 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
14398 * include/grub/i386/relocator.h: New file.
14399 * include/grub/x86_64/relocator.h: Likewise.
14400 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
14401 (XNU_RELOCATOR): New macro.
14402 (grub_xnu_launcher_start): Remove.
14403 (grub_xnu_launcher_end): Likewise.
14404 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
14405 (grub_xnu_heap_real_start): Remove.
14406 (grub_xnu_heap_start): Change to void *. All users updated.
14407 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
14408 * lib/i386/relocator.c: New file.
14409 * lib/i386/relocator_asm.S: Likewise.
14410 * lib/i386/relocator_backward.S: Likewise.
14411 * lib/mips/relocator.c: Likewise.
14412 * lib/mips/relocator_asm.S: Likewise.
14413 * lib/relocator.c: Likewise.
14414 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
14416 (playground): Likewise.
14417 (grub_multiboot_payload_orig): New variable.
14418 (grub_multiboot_payload_dest): Likewise.
14419 (grub_multiboot_payload_size): Likewise.
14420 (grub_multiboot_payload_eip): Likewise.
14421 (grub_multiboot_payload_esp): Likewise.
14422 (grub_multiboot_boot): Use grub_relocator32_boot.
14423 (grub_multiboot_unload): Free relocators.
14424 (grub_multiboot): Setup stack. Use relocators.
14425 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
14426 (grub_multiboot_load_elfXX): Use relocators.
14427 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
14428 (grub_multiboot_payload_size): Likewise.
14429 (grub_multiboot_payload_dest): Likewise.
14430 (grub_multiboot_payload_entry_offset): Likewise.
14431 (grub_multiboot_forward_relocator): Likewise.
14432 (grub_multiboot_backward_relocator): Likewise.
14433 (grub_multiboot_real_boot): Likewise.
14434 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
14435 (grub_xnu_entry_point): Likewise.
14436 (grub_xnu_arg1): Likewise.
14437 (grub_xnu_stack): Likewise.
14438 (grub_xnu_launch): Removed.
14439 (grub_xnu_boot_resume): New function.
14440 (grub_xnu_boot): Use relocators.
14441 * loader/i386/xnu_helper.S: Removed.
14442 * loader/xnu.c (grub_xnu_heap_start): New variable.
14443 (grub_xnu_heap_size): Likewise.
14444 (grub_xnu_heap_malloc): Use relocators.
14445 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
14447 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14449 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
14452 2009-12-13 Carles Pina i Estany <carles@pina.cat>
14454 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
14455 GRUB_ERR_NONE before calling grub_env_set.
14457 2009-12-12 Robert Millan <rmh@aybabtu.com>
14459 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
14460 * genmk.rb (video): New variable.
14461 (CLEANFILES, VIDEOFILES): Add #{video}.
14462 (#{video}): New target rule.
14463 * genvideolist.sh: New file.
14464 * Makefile.in (pkglib_DATA): Add video.lst.
14465 (video.lst): New target rule.
14466 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
14468 * util/grub.d/30_os-prober.in: Replace `vbe' with
14469 ${GRUB_VIDEO_BACKEND}.
14471 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
14473 * THANKS: Add David Miller.
14475 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
14477 libpciaccess support.
14479 * Makefile.in (LIBPCIACCESS): New variable.
14480 (enable_grub_emu_pci): Likewise.
14481 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
14482 util/pci.c and commands/lspci.c.
14483 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
14484 * configure.ac (grub-emu-pci): New option.
14485 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
14486 (grub_pci_device_unmap_range): Likewise.
14487 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
14488 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
14489 (grub_pci_address_t) [!GRUB_UTIL]: New type.
14490 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
14491 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
14492 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
14493 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
14494 * include/grub/pciutils.h: New file.
14495 * util/pci.c: Likewise.
14497 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
14499 * util/misc.c: Don't include <errno.h> twice.
14501 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
14503 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
14504 name in an error message.
14505 (grub_biosdisk_rw): Likewise.
14507 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14509 Eliminate NTFS 4Gib barrier.
14511 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
14512 (read_run_data): Likewise.
14513 (grub_ntfs_read_run_list): Likewise.
14514 (grub_ntfs_read_block): Likewise.
14515 (grub_ntfs_iterate_dir): Likewise.
14516 (read_mft): Likewise.
14517 (read_data): Likewise.
14519 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
14520 to avoid 64-bit division
14521 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
14522 (grub_ntfs_rlst): Use grub_disk_addr_t.
14524 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14526 Eliminate grub-fstest 4Gib barrier.
14528 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
14529 (read_file): Fix error reporting.
14531 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14533 Eliminate hexdump 4Gib barrier.
14535 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
14536 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
14538 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14540 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
14543 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
14545 Remove miscellaneous files in distclean target.
14547 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
14549 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
14551 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
14552 if they're already set. This resolves the conflict between my
14553 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
14554 fixing the --grub-probe option again.
14555 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
14556 change on 2009-10-06, so that we now once again source
14557 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
14559 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
14561 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
14562 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
14563 `util/devicemap.c'.
14565 2009-12-08 Carles Pina i Estany <carles@pina.cat>
14567 * include/grub/misc.h (grub_printf_): New declaration.
14568 * kern/misc.c (grub_printf_): New definition.
14569 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
14570 instead of `grub_printf' and `_'.
14571 * normal/menu_entry.c (store_completion): Likewise.
14573 (grub_menu_entry_run): Likewise.
14574 * normal/menu_text.c (grub_wait_after_message): Likewise.
14575 (notify_booting): Likewise.
14576 (notify_fallback): Likewise.
14577 (notify_execution_failure): Likewise.
14579 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
14581 * configure.ac: Check for vasprintf.
14582 * util/misc.c (asprintf): Move allocation from here ...
14583 (vasprintf): ... to here. New function.
14584 (xasprintf): New function.
14585 * include/grub/util/misc.h (vasprintf, xasprintf): Add
14587 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14588 * util/grub-mkfont.c (write_font): Likewise.
14589 * util/grub-probe.c (probe): Likewise.
14590 * util/hostdisk.c (make_device_name): Likewise.
14592 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
14594 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
14595 anything even prefixed with 'cdrom' as a cdrom.
14597 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
14599 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
14602 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14604 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
14605 grub_gettext_msg_list.
14606 (grub_gettext_gettranslation_from_position): Return const char *
14608 (grub_gettext_translate): Add the translated strings into a list,
14609 returns from the list if existing there.
14610 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
14611 (grub_gettext_delete_list): Delete the list.
14612 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
14613 lang environment variable is changed.
14614 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
14616 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14618 Rename kernel.mod to kernel.img.
14620 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
14621 (kernel_mod_EXPORTS): Rename to ...
14622 (kernel_img_EXPORTS): ... this.
14623 (kernel_mod_SOURCES): Rename to ...
14624 (kernel_img_SOURCES): ... this.
14625 (kernel_mod_HEADERS): Rename to ...
14626 (kernel_img_HEADERS): ... this. All users updated.
14627 (kernel_mod_CFLAGS): Rename to ...
14628 (kernel_img_CFLAGS): ... this.
14629 (kernel_mod_ASFLAGS): Rename to ...
14630 (kernel_img_ASFLAGS): ... this.
14631 (kernel_mod_LDFLAGS): Rename to ...
14632 (kernel_img_LDFLAGS): ... this.
14633 * conf/x86_64-efi.rmk: Likewise.
14634 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
14635 (read_kernel_image): ... this. All users updated.
14636 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
14638 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14640 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
14641 (print_spaces): New function.
14642 (grub_print_ucs4): New function.
14643 (getstringwidth): New function.
14644 (print_message_indented): New function.
14645 (print_message): Gettexttize strings using print_message_indented.
14646 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
14648 (get_entry_number): Gettextize and uses dynamic terminal width.
14649 (notify_booting, notify_fallback, notify_execution_failure):
14651 * normal/menu_entry.c (store_completion): Cleanup the gettextized
14654 (grub_menu_entry_run): Likewise.
14655 * PO/POTFILES: Add normal/menu_entry.c.
14657 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14659 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
14661 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14663 * util/grub-install.in: Install gettext .mo files.
14664 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
14666 2009-12-05 Carles Pina i Estany <carles@pina.cat>
14668 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
14671 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
14673 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
14674 non-firmware-dependant one in realmode.S takes precedence.
14676 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
14678 * commands/halt.c: Replace misc arch-specific headers with
14680 * commands/reboot.c: Likewise.
14681 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
14683 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
14684 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
14685 (kernel_img_SOURCES): ... to here.
14687 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
14688 * include/grub/i386/pc/init.h: Likewise.
14689 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14690 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14692 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
14694 * include/grub/i386/halt.h: Remove.
14695 * include/grub/i386/reboot.h: Likewise.
14697 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
14699 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
14701 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
14702 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
14703 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
14705 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
14706 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14707 (usage): Add missing comma in printf.
14709 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
14711 Use the same reboot approach on i386 coreboot and qemu as we do on
14714 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
14715 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
14716 * kern/i386/reboot.c: Remove.
14717 * include/grub/i386/reboot.h (grub_reboot): Export function.
14718 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
14719 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
14720 0xf000:0xfff0 instead of 0xffff:0x0000.
14721 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
14722 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
14724 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
14726 Fix $srcdir != $objdir build.
14728 * Makefile.in (po/%.po): Rewrite as ...
14729 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
14731 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
14733 Fix GNU/Hurd grub-install crash.
14734 * util/grub-probe.c (probe): Try to access `path' only when it is not
14737 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14739 Correct module naming.
14741 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14742 (GRUB_MOD_INIT(efi_uga)): ... to this
14743 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14744 (GRUB_MOD_FINI(efi_uga)): ... to this
14745 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14746 (GRUB_MOD_INIT(efi_gop)): ... to this
14747 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14748 (GRUB_MOD_FINI(efi_gop)): ... to this
14750 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
14752 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
14754 (usage): Translate `arg' strings using gettext().
14755 Thanks to Jordi Mallach for the suggestion.
14757 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14759 GOP support. Based on patch from Bean
14760 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
14762 * video/efi_gop.c: New file.
14763 * include/grub/efi/graphics_output.h: Likewise.
14764 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
14765 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
14767 * conf/x86_64-efi.rmk: Likewise.
14769 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14771 Rename efi_fb to efi_uga.
14773 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
14775 (efi_fb_mod_SOURCES): Rename this ...
14776 (efi_uga_mod_SOURCES): ... to this.
14777 (efi_fb_mod_CFLAGS): Rename this ...
14778 (efi_uga_mod_CFLAGS): ... to this.
14779 (efi_fb_mod_LDFLAGS): Rename this ...
14780 (efi_uga_mod_LDFLAGS): ... to this.
14781 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
14783 (efi_fb_mod_SOURCES): Rename this ...
14784 (efi_uga_mod_SOURCES): ... to this.
14785 (efi_fb_mod_CFLAGS): Rename this ...
14786 (efi_uga_mod_CFLAGS): ... to this.
14787 (efi_fb_mod_LDFLAGS): Rename this ...
14788 (efi_uga_mod_LDFLAGS): ... to this.
14789 * video/efi_fb.c: Move this ...
14790 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
14792 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14794 * po/README: New file. Explain our PO file workflow.
14796 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14798 * po/ChangeLog: Remove. Move relevant entries back to ...
14799 * ChangeLog: ... here.
14800 * po/ca.po: Remove (now handled by TLP).
14801 * po/id.po: Likewise.
14802 * po/zh_CN.po: Likewise.
14803 * Makefile.in (LINGUAS): Initialize in a way that supports
14806 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14808 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
14809 reliing on po/LINGUAS.
14810 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
14811 (po/%.po): ... this.
14813 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14815 * util/i386/efi/grub-mkimage.c: Include "progname.h".
14816 (main): Use `program_name' instead of nonexistent `progname'.
14818 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14820 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
14821 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
14823 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
14825 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
14827 * conf/i386-efi.rmk: Likewise.
14828 * conf/i386-ieee1275.rmk: Likewise.
14829 * conf/powerpc-ieee1275.rmk: Likewise.
14830 * conf/sparc64-ieee1275.rmk: Likewise.
14831 * conf/x86_64-efi.rmk: Likewise.
14833 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14835 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
14837 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
14839 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
14841 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
14843 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
14844 (grub_mkdevicemap_SOURCES): New variable.
14845 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
14846 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
14847 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
14848 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
14849 (grub_mkdevicemap_SOURCES): Remove.
14850 * conf/i386-efi.rmk: Likewise.
14851 * conf/i386-ieee1275.rmk: Likewise.
14852 * conf/i386-pc.rmk: Likewise.
14853 * conf/powerpc-ieee1275.rmk: Likewise.
14854 * conf/sparc64-ieee1275.rmk: Likewise.
14855 * conf/x86_64-efi.rmk: Likewise.
14856 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
14857 (usage): Fix strings to use `program_name'.
14858 (main): Initialize gettext.
14859 * util/grub-editenv.c: Likewise.
14860 * util/grub-emu.c: Likewise.
14861 * util/grub-fstest.c: Likewise.
14862 * util/grub-mkdevicemap.c: Likewise.
14863 * util/grub-mkfont.c: Likewise.
14864 * util/grub-mkrelpath.c: Likewise.
14865 * util/grub-pe2elf.c: Likewise.
14866 * util/grub-probe.c: Likewise.
14867 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
14868 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
14869 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14871 * util/misc.c: Include `"progname.h"'.
14872 (progname): Remove variable.
14873 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
14875 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
14877 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
14878 printf and print a newline after the menuentry header line.
14879 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14881 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
14883 autoconf >= 2.60 support $(localedir).
14885 * INSTALL: Note that autoconf 2.60 is required.
14886 * configure.ac (AC_PREREQ): Bump to 2.60.
14887 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
14888 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14890 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
14892 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
14895 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
14897 * normal/main.c (grub_normal_read_line): Fix off-by-one
14900 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
14902 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
14903 "parser.grub" in grub_command_execute() call.
14905 2009-11-24 Carles Pina i Estany <carles@pina.cat>
14907 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
14908 * conf/i386-efi.rmk: Likewise.
14909 * conf/i386-ieee1275.rmk: Likewise.
14910 * conf/i386-pc.rmk: Likewise.
14911 * conf/powerpc-ieee1275.rmk: Likewise.
14912 * conf/sparc64-ieee1275.rmk: Likewise.
14913 * conf/x86_64-efi.rmk: Likewise.
14914 * gettext/gettex.c: Include <grub/i18n.h>.
14915 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
14917 * include/grub/i18n.h: ... to here
14918 * include/grub/i18n.h: ... to here.
14919 * kern/misc.c: Include <grub/i18n.h>
14920 (grub_gettext_dummy): Move above user.
14922 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14924 * util/Makefile.in (install-local): Convert a `for' into a normal
14927 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
14929 * autogen.sh: Add automake call.
14930 * config.guess: Remove.
14931 * config.sub: Likewise.
14932 * install-sh: Likewise.
14934 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14936 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
14938 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14940 * util/Makefile.in (install-local): Convert a make `$(foreach)'
14941 function to a normal shell `for'.
14943 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14945 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
14947 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14949 * util/grub-mkrelpath.c: New file.
14950 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
14951 (grub_mkrelpath_SOURCES): New variable.
14952 * include/grub/util/misc.h: New function prototype.
14953 * util/misc.c (make_system_path_relative_to_its_root): New function.
14955 * util/grub-mkconfig_lib.in (bindir): New variable.
14956 (grub_mkrelpath): Likewise.
14957 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
14959 * util/probe.c (probe): Make the file path relative to its root.
14960 Change a info message to use the GRUB path. Enable again the
14961 check if we can read the file with GRUB facilities.
14963 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
14966 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14968 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
14971 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14973 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
14976 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
14978 * util/getroot.c (grub_util_is_dmraid): New function.
14979 (grub_util_get_dev_abstraction): Treat dmraid and multipath
14980 devices as normal ones, not as LVM.
14982 2009-11-23 Carles Pina i Estany <carles@pina.cat>
14984 * conf/common.rmk: Add grub-gettext_lib target and updates
14985 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
14987 * gettext/gettext.c: New file. (Reads mo files).
14988 * include/grub/file.h (grub_file_pread): New prototype.
14989 * include/grub/i18n.h (_): New prototype.
14990 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
14992 * kern/misc.c (grub_gettext_dummy): New function.
14993 * normal/menu_text.c: Include <grub/i18n.h>.
14994 * normal/menu_text.c (print_timeout): Gettexttize string.
14995 * normal/menu_text.c (print_message): Gettexttize string.
14996 * po/POTFILES: Add `normal/menu_text.c'.
14997 * po/ca.po: Add new translations.
14998 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
14999 gettext module and defines locale_dir and lang in grub.cfg.
15000 * NEWS: Add gettext support.
15002 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15004 * util/hostdisk.c: Include `<grub/i18n.h>'.
15005 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
15006 (make_device_name): Rewrite using asprintf.
15007 (convert_system_partition_to_system_disk): Replace 0 with NULL.
15008 (find_system_device): If a device is not found, generate one just
15009 by reusing the OS path name.
15010 (read_device_map): Make it permissible for device.map not to exist.
15012 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15014 * script/sh/execute.c: Move from here ...
15015 * script/execute.c: ... to here. Update all users.
15016 * script/sh/function.c: Move from here ...
15017 * script/function.c: ... to here. Update all users.
15018 * script/sh/lexer.c: Move from here ...
15019 * script/lexer.c: ... to here. Update all users.
15020 * script/sh/main.c: Move from here ...
15021 * script/main.c: ... to here. Update all users.
15022 * script/sh/parser.y: Move from here ...
15023 * script/parser.y: ... to here. Update all users.
15024 * script/sh/script.c: Move from here ...
15025 * script/script.c: ... to here. Update all users.
15027 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15029 * configure.ac: Detect all `emu' platforms. Define
15030 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
15031 --enable-grub-emu logic. Disable include/grub/machine
15032 symlink on `emu' platforms.
15034 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
15035 * gensymlist.sh.in: Likewise.
15037 * include/grub/i386/coreboot/machine.h: Remove file.
15038 * include/grub/i386/efi/machine.h: Likewise.
15039 * include/grub/i386/ieee1275/machine.h: Likewise.
15040 * include/grub/i386/pc/machine.h: Likewise.
15041 * include/grub/i386/qemu/machine.h: Likewise.
15042 * include/grub/powerpc/ieee1275/machine.h: Likewise.
15043 * include/grub/sparc64/ieee1275/machine.h: Likewise.
15044 * include/grub/x86_64/efi/machine.h: Likewise.
15046 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
15047 * commands/halt.c: Likewise.
15048 * commands/reboot.c: Likewise.
15049 * include/grub/autoefi.h: Likewise.
15050 * include/grub/i386/at_keyboard.h: Likewise.
15051 * include/grub/i386/kernel.h: Likewise.
15052 * include/grub/i386/loader.h: Likewise.
15053 * include/grub/i386/pc/memory.h: Likewise.
15054 * kern/dl.c: Likewise.
15055 * kern/i386/coreboot/init.c: Likewise.
15056 * loader/i386/bsd.c: Likewise.
15057 * loader/i386/linux.c: Likewise.
15058 * loader/multiboot_loader.c: Likewise.
15059 * term/i386/pc/serial.c: Likewise.
15060 * term/usb_keyboard.c: Likewise.
15062 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
15063 `<grub/machine/machine.h>'
15064 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
15065 * util/misc.c: Remove `<grub/machine/machine.h>' and
15066 `<grub/machine/time.h>'.
15068 * Makefile.in (enable_grub_emu): Remove variable.
15069 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
15071 * conf/any-emu.rmk: New file.
15072 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
15073 (grub_emu_init.c): Move from here ...
15074 * conf/any-emu.rmk: ... to here.
15076 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
15077 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
15078 * conf/any-emu.rmk: ... to here.
15080 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15082 * include/grub/parser.h (grub_parser_register): Document need
15083 of `name' parameter.
15084 * normal/main.c (grub_normal_read_line): Simplify prompt string.
15085 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
15088 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15090 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
15092 * include/grub/i18n.h (N_): New macro.
15093 * util/mkisofs/mkisofs.h: Likewise.
15094 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
15096 (usage): Use gettext() to translate help strings when printing them.
15098 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15100 Based on patch from Bean
15101 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15103 * video/efi_fb.c: New file.
15104 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
15105 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15107 * conf/x86_64-efi.rmk: Likewise.
15109 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
15111 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
15112 * util/i386/pc/grub-setup.c: Likewise.
15114 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15116 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
15118 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
15119 file_get_storage_info to implement grub_guess_root_device.
15121 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15123 * Makefile.in (target): Use make's builtin $(shell) function
15124 instead of calling directly $(SHELL) to create the locale directories,
15125 inside the $(foreach) function.
15127 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15129 * util/grub-mkrescue.in: Print an error and usage if output option
15130 has not been given.
15132 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
15134 Patch from Loïc Minier <loic.minier@ubuntu.com>.
15135 * util/grub.d/30_os-prober.in: Cope with Linux entries where
15136 root and /boot are on different devices.
15138 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15140 Fix build for srcdir != objdir.
15142 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
15143 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
15145 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
15146 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
15147 reference for input.
15149 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15151 * util/grub-mkrescue.in: Use source directory direcly (without copiing
15152 or hardlinking it). Remove -J option, Joliet is not compatible with
15153 multiple source directories.
15155 2009-11-21 Carles Pina i Estany <carles@pina.cat>
15156 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15158 * util/grub-mkrescue.in: Recognize `--override-directory' option.
15159 (process_input_dir): New function. Process an arbitrary input
15161 Misc adjustments to support both "override mode" and system-wide mode.
15163 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15165 * configure.ac (UNIFONT_BDF): Rename to ...
15166 (FONT_SOURCE): ... this. Update all users.
15168 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
15170 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
15171 to the list of unifont files to look for.
15173 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15175 Patch from Joe Auricchio <jauricchio@gmail.com>
15176 * commands/minicmd.c (grub_mini_cmd_clear): New function.
15177 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
15178 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
15180 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15182 * Makefile.in (install-local): Add a missing backslash.
15184 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
15186 * include/grub/x86_64/io.h: New file.
15188 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15190 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
15191 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
15192 Include `"progname.h"'.
15193 (main): Initialize gettext.
15194 * util/i386/pc/grub-setup.c: Gettexttize.
15195 * util/i386/pc/grub-mkimage.c: Likewise.
15197 * Makefile.in (po/*.po): Redefine as ...
15198 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
15200 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
15202 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15204 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
15205 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
15206 (program_name): Remove.
15207 (main): Initialize gettext support.
15208 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
15209 Include `<libintl.h>'.
15212 * util/mkisofs/eltorito.c: Gettexttize.
15213 * util/mkisofs/joliet.c: Likewise.
15214 * util/mkisofs/mkisofs.c: Likewise.
15215 * util/mkisofs/multi.c: Likewise.
15216 * util/mkisofs/rock.c: Likewise.
15217 * util/mkisofs/tree.c: Likewise.
15218 * util/mkisofs/write.c: Likewise.
15220 * po/POTFILES: Update with new files.
15222 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15224 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
15225 * util/mkisofs/iso9660.h: Likewise.
15226 * util/mkisofs/joliet.c: Likewise.
15227 * util/mkisofs/mkisofs.c: Likewise.
15228 * util/mkisofs/mkisofs.h: Likewise.
15229 * util/mkisofs/rock.c: Likewise.
15230 * util/mkisofs/tree.c: Likewise.
15231 * util/mkisofs/write.c: Likewise.
15233 * util/mkisofs/eltorito.c (rcsid): Remove.
15234 * util/mkisofs/hash.c: Likewise.
15235 * util/mkisofs/joliet.c: Likewise.
15236 * util/mkisofs/name.c: Likewise.
15237 * util/mkisofs/rock.c: Likewise.
15238 * util/mkisofs/tree.c: Likewise.
15239 * util/mkisofs/write.c: Likewise.
15241 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15243 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
15244 instead of static allocation.
15245 * util/mkisofs/match.h: Likewise.
15247 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15249 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
15250 and `util/grub.d/10_linux.in'.
15251 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
15252 translatable Shell files.
15254 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15256 * Makefile.in ($(srcdir)/aclocal.m4): New target.
15258 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15260 * INSTALL: Document Automake is needed for bootstrap.
15261 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
15262 * util/grub.d/10_kfreebsd.in (bindir): New variable.
15263 Add gettext initialization.
15264 (kfreebsd_entry): Make menuentry output translatable.
15266 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15268 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
15269 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
15270 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
15271 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
15272 (LINGUAS): Auto-generate using `po/LINGUAS'.
15273 * po/LINGUAS: New file.
15275 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15277 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
15279 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
15280 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
15281 bindtextdomain() calls for gettext initialization.
15283 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15285 * gnulib/progname.c: New file (imported from Gnulib).
15286 * gnulib/progname.h: Likewise.
15287 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15288 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
15289 (usage): Replace `progname' with `program_name'.
15290 (main): Use set_program_name() for program name initialization.
15292 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15294 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
15296 * Makefile.in (CPPFLAGS): ... to here.
15298 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15300 * aclocal.m4: Move from here ...
15301 * acinclude.m4: ... to here.
15302 * autogen.sh: Add call to `aclocal'.
15303 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
15305 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15307 * Makefile.in (CLEANFILES): Add `po/*.mo'.
15308 (LINGUAS): New variable.
15309 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
15310 (install-local): Install MO files.
15311 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
15312 * include/grub/i18n.h: New file.
15313 * po/POTFILES: New file.
15314 * po/ca.po: New file.
15315 * util/grub.d/10_linux.in (bindir): New variable.
15316 Add gettext initialization.
15317 (linux_entry): Make menuentry output translatable.
15318 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
15319 (usage): Make --help output translatable.
15320 (main): Initialize gettext.
15322 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15324 * import_gcry.py: New file (written by Vladimir with minor
15326 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
15328 * INSTALL: Document that Python is required for bootstrap.
15330 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15332 Import ciphers from libgcrypt 1.4.4.
15334 * lib/libgcrypt/cipher/ChangeLog
15335 * lib/libgcrypt/cipher/ac.c
15336 * lib/libgcrypt/cipher/arcfour.c
15337 * lib/libgcrypt/cipher/bithelp.h
15338 * lib/libgcrypt/cipher/blowfish.c
15339 * lib/libgcrypt/cipher/camellia-glue.c
15340 * lib/libgcrypt/cipher/camellia.c
15341 * lib/libgcrypt/cipher/camellia.h
15342 * lib/libgcrypt/cipher/cast5.c
15343 * lib/libgcrypt/cipher/cipher.c
15344 * lib/libgcrypt/cipher/crc.c
15345 * lib/libgcrypt/cipher/des.c
15346 * lib/libgcrypt/cipher/dsa.c
15347 * lib/libgcrypt/cipher/ecc.c
15348 * lib/libgcrypt/cipher/elgamal.c
15349 * lib/libgcrypt/cipher/hash-common.c
15350 * lib/libgcrypt/cipher/hash-common.h
15351 * lib/libgcrypt/cipher/hmac-tests.c
15352 * lib/libgcrypt/cipher/md.c
15353 * lib/libgcrypt/cipher/md4.c
15354 * lib/libgcrypt/cipher/md5.c
15355 * lib/libgcrypt/cipher/primegen.c
15356 * lib/libgcrypt/cipher/pubkey.c
15357 * lib/libgcrypt/cipher/rfc2268.c
15358 * lib/libgcrypt/cipher/rijndael-tables.h
15359 * lib/libgcrypt/cipher/rijndael.c
15360 * lib/libgcrypt/cipher/rmd.h
15361 * lib/libgcrypt/cipher/rmd160.c
15362 * lib/libgcrypt/cipher/rsa.c
15363 * lib/libgcrypt/cipher/seed.c
15364 * lib/libgcrypt/cipher/serpent.c
15365 * lib/libgcrypt/cipher/sha1.c
15366 * lib/libgcrypt/cipher/sha256.c
15367 * lib/libgcrypt/cipher/sha512.c
15368 * lib/libgcrypt/cipher/tiger.c
15369 * lib/libgcrypt/cipher/twofish.c
15370 * lib/libgcrypt/cipher/whirlpool.c
15372 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15374 Fix build for systems without error().
15376 * gnulib/error.c: New file (imported from Gnulib).
15377 * gnulib/error.h: Likewise.
15378 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
15379 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
15380 (this variable is now used by error()).
15382 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
15384 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
15385 instead of relying that char is signed.
15387 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15389 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
15390 blocksize different from specified.
15391 (grub_pxefs_read): Likewise.
15393 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
15395 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
15397 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
15398 (grub_ata_readwrite): Likewise. Update 2 format strings.
15399 (grub_atapi_read): Likewise.
15401 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
15402 * conf/i386.rmk (pkglib_MODULES): ... to here ...
15403 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
15404 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
15405 (ata_mod_LDFLAGS): Move from here ...
15406 * conf/i386.rmk: ... to here ...
15407 * conf/x86_64-efi.rmk: ... and here.
15408 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
15409 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
15411 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15413 Relicense multiboot.h, with RMS' blessing.
15415 * include/multiboot.h: Change to X11 license.
15417 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
15419 Support --version in grub-mkisofs.
15421 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
15422 (OPTION_VERSION): New macro.
15423 (ld_options): Recognize --version.
15424 (usage): Move `program_name' from here ...
15425 (program_name): ... to here. Add `static' qualifier.
15426 (main): Recognize `OPTION_VERSION'.
15428 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
15430 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
15431 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
15433 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15435 Fix help2man generation for mkisofs.
15437 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
15438 (usage): Send output to stdout (rather than stderr).
15440 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15442 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
15443 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15444 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
15445 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15446 (bin_SCRIPTS): Add `grub-mkfloppy'.
15447 (grub_mkfloppy_SOURCES): New variable.
15449 * util/grub-mkrescue.in: New file.
15450 * util/i386/pc/grub-mkfloppy.in: New file.
15452 * util/i386/coreboot/grub-mkrescue.in: Remove.
15453 * util/i386/pc/grub-mkrescue.in: Remove.
15455 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15457 * include/grub/multiboot.h (struct grub_multiboot_header): Move
15459 * include/multiboot.h (struct multiboot_header): ... to here. Update
15461 * include/grub/multiboot.h (struct grub_multiboot_info): Move
15463 * include/multiboot.h (struct multiboot_info): ... to here. Update
15465 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
15467 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
15469 * include/grub/multiboot.h (struct grub_mod_list): Move
15471 * include/multiboot.h (struct multiboot_mod_list): ... to here.
15474 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15476 * include/multiboot2.h (multiboot_word): Rename from this ...
15477 (multiboot2_word): ... to this. Update all users.
15478 (multiboot_header): Rename from this ...
15479 (multiboot2_header): ... to this. Update all users.
15480 (multiboot_tag_header): Rename from this ...
15481 (multiboot2_tag_header): ... to this. Update all users.
15482 (multiboot_tag_start): Rename from this ...
15483 (multiboot2_tag_start): ... to this. Update all users.
15484 (multiboot_tag_name): Rename from this ...
15485 (multiboot2_tag_name): ... to this. Update all users.
15486 (multiboot_tag_module): Rename from this ...
15487 (multiboot2_tag_module): ... to this. Update all users.
15488 (multiboot_tag_memory): Rename from this ...
15489 (multiboot2_tag_memory): ... to this. Update all users.
15490 (multiboot_tag_unused): Rename from this ...
15491 (multiboot2_tag_unused): ... to this. Update all users.
15492 (multiboot_tag_end): Rename from this ...
15493 (multiboot2_tag_end): ... to this. Update all users.
15495 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15497 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
15498 this platform we should support Multiboot1 first.
15500 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15501 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
15502 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
15504 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15506 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
15507 of write calls (converting them to fwrite() if they aren't already).
15508 (get_torito_desc): Likewise.
15509 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
15511 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15513 * util/i386/pc/grub-install.in: Move from here ...
15514 * util/grub-install.in: ... to here. Update all users.
15516 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
15518 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
15520 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15522 Support for El Torito without floppy emulation.
15524 * util/mkisofs/eltorito.c: Include `<errno.h>'.
15525 (init_boot_catalog): Improve error handling.
15526 (get_torito_desc): Don't use floppy emulation unless requested by
15527 user. Patch boot information table when requested via
15528 `-boot-info-table'.
15529 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
15530 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
15531 (use_boot_info_table): New variables.
15532 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
15533 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
15534 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
15535 `--eltorito-emul-floppy'.
15536 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
15537 and `OPTION_ELTORITO_EMUL_FLOPPY'.
15538 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
15539 (use_boot_info_table, get_731): New prototypes.
15540 * util/mkisofs/write.c (get_731): New function.
15542 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
15544 Fix the generation of the man page.
15546 * util/pc/i386/grub-install.in: Source
15547 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
15549 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15551 Large file support for grub-mkisofs.
15553 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
15554 * util/mkisofs/mkisofs.c (next_extent, last_extent)
15555 (session_start): Upgrade type to `uint64_t'. Update all users.
15556 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
15557 (struct directory_entry): Upgrade type of `starting_block' and
15558 `size' to `uint64_t'. Update all users.
15559 (struct deferred): Remove unused structure.
15560 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
15562 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
15563 file is larger than `UINT32_MAX'.
15564 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
15565 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
15567 (struct deferred_write): Upgrade type of `extent' and `size' to
15568 `uint64_t'. Update all users.
15569 (last_extent_written): Upgrade type to `uint64_t'. Update all
15571 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
15572 Update all users. Upgrade type of `remain' to `int64_t' and
15573 `use' to `size_t'. Use error() to handle fread() errors.
15574 (write_files): Rely on write_one_file() rather than calling
15575 xfwrite() directly.
15577 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
15579 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
15581 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15583 * util/mkisofs/fnmatch.c: Remove.
15584 * util/mkisofs/getopt1.c: Likewise.
15585 * util/mkisofs/getopt.c: Likewise.
15586 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
15587 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
15588 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
15589 `gnulib/getopt1.c' and `gnulib/getopt.c'.
15590 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
15592 * configure.ac: Detect `mingw32msvc' host_os.
15593 Check for lstat(), getuid() and getgid().
15595 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
15596 instances of `u_char' with `uint8_t'.
15598 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
15599 [!HAVE_GETUID] (getuid): New function (stub).
15600 [!HAVE_GETGID] (getgid): Likewise.
15601 [!HAVE_LSTAT] (lstat): Likewise.
15602 [!S_IROTH] (S_IROTH): New macro (dummy).
15603 [!S_IRGRP] (S_IRGRP): Likewise.
15605 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15607 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
15608 conditional expression).
15610 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15612 Import from Gnulib.
15614 * gnulib/fnmatch.c: New file.
15615 * gnulib/fnmatch.h: Likewise.
15616 * gnulib/fnmatch_loop.c: Likewise.
15617 * gnulib/getopt.c: Likewise.
15618 * gnulib/getopt.h: Likewise.
15619 * gnulib/getopt1.c: Likewise.
15620 * gnulib/getopt_int.h: Likewise.
15621 * gnulib/gettext.h: Likewise.
15623 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15625 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
15626 * normal/handler.c (read_handler_list): Likewise.
15628 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15632 * kern/command.c (grub_register_command_prio): Use
15633 grub_zalloc() instead of explicitly zeroing data.
15634 * kern/list.c: Include `<grub/mm.h>'.
15635 (grub_named_list_find): Replace `0' with `NULL'.
15636 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
15637 (fs_module_list): Change type to `grub_named_list_t'. Update all
15639 * normal/dyncmd.c (read_command_list): Add space between function
15640 call and parenthesis.
15641 * normal/handler.c (read_handler_list): Likewise.
15643 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15645 * normal/auth.c (punishment_delay): Moved from here ...
15646 (grub_auth_strcmp): ... to here (inside function).
15648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15650 * include/grub/list.h (struct grub_named_list): Remove `const'
15651 qualifier from `name'.
15652 (struct grub_prio_list): Likewise.
15654 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15656 * normal/auth.c: Include `<grub/time.h>'.
15657 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
15659 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15661 * normal/auth.c (punishment_delay): New variable.
15662 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
15663 (grub_auth_check_authentication): Punish failed login attempts with
15664 an incremental (2^N) delay.
15666 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15668 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
15669 path with $(srcdir).
15671 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15673 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
15675 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15677 * util/i386/coreboot/grub-mkrescue.in: New file.
15678 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
15681 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
15682 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
15683 * configure.ac: Add header and function checks to satisfy grub-mkisofs
15685 * util/mkisofs/defaults.h: New file.
15686 * util/mkisofs/eltorito.c: Likewise.
15687 * util/mkisofs/exclude.h: Likewise.
15688 * util/mkisofs/fnmatch.c: Likewise.
15689 * util/mkisofs/getopt.c: Likewise.
15690 * util/mkisofs/getopt1.c: Likewise.
15691 * util/mkisofs/hash.c: Likewise.
15692 * util/mkisofs/include/fctldefs.h: Likewise.
15693 * util/mkisofs/include/mconfig.h: Likewise.
15694 * util/mkisofs/include/prototyp.h: Likewise.
15695 * util/mkisofs/include/statdefs.h: Likewise.
15696 * util/mkisofs/iso9660.h: Likewise.
15697 * util/mkisofs/joliet.c: Likewise.
15698 * util/mkisofs/match.c: Likewise.
15699 * util/mkisofs/match.h: Likewise.
15700 * util/mkisofs/mkisofs.c: Likewise.
15701 * util/mkisofs/mkisofs.h: Likewise.
15702 * util/mkisofs/multi.c: Likewise.
15703 * util/mkisofs/name.c: Likewise.
15704 * util/mkisofs/rock.c: Likewise.
15705 * util/mkisofs/tree.c: Likewise.
15706 * util/mkisofs/write.c: Likewise.
15708 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15710 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
15713 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15715 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
15716 `grub-mkimage' (and use $0 when possible).
15718 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15720 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
15721 error message for excessively large memory map.
15723 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15725 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
15728 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15730 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
15731 message for coreboot users.
15733 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
15735 Fix build with GNU gold.
15737 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
15738 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
15739 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
15741 * aclocal.m4: Likewise.
15743 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
15745 * configure.ac (AC_PREREQ): Bump to 2.59d.
15746 * INSTALL: Make it more clear when Autoconf and Ruby are
15747 needed and when to run `./autogen.sh'.
15749 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15751 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
15754 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15756 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
15758 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15760 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
15761 giving it to GNU Mach.
15763 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15765 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
15766 GNU partition number to get internal GRUB partition number.
15768 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15770 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
15771 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
15773 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
15775 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
15776 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
15779 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
15781 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
15783 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
15787 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
15788 `-isystem=$(srcdir)/include'.
15790 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
15792 * util/i386/pc/grub-install.in: Remove hint that device.map should be
15793 checked (grub-install doesn't currently rely on it).
15795 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
15799 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
15800 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
15801 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
15802 * conf/i386-ieee1275.rmk: Likewise.
15803 * conf/i386-pc.rmk: Likewise.
15804 * conf/powerpc-ieee1275.rmk: Likewise.
15805 * conf/sparc64-ieee1275.rmk: Likewise.
15806 * conf/x86_64-efi.rmk: Likewise.
15808 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15810 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
15812 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15814 * include/grub/misc.h: Stop checking for APPLE_CC.
15816 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15818 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
15819 doesn't cause an infinite call loop.
15821 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
15823 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
15826 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15828 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
15830 * Makefile.in: Likewise.
15832 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15834 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
15836 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15838 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
15840 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15842 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
15844 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15846 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
15848 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
15850 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15852 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
15853 in $(MAKEINFO) invocation. This makes it clear in output that
15854 errors are being ignored.
15856 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15858 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
15860 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
15861 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
15862 * conf/i386-ieee1275.rmk: Likewise.
15863 * conf/i386-pc.rmk: Likewise.
15864 * conf/powerpc-ieee1275.rmk: Likewise.
15865 * conf/sparc64-ieee1275.rmk: Likewise.
15866 * conf/x86_64-efi.rmk: Likewise.
15868 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
15870 * util/grub-editenv.c (main): If only a command is given, use
15871 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
15872 (usage): FILENAME is now optional and has a default.
15874 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
15876 Improve grub-mkconfig performance when there are several menu
15877 entries on a single filesystem.
15879 * util/grub.d/10_linux.in (linux_entry): Cache the output of
15880 prepare_grub_to_access_device.
15881 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
15882 * util/grub.d/30_os-prober.in: Likewise.
15884 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15886 * util/grub.d/10_freebsd.in: Remove.
15887 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
15888 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
15890 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15892 * docs/grub.cfg: Fix example usage of *BSD loaders.
15894 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15896 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
15897 grub_util_error() call.
15899 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15901 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
15902 `reserved_first_sector' member.
15903 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
15904 `reserved_first_sector' to 1.
15905 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
15906 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
15907 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
15908 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
15909 filesystems which begin at first sector.
15910 (options): New option --skip-fs-probe.
15911 (main): Handle --skip-fs-probe and pass it to setup().
15913 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15915 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
15916 (memset): Fix function prototype.
15918 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15919 2009-10-25 Vasily Averin <vvs@parallels.com>
15921 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
15922 `dirent.direntlen == 0'.
15924 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15926 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
15928 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
15930 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15932 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
15933 `__trampoline_setup' and `__ucmpdi2'.
15934 * include/grub/powerpc/libgcc.h: Only export symbols for functions
15935 that libgcc provides.
15937 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15939 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
15940 * include/grub/sparc64/libgcc.h (memset): Likewise.
15941 * include/grub/misc.h (memset, memcmp): New function prototypes.
15943 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15945 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
15947 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
15949 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
15951 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
15952 * docs/grub.cfg: Compensate for recent change in multiboot
15953 loader (since 2009-08-14 it won't pass filename to payload).
15954 * util/grub.d/10_hurd.in: Likewise.
15956 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
15958 * config.guess: Update to latest version from config git
15960 * config.sub: Likewise.
15962 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
15964 Fix build on sparc64.
15966 * configure.ac: Perform checks for libgcc symbols before
15967 adding `-nostdlib' to LDFLAGS.
15969 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15971 Let user specify OpenBSD root device.
15973 * loader/i386/bsd.c (openbsd_root): New variable.
15974 (openbsd_opts): New option 'root'.
15975 (OPENBSD_ROOT_ARG): New macro.
15976 (grub_openbsd_boot): Use 'openbsd_root'.
15977 (grub_cmd_openbsd): Fill 'openbsd_root'.
15979 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
15981 * NEWS: Misc adjustments.
15983 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15985 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
15987 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
15989 * configure.ac: Bump version to 1.97.
15991 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
15993 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
15994 -mno-3dnow on x86 architectures. Some toolchains enable these
15995 features by default, but they rely on registers that aren't enabled
15996 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
15998 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
16000 Make entry text a bit more readable.
16002 * util/grub.d/10_linux.in: Add `with' before `Linux'.
16004 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16006 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
16008 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16010 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
16013 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16015 * configure.ac: Add missing dollar.
16017 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16019 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
16021 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
16022 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
16024 * include/grub/sparc64/libgcc.h: Likewise. Use
16025 preprocessor conditionals.
16027 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16029 * conf/common.rmk (grub-dumpbios): Remove rule.
16030 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
16031 * util/grub-dumpbios.in: Remove file.
16033 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16035 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
16036 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
16038 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
16039 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
16042 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
16043 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
16044 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
16045 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
16048 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
16050 * term/tparm.c: Switch to GPLv3.
16052 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16054 * include/grub/i386/cpuid.h: Add header protection.
16056 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16058 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
16060 * include/grub/i386/cpuid.h: New file.
16061 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
16062 (has_longmode): Rename to ...
16063 (grub_cpuid_has_longmode): ... this. Update all users. Remove
16064 `static' attribute.
16065 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
16066 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
16067 on a CPU that doesn't implement AMD64 instruction set.
16069 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16071 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
16072 that version.texi is rebuilt on version number changes.
16074 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16076 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
16079 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
16081 * util/i386/pc/grub-install.in: Source
16082 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
16083 that the --grub-probe option will work.
16084 * util/sparc64/ieee1275/grub-install.in: Likewise.
16086 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
16088 * configure.ac: Bump version to 1.97~beta4.
16090 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
16092 Resync grub-mkdevicemap in x86_64-efi.
16094 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
16095 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
16096 `util/devicemap.c'.
16098 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
16100 * util/grub-editenv.c (create_envblk_file): Write new block with a
16101 .new suffix and then rename it into place, to ensure atomic
16104 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
16106 Do not automatically install headers.
16108 * Makefile.in (include_DATA): Remove. Update all users.
16110 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
16112 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
16113 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
16115 * util/osdetect.lua: Remove.
16116 * script/lua/lauxlib.c: Likewise.
16117 * script/lua/ldebug.c: Likewise.
16118 * script/lua/grub_main.c: Likewise.
16119 * script/lua/lauxlib.h: Likewise.
16120 * script/lua/ldebug.h: Likewise.
16121 * script/lua/ltablib.c: Likewise.
16122 * script/lua/liolib.c: Likewise.
16123 * script/lua/lstrlib.c: Likewise.
16124 * script/lua/lualib.h: Likewise.
16125 * script/lua/ldo.c: Likewise.
16126 * script/lua/ldump.c: Likewise.
16127 * script/lua/ldo.h: Likewise.
16128 * script/lua/loslib.c: Likewise.
16129 * script/lua/lundump.c: Likewise.
16130 * script/lua/grub_lib.c: Likewise.
16131 * script/lua/ldblib.c: Likewise.
16132 * script/lua/lundump.h: Likewise.
16133 * script/lua/lmem.c: Likewise.
16134 * script/lua/grub_lib.h: Likewise.
16135 * script/lua/lmathlib.c: Likewise.
16136 * script/lua/lstate.c: Likewise.
16137 * script/lua/ltm.c: Likewise.
16138 * script/lua/lvm.c: Likewise.
16139 * script/lua/lmem.h: Likewise.
16140 * script/lua/lstate.h: Likewise.
16141 * script/lua/ltm.h: Likewise.
16142 * script/lua/ltable.c: Likewise.
16143 * script/lua/lvm.h: Likewise.
16144 * script/lua/llex.c: Likewise.
16145 * script/lua/lgc.c: Likewise.
16146 * script/lua/grub_lua.h: Likewise.
16147 * script/lua/loadlib.c: Likewise.
16148 * script/lua/lfunc.c: Likewise.
16149 * script/lua/lopcodes.c: Likewise.
16150 * script/lua/lparser.c: Likewise.
16151 * script/lua/ltable.h: Likewise.
16152 * script/lua/llex.h: Likewise.
16153 * script/lua/lgc.h: Likewise.
16154 * script/lua/lfunc.h: Likewise.
16155 * script/lua/lbaselib.c: Likewise.
16156 * script/lua/lopcodes.h: Likewise.
16157 * script/lua/lparser.h: Likewise.
16158 * script/lua/lzio.c: Likewise.
16159 * script/lua/linit.c: Likewise.
16160 * script/lua/lobject.c: Likewise.
16161 * script/lua/llimits.h: Likewise.
16162 * script/lua/lstring.c: Likewise.
16163 * script/lua/lzio.h: Likewise.
16164 * script/lua/lapi.c: Likewise.
16165 * script/lua/lcode.c: Likewise.
16166 * script/lua/lua.h: Likewise.
16167 * script/lua/lobject.h: Likewise.
16168 * script/lua/lstring.h: Likewise.
16169 * script/lua/lapi.h: Likewise.
16170 * script/lua/lcode.h: Likewise.
16171 * script/lua/luaconf.h: Likewise.
16173 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
16175 * docs/grub.texi (Command-line and menu entry commands): Document
16176 date and echo commands.
16178 2009-09-24 Pavel Roskin <proski@gnu.org>
16180 * include/grub/kernel.h (struct grub_module_header): Remove
16181 `grub_module_header_types'. Make `type' unsigned. Make `size'
16182 32-bit on all platforms.
16183 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
16184 8-bit field. Use grub_host_to_target32() for `size'.
16185 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
16186 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
16187 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
16189 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16191 Fix "lost keypress" bug in at_keyboard.
16193 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
16194 Checks for readyness of input buffer (without flushing it).
16195 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
16196 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
16198 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16200 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
16201 size check within GRUB_MACHINE_PCBIOS section.
16203 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16205 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
16207 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
16208 KEYBOARD_ISREADY check.
16209 (grub_at_keyboard_checkkey): Rename to ...
16210 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
16211 Remove gratuitous cast.
16213 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
16215 * configure.ac: Call AC_PROG_MKDIR_P.
16216 * Makefile.in (docs/stamp-vti): Create docs directory. Create
16217 version.texi in $(builddir) rather than $(srcdir).
16218 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
16219 to makeinfo's @include search path.
16221 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16223 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
16225 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
16227 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
16230 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
16232 Build info documentation. Some code borrowed from Automake.
16234 * configure.ac: Check for makeinfo.
16235 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
16236 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
16238 (MOSTLYCLEANFILES): Add vti.tmp.
16239 (docs/version.texi, docs/stamp-vti): Update automatically.
16240 (docs/grub.info): Build info documentation. Use --force and ignore
16242 (all-local): Add $(INFOS).
16243 (install-local): Install info files.
16244 (uninstall): Uninstall info files.
16245 * docs/version.texi: Remove from revision control. This file is
16246 automatically generated on build now.
16247 * gendistlist.sh: Add `*.info'.
16249 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16251 * kern/term.c: Fix indentation.
16253 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
16255 * util/hostdisk.c: Fix a comment.
16257 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
16259 Fix regression introduced in r2539.
16261 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
16264 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
16266 * util/grub.d/30_os-prober.in: Don't throw away stderr from
16267 os-prober. Under normal operation, it does not print anything to
16268 stderr; if it does, we need to debug it, and throwing away stderr
16269 makes that excessively difficult.
16271 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
16273 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
16275 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16277 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
16278 AC_LANG_PROGRAM from autoconf.
16279 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
16280 prototypes (fixes warning).
16282 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
16283 `--disable-werror' was used.
16285 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16287 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
16288 uninitialized `lastaddr'.
16290 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16292 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
16294 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
16296 * commands/test.c (get_fileinfo): Return immediately if
16297 grub_fs_probe fails.
16299 2009-09-14 José Martínez <xosemp@gmail.com>
16301 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
16303 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
16305 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
16308 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
16310 * configure.ac: Remove --enable-grub-pe2elf. Only build
16311 grub-pe2elf when needed by the build system itself.
16312 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
16314 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16316 * configure.ac: Bump version to 1.97~beta3.
16317 * docs/version.texi: Likewise.
16319 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16321 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
16322 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
16324 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
16325 (grub_linux_setup_video): ... to here (with some adjustments).
16327 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16329 Fix memory corruption issue (spotted by Colin Watson).
16331 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
16332 causing returned size to be stored in an incorrect memory location.
16333 Fix use of uninitialized value when storing the returned size.
16335 2009-09-12 Yves Blusseau <blusseau@zetam.org>
16337 Change clean rules to properly remove files
16339 * genmk.rb: add new clean rules
16340 * Makefile.in (clean): add the new targets
16341 (mostlyclean): likewise
16343 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
16345 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
16347 * fs/ntfs.c (init_file): Understand 64-bit sizes for
16348 non-resident files.
16350 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
16352 * configure.ac: Don't look for help2man when cross-compiling. Fixes
16353 part of bug #27349.
16355 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
16357 * util/grub-mkconfig.in: Make the created config mode 400 and
16358 print a warning if it fails.
16360 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
16362 * util/grub.d/40_custom.in: Ask user to type custom entries below
16363 comment, rather than below 'exec tail' line.
16365 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
16367 * util/grub.d/40_custom.in: Make sure that the explanatory text is
16368 visible in grub.cfg.
16370 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
16372 * util/grub.d/40_custom.in: Make it a little clearer how to use this
16375 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
16377 * docs/grub.cfg: Add an example menu entry for memtest86+.
16379 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
16381 * config.guess: Update to latest version from config git.
16382 * config.sub: Likewise.
16384 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
16386 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
16387 unknown-command case. Fixes bug #27320.
16389 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
16391 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
16392 `help' if the command exists.
16394 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
16396 * INSTALL: Require GCC 4.1.3 or later.
16398 2009-09-06 Yves Blusseau <blusseau@zetam.org>
16400 * Makefile.in (RMKFILES): add i386-qemu.rmk
16401 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
16402 $(srcdir)/stamp-h.in
16404 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
16406 * util/grub-probe.c (probe): Comment out buggy codepath, which
16407 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
16408 should be re-enabled after 1.97.
16410 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
16412 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
16415 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16417 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
16418 unnecessary calls to grub_error.
16420 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
16422 * NEWS: Mention `keystatus' and Unicode fonts.
16424 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
16426 * configure.ac: Bump version to 1.97~beta2.
16427 * docs/version.texi: Likewise.
16429 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
16431 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
16432 containing unwind information in some cases where it previously did
16433 not. Use -fno-dwarf2-cfi-asm if available to restore the old
16434 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
16437 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
16439 Embedding loadenv module into grub-emu
16441 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
16443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
16444 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
16445 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
16446 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
16447 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
16448 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
16450 2009-09-03 Magnus Granberg <zorry@ume.nu>
16452 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
16453 include -fPIE in the default specs.
16454 * configure.ac: Check if pie_possible is yes and add -fno-PIE
16457 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
16459 * INSTALL: Note that GNU Bison 2.3 or later is required.
16461 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
16463 * kern/i386/pc/startup.S: Fix typo.
16465 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16467 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
16470 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16472 * docs/grub.texi (Naming convention): Describe one-based partition
16474 (Device syntax): Likewise.
16475 (File name syntax): Likewise.
16476 (Block list syntax): Likewise.
16477 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
16479 (File name syntax): Likewise.
16480 (Command-line and menu entry commands): Document acpi, blocklist,
16481 crc, export, insmod, keystatus, ls, set, and unset commands.
16483 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16485 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
16486 to avoid implying that only one of --shift, --ctrl, or --alt may be
16489 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
16491 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
16492 rather than comparing against S_IFREG, which will almost never work.
16494 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16496 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
16497 (write_blocklists): Likewise.
16499 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
16501 * script/lua/grub_lua.h (fputs): Supply a format string as the first
16502 argument to grub_printf.
16504 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
16506 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
16509 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16511 * kern/file.c (grub_file_read): Spelling fix
16513 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16515 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
16516 loading of headers in some cases.
16518 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
16520 * configure.ac: Bump version to 1.97~beta1.
16521 * docs/version.texi: Likewise.
16523 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16525 * include/grub/i386/xnu.h: Add license header.
16526 include grub/err.h explicitly.
16528 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16530 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
16531 to `ufs' in the vfs.root.mountfrom kernel parameter.
16533 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16535 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
16537 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
16538 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
16540 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
16541 `ARRAY_SIZE' macro.
16543 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16545 * kern/file.c (grub_file_read): Check offset.
16546 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
16547 * fs/jfs.c (grub_jfs_read_file): Likewise.
16548 * fs/ntfs.c (grub_ntfs_read): Likewise.
16549 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
16550 * fs/minix.c (grub_minix_read_file): Correct offset check.
16551 * fs/ufs.c (grub_ufs_read_file): Likewise.
16553 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16555 * term/i386/pc/console.c (bios_data_area): Cast
16556 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
16558 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16560 1-bit optimised blitters.
16562 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
16564 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16565 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16566 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16567 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16568 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16569 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16570 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
16572 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16573 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16574 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16575 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16576 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16577 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16578 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
16580 * video/video.c (grub_video_get_blit_format): Return
16581 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
16583 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16585 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
16586 the first argument to grub_printf.
16588 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
16589 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
16591 Add `getkeystatus' terminal method. Add a new `keystatus' command
16594 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
16595 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
16596 modifier key bitmasks.
16597 (struct grub_term_input): Add `getkeystatus' member.
16598 (grub_getkeystatus): Add prototype.
16599 * kern/term.c (grub_getkeystatus): New function.
16601 * include/grub/i386/pc/memory.h
16602 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
16603 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
16605 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
16606 (grub_console_term_input): Set `getkeystatus' member.
16607 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
16609 (grub_usb_keyboard_getreport): Likewise.
16610 (grub_usb_keyboard_checkkey): Likewise.
16611 (grub_usb_keyboard_getkeystatus): New function.
16612 (grub_usb_keyboard_term): Set `getkeystatus' member.
16614 * commands/keystatus.c: New file.
16615 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
16616 (keystatus_mod_SOURCES): New variable.
16617 (keystatus_mod_CFLAGS): Likewise.
16618 (keystatus_mod_LDFLAGS): Likewise.
16619 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
16620 commands/keystatus.c.
16621 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16623 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16625 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16626 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16628 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16630 Split befs.mod and afs.mod into *_be.mod and *.mod
16632 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
16633 (grub_fstest_SOURCES): Likewise.
16634 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
16635 (afs_be_mod_SOURCES): New variable.
16636 (afs_be_mod_CFLAGS): Likewise.
16637 (afs_be_mod_LDFLAGS): Likewise.
16638 (befs_be_mod_SOURCES): Likewise.
16639 (befs_be_mod_CFLAGS): Likewise.
16640 (befs_be_mod_LDFLAGS): Likewise.
16641 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
16642 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16643 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16644 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
16645 (grub_emu_SOURCES): Likewise.
16646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16647 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16648 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16649 * fs/afs_be.c: New file.
16650 * fs/befs_be.c: New file.
16651 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
16652 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
16653 (U16): Replaced with ...
16654 (grub_afs_to_cpu16): ...this. All users updated.
16655 (U32): Replaced with ...
16656 (grub_afs_to_cpu32): ...this. All users updated.
16657 (U64): Replaced with ...
16658 (grub_afs_to_cpu64): ...this. All users updated.
16659 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
16660 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
16661 (grub_afs_validate_sblock): Check only one endianness.
16662 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16663 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16664 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16665 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16666 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16667 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16668 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16669 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16671 2009-08-26 Bean <bean123ch@gmail.com>
16673 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
16675 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16676 (grub_xfs_inode_block): Change return type to grub_uint64_t.
16677 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
16679 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16681 NetBSD memory map support.
16683 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
16684 (grub_netbsd_btinfo_mmap_header): New structure.
16685 (grub_netbsd_btinfo_mmap_entry): Likewise.
16686 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
16688 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16690 Enable bsd.mod on coreboot.
16692 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
16693 (bsd_mod_SOURCES): New variable.
16694 (bsd_mod_CFLAGS): Likewise.
16695 (bsd_mod_LDFLAGS): Likewise.
16696 (bsd_mod_ASFLAGS): Likewise.
16697 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
16698 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
16700 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16702 Cleanup NetBSD root support.
16704 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
16705 grub_bsd_get_device.
16708 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
16710 * util/grub.d/00_header.in: Move check for the video backend of
16711 gfxterm from here ...
16712 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
16713 a suitable video backend.
16715 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16717 Fix breakage in grub-setup.
16719 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
16720 "msdos_partition_map".
16722 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16724 Fix breakage in normal/auth.c.
16726 * normal/auth.c (grub_iswordseparator): New function.
16728 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16730 Authentication support.
16732 * commands/password.c: New file.
16733 * conf/common.rmk (pkglib_MODULES): Add password.mod.
16734 (password_mod_SOURCES): New variable.
16735 (password_mod_CFLAGS): Likewise.
16736 (password_mod_LDFLAGS): Likewise.
16737 (normal_mod_SOURCES): Add normal/auth.c.
16738 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
16740 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16741 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16742 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16744 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16745 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16746 * include/grub/auth.h: New file.
16747 * include/grub/err.h (grub_err_t): New enum value
16748 GRUB_ERR_ACCESS_DENIED.
16749 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
16751 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
16752 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
16754 * normal/auth.c: New file.
16755 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
16756 (grub_cmdline_run): Don't allow to go to command line without
16758 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
16759 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
16760 menuentry without superuser rights.
16761 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
16762 user isn't a superuser.
16764 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16766 Save space by inlining misc.c functions.
16768 * kern/misc.c (grub_iswordseparator): Made static.
16769 * kern/misc.c (grub_strcat): Moved from here ...
16770 * include/grub/misc.h (grub_strcat): ... here. Inlined.
16771 * kern/misc.c (grub_strncat): Moved from here ...
16772 * include/grub/misc.h (grub_strncat): ... here. Inlined.
16773 * kern/misc.c (grub_strcasecmp): Moved from here ...
16774 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
16775 * kern/misc.c (grub_strncasecmp): Moved from here ...
16776 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
16777 * kern/misc.c (grub_isalpha): Moved from here ...
16778 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
16779 * kern/misc.c (grub_isdigit): Moved from here ...
16780 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
16781 * kern/misc.c (grub_isgraph): Moved from here ...
16782 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
16783 * kern/misc.c (grub_tolower): Moved from here ...
16784 * include/grub/misc.h (grub_tolower): ... here. Inlined.
16786 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16788 * script/sh/function.c (grub_script_function_find): Cut error message
16789 not to flood terminal.
16790 * script/sh/lexer.c (grub_script_yylex): Remove command line length
16792 * script/sh/script.c (grub_script_arg_add): Duplicate string.
16794 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
16796 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
16797 `report' grub_uint8_t *.
16798 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
16799 Use a 50-millisecond timeout rather than just repeating
16800 grub_usb_keyboard_getreport 50 times.
16801 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
16803 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16805 Rename *_partition_map to part_*
16807 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
16808 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
16809 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
16810 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
16812 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
16814 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
16815 * util/grub-probe.c (probe_partmap): Don't transform partition name
16816 to get module name.
16818 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16820 Fix OpenBSD and NetBSD support.
16822 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
16823 memory address conflict.
16824 (OPENBSD_MMAP_ACPI): New definition.
16825 (OPENBSD_MMAP_NVS): Likewise.
16826 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
16827 and OPENBSD_MMAP_NVS.
16828 Add memory map terminator
16829 Explicit cast when calling grub_unix_real_boot.
16830 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
16832 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16834 Let user specify NetBSD root device.
16836 * loader/i386/bsd.c (netbsd_root): New variable.
16837 (netbsd_opts): New option 'root'.
16838 (NETBSD_ROOT_ARG): New macro.
16839 (grub_netbsd_boot): Use 'netbsd_root'.
16840 (grub_bsd_unload): Free 'netbsd_root'.
16841 (grub_cmd_netbsd): Fill 'netbsd_root'.
16843 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16845 Support for 64-bit NetBSD.
16847 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
16848 point when booting non-FreeBSD.
16850 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16852 Support --no-smp and --no-acpi for NetBSD.
16854 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
16855 (NETBSD_AB_NOACPI): Likewise.
16856 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
16857 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
16859 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16861 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
16863 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
16864 errors. Call grub_error when needed.
16866 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16868 * commands/search.c (search_fs): Try searching without autoload first.
16869 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
16870 filesystem module explicitly for faster booting.
16872 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
16874 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
16876 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
16878 * util/grub.d/30_os-prober.in: Disable os-prober if
16879 `GRUB_DISABLE_OS_PROBER' was set to true.
16881 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
16883 * partmap/pc.c: Rename to ...
16884 * partmap/msdos.c: ... this. Update all users.
16885 (grub_pc_partition_map): Rename to ...
16886 (grub_msdos_partition_map): ... this. Update all users.
16888 * parttool/pcpart.c: Rename to ...
16889 * parttool/msdospart.c: ... this. Update all users.
16891 * include/grub/pc_partition.h: Rename to ...
16892 * include/grub/msdos_partition.h: ... this. Update all users.
16893 (grub_pc_partition_bsd_entry): Rename to ...
16894 (grub_msdos_partition_bsd_entry): ... this. Update all users.
16895 (grub_pc_partition_disk_label): Rename to ...
16896 (grub_msdos_partition_disk_label): ... this. Update all users.
16897 (grub_pc_partition_entry): Rename to ...
16898 (grub_msdos_partition_entry): ... this. Update all users.
16899 (grub_pc_partition_mbr): Rename to ...
16900 (grub_msdos_partition_mbr): ... this. Update all users.
16901 (grub_pc_partition): Rename to ...
16902 (grub_msdos_partition): ... this. Update all users.
16903 (grub_pc_partition_is_empty): Rename to ...
16904 (grub_msdos_partition_is_empty): ... this. Update all users.
16905 (grub_pc_partition_is_extended): Rename to ...
16906 (grub_msdos_partition_is_extended): ... this. Update all users.
16907 (grub_pc_partition_is_bsd): Rename to ...
16908 (grub_msdos_partition_is_bsd): ... this. Update all users.
16910 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
16911 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
16912 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
16913 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
16914 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
16915 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
16916 (gpt_mod_LDFLAGS): Rename to ...
16917 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
16918 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
16919 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
16920 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
16921 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
16922 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
16923 (part_gpt_mod_LDFLAGS): ... this.
16924 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
16925 `pcpart.mod' to `msdospart.mod'.
16926 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
16928 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
16929 (msdospart_mod_LDFLAGS): ... this.
16931 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
16933 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
16934 (openbsd_opts): Likewise.
16935 (netbsd_opts): Likewise.
16936 (freebsd_flags): Added 0 terminator.
16937 (openbsd_flags): Likewise.
16938 (netbsd_flags): Likewise.
16939 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
16940 (grub_cmd_freebsd): Transformed into extended command.
16941 (grub_cmd_openbsd): Likewise.
16942 (grub_cmd_netbsd): Likewise.
16943 (cmd_freebsd): Changed type to grub_extcmd_t.
16944 (cmd_openbsd): Likewise.
16945 (cmd_netbsd): Likewise.
16946 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
16947 grub_cmd_openbsd as extended commands.
16948 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
16949 cmd_netbsd and cmd_openbsd
16951 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
16953 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
16955 2009-08-21 Pavel Roskin <proski@gnu.org>
16957 * Makefile.in (install-local): When checking if a file is in the
16958 build directory, use "test -e" to detect symlinks.
16960 * Makefile.in (install-local): Remove all files in
16961 $(DESTDIR)$(pkglibdir) before installing new files there.
16963 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
16965 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
16968 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
16970 * util/grub-mkconfig.in: Don't use gfxterm by default if not
16971 explicitly specified by the user.
16973 2009-08-18 Pavel Roskin <proski@gnu.org>
16975 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
16976 grub_uint8_t pointer for data.
16977 * include/grub/fbutil.h (struct grub_video_fbblit_info):
16979 * video/fb/fbutil.c: Remove unnecessary casts.
16981 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
16985 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
16986 (grub_vbe_set_video_mode): Save active mode info
16987 only after setting the mode.
16988 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
16991 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
16993 Rename variables for clarity.
16995 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
16996 (active_vbe_mode_info): ... this. All users updated.
16997 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
16999 (initial_mode): Rename to ...
17000 (initial_vbe_mode): ... this. All users updated.
17001 (mode_in_use): Rename to ..
17002 (vbe_mode_in_use): ... this. All users updated.
17003 (mode_list): Rename to ..
17004 (vbe_mode_list): ... this. All users updated.
17005 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
17006 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
17007 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
17008 'mode_list_size' to 'vbe_mode_list_size'.
17009 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
17010 'best_mode_info' to 'best_vbe_mode_info' and
17011 'best_mode' to 'best_vbe_mode'
17013 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
17015 Remove duplicate grub_video_fb_get_video_ptr.
17017 * include/grub/fbutil.h (get_data_ptr): Rename to ...
17018 (grub_video_fb_get_video_ptr): ... this.
17019 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
17020 * video/fb/fbutil.c: Add comment about addressing.
17021 (get_data_ptr): Rename to ...
17022 (grub_video_fb_get_video_ptr): ... this. All users updated.
17023 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
17025 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17027 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
17028 grub_dprintf() that was just added.
17030 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17032 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
17033 (DEFAULT_VIDEO_MODE): Remove macros.
17034 (grub_linux_boot): Remove assumption that Linux has FB support,
17035 and use "text" as default video mode.
17037 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
17039 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
17041 * fs/fat.c (grub_fat_read_data): Likewise.
17043 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17045 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
17047 (grub_module): Likewise.
17049 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17051 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
17052 mbi->cmdline but free playground.
17054 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17056 Handle group offset on UFS1.
17058 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
17059 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
17061 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17063 Split ufs.mod into ufs1.mod and ufs2.mod.
17065 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
17066 (grub_fstest_SOURCES): Likewise.
17067 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
17068 (ufs_mod_SOURCES): Remove.
17069 (ufs_mod_CFLAGS): Likewise.
17070 (ufs_mod_LDFLAGS): Likewise.
17071 (ufs1_mod_SOURCES): New variable.
17072 (ufs1_mod_CFLAGS): Likewise.
17073 (ufs1_mod_LDFLAGS): Likewise.
17074 (ufs2_mod_SOURCES): New variable.
17075 (ufs2_mod_CFLAGS): Likewise.
17076 (ufs2_mod_LDFLAGS): Likewise.
17077 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
17078 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17080 (grub_emu_SOURCES): Likewise.
17081 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17082 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17083 (grub_setup_SOURCES): Likewise.
17084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17085 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
17086 (grub_setup_SOURCES): Likewise.
17087 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17089 * fs/ufs2.c: New file.
17090 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
17092 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17096 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
17097 subsystem at the end.
17098 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
17099 (video_fb_mod_SOURCES): New variable.
17100 (video_fb_mod_CFLAGS): Likewise.
17101 (video_fb_mod_LDFLAGS): Likewise.
17102 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
17103 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
17104 * video/i386/pc/vbeblit.c: Moved from here ...
17105 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
17106 * video/i386/pc/vbefill.c: Moved from here ...
17107 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
17108 * video/i386/pc/vbeutil.c: Moved from here ...
17109 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
17110 * include/grub/i386/pc/vbeblit.h: Moved from here ...
17111 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
17112 * include/grub/i386/pc/vbefill.h: Moved from here ...
17113 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
17114 * include/grub/i386/pc/vbeutil.h: Moved from here ...
17115 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
17116 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
17117 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
17118 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
17119 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
17120 (grub_video_adapter): Added 'get_info_and_fini'.
17121 (grub_video_get_info_and_fini): New prototype.
17122 (grub_video_set_mode): make modestring const char *.
17123 * loader/i386/linux.c (grub_linux_setup_video): Use
17124 grub_video_get_info_and_fini.
17125 (grub_linux_boot): Move modesetting just before booting.
17126 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
17127 grub_video_get_info_and_fini.
17128 * video/i386/pc/vbe.c: Moved framebuffer part ...
17129 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
17130 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
17131 grub_video_fbstd_colors and grub_video_fb_set_palette.
17132 (grub_video_vbe_init): Clear 'framebuffer' variable and use
17133 grub_video_fb_init.
17134 (grub_video_vbe_fini): Use grub_video_fb_fini.
17135 (grub_video_vbe_setup): Use framebuffer.render_target instead of
17136 render_target and use grub_video_fb_set_active_render_target and
17137 grub_video_fb_set_palette.
17138 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
17139 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
17140 (grub_video_vbe_adapter): Use framebuffer.
17141 * video/video.c (grub_video_get_info_and_fini): New function.
17142 (grub_video_set_mode): Make modestring const char *.
17143 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
17144 values are already initialised.
17146 2009-08-14 Pavel Roskin <proski@gnu.org>
17148 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
17150 * boot/i386/pc/diskboot.S: Likewise.
17151 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
17152 sectors allow compilation on MacOSX.
17153 * conf/i386-pc.rmk: Enable unconditional compilation of
17156 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
17158 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
17159 * util/grub.d/00_header.in: Enter interruptible sleep if
17160 GRUB_HIDDEN_TIMEOUT is set.
17162 2009-08-13 Yves Blusseau <blusseau@zetam.org>
17164 * include/grub/symbol.h: Add the LOCAL macro.
17165 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
17166 starting with "L_".
17168 2009-08-13 Pavel Roskin <proski@gnu.org>
17170 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
17171 any modern compilers we support.
17173 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
17174 Use local labels starting with "L_" so that Apple assembler
17175 knows they are local.
17177 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
17179 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
17180 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
17181 (bsd_kernel_types): ... this enum.
17183 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
17184 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
17185 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
17187 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
17188 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
17189 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
17192 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17194 * util/grub-dumpdevtree: Moved from here ...
17195 * util/i386/efi/grub-dumpdevtree: ... to here.
17196 (hexify): New function. Converts a string to its hex version.
17197 Generate hex versions of "efi" and "device-properties" by calling
17198 hexify() on the ASCII strings rather than by hardcoding numbers.
17200 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17202 * fs/jfs.c: Update copyright year.
17204 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17206 * util/grub.d/00_header.in: Fix a comment.
17207 * util/grub.d/10_linux.in: Likewise.
17208 * util/grub.d/10_windows.in: Likewise.
17209 * util/grub.d/10_hurd.in: Likewise.
17211 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
17213 * util/grub-mkconfig.in: Allow the user to specify the used font
17216 2009-08-08 Pavel Roskin <proski@gnu.org>
17218 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
17219 available, xfs.mod needs it now.
17221 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
17222 the "g" modifier in sed when the intention is to strip something
17223 once. This fixes comparison of kernels with multiple dashes.
17225 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
17226 on it. Add missing space before closing bracket. Fix
17227 misleading formatting.
17229 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17231 * docs/grub.texi: Major overhaul. Remove all sections that are
17232 specific to GRUB Legacy, or mostly composed of Legacy-specific
17235 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17237 * docs/version.texi: New file. Provides version information for
17240 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17242 * docs/grub.texi: Update CVS information to SVN.
17243 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
17245 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17247 * util/grub-mkconfig.in: Remove a wrong `fi'.
17249 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17251 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
17252 (grub_jfs_uuid): New function.
17253 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
17255 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
17257 * util/grub-mkconfig_lib.in (font_path): Move the functionality
17259 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
17260 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
17262 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17264 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
17265 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
17268 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
17269 not just "vmlinu[zx]".
17270 Moved from here ...
17271 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
17274 * util/grub.d/10_linux.in (find_latest): Moved from here ...
17275 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
17278 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17280 * util/grub.d/10_freebsd.in: Use an absolute device path for
17281 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
17283 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
17285 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
17286 handling of multiple abstraction modules.
17288 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
17290 Fix a bug resulting in black screen when loading Linux using a
17293 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
17296 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
17297 (grub_vbe_bios_getset_dac_palette_width): New function.
17298 (grub_vbe_bios_get_dac_palette_width)
17299 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
17300 grub_vbe_bios_getset_dac_palette_width()).
17302 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
17303 check for return status.
17304 (grub_vbe_get_video_mode_info): When getting information for a packed
17305 mode (<= 8 bpp), obtain DAC palette width using
17306 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
17307 {red,green,blue}_mark_size.
17309 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
17311 * commands/search.c (options): Fix help output to match actual code.
17313 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
17315 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
17318 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17320 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
17321 on XFS or ReiserFS.
17323 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17325 Support Apple partition map with sector size different from 512 bytes.
17327 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
17328 (apple_partition_map_iterate): Respect 'aheader.blocksize'
17329 and 'apart.partmap_size'.
17331 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17332 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
17336 * commands/i386/cpuid.c (options): New variable.
17337 (grub_cmd_cpuid): Return real error.
17338 (GRUB_MOD_INIT(cpuid)): Declare options.
17340 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
17342 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
17345 2009-07-31 Bean <bean123ch@gmail.com>
17347 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
17349 (grub_fshelp_node): Move inode field to the end.
17350 (grub_xfs_data): Remove inode field.
17351 (grub_xfs_inode_block): Calculate inode size using sblock.
17352 (grub_xfs_inode_offset): Likewise.
17353 (grub_xfs_read_inode): Calculate inode size using sblock.
17354 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
17355 (grub_xfs_iterate_dir): Calculate inode size using sblock.
17356 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
17357 to match inode size.
17358 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
17359 not accessible when data is null.
17360 (grub_xfs_open): Likewise.
17362 2009-07-31 Bean <bean123ch@gmail.com>
17364 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
17365 Don't change pv->disk if it's already set.
17367 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
17368 (grub_raid_register): ... here.
17369 (grub_raid_rescan): Removed.
17371 * include/grub/raid.h (grub_raid_rescan): Removed.
17373 * util/grub-fstest.c: Remove include file <grub/raid.h>.
17374 (fstest): Replace grub_raid_rescan with module fini function followed
17377 * util/grub-probe.c: Add include file <grub/raid.h>.
17378 (probe_raid_level): New function.
17379 (probe): Detect abstraction by walking the disk device, support two
17380 level of abstraction (LVM on RAID) when detecting partition map.
17382 2009-07-31 Pavel Roskin <proski@gnu.org>
17384 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
17385 to grub_zalloc(), it was erroneous.
17386 Reported by Bean <bean123ch@gmail.com>
17388 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
17390 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
17391 embedding zone, not only the first one.
17393 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
17395 * term/gfxterm.c (clear_char): New function.
17396 (grub_virtual_screen_setup): Use clear_char.
17397 (scroll_up): Likewise.
17398 (grub_virtual_screen_cls): Likewise.
17400 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
17402 * util/deviceiter.c (get_acceleraid_disk_name): New static
17404 (grub_util_iterate_devices): Handle Accelraid devices.
17405 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
17407 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
17409 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
17410 separator for the suggested gfxpayload string (';' collides with the
17411 parser and needs escaping).
17413 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
17415 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
17416 Clear direction flag before jumping to OS.
17417 (grub_multiboot2_real_boot): Likewise.
17419 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
17421 * util/i386/pc/grub-install: Fix parsing of --disk-module
17424 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
17426 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
17429 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
17431 * util/grub-mkconfig.in (package_version): New variable.
17432 Use it do display the version.
17434 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
17436 * kern/file.c (grub_file_open): Revert to previous check with
17439 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17441 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
17442 from help line. It's out of sync with code.
17444 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17446 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
17447 entries on failed boot.
17449 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
17451 * kern/file.c (grub_file_open): Fix an error check.
17453 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
17455 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
17456 partition map couldn't be identified.
17458 2009-07-23 Pavel Roskin <proski@gnu.org>
17460 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
17461 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
17462 case of little endian words becomes just an optimization.
17463 Respect const modifier.
17464 (md5_final): Use code that doesn't depend on endianness.
17466 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
17467 to avoid loss of upper bits if align is unsigned and shorter
17470 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17472 UUID support for UFS
17474 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
17475 (grub_ufs_uuid): New function.
17476 (grub_ufs_fs): add .uuid
17478 2009-07-21 Pavel Roskin <proski@gnu.org>
17480 * kern/dl.c (grub_dl_check_header): Make static.
17482 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
17484 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
17485 add drivemap for Vista. It breaks Windows 7.
17487 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17489 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
17492 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17496 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
17497 (grub_fstest_SOURCES): Likewise.
17498 (pkglib_MODULES): Add befs.mod.
17499 (befs_mod_SOURCES): New variable.
17500 (befs_mod_CFLAGS): Likewise.
17501 (befs_mod_LDFLAGS): Likewise.
17502 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17503 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17504 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17505 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17506 (grub_setup_SOURCES): Likewise.
17507 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17508 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17509 (grub_setup_SOURCES): Likewise.
17510 * fs/befs.c: New file.
17511 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
17512 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
17513 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
17514 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
17515 (B_KEY_INDEX_ALIGN): New declaration.
17516 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
17517 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
17518 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
17519 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
17520 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
17521 (grub_afs_mount) [MODE_BFS]: Likewise.
17522 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
17523 (grub_afs_fs): Use GRUB_AFS_FSNAME
17524 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
17525 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
17526 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
17527 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
17529 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
17531 * util/getroot.c (find_root_device): Add support for MacOSX.
17532 * util/hostdisk.c: Likewise.
17534 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17536 * font/font.c (find_glyph): Check whether a font is present to avoid
17537 segmentation fault.
17539 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
17541 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
17543 2009-07-20 Pavel Roskin <proski@gnu.org>
17545 * configure.ac: Trim excessively wordy excuses.
17547 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17549 Add symlink, mtime and label support to AtheFS.
17551 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
17552 (grub_afs_iterate_dir): Handle symlinks.
17553 (grub_afs_open): Use grub_afs_read_symlink.
17554 (grub_afs_dir): Likewise.
17556 (grub_afs_label): New function.
17557 (grub_afs_fs): Add grub_afs_label.
17558 (grub_afs_read_symlink): New function.
17560 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17562 Fix AtheFS support.
17564 * fs/afs.c: Fix comments style.
17565 (grub_afs_blockrun): Declare as packed.
17566 (grub_afs_datastream): Likewise.
17567 (grub_afs_bnode): Likewise.
17568 (grub_afs_btree): Likewise.
17569 (grub_afs_sblock): Likewise.
17570 Declare `name' as char.
17571 (grub_afs_inode): Declare as packed.
17572 Change void *vnode to grub_uint32_t unused.
17573 (grub_afs_iterate_dir): Check that key_size is positive.
17574 (grub_afs_mount): Don't read superblock twice.
17575 (grub_afs_dir): Don't free node in case of error,
17576 grub_fshelp_find_file already handles this.
17577 (grub_afs_open): Likewise.
17579 2009-07-19 Pavel Roskin <proski@gnu.org>
17581 * Makefile.in: Remove LIBLZO and enable_lzo.
17582 * conf/i386-pc.rmk: Remove lzo support.
17583 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
17584 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
17586 * kern/i386/pc/lzo1x.S: Remove.
17587 * kern/i386/pc/startup.S: Remove lzo support.
17588 * util/i386/pc/grub-mkimage.c: Likewise.
17590 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
17592 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
17593 * fs/xfs.c (grub_xfs_dir): Likewise.
17594 * fs/afs.c (grub_afs_dir): Likewise.
17595 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
17596 (grub_iso9660_open): Likewise.
17597 * fs/jfs.c (grub_jfs_open): Likewise.
17598 * fs/ext2.c (grub_ext2_dir): Likewise.
17599 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
17600 * script/sh/lexer.c (grub_script_yylex): Likewise.
17602 2009-07-16 Pavel Roskin <proski@gnu.org>
17604 * configure.ac: Never add "-c" to CFLAGS.
17606 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
17608 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
17609 grub_cv_cc_efiemu should be used.
17611 * configure.ac: Typo fixes.
17613 * kern/mm.c (grub_zalloc): New function.
17614 (grub_debug_zalloc): Likewise.
17615 * include/grub/mm.h: Declare grub_zalloc() and
17616 grub_debug_zalloc().
17617 * util/misc.c (grub_zalloc): New function.
17618 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
17619 instead of grub_malloc(), remove unneeded initializations.
17620 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
17621 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
17622 * commands/parttool.c (grub_cmd_parttool): Likewise.
17623 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17624 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
17625 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
17626 * disk/usbms.c (grub_usbms_finddevs): Likewise.
17627 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
17628 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
17629 (grub_cmd_efiemu_pnvram): Likewise.
17630 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
17631 * fs/iso9660.c (grub_iso9660_mount): Likewise.
17632 (grub_iso9660_iterate_dir): Likewise.
17633 * fs/jfs.c (grub_jfs_opendir): Likewise.
17634 * fs/ntfs.c (list_file): Likewise.
17635 (grub_ntfs_mount): Likewise.
17636 * kern/disk.c (grub_disk_open): Likewise.
17637 * kern/dl.c (grub_dl_load_core): Likewise.
17638 * kern/elf.c (grub_elf_file): Likewise.
17639 * kern/env.c (grub_env_context_open): Likewise.
17640 (grub_env_set): Likewise.
17641 (grub_env_set_data_slot): Likewise.
17642 * kern/file.c (grub_file_open): Likewise.
17643 * kern/fs.c (grub_fs_blocklist_open): Likewise.
17644 * loader/i386/multiboot.c (grub_module): Likewise.
17645 * loader/xnu.c (grub_xnu_create_key): Likewise.
17646 (grub_xnu_create_value): Likewise.
17647 * normal/main.c (grub_normal_add_menu_entry): Likewise.
17648 (read_config_file): Likewise.
17649 * normal/menu_entry.c (make_screen): Likewise.
17650 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17651 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
17652 * script/sh/script.c (grub_script_parse): Likewise.
17653 * video/bitmap.c (grub_video_bitmap_create): Likewise.
17654 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17655 * video/readers/png.c (grub_png_output_byte): Likewise.
17656 (grub_video_reader_png): Likewise.
17658 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17660 Enable all targets that can be built by default
17662 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
17663 grub-mkfont and grub-fstest if they can be built
17665 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17667 Fix hang and segmentation fault in grub-emu-usb
17669 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
17670 * util/usb.c (grub_libusb_devices): likewise
17671 (grub_libusb_init): rename to ...
17672 (GRUB_MOD_INIT (libusb)):...this
17673 (grub_libusb_fini): rename to ..
17674 (GRUB_MOD_FINI (libusb)):...this
17675 * disk/usbms.c (grub_usbms_transfer): fix retry logic
17676 * include/grub/disk.h (grub_raid_init): removed, it's useless
17677 (grub_raid_fini): likewise
17678 (grub_lvm_init): likewise
17679 (grub_lvm_fini): likewise
17680 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
17683 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17687 * Makefile.in (LIBUSB): new macro
17688 * genmk.rb (Utility/print_tail): new method
17689 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
17690 (top level): call util.print_tail at the end.
17692 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17694 Make FreeBSD accept zpool.cache
17696 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
17697 type is /boot/zfs/zpool.cache
17699 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17703 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
17704 correct wrong typedef
17705 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
17707 2009-07-15 Pavel Roskin <proski@gnu.org>
17709 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
17710 * kern/disk.c (struct grub_disk_cache): Likewise.
17712 * commands/probe.c (options): Typo fix.
17714 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
17715 Increase to 0x5a to accommodate FAT32. Adjust other offsets
17717 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
17719 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
17720 the end of "Error" to make the message more readable.
17722 * boot/i386/pc/boot.S (kernel_segment): Remove.
17723 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
17726 * boot/i386/pc/boot.S (boot_version): Remove.
17727 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17730 * include/grub/i386/pc/boot.h: Sort all offsets.
17731 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
17732 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
17733 * boot/i386/pc/boot.S: Assert location of every offset listed in
17734 include/grub/i386/pc/boot.h.
17736 2009-07-13 Pavel Roskin <proski@gnu.org>
17738 * include/grub/i386/coreboot/machine.h: Rename
17739 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
17740 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
17741 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
17743 * kern/dl.c: Force native word size to suppress warnings when
17744 compiling grub-emu.
17746 * kern/device.c (grub_device_iterate): Change struct part_ent to
17747 hold the name, not a pointer to it. Use one grub_malloc() per
17748 partition, not two. Free partition_name if grub_malloc() fails.
17749 Set ents to NULL only before grub_partition_iterate() is called.
17751 2009-07-11 Bean <bean123ch@gmail.com>
17753 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
17756 2009-07-10 Bean <bean123ch@gmail.com>
17757 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
17759 * kern/ieee1275/openfw.c (grub_children_iterate)
17760 (grub_devalias_iterate): Fix size evaluation for property or path
17761 strings, which was broken since r2132.
17763 2009-07-07 Pavel Roskin <proski@gnu.org>
17765 * commands/search.c (search_file): Merge into ...
17766 (search_fs): ... this. Accept search type as argument.
17767 (grub_cmd_search): Pass search type to search_fs().
17769 * include/grub/util/console.h: New file.
17770 * util/console.c: Use it instead of grub/machine/console.h.
17771 * util/grub-emu.c: Likewise.
17773 * lib/arg.c (find_long_option): Remove.
17774 (find_long): Add `len' argument, make `s' const char *.
17775 (grub_arg_parse): Parse long options in place, not in a
17778 2009-07-06 Pavel Roskin <proski@gnu.org>
17780 * commands/search.c (search_fs): Fix potential NULL pointer
17783 * commands/search.c (search_fs): Replace QUID macro with quid_fn
17786 2009-07-06 Daniel Mierswa <impulze@impulze.org>
17788 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
17791 2009-07-05 Pavel Roskin <proski@gnu.org>
17793 * include/grub/i386/linux.h (struct linux_kernel_params):
17794 Restore padding3, it's still needed.
17796 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
17798 * util/osdetect.lua: Likewise.
17800 2009-07-05 Bean <bean123ch@gmail.com>
17802 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
17804 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
17805 (grub_lua_getenv): Likewise.
17806 (grub_lua_setenv): Likewise.
17807 (save_errno): New function.
17808 (push_result): Likewise.
17809 (grub_lua_enum_device): Likewise.
17810 (grub_lua_enum_file): Likewise.
17811 (grub_lua_file_open): Likewise.
17812 (grub_lua_file_close): Likewise.
17813 (grub_lua_file_seek): Likewise.
17814 (grub_lua_file_read): Likewise.
17815 (grub_lua_file_getline): Likewise.
17816 (grub_lua_file_getsize): Likewise.
17817 (grub_lua_file_getpos): Likewise.
17818 (grub_lua_file_eof): Likewise.
17819 (grub_lua_file_exist): Likewise.
17820 (grub_lua_add_menu): Likewise.
17822 * script/lua/grub_lua.h (isupper): New inline function.
17823 (islower): Likewise.
17824 (ispunct): Likewise.
17825 (isxdigit): Likewise.
17826 (strcspn): Change to normal function.
17827 (strpbkr): New function declaration.
17828 (memchr): Likewise.
17830 * script/lua/grub_main.c (scan_str): New function.
17831 (strcspn): Likewise.
17832 (strpbrk): Likewise.
17833 (memchr): Likewise.
17835 * script/lua/linit.c (lualibs): Enable the string library.
17837 * util/osdetect.lua: New file.
17839 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
17841 * include/grub/i386/linux.h (struct linux_kernel_params): Add
17842 `capabilities' member.
17844 2009-07-02 Pavel Roskin <proski@gnu.org>
17846 * genparttoollist.sh: Add missing newline at the end.
17848 2009-07-01 Pavel Roskin <proski@gnu.org>
17850 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
17852 * util/hostdisk.c (open_device): Remove `const' from
17853 `sysctl_size', as sysctlbyname() can change it (in this case it
17854 doesn't actually happen).
17856 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
17857 using signed long int constants.
17859 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
17860 constant to avoid a warning on FreeBSD.
17862 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
17865 * Makefile.in: Install include/grub/machine symlink.
17867 * Makefile.in: When installing symlinks, use "cp -fR", which
17868 works on FreeBSD and MacOSX.
17869 From Yves Blusseau <cl7m42e02@sneakemail.com>
17871 * kern/dl.c (grub_dl_resolve_symbol): Make static.
17872 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
17874 * util/misc.c: Move grub_reboot() and grub_halt() ...
17875 * util/grub-emu.c: ... here. Make main_env static.
17876 * include/grub/util/misc.h: Remove main_env.
17878 * kern/mm.c: Use correct format to print size_t.
17880 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
17881 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
17882 * kern/powerpc/dl.c: Likewise.
17883 * kern/sparc64/dl.c: Likewise.
17884 * kern/x86_64/dl.c: Likewise.
17886 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17888 Fix grub-emu build on sparc64-ieee1275.
17890 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
17891 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
17893 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17895 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
17896 (grub_reboot, grub_halt): New functions.
17898 * util/i386/pc/misc.c: Delete. Update all users.
17899 * util/sparc64/ieee1275/misc.c: Likewise.
17900 * util/powerpc/ieee1275/misc.c: Likewise.
17902 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17904 * conf/i386.rmk (setjmp_mod_SOURCES)
17905 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
17906 * conf/common.rmk (setjmp_mod_SOURCES)
17907 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
17908 to use $(target_cpu).
17909 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
17910 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
17911 * conf/powerpc-ieee1275.rmk: Likewise.
17912 * conf/sparc64-ieee1275.rmk: Likewise.
17914 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
17915 $(target_cpu) for kern/$(target_cpu)/dl.c.
17916 * conf/i386-efi.rmk: Likewise.
17917 * conf/i386-ieee1275.rmk: Likewise.
17918 * conf/x86_64-efi.rmk: Likewise.
17919 * conf/i386-coreboot.rmk: Likewise.
17920 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
17921 $(target_cpu) for kern/$(target_cpu)/dl.c and for
17922 kern/$(target_cpu)/cache.S.
17923 * conf/sparc64-ieee1275.rmk: Likewise.
17925 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
17927 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
17928 type to `grub_uint8_t', and adjust `padding9' accordingly.
17930 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
17932 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
17934 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
17935 assembly in final jump, using register constraints.
17937 (grub_linux_boot): For text mode, initialize `have_vga' using
17938 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
17940 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
17941 right before the final jump.
17943 Set `video_mode' to 0x3.
17945 Document initialization of `video_page', `video_mode' and
17948 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
17950 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
17951 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
17952 and set GRUB_LINUX_FLAG_QUIET appropriately.
17954 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
17956 Fix build on Debian / sparc.
17958 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
17960 2009-06-28 Pavel Roskin <proski@gnu.org>
17962 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
17965 * util/grub.d/10_linux.in: Match SUSE style initrd names.
17967 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
17969 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
17972 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
17976 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
17977 file can't be opened. grub_file_open() is already supposed to set
17978 grub_errno / grub_errmsg appropriately.
17979 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
17981 2009-06-27 Pavel Roskin <proski@gnu.org>
17982 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
17984 * include/grub/dl.h: Include grub/elf.h.
17985 (struct grub_dl): Add symtab field.
17986 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
17987 GRUB_MODULES_MACHINE_READONLY.
17988 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
17989 of the header for read-only modules.
17990 (grub_dl_unload): Free mod->symtab for read-only modules.
17991 * kern/i386/dl.c: Use mod->symtab.
17992 * kern/powerpc/dl.c: Likewise.
17993 * kern/sparc64/dl.c: Likewise.
17994 * kern/x86_64/dl.c: Likewise.
17996 * conf/i386-qemu.rmk: New file.
17997 * kern/i386/qemu/startup.S: Likewise.
17998 * kern/i386/qemu/mmap.c: Likewise.
17999 * boot/i386/qemu/boot.S: Likewise.
18000 * include/grub/i386/qemu/time.h: Likewise.
18001 * include/grub/i386/qemu/serial.h: Likewise.
18002 * include/grub/i386/qemu/kernel.h: Likewise.
18003 * include/grub/i386/qemu/console.h: Likewise.
18004 * include/grub/i386/qemu/boot.h: Likewise.
18005 * include/grub/i386/qemu/init.h: Likewise.
18006 * include/grub/i386/qemu/machine.h: Likewise.
18007 * include/grub/i386/qemu/loader.h: Likewise.
18008 * include/grub/i386/qemu/memory.h: Likewise.
18010 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
18011 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
18012 [qemu] (pkglib_IMAGES): Add `boot.img'.
18013 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
18014 [qemu] (boot_img_FORMAT): New variables.
18015 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
18016 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
18017 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
18018 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18019 [qemu] (kernel_img_FORMAT): New variables.
18021 * configure.ac: Recognise `i386-qemu'.
18023 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
18024 (for no compression).
18025 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
18026 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
18027 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
18028 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
18031 2009-06-27 Pavel Roskin <proski@gnu.org>
18033 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
18035 * efiemu/prepare32.c: Likewise.
18036 * efiemu/prepare64.c: Likewise.
18038 2009-06-26 Pavel Roskin <proski@gnu.org>
18040 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
18041 * include/grub/elf.h: Define symbols without "32" or "64" based
18042 on GRUB_TARGET_WORDSIZE.
18043 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
18044 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
18046 * efiemu/loadcore64.c: Likewise.
18047 * loader/i386/bsd32.c: Likewise.
18048 * loader/i386/bsd64.c: Likewise.
18049 * kern/dl.c: Remove own ELF definitions.
18050 * util/i386/efi/grub-mkimage.c: Likewise.
18052 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
18054 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
18055 segment 0x0 unconditionally, because the reference generated by
18056 GAS is an absolute address.
18058 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18060 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
18061 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
18063 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18065 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
18066 indexes. Check for -f explicitly.
18067 (search_file): Improve error message.
18068 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
18070 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18072 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
18073 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
18075 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18077 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
18078 * conf/i386-ieee1275.rmk: Likewise.
18079 * conf/i386-coreboot.rmk: Likewise.
18081 * kern/i386/pc/startup.S (grub_stop): Remove function.
18082 * kern/i386/ieee1275/startup.S: Likewise.
18083 * kern/i386/coreboot/startup.S: Likewise.
18084 * kern/i386/misc.S (grub_stop): New function.
18086 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18088 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
18089 * kern/i386/realmode.S (real_to_prot): ... to here.
18091 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18093 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
18095 (kernel_elf_SOURCES): Rename to ...
18096 (kernel_img_SOURCES): ... this.
18097 (kernel_elf_HEADERS): Rename to ...
18098 (kernel_img_HEADERS): ... this. Update all users.
18099 (kernel_elf_ASFLAGS): Rename to ...
18100 (kernel_img_ASFLAGS): ... this.
18101 (kernel_elf_CFLAGS): Rename to ...
18102 (kernel_img_CFLAGS): ... this.
18103 (kernel_elf_LDFLAGS): Rename to ...
18104 (kernel_img_LDFLAGS): ... this.
18105 * conf/i386-coreboot.rmk: Likewise.
18106 * conf/powerpc-ieee1275.rmk: Likewise.
18108 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
18111 2009-06-21 Pavel Roskin <proski@gnu.org>
18113 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
18114 to match nested functions.
18115 * loader/sparc64/ieee1275/linux.c: Likewise.
18117 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
18119 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18121 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
18122 all i386 platforms.
18124 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18126 Fix asm file handling on ELF, and remove workarounds.
18128 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
18129 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
18130 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
18131 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
18133 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
18135 Load BSD ELF modules
18137 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
18138 and loader/i386/bsd64.c
18139 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
18140 (FREEBSD_MODTYPE_ELF_MODULE): New definition
18141 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
18142 (grub_freebsd_load_elfmodule32): New declaration
18143 (grub_freebsd_load_elfmoduleobj64): Likewise
18144 (grub_freebsd_load_elf_meta32): Likewise
18145 (grub_freebsd_load_elf_meta64): Likewise
18146 (grub_freebsd_add_meta): Likewise
18147 (grub_freebsd_add_meta_module): Likewise
18148 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
18149 (grub_freebsd_add_meta_module): Likewise and move module-specific
18150 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
18151 (grub_cmd_freebsd): Add elf-kernel specific parts
18152 based on grub_freebsd_add_meta_module
18153 (grub_cmd_freebsd_module): Add type parsing moved from
18154 grub_freebsd_add_meta_module
18155 (grub_cmd_freebsd_module_elf): New function
18156 (cmd_freebsd_module_elf): New variable
18157 (GRUB_MOD_INIT): Register freebsd_module_elf
18158 * loader/i386/bsd32.c: New file
18159 * loader/i386/bsd64.c: Likewise
18160 * loader/i386/bsdXX.c: Likewise
18161 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
18162 (grub_elf64_load): Likewise
18163 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
18165 (grub_elf64_load_hook_t): Likewise
18167 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
18169 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
18171 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
18172 don't write a menu entry for recovery mode.
18174 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18176 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
18177 after it's no longer needed.
18179 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18181 * include/grub/i386/loader.h (grub_linux_prot_size)
18182 (grub_linux_tmp_addr, grub_linux_real_addr)
18183 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
18184 GRUB_MACHINE_PCBIOS.
18185 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
18186 common grub_util_info() call to ...
18187 (generate_image): ... here.
18188 Fix use of uninitialized memory, comparison of signed with
18189 unsigned integers and memory leak.
18190 Remove bogus module address message.
18192 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18194 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
18196 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
18198 2009-06-19 Pavel Roskin <proski@gnu.org>
18200 * configure.ac: Remove stray AC_MSG_CHECKING.
18202 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
18204 * disk/scsi.c (grub_scsi_open): use continue instead of big if
18206 2009-06-18 Pavel Roskin <proski@gnu.org>
18208 * conf/common.rmk: Add fs_file.mod.
18209 * disk/fs_file.c: New file.
18210 * include/grub/disk.h (enum grub_disk_dev_id): Add
18211 GRUB_DISK_DEVICE_FILE_ID.
18213 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18215 Fix build with Apple's toolchain. Part 2
18217 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
18220 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18222 Fix build with Apple's toolchain. Part 1
18224 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
18226 * configure.ac: remove a leftover AC_MSG_RESULT
18227 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
18230 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18234 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
18235 (decomp_block): initialize ch
18236 use grub_memcpy instead of memcpy
18238 2009-06-17 Pavel Roskin <proski@gnu.org>
18240 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
18241 version, use declarations needed to use vga_text as the startup
18244 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
18245 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
18247 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
18248 and grub_at_keyboard_fini(), it's done on module load and
18251 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
18253 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
18254 file can't be found.
18255 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18257 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18259 Fix newline handling
18261 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
18262 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
18263 (grub_script_yylex): don't segfault on unterminated script
18264 newline terminates command and variable
18266 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18268 avoid double grub_adjust_range call. Bug reported by David Simner
18270 * kern/disk.c (grub_disk_write): change to raw disk access before
18273 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
18275 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
18276 spaces, for the benefit of help2man.
18277 * util/i386/efi/grub-mkimage.c (usage): Likewise.
18279 2009-06-16 Pavel Roskin <proski@gnu.org>
18281 * kern/i386/halt.c: Include grub/machine/init.h.
18282 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
18284 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
18286 * util/grub.d/30_os-prober.in: Use ${root} in the generated
18287 drivemap menuentry.
18289 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
18291 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
18294 2009-06-16 Pavel Roskin <proski@gnu.org>
18296 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
18297 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
18298 save %dx, we only need %dl and we never change it.
18299 * boot/i386/pc/cdboot.S: Don't set the root drive.
18300 * boot/i386/pc/pxeboot.S: Likewise.
18301 * include/grub/i386/pc/boot.h: Remove
18302 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
18303 GRUB_BOOT_MACHINE_DRIVE_CHECK.
18304 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
18305 * kern/i386/pc/init.c (make_install_device): Remove references
18306 to grub_root_drive.
18307 * kern/i386/pc/startup.S: Likewise.
18308 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
18310 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18314 * commands/xnu_uuid.c: new file
18315 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
18316 (xnu_uuid_mod_SOURCES): new variable
18317 (xnu_uuid_mod_CFLAGS): likewise
18318 (xnu_uuid_mod_LDFLAGS): likewise
18319 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18320 * conf/i386-ieee1275.rmk: likewise
18321 * conf/i386-pc.rmk: likewise
18322 * conf/powerpc-ieee1275.rmk: likewise
18323 * conf/sparc64-ieee1275.rmk: likewise
18324 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
18326 2009-06-16 Pavel Roskin <proski@gnu.org>
18328 * configure.ac: Avoid '==' in test command, it's not portable.
18330 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18334 * commands/probe.c: new file
18335 * conf/common.rmk (pkglib_MODULES): add probe.mod
18336 (probe_mod_SOURCES): new variable
18337 (probe_mod_CFLAGS): likewise
18338 (probe_mod_LDFLAGS): likewise
18339 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18340 * conf/i386-ieee1275.rmk: likewise
18341 * conf/i386-pc.rmk: likewise
18342 * conf/powerpc-ieee1275.rmk: likewise
18343 * conf/sparc64-ieee1275.rmk: likewise
18345 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
18347 Fix handling of string like \"hello\" and "a
18350 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
18351 (grub_script_yylex): fix parsing of quoting, escaping and newline
18353 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
18355 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
18358 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
18360 * util/grub-mkconfig.in: Fix parsing of --output option.
18362 2009-06-12 Pavel Roskin <proski@gnu.org>
18364 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
18365 genmk.rb don't need to be generated or installed.
18367 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
18369 * commands/i386/pc/drivemap_int13h.S: add more comments
18371 2009-06-11 Pavel Roskin <proski@gnu.org>
18373 * Makefile.in (uninstall): Uninstall manuals.
18375 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
18376 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
18377 and update-grub_lib in two places.
18378 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
18380 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
18381 a compiler warning.
18383 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
18384 `entry_lo' to fix variable shadowing.
18386 2009-06-11 Christian Franke <franke@computer.org>
18388 * kern/misc.c (__enable_execute_stack): Add missing return type
18389 to prevent gcc warning.
18391 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
18393 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
18395 2009-06-11 Pavel Roskin <proski@gnu.org>
18397 * Makefile.in: Don't rely on any scripts being executable.
18398 Always use $(SHELL) to run shell scripts.
18400 * configure.ac: Always define ___main if using -nostdlib. This
18401 fixes tests on Cygwin.
18403 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
18407 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
18408 is in bytes and not in blocks
18410 2009-06-11 Pavel Roskin <proski@gnu.org>
18412 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
18415 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
18417 * util/grub.d/30_os-prober.in: Fix a comment. Source
18418 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
18419 to set the root device. Place drivemap command in the generated
18422 2009-06-11 Pavel Roskin <proski@gnu.org>
18424 * configure.ac: Remove host_m32. Issues with 64-bit utilities
18425 have long been resolved.
18427 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
18429 * util/grub.d/10_linux.in: Capitalise "Linux".
18431 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
18433 2009-06-11 Pavel Roskin <proski@gnu.org>
18435 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
18436 fix a gcc warning and ensure that the function won't ever exit.
18438 * kern/i386/ieee1275/init.c: Add missing prototype for
18439 grub_stop_floppy().
18441 * loader/ieee1275/multiboot2.c [__i386__]: Include
18442 grub/cpu/multiboot.h.
18444 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
18445 casts to short - they are not portable and cause warnings. Fix
18446 use of uninitialized values in input_buf. Use ARRAY_SIZE.
18448 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
18452 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
18454 (grub_get_root_biosnumber_saved): new variable
18455 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
18456 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
18457 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
18458 %dx after the call if necessary
18459 * conf/common.rmk (pkglib_MODULES): remove boot.mod
18460 (boot_mod_SOURCES): remove
18461 (boot_mod_CFLAGS): remove
18462 (boot_mod_LDFLAGS): remove
18463 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
18464 (boot_mod_SOURCES): new variable
18465 (boot_mod_CFLAGS): likewise
18466 (boot_mod_LDFLAGS): likewise
18467 * conf/i386-efi.rmk: likewise
18468 * conf/i386-ieee1275.rmk: likewise
18469 * conf/i386-pc.rmk: likewise
18470 * conf/powerpc-ieee1275.rmk: likewise
18471 * conf/sparc64-ieee1275.rmk: likewise
18472 * conf/x86_64-efi.rmk: likewise
18473 * include/grub/i386/pc/biosnum.h: new file
18474 * lib/i386/pc/biosnum.c: likewise
18475 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
18476 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
18477 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
18479 2009-06-10 Pavel Roskin <proski@gnu.org>
18481 * io/gzio.c (test_header): Don't reuse one buffer for all data.
18482 Use separate variables. Read only the file size at the end, but
18483 not the checksum that we don't use.
18485 * kern/file.c (grub_file_read): Use void pointer for the buffer.
18486 Adjust all callers.
18488 * kern/ieee1275/openfw.c: Remove libc includes.
18489 * kern/ieee1275/cmain.c: Likewise.
18490 * include/grub/ieee1275/ieee1275.h: Likewise.
18492 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
18495 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
18497 * Makefile.in: Remove all trailing whitespace.
18498 * conf/i386-pc.rmk: Likewise.
18499 * conf/powerpc-ieee1275.rmk: Likewise.
18500 * conf/sparc64-ieee1275.rmk: Likewise.
18501 * docs/grub.texi: Likewise.
18502 * docs/texinfo.tex: Likewise.
18503 * disk/fs_uuid.c: Likewise.
18504 * disk/lvm.c: Likewise.
18505 * disk/scsi.c: Likewise.
18506 * disk/ata.c: Likewise.
18507 * disk/ieee1275/ofdisk.c: Likewise.
18508 * disk/i386/pc/biosdisk.c: Likewise.
18509 * disk/host.c: Likewise.
18510 * disk/raid.c: Likewise.
18511 * disk/efi/efidisk.c: Likewise.
18512 * disk/usbms.c: Likewise.
18513 * disk/memdisk.c: Likewise.
18514 * disk/loopback.c: Likewise.
18515 * kern/powerpc/dl.c: Likewise.
18516 * kern/device.c: Likewise.
18517 * kern/dl.c: Likewise.
18518 * kern/sparc64/dl.c: Likewise.
18519 * kern/ieee1275/ieee1275.c: Likewise.
18520 * kern/term.c: Likewise.
18521 * kern/fs.c: Likewise.
18522 * kern/i386/dl.c: Likewise.
18523 * kern/i386/pc/startup.S: Likewise.
18524 * kern/i386/pc/init.c: Likewise.
18525 * kern/i386/pc/mmap.c: Likewise.
18526 * kern/i386/pc/lzo1x.S: Likewise.
18527 * kern/i386/ieee1275/init.c: Likewise.
18528 * kern/i386/realmode.S: Likewise.
18529 * kern/i386/tsc.c: Likewise.
18530 * kern/partition.c: Likewise.
18531 * kern/corecmd.c: Likewise.
18532 * kern/file.c: Likewise.
18533 * kern/efi/efi.c: Likewise.
18534 * kern/efi/init.c: Likewise.
18535 * kern/efi/mm.c: Likewise.
18536 * kern/main.c: Likewise.
18537 * kern/err.c: Likewise.
18538 * kern/env.c: Likewise.
18539 * kern/disk.c: Likewise.
18540 * kern/generic/millisleep.c: Likewise.
18541 * kern/generic/rtc_get_time_ms.c: Likewise.
18542 * kern/misc.c: Likewise.
18543 * kern/parser.c: Likewise.
18544 * genmk.rb: Likewise.
18545 * configure.ac: Likewise.
18546 * boot/i386/pc/diskboot.S: Likewise.
18547 * boot/i386/pc/pxeboot.S: Likewise.
18548 * boot/i386/pc/boot.S: Likewise.
18549 * boot/i386/pc/lnxboot.S: Likewise.
18550 * boot/i386/pc/cdboot.S: Likewise.
18551 * parttool/pcpart.c: Likewise.
18552 * video/readers/tga.c: Likewise.
18553 * video/video.c: Likewise.
18554 * video/bitmap.c: Likewise.
18555 * lib/envblk.c: Likewise.
18556 * lib/i386/setjmp.S: Likewise.
18557 * fs/xfs.c: Likewise.
18558 * fs/afs.c: Likewise.
18559 * fs/fat.c: Likewise.
18560 * fs/ntfs.c: Likewise.
18561 * fs/udf.c: Likewise.
18562 * fs/affs.c: Likewise.
18563 * fs/iso9660.c: Likewise.
18564 * fs/hfs.c: Likewise.
18565 * fs/fshelp.c: Likewise.
18566 * fs/ext2.c: Likewise.
18567 * fs/jfs.c: Likewise.
18568 * fs/reiserfs.c: Likewise.
18569 * fs/hfsplus.c: Likewise.
18570 * fs/minix.c: Likewise.
18571 * fs/cpio.c: Likewise.
18572 * fs/sfs.c: Likewise.
18573 * fs/ufs.c: Likewise.
18574 * efiemu/prepare.c: Likewise.
18575 * efiemu/loadcore_common.c: Likewise.
18576 * efiemu/runtime/efiemu.sh: Likewise.
18577 * efiemu/runtime/efiemu.S: Likewise.
18578 * efiemu/runtime/efiemu.c: Likewise.
18579 * efiemu/pnvram.c: Likewise.
18580 * efiemu/main.c: Likewise.
18581 * efiemu/i386/pc/cfgtables.c: Likewise.
18582 * efiemu/i386/loadcore64.c: Likewise.
18583 * efiemu/i386/loadcore32.c: Likewise.
18584 * efiemu/loadcore.c: Likewise.
18585 * efiemu/symbols.c: Likewise.
18586 * efiemu/mm.c: Likewise.
18587 * include/grub/autoefi.h: Likewise.
18588 * include/grub/datetime.h: Likewise.
18589 * include/grub/term.h: Likewise.
18590 * include/grub/hfs.h: Likewise.
18591 * include/grub/lvm.h: Likewise.
18592 * include/grub/i386/tsc.h: Likewise.
18593 * include/grub/i386/linux.h: Likewise.
18594 * include/grub/i386/xnu.h: Likewise.
18595 * include/grub/i386/efiemu.h: Likewise.
18596 * include/grub/i386/pc/biosdisk.h: Likewise.
18597 * include/grub/i386/pc/memory.h: Likewise.
18598 * include/grub/i386/pc/vbe.h: Likewise.
18599 * include/grub/parttool.h: Likewise.
18600 * include/grub/video.h: Likewise.
18601 * include/grub/memory.h: Likewise.
18602 * include/grub/fs.h: Likewise.
18603 * include/grub/partition.h: Likewise.
18604 * include/grub/xnu.h: Likewise.
18605 * include/grub/efi/api.h: Likewise.
18606 * include/grub/efi/pe32.h: Likewise.
18607 * include/grub/efi/memory.h: Likewise.
18608 * include/grub/multiboot.h: Likewise.
18609 * include/grub/usbdesc.h: Likewise.
18610 * include/grub/multiboot2.h: Likewise.
18611 * include/grub/acpi.h: Likewise.
18612 * include/grub/efiemu/efiemu.h: Likewise.
18613 * include/grub/disk.h: Likewise.
18614 * include/grub/ieee1275/ieee1275.h: Likewise.
18615 * include/grub/net.h: Likewise.
18616 * include/grub/machoload.h: Likewise.
18617 * include/grub/macho.h: Likewise.
18618 * include/multiboot.h: Likewise.
18619 * genmoddep.awk: Likewise.
18620 * normal/main.c: Likewise.
18621 * normal/menu_entry.c: Likewise.
18622 * normal/menu_viewer.c: Likewise.
18623 * normal/completion.c: Likewise.
18624 * normal/cmdline.c: Likewise.
18625 * normal/misc.c: Likewise.
18626 * normal/datetime.c: Likewise.
18627 * bus/usb/usbtrans.c: Likewise.
18628 * bus/usb/ohci.c: Likewise.
18629 * bus/usb/uhci.c: Likewise.
18630 * bus/usb/usb.c: Likewise.
18631 * mmap/efi/mmap.c: Likewise.
18632 * mmap/i386/pc/mmap_helper.S: Likewise.
18633 * mmap/i386/pc/mmap.c: Likewise.
18634 * mmap/i386/mmap.c: Likewise.
18635 * mmap/i386/uppermem.c: Likewise.
18636 * mmap/mmap.c: Likewise.
18637 * commands/acpi.c: Likewise.
18638 * commands/echo.c: Likewise.
18639 * commands/blocklist.c: Likewise.
18640 * commands/loadenv.c: Likewise.
18641 * commands/usbtest.c: Likewise.
18642 * commands/boot.c: Likewise.
18643 * commands/parttool.c: Likewise.
18644 * commands/search.c: Likewise.
18645 * commands/cat.c: Likewise.
18646 * commands/i386/pc/play.c: Likewise.
18647 * commands/i386/pc/drivemap.c: Likewise.
18648 * commands/i386/pc/vbeinfo.c: Likewise.
18649 * commands/i386/pc/acpi.c: Likewise.
18650 * commands/i386/pc/vbetest.c: Likewise.
18651 * commands/ls.c: Likewise.
18652 * commands/cmp.c: Likewise.
18653 * commands/test.c: Likewise.
18654 * commands/efi/acpi.c: Likewise.
18655 * commands/gptsync.c: Likewise.
18656 * commands/help.c: Likewise.
18657 * partmap/amiga.c: Likewise.
18658 * partmap/apple.c: Likewise.
18659 * partmap/acorn.c: Likewise.
18660 * partmap/pc.c: Likewise.
18661 * partmap/sun.c: Likewise.
18662 * partmap/gpt.c: Likewise.
18663 * script/sh/lexer.c: Likewise.
18664 * script/sh/function.c: Likewise.
18665 * font/font.c: Likewise.
18666 * font/font_cmd.c: Likewise.
18667 * loader/powerpc/ieee1275/linux.c: Likewise.
18668 * loader/efi/chainloader.c: Likewise.
18669 * loader/multiboot_loader.c: Likewise.
18670 * loader/macho.c: Likewise.
18671 * loader/i386/multiboot.c: Likewise.
18672 * loader/i386/linux.c: Likewise.
18673 * loader/i386/pc/linux.c: Likewise.
18674 * loader/i386/pc/multiboot2.c: Likewise.
18675 * loader/i386/pc/chainloader.c: Likewise.
18676 * loader/i386/pc/xnu.c: Likewise.
18677 * loader/i386/bsd_trampoline.S: Likewise.
18678 * loader/i386/efi/linux.c: Likewise.
18679 * loader/i386/multiboot_elfxx.c: Likewise.
18680 * loader/i386/bsd_helper.S: Likewise.
18681 * loader/i386/bsd.c: Likewise.
18682 * loader/i386/linux_trampoline.S: Likewise.
18683 * loader/i386/xnu_helper.S: Likewise.
18684 * loader/i386/xnu.c: Likewise.
18685 * loader/i386/bsd_pagetable.c: Likewise.
18686 * loader/i386/multiboot_helper.S: Likewise.
18687 * loader/xnu.c: Likewise.
18688 * loader/xnu_resume.c: Likewise.
18689 * io/gzio.c: Likewise.
18690 * term/efi/console.c: Likewise.
18691 * term/terminfo.c: Likewise.
18692 * term/ieee1275/ofconsole.c: Likewise.
18693 * term/i386/pc/serial.c: Likewise.
18694 * term/i386/pc/vesafb.c: Likewise.
18695 * term/i386/pc/vga.c: Likewise.
18696 * term/usb_keyboard.c: Likewise.
18697 * term/gfxterm.c: Likewise.
18698 * aclocal.m4: Likewise.
18699 * util/lvm.c: Likewise.
18700 * util/grub.d/30_os-prober.in: Likewise.
18701 * util/grub.d/10_hurd.in: Likewise.
18702 * util/console.c: Likewise.
18703 * util/grub-macho2img.c: Likewise.
18704 * util/grub-probe.c: Likewise.
18705 * util/hostfs.c: Likewise.
18706 * util/i386/pc/grub-mkimage.c: Likewise.
18707 * util/i386/pc/grub-setup.c: Likewise.
18708 * util/i386/efi/grub-mkimage.c: Likewise.
18709 * util/grub-mkconfig.in: Likewise.
18710 * util/raid.c: Likewise.
18711 * util/resolve.c: Likewise.
18712 * util/grub-mkdevicemap.c: Likewise.
18713 * util/grub-emu.c: Likewise.
18714 * util/getroot.c: Likewise.
18715 * util/hostdisk.c: Likewise.
18716 * util/usb.c: Likewise.
18717 * util/grub-editenv.c: Likewise.
18718 * util/misc.c: Likewise.
18720 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
18722 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
18723 `genparttoollist.sh'.
18724 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
18725 Add `*.sh' to the list find searches for and change `mdate.sh'
18728 2009-06-10 Pavel Roskin <proski@gnu.org>
18730 * include/grub/multiboot2.h: Provide compatibility defines for
18732 * include/multiboot2.h: Include stdint.h only if needed, using
18734 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
18736 * loader/ieee1275/multiboot2.c: Likewise.
18737 * loader/multiboot2.c: Likewise.
18738 * loader/multiboot_loader.c: Likewise.
18740 * configure.ac: Use -nostdlib when probing for the target. It
18741 should not be required to have libc for the target.
18743 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
18744 they fail without libc headers for the target.
18745 * include/grub/powerpc/libgcc.h: Use weak attribute for all
18747 * include/grub/sparc64/libgcc.h: Likewise. Don't use
18748 preprocessor conditionals.
18750 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
18751 build system doesn't need to be aware of the tar.c internals.
18753 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
18755 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
18757 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
18759 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
18760 disk limit to 26 for IDE, Virtio, Xen and SCSI.
18762 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
18764 * util/i386/pc/grub-install.in: Change the error message if UUIDs
18765 aren't available if ata.mod gets used.
18767 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
18769 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
18770 initialising controller.
18771 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18773 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18775 * util/i386/pc/grub-install.in: Add a parameter --disk-module
18776 to choose between ata and biosdisk module on i386-pc.
18778 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
18780 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
18781 Subclass and Programming Interface fields in terms of the 3 byte
18782 Class Code register.
18783 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18785 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
18786 interface is OHCI. Add grub_dprintf for symmetry with
18788 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
18789 interface is UHCI. Add interf variable for programming
18790 interface. Print interface with class/subclass.
18792 * bus/usb/ohci.c: Set interf with correct field.
18794 * bus/usb/uhci.c: Remove unneeded doubled lines.
18795 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
18796 Remove whitespace inside comment.
18798 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
18800 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
18801 as fallback an equivalent option without depth.
18803 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
18805 Not fail if unable to retrieve C/H/S on LBA disks
18807 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
18808 if unable to retrieve C/H/S on LBA disks
18810 2009-06-08 Pavel Roskin <proski@gnu.org>
18812 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
18815 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18817 * Makefile.in (uninstall): Remove all $lib_DATA files.
18819 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
18821 Bugfix: install on partitionless device
18823 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
18826 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18828 * Makefile.in (uninstall): Remove all $include_DATA files.
18830 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
18832 * commands/true.c: New file. Implement the true and false commands.
18833 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
18834 (true_mod_SOURCES): New variable.
18835 (true_mod_CFLAGS): Likewise.
18836 (true_mod_LDFLAGS): Likewise.
18838 2009-06-05 Colin D Bennett <colin@gibibit.com>
18840 Optimized font character lookup using binary search instead of linear
18841 search. Fonts now are required to have the character index ordered by
18844 * font/font.c (load_font_index): Verify that fonts have ordered
18846 (find_glyph): Use binary search instead of linear search to find a
18847 character in a font.
18849 2009-06-05 Michael Scherer <misc@mandriva.org>
18851 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
18852 uses case sensitive btree.
18853 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
18854 only for case insensitive filesystems.
18856 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
18858 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
18859 * conf/common.rmk (search_mod_CFLAGS): likewise
18861 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18863 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
18864 compensate a compiler bug
18866 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18868 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
18871 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18873 Definitions for creating asm symbols with Apple's CC
18875 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
18876 [APPLE_CC] (VARIABLE): likewise
18878 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18880 Disable lnxboot.img when compiled
18883 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
18884 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
18885 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
18886 [! APPLE_CC] (CODE_LENG): skip
18887 [! APPLE_CC] (setup_sects): likewise
18888 [! APPLE_CC]: skip filling
18890 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18892 Address in trampolines based on 32-bit registers when compiled
18895 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
18897 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
18899 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18901 Avoid aliases when compiling with Apple's CC for PCBIOS machine
18903 * kern/misc.c [APPLE_CC] (memcpy): new function
18904 [APPLE_CC] (memmove): likewise
18905 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
18906 (memcpy): define alias conditionally on !APPLE_CC
18909 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
18910 APPLE_CC are defined
18911 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
18912 (grub_assert_fail): make prototype conditional
18914 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18916 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
18918 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
18920 (CLEANFILES): add grub-macho2img
18921 (grub_macho2img_SOURCES): new variable
18922 * kern/i386/pc/startup.S (bss_start): new variable
18923 (bss_end): likewise
18924 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
18925 * util/grub-macho2img.c: new file
18927 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18929 Use objconv when compiling with Apple's CC
18931 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
18932 (efiemu64.o): likewise
18933 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
18934 when compiling with Apple's CC
18935 (efiemu64_s.o): likewise
18936 * configure.ac: check for objconv when compiling with Apple's CC
18937 * genmk.rb: use objconv for modules when compiled with Apple's CC
18939 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18941 Define segment as well as section when compiling with
18944 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
18945 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
18946 (efiemu_convert_pointer): likewise
18947 (efiemu_set_virtual_address_map): likewise
18948 (efiemu_convert_pointer): likewise
18949 (efiemu_getcrc32): likewise
18950 (init_crc32_table): likewise
18951 (reflect): likewise
18952 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
18953 (GRUB_MOD_DEP): likewise
18955 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18957 Allow a compilation without -mcmodel=large
18959 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
18960 when compiled without -mcmodel=large
18961 (filter_memory_map): remove memory post 4 GiB when compiled
18962 without -mcmodel=large
18963 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
18964 TARGET_CFLAGS when -mcmodel=large isn't supported
18966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18968 Remove nested functions in efiemu core
18970 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
18972 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18974 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
18976 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
18978 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
18980 (grub_cpu_is_tsc_supported): likewise
18981 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
18983 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18985 Absolute addressing through constant with Apple's cc
18987 * kern/i386/pc/startup.S: Define necessary constants
18988 and address through it when using ABS with Apple's CC
18989 * boot/i386/pc/diskboot.S: likewise
18990 * boot/i386/pc/boot.S: likewise
18991 * boot/i386/pc/lnxboot.S: likewise
18992 * boot/i386/pc/cdboot.S: likewise
18993 * mmap/i386/pc/mmap_helper.S: likewise
18994 * commands/i386/pc/drivemap_int13h.S: likewise
18996 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
18998 Check if compiler is apple cc
19000 * Makefile.in (ASFLAGS): new variable
19001 (TARGET_ASFLAGS): likewise
19002 (TARGET_MODULE_FORMAT): likewise
19003 (TARGET_APPLE_CC): likewise
19004 (OBJCONV): likewise
19005 (TARGET_IMG_CFLAGS): likewise
19006 (TARGET_CPPFLAGS): add includedir
19007 * configure.ac: call grub_apple_cc and grub_apple_target_cc
19008 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
19009 Check for linker script only if compiler isn't Apple's CC
19010 (TARGET_MODULE_FORMAT): set
19011 (TARGET_APPLE_CC): likewise
19012 (TARGET_ASFLAGS): likewise
19013 (ASFLAGS): likewise
19014 Check for objcopy only if compiler isn't Apple's CC
19015 Check for BSS symbol only if compiler isn't Apple's CC
19016 * genmk.rb: adapt nm options if we use Apple's utils
19017 * aclocal.m4 (grub_apple_cc): new test
19018 (grub_apple_target_cc): likewise
19020 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19022 Simplify sed expressions and improve awk
19024 * Makefile.in (install-local): simplify sed expression
19025 * gencmdlist.sh: likewise
19026 * genmoddep.awk: avoid adding module as a dependency of itself
19028 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19030 Add missing start symbols
19032 * boot/i386/pc/boot.S: add start
19033 * boot/i386/pc/pxeboot.S: likewise
19035 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19037 Fix wrong assumptions with grub-mkimage on EFI
19039 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
19040 (relocate_addresses): consider both r_addend and value at offset
19041 (make_mods_section): zerofill modinfo and header
19042 (convert_elf): write prefix here
19044 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19046 Use .asciz instead of .string
19048 * i386/pc/diskboot.S: use .asciz instead of .string
19049 * i386/pc/boot.S: likewise
19050 * include/grub/dl.h (GRUB_MOD_DEP): likewise
19051 (GRUB_MOD_NAME): likewise
19053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19057 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
19058 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
19059 (grub_video_setup): remove
19060 (grub_video_set_mode): new prototype
19061 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
19063 (linux_vesafb_res): compile only on PCBIOS
19064 (grub_linux_boot): support gfxpayload
19065 * loader/i386/pc/xnu.c (video_hook): new function
19066 (grub_xnu_set_video): support gfxpayload
19067 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
19068 (DEFAULT_VIDEO_HEIGHT): likewise
19069 (DEFAULT_VIDEO_FLAGS): likewise
19070 (DEFAULT_VIDEO_MODE): new definition
19071 (video_hook): new function
19072 (grub_gfxterm_init): use grub_video_set_mode
19073 * util/grub.d/30_os-prober.in: remove explicit modesetting before
19075 * video/video.c (grub_video_setup): removed
19076 (grub_video_set_mode): new function based on grub_gfxterm_init and
19079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19081 Avoid calling biosdisk in drivemap
19083 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
19084 (revparse_biosdisk): likewise
19085 (list_mappings): derive name from id directly
19086 (grub_cmd_drivemap): use tryparse_diskstring
19088 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19092 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
19093 (grub_lexer_param): add tokenonhold
19094 (grub_script_create_cmdline): remove cmdline. All callers updated
19095 (grub_script_function_create): make functionname
19096 grub_script_arg. All callers updated
19097 (grub_script_execute_argument_to_string): new prototype
19098 * kern/parser.c (state_transitions): reorder
19099 (grub_parser_cmdline_state): fix a bug and make more compact
19100 * script/sh/execute.c (grub_script_execute_argument_to_string):
19102 (grub_script_execute_cmdline): use new format
19103 * script/sh/function.c (grub_script_function_create): make functionname
19104 grub_script_arg. All callers updated
19105 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
19106 (grub_script_yylex): remove
19107 (grub_script_yylex2): renamed to ...
19108 (grub_script_yylex): ...renamed
19109 parse the expressions like a${b}c
19110 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
19111 (GRUB_PARSER_TOKEN_VAR): remove
19112 (GRUB_PARSER_TOKEN_NAME): likewise
19113 ("if"): declare as typeless
19114 ("while"): likewise
19115 ("function"): likewise
19120 (argument): likewise
19121 (script): accept empty scripts and make exit on error
19122 (arguments): use GRUB_PARSER_TOKEN_ARG
19123 (function): likewise
19124 (command): move error handling to script
19125 (menuentry): move grub_script_lexer_ref before
19126 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
19127 argument. All callers updated
19129 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19131 Prevent GRUB from probing floppies during boot.
19133 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
19134 * commands/search.c (options): Add --no-floppy.
19135 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
19136 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
19137 --no-floppy when searching for UUIDs.
19139 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19141 Simplify the code duplication in commands/search.c.
19143 * commands/search.c (search_label, search_fs_uuid): Merge into ...
19144 (search_fs): ... this. Update all users.
19146 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
19148 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
19150 2009-05-28 Pavel Roskin <proski@gnu.org>
19152 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
19153 Remove the original symlink explicitly.
19155 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
19156 just one slash. That's how grub_fshelp_find_file() does it.
19158 2009-05-26 Pavel Roskin <proski@gnu.org>
19160 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
19163 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
19166 2009-05-25 Christian Franke <franke@computer.org>
19168 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
19170 (grub_atapi_identify): Add wait after drive select.
19171 (grub_ata_identify): Do more strict status register check before
19172 calling grub_atapi_identify (). Suppress error message if status
19173 register is 0x00 after command failure. Add status register
19174 check after PIO read to avoid bogus identify due to stuck DRQ.
19175 Thanks to Pavel Roskin for testing.
19176 (grub_device_initialize): Remove unsafe status register check.
19177 Thanks to 'phcoder' for problem report and patch.
19178 Prevent sign extension in debug message.
19180 2009-05-23 Colin D Bennett <colin@gibibit.com>
19182 Cleaned up `include/grub/normal.h'. Grouped prototypes by
19183 definition file, and functions defined in `normal/menu.c' have had
19184 their prototypes moved to `include/grub/menu.h' for consistency.
19186 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
19188 (grub_menu_get_entry): Likewise.
19189 (grub_menu_get_timeout): Likewise.
19190 (grub_menu_set_timeout): Likewise.
19191 (grub_menu_execute_entry): Likewise.
19192 (grub_menu_execute_with_fallback): Likewise.
19193 (grub_menu_entry_run): Likewise.
19195 * include/grub/normal.h: Re-ordered and grouped function
19196 prototypes by file that the function is defined in.
19197 (grub_menu_execute_callback): Removed; moved to menu.h.
19198 (grub_menu_get_entry): Likewise.
19199 (grub_menu_get_timeout): Likewise.
19200 (grub_menu_set_timeout): Likewise.
19201 (grub_menu_execute_entry): Likewise.
19202 (grub_menu_execute_with_fallback): Likewise.
19203 (grub_menu_entry_run): Likewise.
19204 (grub_menu_addentry): Renamed from this ...
19205 (grub_normal_add_menu_entry): ... to this.
19207 * normal/main.c (grub_menu_addentry): Renamed from this ...
19208 (grub_normal_add_menu_entry): ... to this.
19210 * script/sh/execute.c (grub_script_execute_menuentry): Update
19211 reference to renamed grub_menu_addentry function.
19213 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
19215 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
19217 2009-05-22 Pavel Roskin <proski@gnu.org>
19219 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
19220 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
19221 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
19222 compiling for the i386 targets, but not for the utilities.
19224 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
19226 (grub_root_drive): Likewise.
19227 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
19229 (grub_root_drive): Change size to byte.
19230 (grub_start_addr): Remove.
19231 (grub_end_addr): Likewise.
19232 (grub_apm_bios_info): Likewise.
19234 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
19236 * normal/i386: Remove.
19237 * normal/powerpc: Likewise.
19238 * normal/sparc64: Likewise.
19239 * normal/x86_64: Likewise.
19241 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19243 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
19244 * loader/i386/linux_trampoline.S: Fix indentation
19245 * loader/i386/xnu_helper.S: Likewise
19247 2009-05-18 Colin D Bennett <colin@gibibit.com>
19249 Display error messages when parsing a Lua statement fails.
19250 Previously, executing a syntactically invalid statement like
19251 ")foo" or "bar;" would silently fail.
19253 * script/lua/grub_main.c (handle_lua_error): New function.
19254 (grub_lua_parse_line): Improved reporting of Lua parser and
19257 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19259 Remove -Werror which causes build to fail on some systems
19261 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
19262 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
19263 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
19265 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19267 trampoline for linux on 64-bit platform
19269 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
19270 loader/i386/efi/linux_trampoline.S
19271 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
19273 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
19275 * loader/i386/linux_trampoline.S: moved here
19276 * loader/i386/efi/linux.c (allocate_pages): reserve space for
19278 (jumpvector): removed
19279 (grub_linux_trampoline_start): new declaration
19280 (grub_linux_trampoline_end): likewise
19281 (grub_linux_boot): use trampoline when on 64-bit platform
19282 * loader/i386/linux.c: likewise
19284 2009-05-16 Pavel Roskin <proski@gnu.org>
19286 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
19287 const to avoid a warning.
19288 (grub_lua_setenv): Likewise.
19289 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
19290 lmsg to fix a warning.
19292 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
19294 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
19295 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19296 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
19297 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19298 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19299 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19300 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19301 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19303 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
19305 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
19307 2009-05-16 Bean <bean123ch@gmail.com>
19309 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
19310 (lua_mod_SOURCES): New variable.
19311 (lua_mod_CFLAGS): Likewise.
19312 (lua_mod_LDFLAGS): Likewise.
19314 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
19315 (setjmp_mod_SOURCES): New variable.
19316 (setjmp_mod_CFLAGS): Likewise.
19317 (setjmp_LDFLAGS): Likewise.
19319 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
19320 (setjmp_mod_SOURCES): New variable.
19321 (setjmp_mod_CFLAGS): Likewise.
19322 (setjmp_LDFLAGS): Likewise.
19324 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19325 (setjmp_mod_SOURCES): New variable.
19326 (setjmp_mod_CFLAGS): Likewise.
19327 (setjmp_LDFLAGS): Likewise.
19329 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19330 (setjmp_mod_SOURCES): New variable.
19331 (setjmp_mod_CFLAGS): Likewise.
19332 (setjmp_LDFLAGS): Likewise.
19334 * normal/i386/setjmp.S: Moved from here ...
19335 * lib/i386/setjmp.S: ... Moved here
19336 * normal/x86_64/setjmp.S: Moved from here ...
19337 * lib/x86_64/setjmp.S: ... Moved here
19338 * normal/powerpc/setjmp.S: Moved from here ...
19339 * lib/powerpc/setjmp.S: ... Moved here
19340 * normal/sparc64/setjmp.S: Moved from here ...
19341 * lib/sparc64/setjmp.S: ... Moved here
19343 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
19344 returns_twice in mingw.
19346 * script/lua/grub_lib.c: New file.
19347 * script/lua/grub_lib.h: Likewise.
19348 * script/lua/grub_lua.h: Likewise.
19349 * script/lua/grub_main.c: Likewise.
19350 * script/lua/lapi.c: Likewise.
19351 * script/lua/lapi.h: Likewise.
19352 * script/lua/lauxlib.c: Likewise.
19353 * script/lua/lauxlib.h: Likewise.
19354 * script/lua/lbaselib.c: Likewise.
19355 * script/lua/lcode.c: Likewise.
19356 * script/lua/lcode.h: Likewise.
19357 * script/lua/ldblib.c: Likewise.
19358 * script/lua/ldebug.c: Likewise.
19359 * script/lua/ldebug.h: Likewise.
19360 * script/lua/ldo.c: Likewise.
19361 * script/lua/ldo.h: Likewise.
19362 * script/lua/ldump.c: Likewise.
19363 * script/lua/lfunc.c: Likewise.
19364 * script/lua/lfunc.h: Likewise.
19365 * script/lua/lgc.c: Likewise.
19366 * script/lua/lgc.h: Likewise.
19367 * script/lua/linit.c: Likewise.
19368 * script/lua/liolib.c: Likewise.
19369 * script/lua/llex.c: Likewise.
19370 * script/lua/llex.h: Likewise.
19371 * script/lua/llimits.h: Likewise.
19372 * script/lua/lmathlib.c: Likewise.
19373 * script/lua/lmem.c: Likewise.
19374 * script/lua/lmem.h: Likewise.
19375 * script/lua/loadlib.c: Likewise.
19376 * script/lua/lobject.c: Likewise.
19377 * script/lua/lobject.h: Likewise.
19378 * script/lua/lopcodes.c: Likewise.
19379 * script/lua/lopcodes.h: Likewise.
19380 * script/lua/loslib.c: Likewise.
19381 * script/lua/lparser.c: Likewise.
19382 * script/lua/lparser.h: Likewise.
19383 * script/lua/lstate.c: Likewise.
19384 * script/lua/lstate.h: Likewise.
19385 * script/lua/lstring.c: Likewise.
19386 * script/lua/lstring.h: Likewise.
19387 * script/lua/lstrlib.c: Likewise.
19388 * script/lua/ltable.c: Likewise.
19389 * script/lua/ltable.h: Likewise.
19390 * script/lua/ltablib.c: Likewise.
19391 * script/lua/ltm.c: Likewise.
19392 * script/lua/ltm.h: Likewise.
19393 * script/lua/lua.h: Likewise.
19394 * script/lua/luaconf.h: Likewise.
19395 * script/lua/lualib.h: Likewise.
19396 * script/lua/lundump.c: Likewise.
19397 * script/lua/lundump.h: Likewise.
19398 * script/lua/lvm.c: Likewise.
19399 * script/lua/lvm.h: Likewise.
19400 * script/lua/lzio.c: Likewise.
19401 * script/lua/lzio.h: Likewise.
19403 2009-05-16 Bean <bean123ch@gmail.com>
19405 * include/grub/kernel.h (grub_module_header_types): Add type
19408 * kern/main.c (grub_load_config): New function.
19409 (grub_main): Call grub_load_config to read boot config.
19411 * grub-mkimage (generate_image): New parameter config_path.
19412 (options): New option --config.
19413 (main): Parse --config option, and pass it to generate_image.
19415 2009-05-14 Christian Franke <franke@computer.org>
19417 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
19418 This fixes build on Cygwin.
19420 2009-05-14 Pavel Roskin <proski@gnu.org>
19422 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
19423 jump. This saves two bytes, so the typical case of 2 swapped
19424 drives would fit 32 bytes.
19426 2009-05-13 Pavel Roskin <proski@gnu.org>
19428 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
19429 grub_uint32_t to avoid a warning.
19431 * loader/i386/linux.c (allocate_pages): When assigning
19432 real_mode_mem, cast through grub_size_t to fix a warning. The
19433 code already makes sure that the value would fit a pointer.
19434 (grub_linux_setup_video): Cast render_target->data to
19435 grub_size_t to fix a warning.
19437 2009-05-13 Javier Martín <lordhabbit@gmail.com>
19439 * commands/i386/pc/drivemap.c: New file - implement drivemap
19441 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
19442 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
19444 2009-05-13 Pavel Roskin <proski@gnu.org>
19446 * util/i386/pc/grub-setup.c (setup): Remove unused variable
19447 embedding_area_exists.
19449 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
19451 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
19452 it easier to understand / work with.
19453 Improve warning messages for cases where there's no embedding area,
19454 or when it is too small (or core.img too large).
19456 2009-05-13 Pavel Roskin <proski@gnu.org>
19458 * loader/i386/pc/multiboot2.c: Add necessary includes for
19459 grub_multiboot2_real_boot().
19461 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
19462 PX record is always little-endian. We only need the lower 2
19465 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
19466 facilitate code reuse.
19467 (grub_cpio_mount): Use "struct head", not a char buffer. This
19468 fixes a warning reported by gcc 4.4.
19470 * kernel/disk.c (grub_disk_read): Use void pointer for the
19472 (grub_disk_write): Use const void pointer for the buffer.
19473 Adjust all callers. Remove unnecessary casts.
19475 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
19477 * util/i386/pc/grub-install.in: Update copyright year.
19479 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19483 * commands/gptsync.c: new file
19484 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
19485 (gptsync_mod_SOURCES): new variable
19486 (gptsync_mod_CFLAGS): likewise
19487 (gptsync_mod_LDFLAGS): likewise
19488 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
19490 (GRUB_PC_PARTITION_TYPE_HFS): likewise
19491 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
19492 * conf/i386-ieee1275.rmk: likewise
19493 * conf/i386-pc.rmk: likewise
19494 * conf/powerpc-ieee1275.rmk: likewise
19496 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19500 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
19501 (grub_dl_ref): likewise
19503 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
19505 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
19506 split in two functions (one for msdos and one for gpt).
19508 2009-05-08 Pavel Roskin <proski@gnu.org>
19510 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
19513 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
19514 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
19515 Initialize them with -1. Add sanity check for bad1. Eliminate
19518 2009-05-08 David S. Miller <davem@davemloft.net>
19520 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
19522 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
19524 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
19527 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
19529 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19530 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
19532 2009-05-05 David S. Miller <davem@davemloft.net>
19534 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
19536 2009-05-05 Pavel Roskin <proski@gnu.org>
19538 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
19539 of grub_dl_ref() and grub_dl_unref().
19540 * commands/parttool.c: Remove preprocessor conditionals around
19541 grub_dl_ref() and grub_dl_unref().
19542 * fs/affs.c: Likewise.
19543 * fs/afs.c: Likewise.
19544 * fs/cpio.c: Likewise.
19545 * fs/ext2.c: Likewise.
19546 * fs/fat.c: Likewise.
19547 * fs/hfs.c: Likewise.
19548 * fs/hfsplus.c: Likewise.
19549 * fs/iso9660.c: Likewise.
19550 * fs/jfs.c: Likewise.
19551 * fs/minix.c: Likewise.
19552 * fs/ntfs.c: Likewise.
19553 * fs/reiserfs.c: Likewise.
19554 * fs/sfs.c: Likewise.
19555 * fs/udf.c: Likewise.
19556 * fs/ufs.c: Likewise.
19557 * fs/xfs.c: Likewise.
19558 * include/grub/dl.h: Likewise.
19559 * loader/xnu.c: Likewise.
19561 2009-05-04 Pavel Roskin <proski@gnu.org>
19563 * commands/acpi.c: Remove unused variable my_mod.
19564 * partmap/amiga.c: Likewise.
19565 * partmap/apple.c: Likewise.
19566 * partmap/gpt.c: Likewise.
19567 * partmap/pc.c: Likewise.
19568 * partmap/sun.c: Likewise.
19569 * term/gfxterm.c: Likewise.
19570 * term/i386/pc/vesafb.c: Likewise.
19571 * term/i386/pc/vga.c: Likewise.
19573 2009-05-04 David S. Miller <davem@davemloft.net>
19575 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
19576 pointer args to grub_ieee1275_get_property().
19578 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
19580 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
19581 devices, and do not traverse down under controller nodes.
19583 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
19584 (grub_ofdisk_open): Use it to un-escape "," characters.
19585 * kern/disk.c (find_part_sep): New.
19586 (grub_disk_open): Use it to find the first non-escaped ','
19587 character in the disk name.
19588 * util/ieee1275/devicemap.c (escape_of_path): New.
19589 (grub_util_emit_devicemap_entry): Use it.
19590 * util/sparc64/ieee1275/grub-install.in: Update script to
19591 strip partition specifiers properly by not triggering on
19592 '\' escaped ',' characters.
19594 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19596 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
19598 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
19600 (linux_vesafb_modes): Add a lot of additional modes to the list (based
19601 on documentation from Wikipedia).
19603 2009-05-04 Pavel Roskin <proski@gnu.org>
19605 * disk/ata.c: Spelling fixes.
19606 * disk/raid.c: Likewise.
19607 * disk/usbms.c: Likewise.
19608 * disk/dmraid_nvidia.c: Likewise.
19609 * kern/ieee1275/openfw.c: Likewise.
19610 * kern/ieee1275/init.c: Likewise.
19611 * kern/ieee1275/cmain.c: Likewise.
19612 * boot/i386/pc/cdboot.S: Likewise.
19613 * video/readers/png.c: Likewise.
19614 * video/i386/pc/vbe.c: Likewise.
19615 * fs/udf.c: Likewise.
19616 * fs/hfs.c: Likewise.
19617 * fs/reiserfs.c: Likewise.
19618 * efiemu/runtime/efiemu.c: Likewise.
19619 * efiemu/main.c: Likewise.
19620 * efiemu/mm.c: Likewise.
19621 * include/grub/elf.h: Likewise.
19622 * include/grub/xnu.h: Likewise.
19623 * include/grub/usbdesc.h: Likewise.
19624 * include/grub/usb.h: Likewise.
19625 * include/grub/script_sh.h: Likewise.
19626 * include/grub/lib/LzmaEnc.h: Likewise.
19627 * include/grub/efiemu/efiemu.h: Likewise.
19628 * include/grub/command.h: Likewise.
19629 * normal/menu.c: Likewise.
19630 * normal/main.c: Likewise.
19631 * normal/datetime.c: Likewise.
19632 * bus/usb/uhci.c: Likewise.
19633 * mmap/i386/uppermem.c: Likewise.
19634 * mmap/mmap.c: Likewise.
19635 * commands/acpi.c: Likewise.
19636 * commands/test.c: Likewise.
19637 * partmap/apple.c: Likewise.
19638 * font/font.c: Likewise.
19639 * loader/sparc64/ieee1275/linux.c: Likewise.
19640 * loader/macho.c: Likewise.
19641 * loader/i386/bsd_trampoline.S: Likewise.
19642 * loader/i386/bsd.c: Likewise.
19643 * loader/xnu.c: Likewise.
19644 * term/i386/pc/vesafb.c: Likewise.
19645 * term/usb_keyboard.c: Likewise.
19646 * util/resolve.c: Likewise.
19647 * util/getroot.c: Likewise.
19649 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
19651 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
19653 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19655 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
19658 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19660 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
19661 parameter only available on BIOS.
19663 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19665 Removed wrong semicolon in declaration
19667 * grub/misc.h (grub_dprintf): remove semicolon
19669 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19671 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
19672 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
19673 is done by grub_cmd_linux() now).
19674 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
19675 restore video to text mode.
19676 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
19677 indicates lack of "vga=" parameter. "vga=0" is mapped to
19678 `GRUB_LINUX_VID_MODE_NORMAL'.
19680 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
19682 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
19683 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
19684 and `normal/script.c'. Add `kern/rescue_reader.c',
19685 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
19686 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
19687 `grub_script.tab.c'.
19689 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19690 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19692 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19693 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19695 * Makefile.in: Remove duplicated 2008 in Copyright line.
19697 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19699 * util/misc.c (grub_util_warn): New function. Emits a warning
19701 * include/grub/util/misc.h (grub_util_warn): New declaration.
19703 * util/i386/pc/grub-install.in: Understand --force and pass it down
19706 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
19708 (setup): Improve error messages and add warnings when requested to
19709 install in odd layouts. Refuse to install using blocklists unless
19712 2009-05-04 martin f. krafft <madduck@madduck.net>
19714 * disk/raid.c (grub_raid_scan_device): Improve debug message.
19716 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19718 Updated copyright year
19720 * fs/hfsplus.c: updated copyright year
19722 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19726 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
19727 in the space previously used by unused3
19728 (grub_hfsplus_uuid): new function
19729 (grub_hfsplus_fs): added uuid field
19731 2009-05-03 Pavel Roskin <proski@gnu.org>
19733 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
19734 suppress warnings. It's no longer needed.
19735 * disk/host.c: Likewise.
19736 * disk/ata_pthru.c: Likewise.
19737 * disk/loopback.c: Likewise.
19738 * hook/datehook.c: Likewise.
19739 * parttool/pcpart.c: Likewise.
19740 * fs/i386/pc/pxe.c: Likewise.
19741 * fs/ntfscomp.c: Likewise.
19742 * efiemu/main.c: Likewise.
19743 * mmap/mmap.c: Likewise.
19744 * commands/crc.c: Likewise.
19745 * commands/hexdump.c: Likewise.
19746 * commands/hdparm.c: Likewise.
19747 * commands/acpi.c: Likewise.
19748 * commands/echo.c: Likewise.
19749 * commands/minicmd.c: Likewise.
19750 * commands/blocklist.c: Likewise.
19751 * commands/memrw.c: Likewise.
19752 * commands/loadenv.c: Likewise.
19753 * commands/usbtest.c: Likewise.
19754 * commands/lsmmap.c: Likewise.
19755 * commands/boot.c: Likewise.
19756 * commands/parttool.c: Likewise.
19757 * commands/configfile.c: Likewise.
19758 * commands/search.c: Likewise.
19759 * commands/ieee1275/suspend.c: Likewise.
19760 * commands/cat.c: Likewise.
19761 * commands/i386/pc/pxecmd.c: Likewise.
19762 * commands/i386/pc/play.c: Likewise.
19763 * commands/i386/pc/halt.c: Likewise.
19764 * commands/i386/pc/vbeinfo.c: Likewise.
19765 * commands/i386/pc/vbetest.c: Likewise.
19766 * commands/lspci.c: Likewise.
19767 * commands/date.c: Likewise.
19768 * commands/handler.c: Likewise.
19769 * commands/ls.c: Likewise.
19770 * commands/test.c: Likewise.
19771 * commands/cmp.c: Likewise.
19772 * commands/efi/loadbios.c: Likewise.
19773 * commands/efi/fixvideo.c: Likewise.
19774 * commands/halt.c: Likewise.
19775 * commands/help.c: Likewise.
19776 * commands/reboot.c: Likewise.
19777 * hello/hello.c: Likewise.
19778 * script/sh/main.c: Likewise.
19779 * loader/xnu.c: Likewise.
19780 * term/terminfo.c: Likewise.
19781 * term/i386/pc/serial.c: Likewise.
19782 * term/usb_keyboard.c: Likewise.
19784 2009-05-03 David S. Miller <davem@davemloft.net>
19786 * normal/menu.c: Include grub/parser.h
19788 2009-05-03 Pavel Roskin <proski@gnu.org>
19790 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
19792 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
19793 Suggested by Javier Martín <lordhabbit@gmail.com>
19795 * util/i386/pc/grub-mkrescue.in: Allow for the case when
19796 efiemu??.o doesn't exist.
19797 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
19800 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
19802 FreeBSD 64-bit support
19804 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
19805 and loader/i386/bsd_trampoline.S
19806 (bsd_mod_ASFLAGS): new variable
19807 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
19808 (FREEBSD_MODTYPE_KERNEL64): likewise
19809 (grub_bsd64_trampoline_start): likewise
19810 (grub_bsd64_trampoline_end): likewise
19811 (grub_bsd64_trampoline_selfjump): likewise
19812 (grub_bsd64_trampoline_gdt): likewise
19813 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
19814 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
19815 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
19816 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
19817 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
19819 * loader/i386/bsd_pagetable.c: new file
19820 * loader/i386/bsd_trampoline.S: likewise
19821 * loader/i386/bsd.c (ALIGN_QWORD): new macro
19822 (ALIGN_VAR): likewise
19823 (entry_hi): new variable
19824 (kern_end_mdofs): likewise
19825 (is_64bit): likewise
19826 (grub_freebsd_add_meta): use ALIGN_VAR
19827 (grub_e820_mmap): new declaration
19828 (grub_freebsd_add_mmap): new function
19829 (grub_freebsd_add_meta_module): support 64 bit kernels
19830 (grub_freebsd_list_modules): use ALIGN_VAR
19831 (gdt_descriptor): new declaration
19832 (grub_freebsd_boot): support 64 bit kernels
19833 (grub_bsd_elf64_hook): new function
19834 (grub_bsd_load_elf): support elf64
19836 2009-05-03 Bean <bean123ch@gmail.com>
19838 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
19839 after we get the result of if statement.
19841 2009-05-03 Bean <bean123ch@gmail.com>
19843 * Makefile.in (enable_efiemu): New variable.
19845 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
19847 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
19849 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
19850 path, add -mno-red-zone option.
19851 (efiemu64_s.o): Likewise.
19852 (efiemu64.o): Use macro $^ for source file.
19854 * configure.ac (--enable-efiemu): New option.
19856 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
19860 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
19861 (pkglib_MODULES): add xnu.mod
19862 (xnu_mod_SOURCES): new variable
19863 (xnu_mod_CFLAGS): likewise
19864 (xnu_mod_LDFLAGS): likewise
19865 (xnu_mod_ASFLAGS): likewise
19866 * conf/i386-pc.rmk: likewise
19867 * conf/x86_64-efi.rmk: likewise
19868 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
19870 * include/grub/i386/macho.h: new file
19871 * include/grub/i386/xnu.h: likewise
19872 * include/grub/macho.h: likewise
19873 * include/grub/machoload.h: likewise
19874 * include/grub/x86_64/macho.h: likewise
19875 * include/grub/x86_64/xnu.h: likewise
19876 * include/grub/xnu.h: likewise
19877 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
19878 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
19879 * loader/i386/efi/xnu.c: new file
19880 * loader/i386/pc/xnu.c: likewise
19881 * loader/i386/xnu.c: likewise
19882 * loader/i386/xnu_helper.S: likewise
19883 * loader/macho.c: likewise
19884 * loader/xnu.c: likewise
19885 * loader/xnu_resume.c: likewise
19886 * util/grub-dumpdevtree: likewise
19887 * include/grub/i386/pit.h: include grub/err.h
19888 (grub_pit_wait): export
19889 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
19891 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19895 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
19896 _linux_efi, linux_efi.
19897 new files in grub-emu
19898 new targets efiemu32.o and efiemu64.o
19899 * loader/linux_normal_efiemu.c: likewise
19900 * loader/i386/efi/linux.c: added preliminary efiemu support
19901 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
19903 * include/grub/autoefi.h: new file
19904 * include/grub/i386/efiemu.h: likewise
19905 * include/grub/i386/pc/efiemu.h: likewise
19906 * include/grub/efi/api.h: add LL suffix when necessary
19907 new definitions relating to tables
19908 * include/grub/efiemu/efiemu.h: new file
19909 * include/grub/efiemu/runtime.h: likewise
19910 * efiemu/prepare.c: likewise
19911 * efiemu/loadcore_common.c: likewise
19912 * efiemu/loadcore64.c: likewise
19913 * efiemu/runtime/efiemu.sh: likewise
19914 * efiemu/runtime/efiemu.S: likewise
19915 * efiemu/runtime/efiemu.c: likewise
19916 * efiemu/runtime/config.h: likewise
19917 * efiemu/prepare32.c: likewise
19918 * efiemu/main.c: likewise
19919 * efiemu/modules/pnvram.c: likewise
19920 * efiemu/modules/i386: likewise
19921 * efiemu/modules/i386/pc: likewise
19922 * efiemu/modules/acpi.c: likewise
19923 * efiemu/i386/pc/cfgtables.c: likewise
19924 * efiemu/i386/loadcore64.c: likewise
19925 * efiemu/i386/loadcore32.c: likewise
19926 * efiemu/prepare64.c: likewise
19927 * efiemu/loadcore.c: likewise
19928 * efiemu/symbols.c: likewise
19929 * efiemu/mm.c: likewise
19930 * efiemu/loadcore32.c: likewise
19932 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19936 * commands/acpi.c: new file
19937 * commands/i386/pc/acpi.c: likewise
19938 * commands/efi/acpi.c: likewise
19939 * include/grub/acpi.h: likewise
19940 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
19941 (acpi_mod_SOURCES): new variable
19942 (acpi_mod_CFLAGS): likewise
19943 (acpi_mod_LDFLAGS): likewise
19944 * conf/i386-efi.rmk: likewise
19945 * conf/x86_64-efi.rmk: likewise
19947 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19949 Missing part from mmap patch
19951 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
19952 (grub_mmap_unregister)
19953 (grub_mmap_free_and_unregister): use grub_mmap_register
19955 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
19959 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
19960 * loader/i386/linux.c (find_mmap_size): likewise
19961 (allocate_pages): likewise
19962 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
19963 (grub_fill_multiboot_mmap): likewise
19964 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
19965 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
19966 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
19967 (OPENBSD_MMAP_RESERVED): likewise
19968 * include/grub/i386/pc/memory.h: include grub/memory.h
19969 (grub_lower_mem): removed
19970 (grub_upper_mem): likewise
19971 (GRUB_MACHINE_MEMORY_ACPI): new definition
19972 (GRUB_MACHINE_MEMORY_NVS): likewise
19973 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
19974 (GRUB_MACHINE_MEMORY_HOLE): likewise
19975 (grub_machine_mmap_register): likewise
19976 (grub_machine_mmap_unregister): likewise
19977 (grub_machine_get_upper): likewise
19978 (grub_machine_get_lower): likewise
19979 (grub_machine_get_post64): likewise
19980 * include/grub/i386/efi/memory.h: new file
19981 * include/grub/x86_64/efi/memory.h: likewise
19982 * include/grub/efi/memory.h: likewise
19983 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
19984 (mmap_mod_SOURCES): new variable
19985 (mmap_mod_LDFLAGS): likewise
19986 (mmap_mod_ASFLAGS): likewise
19987 * conf/i386-coreboot.rmk: likewise
19988 * conf/i386-ieee1275.rmk: likewise
19989 * conf/i386-efi.rmk: likewise
19990 * conf/x86_64-efi.rmk: likewise
19991 * include/grub/types.h (UINT_TO_PTR): new macro
19992 (PTR_TO_UINT32): likewise
19993 (PTR_TO_UINT64): likewise
19994 * include/grub/memory.h: new file
19995 * mmap/i386/pc/mmap.c: likewise
19996 * mmap/i386/pc/mmap_helper.S: likewise
19997 * mmap/i386/uppermem.c: likewise
19998 * mmap/mmap.c: likewise
19999 * mmap/efi/mmap.c: likewise
20000 * kern/i386/coreboot/init.c (grub_machine_init): don't use
20002 * kern/i386/pc/init.c (grub_lower_mem): removed variable
20003 (grub_upper_mem): likewise
20004 (grub_machine_init): don't use grub_upper_mem,
20005 make grub_lower_mem local
20006 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
20007 grub_mmap_iterate and grub_mmap_get_upper
20008 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
20010 2009-05-02 Bean <bean123ch@gmail.com>
20012 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
20013 script/sh/parser.y.
20014 (pkglib_MODULES): Add normal.mod and sh.mod.
20015 (normal_SOURCES): New variable.
20016 (normal_mod_CFLAGS): Likewise.
20017 (normal_mod_LDFLAGS): Likewise.
20018 (sh_mod_SOURCES): Likewise.
20019 (sh_mod_CFLAGS): Likewise.
20020 (sh_mod_LDFLAGS): Likewise.
20022 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
20023 script/sh/lexer.c_DEPENDENCIES.
20024 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
20025 kern/rescue_reader.c and kern/rescue_parser.c.
20026 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
20027 (grub_emu_SOURCES): Change source files.
20028 (pkglib_MODULES): Remove normal.mod.
20029 (normal_SOURCES): Removed.
20030 (normal_mod_CFLAGS): Likewise.
20031 (normal_mod_LDFLAGS): Likewise.
20032 * conf/i386-coreboot.rmk: Likewise.
20033 * conf/i386-efi.rmk: Likewise.
20034 * conf/i386-ieee1276.rmk: Likewise.
20035 * conf/powerpc-ieee1275.rmk: Likewise.
20036 * conf/sparc64-ieee1275.rmk: Likewise.
20037 * conf/x86_64-efi.rmk: Likewise.
20039 * include/grub/command.h (grub_command_execute): New inline function.
20041 * include/grub/menu.h (grub_menu_entry): Removed commands field.
20043 * include/grub/normal.h: Remove <grub/setjmp.h>.
20044 (grub_fs_module_list): Moved to normal/autofs.c.
20045 (grub_exit_env): Removed.
20046 (grub_command_execute): Likewise.
20047 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
20049 (read_command_list): New function declaration.
20050 (read_fs_list): Likewise.
20052 * include/parser.h: Include <grub/reader.h>.
20053 (grub_parser_split_cmdline): Change type of getline parameter.
20054 (grub_parser): New structure.
20055 (grub_parser_class): New variable.
20056 (grub_parser_execute): New function declaration.
20057 (grub_register_rescue_parser): Likewise.
20058 (grub_parser_register): New inline function.
20059 (grub_parser_unregister): Likewise.
20060 (grub_parser_get_current): Likewise.
20061 (grub_parser_set_current): Likewise.
20063 * include/grub/reader.h: New file.
20064 * kern/reader.c: Likewise.
20065 * kern/rescue_parser.c: Likewise.
20066 * kern/rescue_reader.c: Likewise.
20067 * normal/autofs.c: Likewise.
20068 * normal/dyncmd.c: Likewise.
20070 * include/grub/rescue.h: Removed.
20071 * normal/command.h: Likewise.
20073 * include/grub/script.h: Moved to ...
20074 * include/grub/script_sh.h: ... Moved here.
20075 * normal/execute.c: Moved to ...
20076 * script/sh/execute.c: ... Moved here.
20077 * normal/function.c: Moved to ...
20078 * script/sh/function.c: ... Moved here.
20079 * normal/lexer.c: Moved to ...
20080 * script/sh/lexer.c: ... Moved here.
20081 * normal/parser.y: Moved to ...
20082 * script/sh/parser.y: ... Moved here.
20083 * normal/script.c: Moved to ...
20084 * script/sh/script.c: ... Moved here.
20086 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
20088 (grub_exit_env): Removed.
20089 (fs_module_list): Moved to normal/autofs.c.
20090 (grub_file_getline): Don't handle comment here.
20091 (free_menu): Skip removed field entry->commands.
20092 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
20094 (read_config_file): Removed nested parameter, change getline function.
20095 (grub_enter_normal_mode): Removed.
20096 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
20097 (read_command_list): Likewise.
20098 (autoload_fs_module): Moved to normal/autofs.c.
20099 (read_fs_list): Likewise.
20100 (reader_nested): New variable.
20101 (grub_normal_execute): Run parser.sh to switch to sh parser.
20102 (grub_cmd_rescue): Removed.
20103 (cmd_normal): Removed.
20104 (grub_cmd_normal): Unregister itself at the beginning. Don't register
20106 (grub_cmdline_run): New function.
20107 (grub_normal_reader_init): Likewise.
20108 (grub_normal_read_line): Likewise.
20109 (grub_env_write_pager): Likewise.
20110 (cmdline): New variable.
20111 (grub_normal_reader): Likewise.
20112 (GRUB_MOD_INIT): Register normal reader and set as current, register
20113 pager hook, register normal command with grub_register_command_prio,
20114 so that it won't show up in command.lst.
20115 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
20116 grub_fs_autoload_hook.
20118 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
20119 (grub_menu_execute_entry): Replace grub_script_execute with
20120 grub_parser_execute, change parameter to grub_command_execute.
20122 * normal/menu_text.c: Remove <grub/script.h>.
20124 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
20125 and <grub/parser.h>.
20126 (run): Change editor_getline to use new parser interface. Change
20127 parameter to grub_command_execute.
20129 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
20130 <grub/reader.h> and <grub/parser.h>.
20131 (grub_load_normal_mode): Execute normal command.
20132 (grub_main): Call grub_register_core_commands,
20133 grub_register_rescue_parser and grub_register_rescue_reader, use
20134 grub_reader_loop to enter input loop.
20136 * kern/parser.c (grub_parser_split_cmdline): Change type of
20138 (grub_parser_class): New variable.
20139 (grub_parser_execute): New function.
20141 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
20142 * loader/multiboot2.c: Likewise.
20143 * loader/sparc64/ieee1275/linux.c: Likewise.
20145 * util/grub-emu.c (read_command_list): New dummy function.
20147 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20149 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
20150 count to 16 for CCISS and IDA.
20152 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20154 * normal/menu_text.c (grub_wait_after_message): Print a newline
20155 after waiting for user input.
20157 * loader/i386/linux.c: Include `<grub/normal.h>'.
20158 (grub_cmd_linux): Improve the error message about `ask' mode, by
20159 waiting for user input so it's not missed (we can do this, since
20160 user requested interaction).
20162 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20164 Added missing lst to grub-mkrescue
20166 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
20167 and ${input_dir}/parttool.lst
20169 2009-04-30 David S. Miller <davem@davemloft.net>
20171 * util/hostdisk.c (device_is_wholedisk): New function.
20172 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
20173 zero only if device_is_wholedisk() returns true.
20175 * util/hostdisk.c (convert_system_partition_to_system_disk):
20176 Handle virtual disk devices named /dev/vdiskX as found on sparc
20179 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
20180 lettered partition specifier is found, convert to numbered.
20182 2009-04-29 David S. Miller <davem@davemloft.net>
20184 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
20185 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20187 * normal/command.c: Add missing newline at end of file.
20189 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
20191 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
20192 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
20193 grub_ofdisk_read): Likewise, and deal similarly with the fact that
20194 ihandles have a 32-bit type but need to be stored in a "void *".
20196 2009-04-28 Pavel Roskin <proski@gnu.org>
20198 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
20199 not disk. Adjust all dependencies.
20200 (grub_fs_uuid_close): Use grub_device_close(), not
20203 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
20204 parent's partition, don't copy it by reference, as it gets freed
20207 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20209 Preboot hooks support
20211 * commands/boot.c (struct grub_preboot_t): new declaration
20212 (preboots_head): new variable
20213 (preboots_tail): likewise
20214 (grub_loader_register_preboot_hook): new function
20215 (grub_loader_unregister_preboot_hook): likewise
20216 (grub_loader_set): launch preboot hooks
20217 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
20218 (grub_loader_register_preboot_hook): new declaration
20219 (grub_loader_unregister_preboot_hook): likewise
20221 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20225 * disk/scsi.c (grub_scsi_open): added missing cast when
20226 calling grub_dprintf
20228 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
20230 Bug and warning fixes
20232 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
20234 * commands/test.c (test_parse): fixed bug with file tests and corrected
20235 declaration of find_file
20237 2009-04-26 Pavel Roskin <proski@gnu.org>
20239 * Makefile.in: Don't install empty manual pages if help2man is
20240 missing. Use help2man option for output, not shell redirection.
20242 2009-04-26 David S. Miller <davem@davemloft.net>
20244 * util/grub-mkdevicemap.c (make_device_map): Add missing
20245 NESTED_FUNC_ATTR to process_device().
20247 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20251 * commands/test.c: rewritten to use bash-like test
20253 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20255 Parttool autoloading and improvements
20257 * Makefile.in (pkglib_DATA): add parttool.lst
20258 (parttool.lst): new target
20259 * genmk.rb: generate parttool-*
20260 (CLEANFILES): add #{parttool}
20261 (PARTTOOLFILES): new variable
20262 * genparttoollist.sh: new file
20263 * parttool/pcpart.c (grub_pcpart_boot): more feedback
20264 (grub_pcpart_type): likewise
20265 * commands/parttool.c (helpmsg): new variable
20266 (grub_cmd_parttool): output help if not enough arguments are supplied
20268 (GRUB_MOD_INIT(parttool)): use helpmsg
20270 2009-04-24 David S. Miller <davem@davemloft.net>
20272 Avoiding opening same device multiple times in device iterator.
20274 * kern/device.c: (grub_device_iterate): Define struct part_ent,
20275 and use it to build a list of partitions in iterate_disk() and
20276 iterate_partition().
20278 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
20281 * disk/ieee1275/nand.c (grub_nand_iterate): Return
20282 grub_devalias_iterate() result instead of unconditional 0.
20283 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
20284 Also, capture hook return value, either directly or via
20285 grub_children_iterate(), and propagate to caller.
20286 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
20287 grub_children_iterate): Return value is now 'int' instead of
20289 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
20290 like a proper iterator, stopping when hooks return non-zero.
20291 (grub_devalias_iterate): Likewise.
20293 2009-04-23 David S. Miller <davem@davemloft.net>
20295 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
20297 2009-04-22 David S. Miller <davem@davemloft.net>
20299 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
20300 is larger than address_cells, use that value for address_cells too.
20302 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
20303 IEEE1275_MAX_PATH_LEN): Define.
20304 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
20305 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
20306 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
20307 'devtype'. Explicitly NULL terminate devalias expansion.
20309 * util/sparc64/ieee1275/misc.c: New file.
20310 * util/sparc64/ieee1275/grub-setup.c: New file.
20311 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
20312 * util/sparc64/ieee1275/grub-mkimage.c: New file.
20313 * util/sparc64/ieee1275/grub-install.in: New file.
20314 * util/ieee1275/ofpath.c: New file.
20315 * util/ieee1275/devicemap.c: New file.
20316 * util/devicemap.c: New file.
20317 * util/deviceiter.c: New file.
20318 * kern/sparc64/ieee1275/init.c: New file.
20319 * include/grub/util/ofpath.h: New file.
20320 * include/grub/util/deviceiter.h: New file.
20321 * util/grub-mkdevicemap.c: Include deviceiter.h.
20322 Implement using grub_util_emit_devicemap_entry and
20323 grub_util_iterate_devices.
20324 * conf/i386-corebook.rmk: Build util/deviceiter.c and
20325 util/devicemap.c into grub-mkdevicemap
20326 * conf/i386-efi.rmk: Likewise.
20327 * conf/i386-ieee1275.rmk: Likewise.
20328 * conf/i386-pc.rmk: Likewise.
20329 * conf/powerpc-ieee1275.rmk: Likewise.
20330 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
20331 images and installation utilities. Build kernel as image
20332 instead of as elf binary. Use common rules as much as possible.
20334 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20336 Correct GPT definition
20338 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
20341 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
20343 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
20345 2009-04-19 David S. Miller <davem@davemloft.net>
20347 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
20348 (grub_rescue_cmd_linux): Rename to...
20349 (grub_cmd_linux): and fix prototype.
20350 (grub_rescue_cmd_initrd): Rename to...
20351 (grub_cmd_initrd): and fix prototype.
20352 (cmd_linux, cmd_initrd): New.
20353 (GRUB_MOD_INIT(linux)): Use grub_register_command().
20354 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
20356 2009-04-17 Pavel Roskin <proski@gnu.org>
20358 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
20360 (grub_ohci_transfer): Likewise.
20362 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
20364 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
20365 return without a value. Fix inconsistent indentation.
20367 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
20368 match struct grub_fs.
20370 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
20371 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
20372 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20373 * commands/lspci.c (grub_lspci_iter): Likewise.
20375 2009-04-16 Bean <bean123ch@gmail.com>
20377 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
20380 2009-04-15 Pavel Roskin <proski@gnu.org>
20382 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
20383 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
20384 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
20387 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
20389 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
20390 that no multiple data or metadata areas are supported and `Unknown
20393 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20395 Move loader out of the kernel
20397 * kern/loader.c: moved to ...
20398 * commands/boot.c: ... moved here
20399 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
20400 * commands/boot.c (grub_cmd_boot): moved here. All users updated
20401 * include/grub/kernel.h (grub_machine_fini): export
20402 * include/grub/loader.h (grub_loader_is_loaded): update declaration
20403 (grub_loader_set): likewise
20404 (grub_loader_unset): likewise
20405 (grub_loader_boot): likewise
20406 * conf/common.rmk: new module boot.mod
20407 (pkglib_MODULES): add boot.mod
20408 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
20409 (grub_emu_SOURCES): likewise
20410 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
20411 (grub_emu_SOURCES): likewise
20412 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
20413 (grub_emu_SOURCES): likewise
20414 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
20415 (grub_emu_SOURCES): likewise
20416 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
20417 (grub_emu_SOURCES): likewise
20418 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
20419 (grub_emu_SOURCES): likewise
20420 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
20421 (grub_emu_SOURCES): likewise
20423 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20425 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
20427 * kern/misc.c (grub_itoa): Removed function
20428 (grub_ltoa): likewise
20429 (grub_vsprintf): use grub_lltoa
20431 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
20435 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
20436 * conf/i386-coreboot.rmk: likewise
20437 * conf/i386-ieee1275.rmk: likewise
20438 * conf/powerpc-ieee1275.rmk: likewise
20440 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
20442 * INSTALL: Add that `./autogen.sh' needs to be run before
20445 2009-04-14 Bean <bean123ch@gmail.com>
20447 * Makefile.in (pkglib_DATA): Add handler.lst.
20448 (handler.lst): New rule.
20450 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
20451 * conf/i386-coreboot.rmk: Likewise.
20452 * conf/i386-ieee1275.rmk: Likewise.
20453 * conf/i386-efi.rmk: Likewise.
20454 * conf/x86_64-efi.rmk: Likewise.
20455 * conf/powerpc-ieee1275.rmk: Likewise.
20456 * conf/sparc64-ieee1275.rmk: Likewise.
20458 * genhandlerlist.sh: New file.
20460 * genmk.rb: Add rules to generate handler.lst.
20462 * include/grub/normal.h (grub_file_getline): New function definition.
20463 (read_handler_list): Likewise.
20464 (free_handler_list): Likewise.
20466 * include/grub/term.h (grub_term_register_input): Add name parameter
20467 for auto generation of handler.lst.
20468 (grub_term_register_output): Likewise.
20470 * normal/handler.c: New file.
20472 * normal/main.c (get_line): Renamed to grub_file_getline.
20473 (read_config_file): Use the newly renamed grub_file_getline.
20474 (read_command_list): Likewise.
20475 (read_fs_list): Likewise.
20476 (grub_normal_execute): Call read_handler_list to parse handler.lst.
20477 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
20479 * term/efi/console.c (grub_console_init): Add name parameter for auto
20480 generation of handler.lst.
20481 * term/gfxterm.c: Likewise.
20482 * term/i386/pc/at_keyboard.c: Likewise.
20483 * term/i386/pc/console.c: Likewise.
20484 * term/i386/pc/serial.c: Likewise.
20485 * term/i386/pc/vesafb.c: Likewise.
20486 * term/i386/pc/vga.c: Likewise.
20487 * term/i386/pc/vga_text.c: Likewise.
20488 * term/ieee1275/ofconsole.c: Likewise.
20489 * term/usb_keyboard.c: Likewise.
20491 2009-04-14 Bean <bean123ch@gmail.com>
20493 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
20494 properly with null character.
20496 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
20498 * configure: Remove.
20499 * config.h.in: Likewise.
20500 * stamp-h.in: Likewise.
20501 * DISTLIST: Likewise.
20502 * conf/common.mk: Likewise.
20503 * conf/i386-coreboot.mk: Likewise.
20504 * conf/i386-efi.mk: Likewise.
20505 * conf/i386-ieee1275.mk: Likewise.
20506 * conf/i386.mk: Likewise.
20507 * conf/i386-pc.mk: Likewise.
20508 * conf/powerpc-ieee1275.mk: Likewise.
20509 * conf/sparc64-ieee1275.mk: Likewise.
20510 * conf/x86_64-efi.mk: Likewise.
20512 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
20515 2009-04-14 John Stanley <jpsinthemix@verizon.net>
20516 David S. Miller <davem@davemloft.net>
20518 * util/hostdisk.c (make_device_name): Fix buffer length
20521 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
20523 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
20524 <sys/param.h> and <sys/sysctl.h>.
20525 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
20526 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
20527 opening the device and reset them afterwards.
20529 2009-04-13 Pavel Roskin <proski@gnu.org>
20531 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
20532 Reported by John Stanley <jpsinthemix@verizon.net>
20534 2009-04-13 Robert Millan <rmh@aybabtu.com>
20536 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
20537 that name for menuentries when appropriate.
20539 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20541 * util/grub.d/10_freebsd.in: Add a missing `fi'.
20543 2009-04-13 Robert Millan <rmh@aybabtu.com>
20545 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
20546 to Linux, simply abort telling the user it's no longer supported.
20548 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20550 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
20551 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
20552 `freebsd_loadenv' only when devices.hints exist.
20554 2009-04-13 Pavel Roskin <proski@gnu.org>
20556 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
20558 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
20560 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
20562 (grub_drive): Likewise.
20564 2009-04-13 David S. Miller <davem@davemloft.net>
20566 * kern/sparc64/ieee1275/ieee1275.c: New file.
20567 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
20568 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
20569 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
20570 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
20571 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
20572 grub_ieee1275_alloc_physmem): Declare new exported functions.
20574 * include/grub/sparc64/ieee1275/loader.h: New file.
20575 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20576 * include/grub/sparc64/kernel.h: Likewise.
20577 * loader/sparc64/ieee1275/linux.c: Likewise.
20579 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
20580 (grub_fstest_SOURCES): Likewise.
20582 * util/hostdisk.c (make_device_name): Do not make any assumptions
20583 about the length of drive names.
20585 * kern/dl.c (grub_dl_load_file): Close file immediately when
20586 we are done using it.
20588 2009-04-12 David S. Miller <davem@davemloft.net>
20590 * kern/misc.c (grub_ltoa): Fix cast when handling negative
20591 values. Noticed by Pavel Roskin.
20593 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
20596 * genmk.rb: Add more flexible image type specification, also
20597 pass --strip-unneeded to objcopy.
20598 * conf/i386-pc.rmk: Use *_FORMAT.
20599 * conf/i386-pc.mk: Rebuilt.
20601 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
20602 (OFDISK_HASH_SZ): Define.
20603 (ofdisk_hash): New hash table.
20604 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
20605 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
20606 instead of device phandle which is not unique.
20608 * kern/sparc64/ieee1275/init.c: Delete, replace with...
20609 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
20610 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
20611 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
20612 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
20613 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
20614 GRUB_KERNEL_MACHINE_DATA_END): Define.
20615 (grub_kernel_image_size, grub_total_module_size): Declare.
20617 2009-04-12 Pavel Roskin <proski@gnu.org>
20619 * configure.ac: Change the logic when we check for target tools.
20620 Do it when the target is specified and it's different from the
20621 specified value of the host.
20623 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
20625 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
20626 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
20627 GNU/kFreeBSD. Check if a device is a character device. Use
20628 DIOCGMEDIASIZE to get the size.
20629 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
20630 support for GNU/kFreeBSD.
20631 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
20632 is a character device instead of a block device. Add support for
20633 FreeBSD device names.
20635 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
20636 is a character device instead of a block device.
20638 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
20639 is a character device instead of a block device.
20641 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
20643 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
20644 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
20645 FreeBSD. Check if a device is a character device. Use
20646 DIOCGMEDIASIZE to get the size.
20647 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
20648 support for FreeBSD.
20649 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
20650 is a character device instead of a block device. Add support for
20651 FreeBSD device names.
20653 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
20654 a character device instead of a block device.
20655 (grub_util_check_char_device): New function.
20657 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
20658 a character device instead of a block device.
20660 * include/grub/util/getroot.h (grub_util_check_char_device): New
20663 2009-04-11 David S. Miller <davem@davemloft.net>
20665 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
20667 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
20668 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
20669 function, if present.
20670 (__bswapdi2): Likewise.
20672 * include/grub/sparc64/ieee1275/boot.h: New file.
20673 * boot/sparc64/ieee1275/boot.S: Likewise.
20674 * boot/sparc64/ieee1275/diskboot.S: Likewise.
20676 * kern/misc.c (grub_ltoa): New function.
20677 (grub_vsprintf): Use it to format 'long' integers.
20679 2009-04-10 David S. Miller <davem@davemloft.net>
20681 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
20682 slots are of type grub_ieee1275_cell_t.
20683 (grub_nand_read): Likewise.
20684 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
20685 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
20686 macros are used to compare values in arg/ret block of the call.
20687 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
20688 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
20689 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
20690 grub_ieee1275_instance_to_path, grub_ieee1275_write,
20691 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
20692 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
20693 grub_ieee1275_close, grub_ieee1275_set_property,
20694 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
20695 grub_ieee1275_cell_t.
20696 * kern/ieee1275/openfw.c (grub_map): Likewise.
20697 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
20698 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
20700 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
20701 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
20702 (grub_devalias_iterate): Likewise.
20704 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20708 * fs/ufs.c (INODE_NBLOCKS): new definition
20709 (struct grub_ufs_dirent): added fields for non-BSD dirents
20710 (grub_ufs_get_file_block): fixed double indirect handling
20711 (grub_ufs_lookup_symlink): use more robust way to determine whether
20713 (grub_ufs_find_file): support for non-BSD dirents
20714 (grub_ufs_dir): support for non-BSD dirents
20716 2009-04-10 Bean <bean123ch@gnail.com>
20718 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
20719 attribute, otherwise the size would be wrong for i386 platform.
20721 * include/grub/pci.h (grub_pci_read_word): New inline function.
20722 (grub_pci_read_byte): Likewise.
20723 (grub_pci_write): Likewise.
20724 (grub_pci_write_word): Likewise.
20725 (grub_pci_write_byte): Likewise.
20727 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
20729 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
20730 (find_framebuf): Scan pci to locate the frame buffer address.
20732 * commands/efi/fixvideo.c: New file.
20734 * commands/efi/loadbios.c: Likewise.
20736 * commands/memrw.c: Likewise.
20738 * util/grub-dumpbios.in: Likewise.
20740 * conf/common.rmk (grub-dumpbios): New utility.
20741 (pkglib_MODULES): New module memrw.mod.
20742 (memrw_mod_SOURCE): New macro.
20743 (memrw_mod_CFLAGS): Likewise.
20744 (memrw_mod_LDFLAGS): Likewise.
20746 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
20748 (loadbios_mod_SOURCE): New macro.
20749 (loadbios_mod_CFLAGS): Likewise.
20750 (loadbios_mod_LDFLAGS): Likewise.
20751 (fixvideo_mod_SOURCE): Likewise.
20752 (fixvideo_mod_CFLAGS): Likewise.
20753 (fixvideo_mod_LDFLAGS): Likewise.
20755 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
20757 (loadbios_mod_SOURCE): New macro.
20758 (loadbios_mod_CFLAGS): Likewise.
20759 (loadbios_mod_LDFLAGS): Likewise.
20760 (fixvideo_mod_SOURCE): Likewise.
20761 (fixvideo_mod_CFLAGS): Likewise.
20762 (fixvideo_mod_LDFLAGS): Likewise.
20764 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
20766 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
20768 2009-04-07 David S. Miller <davem@davemloft.net>
20770 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
20771 support for R_SPARC_OLO10 relocations. Fix compile warning for
20772 R_SPARC_WDISP30 case.
20773 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
20775 2009-04-06 Pavel Roskin <proski@gnu.org>
20777 * include/grub/misc.h (ARRAY_SIZE): New macro.
20778 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
20780 * loader/i386/linux.c (allocate_pages): Use free_pages().
20781 (grub_linux_unload): Don't use free_pages().
20782 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
20783 wrong index. Treat all other modes as text modes.
20784 (grub_cmd_linux): Initialize vid_mode unconditionally to
20785 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
20787 * commands/help.c (print_command_help): Use cmd->prio, not
20788 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
20790 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20794 * parttool/pcpart.c: new file
20795 * commands/parttool.c: likewise
20796 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
20797 (parttool_mod_SOURCES): new variable
20798 (parttool_mod_CFLAGS): likewise
20799 (parttool_mod_LDFLAGS): likewise
20800 (pcpart_mod_SOURCES): likewise
20801 (pcpart_mod_CFLAGS): likewise
20802 (pcpart_mod_LDFLAGS): likewise
20803 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
20804 and parttool/pcpart.c
20805 * conf/i386-efi.rmk: likewise
20806 * conf/i386-ieee1275.rmk: likewise
20807 * conf/i386-pc.rmk: likewise
20808 * conf/powerpc-ieee1275.rmk: likewise
20809 * conf/sparc64-ieee1275.rmk: likewise
20810 * conf/x86_64-ieee1275.rmk: likewise
20812 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20814 Support for mtime and further expandability of dir command
20816 * include/grub/lib/datetime.h: moved to ...
20817 * include/grub/datetime.h: ... moved here and added
20818 declaration of grub_unixtime2datetime. All users updated
20819 * include/grub/fs.h: new syntax for dir and mtime functions in
20821 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
20822 and GRUB_FSHELP_FLAGS_MASK
20823 * commands/ls.c (grub_ls_list_files): Write mtime in long format
20824 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
20825 (grub_ext2_mtime): new function
20826 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
20827 (grub_hfsplus_mtime): new function
20828 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
20829 (GRUB_UFS_ATTR_FILE): likewise
20830 (GRUB_UFS_ATTR_LNK): likewise
20831 (struct grub_ufs_sblock): new fields mtime
20832 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
20834 (grub_ufs_dir): mtime support
20835 (grub_ufs_mtime): new function
20836 * fs/affs.c (grub_affs_dir): use new dir syntax
20837 * fs/afs.c (grub_afs_dir): likewise
20838 * fs/cpio.c (grub_cpio_dir): likewise
20839 * fs/fat.c (grub_fat_find_dir): likewise
20840 * fs/hfs.c (grub_hfs_dir): likewise
20841 * fs/iso9660.c (grub_iso9660_dir): likewise
20842 * fs/jfs.c (grub_jfs_dir): likewise
20843 * fs/minix.c (grub_minix_dir): likewise
20844 * fs/ntfs.c (grub_ntfs_dir): likewise
20845 * fs/reiserfs.c (grub_reiserfs_dir): likewise
20846 * fs/sfs.c (grub_sfs_dir): likewise
20847 * fs/xfs.c (grub_xfs_dir): likewise
20848 * util/hostfs.c (grub_hostfs_dir): likewise
20849 * lib/datetime.c: moved to ...
20850 * normal/datetime.c: ... moved here
20851 (grub_unixtime2datetime): new function
20852 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
20853 * normal/completion.c (iterate_dir): use new dir syntax
20854 * normal/misc.c (grub_normal_print_device_info): tell the
20855 last modification time of a volume
20856 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
20857 * conf/common.rmk: added lib/datetime.c to ls.mod
20858 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
20859 (normal_mod_SOURCES): likewise
20860 (datetime_mod_SOURCES): Removed lib/datetime.c
20861 * conf/i386-efi.rmk: likewise
20862 * conf/i386-ieee1275.rmk: likewise
20863 * conf/i386-pc.rmk: likewise
20864 * conf/powerpc-ieee1275.rmk: likewise
20865 * conf/sparc64-ieee1275.rmk: likewise
20866 * conf/x86_64-efi.rmk: likewise
20868 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20870 Trim trailing spaces in FAT label and support mtools-like labels
20872 * fs/fat.c (grub_fat_iterate_dir): New function based
20873 on grub_fat_find_dir
20874 (grub_fat_find_dir): use grub_fat_iterate_dir
20875 (grub_fat_label): likewise
20877 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
20879 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
20881 remove extraneous kernel_elf_HEADERS
20883 2009-04-04 Bean <bean123ch@gnail.com>
20885 * include/grub/util/misc.h: Add dummy function fsync for mingw.
20887 * util/misc.c: Likewise.
20889 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20891 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
20892 instead of grub_printf.
20894 2009-04-03 Robert Millan <rmh@aybabtu.com>
20896 * loader/i386/linux.c (grub_linux_setup_video): Fill
20897 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
20898 values from `mode info' structure instead of hardcoded
20901 2009-04-01 Pavel Roskin <proski@gnu.org>
20903 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
20905 * genmk.rb: Likewise.
20906 * configure.ac: Likewise.
20908 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
20910 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
20911 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
20913 2009-04-01 David S. Miller <davem@davemloft.net>
20915 * normal/sparc64/setjmp.S: Fix setjmp implementation.
20916 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
20917 (grub_setjmp): Mark with 'returns_twice' attribute.
20918 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
20919 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
20920 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
20922 2009-04-01 Robert Millan <rmh@aybabtu.com>
20924 Reapply fix from 2008-07-28 which was accidentally reverted; also
20925 perform the same fix to a similar check in same function.
20927 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
20928 with the same number are found, just use issue a warning with
20929 grub_dprintf(), as this error has been reported to be non-fatal.
20931 2009-03-31 Pavel Roskin <proski@gnu.org>
20933 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
20934 for cross-compilation.
20936 2009-03-30 Robert Millan <rmh@aybabtu.com>
20938 Fix i386-ieee1275 build.
20940 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
20941 Remove declaration.
20943 2009-03-30 Pavel Roskin <proski@gnu.org>
20945 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
20946 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
20947 zero-terminated, rely only on the strlen value. Fix comparison
20948 of strings differing in length.
20950 2009-03-30 Robert Millan <rmh@aybabtu.com>
20952 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
20953 checking for abi version. Improve error messages on BIOS to notify
20954 user about `linux16' command.
20956 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20960 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
20961 in case of collision
20962 * disk/scsi.c (grub_scsi_open): free scsi in case of error
20964 2009-03-29 Robert Millan <rmh@aybabtu.com>
20966 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
20967 set `vid_mode' accordingly.
20968 (grub_linux_boot): Process `vid_mode' and set video mode.
20970 2009-03-29 Robert Millan <rmh@aybabtu.com>
20972 * util/grub.d/10_linux.in (linux_entry): New function.
20973 Factorize generation of Linux boot entries.
20975 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
20977 Make the format of Environment Block plain text. The boot loader
20978 part is not tested well yet.
20980 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
20982 (envblk): Likewise.
20983 (usage): Remove "info" and "clear". Add "unset". Update the
20984 description of "set", as this does not delete variables any
20986 (create_envblk_file): Complete rewrite.
20987 (open_envblk_file): Likewise.
20988 (cmd_info): Removed.
20989 (cmd_list): Likewise.
20990 (cmd_set): Likewise.
20991 (cmd_clear): Likewise.
20992 (list_variables): New function.
20993 (write_envblk): Likewise.
20994 (set_variables): Likewise.
20995 (unset_variables): Likewise.
20996 (main): Complete rewrite.
20998 * commands/loadenv.c (buffer): Removed.
20999 (envblk): Likewise.
21000 (open_envblk_file): New function.
21001 (read_envblk_file): Complete rewrite.
21002 (grub_cmd_load_env): Likewise.
21003 (grub_cmd_list_env): Likewise.
21004 (struct blocklist): New struct.
21005 (free_blocklists): New function.
21006 (check_blocklists): Likewise.
21007 (write_blocklists): Likewise.
21008 (grub_cmd_save_env): Complete rewrite.
21010 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
21011 a plain text signature.
21012 (GRUB_ENVBLK_MAXLEN): Removed.
21013 (struct grub_envblk): Complete rewrite.
21014 (grub_envblk_find): Removed.
21015 (grub_envblk_insert): Likewise.
21016 (grub_envblk_open): New prototype.
21017 (grub_envblk_set): Likewise.
21018 (grub_envblk_delete): Put const to VALUE.
21019 (grub_envblk_iterate): Put const to NAME and VALUE.
21020 (grub_envblk_close): New prototype.
21021 (grub_envblk_buffer): New inline function.
21022 (grub_envblk_size): Likewise.
21024 * lib/envblk.c: Include grub/mm.h.
21025 (grub_env_find): Removed.
21026 (grub_envblk_open): New function.
21027 (grub_envblk_close): Likewise.
21028 (escaped_value_len): Likewise.
21029 (find_next_line): Likewise.
21030 (grub_envblk_insert): Removed.
21031 (grub_envblk_set): New function.
21032 (grub_envblk_delete): Complete rewrite.
21033 (grub_envblk_iterate): Likewise.
21035 2009-03-28 Robert Millan <rmh@aybabtu.com>
21037 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
21038 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
21039 variables. Use 16-bit loader.
21040 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
21042 * kern/i386/loader.S (grub_linux_boot): Rename to ...
21043 (grub_linux16_boot): ... this. Update all users.
21044 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
21045 (grub_linux_boot): ... this. Update all users.
21047 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
21048 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
21049 commands to `linux16' and `initrd16'.
21050 (GRUB_MOD_FINI(linux)): Rename to ...
21051 (GRUB_MOD_FINI(linux16)): ... this.
21053 2009-03-24 Pavel Roskin <proski@gnu.org>
21055 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
21056 not just for compilation.
21058 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
21060 Move multiboot helper out of kernel
21062 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
21063 `loader/i386/multiboot_helper.S'.
21064 * conf/i386-coreboot.rmk: Likewise
21065 * conf/i386-ieee1275.rmk: Likewise
21067 * kern/i386/loader.S: Move multiboot helpers from here...
21068 * loader/i386/multiboot_helper.S: ...moved here
21069 * include/grub/i386/loader.h: Move declarations of multiboot
21070 helpers from here...
21071 * include/grub/i386/multiboot.h: ...moved here
21072 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
21074 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21076 * kern/env.c (grub_env_context_open): Added an argument to specify
21077 whether a new context inherits exported variables from current
21078 one. This is useful when making a sandbox to interpret a config
21080 All callers updated.
21082 * include/grub/env.h (grub_env_context_open): Updated the prototype.
21084 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21086 * kern/env.c (grub_env_context_close): Fix memory leaks.
21088 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21090 * normal/main.c (grub_normal_execute): Added an argument
21091 BATCH to specify if an interactive interface should be provided
21092 after reading a config file.
21093 All callers updated.
21094 (read_command_list): Prevent being executed twice.
21095 (read_fs_list): Likewise.
21097 * include/grub/normal.h (grub_normal_execute): Updated the
21100 2009-03-22 Pavel Roskin <proski@gno.org>
21102 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
21104 * kern/i386/pc/startup.S: Likewise.
21105 * kern/i386/efi/startup.S: Likewise.
21106 * kern/i386/ieee1275/startup.S: Likewise.
21107 * kern/i386/coreboot/startup.S: Likewise.
21108 * kern/x86_64/efi/startup.S: Likewise.
21110 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
21111 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
21112 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
21114 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
21116 Bugfixes in multiboot for bugs uncovered by solaris kernel.
21118 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
21120 Use vaddr of correct segment for entry_point.
21122 2009-03-21 Bean <bean123ch@gmail.com>
21124 * commands/blocklist.c: Add include file <grub/command.h>, remove
21125 <grub/normal.h> and <grub/arg.h>.
21126 (grub_cmd_blocklist): Use the new command interface.
21127 (GRUB_MOD_INIT): Likewise.
21128 (GRUB_MOD_FINI): Likewise.
21129 * commands/boot.c: Likewise.
21130 * commands/cat.c: Likewise.
21131 * commands/cmp.c: Likewise.
21132 * commands/configfile.c: Likewise.
21133 * commands/crc.c: Likewise.
21134 * commands/echo.c: Likewise.
21135 * commands/halt.c: Likewise.
21136 * commands/handler.c: Likewise.
21137 * commands/hdparm.c: Likewise.
21138 * commands/help.c: Likewise.
21139 * commands/hexdump.c: Likewise.
21140 * commands/loadenv.c: Likewise.
21141 * commands/ls.c: Likewise.
21142 * commands/lsmmap.c: Likewise.
21143 * commands/lspci.c: Likewise.
21144 * commands/loadenv.c: Likewise.
21145 * commands/read.c: Likewise.
21146 * commands/reboot.c: Likewise.
21147 * commands/search.c: Likewise.
21148 * commands/sleep.c: Likewise.
21149 * commands/test.c: Likewise.
21150 * commands/usbtest.c: Likewise.
21151 * commands/videotest.c: Likewise.
21152 * commands/i386/cpuid.c: Likewise.
21153 * commands/i386/pc/halt.c: Likewise.
21154 * commands/i386/pc/play.c: Likewise.
21155 * commands/i386/pc/pxecmd.c: Likewise.
21156 * commands/i386/pc/vbeinfo.c: Likewise.
21157 * commands/i386/pc/vbetest.c: Likewise.
21158 * commands/ieee1275/suspend.c: Likewise.
21159 * disk/loopback.c: Likewise.
21160 * font/font_cmd.c: Likewise.
21161 * hello/hello.c: Likewise.
21162 * loader/efi/appleloader.c: Likewise.
21163 * loader/efi/chainloader.c: Likewise.
21164 * loader/i386/bsd.c: Likewise.
21165 * loader/i386/efi/linux.c: Likewise.
21166 * loader/i386/ieee1275/linux.c: Likewise.
21167 * loader/i386/linux.c: Likewise.
21168 * loader/i386/pc/chainloader.c: Likewise.
21169 * loader/i386/pc/linux.c: Likewise.
21170 * loader/powerpc/ieee1275/linux.c: Likewise.
21171 * loader/multiboot_loader.c: Likewise.
21172 * term/gfxterm.c: Likewise.
21173 * term/i386/pc/serial.c: Likewise.
21174 * term/terminfo.c: Likewise.
21176 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
21177 * term/i386/pc/vga.c: Likewise.
21178 * video/readers/jpeg.c: Likewise.
21179 * video/readers/png.c: Likewise.
21180 * video/readers/tga.c: Likewise.
21182 * util/grub-fstest (cmd_loopback): Removed.
21183 (cmd_blocklist): Likewise.
21184 (cmd_ls): Likewise.
21185 (grub_register_command): Likewise.
21186 (grub_unregister_command): Likewise.
21187 (execute_command): Use grub_command_find to locate command and execute
21190 * include/grub/efi/chainloader.h: Removed.
21191 * loader/efi/chainloader_normal.c: Likewise.
21192 * loader/i386/bsd_normal.c: Likewise.
21193 * loader/i386/pc/chainloader_normal.c: Likewise.
21194 * loader/i386/pc/multiboot_normal.c: Likewise.
21195 * loader/linux_normal.c: Likewise.
21196 * loader/multiboot_loader_normal.c: Likewise.
21197 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21199 * gencmdlist.sh: Scan new registration command grub_register_extcmd
21200 and grub_register_command_p1.
21202 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
21203 kern/command.c, lib/arg.c and commands/extcmd.c.
21204 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
21205 (minicmd_mod_SOURCES): New variable.
21206 (minicmd_mod_CFLAGS): Likewise.
21207 (minicmd_mod_LDFLAGS): Likewise.
21208 (extcmd_mod_SOURCES): Likewise.
21209 (extcmd_mod_CFLAGS): Likewise.
21210 (extcmd_mod_LDFLAGS): Likewise.
21211 (boot_mod_SOURCES): Removed.
21212 (boot_mod_CFLAGS): Likewise.
21213 (boot_mod_LDFLAGS): Likewise.
21215 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
21217 (kernel_img_HEADERS): Add command.h.
21218 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
21219 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
21221 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
21222 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
21223 remove the corresponding normal mode command.
21224 (normal_mod_SOURCES): Remove normal/arg.c.
21225 * conf/i386-coreboot.rmk: Likewise.
21226 * conf/i386-efi.rmk: Likewise.
21227 * conf/i386-ieee1275.rmk: Likewise.
21228 * conf/powerpc-ieee1275.rmk: Likewise.
21229 * conf/x86_64-efi.rmk: Likewise.
21231 * include/grub/arg.h: Move from here ...
21232 * include/grub/lib/arg.h: ... to here.
21234 * normal/arg.c: Move from here ...
21235 * lib/arg.c: ... to here.
21237 * commands/extcmd.c: New file.
21238 * commands/minicmd.c: Likewise.
21239 * include/grub/command.h: Likewise.
21240 * include/grub/extcmd.h: Likewise.
21241 * kern/command.c: Likewise.
21242 * kern/corecmd.c: Likewise.
21244 * kern/list.c (grub_list_iterate): Return int instead of void.
21245 (grub_list_insert): New function.
21246 (grub_prio_list_insert): Likewise.
21248 * kern/rescue.c (grub_rescue_command): Removed.
21249 (grub_rescue_command_list): Likewise.
21250 (grub_rescue_register_command): Likewise.
21251 (grub_rescue_unregister_command): Likewise.
21252 (grub_rescue_cmd_boot): Move to minicmd.c
21253 (grub_rescue_cmd_help): Likewise.
21254 (grub_rescue_cmd_info): Likewise.
21255 (grub_rescue_cmd_boot): Likewise.
21256 (grub_rescue_cmd_testload): Likewise.
21257 (grub_rescue_cmd_dump): Likewise.
21258 (grub_rescue_cmd_rmmod): Likewise.
21259 (grub_rescue_cmd_lsmod): Likewise.
21260 (grub_rescue_cmd_exit): Likewise.
21261 (grub_rescue_print_devices): Moved to corecmd.c.
21262 (grub_rescue_print_files): Likewise.
21263 (grub_rescue_cmd_ls): Likewise.
21264 (grub_rescue_cmd_insmod): Likewise.
21265 (grub_rescue_cmd_set): Likewise.
21266 (grub_rescue_cmd_unset): Likewise.
21267 (attempt_normal_mode): Use grub_command_find to get normal module.
21268 (grub_enter_rescue_mode): Use grub_register_core_commands to register
21269 commands, remove grub_rescue_register_command calls.
21271 * normal/command.c (grub_register_command): Removed.
21272 (grub_unregister_command): Likewise.
21273 (grub_command_find): Likewise.
21274 (grub_iterate_commands): Likewise.
21275 (rescue_command): Likewise.
21276 (export_command): Moved to corecmd.c.
21277 (set_command): Removed.
21278 (unset_command): Likewise.
21279 (insmod_command): Likewise.
21280 (rmmod_command): Likewise.
21281 (lsmod_command): Likewise.
21282 (grub_command_init): Likewise.
21284 * normal/completion.c (iterate_command): Use cmd->prio to check for
21286 (complete_arguments): Use grub_extcmd_t structure to find options.
21287 (grub_normal_do_completion): Change function grub_iterate_commands to
21288 grub_command_iterate.
21290 * normal/execute.c (grub_script_execute_cmd): No need to parse
21293 * normal/main.c (grub_dyncmd_dispatcher): New function.
21294 (read_command_list): Register unload commands as dyncmd.
21295 (grub_cmd_normal): Use new command interface, register rescue,
21296 unregister normal at entry, register normal, unregister rescue at exit.
21298 * include/grub/list.h (grub_list_test_t): New type.
21299 (grub_list_iterate): Return int instead of void.
21300 (grub_list_insert): New function.
21301 (GRUB_AS_NAMED_LIST_P): New macro.
21302 (GRUB_AS_PRIO_LIST): Likewise.
21303 (GRUB_AS_PRIO_LIST_P): Likewise.
21304 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
21305 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
21306 (grub_prio_list): New structure.
21307 (grub_prio_list_insert): New function.
21308 (grub_prio_list_remove): New inline function.
21310 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
21311 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
21312 (GRUB_COMMAND_FLAG_MENU): Likewise.
21313 (GRUB_COMMAND_FLAG_BOTH): Likewise.
21314 (GRUB_COMMAND_FLAG_TITLE): Likewise.
21315 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
21316 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
21317 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
21318 (grub_command): Likewise.
21319 (grub_register_command): Likewise.
21320 (grub_command_find): Likewise.
21321 (grub_iterate_commands): Likewise.
21322 (grub_command_init): Likewise.
21323 (grub_arg_parse): Likewise.
21324 (grub_arg_show_help): Likewise.
21326 * include/grub/rescue.h (grub_rescue_register_command): Removed.
21327 (grub_rescue_unregister_command): Likewise.
21329 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
21330 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
21331 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
21333 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
21334 grub_rescue_cmd_initrd.
21335 * include/grub/i386/loader.h: Likewise.
21336 * include/grub/x86_64/loader.h: Likewise.
21338 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
21340 2009-03-21 Bean <bean123ch@gmail.com>
21342 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
21343 instead of stat in mingw environment.
21345 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
21347 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
21349 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
21352 2009-03-21 Bean <bean123ch@gmail.com>
21354 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
21355 out of range error.
21357 2009-03-18 Michel Dänzer <michel@daenzer.net>
21359 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
21360 checking inode flags for EXT4_EXTENTS_FLAG.
21362 2009-03-18 Robert Millan <rmh@aybabtu.com>
21364 * loader/i386/linux.c: Include `<grub/video.h>' and
21365 `<grub/i386/pc/vbe.h>'..
21366 (grub_linux_setup_video): New function. Loosely based on the EFI one.
21367 (grub_linux32_boot): Attempt to configure video settings with
21368 grub_linux_setup_video().
21369 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
21370 to avoid grub_console_fini() which would step out of graphical mode
21373 2009-03-14 Robert Millan <rmh@aybabtu.com>
21375 Fix build on powerpc.
21376 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
21378 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
21380 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
21381 background image command.
21383 2009-03-12 Colin D Bennett <colin@gibibit.com>
21385 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
21386 (grub_gfxterm_putchar): Extract pairs of identical calls to
21387 draw_cursor out of conditional blocks.
21389 2009-03-11 Pavel Roskin <proski@gnu.org>
21391 * fs/hfs.c (grub_hfs_strncasecmp): New function.
21392 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
21394 2009-03-11 Robert Millan <rmh@aybabtu.com>
21396 * loader/i386/multiboot_elfxx.c
21397 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
21399 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
21401 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
21404 2009-03-11 Robert Millan <rmh@aybabtu.com>
21406 * loader/i386/multiboot.c (code_size): New variable.
21407 (grub_multiboot): Define offsets by adding to `code_size' rather
21408 than subtracting from `grub_multiboot_payload_size'. Provide
21409 4-byte alignment to MBI and others by increasing
21410 `boot_loader_name_length' appropriately.
21412 * loader/i386/multiboot_elfxx.c
21413 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
21415 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
21417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
21420 2009-03-08 Robert Millan <rmh@aybabtu.com>
21422 Make loader/i386/linux.c usable on i386-pc again.
21424 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
21426 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
21429 2009-03-07 Bean <bean123ch@gmail.com>
21431 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
21434 2009-03-06 Robert Millan <rmh@aybabtu.com>
21436 Fix display issue on terminals with screen size other than 80x25
21437 (e.g. gfxterm with resolution higher than 640x480).
21439 * normal/main.c (grub_normal_init_page): Display title text in a
21440 position relative to the center of the terminal instead of relying
21441 on a hardcoded offset.
21443 2009-03-04 Robert Millan <rmh@aybabtu.com>
21445 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
21448 * Makefile.in (host_kernel): New variable.
21449 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
21450 scripts instead of just the windows one.
21451 * configure.ac: Initialize and AC_SUBST `host_kernel'.
21453 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21455 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
21457 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21458 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21459 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21461 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21462 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21464 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21466 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
21467 or if there's no space for the disk label and print the partition number on a
21470 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
21472 * util/misc.c: Include <time.h>.
21473 (grub_millisleep): New function.
21475 2009-03-04 Bean <bean123ch@gmail.com>
21477 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
21478 another option -mno-red-zone.
21480 * commands/handler.c: Change module description.
21482 * kern/handler.c: Add missing space at the end of description line.
21484 * kern/list.c: Likewise.
21486 2009-03-03 Robert Millan <rmh@aybabtu.com>
21488 Move more components to the relocation area, and fix mbi pointer
21489 handling to use the destination rather than the origin (thanks to
21490 Vladimir Serbinenko for spotting).
21492 * loader/i386/multiboot.c (mbi_dest): New variable.
21493 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
21494 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
21497 2009-03-01 Bean <bean123ch@gmail.com>
21499 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
21500 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
21501 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
21502 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
21504 * loader/i386/efi/linux.c (acpi_guid): New variable.
21505 (acpi_guid): Likewise.
21506 (EBDA_SEG_ADDR): New constant.
21507 (LOW_MEM_ADDR): Likewise.
21508 (FAKE_EBDA_SEG): Likewise.
21509 (fake_bios_data): New function.
21510 (grub_linux_boot): Call fake_bios_data.
21512 2009-03-01 Bean <bean123ch@gmail.com>
21514 * commands/terminal.c: Removed.
21516 * commands/handler.c: New file.
21518 * include/grub/list.h: Likewise.
21520 * include/grub/handler.h: Likewise.
21522 * kern/list.c: Likewise.
21524 * kern/handler.c: Likewise.
21526 * kern/term.h: Include header file <grub/handler.h>.
21527 (grub_term_input): Move next field to the beginning.
21528 (grub_term_output): Likewise.
21529 (grub_term_input_class): New variable.
21530 (grub_term_output_class): Likewise.
21531 (grub_term_register_input): Changed to inline function.
21532 (grub_term_register_output): Likewise.
21533 (grub_term_unregister_input): Likewise.
21534 (grub_term_unregister_output): Likewise.
21535 (grub_term_set_current_input): Likewise.
21536 (grub_term_set_current_output): Likewise.
21537 (grub_term_get_current_input): Likewise.
21538 (grub_term_get_current_output): Likewise.
21539 (grub_term_iterate_input): Removed.
21540 (grub_term_iterate_output): Likewise.
21542 * kern/term.c (grub_term_list_input): Removed.
21543 (grub_term_list_output): Likewise.
21544 (grub_term_input_class): New variable.
21545 (grub_term_output_class): Likewise.
21546 (grub_cur_term_input): Change variable as macro.
21547 (grub_cur_term_output): Likewise.
21548 (grub_term_register_input): Removed.
21549 (grub_term_register_output): Likewise.
21550 (grub_term_unregister_input): Likewise.
21551 (grub_term_unregister_output): Likewise.
21552 (grub_term_set_current_input): Likewise.
21553 (grub_term_set_current_output): Likewise.
21554 (grub_term_iterate_input): Likewise.
21555 (grub_term_iterate_output): Likewise.
21556 (grub_term_get_current_input): Likewise.
21557 (grub_term_get_current_output): Likewise.
21559 * util/grub-editenv.c: Include header file <grub/handler.h>.
21560 (grub_term_get_current_input): Removed.
21561 (grub_term_get_current_output): Likewise.
21562 (grub_term_input_class): New variable.
21563 (grub_term_output_class): Likewise.
21565 * util/grub-fstest.c (grub_term_get_current_input): Removed.
21566 (grub_term_get_current_output): Likewise.
21567 (grub_term_input_class): New variable.
21568 (grub_term_output_class): Likewise.
21570 * util/grub-probe.c (grub_term_get_current_input): Removed.
21571 (grub_term_get_current_output): Likewise.
21572 (grub_term_input_class): New variable.
21573 (grub_term_output_class): Likewise.
21575 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
21576 (grub_term_get_current_output): Likewise.
21577 (grub_term_input_class): New variable.
21578 (grub_term_output_class): Likewise.
21580 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
21581 (terminal_mod_SOURCES): Likewise.
21582 (terminal_mod_CFLAGS): Likewise.
21583 (terminal_mod_LDFLAGS): Likewise.
21585 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
21587 (kernel_img_SOURCES): Add list.c and handler.c.
21588 (kernel_img_HEADERS): Add list.h and handler.h.
21590 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21592 (kernel_mod_SOURCES): Add list.c and handler.c.
21593 (kernel_mod_HEADERS): Add list.h and handler.h.
21595 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
21597 (kernel_elf_SOURCES): Add list.c and handler.c.
21598 (kernel_elf_HEADERS): Add list.h and handler.h.
21600 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21602 (kernel_elf_SOURCES): Add list.c and handler.c.
21603 (kernel_elf_HEADERS): Add list.h and handler.h.
21605 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21607 (kernel_mod_SOURCES): Add list.c and handler.c.
21608 (kernel_mod_HEADERS): Add list.h and handler.h.
21610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21612 (kernel_elf_SOURCES): Add list.c and handler.c.
21613 (kernel_elf_HEADERS): Add list.h and handler.h.
21615 2009-02-27 Robert Millan <rmh@aybabtu.com>
21617 Factorize elf32 / elf64 code in Multiboot loader. This will
21618 prevent it from getting out of sync again.
21620 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
21621 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
21622 grub_multiboot_load_elf64): Move from here ...
21623 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
21624 grub_multiboot_load_elf): ... to here (new file).
21626 2009-02-27 Robert Millan <rmh@aybabtu.com>
21628 * util/grub.d/10_linux.in: Rename "single-user mode" to
21631 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
21633 Don't leak in SCSI code.
21634 * disk/scsi.c (grub_scsi_close): free `scsi'.
21636 2009-02-27 Robert Millan <rmh@aybabtu.com>
21638 * loader/i386/pc/multiboot.c: Move from here ...
21639 * loader/i386/multiboot.c: ... to here. Update all users.
21641 2009-02-27 Robert Millan <rmh@aybabtu.com>
21643 Patch from Alexandre Bique <bique.alexandre@gmail.com>
21644 * util/i386/pc/grub-setup.c (setup): Fix directory path.
21646 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
21648 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
21651 2009-02-27 Robert Millan <rmh@aybabtu.com>
21653 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
21654 `0x' qualifier as 0 when base is specified as parameter).
21656 2009-02-24 Bean <bean123ch@gmail.com>
21658 * configure.ac: Check for -mcmodel=large in x86_64 target.
21660 * include/grub/efi/api.h (efi_call_10): New macro.
21661 (efi_wrap_10): New function.
21663 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
21664 (GRUB_PE32_REL_BASED_HIGH): Likewise.
21665 (GRUB_PE32_REL_BASED_LOW): Likewise.
21666 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
21667 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
21668 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
21669 (GRUB_PE32_REL_BASED_SECTION): Likewise.
21670 (GRUB_PE32_REL_BASED_REL): Likewise.
21671 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
21672 (GRUB_PE32_REL_BASED_DIR64): Likewise.
21673 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
21675 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
21678 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
21679 (efi_wrap_10): New function.
21681 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
21683 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
21684 MB/MBP model (NV chipset).
21685 (devdata_devs): Add devpath_5 to the list.
21687 * load/i386/efi/linux.c (video_base): Remove variable.
21688 (RGB_MASK): New macro.
21689 (RGB_MAGIC): Likewise.
21690 (LINE_MIN): Likewise.
21691 (LINE_MAX): Likewise.
21692 (FBTEST_STEP): Likewise.
21693 (FBTEST_COUNT): Likewise.
21694 (fb_list): New variable.
21695 (grub_find_video_card): Remove function.
21696 (find_framebuf): New function.
21697 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
21700 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
21701 problem for x86_64.
21703 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
21705 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
21707 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
21710 2009-02-22 Robert Millan <rmh@aybabtu.com>
21712 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
21713 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
21714 in our relocation, instead of using it directly from heap. Also
21715 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
21717 2009-02-21 Robert Millan <rmh@aybabtu.com>
21719 Implement USB keyboard support (based on patch by Marco Gerards)
21721 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
21722 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
21723 (usb_keyboard_mod_LDFLAGS): New variables.
21725 * term/usb_keyboard.c: New file.
21727 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21729 Corrected wrong declaration
21731 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
21733 2009-02-14 Christian Franke <franke@computer.org>
21735 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
21736 (grub_lspci_iter): Print class code and programming interface byte.
21738 2009-02-14 Christian Franke <franke@computer.org>
21740 * gendistlist.sh: Ignore `.svn' directories.
21742 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
21744 * fs/fat.c: Add 2009 to Copyright line.
21746 2009-02-14 Christian Franke <franke@computer.org>
21748 * commands/hdparm.c: New file. Provides `hdparm' command
21749 which sends ATA commands via grub_disk_ata_pass_through ().
21751 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
21753 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
21754 and <grub/cpu/io.h> to include/grub/ata.h.
21755 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
21756 (GRUB_CDROM_SECTOR_SIZE): Remove.
21757 (GRUB_ATA_*): Move to include/grub/ata.h.
21758 (GRUB_ATAPI_*): Likewise.
21759 (enum grub_ata_commands): Likewise.
21760 (enum grub_ata_timeout_milliseconds): Likewise.
21761 (struct grub_ata_device): Likewise.
21762 (grub_ata_regset): Likewise.
21763 (grub_ata_regget): Likewise.
21764 (grub_ata_regset2): Likewise.
21765 (grub_ata_regget2): Likewise.
21766 (grub_ata_check_ready): Likewise.
21767 (grub_ata_wait_not_busy): Remove static, exported in
21768 include/grub/ata.h.
21769 (grub_ata_wait_drq): Likewise.
21770 (grub_ata_pio_read): Likewise.
21772 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
21773 function for hdparm.mod.
21775 * include/grub/ata.h: New file, contains declarations from
21777 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
21779 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
21780 (grub_disk_ata_pass_through): New exported variable.
21782 * kern/disk.c (grub_disk_ata_pass_through): New variable.
21784 2009-02-13 Colin D Bennett <colin@gibibit.com>
21786 Support multiple fallback entries, and provide an API to support
21787 executing default+fallback menu entries. Renamed the `terminal' menu
21790 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
21791 variable declaration.
21792 (grub_menu_execute_callback): New structure declaration.
21793 (grub_menu_execute_callback_t): New typedef.
21794 (grub_menu_execute_with_fallback): New function declaration.
21795 (grub_menu_get_entry): Likewise.
21796 (grub_menu_get_timeout): Likewise.
21797 (grub_menu_set_timeout): Likewise.
21799 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
21801 * normal/menu.c (grub_wait_after_message): Moved to
21802 `normal/menu_text.c'.
21803 (draw_border): Likewise.
21804 (print_message): Likewise.
21805 (print_entry): Likewise.
21806 (print_entries): Likewise.
21807 (grub_menu_init_page): Likewise.
21808 (get_entry_number): Likewise.
21809 (print_timeout): Likewise.
21810 (run_menu): Likewise.
21811 (grub_menu_execute_entry): Likewise.
21812 (show_text_menu): Likewise.
21813 (get_and_remove_first_entry_number): New function.
21814 (grub_menu_execute_with_fallback): Likewise.
21815 (get_entry): Renamed to ...
21816 (grub_menu_get_entry): .. this and made it global.
21817 (get_timeout): Renamed to ...
21818 (grub_menu_get_timeout): ... this and made it global.
21819 (set_timeout): Renamed to ...
21820 (grub_menu_set_timeout): ... this and made it global.
21821 (grub_normal_terminal_menu_viewer): Renamed to ...
21822 (grub_normal_text_menu_viewer): ... this.
21824 * normal/menu_text.c: New file. Extracted text-menu-specific code
21825 from normal/menu.c.
21827 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
21828 (normal_mod_SOURCES): Likewise.
21830 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21831 (normal_mod_SOURCES): Likewise.
21833 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21834 (normal_mod_SOURCES): Likewise.
21836 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
21837 (normal_mod_SOURCES): Likewise.
21839 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21840 (normal_mod_SOURCES): Likewise.
21842 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21843 (normal_mod_SOURCES): Likewise.
21845 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21846 (normal_mod_SOURCES): Likewise.
21848 2009-02-11 Robert Millan <rmh@aybabtu.com>
21850 * util/grub.d/00_header.in: Update old reference to `font' command.
21852 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
21854 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
21856 Based on patch from Javier Martín.
21858 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
21860 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
21861 to avoid false positives with FAT.
21862 (grub_fstest_SOURCES): Likewise.
21863 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21864 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21866 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21867 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21868 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21870 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
21872 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
21873 bpb.version_specific.fat12_or_fat16.fstype and
21874 bpb.version_specific.fat32.fstype.
21876 2009-02-08 Robert Millan <rmh@aybabtu.com>
21878 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
21880 2009-02-08 Robert Millan <rmh@aybabtu.com>
21882 * Makefile.in (host_os, host_cpu): New variables.
21883 (target_os): Remove. Update all users.
21885 2009-02-08 Marco Gerards <marco@gnu.org>
21887 * Makefile.in (enable_grub_emu_usb): New variable.
21888 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
21889 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
21890 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
21891 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
21892 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
21893 `usbtest.mod' and `usbms.mod'.
21894 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
21895 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
21896 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
21897 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
21898 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
21901 * disk/usbms.c: New file.
21903 * include/grub/usb.h: Likewise.
21905 * include/grub/usbtrans.h: Likewise.
21907 * include/grub/usbdesc.h: Likewise.
21909 * bus/usb/usbtrans.c: Likewise.
21911 * bus/usb/ohci.c: Likewise.
21913 * bus/usb/uhci.c: Likewise.
21915 * bus/usb/usbhub.c: Likewise.
21917 * bus/usb/usb.c: Likewise.
21919 * commands/usbtest.c: Likewise.
21921 * util/usb.c: Likewise.
21923 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
21925 * configure.ac: Test for libusb presence.
21927 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
21929 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
21931 * kern/mm.c: Add more comments.
21933 2009-02-08 Robert Millan <rmh@aybabtu.com>
21935 Patch from Javier Martín.
21936 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
21937 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
21939 2009-02-08 Robert Millan <rmh@aybabtu.com>
21941 * fs/cpio.c: Split tar functionality to ...
21942 * fs/tar.c: ... here (new file). Update all users.
21944 2009-02-07 Robert Millan <rmh@aybabtu.com>
21946 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
21947 backward-incompatible features.
21949 Based on patch from Javier Martín, with some adjustments.
21951 2009-02-07 Michael Scherer <misc@mandriva.org>
21953 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
21955 2009-02-07 Robert Millan <rmh@aybabtu.com>
21957 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
21958 position of `disk/lvm.c' to ensure grub_init_all() always picks it
21959 after the RAID stuff.
21961 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
21963 Fixes problem when running vbetest command as reported by
21964 Vladimir Serbinenko <phcoder@gmail.com>.
21966 * (grub_vbe_set_video_mode): Fixed problem with text modes.
21968 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
21970 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
21971 /dev/md/NpN style mdraid devices.
21973 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
21975 * util/unifont2pff.rb: Remove.
21977 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
21979 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
21982 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
21984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
21985 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21986 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21987 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21989 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21990 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21992 2009-02-02 Christian Franke <franke@computer.org>
21994 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
21996 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
21998 * INSTALL: Note that we now require at least autoconf 2.59 and
21999 that LZO is optional.
22001 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22003 Base on patch on bug #24154 created by Tomas Tintera
22004 <trosos@seznam.cz>.
22006 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
22008 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22010 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
22011 <bero@arklinux.org>.
22013 * normal/parser.y (script_init): Add missing semicolon.
22015 2009-01-31 Colin D Bennett <colin@gibibit.com>
22017 * normal/main.c: Add include to grub/menu_viewer.h.
22018 (free_menu_entry_classes): Added.
22019 (grub_normal_menu_addentry): Added class property handling.
22020 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
22021 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
22023 * normal/menu_viewer.c: New file.
22025 * normal/menu.c (run_menu_entry): Renamed to ...
22026 (grub_menu_execute_entry): ... this and made it as global.
22027 (grub_menu_run): Renamed to ...
22028 (show_text_menu): ... this and made it local.
22029 (show_text_menu): Adapt to new function names.
22030 (grub_normal_terminal_menu_viewer): New global variable.
22032 * include/grub/menu.h: New file.
22034 * include/grub/menu_viewer.h: New file.
22036 * include/grub/normal.h: Added include to grub/menu.h.
22037 (grub_menu_entry): Moved to include/grub/menu.h.
22038 (grub_menu_entry_t): Likewise.
22039 (grub_menu): Likewise.
22040 (grub_menu_t): Likewise.
22041 (grub_normal_terminal_menu_viewer): Added.
22042 (grub_menu_execute_entry): Likewise.
22043 (grub_menu_run): Removed.
22045 * DISTLIST: Added include/grub/menu.h.
22046 Added include/grub/menu_viewer.h.
22047 Added normal/menu_viewer.c.
22049 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
22051 * normal/execute.c (grub_script_execute_menuentry): Changed to use
22052 arglist for menutitle arguments.
22054 * normal/main.c (grub_normal_menu_addentry): Likewise.
22056 * normal/parser.y (menuentry): Likewise.
22058 * normal/script.c (grub_script_create_cmdmenu): Likewise.
22060 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
22061 (grub_script_create_cmdmenu): Likewise.
22063 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
22065 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
22068 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
22070 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
22072 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
22074 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22076 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22078 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22080 2009-01-30 Christian Franke <franke@computer.org>
22082 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
22083 in option help text.
22085 2009-01-27 Pavel Roskin <proski@gnu.org>
22087 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
22089 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22091 * commands/lsmmap.c: Add include to grub/machine/memory.h.
22093 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
22095 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
22096 unregister function.
22098 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22100 * disk/scsi.c (grub_scsi_read): Fix sign problem.
22102 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
22104 * util/grub-mkfont.c (usage): Fix typo.
22106 * util/elf/grub-mkimage.c (load_modules): Fix warning.
22108 2009-01-26 Daniel Mierswa <impulze@impulze.org>
22110 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
22112 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
22114 * kern/misc.c (grub_strcasecmp): New function.
22115 (grub_strcasecmp): Use grub_size_t instead of int for length.
22117 * include/grub/misc.h: Update function prototypes.
22119 2009-01-26 Robert Millan <rmh@aybabtu.com>
22121 * configure.ac: Fix cross-compilation check.
22123 2009-01-22 Christian Franke <franke@computer.org>
22125 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
22126 (precision) digit string. Allow `.format2' without `format1' (width).
22127 Limit input chars for `%s' output to `format2' if specified. This is
22128 compatible with standard printf ().
22130 2009-01-22 Christian Franke <franke@computer.org>
22132 * disk/ata.c (grub_ata_wait_status): Replace by ...
22133 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
22134 other status bits may be invalid while BSY is asserted.
22135 (grub_ata_check_ready): New function.
22136 (grub_ata_cmd): Removed.
22137 (grub_ata_wait_drq): New function.
22138 (grub_ata_strncpy): Remove inline.
22139 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
22140 and error check now done by grub_ata_wait_drq ().
22141 (grub_ata_pio_write): Likewise.
22142 (grub_atapi_identify): Set DEV before check for !BSY. Use
22143 grub_ata_wait_drq () to wait for data.
22144 (grub_ata_device_initialize): Add status register check to
22145 detect missing SATA slave devices. Add debug messages.
22146 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
22147 (grub_atapi_packet): Set DEV before check for !BSY. Replace
22148 transfer loop by grub_ata_pio_write ().
22149 (grub_ata_identify): Set DEV before check for !BSY. Use
22150 grub_ata_wait_drq () to wait for data.
22151 (grub_ata_setaddress): Set DEV before check for !BSY.
22152 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
22153 read/write in one loop. Fix invalid command on write. Fix incomplete
22154 command on (size % batch) == 0. Add missing error check after write of
22155 last block. Add debug messages.
22156 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
22158 2009-01-19 Christian Franke <franke@computer.org>
22160 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
22161 (GRUB_ATAPI_IREASON_*): Likewise.
22162 (grub_ata_pio_write): Fix timeout error return.
22163 (grub_atapi_identify): Add grub_ata_wait () after cmd.
22164 (grub_atapi_wait_drq): New function.
22165 (grub_atapi_packet): New parameter `size'.
22166 Use grub_atapi_wait_drq () and direct write instead of
22167 grub_ata_pio_write ().
22168 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
22169 reads the number of bytes requested by the device for each DRQ
22171 (grub_atapi_write): Remove old implementation, return not
22172 implemented instead.
22174 2009-01-19 Christian Franke <franke@computer.org>
22176 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
22177 of 512 to calculate data size.
22178 (grub_scsi_read12): Likewise.
22179 (grub_scsi_write10): Likewise.
22180 (grub_scsi_write12): Likewise.
22181 (grub_scsi_read): Adjust size according to blocksize.
22182 Add checks for invalid blocksize and unaligned transfer.
22184 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
22186 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
22188 * term/gfxterm.c (write_char): Fix background rendering for wide
22191 2009-01-19 Robert Millan <rmh@aybabtu.com>
22193 * config.guess: Update to latest version from config git.
22194 * config.sub: Likewise.
22196 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
22198 * Makefile.in: Change font compilation to use new grub-mkfont instead
22201 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
22202 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22203 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22204 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22205 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22206 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22207 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22208 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22209 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22211 2009-01-16 Christian Franke <franke@computer.org>
22213 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
22214 (enum grub_ata_timeout_milliseconds): New enum.
22215 (grub_ata_wait_status): Add parameter milliseconds.
22216 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
22217 recovery from timed-out commands.
22218 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
22219 return grub_errno instead of REG_ERROR.
22220 (grub_ata_pio_write): Add parameter milliseconds.
22221 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
22222 Pass milliseconds to grub_ata_wait_status () and
22223 grub_ata_pio_read ().
22224 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
22225 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
22226 grub_ata_wait_status (). Fix IDENTIFY timeout check.
22227 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
22228 It is not suitable for device detection, because DEV bit is ignored,
22229 the command may run too long, and not all devices set the signature
22231 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
22232 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
22233 Fix device selection, DEV bit must be set first to address the registers
22234 of the correct device.
22235 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
22236 grub_ata_pio_read/write ().
22237 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
22238 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
22240 2009-01-13 Carles Pina i Estany <carles@pina.cat>
22242 * util/grub-editenv.c (main): Use fseeko(), not fseek().
22244 2009-01-13 Bean <bean123ch@gmail.com>
22246 * util/grub-mkfont.c (write_font): forget to remove some debug code.
22248 2009-01-13 Bean <bean123ch@gmail.com>
22250 * Makefile.in: (enable_grub_mkfont): New variable.
22251 (freetype_cflags): Likewise.
22252 (freetype_libs): Likewise.
22254 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
22255 (grub_mkfont_SOURCES): New variable.
22256 (grub_mkfont_CFLAGS): Likewise.
22257 (grub_mkfont_LDFLAGS): Likewise.
22259 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
22260 library if `--enable-grub-mkfont' is requested.
22261 (enable_grub_mkfont): New variable.
22262 (freetype_cflags): Likewise.
22263 (freetype_libs): Likewise.
22265 * util/grub-mkfont.c: New file.
22267 2009-01-12 Christian Franke <franke@computer.org>
22269 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
22270 mode check. Fix setting of compat_use[].
22272 2009-01-10 Robert Millan <rmh@aybabtu.com>
22274 Update a few copyright years which we forgot to do in 2008 (only for
22275 files whose changes made in 2008 were copyright-significant)
22277 * Makefile.in: Add 2008 to Copyright line.
22278 * disk/ieee1275/ofdisk.c: Likewise.
22279 * disk/efi/efidisk.c: Likewise.
22280 * kern/dl.c: Likewise.
22281 * kern/sparc64/ieee1275/init.c: Likewise.
22282 * kern/mm.c: Likewise.
22283 * kern/efi/mm.c: Likewise.
22284 * boot/i386/pc/boot.S: Likewise.
22285 * genfslist.sh: Likewise.
22286 * fs/iso9660.c: Likewise.
22287 * fs/hfs.c: Likewise.
22288 * fs/jfs.c: Likewise.
22289 * fs/minix.c: Likewise.
22290 * fs/ufs.c: Likewise.
22291 * gensymlist.sh.in: Likewise.
22292 * genkernsyms.sh.in: Likewise.
22293 * include/grub/misc.h: Likewise.
22294 * include/grub/types.h: Likewise.
22295 * include/grub/symbol.h: Likewise.
22296 * include/grub/elf.h: Likewise.
22297 * include/grub/kernel.h: Likewise.
22298 * include/grub/disk.h: Likewise.
22299 * include/grub/dl.h: Likewise.
22300 * include/grub/i386/linux.h: Likewise.
22301 * include/grub/i386/pc/biosdisk.h: Likewise.
22302 * include/grub/efi/api.h: Likewise.
22303 * include/grub/efi/pe32.h: Likewise.
22304 * include/grub/util/misc.h: Likewise.
22305 * normal/execute.c: Likewise.
22306 * normal/arg.c: Likewise.
22307 * normal/completion.c: Likewise.
22308 * normal/lexer.c: Likewise.
22309 * normal/parser.y: Likewise.
22310 * normal/misc.c: Likewise.
22311 * commands/i386/pc/vbeinfo.c: Likewise.
22312 * commands/hexdump.c: Likewise.
22313 * commands/terminal.c: Likewise.
22314 * commands/ls.c: Likewise.
22315 * commands/help.c: Likewise.
22316 * partmap/pc.c: Likewise.
22317 * loader/efi/chainloader.c: Likewise.
22318 * loader/multiboot_loader.c: Likewise.
22319 * loader/i386/pc/multiboot2.c: Likewise.
22320 * term/efi/console.c: Likewise.
22321 * term/i386/pc/serial.c: Likewise.
22322 * util/lvm.c: Likewise.
22323 * util/console.c: Likewise.
22324 * util/i386/efi/grub-mkimage.c: Likewise.
22325 * util/raid.c: Likewise.
22327 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
22329 * commands/videotest.c: Removed include to grub/machine/memory.h.
22331 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
22332 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
22333 (video_mod_SOURCES): Removed.
22334 (video_mod_CFLAGS): Likewise.
22335 (video_mod_LDFLAGS): Likewise.
22336 (gfxterm_mod_SOURCES): Likewise.
22337 (gfxterm_mod_CFLAGS): Likewise.
22338 (gfxterm_mod_LDFLAGS): Likewise.
22339 (videotest_mod_SOURCES): Likewise.
22340 (videotest_mod_CFLAGS): Likewise.
22341 (videotest_mod_LDFLAGS): Likewise.
22342 (bitmap_mod_SOURCES): Likewise.
22343 (bitmap_mod_CFLAGS): Likewise.
22344 (bitmap_mod_LDFLAGS): Likewise.
22345 (tga_mod_SOURCES): Likewise.
22346 (tga_mod_CFLAGS): Likewise.
22347 (tga_mod_LDFLAGS): Likewise.
22348 (jpeg_mod_SOURCES): Likewise.
22349 (jpeg_mod_CFLAGS): Likewise.
22350 (jpeg_mod_LDFLAGS): Likewise.
22351 (png_mod_SOURCES): Likewise.
22352 (png_mod_CFLAGS): Likewise.
22353 (png_mod_LDFLAGS): Likewise.
22355 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
22356 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
22357 (video_mod_SOURCES): Added.
22358 (video_mod_CFLAGS): Likewise.
22359 (video_mod_LDFLAGS): Likewise.
22360 (videotest_mod_SOURCES): Likewise.
22361 (videotest_mod_CFLAGS): Likewise.
22362 (videotest_mod_LDFLAGS): Likewise.
22363 (bitmap_mod_SOURCES): Likewise.
22364 (bitmap_mod_CFLAGS): Likewise.
22365 (bitmap_mod_LDFLAGS): Likewise.
22366 (tga_mod_SOURCES): Likewise.
22367 (tga_mod_CFLAGS): Likewise.
22368 (tga_mod_LDFLAGS): Likewise.
22369 (jpeg_mod_SOURCES): Likewise.
22370 (jpeg_mod_CFLAGS): Likewise.
22371 (jpeg_mod_LDFLAGS): Likewise.
22372 (png_mod_SOURCES): Likewise.
22373 (png_mod_CFLAGS): Likewise.
22374 (png_mod_LDFLAGS): Likewise.
22375 (gfxterm_mod_SOURCES): Likewise.
22376 (gfxterm_mod_CFLAGS): Likewise.
22377 (gfxterm_mod_LDFLAGS): Likewise.
22379 * term/gfxterm.c: Removed include to grub/machine/memory.h,
22380 grub/machine/console.h.
22382 2009-01-04 Jerone Young <jerone@gmail.com>
22384 Make on screen instructions clearer
22386 Based on patch created by Jidanni <jidanni@jidanni.org>
22388 * normal/menu.c: print clearer instructions on the screen
22390 2009-01-02 Colin D Bennett <colin@gibibit.com>
22394 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
22395 build system and fixed gfxterm.c to work with different sized fonts.
22397 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
22399 * configure: Re-generated.
22401 * DISTLIST: Removed font/manager.c.
22403 Added font/font_cmd.c.
22405 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
22408 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
22410 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
22412 * kern/term.c: Changed users of grub_utf8_to_ucs4.
22414 * normal/menu.c: Likewise.
22416 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
22417 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
22419 * include/grub/font.h: Replaced with new file.
22421 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
22422 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
22423 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
22424 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
22425 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
22426 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
22427 fg_red, fg_green, fg_blue, fg_alpha.
22428 (grub_video_adapter): Removed blit_glyph.
22429 (grub_video_blit_glyph): Removed.
22431 * font/manager.c: Removed file.
22433 * font/font.c: New file.
22435 * font/font_cmd.c: Likewise.
22437 * video/video.c (grub_video_blit_glyph): Removed.
22439 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
22440 (grub_video_vbe_map_rgba): Likewise.
22441 (grub_video_vbe_unmap_color_int): Likewise.
22442 (grub_video_vbe_blit_glyph): Removed.
22443 (grub_video_vbe_adapter): Removed blit_glyph.
22445 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
22446 (get_pixel): Likewise.
22447 (set_pixel): Likewise.
22449 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
22451 * term/gfxterm.c: Adapted to new font engine.
22453 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
22455 * term/i386/pc/vga.c: Likewise.
22457 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
22459 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22461 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22463 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22465 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22467 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22469 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22471 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22473 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22475 * util/grub.d/00_header.in: Changed to use new loadfont command.
22477 * util/grub-mkconfig_lib.in: Changed font extension.
22479 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
22481 * util/getroot.c (grub_util_get_grub_dev): Add support for
22482 /dev/md/dNNpNN style partitionable mdraid devices.
22484 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
22486 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
22487 at a time limit of the PXE TFTP API correctly.
22488 (grub_pxefs_close): Likewise.
22490 2008-11-29 Robert Millan <rmh@aybabtu.com>
22492 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
22493 grub_ata_device_initialize() calls.
22495 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
22497 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
22499 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
22501 2008-11-28 Robert Millan <rmh@aybabtu.com>
22503 Fix build on powerpc-ieee1275. Based on patch created by
22504 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
22505 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
22506 `kern/ieee1275/mmap.c'.
22507 * include/grub/powerpc/ieee1275/memory.h: New file.
22509 Provide grub-install on coreboot.
22510 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
22511 (grub_install_SOURCES): New variable.
22512 * util/i386/pc/grub-install.in: Add a few condition checks to make it
22513 usable on coreboot.
22515 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
22517 * util/grub-fstest.c (grub_term_get_current_input): Change return type
22518 to `grub_term_input_t'.
22519 (grub_term_get_current_output): Change return type to
22520 `grub_term_output_t'.
22522 2008-11-22 Robert Millan <rmh@aybabtu.com>
22524 Fix breakage on coreboot due to declaration mismatch.
22525 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
22526 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
22527 grub_vga_text_cls().
22529 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
22530 comments. Avoid copying one more byte than necessary (just in case).
22532 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
22533 to 0x200000 (avoids trouble with some OFW implementations, and matches
22534 with the one in Yaboot).
22535 Reported by Manoel Abranches
22537 2008-11-20 Robert Millan <rmh@aybabtu.com>
22539 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
22540 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
22542 * util/grub-mkconfig_lib.in (grub_warn): New function.
22543 (convert_system_path_to_grub_path): Use grub_warn() when issuing
22544 warnings, to obtain consistent formatting.
22545 * util/grub.d/00_header.in: Likewise.
22546 * util/update-grub_lib.in: Likewise.
22548 * loader/i386/linux.c (allocate_pages): Fix a warning.
22549 Move comment text to `#error' stanza.
22551 Harmonize ieee1275's grub_available_iterate() with the generic
22552 grub_machine_mmap_iterate() interface (fixes a recently-introduced
22553 build problem on i386-ieee1275):
22554 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
22555 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
22556 parameter `type'. Update all users of this function.
22557 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
22558 `kern/ieee1275/mmap.c'.
22559 * kern/ieee1275/init.c
22560 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
22562 (grub_machine_mmap_iterate): ... this.
22563 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
22564 return type to `grub_err_t'. Update all implementations of this
22565 function prototype.
22566 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
22569 Add `lsmmap' command (lists firmware-provided memory map):
22570 * commands/lsmmap.c: New file.
22571 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
22572 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
22574 * conf/powerpc-ieee1275.rmk: Likewise.
22575 * conf/i386-coreboot.rmk: Likewise.
22576 * conf/i386-ieee1275.rmk: Likewise.
22578 2008-11-19 Robert Millan <rmh@aybabtu.com>
22580 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
22581 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
22582 constraints to initrd allocation (based on code from
22583 loader/i386/pc/linux.c). Without them, initrd was allocated too high
22584 for Linux to find it.
22586 2008-11-14 Robert Millan <rmh@aybabtu.com>
22588 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
22589 order to cope with duplicate slashes.
22591 2008-11-14 Robert Millan <rmh@aybabtu.com>
22593 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
22594 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
22595 don't want to mess with lower memory, because it is used in the Linux
22598 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
22599 an appropriate place in lower memory, between 0x10000 and 0x90000,
22600 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
22601 is in our heap (probably as a result of it being corrupted during
22602 decompression). Add #error instance with comment to explain why this
22603 loader isn't currently usable on PC/BIOS.
22605 2008-11-14 Robert Millan <rmh@aybabtu.com>
22607 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
22608 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
22610 2008-11-12 Robert Millan <rmh@aybabtu.com>
22612 Make loader/i386/linux.c buildable on i386-pc (although disabled).
22614 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
22615 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
22617 * include/grub/i386/pc/memory.h: ... to here.
22619 2008-11-12 Robert Millan <rmh@aybabtu.com>
22621 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
22624 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
22625 (grub_console_cur_color, grub_console_real_putchar)
22626 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22627 (grub_console_setcolorstate, grub_console_setcolor)
22628 (grub_console_getcolor): Move from here ...
22629 * include/grub/i386/vga_common.h: ... to here (new file).
22631 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
22632 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
22633 `<grub/i386/io.h>'.
22634 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
22635 `<grub/i386/vga_common.h>'.
22637 2008-11-12 Robert Millan <rmh@aybabtu.com>
22639 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
22640 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
22641 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
22643 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22644 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
22646 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
22647 grub_console_init() with call to grub_vga_text_init().
22648 (grub_machine_fini): Replace call to
22649 grub_console_fini() with call to grub_vga_text_fini() and
22650 grub_at_keyboard_fini().
22652 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
22653 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22654 (grub_console_setcolorstate, grub_console_setcolor)
22655 (grub_console_getcolor): New function prototypes.
22657 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
22658 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
22659 (grub_vga_text_setcursor): Static-ize.
22660 (grub_vga_text_term): New structure.
22661 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
22663 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
22664 (grub_console_cur_color, grub_console_standard_color)
22665 (grub_console_normal_color, grub_console_highlight_color)
22666 (map_char, grub_console_putchar, grub_console_getcharwidth)
22667 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
22668 (grub_console_getcolor): Move from here ...
22669 * term/i386/vga_common.c: ... to here (same function names).
22671 2008-11-12 Robert Millan <rmh@aybabtu.com>
22673 Use newly-added Multiboot support in coreboot.
22675 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22676 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
22678 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
22679 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
22680 (codestart): Store the MBI in `startup_multiboot_info' when we're
22681 being loaded using Multiboot.
22683 * kern/i386/coreboot/init.c (grub_machine_init): Move
22684 grub_at_keyboard_init() call to beginning of function (useful for
22685 debugging). Call grub_machine_mmap_init() before attempting to use
22686 grub_machine_mmap_iterate().
22687 (grub_lower_mem, grub_upper_mem): Move from here ...
22688 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
22691 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
22692 function prototype.
22694 2008-11-12 Robert Millan <rmh@aybabtu.com>
22696 Fix a regression introduced by the at_keyboard.mod split. Because
22697 some terminals are default on some platforms and non-default on
22698 others, the first terminal being registered determines which is
22699 going to be default.
22701 * kern/term.c (grub_term_register_input): If this is the first
22702 terminal being registered, set it as the current one.
22703 (grub_term_register_output): Likewise.
22705 * term/efi/console.c (grub_console_init): Do not call
22706 grub_term_set_current_output() or grub_term_set_current_input().
22707 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
22708 * term/i386/pc/console.c (grub_console_init): Likewise.
22709 (grub_console_fini): Do not call grub_term_set_current_input()
22710 (but leave grub_term_set_current_output() to restore text mode).
22712 2008-11-10 Robert Millan <rmh@aybabtu.com>
22714 * util/grub.d/00_header.in: Add backward compatibility check for
22715 versions of terminal.mod that don't understand `terminal_input' or
22718 2008-11-09 Robert Millan <rmh@aybabtu.com>
22720 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
22721 `terminal_input' / `terminal_output', not `terminal'.
22723 2008-11-08 Robert Millan <rmh@aybabtu.com>
22725 * Makefile.in (include_DATA): Fix srcdir=. assumption.
22726 (DISTCLEANFILES): Add `build_env.mk'.
22728 2008-11-08 Robert Millan <rmh@aybabtu.com>
22730 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
22731 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
22732 members. Update all users.
22733 * util/console.c (grub_ncurses_term): Split in ...
22734 (grub_ncurses_term_input): ... this, and ...
22735 (grub_ncurses_term_output): ... this. Update all users.
22736 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
22738 2008-11-08 Robert Millan <rmh@aybabtu.com>
22740 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
22741 (PKGDATA): Add $(pkgdata_SRCDIR).
22742 (pkglib_BUILDDIR): New variable.
22743 (pkgdata_SRCDIR): New variable.
22744 (build_env.mk): New target.
22745 (include_DATA): New variable.
22746 (install-local): Install $(include_DATA) files in $(includedir).
22748 2008-11-07 Pavel Roskin <proski@gnu.org>
22750 * gendistlist.sh: Use C locale for sorting to ensure consistent
22751 output on all systems.
22753 * util/grub.d/00_header.in: Remove incorrect space before
22756 2008-11-07 Robert Millan <rmh@aybabtu.com>
22758 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
22760 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
22761 * loader/multiboot_loader.c (find_multi_boot2_header): New function
22762 (based on find_multi_boot1_header).
22763 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
22764 using find_multi_boot2_header(), and abort if neither Multiboot or
22765 Multiboot headers were found.
22767 2008-11-07 Robert Millan <rmh@aybabtu.com>
22769 Modularize at_keyboard.mod:
22771 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
22772 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
22773 (at_keyboard_mod_LDFLAGS): New variables.
22775 Actual terminal split:
22777 * include/grub/term.h (struct grub_term): Split in ...
22778 (struct grub_term_input): ... this, and ...
22779 (struct grub_term_output): ... this. Update all users.
22780 (grub_term_set_current): Split in ...
22781 (grub_term_set_current_input): ... this, and ...
22782 (grub_term_set_current_output): ... this.
22783 (grub_term_get_current): Split in ...
22784 (grub_term_get_current_input): ... this, and ...
22785 (grub_term_get_current_output): ... this.
22786 (grub_term_register): Split in ...
22787 (grub_term_register_input): ... this, and ...
22788 (grub_term_register_output): ... this.
22789 (grub_term_unregister): Split in ...
22790 (grub_term_unregister_input): ... this, and ...
22791 (grub_term_unregister_output): ... this.
22792 (grub_term_iterate): Split in ...
22793 (grub_term_iterate_input): ... this, and ...
22794 (grub_term_iterate_output): ... this.
22796 * kern/term.c (grub_term_list): Split in ...
22797 (grub_term_list_input): ... this, and ...
22798 (grub_term_list_output): ... this. Update all users.
22799 (grub_cur_term): Split in ...
22800 (grub_cur_term_input): ... this, and ...
22801 (grub_cur_term_output): ... this. Update all users.
22802 (grub_term_set_current): Split in ...
22803 (grub_term_set_current_input): ... this, and ...
22804 (grub_term_set_current_output): ... this.
22805 (grub_term_get_current): Split in ...
22806 (grub_term_get_current_input): ... this, and ...
22807 (grub_term_get_current_output): ... this.
22808 (grub_term_register): Split in ...
22809 (grub_term_register_input): ... this, and ...
22810 (grub_term_register_output): ... this.
22811 (grub_term_unregister): Split in ...
22812 (grub_term_unregister_input): ... this, and ...
22813 (grub_term_unregister_output): ... this.
22814 (grub_term_iterate): Split in ...
22815 (grub_term_iterate_input): ... this, and ...
22816 (grub_term_iterate_output): ... this.
22818 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
22819 a check for input and one for output (and only attempt to get keys
22820 from user when input works).
22822 * util/grub-probe.c (grub_term_get_current): Split in ...
22823 (grub_term_get_current_input): ... this, and ...
22824 (grub_term_get_current_output): ... this.
22825 * util/grub-fstest.c: Likewise.
22826 * util/i386/pc/grub-setup.c: Likewise.
22827 * util/grub-editenv.c: Likewise.
22829 Portability adjustments:
22831 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
22832 `term/i386/pc/at_keyboard.c'.
22833 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
22834 grub_keyboard_controller_init() (now handled by terminal .init).
22835 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
22836 grub_at_keyboard_init().
22837 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
22838 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
22839 at_keyboard.mod via input terminal interface).
22840 * include/grub/i386/coreboot/console.h: Convert into a stub for
22841 `<grub/i386/pc/console.h>'.
22843 Migrate full terminals to new API:
22845 * term/efi/console.c (grub_console_term): Split into ...
22846 (grub_console_term_input): ... this, and ...
22847 (grub_console_term_output): ... this. Update all users.
22848 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
22849 (grub_ofconsole_init): Split into ...
22850 (grub_ofconsole_init_input): ... this, and ...
22851 (grub_ofconsole_init_output): ... this.
22852 (grub_ofconsole_term): Split into ...
22853 (grub_ofconsole_term_input): ... this, and ...
22854 (grub_ofconsole_term_output): ... this. Update all users.
22855 * term/i386/pc/serial.c (grub_serial_term): Split into ...
22856 (grub_serial_term_input): ... this, and ...
22857 (grub_serial_term_output): ... this. Update all users.
22858 * term/i386/pc/console.c (grub_console_term): Split into ...
22859 (grub_console_term_input): ... this, and ...
22860 (grub_console_term_output): ... this. Update all users.
22861 (grub_console_term_input): Only enable it on PC/BIOS platform.
22862 (grub_console_init): Remove grub_keyboard_controller_init() call.
22864 Migrate input terminals to new API:
22866 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
22867 `i386' and `i386/pc' to enable build on x86_64 (this driver is
22868 i386-specific anyway).
22869 (grub_console_checkkey): Rename to ...
22870 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
22872 (grub_keyboard_controller_orig): New variable.
22873 (grub_console_getkey): Rename to ...
22874 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
22876 (grub_keyboard_controller_init): Static-ize. Save original
22877 controller value so that it can be restored ...
22878 (grub_keyboard_controller_fini): ... here (new function).
22879 (grub_at_keyboard_term): New structure.
22880 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
22883 Migrate output terminals to new API:
22885 * term/i386/pc/vga.c (grub_vga_term): Change type to
22886 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
22887 members. Update all users.
22888 * term/gfxterm.c (grub_video_term): Change type to
22889 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
22890 members. Update all users.
22891 * include/grub/i386/pc/console.h (grub_console_checkkey)
22892 (grub_console_getkey): Do not export (no longer needed by gfxterm,
22895 Migrate `terminal' command and userland tools to new API:
22897 * commands/terminal.c (grub_cmd_terminal): Split into ...
22898 (grub_cmd_terminal_input): ... this, and ...
22899 (grub_cmd_terminal_output): ... this.
22900 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
22901 `terminal_input' and `terminal_output'.
22902 * util/grub.d/00_header.in: Adjust `terminal' calls to new
22903 `terminal_input' / `terminal_output' API.
22904 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
22905 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
22906 provided ${GRUB_TERMINAL}, convert it).
22908 2008-11-04 Robert Millan <rmh@aybabtu.com>
22910 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
22912 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
22914 2008-11-03 Bean <bean123ch@gmail.com>
22916 * kern/elf.c (grub_elf32_load): Revert to previous code.
22917 (grub_elf64_load): Likewise.
22919 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
22921 2008-11-01 Robert Millan <rmh@aybabtu.com>
22923 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
22924 (TARGET_CPPFLAGS): Likewise.
22925 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
22927 2008-11-01 Carles Pina i Estany <carles@pina.cat>
22929 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
22931 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
22933 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
22934 addition of objects until the code is not going to be able to fail.
22936 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
22938 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
22939 (add a missing NULL check, and correct them by moving the pointer
22940 operations after the actual check).
22942 2008-10-29 Robert Millan <rmh@aybabtu.com>
22944 * util/i386/pc/grub-install.in: Handle empty string as output from
22945 make_system_path_relative_to_its_root().
22947 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
22949 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
22950 circular metadata worst case scenario. If the metadata is circular
22951 then copy the wrap in place.
22952 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
22953 project lib/format_text/layout.h
22954 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
22956 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
22958 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
22960 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
22962 * util/update-grub_lib.in: Mention filename in warning message.
22964 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
22966 * NEWS: Update for rename of update-grub to grub-mkconfig.
22968 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
22970 * util/update-grub_lib.in: Copy to ...
22971 * util/grub-mkconfig_lib.in: ... this. Update all users.
22972 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
22973 * util/update-grub.in: Rename to ...
22974 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
22975 option. Add `--output' option to allow users to specify the generated
22976 configuration file. Default to stdout.
22977 (update_grub_dir): Rename to ...
22978 (grub_mkconfig_dir): ... this.
22979 (grub_cfg): Default to an empty string.
22980 * conf/common.rmk (update-grub): Rename to ...
22981 (grub-mkconfig): ... this.
22982 (update-grub_lib): Copy to ...
22983 (grub-mkconfig_lib): ... this.
22984 (update-grub_SCRIPTS): Copy to ...
22985 (grub-mkconfig_SCRIPTS): ... this. Update all users.
22986 (update-grub_DATA): Rename to ...
22987 (grub-mkconfig_DATA): ... this.
22989 2008-09-28 Robert Millan <rmh@aybabtu.com>
22991 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
22992 to `modified'. Add the real `created' field.
22993 (grub_iso9660_uuid): Use `modified' rather than `created' for
22994 constructing the UUID.
22996 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
22998 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
22999 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
23001 2008-09-28 Bean <bean123ch@gmail.com>
23003 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
23004 Thanks to Christian Franke for finding this bug.
23006 2008-09-25 Robert Millan <rmh@aybabtu.com>
23008 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
23009 instances of grub_util_get_disk_name() (see previous commit).
23011 2008-09-25 Robert Millan <rmh@aybabtu.com>
23013 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
23014 `util/i386/get_disk_name.c'.
23015 * conf/i386-efi.rmk: Likewise.
23016 * conf/x86_64-efi.rmk: Likewise.
23017 * conf/i386-coreboot.rmk: Likewise.
23018 * conf/i386-ieee1275.rmk: Likewise.
23019 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
23020 `util/ieee1275/get_disk_name.c'.
23021 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
23022 * util/ieee1275/get_disk_name.c: Remove file.
23023 * util/i386/get_disk_name.c: Remove file.
23024 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
23025 "hd%d" for device.map entries, rather than using
23026 grub_util_get_disk_name().
23028 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23030 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
23032 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
23034 2008-09-24 Carles Pina i Estany <carles@pina.cat>
23036 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
23038 (GRUB_TERM_PPAGE): Changed to 0x4900.
23040 2008-09-24 Robert Millan <rmh@aybabtu.com>
23042 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
23043 macros (they were i386-pc specific).
23044 * include/grub/sparc64/ieee1275/console.h: Likewise.
23045 * include/grub/efi/console.h: Likewise.
23047 2008-09-22 Bean <bean123ch@gmail.com>
23049 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
23050 resident and in attribute list.
23052 * include/grub/ntfs.h (BMP_LEN): Removed.
23054 2008-09-22 Bean <bean123ch@gmail.com>
23056 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
23057 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
23059 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
23060 error occurs, as grub_disk_open will call grub_disk_close, which will
23061 call p->close (scsi).
23063 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23065 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
23066 (AC_PREREQ): Bumped to 2.59.
23067 (AC_TRY_COMPILE): Replace obsolete macro with ...
23068 (AC_COMPILE_IFELSE): ... this.
23069 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
23070 (AC_LINK_IFELSE): ... this.
23072 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
23074 * autogen.sh: Add a call to `gendistlist.sh'.
23076 2008-09-19 Christian Franke <franke@computer.org>
23078 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
23079 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
23080 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
23081 Export __enable_execute_stack() to modules.
23082 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
23085 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23087 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
23090 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
23092 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
23093 #include <grub/util/hostdisk.h>.
23095 2008-09-08 Robert Millan <rmh@aybabtu.com>
23097 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
23098 segments when their filesz is zero (grub_file_read() interprets
23099 zero-size as "read until EOF", which results in memory corruption).
23100 Use `lowest_segment' rather than 0 for calculating the current
23101 segment load address.
23103 2008-09-08 Robert Millan <rmh@aybabtu.com>
23105 * util/hostdisk.c (open_device): Replace a grub_util_info() call
23106 with grub_dprintf("hostdisk", ...), as it was so verbose that it
23107 clobbered useful information.
23109 2008-09-08 Robert Millan <rmh@aybabtu.com>
23111 * include/grub/util/biosdisk.h: Move to ...
23112 * include/grub/util/hostdisk.h: ... here. Update all users.
23113 * util/biosdisk.c: Move to ...
23114 * util/hostdisk.c: ... here. Update all users.
23116 2008-09-07 Robert Millan <rmh@aybabtu.com>
23118 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
23120 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
23121 and length can be stored directly in the `mbi->mmap_addr' and
23122 `mbi->mmap_length' struct fields.
23124 2008-09-07 Robert Millan <rmh@aybabtu.com>
23126 * conf/i386.rmk: New file. Provides declaration for building
23128 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
23129 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
23131 Include `conf/i386.mk'.
23132 * conf/i386-efi.rmk: Likewise.
23133 * conf/x86_64-efi.rmk: Likewise.
23134 * conf/i386-coreboot.rmk: Likewise.
23135 * conf/i386-ieee1275.rmk: Likewise.
23137 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
23139 Based on patch created by Colin D Bennett <colin@gibibit.com>.
23140 Adds optimization support for BGR based modes.
23142 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
23143 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23145 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23146 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23147 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23148 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23149 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23150 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23151 (grub_video_i386_vbeblit_index_index): Likewise.
23152 (grub_video_i386_vbeblit_replace_directN): Added.
23153 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23154 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23155 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23156 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23157 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23158 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23159 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23160 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23161 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23162 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23163 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23164 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23165 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23167 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
23168 (grub_video_i386_vbefill_R8G8B8): Likewise.
23169 (grub_video_i386_vbefill_index): Likewise.
23170 (grub_video_i386_vbefill_direct32): Added.
23171 (grub_video_i386_vbefill_direct24): Likewise.
23172 (grub_video_i386_vbefill_direct16): Likewise.
23173 (grub_video_i386_vbefill_direct8): Likewise.
23175 * include/grub/video.h (grub_video_blit_format): Removed
23176 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
23177 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
23178 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
23179 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
23180 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
23182 * video/video.c (grub_video_get_blit_format): Updated to use new
23183 blit formats. Added handling for 16 bit color modes.
23185 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
23187 (common_blitter): Updated to use new blitters.
23189 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
23191 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23192 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23193 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23194 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23195 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23196 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23197 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23198 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23199 (grub_video_i386_vbeblit_index_index): Likewise.
23200 (grub_video_i386_vbeblit_replace_directN): Added.
23201 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23202 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23203 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23204 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23205 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23206 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23207 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23208 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23209 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23210 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23211 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23212 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23213 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23215 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
23216 (grub_video_i386_vbefill_R8G8B8): Likewise.
23217 (grub_video_i386_vbefill_index): Likewise.
23218 (grub_video_i386_vbefill_direct32): Added.
23219 (grub_video_i386_vbefill_direct24): Likewise.
23220 (grub_video_i386_vbefill_direct16): Likewise.
23221 (grub_video_i386_vbefill_direct8): Likewise.
23223 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
23226 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
23229 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
23232 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
23235 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23237 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
23240 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
23242 * fs/iso9660.c (grub_iso9660_date): New structure.
23243 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
23244 (grub_iso9660_uuid): New function.
23246 2008-09-05 Bean <bean123ch@gmail.com>
23248 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
23250 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
23251 insensitive bit for names in Win32 and Win32 & DOS namespace.
23253 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
23255 * include/grub/types.h (LONG_MAX): Likewise.
23257 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23259 * util/getroot.c: Include <config.h>.
23260 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
23261 add support for /dev/md/N devices and handle LVM double dash escaping.
23263 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
23265 * config.guess: Update to latest version from config git.
23266 * config.sub: Likewise.
23268 2008-09-03 Robert Millan <rmh@aybabtu.com>
23270 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
23271 `disk->total_sectors'.
23273 2008-09-01 Colin D Bennett <colin@gibibit.com>
23275 * include/grub/normal.h: Fixed incorrect comment for
23276 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
23278 2008-09-01 Colin D Bennett <colin@gibibit.com>
23280 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
23281 values with defines.
23283 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
23284 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
23285 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
23286 (GRUB_VBE_MODEATTR_COLOR): Likewise.
23287 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
23288 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
23289 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
23290 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
23291 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
23292 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
23293 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
23294 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
23295 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
23296 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
23297 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
23298 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
23299 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
23300 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
23301 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
23303 2008-08-31 Robert Millan <rmh@aybabtu.com>
23305 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
23307 (grub_multiboot): Fix a few warnings.
23309 2008-08-31 Robert Millan <rmh@aybabtu.com>
23311 * loader/i386/pc/multiboot.c: Update comment not to say that
23312 boot_device support is unimplemented.
23314 2008-08-31 Robert Millan <rmh@aybabtu.com>
23316 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
23317 or memory map support are unimplemented.
23319 2008-08-31 Colin D Bennett <colin@gibibit.com>
23321 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
23323 2008-08-31 Colin D Bennett <colin@gibibit.com>
23325 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
23326 total video memory in 'vbeinfo' output; show color format details for
23329 2008-08-30 Pavel Roskin <proski@gnu.org>
23331 * util/genmoddep.c: Remove for real this time.
23332 * DISTLIST: Remove util/genmoddep.c.
23334 2008-08-30 Robert Millan <rmh@aybabtu.com>
23336 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
23337 as required by Multiboot spec (it was already 4-byte aligned, but
23340 2008-08-29 Pavel Roskin <proski@gnu.org>
23342 * kern/powerpc/ieee1275/crt0.S: Rename to ...
23343 * kern/powerpc/ieee1275/startup.S: ... this.
23344 * conf/powerpc-ieee1275.rmk: Adjust for the above.
23345 * DISTLIST: Likewise.
23347 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
23348 grub/cpu/kernel.h. Add start label for consistency with other
23349 platforms. Add grub_prefix immediately after start. Add jump
23350 to the code after grub_prefix.
23351 * include/grub/powerpc/kernel.h: Provide valid values for
23352 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
23354 2008-08-29 Bean <bean123ch@gmail.com>
23356 * configure.ac: Change host_os to cygwin for mingw.
23357 (asprintf): New check for function.
23359 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
23360 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
23362 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
23363 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
23364 sync, sleep and grub_util_get_disk_size for mingw.
23366 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
23367 to get size in mingw.
23368 (open_device): Use flag O_BINARY if it's defined.
23369 (find_root_device): Add dummy code for mingw.
23371 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
23372 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
23373 (get_scsi_disk_name): Return 0 for mingw.
23375 * util/hostfs.c: #include <grub/util/misc.h>.
23376 (grub_hostfs_open): Use "rb" flag to open file, use
23377 grub_util_get_disk_size to get disk size for mingw.
23379 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
23380 (asprintf): New function if HAVE_ASPRINTF is not set.
23381 (sync): New function for mingw.
23383 (grub_util_get_disk_size): Likewise.
23385 2008-08-28 Pavel Roskin <proski@gnu.org>
23387 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
23390 2008-08-28 Robert Millan <rmh@aybabtu.com>
23392 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
23394 2008-08-28 Robert Millan <rmh@aybabtu.com>
23396 Change find_grub_drive() syntax so it doesn't prevent it from
23397 detecting NULL names as errors.
23399 * util/biosdisk.c (find_grub_drive): Move free slot search code
23401 (find_free_slot): ... to here.
23402 (read_device_map): Use find_free_slot() to search for free slots.
23404 2008-08-27 Marco Gerards <marco@gnu.org>
23406 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
23407 (scsi_mod_SOURCES): New variable.
23408 (scsi_mod_CFLAGS): Likewise
23409 (scsi_mod_LDFLAGS): Likewise.
23411 * disk/scsi.c: New file.
23413 * include/grub/scsi.h: Likewise.
23415 * include/grub/scsicmd.h: Likewise.
23417 * disk/ata.c: Include <grub/scsi.h>.
23418 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
23420 (grub_ata_iterate): Skip ATAPI devices.
23421 (grub_ata_open): Only handle ATAPI devices.
23422 (struct grub_atapi_read): Removed.
23423 (grub_atapi_readsector): Likewise.
23424 (grub_ata_read): No longer handle ATAPI devices.
23425 (grub_ata_write): Likewise.
23426 (grub_atapi_iterate): New function.
23427 (grub_atapi_read): Likewise.
23428 (grub_atapi_write): Likewise.
23429 (grub_atapi_open): Likewise.
23430 (grub_atapi_close): Likewise.
23431 (grub_atapi_dev): New variable.
23432 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
23433 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
23435 * include/grub/disk.h (enum grub_disk_dev_id): Add
23436 `GRUB_DISK_DEVICE_SCSI_ID'.
23438 2008-08-26 Robert Millan <rmh@aybabtu.com>
23440 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
23441 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
23444 2008-08-23 Bean <bean123ch@gmail.com>
23446 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
23447 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23448 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
23449 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
23451 (raid5rec_mod_SOURCES): New macro.
23452 (raid5rec_mod_CFLAGS): Likewise.
23453 (raid5rec_mod_LDFLAGS): Likewise.
23454 (raid6rec_mod_SOURCES): Likewise.
23455 (raid6rec_mod_CFLAGS): Likewise.
23456 (raid6rec_mod_LDFLAGS): Likewise.
23457 (mdraid_mod_SOURCES): Likewise.
23458 (mdraid_mod_CFLAGS): Likewise.
23459 (mdraid_mod_LDFLAGS): Likewise.
23460 (dm_nv_mod_SOURCES): Likewise.
23461 (dm_nv_mod_CFLAGS): Likewise.
23462 (dm_nv_mod_LDFLAGS): Likewise.
23464 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
23465 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23466 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23468 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
23469 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23471 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23473 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23475 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23479 * disk/raid5_recover.c: New file.
23481 * disk/raid6_recover.c: Likewise.
23483 * disk/mdraid_linux.c: Likewise.
23485 * disk/dmraid_nvidia.c: Likewise.
23487 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
23490 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
23491 calculate the size of raid device.
23492 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
23493 different layout of raid5.
23494 (grub_raid_scan_device): Remove code specific to mdraid.
23495 (grub_raid_list): New variable.
23496 (free_array): New function.
23497 (grub_raid_register): Likewise.
23498 (grub_raid_unregister): Likewise.
23499 (grub_raid_rescan): Likewise.
23500 (GRUB_MOD_INIT): Don't iterate device here.
23501 (GRUB_MOD_FINI): Use free_array to release resource.
23503 * include/grub/raid.h: Remove macro and structure specific to mdraid.
23504 (grub_raid5_recover_func_t): New function variable type.
23505 (grub_raid6_recover_func_t): Likewise.
23506 (grub_raid5_recover_func): New variable.
23507 (grub_raid6_recover_func): Likewise.
23508 (grub_raid_register): New function.
23509 (grub_raid_unregister): Likewise.
23510 (grub_raid_rescan): Likewise.
23511 (grub_raid_block_xor): Likewise.
23513 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
23514 (CMD_CRC): New macro.
23516 (read_file): Handle device as well as file.
23517 (cmd_crc): New function.
23518 (fstest): Handle multiple disks.
23519 (options): Remove part, raw and long, add root and diskcount.
23520 (usage): Add crc, remove -p, -r, -l, add -r and -c.
23521 (main): Find the first non option entry and ignore subsequent options,
23522 add handling for the new options, support multiple disks.
23524 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
23526 2008-08-23 Bean <bean123ch@gmail.com>
23528 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
23530 * genfslist.sh: Ignore kernel.mod.
23532 * genpartmaplist.sh: Likewise.
23534 2008-08-23 Robert Millan <rmh@aybabtu.com>
23536 * util/getroot.c (find_root_device): Skip anything that starts with
23537 a dot, not just directories. This avoids things like /dev/.tmp.md0.
23539 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
23541 * util/update-grub.in (GRUB_GFXMODE): Export variable.
23542 * util/grub.d/00_header.in: Allow the administrator to change default
23543 gfxmode via ${GRUB_GFXMODE}.
23545 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
23547 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
23549 2008-08-21 Robert Millan <rmh@aybabtu.com>
23551 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
23553 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
23554 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
23556 2008-08-20 Carles Pina i Estany <carles@pina.cat>
23558 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
23559 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
23561 2008-08-19 Robert Millan <rmh@aybabtu.com>
23563 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
23564 (struct grub_virtual_screen): Remove `cursor_color'.
23565 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
23567 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
23569 2008-08-18 Robert Millan <rmh@aybabtu.com>
23571 Unify (identical) linux_normal.c files.
23572 * loader/i386/efi/linux_normal.c: Move from here ...
23573 * loader/linux_normal.c: ... to here. Update all users.
23574 * loader/i386/pc/linux_normal.c: Delete. Update all users.
23575 * loader/i386/ieee1275/linux_normal.c: Likewise.
23577 2008-08-18 Robert Millan <rmh@aybabtu.com>
23579 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
23580 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
23581 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
23582 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
23583 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
23585 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
23586 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
23587 (GRUB_LINUX_CL_END_OFFSET): ... to here.
23588 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
23589 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
23590 (GRUB_EFI_CL_END_OFFSET): Rename to ...
23591 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
23592 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
23593 Initialize `params->video_cursor_x' and `params->video_cursor_y'
23594 portably using grub_getxy().
23595 Replace `-EFI' with `-bzImage' in boot message.
23597 2008-08-17 Robert Millan <rmh@aybabtu.com>
23599 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
23601 2008-08-17 Robert Millan <rmh@aybabtu.com>
23603 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
23605 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
23606 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
23607 (grub_machine_mmap_iterate): New function declaration.
23608 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
23610 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
23613 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
23614 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
23615 Move e820 parsing from here ...
23616 * kern/i386/pc/mmap.c: New file.
23617 (grub_machine_mmap_iterate): ... to here.
23619 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
23620 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
23621 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
23622 (grub_available_iterate): Redeclare to return `void', and redeclare
23623 its hook to use grub_uint64_t as addr and size parameters, and rename
23625 (grub_machine_mmap_iterate): ... this. Update all users.
23627 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
23628 to make it more readable. Rename to ...
23629 (grub_machine_mmap_iterate): ... this.
23631 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
23632 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
23633 (grub_multiboot): Allocate an extra region after the payload, and fill
23634 it with a Multiboot memory map. Adjust a.out loader to calculate size
23635 with the extra space.
23636 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
23637 with the extra space.
23639 2008-08-17 Carles Pina i Estany <carles@pina.cat>
23641 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
23643 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
23645 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
23646 mdate-sh to the list `find' searches for.
23647 * DISTLIST: Regenerated.
23649 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
23651 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
23652 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
23653 genmoddep.awk, gensymlist.sh.in.
23654 (DISTDIRS): Add bus, docs, hook, lib.
23655 * DISTLIST: Regenerated.
23656 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
23658 2008-08-16 Robert Millan <rmh@aybabtu.com>
23660 * disk/raid.c (grub_raid_init): Handle/report errors set by
23661 grub_device_iterate().
23662 * disk/lvm.c (grub_lvm_init): Likewise.
23664 2008-08-15 Bean <bean123ch@gmail.com>
23666 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23668 (datetime_mod_SOURCES): New macro.
23669 (datetime_mod_CFLAGS): Likewise.
23670 (datetime_mod_LDFLAGS): Likewise.
23671 (date_mod_SOURCES): Likewise.
23672 (date_mod_CFLAGS): Likewise.
23673 (date_mod_LDFLAGS): Likewise.
23674 (datehook_mod_SOURCES): Likewise.
23675 (datehook_mod_CFLAGS): Likewise.
23676 (datehook_mod_LDFLAGS): Likewise.
23678 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23680 (datetime_mod_SOURCES): New macro.
23681 (datetime_mod_CFLAGS): Likewise.
23682 (datetime_mod_LDFLAGS): Likewise.
23683 (date_mod_SOURCES): Likewise.
23684 (date_mod_CFLAGS): Likewise.
23685 (date_mod_LDFLAGS): Likewise.
23686 (datehook_mod_SOURCES): Likewise.
23687 (datehook_mod_CFLAGS): Likewise.
23688 (datehook_mod_LDFLAGS): Likewise.
23690 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23692 (datetime_mod_SOURCES): New macro.
23693 (datetime_mod_CFLAGS): Likewise.
23694 (datetime_mod_LDFLAGS): Likewise.
23695 (date_mod_SOURCES): Likewise.
23696 (date_mod_CFLAGS): Likewise.
23697 (date_mod_LDFLAGS): Likewise.
23698 (datehook_mod_SOURCES): Likewise.
23699 (datehook_mod_CFLAGS): Likewise.
23700 (datehook_mod_LDFLAGS): Likewise.
23702 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23704 (datetime_mod_SOURCES): New macro.
23705 (datetime_mod_CFLAGS): Likewise.
23706 (datetime_mod_LDFLAGS): Likewise.
23707 (date_mod_SOURCES): Likewise.
23708 (date_mod_CFLAGS): Likewise.
23709 (date_mod_LDFLAGS): Likewise.
23710 (datehook_mod_SOURCES): Likewise.
23711 (datehook_mod_CFLAGS): Likewise.
23712 (datehook_mod_LDFLAGS): Likewise.
23714 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23716 (datetime_mod_SOURCES): New macro.
23717 (datetime_mod_CFLAGS): Likewise.
23718 (datetime_mod_LDFLAGS): Likewise.
23719 (date_mod_SOURCES): Likewise.
23720 (date_mod_CFLAGS): Likewise.
23721 (date_mod_LDFLAGS): Likewise.
23722 (datehook_mod_SOURCES): Likewise.
23723 (datehook_mod_CFLAGS): Likewise.
23724 (datehook_mod_LDFLAGS): Likewise.
23726 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
23728 * commands/date.c: New file.
23730 * hook/datehook.c: Likewise.
23732 * include/grub/lib/datetime.h: Likewise.
23734 * include/grub/i386/cmos.h: Likewise.
23736 * lib/datetime.c: Likewise.
23738 * lib/i386/datetime.c: Likewise.
23740 * lib/efi/datetime.c: Likewise.
23742 2008-08-14 Robert Millan <rmh@aybabtu.com>
23744 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
23745 (grub_mkelfimage_SOURCES): New variable.
23746 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
23748 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
23749 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
23750 * conf/powerpc-ieee1275.rmk: Likewise.
23751 * conf/i386-ieee1275.rmk: Likewise.
23753 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
23754 * kern/i386/coreboot/init.c: Likewise.
23756 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
23757 with `<grub/cpu/kernel.h>'.
23758 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
23760 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
23761 * kern/i386/coreboot/startup.S: Likewise.
23763 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
23764 (GRUB_MOD_GAP): Remove.
23765 * include/grub/powerpc/kernel.h: New file.
23766 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
23767 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23768 * include/grub/i386/kernel.h: New file.
23769 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
23770 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
23771 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23773 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
23775 Use --directory when invoking grub_mkimage.
23777 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
23778 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
23779 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
23780 and GRUB_KERNEL_CPU_PREFIX.
23782 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
23784 * include/grub/err.h (grub_err_printf): New function prototype.
23785 * util/misc.c (grub_err_printf): New function.
23786 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
23788 * kern/err.c (grub_print_error): Use grub_err_printf.
23790 2008-08-13 Robert Millan <rmh@aybabtu.com>
23792 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
23794 2008-08-13 Robert Millan <rmh@aybabtu.com>
23796 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
23799 2008-08-12 Robert Millan <rmh@aybabtu.com>
23801 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
23802 of the relocation code from here ...
23803 (grub_multiboot): ... to here.
23804 (forward_relocator, backward_relocator): Move from here ...
23805 * kern/i386/loader.S (grub_multiboot_forward_relocator)
23806 (grub_multiboot_backward_relocator): ... to here.
23807 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
23808 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
23809 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
23810 (grub_multiboot_forward_relocator_end)
23811 (grub_multiboot_backward_relocator)
23812 (grub_multiboot_backward_relocator_end): New variables.
23814 2008-08-12 Bean <bean123ch@gmail.com>
23816 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
23818 2008-08-11 Robert Millan <rmh@aybabtu.com>
23820 * kern/i386/linuxbios/startup.S: Move from here ...
23821 * kern/i386/coreboot/startup.S: ... to here.
23823 * kern/i386/linuxbios/init.c: Move from here ...
23824 * kern/i386/coreboot/init.c: ... to here.
23826 * kern/i386/linuxbios/table.c: Move from here ...
23827 * kern/i386/coreboot/mmap.c: ... to here.
23829 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
23831 2008-08-11 Robert Millan <rmh@aybabtu.com>
23833 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
23834 errors. Leave it to the upper layer to handle them.
23836 2008-08-09 Christian Franke <franke@computer.org>
23838 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
23839 * conf/common.rmk: Install `grub-pe2elf' only if requested.
23840 Install `grub.d/10_windows' only on Cygwin.
23841 * configure.ac: Add subst of `target_os'.
23842 Check `target_os' also before setting TARGET_OBJ2ELF.
23843 Add `--enable-grub-pe2elf'.
23845 2008-08-08 Robert Millan <rmh@aybabtu.com>
23847 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
23848 (grub_last_time): Change type to grub_uint64_t.
23849 (grub_disk_open): Migrate code from to using grub_get_time_ms().
23850 (grub_disk_close): Likewise.
23852 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
23853 (run_menu): Migrate code from to using grub_get_time_ms().
23855 * util/misc.c (grub_get_time_ms): New function.
23857 2008-08-08 Marco Gerards <marco@gnu.org>
23859 * disk/ata.c (grub_ata_regget): Change return type to
23861 (grub_ata_regget2): Likewise.
23862 (grub_ata_wait_status): New function.
23863 (grub_ata_wait_busy): Removed function, updated all users to use
23864 `grub_ata_wait_status'.
23865 (grub_ata_wait_drq): Likewise.
23866 (grub_ata_cmd): New function.
23867 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
23869 (grub_ata_pio_write): Add error handling.
23870 (grub_atapi_identify): Likewise.
23871 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
23873 (grub_ata_identify): Use `grub_ata_cmd' and improve error
23874 handling. Actually use the detected registers. Reorder the
23875 detection logic such that it is easier to read.
23876 (grub_ata_pciinit): Do not assign the same ID to each controller.
23877 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
23879 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
23881 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
23883 2008-08-08 Marco Gerards <marco@gnu.org>
23887 2008-08-07 Bean <bean123ch@gmail.com>
23889 * include/grub/x86_64/pci.h: New file.
23891 2008-08-07 Christian Franke <franke@computer.org>
23893 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
23894 (TIMER2_GATE): Likewise.
23895 (grub_pit_wait): Add enable/disable of the timer2 gate
23896 bit of port 0x61. This fixes a possible infinite loop.
23898 2008-08-07 Bean <bean123ch@gmail.com>
23900 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
23901 kern/i386/tsc.c and kern/i386/pit.c.
23903 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
23906 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
23909 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
23911 2008-08-07 Bean <bean123ch@gmail.com>
23913 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
23915 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
23917 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
23918 multiple inclusion. Add #include <grub/types.h>.
23920 2008-08-06 Christian Franke <franke@computer.org>
23922 * conf/common.rmk: Build and install `10_windows'.
23923 * util/grub.d/10_windows.in: New script.
23925 2008-08-06 Pavel Roskin <proski@gnu.org>
23927 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
23929 2008-08-06 Robert Millan <rmh@aybabtu.com>
23931 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
23932 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
23934 2008-08-06 Bean <bean123ch@gmail.com>
23936 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
23937 (grub_pxefs_fs_int): Remove dummy definition.
23938 (grub_pxefs_open): Use data->block_size to store the current block
23940 (grub_pxefs_read): Use block size stored in data->block_size. As the
23941 value of grub_pxe_blksize can be changed after the file is opened.
23943 2008-08-06 Bean <bean123ch@gmail.com>
23945 * fs/i386/pc/pxe.c (curr_file): new variable.
23946 (grub_pxefs_open): Simply the handling of pxe file system. Don't
23947 require the dummy internal file system anymore.
23948 (grub_pxefs_read): Removed.
23949 (grub_pxefs_close): Likewise.
23950 (grub_pxefs_fs_int): Likewise.
23951 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
23952 connection when we switch file.
23953 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
23955 2008-08-06 Robert Millan <rmh@aybabtu.com>
23957 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
23959 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
23960 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
23962 * kern/i386/halt.c: New file.
23963 * kern/i386/reboot.c: Likewise.
23964 * include/grub/i386/reboot.h: Likewise.
23965 * include/grub/i386/halt.h: Likewise.
23967 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
23968 Include `<grub/cpu/halt.h>'.
23969 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
23970 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
23972 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
23973 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
23974 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
23975 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
23976 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
23977 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
23979 * include/grub/i386/at_keyboard.h: ... to here.
23981 2008-08-05 Robert Millan <rmh@aybabtu.com>
23983 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
23984 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
23985 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
23986 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
23987 `kern/generic/millisleep.c'.
23989 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
23990 instead of grub_get_rtc().
23991 (grub_tsc_init): Initialize `tsc_boot_time'.
23993 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
23994 (grub_machine_init): Use grub_tsc_init() rather than
23995 installing an RTC-based handler via grub_install_get_time_ms().
23997 * kern/i386/pit.c: New file.
23998 * include/grub/i386/pit.h: Likewise.
24000 2008-08-05 Bean <bean123ch@gmail.com>
24002 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
24004 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
24005 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
24006 (pxe_mod_SOURCES): New macro.
24007 (pxe_mod_CFLAGS): Likewise.
24008 (pxe_mod_LDFLAGS): Likewise.
24009 (pxecmd_mod_SOURCES): Likewise.
24010 (pxecmd_mod_CFLAGS): Likewise.
24011 (pxecmd_mod_LDFLAGS): Likewise.
24013 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
24014 (grub_pxe_call): Likewise.
24016 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
24018 * commands/i386/pc/pxecmd.c: New file.
24020 * fs/i386/pc/pxe.c: Likewise.
24022 * include/grub/i386/pc/pxe.h: Likewise.
24024 2008-08-05 Bean <bean123ch@gmail.com>
24026 * util/console.c (grub_console_cur_color): New variable.
24027 (grub_console_standard_color): Likewise.
24028 (grub_console_normal_color): Likewise.
24029 (grub_console_highlight_color): Likewise.
24030 (color_map): Likewise.
24031 (use_color): Likewise.
24032 (NUM_COLORS): New macro.
24033 (grub_ncurses_setcolorstate): Handle color properly.
24034 (grub_ncurses_setcolor): Don't change color here, just remember the
24035 settings, color will be set in grub_ncurses_setcolorstate.
24036 (grub_ncurses_getcolor): New function.
24037 (grub_ncurses_init): Initialize color pairs.
24038 (grub_ncurses_term): New member grub_ncurses_getcolor.
24040 2008-08-05 Colin D Bennett <colin@gibibit.com>
24042 High resolution timer support. Implemented for x86 CPUs using TSC.
24043 Extracted generic grub_millisleep() so it's linked in only as needed.
24044 This requires a Pentium compatible CPU; if the RDTSC instruction is
24045 not supported, then it falls back on the generic grub_get_time_ms()
24046 implementation that uses the machine's RTC.
24048 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
24049 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24050 `kern/generic/millisleep.c'.
24052 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
24053 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
24055 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
24056 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
24058 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24060 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24061 `kern/generic/millisleep.c'.
24063 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24065 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
24067 * kern/generic/rtc_get_time_ms.c: New file.
24069 * kern/generic/millisleep.c: New file.
24071 * kern/misc.c: Don't include
24072 <kern/time.h> anymore.
24073 (grub_millisleep_generic): Removed.
24075 * commands/sleep.c (grub_interruptible_millisleep): Uses
24076 grub_get_time_ms() instead of grub_get_rtc().
24078 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
24080 (grub_cpu_is_cpuid_supported): New inline function.
24081 (grub_cpu_is_tsc_supported): New inline function.
24082 (grub_tsc_init): New function prototype.
24083 (grub_tsc_get_time_ms): New function prototype.
24085 * kern/i386/tsc.c (grub_get_time_ms): New file.
24087 * include/grub/time.h: Include <grub/types.h.
24088 (grub_millisleep_generic): Removed.
24089 (grub_get_time_ms): New prototype.
24090 (grub_install_get_time_ms): New prototype.
24091 (grub_rtc_get_time_ms): New prototype.
24093 * kern/time.c (grub_get_time_ms): New function.
24094 (grub_install_get_time_ms): New function.
24096 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
24097 <grub/time.h> anymore.
24098 (grub_millisleep): Removed.
24099 (grub_machine_init): Call grub_tsc_init.
24101 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
24102 get_time_ms() implementation.
24104 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
24105 (ieee1275_get_time_ms): New function.
24106 (grub_machine_init): Install get_time_ms() implementation.
24108 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
24109 (grub_machine_init): Call grub_tsc_init().
24110 (grub_millisleep): Removed.
24112 * kern/ieee1275/init.c (grub_millisleep): Removed.
24113 (grub_machine_init): Install ieee1275_get_time_ms()
24115 (ieee1275_get_time_ms): New function.
24116 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
24119 2008-08-05 Marco Gerards <marco@gnu.org>
24121 * disk/ata.c: Include <grub/pci.h>.
24122 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
24123 (grub_ata_initialize): Rewritten.
24124 (grub_ata_device_initialize): New function.
24126 2008-08-04 Pavel Roskin <proski@gnu.org>
24128 * kern/main.c: Include grub/mm.h.
24130 2008-08-04 Robert Millan <rmh@aybabtu.com>
24132 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
24133 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
24134 corruption problem).
24136 2008-08-04 Robert Millan <rmh@aybabtu.com>
24138 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
24139 warnings introduced in my last commit.
24141 2008-08-03 Robert Millan <rmh@aybabtu.com>
24143 Make PCI available on all i386 architectures.
24145 * include/grub/i386/pc/pci.h: Move from here ...
24146 * include/grub/i386/pci.h: ... to here.
24148 * include/grub/i386/pc/pci.h: Remove.
24149 * include/grub/i386/efi/pci.h: Remove.
24150 * include/grub/x86_64/efi/pci.h: Remove.
24152 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
24153 `<grub/cpu/pci.h>'.
24155 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
24156 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
24157 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
24159 * conf/i386-ieee1275.rmk: Likewise.
24161 2008-08-03 Robert Millan <rmh@aybabtu.com>
24163 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
24164 (grub_console_setcursor): Make it possible to set cursor off.
24166 2008-08-03 Robert Millan <rmh@aybabtu.com>
24168 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
24169 of modules instead of assuming which platform provides what.
24170 * util/update-grub.in: Likewise.
24172 2008-08-03 Robert Millan <rmh@aybabtu.com>
24174 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
24175 instead of `grub_install_dos_part' to determine whether a drive needs
24176 to be prepended to prefix (`grub_install_dos_part' is not reliable,
24177 because it can be overridden when loading GRUB via Multiboot).
24179 2008-08-02 Robert Millan <rmh@aybabtu.com>
24181 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
24183 2008-08-02 Robert Millan <rmh@aybabtu.com>
24185 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
24186 of informational grub_dprintf() calls.
24188 2008-08-02 Robert Millan <rmh@aybabtu.com>
24190 * disk/memdisk.c (memdisk_size): Don't initialize.
24191 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
24193 * include/grub/i386/pc/kernel.h
24194 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
24195 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
24196 (grub_memdisk_image_size, grub_arch_memdisk_addr)
24197 (grub_arch_memdisk_size): Remove.
24199 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
24200 field (was only used to transfer a constant). Add `type' field to
24201 support multiple module types.
24202 (grub_module_iterate): New function.
24204 * kern/device.c (grub_device_open): Do not hide error messages
24205 when grub_disk_open() fails. Use grub_print_error() instead.
24207 * kern/i386/pc/init.c (grub_arch_modules_addr)
24208 (grub_arch_memdisk_size): Remove functions.
24209 (grub_arch_modules_addr): Return the module address in high memory
24210 (now that it isn't copied anymore).
24212 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
24213 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
24214 decompression routine (grub_total_module_size already includes that
24215 now). Don't copy modules back to low memory.
24217 * kern/main.c: Include `<grub/mm.h>'.
24218 (grub_load_modules): Split out (and use) ...
24219 (grub_module_iterate): ... this function, which iterates through
24220 module objects and runs a hook.
24221 Comment out grub_mm_init_region() call, as it would cause non-ELF
24222 modules to be overwritten.
24224 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
24225 the memdisk image in its own region, make it part of the module list.
24226 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
24227 (main): Parse --memdisk|-m option, and pass user-provided path as
24228 parameter to generate_image().
24229 (add_segments): Pass `memdisk_path' down to load_modules().
24230 (load_modules): Embed memdisk image in module section when requested.
24231 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
24232 `header.type' instead of `header.offset'.
24234 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
24235 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
24236 (memdisk_mod_LDFLAGS): New variables.
24237 * conf/i386-coreboot.rmk: Likewise.
24238 * conf/i386-ieee1275.rmk: Likewise.
24240 2008-08-02 Robert Millan <rmh@aybabtu.com>
24242 * loader/i386/pc/multiboot.c (playground, forward_relocator)
24243 (backward_relocator): New variables. Used to allocate and relocate
24244 the payload, respectively.
24245 (grub_multiboot_load_elf32): Load into heap instead of requested
24246 address, install the appropriate relocator code in each bound of
24247 the payload, and set the entry point such that
24248 grub_multiboot_real_boot() will jump to one of them.
24250 * kern/i386/loader.S (grub_multiboot_payload_size)
24251 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24252 (grub_multiboot_payload_entry_offset): New variables.
24253 (grub_multiboot_real_boot): Set cpu context to what the relocator
24254 expects, and jump to the relocator instead of the payload.
24256 * include/grub/i386/loader.h (grub_multiboot_payload_size)
24257 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24258 (grub_multiboot_payload_entry_offset): Export.
24260 2008-08-01 Bean <bean123ch@gmail.com>
24262 * normal/menu_entry.c (editor_getline): Don't return the original
24263 string as result, as it will be released by lexer once it has done
24266 2008-08-01 Robert Millan <rmh@aybabtu.com>
24268 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
24269 within menuentries, not before them.
24270 util/grub.d/10_hurd.in: Likewise.
24272 2008-08-01 Bean <bean123ch@gmail.com>
24274 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
24275 (bufio_mod_SOURCES): New macro.
24276 (bufio_mod_CFLAGS): Likewise.
24277 (bufio_mod_LDFLAGS): Likewise.
24279 * include/grub/bufio.h: New file.
24281 * io/bufio.c: Likewise.
24283 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
24284 (grub_video_reader_png): Use grub_buffile_open to open file.
24286 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
24287 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
24289 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
24290 (grub_video_reader_tga): Use grub_buffile_open to open file.
24292 * font/manager.c: Include <grub/bufio.h>.
24293 (add_font): Use grub_buffile_open to open file.
24295 2008-07-31 Robert Millan <rmh@aybabtu.com>
24297 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
24298 ELF segments, use a macro for arbitrarily accessing any of them instead
24299 of preparing a pointer that allows access to one at a time.
24300 (grub_multiboot_load_elf64): Likewise.
24302 2008-07-31 Bean <bean123ch@gmail.com>
24304 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
24305 GRUB_KERNEL_MACHINE_DATA_END.
24307 2008-07-30 Robert Millan <rmh@aybabtu.com>
24309 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
24310 Increase from 0x50 to 0x60.
24311 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
24312 use UUIDs to identify the root drive for them. If that's not
24314 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
24315 check, for cross-disk installs.
24317 2008-07-30 Robert Millan <rmh@aybabtu.com>
24319 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
24320 is non-empty, use it to set the `prefix' environment variable instead
24321 of the usual approach.
24322 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
24323 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
24324 environment variable instead of dummy make_install_device().
24326 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
24327 (start): Insert a data section, with `grub_prefix' variable.
24328 * kern/i386/linuxbios/startup.S: Likewise.
24330 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
24331 New variable reference.
24332 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
24333 New macro. Defines offset of `grub_prefix' within startup.S (relative
24335 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
24336 section within startup.S (relative to `start').
24337 * include/grub/i386/coreboot/kernel.h: Likewise.
24339 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
24340 Overwrite grub_prefix with its contents, at the beginning of the
24342 (main): Understand -p|--prefix.
24344 2008-07-30 Robert Millan <rmh@aybabtu.com>
24346 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
24348 2008-07-30 Robert Millan <rmh@aybabtu.com>
24350 * term/i386/pc/vga_text.c (grub_console_cls): Use
24351 grub_console_gotoxy() to go back to beginning of the screen.
24352 Found by Patrick Georgi <patrick.georgi@coresystems.de>
24354 2008-07-29 Christian Franke <franke@computer.org>
24356 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
24357 Add conversion of emulated mount points on Cygwin.
24359 2008-07-29 Christian Franke <franke@computer.org>
24361 * util/update-grub.in: Add a check for admin
24363 Remove old `grub.cfg.new' before creation.
24364 Add `-f' to `mv' to handle the different filesystem
24365 semantics of Windows.
24367 2008-07-29 Bean <bean123ch@gmail.com>
24369 * normal/main.c (get_line): Fix buffer overflow bug.
24371 2008-07-28 Robert Millan <rmh@aybabtu.com>
24373 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
24374 (struct grub_apple_header): New struct. Describes the layout of
24375 the partmap header.
24376 (apple_partition_map_iterate): Check the header magic as well as the
24377 partition magic (which was already being checked).
24379 2008-07-28 Pavel Roskin <proski@gnu.org>
24381 * genmk.rb: Add a warning to the beginning of the output that
24382 it's a generated file and should not be edited.
24384 2008-07-28 Robert Millan <rmh@aybabtu.com>
24386 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
24387 with the same number are found, just use issue a warning with
24388 grub_dprintf(), as this error has been reported to be non-fatal.
24390 2008-07-27 Robert Millan <rmh@aybabtu.com>
24392 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
24395 2008-07-27 Bean <bean123ch@gmail.com>
24397 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
24398 (grub_fat_find_dir): Ignore case when comparing filename.
24400 2008-07-27 Bean <bean123ch@gmail.com>
24402 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
24403 smallino, as it's more descriptive, and i8count can be confused with
24404 the other field count.
24405 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
24408 2008-07-27 Bean <bean123ch@gmail.com>
24410 * commands/crc.c: New file.
24412 * lib/crc.c: Likewise.
24414 * include/grub/lib/crc.h: Likewise.
24416 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
24418 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
24419 (hexdump): Move this function to ...
24421 * lib/hexdump.c: ... here.
24423 * include/grub/hexdump.h: Renamed to ...
24425 * include/grub/lib/hexdump.h: ... this.
24427 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
24429 * util/grub-editenv.c: Likewise.
24431 * include/envblk.h: Renamed to ...
24433 * include/lib/envblk.h: ... this.
24435 * util/envblk.c: Renamed to ...
24437 * lib/envblk.c: ... this.
24439 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
24441 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
24442 (pkglib_MODULES): Add crc.mod.
24443 (hexdump_mod_SOURCES): Add lib/hexdump.c.
24444 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
24445 (crc_mod_SOURCES): New macro.
24446 (crc_mod_CFLAGS): Likewise.
24447 (crc_mod_LDFLAGS): Likewise.
24449 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
24451 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24453 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24457 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24459 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
24461 * commands/help.c: Include <grub/term.h>.
24462 (TERM_WIDTH): Removed. Updated all users.
24464 2008-07-27 Pavel Roskin <proski@gnu.org>
24466 * util/getroot.c (find_root_device): Rephrase a comment to avoid
24467 spurious warnings about a comment within a comment.
24469 2008-07-25 Robert Millan <rmh@aybabtu.com>
24471 * util/getroot.c (find_root_device): Skip devices that match
24472 /dev/dm-[0-9]. This lets the real device be found for any type of
24473 abstraction (LVM, EVMS, RAID..).
24474 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
24475 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
24476 device is found first, find_root_device() will now skip it.
24478 2008-07-24 Pavel Roskin <proski@gnu.org>
24480 * include/grub/types.h: Use __builtin_bswap32() and
24481 __builtin_bswap64() with gcc 4.3 and newer.
24483 2008-07-24 Christian Franke <franke@computer.org>
24485 * util/i386/pc/grub-install.in: If `--debug' is specified,
24486 pass `--verbose' to grub-setup.
24487 Abort script if make_system_path_relative_to_its_root() fails.
24489 2008-07-24 Bean <bean123ch@gmail.com>
24491 * configure.ac: Fixed a bug caused by the previous cygwin patch,
24492 variable `target_platform' should be `platform'.
24494 2008-07-24 Bean <bean123ch@gmail.com>
24496 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
24497 (grub_png_init_fixed_block): New function.
24498 (grub_png_decode_image_data): Handle fixed huffman code compression.
24500 2008-07-24 Bean <bean123ch@gmail.com>
24502 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
24503 (grub_pe2elf_SOURCES): New macro.
24504 (CLEANFILES): Add grub-pe2elf.
24506 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
24507 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
24508 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
24509 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
24510 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
24511 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
24512 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
24513 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
24514 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
24515 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
24516 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
24517 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
24518 (GRUB_PE32_DT_FUNCTION): Likewise.
24519 (GRUB_PE32_REL_I386_DIR32): Likewise.
24520 (GRUB_PE32_REL_I386_REL32): Likewise.
24521 (grub_pe32_symbol): New structure.
24522 (grub_pe32_reloc): Likewise.
24524 * util/grub-pe2elf.c: New file.
24526 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
24527 start symbol in non pc platform.
24529 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
24531 The following patches are from Christian Franke.
24533 * include/grub/dl.h: Remove .previous, gas supports this only
24536 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
24537 Remove .type, gas supports this only for ELF format.
24539 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
24540 nullbytes in symbol table. This fixes an infinite loop if table is
24543 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
24544 TARGET_IMG_LDFLAGS and EXEEXT.
24546 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
24547 TARGET_IMG_LDFLAGS_AC.
24548 (grub_CHECK_STACK_ARG_PROBE): New function.
24550 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
24552 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
24554 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
24555 to set TARGET_IMG_LD* accordingly.
24556 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
24557 Add call to grub_CHECK_STACK_ARG_PROBE.
24558 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
24560 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
24562 * genmk.rb: Add EXEEXT to CLEANFILES.
24564 2008-07-23 Robert Millan <rmh@aybabtu.com>
24566 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
24567 define the codes for arrows and lines used for the menu).
24568 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
24571 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
24572 fonts, because the latter are too slow.
24574 2008-07-21 Bean <bean123ch@gmail.com>
24576 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
24577 a20. Run keyboard test last, as it will cause macbook to halt.
24579 2008-07-18 Pavel Roskin <proski@gnu.org>
24581 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
24582 load foreign architecture modules correctly anyway. Keep
24583 support for loading host architecture modules, whether we
24584 compile them or not.
24586 2008-07-17 Pavel Roskin <proski@gnu.org>
24588 * configure.ac: Use -m32 or -m64 regardless of whether we had to
24589 change target_cpu. The compiler default can mismatch target_cpu
24592 * disk/efi/efidisk.c: Fix format warnings on x86_64.
24593 * kern/efi/efi.c: Likewise.
24595 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
24596 target compiler is functional.
24597 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
24600 * configure.ac: Default to efi platform for x86_64-apple. Allow
24601 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
24602 adjustments from the rest, only do them if target is not
24603 explicitly given. Merge other adjustments with the final sanity
24604 check. Remove an extraneous check for supported CPU. Be
24605 specific which CPU and which platform is not supported.
24607 * configure.ac: Default to pc platform for x86_64.
24609 2008-07-17 Robert Millan <rmh@aybabtu.com>
24611 Partial LinuxBIOS -> Coreboot rename.
24613 * conf/i386-linuxbios.rmk: Renamed to ...
24614 * conf/i386-coreboot.rmk: ... this.
24615 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
24616 * configure.ac: Accept "coreboot" as input platform (but maintain
24617 compatibility with "linuxbios").
24618 * include/grub/i386/linuxbios: Renamed to ...
24619 * include/grub/i386/coreboot: ... this.
24621 2008-07-17 Bean <bean123ch@gmail.com>
24623 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
24624 (appleldr_mod_SOURCE): New variable.
24625 (appleldr_mod_CFLAGS): Likewise.
24626 (appleldr_mod_LDFLAGS): Likewise.
24627 (pci_mod_SOURCES): Likewise.
24628 (pci_mod_CFLAGS): Likewise.
24629 (pci_mod_LDFLAGS): Likewise.
24630 (lspci_mod_SOURCES): Likewise.
24631 (lspci_mod_CFLAGS): Likewise.
24632 (lspci_mod_LDFLAGS): Likewise.
24634 * conf/x86_64-efi.rmk: New file.
24636 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
24638 (grub_efidisk_write): Likewise.
24640 * include/efi/api.h (efi_call_0): New macro.
24641 (efi_call_1): Likewise.
24642 (efi_call_2): Likewise.
24643 (efi_call_3): Likewise.
24644 (efi_call_4): Likewise.
24645 (efi_call_5): Likewise.
24646 (efi_call_6): Likewise.
24648 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
24649 grub_rescue_cmd_chainloader.
24651 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
24652 (grub_pe32_optional_header): Change some fields based on i386 or
24654 (GRUB_PE32_PE32_MAGIC): Likewise.
24656 * include/grub/efi/uga_draw.h: New file.
24658 * include/grub/elf.h (STN_ABS): New constant.
24659 (R_X86_64_NONE): Relocation constant for x86_64.
24660 (R_X86_64_64): Likewise.
24661 (R_X86_64_PC32): Likewise.
24662 (R_X86_64_GOT32): Likewise.
24663 (R_X86_64_PLT32): Likewise.
24664 (R_X86_64_COPY): Likewise.
24665 (R_X86_64_GLOB_DAT): Likewise.
24666 (R_X86_64_JUMP_SLOT): Likewise.
24667 (R_X86_64_RELATIVE): Likewise.
24668 (R_X86_64_GOTPCREL): Likewise.
24669 (R_X86_64_32): Likewise.
24670 (R_X86_64_32S): Likewise.
24671 (R_X86_64_16): Likewise.
24672 (R_X86_64_PC16): Likewise.
24673 (R_X86_64_8): Likewise.
24674 (R_X86_64_PC8): Likewise.
24676 * include/grub/i386/efi/pci.h: New file.
24678 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
24679 Change it value based on platform.
24680 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
24681 (GRUB_E820_RAM): Likewise.
24682 (GRUB_E820_RESERVED): Likewise.
24683 (GRUB_E820_ACPI): Likewise.
24684 (GRUB_E820_NVS): Likewise.
24685 (GRUB_E820_EXEC_CODE): Likewise.
24686 (GRUB_E820_MAX_ENTRY): Likewise.
24687 (grub_e820_mmap): New structure.
24688 (linux_kernel_header): Change the efi field according to different
24689 kernel version, also field from linux_kernel_header.
24691 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
24693 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
24694 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
24695 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
24696 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
24697 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
24698 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
24699 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
24700 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
24701 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
24702 (GRUB_PCI_ADDR_IO_MASK): Likewise.
24704 * include/grub/x86_64/efi/kernel.h: New file.
24706 * include/grub/x86_64/efi/loader.h: Likewise.
24708 * include/grub/x86_64/efi/machine.h: Likewise.
24710 * include/grub/x86_64/efi/pci.h: Likewise.
24712 * include/grub/x86_64/efi/time.h: Likewise.
24714 * include/grub/x86_64/linux.h: Likewise.
24716 * include/grub/x86_64/setjmp.h: Likewise.
24718 * include/grub/x86_64/time.h: Likewise.
24720 * include/grub/x86_64/types.h: Likewise.
24722 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
24723 GRUB_TARGET_SIZEOF_VOID_P.
24725 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
24726 (grub_efi_locate_handle): Likewise.
24727 (grub_efi_open_protocol): Likewise.
24728 (grub_efi_set_text_mode): Likewise.
24729 (grub_efi_stall): Likewise.
24730 (grub_exit): Likewise.
24731 (grub_reboot): Likewise.
24732 (grub_halt): Likewise.
24733 (grub_efi_exit_boot_services): Likewise.
24734 (grub_get_rtc): Likewise.
24736 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
24737 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
24738 (grub_efi_allocate_pages): Wrap efi calls.
24739 (grub_efi_free_pages): Wrap efi calls.
24740 (grub_efi_get_memory_map): Wrap efi calls.
24742 * kern/x86_64/dl.c: New file.
24744 * kern/x86_64/efi/callwrap.S: Likewise.
24746 * kern/x86_64/efi/startup.S: Likewise.
24748 * loader/efi/appleloader.c: Likewise.
24750 * loader/efi/chainloader.c (cmdline): New variable.
24751 (grub_chainloader_unload): Wrap efi calls.
24752 (grub_chainloader_boot): Likewise.
24753 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
24756 * loader/efi/chainloader_normal.c (chainloader_command):
24757 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
24760 * loader/i386/efi/linux.c (allocate_pages): Change allocation
24762 (grub_e820_add_region): New function.
24763 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
24765 (grub_find_video_card): New function.
24766 (grub_linux_setup_video): New function.
24767 (grub_rescue_cmd_linux): Probe for video information.
24769 * normal/x86_64/setjmp.S: New file.
24771 * term/efi/console.c (map_char): New function.
24772 (grub_console_putchar): Map unicode char.
24773 (grub_console_checkkey): Wrap efi calls.
24774 (grub_console_getkey): Likewise.
24775 (grub_console_getwh): Likewise.
24776 (grub_console_gotoxy): Likewise.
24777 (grub_console_cls): Likewise.
24778 (grub_console_setcolorstate): Likewise.
24779 (grub_console_setcursor): Likewise.
24781 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
24783 2008-07-16 Pavel Roskin <proski@gnu.org>
24785 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
24788 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
24789 pointer, not an integer. This fixes a warning and prevents
24790 precision loss on 64-bit systems.
24791 (relocate_addresses): Remove unneeded cast.
24793 2008-07-15 Pavel Roskin <proski@gnu.org>
24795 * kern/i386/ieee1275/init.c: Include grub/cache.h.
24797 * term/ieee1275/ofconsole.c: Disable code unused on i386.
24799 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
24800 Fix comparison between signed and unsigned.
24802 * include/grub/i386/ieee1275/console.h: Declare
24803 grub_console_init() and grub_console_fini().
24805 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
24806 It's empty and unused.
24808 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
24809 beginning to avoid warnings with some compilers.
24811 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
24812 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
24814 2008-07-14 Pavel Roskin <proski@gnu.org>
24816 * kern/env.c (grub_register_variable_hook): Don't copy empty
24817 string, it leaks memory. Pass "" to grub_env_set(), it should
24818 handle constant strings.
24820 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
24821 * commands/cmp.c (grub_cmd_cmp): Likewise.
24822 * kern/dl.c (grub_dl_flush_cache): Likewise.
24823 (grub_dl_load_core): Likewise.
24824 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
24825 (grub_elf64_load_phdrs): Likewise.
24827 2008-07-13 Pavel Roskin <proski@gnu.org>
24829 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
24830 between signed and unsigned.
24831 (LzmaEnc_Finish): Fix warning about an unused parameter.
24833 2008-07-13 Bean <bean123ch@gmail.com>
24835 * Makefile.in (enable_lzo): New rule.
24837 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
24839 * configure.ac (ENABLE_LZO): New option --enable-lzo.
24841 * boot/i386/pc/lnxboot.S: #include <config.h>.
24843 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
24844 its value according to the compression algorithm used, lzo or lzma.
24846 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
24847 compression algorithm according to configure macro.
24849 * kern/i386/pc/startup.S (codestart): Likewise.
24851 * kern/i386/pc/lzma_decode.S: New file.
24853 * include/grub/lib/LzFind.h: Likewise.
24855 * include/grub/lib/LzHash.h: Likewise.
24857 * include/grub/lib/LzmaDec.h: Likewise.
24859 * include/grub/lib/LzmaEnc.h: Likewise.
24861 * include/grub/lib/LzmaTypes.h: Likewise.
24863 * lib/LzFind.c: Likewise.
24865 * lib/LzmaDec.c: Likewise.
24867 * lib/LzmaEnc.c: Likewise.
24869 2008-07-13 Bean <bean123ch@gmail.com>
24871 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
24872 (grub_ext4_extent_header): New structure.
24873 (grub_ext4_extent): Likewise.
24874 (grub_ext4_extent_idx): Likewise.
24875 (grub_ext4_find_leaf): New function.
24876 (grub_ext2_read_block): Handle extents.
24878 2008-07-12 Robert Millan <rmh@aybabtu.com>
24880 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
24882 2008-07-11 Robert Millan <rmh@aybabtu.com>
24884 * util/grub.d/40_custom.in: New file. Example on how to add custom
24885 entries to /etc/grub.d.
24886 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
24887 40_custom (implicitly, by merging all the grub.d rules).
24889 2008-07-11 Pavel Roskin <proski@gnu.org>
24891 * commands/read.c (grub_getline): Fix invalid memory access.
24892 Don't add newline to the variable value.
24894 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
24895 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
24896 (serial_hw_get_port): Check validity of the port number.
24897 (grub_cmd_serial): Check return value of serial_hw_get_port().
24899 2008-07-07 Pavel Roskin <proski@gnu.org>
24901 * boot/i386/pc/diskboot.S (notification_string): Replace
24902 "Loading kernel" with just "loading". This is shorter, less
24903 confusing and saves a few bytes for possible future changes.
24905 2008-07-05 Pavel Roskin <proski@gnu.org>
24907 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
24908 size for ATAPI devices, they are undefined. Output sector
24909 number in decimal form.
24911 * disk/ata.c: Use named constants for status bits.
24913 2008-07-04 Pavel Roskin <proski@gnu.org>
24915 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
24916 grub_addr_t before casting it to the void pointer to fix a
24917 warning. Non-addressable regions are discarded earlier.
24918 (grub_arch_modules_addr): Cast _end to grub_addr_t.
24919 * kern/i386/linuxbios/table.c: Include grub/misc.h.
24920 (check_signature): Don't shadow table_header.
24921 (grub_linuxbios_table_iterate): Cast numeric constants to
24922 grub_linuxbios_table_header_t.
24923 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
24926 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
24929 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
24930 pointer, which can cause warnings. Support 64-bit addresses.
24932 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
24933 of sizeof(long). This fixes PowerPC image generation on x86_64.
24935 2008-07-04 Robert Millan <rmh@aybabtu.com>
24937 This fixes a performance issue when pc & gpt partmap iterators
24938 didn't abort iteration even after our hook found what it was
24939 looking for (often causing expensive probes of non-existent drives).
24941 Some callers relied on previous buggy behaviour, since they would
24942 raise an error when their own hooks caused early abortion of its
24945 * kern/device.c (grub_device_open): Improve error message.
24946 * disk/lvm.c (grub_lvm_open): Likewise.
24947 * disk/raid.c (grub_raid_open): Likewise.
24949 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
24950 when hook requests it, independently of grub_errno.
24951 (pc_partition_map_probe): Do not fail when find_func() caused
24952 early abortion of pc_partition_map_iterate().
24954 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
24955 when hook requests it, independently of grub_errno.
24956 (gpt_partition_map_probe): Do not fail when find_func() caused
24957 early abortion of gpt_partition_map_iterate().
24959 * kern/partition.c (grub_partition_iterate): Abort parent iteration
24960 when hook requests it, independently of grub_errno. Do not fail when
24961 part_map_iterate_hook() caused early abortion of p->iterate().
24963 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
24964 when grub_partition_iterate() returned with non-zero.
24966 2008-07-03 Pavel Roskin <proski@gnu.org>
24968 * disk/ata.c (grub_ata_pio_write): Check status before writing,
24969 like we do in grub_ata_pio_read().
24970 (grub_ata_readwrite): Always write individual sectors. Fix the
24971 sector count for the remainder.
24972 (grub_ata_write): Enable writing to ATA devices. Correctly
24973 report error for ATAPI devices.
24975 2008-07-02 Pavel Roskin <proski@gnu.org>
24977 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
24980 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
24981 for every read sector, we already increment it for the whole
24982 batch. This fixes reading more than 256 sectors at once.
24984 * util/grub-editenv.c (cmd_info): Cast argument to long
24985 explicitly. ptrdiff_t reduces to int on i386.
24987 * util/grub-editenv.c (main): Be specific which parameter is
24990 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
24991 (memdisk): Make memdisk_orig_addr a pointer.
24993 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
24994 for file offsets, use grub_off_t instead. Fix printf format
24997 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
24998 there. Real unexpected warnings should not drown in the noise
24999 about known problems.
25001 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
25002 grub_disk_addr_t for memory addresses.
25004 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
25005 explicitly to fix a warning.
25007 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
25009 * Makefile.in (MODULE_LDFLAGS): New variable.
25010 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
25011 the linker accepts --build-id=none.
25012 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
25014 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
25016 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
25017 those in Linux XFS code. Provide a way to access 64-bit parent
25019 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
25020 the end of struct grub_xfs_dir_header.
25022 2008-07-02 Bean <bean123ch@gmail.com>
25024 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
25025 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25026 and GRUB_IEEE1275_FLAG_NO_ANSI.
25028 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
25029 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25030 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
25032 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
25033 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
25035 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
25036 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
25038 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
25039 esc sequence on non ANSI terminal.
25040 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
25042 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
25045 2008-07-02 Bean <bean123ch@gmail.com>
25047 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
25048 (grub_editenv_SOURCES): New variable.
25049 (pkglib_MODULES): Add loadenv.mod.
25050 (loadenv_mod_SOURCES): New variable.
25051 (loadenv_mod_CFLAGS): Likewise.
25052 (loadenv_mod_LDFLAGS): Likewise.
25054 * include/grub/envblk.h: New file.
25056 * util/envblk.c: New file.
25058 * util/grub-editenv.c: New file.
25060 * commands/loadenv.c: New file.
25062 2008-07-01 Pavel Roskin <proski@gnu.org>
25064 * include/multiboot2.h (struct multiboot_tag_module): Use char,
25065 not unsigned char. This fixes warnings and is consistent with
25068 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
25070 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
25072 * term/tparm.c (analyze): Always set *popcount.
25074 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
25075 cast to fix a warning.
25077 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
25078 cast to suppress a warning.
25080 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
25081 grub_fshelp_read_file() expects.
25083 * fs/fat.c: Fix UUID calculation on big-endian systems. We
25084 write uuid as a 32-bit value in CPU byte order, so declare and
25087 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
25088 long if the format specifier expects it.
25089 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
25090 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25091 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
25092 long to fix a warning.
25093 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
25094 grub_dprintf() arguments to fix warnings.
25096 2008-06-30 Pavel Roskin <proski@gnu.org>
25098 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
25099 install_bsd_part immediately before core.img is embedded or
25100 modified on disk. This fixes core.img verification if core.img
25101 cannot be embedded.
25103 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
25104 core_path to calculate the blocklist.
25105 Patch from Javier Martín <lordhabbit@gmail.com>
25107 2008-06-29 Robert Millan <rmh@aybabtu.com>
25109 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
25110 block to disk block.
25111 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
25112 Patch from Niels Böhm <bitbucket@arcor.de>
25114 2008-06-29 Robert Millan <rmh@aybabtu.com>
25116 * util/update-grub_lib.in (font_path): Search for fonts in
25117 /boot/grub first, which is more likely to be readable (we aren't
25118 deciding where fonts live, just looking for them).
25120 2008-06-26 Pavel Roskin <proski@gnu.org>
25122 * util/biosdisk.c (read_device_map): Don't leave dead map
25123 entries for devices failing stat() check.
25125 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
25126 core_path_dev for the core.img path on the target device.
25128 2008-06-26 Robert Millan <rmh@aybabtu.com>
25130 * disk/fs_uuid.c: New file.
25131 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
25132 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
25133 (fs_uuid_mod_LDFLAGS): New variables.
25134 * include/grub/disk.h (grub_disk_dev_id): Add
25135 `GRUB_DISK_DEVICE_UUID_ID'.
25136 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
25137 implement iterate().
25139 2008-06-26 Robert Millan <rmh@aybabtu.com>
25141 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
25142 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
25143 Linux image includes no initrd.
25145 2008-06-21 Javier Martín <lordhabbit@gmail.com>
25147 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
25148 call to resolve the core image location that effectively appended the
25151 2008-06-21 Robert Millan <rmh@aybabtu.com>
25153 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
25156 * util/grub.d/10_hurd.in: ... to here ...
25157 * util/grub.d/10_linux.in: ... and here.
25159 2008-06-19 Robert Millan <rmh@aybabtu.com>
25161 * kern/main.c (grub_main): Export `prefix' variable immediately
25162 after it has been set by grub_machine_set_prefix().
25164 2008-06-19 Robert Millan <rmh@aybabtu.com>
25166 * commands/search.c (search_label, search_fs_uuid, search_file): Print
25167 search result when not saving to variable, not the other way around.
25168 When saving to variable, abort iteration as soon as a match is found.
25170 2008-06-19 Robert Millan <rmh@aybabtu.com>
25172 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
25173 check for partition that provides /boot/grub. Its logic is flawed,
25174 as it prevents prepare_grub_to_access_device() from being called
25177 2008-06-19 Robert Millan <rmh@aybabtu.com>
25179 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
25180 "insmod" command directly when abstraction modules are needed,
25181 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
25182 since it had already been processed).
25184 2008-06-19 Pavel Roskin <proski@gnu.org>
25186 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
25187 changed. This is needed in case GRUB_LIBDIR changes.
25188 * conf/i386-ieee1275.rmk: Likewise.
25189 * conf/i386-linuxbios.rmk: Likewise.
25190 * conf/i386-pc.rmk: Likewise.
25191 * conf/powerpc-ieee1275.rmk: Likewise.
25193 2008-06-18 Pavel Roskin <proski@gnu.org>
25195 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
25196 kernel_elf_symlist.c to symlist.c for consistency with other
25197 architectures. Update all users.
25198 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25200 2008-06-18 Robert Millan <rmh@aybabtu.com>
25202 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
25205 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
25206 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
25207 a RAID device, run setup() for all members independently on whether
25208 LVM abstraction is being used.
25209 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
25210 If grub-mkimage has set `*install_dos_part == -2', don't override this
25212 Perform *install_dos_part adjustments independently on whether
25213 we're embedding or not.
25214 Clarify error message when image is too big for embedding.
25215 Remove duplicate *install_dos_part stanza.
25217 2008-06-17 Robert Millan <rmh@aybabtu.com>
25219 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
25220 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
25222 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
25223 values in grub_ofconsole_normal_color and
25224 grub_ofconsole_highlight_color (they're not directly related to
25225 background and foreground).
25226 (grub_ofconsole_setcolorstate): Extract background and foreground
25227 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
25229 2008-06-17 Robert Millan <rmh@aybabtu.com>
25231 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
25232 /boot/grub for the check in last commit, not /boot (they could be
25233 different partitions).
25235 2008-06-16 Robert Millan <rmh@aybabtu.com>
25237 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
25238 asked to setup access for the same partition that provides /boot,
25239 don't bother using UUIDs since our root already has the value we
25242 2008-06-16 Robert Millan <rmh@aybabtu.com>
25244 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
25246 Patch from Sven Mueller <sven@debian.org>.
25248 2008-06-16 Robert Millan <rmh@aybabtu.com>
25250 * util/update-grub.in: Check for $EUID instead of $UID.
25251 Reported by Vincent Zweije.
25253 2008-06-16 Bean <bean123ch@gmail.com>
25255 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
25256 (grub_ext2_read_block): Likewise.
25257 (grub_ext2_read_inode): Likewise.
25258 (grub_ext2_mount): Likewise.
25259 (grub_ext2_close): Likewise.
25260 (grub_ext3_get_journal): Removed.
25262 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
25263 (grub_reiserfs_read_symlink): Likewise.
25264 (grub_reiserfs_mount): Likewise.
25265 (grub_reiserfs_open): Likewise.
25266 (grub_reiserfs_read): Likewise.
25267 (grub_reiserfs_close): Likewise.
25268 (grub_reiserfs_get_journal): Removed.
25270 * fs/fshelp.c (grub_fshelp_read): Removed.
25271 (grub_fshelp_map_block): Likewise.
25273 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
25274 (grub_fshelp_journal): Likewise.
25275 (grub_fshelp_read): Likewise.
25276 (grub_fshelp_map_block): Likewise.
25278 2008-06-16 Pavel Roskin <proski@gnu.org>
25280 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
25281 floating point anymore.
25282 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
25284 2008-06-15 Pavel Roskin <proski@gnu.org>
25286 * commands/ls.c (grub_ls_list_files): Use integer calculations
25287 for human readable format, avoid floating point use.
25288 * kern/misc.c (grub_ftoa): Remove.
25289 (grub_vsprintf): Remove floating point support.
25291 2008-06-15 Robert Millan <rmh@aybabtu.com>
25293 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
25295 Reported by Max Vozeler.
25297 2008-06-15 Robert Millan <rmh@aybabtu.com>
25299 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
25300 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
25302 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
25303 the beginning of the prefix.
25305 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
25306 It is assumed that if we have a memdisk, grub-mkimage has set
25307 grub_prefix to include the "(memdisk)" drive in it.
25309 2008-06-15 Robert Millan <rmh@aybabtu.com>
25311 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
25312 Initialize keyboard controller after registering the terminal, so that
25313 grub_printf() can be called from grub_keyboard_controller_init().
25315 2008-06-15 Robert Millan <rmh@aybabtu.com>
25317 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
25318 extent-btree which is written as big endian on disk.
25319 Reported by Alain Greppin <al@chilibi.org>.
25321 2008-06-14 Robert Millan <rmh@aybabtu.com>
25323 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
25324 * util/i386/pc/grub-install.in (modules): Likewise.
25326 2008-06-13 Pavel Roskin <proski@gnu.org>
25328 * commands/ls.c (grub_ls_list_files): Fix format warnings.
25330 2008-06-13 Bean <bean123ch@gmail.com>
25332 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
25334 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
25336 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
25337 to indicate sparse block.
25339 2008-06-12 Pavel Roskin <proski@gnu.org>
25341 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
25342 number, grub_fshelp_read() does it for us.
25344 * fs/fshelp.c (grub_fshelp_read): New function. Implement
25345 linear disk read with journal translation.
25346 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
25347 * include/grub/fshelp.h: Declare grub_fshelp_read().
25349 2008-06-09 Pavel Roskin <proski@gnu.org>
25351 * fs/minix.c (grub_minix_mount): Handle error reading
25354 2008-06-08 Robert Millan <rmh@aybabtu.com>
25356 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
25357 don't append the RAID prefix afterwards.
25358 Reported by Clint Adams.
25360 2008-06-08 Robert Millan <rmh@aybabtu.com>
25362 Based on description from Pavel:
25363 * kern/disk.c (grub_disk_check_range): Rename to ...
25364 (grub_disk_adjust_range): ... this. Add a comment explaining the
25365 tasks performed by this function.
25367 2008-06-08 Robert Millan <rmh@aybabtu.com>
25369 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
25370 `num_serial' (for consistency with other variables).
25371 (struct grub_ntfs_data): Add `uuid' member.
25372 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
25373 (grub_ntfs_uuid): New function.
25374 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
25376 2008-06-07 Pavel Roskin <proski@gnu.org>
25378 * util/biosdisk.c (open_device): Revert last change to the
25379 function, it broke installation. The sector needs to be
25380 different dependent on which device is opened.
25382 2008-06-06 Robert Millan <rmh@aybabtu.com>
25384 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
25385 rest of GRUB, and breakage doesn't happen if its value were modified.
25387 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25388 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
25389 a constant (same value).
25390 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
25391 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
25393 2008-06-06 Robert Millan <rmh@aybabtu.com>
25395 * util/biosdisk.c (open_device): Do not modify sector offset when
25396 accessing a partition. kern/disk.c already handles this for us.
25398 2008-06-06 Robert Millan <rmh@aybabtu.com>
25400 * util/grub-emu.c (grub_machine_init): Move code in this function from
25402 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
25403 segfault in case grub_printf() is called).
25405 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
25406 grub_probe. Update all users not to explicitly add it again.
25407 (grub_device): New variable; contains corresponding device for grubdir.
25408 (fs_module, partmap_module, devabstraction_module): Pass
25409 `--device ${grub_device}' to grub_probe to avoid traversing /dev
25412 2008-06-05 Robert Millan <rmh@aybabtu.com>
25414 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
25415 is found, print it (same layout as with labels).
25417 2008-06-04 Robert Millan <rmh@aybabtu.com>
25419 * util/biosdisk.c (get_drive): Rename to ...
25420 (find_grub_drive): ... this. Update all users.
25422 (get_os_disk): Rename to ...
25423 (convert_system_partition_to_system_disk): ... this. Update all users.
25425 (find_drive): Rename to ...
25426 (find_system_device): ... this. Update all users.
25428 2008-06-04 Robert Millan <rmh@aybabtu.com>
25430 * util/biosdisk.c (get_os_disk): Handle IDA devices.
25431 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25432 (make_device_map): Likewise.
25434 2008-06-01 Robert Millan <rmh@aybabtu.com>
25436 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
25437 before dereferencing it.
25439 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
25440 union with fat12/fat16-specific ones. Add some new fields, including
25441 `num_serial' for both versions.
25442 (struct grub_fat_data): Add `uuid' member.
25443 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
25444 names. Initialize `data->uuid' using `num_serial'.
25445 (grub_fat_uuid): New function.
25446 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
25448 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
25449 (grub_reiserfs_uuid): New function.
25450 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
25453 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
25454 (grub_xfs_uuid): New function.
25455 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
25457 2008-06-01 Robert Millan <rmh@aybabtu.com>
25459 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
25460 code that is backward compatible with pre-uuid search command.
25462 2008-05-31 Robert Millan <rmh@aybabtu.com>
25464 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
25465 floppies after everything else, to ensure floppy drive isn't accessed
25466 unnecessarily (patch from Bean).
25468 2008-05-31 Robert Millan <rmh@aybabtu.com>
25470 * commands/search.c (search_label, search_fs_uuid, search_file): Do
25471 not print device names when we were asked to set a variable.
25473 2008-05-31 Robert Millan <rmh@aybabtu.com>
25475 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
25476 using "cursor-on" and "cursor-off" commands (understood at least by
25477 the Open Firmware flavour on OLPC).
25479 2008-05-31 Michael Gorven <michael@gorven.za.net>
25481 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
25482 on and off sequences.
25484 2008-05-31 Robert Millan <rmh@aybabtu.com>
25486 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
25487 * util/update-grub.in: Likewise.
25489 2008-05-30 Pavel Roskin <proski@gnu.org>
25491 * util/biosdisk.c (linux_find_partition): Simplify logic and
25492 make the code more universal. Keep special processing for
25493 devfs, but use a simple rule for all other devices. If the
25494 device ends with a number, append 'p' and the partition number.
25495 Otherwise, append only the partition number.
25497 2008-05-30 Robert Millan <rmh@aybabtu.com>
25499 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
25500 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
25501 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
25502 the `root' parameter to Linux.
25504 2008-05-30 Robert Millan <rmh@aybabtu.com>
25506 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
25507 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
25508 --fs_uuid with --fs-uuid.
25509 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
25510 all filesystems support them).
25512 2008-05-30 Robert Millan <rmh@aybabtu.com>
25514 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
25515 grub_printf() flags, since we're printing in units of 2 bytes.
25517 2008-05-30 Robert Millan <rmh@aybabtu.com>
25519 * util/grub.d/00_header.in: Remove obsolete comment referencing
25520 convert_system_path_to_grub_path().
25521 * util/update-grub.in: Likewise.
25522 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
25523 (convert_system_path_to_grub_path): Add a warning message explaining
25524 that this function is deprecated. Rely on is_path_readable_by_grub()
25525 for the readability checks.
25526 (font_path): Use is_path_readable_by_grub() for the readability
25527 check rather than convert_system_path_to_grub_path().
25529 2008-05-30 Robert Millan <rmh@aybabtu.com>
25531 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
25532 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
25533 converting it first.
25534 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
25535 grub.cfg for access to font file, and afterwards call it again to set
25538 2008-05-30 Robert Millan <rmh@aybabtu.com>
25540 * commands/search.c (options): Add --fs_uuid option.
25541 (search_fs_uuid): New function.
25542 (grub_cmd_search): Fix --set argument passing.
25543 Use search_fs_uuid() when requested via --fs_uuid.
25544 (grub_search_init): Update help message.
25545 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
25546 and redeclare it as an array of 16-bit words.
25547 (grub_ext2_uuid): New function.
25548 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
25549 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
25550 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
25551 (GRUB_DEVICE_BOOT_UUID): New variables.
25552 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
25553 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
25555 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
25556 just assume `root' variable has the right value.
25557 * util/grub.d/10_linux.in: Likewise.
25558 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
25560 (main): Recognise `-t fs_uuid' argument.
25562 2008-05-30 Robert Millan <rmh@aybabtu.com>
25564 * util/biosdisk.c (map): Redefine structure to hold information
25565 about GRUB drive name.
25566 (get_drive): Reimplement without assuming (and verifying) BIOS-like
25568 (call_hook): Remove.
25569 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
25570 member. Assume drive has partitions.
25571 (grub_util_biosdisk_open): Access device names via `.device' struct
25573 (open_device): Likewise.
25574 (find_drive): Likewise.
25575 (read_device_map): Adjust map[] usage to match the new struct
25576 definition. Don't check for duplicates (still possible, but not cheap
25578 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
25579 (make_device_name): Remove assumption of BIOS-like drive names.
25581 2008-05-30 Pavel Roskin <proski@gnu.org>
25583 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
25584 compiling execute.c doesn't need grub_script.tab.h anymore.
25585 (normal/command.c_DEPENDENCIES): Likewise.
25586 (normal/function.c_DEPENDENCIES): Likewise.
25587 * conf/i386-ieee1275.rmk: Likewise.
25588 * conf/i386-linuxbios.rmk: Likewise.
25589 * conf/i386-pc.rmk: Likewise.
25590 * conf/powerpc-ieee1275.rmk: Likewise.
25591 * conf/sparc64-ieee1275.rmk: Likewise.
25593 2008-05-29 Pavel Roskin <proski@gnu.org>
25595 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
25596 when scanning metadata for volume group name.
25598 * include/grub/script.h: Don't include grub_script.tab.h. It's
25599 a generated file, which may only be included from the files with
25600 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
25601 use union YYSTYPE, as the later allows forward declaration.
25602 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
25604 2008-05-29 Robert Millan <rmh@aybabtu.com>
25606 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
25607 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
25608 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
25609 (grub_console_checkkey): Add grub_dprintf() call to report unknown
25612 2008-05-29 Robert Millan <rmh@aybabtu.com>
25614 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
25615 control key combinations.
25617 2008-05-29 Robert Millan <rmh@aybabtu.com>
25619 * util/powerpc/ieee1275/grub-install.in: Move from here ...
25620 * util/ieee1275/grub-install.in: ... to here.
25621 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
25622 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
25623 (grub_install_SOURCES): Likewise.
25625 2008-05-29 Robert Millan <rmh@aybabtu.com>
25627 * fs/affs.c: Update copyright year.
25628 * fs/ext2.c: Likewise.
25629 * fs/fshelp.c: Likewise.
25630 * fs/hfsplus.c: Likewise.
25631 * fs/ntfs.c: Likewise.
25632 * fs/xfs.c: Likewise.
25633 * include/grub/fshelp.h: Likewise.
25634 * util/grub-mkdevicemap.c: Likewise.
25636 2008-05-28 Robert Millan <rmh@aybabtu.com>
25638 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
25639 might need to be fatfs to support some firmware implementations
25642 2008-05-28 Robert Millan <rmh@aybabtu.com>
25644 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
25646 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25647 (make_device_map): Likewise.
25649 2008-05-20 Bean <bean123ch@gmail.com>
25651 * fs/fshelp.c (grub_fshelp_map_block): New function.
25652 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
25653 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
25655 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
25656 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
25657 (grub_fshelp_journal): New structure.
25658 (grub_fshelp_map_block): New function prototype.
25659 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
25660 (grub_fshelp_map_block): Likewise.
25662 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
25663 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
25664 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
25665 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
25666 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
25667 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
25668 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
25669 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
25670 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
25671 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
25672 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
25673 (grub_ext2_sblock): New members for journal support.
25674 (grub_ext3_journal_header): New structure.
25675 (grub_ext3_journal_revoke_header): Likewise.
25676 (grub_ext3_journal_block_tag): Likewise.
25677 (grub_ext3_journal_sblock): Likewise.
25678 (grub_fshelp_node): New members logfile and journal.
25679 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
25680 grub_fshelp_map_block to get real block number.
25681 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
25683 (grub_ext2_read_inode): Likewise.
25684 (grub_ext3_get_journal): New function.
25685 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
25686 (grub_ext2_close): Release memory used by journal.
25688 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
25689 (REISERFS_MAGIC_DESC_BLOCK): New macro.
25690 (grub_reiserfs_transaction_header): Renamed to
25691 grub_reiserfs_description_block, replace field data with real_blocks.
25692 (grub_reiserfs_commit_block): New structure.
25693 (grub_reiserfs_data): New member journal.
25694 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
25696 (grub_reiserfs_read_symlink): Likewise.
25697 (grub_reiserfs_iterate_dir): Likewise.
25698 (grub_reiserfs_open): Likewise.
25699 (grub_reiserfs_read): Likewise.
25700 (grub_reiserfs_get_journal): New function.
25701 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
25702 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
25703 using grub_reiserfs_get_journal.
25704 (grub_reiserfs_close): Release memory used by journal.
25706 * fs/affs.c (grub_affs_read_block): Change block type to
25707 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
25709 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
25711 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
25713 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
25715 * fs/udf.c (grub_udf_read_block): Change block type to
25716 grub_disk_addr_t. Use type cast to avoid warning.
25718 * fs/xfs.c (grub_xfs_read_block): Likewise.
25720 2008-05-16 Christian Franke <franke@computer.org>
25722 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
25723 to ensure that break with ESC will always work.
25724 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
25725 Remove ESC from keyboard queue.
25727 2008-05-16 Christian Franke <franke@computer.org>
25729 * util/biosdisk.c: [__CYGWIN__] Add includes.
25730 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
25731 (get_os_disk): Move variable declarations to OS specific
25732 parts to avoid warning.
25733 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
25734 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
25735 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
25737 * util/getroot.c: [__CYGWIN__] Add includes.
25738 (strip_extra_slashes): Fix "/" case.
25739 [__CYGWIN__] (get_win32_path): New function.
25740 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
25741 [__CYGWIN__] (find_root_device): Disable.
25742 [__CYGWIN__] (get_bootsec_serial): New function.
25743 [__CYGWIN__] (find_cygwin_root_device): Likewise.
25744 [__linux__] (grub_guess_root_device): Add early returns to simplify
25746 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
25747 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
25748 check for Linux only.
25750 2008-05-15 Bean <bean123ch@gmail.com>
25752 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
25753 keyboard hang problem in apple's intel mac.
25755 2008-05-09 Robert Millan <rmh@aybabtu.com>
25757 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
25759 * util/grub-mkdevicemap.c (get_virtio_disk_name)
25760 (make_device_map): Likewise.
25761 Reported by Aurelien Jarno <aurel32@debian.org>
25763 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
25765 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
25766 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
25767 (make_device_map): Output entries for xvd type disks.
25769 2008-05-07 Robert Millan <rmh@aybabtu.com>
25771 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
25773 * util/grub-mkdevicemap.c (get_cciss_disk_name)
25774 (make_device_map): Likewise.
25775 Reported by Roland Dreier <rdreier@cisco.com>
25777 2008-05-07 Robert Millan <rmh@aybabtu.com>
25779 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
25780 grub_strstr() call. Correct a few mistakes in failure path handling.
25782 2008-05-06 Robert Millan <rmh@aybabtu.com>
25784 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
25785 Do not print a trailing slash (therefore, the root directory is an
25787 (convert_system_path_to_grub_path): Do not remove trailing slash
25788 from make_system_path_relative_to_its_root() output.
25790 * util/i386/pc/grub-install.in: Add trailing slash to output from
25791 make_system_path_relative_to_its_root().
25793 2008-05-06 Robert Millan <rmh@aybabtu.com>
25795 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
25796 ensures that output lines aren't intermangled with those sent to
25797 stderr (via grub_util_info()).
25798 * util/grub-probe.c (grub_refresh): Likewise.
25799 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
25801 2008-05-05 Christian Franke <franke@computer.org>
25803 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
25804 Add Cygwin device names.
25805 (get_ide_disk_name) [__CYGWIN__]: Likewise.
25806 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
25807 (check_device): Return error instead of success on empty name.
25808 (make_device_map): Move label inside linux specific code to
25809 prevent compiler warning.
25811 2008-04-30 Robert Millan <rmh@aybabtu.com>
25813 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
25814 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
25816 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
25818 2008-04-29 Robert Millan <rmh@aybabtu.com>
25820 * docs/grub.cfg: New file (example GRUB configuration).
25822 2008-04-26 Robert Millan <rmh@aybabtu.com>
25824 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
25825 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
25826 and `disk/ieee1275/nand.c'.
25828 2008-04-25 Bean <bean123ch@gmail.com>
25830 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
25833 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
25834 change the buffer size to 4096 for cdrom device.
25836 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
25838 (_linux_mod_SOURCES): New variable.
25839 (_linux_mod_CFLAGS): Likewise.
25840 (_linux_mod_LDFLAGS): Likewise.
25841 (linux_mod_SOURCES): Likewise.
25842 (linux_mod_CFLAGS): Likewise.
25843 (linux_mod_LDFLAGS): Likewise.
25844 (nand_mod_SOURCES): Likewise.
25845 (nand_mod_CFLAGS): Likewise.
25846 (nand_mod_LDFLAGS): Likewise.
25848 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
25849 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
25850 type property. (nand device in olpc don't have this property)
25852 * include/grub/disk.h (grub_disk_dev_id): New macro
25853 GRUB_DISK_DEVICE_NAND_ID.
25855 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
25856 function prototype.
25857 (grub_rescue_cmd_initrd): Likewise.
25859 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
25860 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
25861 ofw_cif_handler and ofw_idt, adjust padding number.
25863 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
25864 GRUB_MACHINE_IEEE1275 is defined.
25866 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
25867 Use NESTED_FUNC_ATTR attribute on the hook parameter.
25869 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
25870 on nested function heap_init.
25871 (grub_upper_mem): New variable for i386-ieee1275.
25872 (grub_get_extended_memory): New function for i386-ieee1275.
25873 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
25875 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
25876 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
25879 * loader/i386/ieee1275/linux.c: New file.
25881 * loader/i386/ieee1275/linux_normal.c: New file.
25883 * disk/ieee1275/nand.c: New file.
25885 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
25887 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
25889 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
25891 2008-04-18 Robert Millan <rmh@aybabtu.com>
25893 Restructures early code path on ieee1275 to unify grub_main() as
25894 the first C function that is executed in every platform.
25896 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
25897 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
25899 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
25900 * kern/ieee1275/cmain.c (cmain): Rename to ...
25901 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
25902 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
25905 2008-04-18 Robert Millan <rmh@aybabtu.com>
25907 * util/update-grub.in: Fix syntax error when setting
25908 `GRUB_PRELOAD_MODULES'.
25909 Reported by Stephane Chazelas <stephane@artesyncp.com>
25911 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
25913 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
25914 section into account, newer toolchains generate unique build ids
25915 * configure.ac: remove the test for --build-id=none acceptance,
25916 we want build ids to be preserved
25917 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
25918 far from other sections don't cause the raw binary images grow
25921 2008-04-15 Robert Millan <rmh@aybabtu.com>
25923 * disk/lvm.c: Update copyright year.
25924 * kern/misc.c: Likewise.
25926 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
25928 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
25929 there is no memory left for physical volume name.
25931 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
25933 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
25934 volume name mapping to support bigger than 9 character names properly.
25936 2008-04-13 Robert Millan <rmh@aybabtu.com>
25938 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
25939 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
25941 2008-04-13 Christian Franke <franke@computer.org>
25943 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
25944 to create a floppy emulation boot CD when non emulation mode
25946 Enable Joliet CD filesystem extension.
25948 2008-04-13 Robert Millan <rmh@aybabtu.com>
25950 * kern/misc.c (grub_strncat): Fix off-by-one error.
25951 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
25953 * kern/env.c (grub_env_context_close): Clear current context, not
25955 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
25957 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
25959 2008-04-13 Robert Millan <rmh@aybabtu.com>
25961 Improve robustness when handling LVM.
25963 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
25964 (and leave `*p' unmodified).
25965 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
25967 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
25968 iterating through it.
25969 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
25971 (grub_lvm_scan_device): Check the return value (and fail gracefully
25972 when due) on each grub_lvm_getvalue() or grub_strstr() call.
25973 Don't assume `vg->pvs != NULL' when iterating through it.
25975 2008-04-13 Robert Millan <rmh@aybabtu.com>
25977 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
25978 * genmk.rb (partmap): New variable.
25979 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
25980 (#{partmap}): New target rule.
25981 * genpartmaplist.sh: New file.
25982 * Makefile.in (pkglib_DATA): Add partmap.lst.
25983 (partmap.lst): New target rule.
25984 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
25985 modules (including all partition maps), instead of preloading them.
25987 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
25989 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
25990 `linux-boot-prober' (if installed) to detect other operating
25991 systems which are installed on the computer and add them to
25993 * conf/common.rmk: Build and install 30_os-prober.
25995 2008-04-12 Robert Millan <rmh@aybabtu.com>
25997 * kern/powerpc/ieee1275/init.c: Move from here ...
25998 * kern/ieee1275/init.c: ... to here. Update all users.
26000 * kern/powerpc/ieee1275/cmain.c: Move from here ...
26001 * kern/ieee1275/cmain.c: ... to here. Update all users.
26003 * kern/powerpc/ieee1275/openfw.c: Move from here ...
26004 * kern/ieee1275/openfw.c: ... to here. Update all users.
26006 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
26007 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
26009 2008-04-10 Pavel Roskin <proski@gnu.org>
26011 * configure.ac: Always use "_cv_" in cache variables for
26012 compatibility with Autoconf 2.62.
26014 2008-04-07 Robert Millan <rmh@aybabtu.com>
26016 Revert grub/machine/init.h addition by Pavel (since it breaks on
26017 i386-ieee1275 and others):
26018 * util/i386/pc/misc.c: Remove grub/machine/init.h.
26019 * util/powerpc/ieee1275/misc.c: Likewise.
26021 2008-04-07 Robert Millan <rmh@aybabtu.com>
26023 * util/grub-probe.c (probe): Improve error message.
26025 2008-04-07 Robert Millan <rmh@aybabtu.com>
26027 * util/biosdisk.c (read_device_map): Skip devices that don't exist
26028 (this prevents the presence of a bogus entry from ruining the whole
26031 2008-04-06 Pavel Roskin <proski@gnu.org>
26033 * util/biosdisk.c: Include grub/util/biosdisk.h.
26034 * util/grub-fstest.c (execute_command): Make static.
26035 * util/grub-mkdevicemap.c (check_device): Likewise.
26036 * util/i386/pc/misc.c: Include grub/machine/init.h.
26037 * util/powerpc/ieee1275/misc.c: Likewise.
26038 * util/lvm.c: Include grub/util/lvm.h.
26039 * util/misc.c: Include grub/kernel.h, grub/misc.h and
26041 * util/raid.c: Include grub/util/raid.h.
26042 (grub_util_getdiskname): Make static.
26044 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
26045 grub_hostfs_fini(), as they are called from grub_init_all() and
26046 grub_fini_all() respectively. This fixes an infinite loop in
26047 grub-fstest due to double registration of hostfs.
26048 Reported by Christian Franke <Christian.Franke@t-online.de>
26050 2008-04-05 Pavel Roskin <proski@gnu.org>
26052 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
26053 all 8 functions. Otherwise, probe function 0 only.
26055 2008-04-04 Pavel Roskin <proski@gnu.org>
26057 * commands/lspci.c (grub_lspci_iter): Print the bus number
26060 * commands/lspci.c (grub_pci_classes): Fix typos.
26061 (grub_lspci_iter): Don't print func twice. Print vendor ID
26062 before device ID, as it's normally done.
26064 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26065 Fix signedness warnings.
26066 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
26068 * util/ieee1275/get_disk_name.c: Include config.h so that
26069 _GNU_SOURCE is defined and getline() is declared. Mark an
26070 unused argument as such. Fix a signedness warning.
26072 2008-04-02 Pavel Roskin <proski@gnu.org>
26074 * genkernsyms.sh.in: Use more robust assignments for CC and
26075 srcdir. Quote srcdir.
26076 * gensymlist.sh.in: Likewise. Assert at the compile time that
26077 the symbol table is not empty.
26079 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
26080 * fs/cpio.c (grub_cpio_read): Likewise.
26082 2008-04-01 Pavel Roskin <proski@gnu.org>
26084 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
26085 * disk/host.c (grub_host_open): Likewise.
26086 * disk/loopback.c (grub_loopback_open): Likewise.
26087 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
26088 disk->id as in disk/host.c, not a multi-character constant.
26090 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
26091 later is obsolete, potentially dangerous and sets a bad example.
26092 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
26093 * util/misc.c (grub_util_get_image_size): Likewise.
26095 * disk/loopback.c (options): Improve help for "--partitions".
26097 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
26098 options to align them with the short options, e.g. "echo -e".
26100 2008-03-31 Bean <bean123ch@gmail.com>
26102 * video/reader/png.c (grub_png_data): New member is_16bit and
26104 (grub_png_decode_image_header): Detect 16 bit png image.
26105 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
26106 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
26107 (grub_video_reader_png): Release memory occupied by image_data.
26109 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
26111 (grub_nfs_mount): Skip the test for sector per cluster.
26113 * include/grub/ntfs.h (MAX_SPC): Removed.
26115 2008-03-31 Bean <bean123ch@gmail.com>
26117 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
26118 (grub_probe_SOURCES): Add fs/afs.c.
26119 (grub_fstest_SOURCES): Likewise.
26120 (afs_mod_SOURCES): New variable.
26121 (afs_mod_CFLAGS): Likewise.
26122 (afs_mod_LDFLAGS): Likewise.
26124 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
26125 (grub_emu_SOURCES): Likewise.
26127 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26129 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26131 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26135 * fs/afs.c: New file.
26137 2008-03-30 Pavel Roskin <proski@gnu.org>
26139 * disk/host.c: Include grub/misc.h to fix a warning.
26140 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
26141 warnings about implicit declarations.
26143 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
26145 * include/grub/i386/loader.h: Change declaration of
26146 grub_linux_boot() to match what grub_loader_set() expects.
26147 * util/getroot.c (grub_guess_root_device): Return const char* to
26149 * util/grub-probe.c (probe): Fix a warning about uninitialized
26150 abstraction_name variable.
26151 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
26152 second argument as unused to fix a warning.
26154 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
26155 missing grub_error() call.
26157 * util/update-grub_lib.in: Define datarootdir, since Autoconf
26158 2.60 and newer uses it to define datadir.
26160 * commands/sleep.c: Fix warning about implicit declaration.
26161 * disk/memdisk.c: Likewise.
26162 * loader/aout.c: Likewise.
26163 * loader/i386/bsd_normal.c: Likewise.
26164 * util/grub-probe.c: Likewise.
26166 * commands/i386/cpuid.c (has_longmode): Make static.
26167 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
26168 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
26170 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
26171 GDT. This is more robust, as %ds can change.
26172 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
26173 calling real_to_prot().
26174 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
26176 2008-03-28 Pavel Roskin <proski@gnu.org>
26178 * kern/i386/pc/startup.S: Assert that uncompressed functions
26179 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
26180 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
26181 code, as they push parts of the code (error handlers) beyond
26182 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
26183 code as correctness and size.
26185 2008-03-28 Pavel Roskin <proski@gnu.org>
26187 * kern/i386/pc/startup.S
26188 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
26189 data block address to the real mode, keep offset minimal. This
26190 works around a bug in AWARD BIOS on old Athlon systems, which
26191 makes CD detection hang.
26193 2008-03-26 Pavel Roskin <proski@gnu.org>
26195 * normal/color.c (grub_parse_color_name_pair): Make `name' a
26197 * include/grub/normal.h: Add grub_parse_color_name_pair()
26200 2008-03-24 Bean <bean123ch@gmail.com>
26202 * disk/i386/pc/biosdisk.c (cd_start): Removed.
26203 (cd_count): Removed.
26204 (cd_drive): New variable.
26205 (grub_biosdisk_get_drive): Don't check for (cdN) device.
26206 (grub_biosdisk_call_hook): Likewise.
26207 (grub_biosdisk_iterate): Change cdrom detection method.
26208 (grub_biosdisk_open): Replace cd_start with cd_drive.
26209 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
26210 detect cdrom device.
26212 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
26214 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
26215 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
26216 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
26217 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
26218 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
26219 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
26220 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
26221 (grub_biosdisk_cdrp): New structure.
26222 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
26224 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
26226 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
26229 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
26232 2008-03-20 Robert Millan <rmh@aybabtu.com>
26234 Remove 2 TiB limit in ata.mod.
26235 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
26236 (grub_ata_dumpinfo): Print sector count with 0x%llx.
26237 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
26238 grub_uint64_t instead of grub_uint32_t.
26240 2008-03-05 Bean <bean123ch@gmail.com>
26242 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
26243 (grub_multiboot): Set boot device.
26245 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
26247 2008-03-02 Bean <bean123ch@gmail.com>
26249 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
26252 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
26254 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
26257 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
26260 * docs/fdl.texi: New file.
26262 * docs/mdate-sh: New file. Copied from gnulib.
26263 * docs/texinfo.tex: Likewise.
26265 * config.guess: Updated from gnulib.
26266 * install-sh: Likewise.
26268 2008-02-28 Robert Millan <rmh@aybabtu.com>
26270 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
26271 (aout_mod_SOURCES): New variable.
26272 (aout_mod_CFLAGS): Likewise.
26273 (aout_mod_LDFLAGS): Likewise.
26275 * conf/i386-ieee1275.rmk: Likewise.
26277 2008-02-28 Robert Millan <rmh@aybabtu.com>
26279 * util/update-grub.in: Reorganise terminal validity check. Accept
26280 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
26281 Based on suggestion by Franklin PIAT.
26283 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
26285 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
26287 * util/getroot.c (grub_util_check_block_device): New function that
26288 returns the given argument if it is a block device and returns NULL else.
26289 * util/grub-probe.c (argument_is_device): New variable.
26290 (probe): Promote device_name from a variable to an argument. Receive
26291 device_name from grub_util_check_block_device() if path is NULL and from
26292 grub_guess_root_device() else. Do not free() device_name anymore.
26293 (options): Introduce new parameter '-d, --device'.
26294 (main): Add description of the new parameter to the help screen.
26295 Rename path variable to argument. Set argument_is_device if the '-d'
26296 option is given. Pass argument to probe() depending on
26297 argument_is_device.
26299 2008-02-24 Bean <bean123ch@gmail.com>
26301 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
26302 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
26303 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
26304 (GRUB_ISO9660_VOLDESC_PART): Likewise.
26305 (GRUB_ISO9660_VOLDESC_END): Likewise.
26306 (grub_iso9660_primary_voldesc): New member escape.
26307 (grub_iso9660_data): New member joliet.
26308 (grub_iso9660_convert_string): New function.
26309 (grub_iso9660_mount): Detect joliet extension.
26310 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
26311 (grub_iso9660_iso9660_label): Likewise.
26313 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
26314 (grub_setup_SOURCES): Add fs/udf.c.
26315 (grub_fstest_SOURCES): Likewise.
26316 (udf_mod_SOURCES): New variable.
26317 (udf_mod_CFLAGS): Likewise.
26318 (udf_mod_LDFLAGS): Likewise.
26320 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
26321 (grub_emu_SOURCES): Likewise.
26323 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26325 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26327 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26331 * fs/udf.c: New file.
26333 2008-02-24 Robert Millan <rmh@aybabtu.com>
26335 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
26336 (normal/lexer.c_DEPENDENCIES): New variables.
26337 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26338 (normal/lexer.c_DEPENDENCIES): Likewise.
26339 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
26340 (normal/lexer.c_DEPENDENCIES): Likewise.
26341 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
26342 (normal/lexer.c_DEPENDENCIES): Likewise.
26343 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26344 (normal/lexer.c_DEPENDENCIES): Likewise.
26345 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26346 (normal/lexer.c_DEPENDENCIES): Likewise.
26348 2008-02-23 Robert Millan <rmh@aybabtu.com>
26350 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
26351 since they were intended to be in hex. This didn't break previously
26352 because of a bug in gpt_partition_map_iterate() (see below).
26354 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
26355 when checking the validity of GPT header.
26356 Remove `partno', since it always provides the same information as `i'.
26358 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
26360 * include/grub/efi/time.h: Fix a wrong comment.
26362 2008-02-19 Pavel Roskin <proski@gnu.org>
26364 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
26367 2008-02-19 Bean <bean123ch@gmail.com>
26369 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
26370 (aout_mod_SOURCES): New variable.
26371 (aout_mod_CFLAGS): Likewise.
26372 (aout_mod_LDFLAGS): Likewise.
26373 (_bsd_mod_SOURCES): New variable.
26374 (_bsd_mod_CFLAGS): Likewise.
26375 (_bsd_mod_LDFLAGS): Likewise.
26376 (bsd_mod_SOURCES): New variable.
26377 (bsd_mod_CFLAGS): Likewise.
26378 (bsd_mod_LDFLAGS): Likewise.
26380 * include/grub/aout.h: New file.
26382 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
26384 * include/grub/i386/bsd.h: New file.
26386 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
26389 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
26390 function is called, so that it's possible to change it inside the hook.
26391 (grub_elf64_load): Likewise.
26392 (grub_elf_file): Don't close the file if elf header is not found.
26393 (grub_elf_close): Close the file if grub_elf_file fails (The new
26394 grub_elf_file won't close it).
26395 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
26396 (grub_elf64_size): Likewise.
26398 * kern/i386/loader.S (grub_unix_real_boot): New function.
26400 * loader/aout.c: New file.
26402 * loader/i386/bsd.c: New file.
26404 * loader/i386/bsd_normal.c: New file.
26406 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
26408 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
26409 can test other formats.
26411 2008-02-19 Robert Millan <rmh@aybabtu.com>
26413 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
26414 (grub_gpt_partition_type_empty): Redefine with macro from
26415 `<grub/gpt_partition.h>'.
26416 (gpt_partition_map_iterate): Adjust partition type comparison.
26418 Export `entry' as partmap-specific `part.data' struct.
26419 (grub_gpt_header, grub_gpt_partentry): Move from here ...
26421 * include/grub/gpt_partition.h (grub_gpt_header)
26422 (grub_gpt_partentry): ... to here (new file).
26424 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
26426 (grub_gpt_partition_type_bios_boot): New const variable, defined
26427 with macro from `<grub/gpt_partition.h>'.
26429 (setup): Replace `first_start' with `embed_region', which keeps
26430 track of the embed region (and is partmap-agnostic).
26432 Replace find_first_partition_start() with find_usable_region(),
26433 which finds a usable region for embedding using partmap-specific
26434 knowledge (supports PC/MSDOS and GPT).
26436 Fix all assumptions that the embed region start at sector 1, using
26437 `embed_region.start' from now on. Similarly, use `embed_region.end'
26438 rather than `first_start' to calculate available size.
26440 In grub_util_info() message, replace "into after the MBR" with an
26441 indication of the specific sector our embed region starts at.
26443 2008-02-19 Robert Millan <rmh@aybabtu.com>
26445 * DISTLIST: Replace `commands/ieee1275/halt.c' and
26446 `commands/ieee1275/reboot.c' with `commands/halt.c' and
26447 `commands/reboot.c'.
26448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26449 (halt_mod_SOURCES): Likewise.
26450 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26451 (halt_mod_SOURCES): Likewise.
26453 2008-02-17 Christian Franke <franke@computer.org>
26455 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
26457 2008-02-17 Robert Millan <rmh@aybabtu.com>
26459 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26460 set `first_start' to 0 for non-PC/MSDOS partition maps.
26462 2008-02-16 Robert Millan <rmh@aybabtu.com>
26464 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26465 do not assume partition map is PC/MSDOS before performing checks that
26466 are specific to that layout.
26468 2008-02-13 Robert Millan <rmh@aybabtu.com>
26470 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
26471 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
26472 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
26474 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
26476 * configure.ac: Only a cosmetic change on the handling of
26477 -fno-stack-protector.
26479 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
26481 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
26482 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
26484 (grub_install_SOURCES): Add halt.mod and reboot.mod.
26485 (halt_mod_SOURCES): New variable.
26486 (halt_mod_CFLAGS): Likewise.
26487 (halt_mod_LDFLAGS): Likewise.
26488 (reboot_mod_SOURCES): Likewise.
26489 (reboot_mod_CFLAGS): Likewise.
26490 (reboot_mod_LDFLAGS): Likewise.
26492 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
26493 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
26495 (halt_mod_SOURCES): Likewise.
26496 (reboot_mod_SOURCES): Likewise.
26498 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
26499 commands/i386/pc/reboot.c by commands/reboot.c.
26500 (reboot_mod_SOURCES): Likewise.
26502 * commands/i386/pc/reboot.c: merge this file ...
26504 * commands/ieee1275/reboot.c: ... and this file ...
26506 * commands/reboot.c: ... to this file.
26507 Add some precompiler directive to include the correct header for
26510 * commands/ieee1275/halt.c: move this file ...
26512 * commands/halt.c: ... to here.
26513 Add some precompiler directive to include the correct header for
26516 * include/grub/efi/efi.h (grub_reboot): New function declaration.
26517 (grub_halt): Likewise.
26519 * kern/efi/efi.c (grub_reboot): New function.
26520 (grub_halt): Likewise.
26522 2008-02-12 Robert Millan <rmh@aybabtu.com>
26524 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
26525 /dev (like it is done for /dev/mapper). This doesn't provide support
26526 for EVMS, but at least it is now easy to identify the problem when it
26529 2008-02-11 Robert Millan <rmh@aybabtu.com>
26531 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
26532 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
26533 comparing it with -1, not 0.
26535 2008-02-10 Robert Millan <rmh@aybabtu.com>
26537 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
26539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26540 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26542 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
26543 `disk/lvm.c' to the end of the list.
26544 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26545 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26547 2008-02-10 Robert Millan <rmh@aybabtu.com>
26549 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
26550 grub_print_error() instead. This will let user know why we're entering
26552 Based on suggestions from Sam Morris.
26554 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
26556 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
26557 on remaining N args, instead of "--" arg N times.
26559 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
26561 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
26562 (fill_with_default_glyph): Changed to use unknown_glyph for fill
26563 pattern for unknown glyphs.
26565 2008-02-09 Robert Millan <rmh@aybabtu.com>
26567 * configure.ac: Probe for `help2man'.
26568 * Makefile.in (builddir): New variable.
26569 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
26570 or otherwise add a few flags/options to it.
26571 (install-local): For every executable utility or script that is
26572 installed, invoke $(HELP2MAN) to install a manpage based on --help
26575 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
26576 that it doesn't prevent --help from working in build tree.
26578 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
26579 with `bug-grub@gnu.org'.
26580 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
26581 * util/update-grub.in (usage): New function.
26582 Implement proper argument check, with support for --help and --version
26583 (as well as existing -y).
26585 2008-02-09 Christian Franke <franke@computer.org>
26587 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
26588 avoid overwriting previous output.
26589 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
26591 2008-02-09 Robert Millan <rmh@aybabtu.com>
26593 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
26596 2008-02-09 Robert Millan <rmh@aybabtu.com>
26598 * commands/sleep.c: New file.
26599 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
26600 (sleep_mod_SOURCES): New variable.
26601 (sleep_mod_CFLAGS): Likewise.
26602 (sleep_mod_LDFLAGS): Likewise.
26604 2008-02-09 Robert Millan <rmh@aybabtu.com>
26606 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
26607 situations in which we can deduce the RAID size and the superblock
26610 2008-02-09 Robert Millan <rmh@aybabtu.com>
26612 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
26613 and return a grub_diskmemberlist_t composed of LVM physical volumes.
26614 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
26616 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
26617 and return a grub_diskmemberlist_t composed of physical array members.
26618 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
26620 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
26622 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
26623 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
26624 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
26626 * util/grub-probe.c (probe): Move partmap probing code from here ...
26627 (probe_partmap): ... to here.
26628 (probe): Use probe_partmap() once for the disk we're probing, and
26629 additionally, when such disk contains a memberlist() struct member,
26630 once for each disk that is contained in the structure returned by
26633 2008-02-09 Robert Millan <rmh@aybabtu.com>
26635 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
26636 environment variable to 'all' in order to obtain debug output from
26638 * util/i386/pc/grub-setup.c (main): Likewise.
26640 2008-02-08 Robert Millan <rmh@aybabtu.com>
26642 * disk/raid.c (grub_raid_scan_device): Check for
26643 `array->device[sb.this_disk.number]' rather than for
26644 `array->device[sb.this_disk.number]->name', since the latter is not
26645 guaranteed to be accessible.
26647 2008-02-08 Robert Millan <rmh@aybabtu.com>
26649 * disk/raid.c: Update copyright.
26650 * fs/cpio.c: Likewise.
26651 * include/grub/raid.h: Likewise.
26652 * loader/i386/pc/multiboot.c: Likewise.
26653 * util/hostfs.c: Likewise.
26655 2008-02-08 Robert Millan <rmh@aybabtu.com>
26657 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
26658 to a grub_disk_t array.
26659 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
26661 (grub_raid_scan_device): Replace `device[x].name' accesses with
26662 `device[x]->name'. Simplify initialization of `array->device[x]'.
26664 2008-02-08 Robert Millan <rmh@aybabtu.com>
26666 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
26667 grub_dprintf() calls.
26668 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
26671 2008-02-07 Christian Franke <franke@computer.org>
26673 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
26674 instead of fseek and ftell to support large files.
26675 (grub_hostfs_read): Likewise.
26677 2008-02-07 Robert Millan <rmh@aybabtu.com>
26679 Patch from Jeroen Dekkers.
26680 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
26681 failure, since successfully reading all array members might not be
26684 2008-02-06 Robert Millan <rmh@aybabtu.com>
26686 * util/grub-probe.c (probe): Simplify partmap probing (with the
26687 assumption that the first word up to the underscore equals to
26690 2008-02-06 Christian Franke <franke@computer.org>
26692 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
26693 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
26694 last block of a cpio or tar stream.
26695 Check for "TRAILER!!!" instead of any empty data
26696 block to detect last block of a cpio stream.
26697 (grub_cpio_dir): Fix constness of variable np.
26698 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
26699 cpio or tar trailer is detected. This fixes a crash
26700 on open of a non existing file.
26702 2008-02-05 Bean <bean123ch@gmail.com>
26704 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
26706 (grub_multiboot_load_elf64): Likewise.
26707 (grub_multiboot): Initialize mbi structure.
26709 * util/grub-fstest.c: Don't include unused header file script.h.
26711 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
26713 (grub_fstest_SOURCES): Likewise.
26715 2008-02-05 Robert Millan <rmh@aybabtu.com>
26717 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
26718 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
26719 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
26720 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
26722 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
26723 (translation_table): Replace hardcoded values with macros
26724 provided by `<grub/term.h>'.
26726 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
26727 (keyboard_map): Correct/add a few values, with macros provided
26728 by `<grub/term.h>'.
26729 (keyboard_map_shift): Zero values that don't differ from their
26730 `keyboard_map' equivalents.
26731 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
26732 Discard the second scan code that is always sent by Caps lock.
26733 Only use `keyboard_map_shift' when it provides a non-zero value,
26734 otherwise fallback to `keyboard_map'.
26736 2008-02-04 Bean <bean123ch@gmail.com>
26738 * Makefile.in (enable_grub_fstest): New variable.
26740 * conf/common.rmk (grub_fstest_init.lst): New rule.
26741 (grub_fstest_init.h): Likewise.
26742 (grub_fstest_init.c): Likewise.
26743 (util/grub-fstest.c_DEPENDENCIES): New variable.
26744 (grub_fstest_SOURCES): Likewise.
26746 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
26748 * util/grub-fstest.c: New file.
26750 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26752 Make grub-setup handle a separate root device.
26754 * util/i386/pc/grub-setup.c (setup): Always open the root device,
26755 so that the root device can be compared with the destination
26757 When embedding the core image, if the root and destination devices
26758 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
26760 When not embedding, set ROOT_DRIVE to 0xFF.
26762 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26764 Add support for having a grub directory in a different drive. This
26765 is still only the data handling part.
26767 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
26768 (codestart): Save %dh in GRUB_ROOT_DRIVE.
26769 (grub_root_drive): New variable.
26771 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
26772 instead of GRUB_BOOT_DRIVE to construct a device name. Set
26773 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
26776 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
26778 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
26780 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
26782 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
26783 is bogus, because PXE booting does not specify any drive
26786 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
26787 am not sure if this is really correct.
26789 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
26790 is always identical to the boot drive when booting from a CD.
26792 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
26794 (root_drive): New variable.
26795 (real_start): Unconditionally set %dh to ROOT_DRIVE.
26796 (setup_sectors): Push %dx right after popping it, because %dh will
26798 (copy_buffer): Restore %dx.
26800 2008-02-03 Robert Millan <rmh@aybabtu.com>
26802 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
26803 use `cdboot.img' for cdrom images.
26805 2008-02-03 Robert Millan <rmh@aybabtu.com>
26807 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
26808 only setup gfxterm when `font' command has succeeded.
26810 2008-02-03 Robert Millan <rmh@aybabtu.com>
26812 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
26813 (grub_rescue_cmd_multiboot_loader)
26814 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
26816 2008-02-03 Pavel Roskin <proski@gnu.org>
26818 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
26819 %edx and %esi from stack only after grub_gate_a20() is called.
26820 grub_gate_a20() clobbers %edx.
26822 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26824 * configure.ac (AC_INIT): Bumped to 1.96.
26826 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
26827 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
26828 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
26829 video/readers/png.c.
26831 2008-02-03 Bean <bean123ch@gmail.com>
26833 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
26834 (cdboot_img_SOURCES): New variable.
26835 (cdboot_img_ASFLAGS): New variable.
26836 (cdboot_img_LDFLAGS): New variable.
26838 * boot/i386/pc/cdboot.S: New file.
26840 * disk/i386/pc/biosdisk.c (cd_start): New variable.
26841 (cd_count): Likewise.
26842 (grub_biosdisk_get_drive): Add support for cd device.
26843 (grub_biosdisk_call_hook): Likewise.
26844 (grub_biosdisk_iterate): Likewise.
26845 (grub_biosdisk_open): Likewise.
26846 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
26847 (grub_biosdisk_rw): Support reading from cd device.
26848 (GRUB_MOD_INIT): Iterate cd devices.
26850 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
26851 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
26852 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
26854 * kern/i386/pc/init.c (make_install_device): Check for cd device.
26856 2008-02-02 Robert Millan <rmh@aybabtu.com>
26858 * commands/read.c: New file.
26859 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
26860 (read_mod_SOURCES): New variable.
26861 (read_mod_CFLAGS): Likewise.
26862 (read_mod_LDFLAGS): Likewise.
26864 2008-02-02 Robert Millan <rmh@aybabtu.com>
26866 * normal/main.c (grub_normal_execute): Check for `menu->size' when
26867 determining whether menu has to be displayed.
26869 2008-02-02 Marco Gerards <marco@gnu.org>
26871 * bus/pci.c: New file.
26873 * include/grub/pci.h: Likewise.
26875 * include/grub/i386/pc/pci.h: Likewise.
26877 * commands/lspci.c: Likewise.
26879 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
26881 (pci_mod_SOURCES): New variable.
26882 (pci_mod_CFLAGS): Likewise.
26883 (pci_mod_LDFLAGS): Likewise.
26884 (lspci_mod_SOURCES): Likewise.
26885 (lspci_mod_CFLAGS): Likewise.
26886 (lspci_mod_LDFLAGS): Likewise.
26888 2008-02-02 Bean <bean123ch@gmail.com>
26890 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
26891 (grub_ufs_get_file_block): Fix indirect block calculation problem.
26893 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
26894 (grub_xfs_btree_node): New structure.
26895 (grub_xfs_btree_root): New structure.
26896 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
26897 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
26898 (GRUB_XFS_EXTENT_BLOCK): Likewise.
26899 (GRUB_XFS_EXTENT_SIZE): Likewise.
26900 (grub_xfs_read_block): Support btree format type.
26901 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
26902 Use directory block as basic unit.
26904 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
26906 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
26907 __attribute__ ((__regparm__ (1))).
26909 2008-02-01 Robert Millan <rmh@aybabtu.com>
26911 Correct a mistake in previous commit.
26913 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
26915 (normal/command.c_DEPENDENCIES): New variable.
26917 2008-02-01 Robert Millan <rmh@aybabtu.com>
26919 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
26921 (normal/command.c_DEPENDENCIES): New variable.
26922 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
26923 * conf/i386-ieee1275.rmk: Likewise.
26924 * conf/i386-linuxbios.rmk: Likewise.
26925 * conf/i386-pc.rmk: Likewise.
26926 * conf/sparc64-ieee1275.rmk: Likewise.
26927 * conf/powerpc-ieee1275.rmk: Likewise.
26928 (grub_emu_SOURCES): Add `fs/fshelp.c'.
26930 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
26932 2008-02-01 Robert Millan <rmh@aybabtu.com>
26934 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
26935 call at beginning of function.
26937 2008-01-31 Pavel Roskin <proski@gnu.org>
26939 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
26940 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
26941 (grub_mkrescue_SOURCES): Likewise.
26942 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
26944 2008-01-30 Robert Millan <rmh@aybabtu.com>
26946 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
26947 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
26948 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
26949 (grub_probe_SOURCES): ... to here.
26951 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
26952 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
26953 * conf/i386-ieee1275.rmk: Likewise.
26954 * conf/i386-linuxbios.rmk: Likewise.
26955 * conf/powerpc-ieee1275.rmk: Likewise.
26957 2008-01-30 Tristan Gingold <gingold@free.fr>
26959 * kern/rescue.c: Silently accept empty lines.
26961 2008-01-29 Bean <bean123ch@gmail.com>
26963 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
26964 (real_code_2): Code cleanup and change comment style.
26965 (move_memory): Avoid using 32-bit address mode.
26967 2008-01-29 Bean <bean123ch@gmail.com>
26969 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
26970 (png_mod_SOURCES): New variable.
26971 (png_mod_CFLAGS): Likewise.
26972 (png_mod_LDFLAGS): Likewise.
26974 * video/readers/png.c: New file.
26976 2008-01-28 Robert Millan <rmh@aybabtu.com>
26978 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
26979 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
26980 `ifndef GRUB_MOD_GAP' hack.
26981 * util/elf/grub-mkimage.c (add_segments): Likewise.
26983 2008-01-27 Robert Millan <rmh@aybabtu.com>
26985 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
26986 `GRUB_MOD_GAP' for platforms in which it's not defined.
26987 * util/elf/grub-mkimage.c (add_segments): Likewise.
26989 2008-01-27 Robert Millan <rmh@aybabtu.com>
26991 Get grub-emu to build again (including parallel builds).
26993 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
26995 (util/grub-emu.c_DEPENDENCIES): ... this, ...
26996 (normal/execute.c_DEPENDENCIES): ... this, ...
26997 (grub-emu_DEPENDENCIES): ... and this.
26999 * conf/i386-efi.rmk: Likewise.
27000 * conf/i386-linuxbios.rmk: Likewise.
27001 * conf/i386-ieee1275.rmk: Likewise.
27002 * conf/powerpc-ieee1275.rmk: Likewise.
27003 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
27005 2008-01-27 Robert Millan <rmh@aybabtu.com>
27007 * NEWS: Add a few items.
27009 2008-01-27 Robert Millan <rmh@aybabtu.com>
27011 Fix parallel builds with grub-emu. Based on earlier commit for
27012 grub-probe and grub-setup.
27014 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27015 (util/grub-emu.c_DEPENDENCIES): ... this.
27016 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27017 (util/grub-emu.c_DEPENDENCIES): ... this.
27018 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27019 (util/grub-emu.c_DEPENDENCIES): ... this.
27020 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27021 (util/grub-emu.c_DEPENDENCIES): ... this.
27022 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27023 (util/grub-emu.c_DEPENDENCIES): ... this.
27025 2008-01-27 Pavel Roskin <proski@gnu.org>
27027 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
27028 to create a gap between _end and the modules added to the image
27029 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
27030 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
27031 * util/elf/grub-mkimage.c (add_segments): Likewise.
27033 2008-01-26 Pavel Roskin <proski@gnu.org>
27035 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
27036 just return an error.
27038 2008-01-26 Bean <bean123ch@gmail.com>
27040 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
27041 (grub_reiserfs_get_item): Save offset of the next item.
27042 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
27044 2008-01-25 Robert Millan <rmh@aybabtu.com>
27046 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
27047 make all filesystem sources appear together (possibly fixing omissions
27049 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27050 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27051 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27054 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
27056 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
27057 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27058 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
27059 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27061 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
27062 (probe): Add a sanity check to make sure of our ability to read
27063 requested files when probing for filesystem type.
27065 * genmk.rb: Update copyright year (2007).
27067 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
27068 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
27069 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
27070 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
27071 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
27072 : Remove function prototypes.
27074 2008-01-25 Robert Millan <rmh@aybabtu.com>
27076 Revert my previous commits (based on wrong assumption of how grub_errno
27079 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
27080 * kern/file.c (grub_file_open): Likewise.
27082 2008-01-24 Pavel Roskin <proski@gnu.org>
27084 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
27085 that hang if GRUB tries to setup colors.
27086 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
27087 colors for firmwares that don't support it.
27088 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
27089 Recognize Open Hack'Ware, set flags to work around its
27092 2008-01-24 Robert Millan <rmh@aybabtu.com>
27094 * kern/file.c (grub_file_open): Do not account previous failures of
27095 unrelated functions when grub_errno is checked for.
27096 Reported by Oleg Strikov.
27098 2008-01-24 Bean <bean123ch@gmail.com>
27100 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
27101 (grub_ufs_sblock): New member volume name.
27102 (grub_ufs_find_file): Fix string copy bug.
27103 (grub_ufs_label): Implement this function properly.
27105 * fs/hfs.c (grub_hfs_cnid_type): New enum.
27106 (grub_hfs_iterate_records): Use the correct file number for extents
27107 and catalog file. Fix problem in next index calculation.
27108 (grub_hfs_find_node): Replace recursive function call with loop.
27109 (grub_hfs_iterate_dir): Replace recursive function call with loop.
27111 2008-01-23 Robert Millan <rmh@aybabtu.com>
27113 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
27114 `<grub/symbol.h>' and `<grub/multiboot.h>'.
27115 (grub_multiboot2_real_boot): New function prototype.
27117 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
27118 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
27120 * kern/i386/ieee1275/init.c (grub_os_area_addr)
27121 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
27123 2008-01-23 Robert Millan <rmh@aybabtu.com>
27125 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
27126 #ifdef'ed out grub_printf().
27128 2008-01-23 Robert Millan <rmh@aybabtu.com>
27130 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
27131 grub_dprintf calls, since they make "debug=all" mode unusable.
27132 (grub_console_checkkey): Likewise.
27134 2008-01-23 Robert Millan <rmh@aybabtu.com>
27136 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27137 `term/i386/pc/at_keyboard.c'.
27138 (pkglib_MODULES): Add `serial.mod'.
27139 (serial_mod_SOURCES): New variable.
27140 (serial_mod_CFLAGS): Likewise.
27141 (serial_mod_LDFLAGS): Likewise.
27143 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
27144 `<grub/powerpc/ieee1275/console.h>'.
27145 (grub_keyboard_controller_init): New function prototype.
27146 (grub_console_checkkey): Likewise.
27147 (grub_console_getkey): Likewise.
27149 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
27152 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
27153 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
27155 2008-01-23 Robert Millan <rmh@aybabtu.com>
27157 * kern/i386/pc/init.c (make_install_device): When memdisk image is
27158 present, "(memdisk)/boot/grub" becomes the default prefix.
27160 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
27161 a memdisk tarball with all the modules. Add --overlay=DIR option that
27162 allows users to overlay additional files into the image.
27164 2008-01-23 Robert Millan <rmh@aybabtu.com>
27166 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
27167 and `machine/memory.h'.
27168 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
27169 (_multiboot_mod_SOURCES): New variable.
27170 (_multiboot_mod_CFLAGS): Likewise.
27171 (_multiboot_mod_LDFLAGS): Likewise.
27172 (multiboot_mod_SOURCES): Likewise.
27173 (multiboot_mod_CFLAGS): Likewise.
27174 (multiboot_mod_LDFLAGS): Likewise.
27176 * include/grub/i386/ieee1275/loader.h: New file.
27178 * include/grub/i386/ieee1275/machine.h: Likewise.
27180 * include/grub/i386/ieee1275/memory.h: Likewise.
27182 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
27183 variable declaration.
27184 (grub_os_area_size): Likewise.
27186 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
27187 (grub_lower_mem, grub_upper_mem): New variables.
27188 (grub_stop_floppy): New function (just to make
27189 grub_multiboot2_real_boot() happy).
27191 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
27192 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
27193 (grub_stop): New function.
27194 Include `"../realmode.S"' and `"../loader.S"'.
27196 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
27197 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
27199 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
27200 rely on grub_multiboot2_real_boot() for final boot.
27202 2008-01-22 Robert Millan <rmh@aybabtu.com>
27204 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
27205 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
27206 device that doesn't look like an SD card.
27207 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27208 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
27209 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
27210 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
27213 2008-01-22 Robert Millan <rmh@aybabtu.com>
27215 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
27216 avoid claiming over our own code.
27218 2008-01-22 Bean <bean123ch@gmail.com>
27220 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
27221 (jpeg_mod_SOURCES): New variable.
27222 (jpeg_mod_CFLAGS): Likewise.
27223 (jpeg_mod_LDFLAGS): Likewise.
27225 * video/readers/jpeg.c : New file.
27227 2008-01-22 Bean <bean123ch@gmail.com>
27229 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
27230 there are no more items.
27232 2008-01-21 Robert Millan <rmh@aybabtu.com>
27234 * kern/mm.c (grub_mm_init_region): Improve debug message.
27236 2008-01-21 Robert Millan <rmh@aybabtu.com>
27238 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
27239 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
27241 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
27243 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
27244 Indicates start of upper memory.
27245 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
27246 (generate_image): Abort when image size is big enough to corrupt
27249 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
27250 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
27251 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27252 instead of hardcoding 0xA0000.
27253 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
27254 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27255 instead of hardcoding 0xA0000.
27257 2008-01-21 Robert Millan <rmh@aybabtu.com>
27259 * disk/memdisk.c (memdisk_size): New variable.
27260 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
27262 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
27263 image to dynamic memory.
27264 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
27265 `memdisk_size'. Free memdisk block.
27267 2008-01-21 Robert Millan <rmh@aybabtu.com>
27269 Fix detection of very small filesystems (like tar).
27271 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
27272 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
27273 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
27274 a problem with this disk).
27276 2008-01-21 Robert Millan <rmh@aybabtu.com>
27278 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
27279 on grub_biosdisk_rw_standard() error.
27281 2008-01-21 Robert Millan <rmh@aybabtu.com>
27283 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
27285 * kern/elf.c: Likewise.
27286 * kern/ieee1275/ieee1275.c: Likewise.
27287 * kern/powerpc/ieee1275/openfw.c: Likewise.
27288 * term/ieee1275/ofconsole.c: Likewise.
27290 2008-01-21 Robert Millan <rmh@aybabtu.com>
27292 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
27294 * include/grub/kernel.h (grub_arch_memdisk_addr)
27295 (grub_arch_memdisk_size): Moved from here ...
27297 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
27298 (grub_arch_memdisk_size): ... to here.
27300 2008-01-21 Robert Millan <rmh@aybabtu.com>
27302 Mostly based on bugfix from Bean.
27304 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
27305 attribute with hook() parameter.
27306 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
27308 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
27309 attribute with hook() parameter.
27310 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
27313 2008-01-21 Robert Millan <rmh@aybabtu.com>
27315 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
27316 (pkglib_MODULES): Add `memdisk.mod'.
27317 (memdisk_mod_SOURCES): New variable.
27318 (memdisk_mod_CFLAGS): Likewise.
27319 (memdisk_mod_LDFLAGS): Likewise.
27321 * disk/memdisk.c: New file.
27323 * include/grub/disk.h (grub_disk_dev_id): Add
27324 `GRUB_DISK_DEVICE_MEMDISK_ID'.
27326 * include/grub/i386/pc/kernel.h
27327 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
27328 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
27329 (grub_kernel_image_size): New variable declaration.
27330 (grub_total_module_size): Likewise.
27331 (grub_memdisk_image_size): Likewise.
27333 * include/grub/i386/pc/memory.h
27334 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
27336 * include/grub/kernel.h: Include `<grub/symbol.h>'.
27337 (grub_arch_memdisk_addr): New variable declaration.
27338 (grub_arch_memdisk_size): Likewise.
27340 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
27341 (grub_arch_memdisk_size): Likewise.
27343 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
27344 (codestart): Replace hardcoded `0x100000' with
27345 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
27347 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
27348 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
27349 not NULL, append the contents of the file it refers to, at the end of
27350 the compressed kernel image. Initialize `grub_memdisk_image_size'
27351 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
27352 (options): Add "memdisk"|'m' option.
27353 (main): Parse --memdisk|-m option, and pass user-provided path as
27354 parameter to generate_image().
27356 2008-01-20 Robert Millan <rmh@aybabtu.com>
27358 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
27359 grub_dprintf() calls from here ...
27360 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
27362 2008-01-20 Robert Millan <rmh@aybabtu.com>
27364 Fix detection of "real mode" when /options/real-mode? doesn't exist.
27366 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
27368 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
27369 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
27370 `GRUB_IEEE1275_FLAG_REAL_MODE'.
27371 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
27373 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
27374 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
27376 2008-01-19 Robert Millan <rmh@aybabtu.com>
27378 Get rid of confusing function (superseded by
27379 `grub_ieee1275_get_integer_property')
27380 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
27382 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
27384 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
27385 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
27386 in native endianness from grub_ieee1275_get_integer_property().
27388 2008-01-19 Robert Millan <rmh@aybabtu.com>
27390 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
27391 command after "shut-down", since implementations differ on which
27392 the command for halt is.
27394 2008-01-19 Robert Millan <rmh@aybabtu.com>
27396 * include/grub/i386/linuxbios/console.h: Add header protection.
27397 (grub_keyboard_controller_init): New function prototype.
27398 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
27399 (KEYBOARD_COMMAND_READ): Likewise.
27400 (KEYBOARD_COMMAND_WRITE): Likewise.
27401 (KEYBOARD_SCANCODE_SET1): Likewise.
27402 (grub_keyboard_controller_write): New function.
27403 (grub_keyboard_controller_read): Likewise.
27404 (grub_keyboard_controller_init): Likewise.
27406 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
27407 (grub_console_init): On coreboot/LinuxBIOS, call
27408 grub_keyboard_controller_init().
27410 2008-01-19 Robert Millan <rmh@aybabtu.com>
27412 PowerPC changes provided by Pavel Roskin.
27414 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
27415 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
27416 don't rely on cmain() doing it.
27417 * kern/i386/ieee1275/startup.S (_start): Store %eax in
27418 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
27420 2008-01-16 Robert Millan <rmh@aybabtu.com>
27422 * include/grub/i386/linuxbios/memory.h
27423 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
27424 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
27425 receive `table_header' as argument. Instead, probe for it in the
27426 known memory ranges where it can be present.
27427 (grub_available_iterate): Do not pass a fixed `table_header' address
27428 to grub_linuxbios_table_iterate().
27430 2008-01-15 Robert Millan <rmh@aybabtu.com>
27432 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
27433 * conf/i386-ieee1275.rmk: New file.
27434 * include/grub/i386/ieee1275/console.h: Likewise.
27435 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
27436 * include/grub/i386/ieee1275/kernel.h: Likewise.
27437 * include/grub/i386/ieee1275/time.h: Likewise.
27438 * kern/i386/ieee1275/init.c: Likewise.
27439 * kern/i386/ieee1275/startup.S: Likewise.
27441 2008-01-15 Robert Millan <rmh@aybabtu.com>
27443 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
27444 when pointers are 32-bit (but still do set it to one when they are
27447 2008-01-15 Robert Millan <rmh@aybabtu.com>
27449 * include/grub/ieee1275/ieee1275.h
27450 (grub_ieee1275_get_integer_property): New function prototype.
27452 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
27453 (grub_ieee1275_get_integer_property): New function. Wraps around
27454 grub_ieee1275_get_property() to handle endianness.
27456 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
27457 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
27459 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
27460 (grub_map): Likewise.
27461 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
27463 2008-01-15 Bean <bean123ch@gmail.com>
27465 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
27466 (grub_script_execute_cmdline): Reset grub_errno.
27468 * normal/main.c (read_config_file): Reset grub_errno.
27470 * normal/parse.y (script_init): New.
27471 (script): Move function and menuentry here.
27473 (command): Add delimiter at the end of command.
27474 (commands): Adjust to match the new command.
27475 (commandblock): Remove grub_script_lexer_record_start.
27476 (menuentry): Add grub_script_lexer_record_start, use the new commands.
27477 (if): Use the new commands.
27479 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
27481 2008-01-15 Robert Millan <rmh@aybabtu.com>
27483 * normal/menu.c (run_menu): Move timeout message from here ...
27484 (print_timeout): ... to here.
27485 (run_menu): Use print_timeout() once during initial draw to print
27486 the whole message, and again in every clock tick to update only
27487 the number of seconds.
27489 2008-01-15 Robert Millan <rmh@aybabtu.com>
27491 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
27492 actual size of `available' from grub_ieee1275_get_property(), and
27493 restrict parsing to that bound.
27495 2008-01-15 Christian Franke <franke@computer.org>
27497 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
27498 (argp_program_version): Remove variable.
27499 (argp_program_bug_address): Likewise.
27500 (options): Convert from struct argp_option to struct option.
27501 (struct arguments): Remove.
27502 (parse_opt): Remove.
27503 (usage): New function.
27504 (main): Replace struct args members by simple variables.
27505 Replace argp_parse() by getopt_long().
27506 Add switch to evaluate options.
27507 Add missing "(...)" around root_dev in prefix string.
27509 2008-01-14 Robert Millan <rmh@aybabtu.com>
27511 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
27512 for grub_ieee1275_exit(), in order to improve portability.
27514 2008-01-14 Robert Millan <rmh@aybabtu.com>
27516 * util/grub.d/10_linux.in (prefix): Define.
27517 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
27519 2008-01-13 Pavel Roskin <proski@gnu.org>
27521 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
27522 grub_errno if no errors have been detected.
27524 2008-01-12 Robert Millan <rmh@aybabtu.com>
27526 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
27527 (grub_util_get_dev_abstraction): New function prototype.
27529 * util/getroot.c: Include `<grub/util/getroot.h>'
27530 (grub_util_get_grub_dev): Move detection of abstraction type to ...
27531 (grub_util_get_dev_abstraction): ... here (new function).
27533 * util/grub-probe.c: Convert PRINT_* to an enum. Add
27534 `PRINT_ABSTRACTION'.
27535 (probe): Probe for abstraction type when requested.
27536 (main): Understand `--target=abstraction'.
27538 * util/i386/efi/grub-install.in: Add abstraction module to core
27539 image when it is found to be necessary.
27540 * util/i386/pc/grub-install.in: Likewise.
27541 * util/powerpc/ieee1275/grub-install.in: Likewise.
27543 * util/update-grub_lib.in (font_path): Return system path without
27544 converting to GRUB path.
27545 * util/update-grub.in: Convert system path returned by font_path()
27546 to a GRUB path. Use `grub-probe -t abstraction' to determine what
27547 abstraction module is needed for loading fonts (if any). Export
27548 that as `GRUB_PRELOAD_MODULES'.
27549 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
27552 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
27554 Remove some unused code from reiserfs.
27556 * fs/reiserfs.c (struct grub_reiserfs_key)
27557 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
27558 (struct grub_reiserfs_node_body): Removed.
27559 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27561 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27563 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27565 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27567 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27569 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
27571 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27572 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27573 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27575 2008-01-10 Robert Millan <rmh@aybabtu.com>
27577 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
27578 Determines if a file is garbage left by packaging systems, etc.
27579 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
27580 for processing /etc/grub.d scripts.
27581 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
27582 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
27583 as a condition for processing Linux images.
27585 2008-01-10 Pavel Roskin <proski@gnu.org>
27587 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
27588 to compile reiserfs.c on PowerPC.
27590 2008-01-10 Robert Millan <rmh@aybabtu.com>
27592 * kern/device.c (grub_device_iterate): Do not abort device iteration
27593 when one of the devices cannot be opened.
27594 * kern/disk.c (grub_disk_open): Do not account previous failures of
27595 unrelated functions when grub_errno is checked for.
27597 2008-01-08 Robert Millan <rmh@aybabtu.com>
27599 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
27600 `! grub_linux_is_bzimage', change order of address comparison to make
27601 it more intuitive, and improve "too big zImage" error message.
27603 2008-01-08 Robert Millan <rmh@aybabtu.com>
27605 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
27606 `$(update-grub_DATA)'.
27607 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
27610 2008-01-07 Robert Millan <rmh@aybabtu.com>
27612 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
27613 which instruction is modified by grub-setup during installation
27614 (since it wasn't obvious by only looking at this file).
27616 2008-01-07 Robert Millan <rmh@aybabtu.com>
27618 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
27619 listing actual TODO items.
27621 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27623 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
27625 (grub_reiserfs_get_key_offset): Likewise.
27626 (grub_reiserfs_set_key_offset): Likewise.
27627 (grub_reiserfs_set_key_type): Likewise.
27628 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
27630 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
27631 better to remove the bitfield version completely.
27633 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27635 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
27636 allocated from the heap, due to the fshelp implementation.
27637 (grub_reiserfs_dir): Free NODE, due to the same reason.
27639 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27641 Mostly from Vincent Pelletier:
27643 * fs/reiserfs.c: New file.
27645 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
27646 (reiserfs_mod_SOURCES): New variable.
27647 (reiserfs_mod_CFLAGS): Likewise.
27648 (reiserfs_mod_LDFLAGS): Likewise.
27650 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
27651 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
27652 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
27655 2008-01-06 Robert Millan <rmh@aybabtu.com>
27657 * normal/color.c: Remove `<grub/env.h>'.
27659 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
27661 * include/grub/normal.h: Include <grub/env.h>.
27663 2008-01-05 Robert Millan <rmh@aybabtu.com>
27665 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
27666 usage example with `(hd0,1)'.
27667 Reported by Samuel Thibault.
27669 2008-01-05 Robert Millan <rmh@aybabtu.com>
27671 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
27672 (grub_linux_boot_zimage): Rename to ...
27673 (grub_linux_boot): ... this.
27674 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
27675 (grub_linux_boot_zimage): Conditionalize zImage copy.
27677 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
27678 (grub_linux_boot_bzimage): Remove prototype.
27679 (grub_linux_boot_zimage): Rename to ...
27680 (grub_linux_boot): ... this.
27682 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
27683 (grub_linux_boot): Remove function.
27685 2008-01-05 Robert Millan <rmh@aybabtu.com>
27687 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
27688 (grub_env_write_color_highlight): Likewise.
27689 (grub_wait_after_message): Likewise.
27691 * normal/color.c: New file.
27693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27694 (normal_mod_DEPENDENCIES): Likewise.
27696 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27697 (normal_mod_DEPENDENCIES): Likewise.
27699 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27700 (normal_mod_DEPENDENCIES): Likewise.
27702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27703 (normal_mod_DEPENDENCIES): Likewise.
27705 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
27706 for waiting after a message is printed.
27707 * normal/main.c (read_config_file): Likewise.
27708 (grub_normal_init): Register grub_env_write_color_normal() and
27709 grub_env_write_color_highlight() hooks. Mark `color_normal' and
27710 `color_highlight' variables as global.
27712 * normal/menu.c (grub_wait_after_message): New function.
27713 (grub_color_menu_normal): New variable. Replaces ...
27714 (GRUB_COLOR_MENU_NORMAL): ... this macro.
27715 (grub_color_menu_highlight): New variable. Replaces ...
27716 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
27717 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
27718 `GRUB_TERM_COLOR_STANDARD'.
27719 (print_message): Use `grub_setcolorstate' to reload colors. Rename
27720 `normal_code' and `highlight_code' to `old_color_normal' and
27721 `old_color_highlight', respectively.
27722 (grub_menu_init_page): Update colors when drawing the menu, based on
27723 `menu_color_normal' and `menu_color_highlight' variables.
27724 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
27725 a message is printed.
27727 2008-01-05 Robert Millan <rmh@aybabtu.com>
27729 * kern/env.c (grub_env_context_open): Propagate hooks for global
27730 variables to new context.
27732 * kern/main.c (grub_set_root_dev): Export `root' variable.
27734 2008-01-05 Robert Millan <rmh@aybabtu.com>
27736 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
27737 discs unconditionally, since udev and others have options to provide
27740 2008-01-05 Robert Millan <rmh@aybabtu.com>
27742 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
27744 2008-01-04 Christian Franke <franke@computer.org>
27746 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
27749 2008-01-03 Pavel Roskin <proski@gnu.org>
27751 * kern/i386/linuxbios/init.c: Put "void" to all function
27752 declarations with no arguments.
27753 * kern/powerpc/ieee1275/init.c: Likewise.
27754 * term/i386/pc/at_keyboard.c: Likewise.
27755 * term/i386/pc/vga_text.c: Likewise.
27756 * util/grub-mkdevicemap.c: Likewise.
27758 2008-01-02 Robert Millan <rmh@aybabtu.com>
27760 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
27761 message when loaded image is out of bounds.
27762 (grub_multiboot_load_elf64): Likewise.
27764 2008-01-02 Pavel Roskin <proski@gnu.org>
27766 * util/grub.d/10_linux.in: Try version without ".old" when
27767 looking for initrd. It's better to use initrd from the newer
27768 kernel of the same version than no initrd at all.
27770 2008-01-01 Robert Millan <rmh@aybabtu.com>
27772 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
27774 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
27776 * include/grub/video.h: Added grub_video_unmap_color and
27777 grub_video_get_active_render_target.
27778 (grub_video_adapter): Added unmap_color and get_active_render_target.
27780 * video/video.c: Added grub_video_unmap_color and
27781 grub_video_get_active_render_target.
27782 (grub_video_get_info): Changed method to accept NULL pointer as an
27783 argument to allow detection of active video adapter.
27785 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
27786 grub_video_vbe_unmap_color_int.
27787 Added grub_video_vbe_unmap_color and
27788 grub_video_vbe_get_active_render_target.
27789 (grub_video_vbe_adapter): Added unmap_color and
27790 get_active_render_target.
27792 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
27793 with grub_video_vbe_unmap_color_int.
27795 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
27796 (DEFAULT_NORMAL_COLOR): Likewise.
27797 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
27798 (DEFAULT_FG_COLOR): Removed.
27799 (DEFAULT_BG_COLOR): Likewise.
27800 (DEFAULT_CURSOR_COLOR): Changed value.
27801 (grub_virtual_screen): Added standard_color_setting,
27802 normal_color_setting, highlight_color_setting and term_color.
27803 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
27804 (bitmap_width): Added.
27805 (bitmap_height): Likewise.
27806 (bitmap): Likewise.
27807 (set_term_color): Likewise.
27808 (grub_virtual_screen_setup): Changed to use new terminal coloring
27810 (grub_gfxterm_init): Added init for bitmap.
27811 (grub_gfxterm_fini): Added destroy for bitmap.
27812 (redraw_screen_rect): Updated to use background bitmap and new
27814 (scroll_up): Added optimization for case when there is no bitmap.
27815 (grub_gfxterm_cls): Fixed to use correct background color.
27816 (grub_virtual_screen_setcolorstate): Changed to use new terminal
27818 (grub_virtual_screen_setcolor): Likewise.
27819 (grub_virtual_screen_getcolor): Added.
27820 (grub_gfxterm_background_image_cmd): Likewise.
27821 (grub_video_term): Added setcolor and getcolor.
27822 (MOD_INIT): Added registration of background_image command.
27823 (MOD_TERM): Added unregistration for background_image command.
27825 2007-12-30 Pavel Roskin <proski@gnu.org>
27827 * loader/multiboot_loader.c: Fix multiboot command
27828 unregistration. Fix all typos in the word "multiboot".
27830 2007-12-29 Pavel Roskin <proski@gnu.org>
27832 * util/grub.d/10_linux.in: Refactor search for initrd. Add
27833 support for initrd names used in Fedora.
27835 2007-12-26 Bean <bean123ch@gmail.com>
27837 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
27838 (cpio_mod_SOURCES): New variable.
27839 (cpio_mod_CFLAGS): Likewise.
27840 (cpio_mod_LDFLAGS): Likewise.
27842 * fs/cpio.c: New file.
27844 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
27846 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27848 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27852 2007-12-25 Robert Millan <rmh@aybabtu.com>
27854 * include/grub/term.h (struct grub_term): Add `getcolor' function.
27855 (grub_getcolor): New function.
27857 * kern/term.c (grub_getcolor): New function.
27858 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
27859 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
27860 (print_entry): Set normal and highlight colors to
27861 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
27862 respectively, before printing and restore them to old
27864 (grub_menu_init_page): Likewise. Fill an additional colored space
27865 that would otherwise be left blank.
27867 * term/efi/console.c (grub_console_getcolor): New function.
27868 (struct grub_console_term.getcolor): New variable.
27869 * term/i386/pc/console.c (grub_console_getcolor): New function.
27870 (struct grub_console_term.getcolor): New variable.
27871 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
27872 (struct grub_console_term.getcolor): New variable.
27874 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
27875 (struct grub_console_term.setcolor): Remove variable.
27876 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
27877 (struct grub_console_term.setcolor): Remove variable.
27878 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
27879 (struct grub_console_term.setcolor): Remove variable.
27880 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
27881 (struct grub_console_term.setcolor): Remove variable.
27883 2007-12-25 Robert Millan <rmh@aybabtu.com>
27885 * configure.ac: Search for possible unifont.hex locations, and
27886 define UNIFONT_HEX if found.
27888 * Makefile.in (UNIFONT_HEX): Define variable.
27889 (DATA): Rename to ...
27890 (PKGLIB): ... this. Update all users.
27891 (PKGDATA): New variable.
27892 (pkgdata_IMAGES): Rename to ...
27893 (pkglib_IMAGES): ... this. Update all users.
27894 (pkgdata_MODULES): Rename to ...
27895 (pkglib_MODULES): ... this. Update all users.
27896 (pkgdata_PROGRAMS): Rename to ...
27897 (pkglib_PROGRAMS): ... this. Update all users.
27898 (pkgdata_DATA): Rename to ...
27899 (pkglib_DATA): ... this. Update all users.
27900 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
27901 (unicode.pff, ascii.pff): New rules.
27902 (all-local): Add `$(PKGDATA)' dependency.
27903 (install-local): Process `$(PKGDATA)'.
27905 * util/update-grub_lib.in (font_path): Search for *.pff files in
27906 a few more locations, including `${pkgdata}'.
27908 2007-12-23 Robert Millan <rmh@aybabtu.com>
27910 Patch from Bean <bean123ch@gmail.com>:
27911 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
27914 2007-12-21 Bean <bean123ch@gmail.com>
27916 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
27917 (ntfscomp_mod_SOURCES): New variable.
27918 (ntfscomp_mod_CFLAGS): Likewise.
27919 (ntfscomp_mod_LDFLAGS): Likewise.
27921 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
27922 (grub_probe_SOURCES): Likewise.
27923 (grub_emu_SOURCES): Likewise.
27925 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
27926 (grub_emu_SOURCES): Likewise.
27928 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
27929 (grub_emu_SOURCES): Likewise.
27931 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
27932 (grub_emu_SOURCES): Likewise.
27934 * fs/ntfs.c (grub_ntfscomp_func): New variable.
27935 (read_run_list): Renamed to grub_ntfs_read_run_list.
27936 (decomp_nextvcn): Moved to ntfscomp.c.
27937 (decomp_getch): Likewise.
27938 (decomp_get16): Likewise.
27939 (decomp_block): Likewise.
27940 (read_block): Likewise.
27941 (read_data): Partially moved to ntfscomp.c.
27942 (fixup): Change unsigned to grub_uint16_t.
27943 (read_mft): Change unsigned long to grub_uint32_t.
27944 (read_attr): Likewise.
27945 (read_data): Likewise.
27946 (read_run_data): Likewise.
27947 (read_run_list): Likewise.
27948 (read_mft): Likewise.
27950 * fs/ntfscomp.c: New file.
27952 * include/grub/ntfs.h: New file.
27954 2007-12-16 Robert Millan <rmh@aybabtu.com>
27956 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
27957 IDE disk check, since Linux is known to support 20 IDE disks.
27958 Reported by Colin Watson.
27960 2007-12-15 Bean <bean123ch@gmail.com>
27962 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
27963 (lnxboot_img_SOURCES): New variable.
27964 (lnxboot_img_ASFLAGS): Likewise.
27965 (lnxboot_img_LDFLAGS): Likewise.
27967 * boot/i386/pc/lnxboot.S: New file.
27969 2007-11-24 Pavel Roskin <proski@gnu.org>
27971 * configure.ac: Test if '--build-id=none' is supported by the
27972 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
27973 objcopy to generate incorrect binary files (binutils
27974 2.17.50.0.18-1 as shipped by Fedora 8).
27975 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
27976 linking, so that build ID doesn't break the test.
27978 2007-11-24 Pavel Roskin <proski@gnu.org>
27980 * include/grub/i386/time.h: use "void" in the argument list
27981 of grub_cpu_idle().
27982 * include/grub/powerpc/time.h: Likewise.
27983 * include/grub/sparc64/time.h: Likewise.
27985 2007-11-18 Christian Franke <franke@computer.org>
27987 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
27988 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
27989 This fixes the problem that function keys did not work in grub-emu.
27991 2007-11-18 Christian Franke <franke@computer.org>
27993 * disk/host.c (grub_host_open): Remove attribute unused from
27994 name parameter. Add check for "host". This fixes the problem
27995 that grub-emu does not find partitions.
27997 2007-11-18 Christian Franke <franke@computer.org>
27999 * util/hostfs.c (is_dir): New function.
28000 (grub_hostfs_dir): Handle missing dirent.d_type case.
28001 (grub_hostfs_read): Add missing fseek().
28002 (grub_hostfs_label): Clear label pointer. This fixes a crash
28003 of grub-emu on "ls (host)".
28005 2007-11-18 Christian Franke <franke@computer.org>
28007 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
28008 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
28009 to 64 bit boundary by default.
28011 2007-11-18 Bean <bean123ch@gmail.com>
28013 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
28014 (hexdump_mod_SOURCES): New variable.
28015 (hexdump_mod_CFLAGS): Likewise.
28016 (hexdump_mod_LDFLAGS): Likewise.
28018 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28020 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28022 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28026 * include/grub/hexdump.h: New file.
28028 * commands/hexdump.c: New file.
28030 2007-11-10 Robert Millan <rmh@aybabtu.com>
28032 * commands/i386/pc/play.c (beep_off): Switch order of arguments
28033 in grub_outb() calls.
28034 (beep_on): Likewise.
28036 2007-11-10 Christian Franke <franke@computer.org>
28038 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
28039 (grub_menu_run): Likewise.
28041 2007-11-10 Robert Millan <rmh@aybabtu.com>
28043 * include/grub/i386/efi/machine.h: New file.
28044 * include/grub/i386/linuxbios/machine.h: Likewise.
28045 * include/grub/i386/pc/machine.h: Likewise.
28046 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28047 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28049 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
28050 (serial_hw_io_addr): New variable.
28051 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
28052 instead of `(unsigned short *) 0x400'.
28054 2007-11-10 Bean <bean123ch@gmail.com>
28056 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
28058 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28060 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
28061 (vga_mod_SOURCES): Added.
28062 (vga_mod_CFLAGS): Likewise.
28063 (vga_mod_LDFLAGS): Likewise.
28065 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
28067 (set_map_mask): Likewise.
28068 (set_read_map): Likewise.
28069 (set_read_address): Likewise.
28070 (vga_font): Removed variable.
28071 (get_vga_glyph): Removed function.
28072 (invalidate_char): Likewise.
28073 (write_char): Changed to use grub_font_get_glyph() for font
28075 (grub_vga_putchar): Likewise.
28076 (grub_vga_getcharwidth): Likewise.
28078 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28080 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
28082 (pxeboot_img_LDFLAGS): Likewise.
28083 (diskboot_img_LDFLAGS): Likewise.
28084 (kernel_img_LDFLAGS): Likewise.
28086 2007-11-06 Robert Millan <rmh@aybabtu.com>
28088 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
28089 in grub_outb() calls.
28090 (serial_hw_init): Likewise.
28092 2007-11-05 Robert Millan <rmh@aybabtu.com>
28094 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
28095 spaces. Skip non-regular files.
28097 2007-11-05 Robert Millan <rmh@aybabtu.com>
28099 * kern/disk.c (grub_disk_firmware_fini)
28100 (grub_disk_firmware_is_tainted): New variables.
28102 * include/grub/disk.h (grub_disk_firmware_fini)
28103 (grub_disk_firmware_is_tainted): Likewise.
28105 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
28106 (grub_disk_biosdisk_fini): ... to here.
28107 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
28108 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
28109 is set. Register grub_disk_biosdisk_fini() in
28110 `grub_disk_firmware_fini'.
28112 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
28113 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
28114 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
28115 to finish existing firmware disk interface.
28117 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
28118 (ata_mod_SOURCES): New variable.
28119 (ata_mod_CFLAGS): Likewise.
28120 (ata_mod_LDFLAGS): Likewise.
28122 2007-11-05 Robert Millan <rmh@aybabtu.com>
28124 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
28125 (grub_ata_wait): Reimplement using grub_millisleep().
28127 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
28128 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
28130 2007-11-03 Marco Gerards <marco@gnu.org>
28132 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
28133 (CRTC_ADDR_PORT): New macro.
28134 (CRTC_DATA_PORT): Likewise.
28135 (CRTC_CURSOR): Likewise.
28136 (CRTC_CURSOR_ADDR_HIGH): Likewise.
28137 (CRTC_CURSOR_ADDR_LOW): Likewise.
28138 (update_cursor): New function.
28139 (grub_console_real_putchar): Call `update_cursor'.
28140 (grub_console_gotoxy): Likewise.
28141 (grub_console_cls): Set the default color when clearing the
28143 (grub_console_setcursor): Implemented.
28145 2007-11-03 Marco Gerards <marco@gnu.org>
28147 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
28149 (grub_ata_pio_write): Likewise.
28151 (grub_atapi_identify): Wait after issuing an ATA command.
28152 (grub_atapi_packet): Likewise.
28153 (grub_ata_identify): Likewise.
28154 (grub_ata_readwrite): Likewise.
28156 2007-11-03 Marco Gerards <marco@gnu.org>
28158 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
28159 (grub_ata_pio_write): Likewise.
28160 (grub_ata_readwrite): Use `grub_error', instead of
28161 returning `grub_errno'.
28163 2007-11-03 Marco Gerards <marco@gnu.org>
28165 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
28166 grub_ata_pio_write once for every single sector, instead of for
28169 2007-10-31 Robert Millan <rmh@aybabtu.com>
28171 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
28173 * conf/i386-linuxbios.rmk: New file.
28175 * kern/i386/pc/hardware.c: Likewise.
28176 * term/i386/pc/at_keyboard.c: Likewise.
28177 * term/i386/pc/vga_text.c: Likewise.
28179 * include/grub/i386/linuxbios/boot.h: Likewise.
28180 * include/grub/i386/linuxbios/console.h: Likewise.
28181 * include/grub/i386/linuxbios/init.h: Likewise.
28182 * include/grub/i386/linuxbios/kernel.h: Likewise.
28183 * include/grub/i386/linuxbios/loader.h: Likewise.
28184 * include/grub/i386/linuxbios/memory.h: Likewise.
28185 * include/grub/i386/linuxbios/serial.h: Likewise.
28186 * include/grub/i386/linuxbios/time.h: Likewise.
28188 * kern/i386/linuxbios/init.c: Likewise.
28189 * kern/i386/linuxbios/startup.S: Likewise.
28190 * kern/i386/linuxbios/table.c: Likewise.
28192 2007-10-31 Marco Gerards <marco@gnu.org>
28194 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
28195 (ata_mod_SOURCES): New variable.
28196 (ata_mod_CFLAGS): Likewise.
28197 (ata_mod_LDFLAGS): Likewise.
28199 * disk/ata.c: New file.
28201 * include/grub/disk.h (grub_disk_dev_id): Add
28202 `GRUB_DISK_DEV_ATA_ID'.
28204 2007-10-31 Robert Millan <rmh@aybabtu.com>
28206 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
28207 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
28209 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
28210 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
28212 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
28215 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
28217 2007-10-27 Robert Millan <rmh@aybabtu.com>
28219 * include/grub/types.h (ULONG_MAX): Define macro.
28221 2007-10-22 Robert Millan <rmh@aybabtu.com>
28223 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
28225 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
28227 2007-10-22 Robert Millan <rmh@aybabtu.com>
28229 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
28230 (pkgdata_MODULES): Add `biosdisk.mod'.
28231 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
28234 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
28235 (grub_biosdisk_init): Replace with ...
28236 (GRUB_MOD_INIT(biosdisk)): ... this.
28237 (grub_biosdisk_fini): Replace with ...
28238 (GRUB_MOD_FINI(biosdisk)): ... this.
28240 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
28241 (grub_machine_init): Remove call to grub_biosdisk_init().
28242 (grub_machine_fini): Remove call to grub_machine_fini().
28244 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
28246 2007-10-22 Robert Millan <rmh@aybabtu.com>
28248 * include/grub/time.h: New file.
28249 * include/grub/i386/time.h: Likewise.
28250 * include/grub/powerpc/time.h: Likewise.
28251 * include/grub/sparc64/time.h: Likewise.
28253 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
28255 (KERNEL_MACHINE_TIME_HEADER): ... this.
28256 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28258 (KERNEL_MACHINE_TIME_HEADER): ... this.
28259 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28261 (KERNEL_MACHINE_TIME_HEADER): ... this.
28263 * kern/i386/efi/init.c: Include `<grub/time.h>'.
28264 (grub_millisleep): New function.
28265 * kern/i386/pc/init.c: Include `<grub/time.h>'.
28266 (grub_millisleep): New function.
28267 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
28268 Remove `grub/machine/time.h' include.
28269 (grub_millisleep): New function.
28270 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
28271 Remove `grub/machine/time.h' include.
28272 (grub_millisleep): New function.
28274 * include/grub/misc.h (grub_div_roundup): New function.
28276 * kern/misc.c: Include `<grub/time.h>'.
28277 (grub_millisleep_generic): New function.
28279 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
28281 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
28283 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
28284 `machine/time.h'. Add `time.h'.
28285 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28287 2007-10-21 Robert Millan <rmh@aybabtu.com>
28289 * include/grub/misc.h (grub_max): New function.
28291 2007-10-21 Robert Millan <rmh@aybabtu.com>
28293 * util/misc.c (grub_util_info): Call fflush() before returning.
28295 2007-10-20 Robert Millan <rmh@aybabtu.com>
28297 * genmk.rb (Image): Copy `extra_flags' from here ...
28298 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
28300 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
28301 to `argc' and `args' arguments.
28303 2007-10-17 Robert Millan <rmh@aybabtu.com>
28305 * kern/i386/loader.S: New file.
28307 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
28308 * kern/i386/loader.S (grub_linux_prot_size)... to here.
28309 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
28310 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
28311 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
28312 * kern/i386/loader.S (grub_linux_real_addr)... to here.
28313 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
28314 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
28315 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
28316 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
28317 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
28318 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
28319 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
28320 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
28322 * kern/i386/realmode.S: New file.
28324 * kern/i386/pc/startup.S (protstack): Moved from here ...
28325 * kern/i386/realmode.S (protstack)... to here.
28326 * kern/i386/pc/startup.S (gdt): Moved from here ...
28327 * kern/i386/realmode.S (gdt)... to here.
28328 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
28329 * kern/i386/realmode.S (prot_to_real)... to here.
28331 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
28332 `kern/i386/realmode.S'.
28334 2007-10-17 Robert Millan <rmh@aybabtu.com>
28336 * include/grub/i386/loader.h: New file.
28338 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
28339 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28340 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28341 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28342 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
28343 * include/grub/i386/loader.h (grub_linux_prot_size)
28344 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28345 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28346 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28347 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
28349 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
28351 2007-10-15 Robert Millan <rmh@aybabtu.com>
28353 * normal/misc.c (grub_normal_print_device_info): Do not probe for
28354 filesystem when dev->disk is unset.
28355 Do probe for filesystem even when dev->disk->has_partitions is set.
28356 In case a filesystem is found, always report it.
28357 In case it isn't, if dev->disk->has_partitions is set, report that
28358 a partition table was found instead of reporting that no filesystem
28359 could be identified.
28361 2007-10-12 Robert Millan <rmh@aybabtu.com>
28363 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
28364 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
28366 * include/grub/types.h (grub_host_to_target16): New macro.
28367 (grub_host_to_target32): Likewise.
28368 (grub_host_to_target64): Likewise.
28369 (grub_target_to_host16): Likewise.
28370 (grub_target_to_host32): Likewise.
28371 (grub_target_to_host64): Likewise.
28373 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
28374 Renamed from to ...
28375 (GRUB_MOD_ALIGN): ...this. Update all users.
28377 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
28378 grub_host_to_target32.
28379 Replace grub_be_to_cpu32 with grub_target_to_host32.
28380 (load_modules): Likewise.
28381 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
28382 Replace grub_be_to_cpu32 with grub_target_to_host32.
28383 Replace grub_cpu_to_be16 with grub_host_to_target16.
28384 Replace grub_cpu_to_be32 grub_host_to_target32.
28386 2007-10-12 Robert Millan <rmh@aybabtu.com>
28388 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
28389 * util/elf/grub-mkimage.c: ... here.
28391 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
28392 `util/powerpc/ieee1275/grub-mkimage.c'.
28394 2007-10-07 Robert Millan <rmh@aybabtu.com>
28396 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
28397 and make it easier to figure out.
28398 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
28399 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
28400 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
28401 leave us with less than HEAP_MIN_SIZE total heap.
28402 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
28404 2007-10-03 Robert Millan <rmh@aybabtu.com>
28406 * include/grub/i386/io.h: New file.
28407 * commands/i386/pc/play.c (inb): Removed.
28409 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28411 * term/i386/pc/serial.c (inb): Removed.
28413 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28415 * term/i386/pc/vga.c (inb): Removed.
28417 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28420 2007-10-02 Robert Millan <rmh@aybabtu.com>
28422 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
28423 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28424 Reported by Marcin Kurek.
28426 2007-09-07 Robert Millan <rmh@aybabtu.com>
28428 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
28429 SmartFirmware version updates (as released by Sven Luther), and avoid
28430 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
28431 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
28434 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28436 From Hitoshi Ozeki:
28437 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
28438 when merging two regions.
28440 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28442 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
28443 * normal/completion.c (grub_normal_do_completion): Likewise.
28444 Reported by Hitoshi Ozeki.
28446 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28448 Do not use devices at boot in chainloading.
28450 * loader/i386/pc/chainloader.c (boot_drive): New variable.
28451 (boot_part_addr): Likewise.
28452 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
28453 with BOOT_DRIVE and BOOT_PART_ADDR.
28454 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
28455 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
28457 2007-08-29 Robert Millan <rmh@aybabtu.com>
28459 Patch from Simon Peter <dn.tlp@gmx.net>:
28460 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
28461 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
28462 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
28463 util/i386/pc/grub-setup.c_DEPENDENCIES.
28464 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
28465 util/grub-probe.c_DEPENDENCIES.
28466 * conf/powerpc-ieee1275.rmk: Likewise.
28468 2007-08-28 Robert Millan <rmh@aybabtu.com>
28470 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
28471 to tell grub-mkdevicemap how to name devices.
28472 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
28475 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
28476 util/i386/get_disk_name.c.
28477 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
28478 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
28479 util/ieee1275/get_disk_name.c.
28481 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
28483 * DISTLIST: Add util/i386/get_disk_name.c and
28484 util/ieee1275/get_disk_name.c.
28486 * util/grub-mkdevicemap.c: Replace device naming logic with
28487 grub_util_get_disk_name() calls.
28489 2007-08-20 Robert Millan <rmh@aybabtu.com>
28491 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
28492 (so that it works for both plural and singular quantities).
28494 2007-08-05 Robert Millan <rmh@aybabtu.com>
28496 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
28497 so that [xz] isn't taken into account when determining order.
28499 2007-08-02 Marco Gerards <marco@gnu.org>
28501 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
28502 `include/multiboot2.h', `include/grub/elfload.h',
28503 `include/multiboot.h', `include/grub/multiboot.h',
28504 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
28505 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
28506 `kern/elf.c', `loader/multiboot_loader.c',
28507 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
28508 `loader/i386/pc/multiboot2.c',
28509 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
28510 `util/i386/pc/grub-mkrescue.in'. Remove
28511 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
28512 `include/grub/i386/pc/util/biosdisk.h' and
28513 `include/grub/powerpc/ieee1275/multiboot.h'.
28515 2007-08-02 Bean <bean123ch@gmail.com>
28517 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
28518 (ntfs_mod_SOURCES): New variable.
28519 (ntfs_mod_CFLAGS): Likewise.
28520 (ntfs_mod_LDFLAGS): Likewise.
28522 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
28523 (grub_probe_SOURCES): Likewise.
28524 (grub_emu_SOURCES): Likewise.
28526 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28527 (grub_emu_SOURCES): Likewise.
28529 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28530 (grub_emu_SOURCES): Likewise.
28532 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
28534 * fs/ntfs.c: New file.
28536 2007-08-02 Bean <bean123ch@gmail.com>
28538 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
28540 * file.h (grub_file): Likewise.
28542 * fshelp.h (grub_fshelp_read_file): Likewise.
28544 * util/i386/pc/grub-setup.c (setup): Likewise.
28545 (save_first_sector): Likewise.
28546 (save_blocklists): Likewise.
28548 * fs/affs.c (grub_affs_read_file): Likewise.
28550 * fs/ext2.c (grub_ext2_read_file): Likewise.
28552 * fs/fat.c (grub_fat_read_data): Likewise.
28554 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
28556 * fs/hfs.c (grub_hfs_read_file): Likewise.
28558 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
28560 * fs/jfs.c (grub_jfs_read_file): Likewise.
28562 * fs/minix.c (grub_minix_read_file): Likewise.
28564 * fs/sfs.c (grub_sfs_read_file): Likewise.
28566 * fs/ufs.c (grub_ufs_read_file): Likewise.
28568 * fs/xfs.c (grub_xfs_read_file): Likewise.
28570 * command/blocklist.c (read_blocklist): Likewise.
28571 (print_blocklist): Likewise.
28573 2007-08-02 Marco Gerards <marco@gnu.org>
28575 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
28578 * disk/host.c: New file.
28580 * util/hostfs.c: Likewise.
28582 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
28583 return `GRUB_ERR_BAD_FS'.
28584 * fs/sfs.c (grub_sfs_mount): Likewise.
28585 * fs/xfs.c (grub_xfs_mount): Likewise.
28587 * include/grub/disk.h (enum grub_disk_dev_id): Add
28588 `GRUB_DISK_DEVICE_HOST_ID'.
28590 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
28592 2007-07-24 Jerone Young <jerone@gmail.com>
28594 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
28595 modules for compilation.
28596 * conf/powerpc-ieee1275.rmk: Likewise.
28598 * include/multiboot.h: Move multiboot definitions to one file. Rename
28599 many definitions to not get grub specific.
28600 * include/multiboot2.h: Create header with multiboot 2 definitions.
28601 * include/grub/multiboot.h: Header for grub specific function
28602 prototypes and definitions.
28603 * include/grub/multiboot2.h: Likewise.
28604 * include/grub/multiboot_loader.h: Likewise.
28605 * include/grub/i386/pc/multiboot.h: Removed.
28606 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
28608 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
28609 and 2 to allow for one multiboot and module commands.
28610 * loader/multiboot2.c: Add multiboot2 functionality.
28611 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
28612 and definition names.
28613 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
28615 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
28616 ieee1275 specific multiboot2 code.
28618 * kern/i386/pc/startup.S: Change headers and definition names for
28619 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
28621 2007-07-22 Robert Millan <rmh@aybabtu.com>
28623 * geninitheader.sh: Process file specified in first parameter rather
28624 than hardcoding grub_modules_init.lst.
28625 * geninit.sh: Likewise. Also, construct header name dynamically rather
28626 than hardcoding grub_modules_init.h.
28628 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
28629 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
28630 grub_probe_init.[ch] and grub_setup_init.[ch].
28632 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
28633 grub_modules_init.h with grub_emu_init.h.
28634 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
28635 grub_probe_init.[ch] files.
28636 * conf/i386-efi.rmk: Likewise.
28637 * conf/i386-pc.rmk: Likewise.
28638 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
28639 grub_setup_init.[ch] files.
28641 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
28642 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
28643 to initialize modules rather than a list of hardcoded functions.
28644 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
28645 grub_init_all() to initialize modules rather than a list of hardcoded
28648 2007-07-22 Robert Millan <rmh@aybabtu.com>
28650 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28651 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
28653 2007-07-22 Robert Millan <rmh@aybabtu.com>
28655 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
28656 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
28657 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
28658 flag when running on SmartFirmware.
28659 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
28660 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
28663 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
28664 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
28665 rather than decreasing it.
28667 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
28668 there's not enough space to do it, fail in the same way as when it
28669 can't be done because there are no partitions.
28671 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
28672 when nvsetenv failed.
28674 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28676 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
28677 because this rule is automatically generated.
28678 (grub-mkrescue): Removed for the same reason as above.
28680 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28682 Migrate to GNU General Public License Version 3.
28684 * COPYING: Replaced with the plain text version of GPLv3.
28686 * config.guess: Updated from gnulib.
28687 * config.sub: Likewise.
28689 * geninit.sh: Output a GPLv3 copyright notice.
28690 * geninitheader.sh: Likewise.
28691 * genmodsrc.sh: Likewise.
28692 * gensymlist.sh.in: Likewise.
28694 * boot/i386/pc/boot.S: Upgraded to GPLv3.
28695 * boot/i386/pc/diskboot.S: Likewise.
28696 * boot/i386/pc/pxeboot.S: Likewise.
28697 * commands/blocklist.c: Likewise.
28698 * commands/boot.c: Likewise.
28699 * commands/cat.c: Likewise.
28700 * commands/cmp.c: Likewise.
28701 * commands/configfile.c: Likewise.
28702 * commands/echo.c: Likewise.
28703 * commands/help.c: Likewise.
28704 * commands/ls.c: Likewise.
28705 * commands/search.c: Likewise.
28706 * commands/terminal.c: Likewise.
28707 * commands/test.c: Likewise.
28708 * commands/videotest.c: Likewise.
28709 * commands/i386/cpuid.c: Likewise.
28710 * commands/i386/pc/halt.c: Likewise.
28711 * commands/i386/pc/play.c: Likewise.
28712 * commands/i386/pc/reboot.c: Likewise.
28713 * commands/i386/pc/vbeinfo.c: Likewise.
28714 * commands/i386/pc/vbetest.c: Likewise.
28715 * commands/ieee1275/halt.c: Likewise.
28716 * commands/ieee1275/reboot.c: Likewise.
28717 * commands/ieee1275/suspend.c: Likewise.
28718 * disk/loopback.c: Likewise.
28719 * disk/lvm.c: Likewise.
28720 * disk/raid.c: Likewise.
28721 * disk/efi/efidisk.c: Likewise.
28722 * disk/i386/pc/biosdisk.c: Likewise.
28723 * disk/ieee1275/ofdisk.c: Likewise.
28724 * font/manager.c: Likewise.
28725 * fs/affs.c: Likewise.
28726 * fs/ext2.c: Likewise.
28727 * fs/fat.c: Likewise.
28728 * fs/fshelp.c: Likewise.
28729 * fs/hfs.c: Likewise.
28730 * fs/hfsplus.c: Likewise.
28731 * fs/iso9660.c: Likewise.
28732 * fs/jfs.c: Likewise.
28733 * fs/minix.c: Likewise.
28734 * fs/sfs.c: Likewise.
28735 * fs/ufs.c: Likewise.
28736 * fs/xfs.c: Likewise.
28737 * hello/hello.c: Likewise.
28738 * include/grub/acorn_filecore.h: Likewise.
28739 * include/grub/arg.h: Likewise.
28740 * include/grub/bitmap.h: Likewise.
28741 * include/grub/boot.h: Likewise.
28742 * include/grub/cache.h: Likewise.
28743 * include/grub/device.h: Likewise.
28744 * include/grub/disk.h: Likewise.
28745 * include/grub/dl.h: Likewise.
28746 * include/grub/elfload.h: Likewise.
28747 * include/grub/env.h: Likewise.
28748 * include/grub/err.h: Likewise.
28749 * include/grub/file.h: Likewise.
28750 * include/grub/font.h: Likewise.
28751 * include/grub/fs.h: Likewise.
28752 * include/grub/fshelp.h: Likewise.
28753 * include/grub/gzio.h: Likewise.
28754 * include/grub/hfs.h: Likewise.
28755 * include/grub/kernel.h: Likewise.
28756 * include/grub/loader.h: Likewise.
28757 * include/grub/lvm.h: Likewise.
28758 * include/grub/misc.h: Likewise.
28759 * include/grub/mm.h: Likewise.
28760 * include/grub/net.h: Likewise.
28761 * include/grub/normal.h: Likewise.
28762 * include/grub/parser.h: Likewise.
28763 * include/grub/partition.h: Likewise.
28764 * include/grub/pc_partition.h: Likewise.
28765 * include/grub/raid.h: Likewise.
28766 * include/grub/rescue.h: Likewise.
28767 * include/grub/script.h: Likewise.
28768 * include/grub/setjmp.h: Likewise.
28769 * include/grub/symbol.h: Likewise.
28770 * include/grub/term.h: Likewise.
28771 * include/grub/terminfo.h: Likewise.
28772 * include/grub/tparm.h: Likewise.
28773 * include/grub/types.h: Likewise.
28774 * include/grub/video.h: Likewise.
28775 * include/grub/efi/api.h: Likewise.
28776 * include/grub/efi/chainloader.h: Likewise.
28777 * include/grub/efi/console.h: Likewise.
28778 * include/grub/efi/console_control.h: Likewise.
28779 * include/grub/efi/disk.h: Likewise.
28780 * include/grub/efi/efi.h: Likewise.
28781 * include/grub/efi/pe32.h: Likewise.
28782 * include/grub/efi/time.h: Likewise.
28783 * include/grub/i386/linux.h: Likewise.
28784 * include/grub/i386/setjmp.h: Likewise.
28785 * include/grub/i386/types.h: Likewise.
28786 * include/grub/i386/efi/kernel.h: Likewise.
28787 * include/grub/i386/efi/loader.h: Likewise.
28788 * include/grub/i386/efi/time.h: Likewise.
28789 * include/grub/i386/pc/biosdisk.h: Likewise.
28790 * include/grub/i386/pc/boot.h: Likewise.
28791 * include/grub/i386/pc/chainloader.h: Likewise.
28792 * include/grub/i386/pc/console.h: Likewise.
28793 * include/grub/i386/pc/init.h: Likewise.
28794 * include/grub/i386/pc/kernel.h: Likewise.
28795 * include/grub/i386/pc/loader.h: Likewise.
28796 * include/grub/i386/pc/memory.h: Likewise.
28797 * include/grub/i386/pc/multiboot.h: Likewise.
28798 * include/grub/i386/pc/serial.h: Likewise.
28799 * include/grub/i386/pc/time.h: Likewise.
28800 * include/grub/i386/pc/vbe.h: Likewise.
28801 * include/grub/i386/pc/vbeblit.h: Likewise.
28802 * include/grub/i386/pc/vbefill.h: Likewise.
28803 * include/grub/i386/pc/vbeutil.h: Likewise.
28804 * include/grub/i386/pc/vga.h: Likewise.
28805 * include/grub/ieee1275/ieee1275.h: Likewise.
28806 * include/grub/ieee1275/ofdisk.h: Likewise.
28807 * include/grub/powerpc/libgcc.h: Likewise.
28808 * include/grub/powerpc/setjmp.h: Likewise.
28809 * include/grub/powerpc/types.h: Likewise.
28810 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
28811 * include/grub/powerpc/ieee1275/console.h: Likewise.
28812 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
28813 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28814 * include/grub/powerpc/ieee1275/loader.h: Likewise.
28815 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
28816 * include/grub/powerpc/ieee1275/time.h: Likewise.
28817 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
28818 * include/grub/sparc64/libgcc.h: Likewise.
28819 * include/grub/sparc64/setjmp.h: Likewise.
28820 * include/grub/sparc64/types.h: Likewise.
28821 * include/grub/sparc64/ieee1275/console.h: Likewise.
28822 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28823 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28824 * include/grub/sparc64/ieee1275/time.h: Likewise.
28825 * include/grub/util/biosdisk.h: Likewise.
28826 * include/grub/util/getroot.h: Likewise.
28827 * include/grub/util/lvm.h: Likewise.
28828 * include/grub/util/misc.h: Likewise.
28829 * include/grub/util/raid.h: Likewise.
28830 * include/grub/util/resolve.h: Likewise.
28831 * io/gzio.c: Likewise.
28832 * kern/device.c: Likewise.
28833 * kern/disk.c: Likewise.
28834 * kern/dl.c: Likewise.
28835 * kern/elf.c: Likewise.
28836 * kern/env.c: Likewise.
28837 * kern/err.c: Likewise.
28838 * kern/file.c: Likewise.
28839 * kern/fs.c: Likewise.
28840 * kern/loader.c: Likewise.
28841 * kern/main.c: Likewise.
28842 * kern/misc.c: Likewise.
28843 * kern/mm.c: Likewise.
28844 * kern/parser.c: Likewise.
28845 * kern/partition.c: Likewise.
28846 * kern/rescue.c: Likewise.
28847 * kern/term.c: Likewise.
28848 * kern/efi/efi.c: Likewise.
28849 * kern/efi/init.c: Likewise.
28850 * kern/efi/mm.c: Likewise.
28851 * kern/i386/dl.c: Likewise.
28852 * kern/i386/efi/init.c: Likewise.
28853 * kern/i386/efi/startup.S: Likewise.
28854 * kern/i386/pc/init.c: Likewise.
28855 * kern/i386/pc/lzo1x.S: Likewise.
28856 * kern/i386/pc/startup.S: Likewise.
28857 * kern/ieee1275/ieee1275.c: Likewise.
28858 * kern/powerpc/cache.S: Likewise.
28859 * kern/powerpc/dl.c: Likewise.
28860 * kern/powerpc/ieee1275/cmain.c: Likewise.
28861 * kern/powerpc/ieee1275/crt0.S: Likewise.
28862 * kern/powerpc/ieee1275/init.c: Likewise.
28863 * kern/powerpc/ieee1275/openfw.c: Likewise.
28864 * kern/sparc64/cache.S: Likewise.
28865 * kern/sparc64/dl.c: Likewise.
28866 * kern/sparc64/ieee1275/init.c: Likewise.
28867 * kern/sparc64/ieee1275/openfw.c: Likewise.
28868 * loader/efi/chainloader.c: Likewise.
28869 * loader/efi/chainloader_normal.c: Likewise.
28870 * loader/i386/efi/linux.c: Likewise.
28871 * loader/i386/efi/linux_normal.c: Likewise.
28872 * loader/i386/pc/chainloader.c: Likewise.
28873 * loader/i386/pc/chainloader_normal.c: Likewise.
28874 * loader/i386/pc/linux.c: Likewise.
28875 * loader/i386/pc/linux_normal.c: Likewise.
28876 * loader/i386/pc/multiboot.c: Likewise.
28877 * loader/i386/pc/multiboot_normal.c: Likewise.
28878 * loader/powerpc/ieee1275/linux.c: Likewise.
28879 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
28880 * normal/arg.c: Likewise.
28881 * normal/cmdline.c: Likewise.
28882 * normal/command.c: Likewise.
28883 * normal/completion.c: Likewise.
28884 * normal/execute.c: Likewise.
28885 * normal/function.c: Likewise.
28886 * normal/lexer.c: Likewise.
28887 * normal/main.c: Likewise.
28888 * normal/menu.c: Likewise.
28889 * normal/menu_entry.c: Likewise.
28890 * normal/misc.c: Likewise.
28891 * normal/parser.y: Likewise.
28892 * normal/script.c: Likewise.
28893 * normal/i386/setjmp.S: Likewise.
28894 * normal/powerpc/setjmp.S: Likewise.
28895 * normal/sparc64/setjmp.S: Likewise.
28896 * partmap/acorn.c: Likewise.
28897 * partmap/amiga.c: Likewise.
28898 * partmap/apple.c: Likewise.
28899 * partmap/gpt.c: Likewise.
28900 * partmap/pc.c: Likewise.
28901 * partmap/sun.c: Likewise.
28902 * term/gfxterm.c: Likewise.
28903 * term/terminfo.c: Likewise.
28904 * term/efi/console.c: Likewise.
28905 * term/i386/pc/console.c: Likewise.
28906 * term/i386/pc/serial.c: Likewise.
28907 * term/i386/pc/vesafb.c: Likewise.
28908 * term/i386/pc/vga.c: Likewise.
28909 * term/ieee1275/ofconsole.c: Likewise.
28910 * util/biosdisk.c: Likewise.
28911 * util/console.c: Likewise.
28912 * util/genmoddep.c: Likewise.
28913 * util/getroot.c: Likewise.
28914 * util/grub-emu.c: Likewise.
28915 * util/grub-mkdevicemap.c: Likewise.
28916 * util/grub-probe.c: Likewise.
28917 * util/lvm.c: Likewise.
28918 * util/misc.c: Likewise.
28919 * util/raid.c: Likewise.
28920 * util/resolve.c: Likewise.
28921 * util/update-grub.in: Likewise.
28922 * util/update-grub_lib.in: Likewise.
28923 * util/grub.d/00_header.in: Likewise.
28924 * util/grub.d/10_hurd.in: Likewise.
28925 * util/grub.d/10_linux.in: Likewise.
28926 * util/i386/efi/grub-install.in: Likewise.
28927 * util/i386/efi/grub-mkimage.c: Likewise.
28928 * util/i386/pc/grub-install.in: Likewise.
28929 * util/i386/pc/grub-mkimage.c: Likewise.
28930 * util/i386/pc/grub-mkrescue.in: Likewise.
28931 * util/i386/pc/grub-setup.c: Likewise.
28932 * util/i386/pc/misc.c: Likewise.
28933 * util/powerpc/ieee1275/grub-install.in: Likewise.
28934 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
28935 * util/powerpc/ieee1275/misc.c: Likewise.
28936 * video/bitmap.c: Likewise.
28937 * video/video.c: Likewise.
28938 * video/i386/pc/vbe.c: Likewise.
28939 * video/i386/pc/vbeblit.c: Likewise.
28940 * video/i386/pc/vbefill.c: Likewise.
28941 * video/i386/pc/vbeutil.c: Likewise.
28942 * video/readers/tga.c: Likewise.
28944 2007-07-02 Robert Millan <rmh@aybabtu.com>
28946 * conf/i386-efi.rmk: Replace obsolete reference to
28947 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
28948 with util/getroot.c.
28949 * conf/powerpc-ieee1275.rmk: Likewise.
28950 * conf/sparc64-ieee1275.rmk: Likewise.
28952 * util/grub-emu.c (main): Fix unchecked pointer handling.
28954 2007-07-02 Robert Millan <rmh@aybabtu.com>
28956 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
28957 invocation to fail, in order to support partition-less media.
28959 * util/i386/pc/grub-install.in: Likewise.
28961 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
28962 which fs or partmap modules are needed (akin to its sister scripts).
28964 Also use grub-probe to get rid of unportable /proc/mounts check.
28966 Print the same informational message that the other scripts do, before
28969 2007-06-23 Robert Millan <rmh@aybabtu.com>
28971 * util/update-grub_lib.in (font_path): New function. Determine whether
28972 a font file can be found and, if so, echo the GRUB path to it.
28974 * util/update-grub.in: Handle multiple terminals depending on user
28975 input, platform availability and font file presence. Propagate
28976 variables of our findings to /etc/grub.d/ children.
28978 * util/grub.d/00_header.in: Handle multiple terminals, based on
28979 environment setup by update-grub.
28981 2007-06-23 Robert Millan <rmh@aybabtu.com>
28983 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
28985 2007-06-21 Robert Millan <rmh@aybabtu.com>
28987 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
28988 indicate end of data section in kernel image.
28989 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
28990 GRUB_KERNEL_MACHINE_DATA_END.
28992 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
28994 * kern/i386/efi/startup.S: Likewise.
28996 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
28997 during image generation. Implement --prefix option to override this
28999 * util/i386/efi/grub-mkimage.c: Likewise.
29001 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
29002 code to make path relative to its root into a separate function.
29004 * util/i386/pc/grub-install.in: Use newly provided
29005 make_system_path_relative_to_its_root() to convert ${grubdir}, then
29006 pass the result to grub-install --prefix.
29008 2007-06-13 Robert Millan <rmh@aybabtu.com>
29010 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
29011 DEFAULT_DEVICE_MAP.
29012 * util/grub-emu.c: Use above definitions from misc.h instead of
29014 * util/grub-mkdevicemap.c: Likewise.
29015 * util/i386/pc/grub-setup.c: Likewise.
29016 * util/grub-probe.c: Likewise.
29017 (probe): Abort with grub_util_error() when either
29018 grub_guess_root_device or grub_util_get_grub_dev fails.
29020 2007-06-12 Robert Millan <rmh@aybabtu.com>
29022 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
29023 "pager" assignment.
29024 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
29026 * util/grub-probe.c (probe): Likewise for "drive_name".
29028 2007-06-11 Robert Millan <rmh@aybabtu.com>
29030 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
29031 not just the cdrom one.
29033 2007-06-11 Robert Millan <rmh@aybabtu.com>
29035 * util/i386/pc/grub-mkrescue.in: Add "set -e".
29036 Add --pkglibdir=DIR option to override pkglibdir.
29037 Mention --image-type=TYPE in help output.
29038 Fix --grub-mkimage (it was a no-op).
29039 Abort gracefully when no parameter is given.
29041 2007-06-11 Robert Millan <rmh@aybabtu.com>
29043 * util/i386/pc/grub-mkrescue.in: New file.
29044 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
29045 * Makefile.in: Handle bin_SCRIPTS.
29047 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
29049 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
29050 list of video modes.
29052 2007-06-06 Robert Millan <rmh@aybabtu.com>
29054 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
29055 file doesn't exist, or if it is in a filesystem grub can't read.
29057 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
29058 not abort if GRUB_DRIVE could not be defined. Rearrange generated
29059 header comment to fit in 80 columns when the variables are resolved.
29061 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
29062 could be identified by update-grub. Remove redundant check for
29063 unifont.pff existence (since convert_system_path_to_grub_path now
29066 2007-06-04 Robert Millan <rmh@aybabtu.com>
29068 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
29070 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
29072 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
29074 2007-06-04 Robert Millan <rmh@aybabtu.com>
29076 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
29078 * include/grub/partition.h: Declare grub_apple_partition_map_init and
29079 grub_apple_partition_map_fini.
29082 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
29083 to access >2 TiB disks).
29085 Print disk->total_sectors with %llu instead of %lu, since this
29086 variable is always 64-bit (prevents wrong disk size from being displayed
29087 on either >2 TiB disk or big-endian CPU).
29089 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
29090 into a generic case that supports all (sane) partition maps.
29092 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
29095 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
29096 and grub_apple_partition_map_fini() after that.
29098 2007-06-01 Robert Millan <rmh@aybabtu.com>
29100 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
29102 * util/grub.d/00_header.in: Only enable gfxterm when
29103 convert_system_path_to_grub_path() succeeds.
29105 2007-05-20 Robert Millan <rmh@aybabtu.com>
29107 * util/update-grub_lib.in: New file.
29108 * DISTLIST: Add update-grub_lib.in.
29109 * conf/common.rmk: Generate update-grub_lib and install it in
29111 * Makefile.in: Add install routine for $(lib_DATA).
29113 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
29114 function provided by update-grub_lib to support arbitrary paths of
29116 * util/update-grub.in: Use convert_system_path_to_grub_path() to
29117 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
29119 2007-05-19 Robert Millan <rmh@aybabtu.com>
29121 * commands/i386/cpuid.c: New module.
29122 * DISTLIST: Add it.
29123 * conf/i386-efi.rmk: Enable cpuid.mod.
29124 * conf/i386-pc.rmk: Likewise.
29126 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29128 * kern/disk.c (grub_disk_read): Check return value of
29131 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29133 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
29135 * disk/raid.c (grub_raid_open): Likewise.
29137 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29139 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
29140 stack instead of on the heap.
29142 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
29143 before doing a read on it.
29145 * configure.ac: Only use -fno-stack-protector for the target
29148 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29150 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
29151 __attribute_ ((unused)) to mode_type argument.
29153 * util/getroot.c (grub_guess_root_device): Fix #endif.
29155 * kern/misc.c (memcmp): Fix prototype.
29157 * include/grub/partition.h [GRUB_UTIL]
29158 (grub_gpt_partition_map_init): Add prototype.
29159 (grub_gpt_partition_map_fini): Likewise.
29161 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
29162 at the right place.
29164 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
29165 (grub_fat_read_data): Likewise.
29166 (grub_fat_find_dir): Likewise.
29168 * font/manager.c (find_glyph): Make table a const.
29169 (grub_font_get_glyph): Remove bitmap from if statement.
29171 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
29173 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
29174 code, first search for device in /dev/mapper, then in /dev.
29175 (grub_util_get_grub_dev): New function.
29176 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
29178 * util/grub-probe.c (probe): Remove check for RAID, call
29179 grub_util_get_grub_dev() instead of
29180 grub_util_biosdisk_get_grub_dev().
29181 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
29182 grub_util_biosdisk_get_grub_dev().
29183 * util/i386/pc/grub-setup.c (main): Likewise.
29185 2007-05-16 Robert Millan <rmh@aybabtu.com>
29187 * DISTLIST: Update for the latest changes.
29188 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
29189 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
29190 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
29191 grub/util/biosdisk.h.
29192 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
29193 grub/util/biosdisk.h.
29195 2007-05-16 Robert Millan <rmh@aybabtu.com>
29197 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
29199 2007-05-16 Robert Millan <rmh@aybabtu.com>
29201 * util/i386/efi/grub-install.in: New.
29202 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
29203 newly added grub-install.
29204 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
29206 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
29207 grub/util/biosdisk.h.
29208 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
29209 grub/util/biosdisk.h.
29211 2007-05-16 Robert Millan <rmh@aybabtu.com>
29213 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
29214 * include/grub/util/biosdisk.h: ... here.
29215 * util/i386/pc/biosdisk.c: Moved to ...
29216 * util/biosdisk.c: ... here.
29217 * util/i386/pc/getroot.c: Moved to ...
29218 * util/getroot.c: ... here.
29219 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
29220 * util/grub-mkdevicemap.c: ... here.
29221 * util/i386/pc/grub-probe.c: Moved to ...
29222 * util/grub-probe.c: ... here.
29224 2007-05-15 Robert Millan <rmh@aybabtu.com>
29226 * util/update-grub.in: Remove duplicated line in grub.cfg header
29229 2007-05-13 Robert Millan <rmh@aybabtu.com>
29231 * util/update-grub.in: Fix a few assumptions about the devices holding
29232 /, /boot and /boot/grub being the same.
29233 * util/grub.d/00_header.in: Likewise.
29234 * util/grub.d/10_hurd.in: Likewise.
29235 * util/grub.d/10_linux.in: Likewise.
29237 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
29238 patterns. Use that to define the `.old' suffix as older than `'.
29240 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
29242 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
29243 the grub.cfg header message.
29245 2007-05-11 Robert Millan <rmh@aybabtu.com>
29247 * util/update-grub.in: Create device.map if it doesn't already exist,
29248 before attempting to run grub-probe.
29249 Check for grub-probe and grub-mkdevicemap with the same code
29250 grub-install is using.
29253 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
29255 * Makefile.in: Add the datarootdir autoconf variable.
29257 2007-05-09 Robert Millan <rmh@aybabtu.com>
29259 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
29260 fail gracefully if dev->disk->partition == NULL.
29262 2007-05-07 Robert Millan <rmh@aybabtu.com>
29264 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
29265 determine partition map module.
29266 * util/i386/pc/grub-install.in: Use this feature to decide which
29267 partition module to load, instead of hardcoding pc and gpt.
29269 2007-05-07 Robert Millan <rmh@aybabtu.com>
29271 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
29272 source directory differs from build directory.
29274 2007-05-05 Robert Millan <rmh@aybabtu.com>
29276 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
29279 2007-05-05 Robert Millan <rmh@aybabtu.com>
29281 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
29283 2007-05-05 Robert Millan <rmh@aybabtu.com>
29285 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
29286 command-line arguments via ${GRUB_CMDLINE_LINUX}.
29288 2007-05-05 Robert Millan <rmh@aybabtu.com>
29290 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
29291 (grub_probe_SOURCES): Likewise.
29292 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
29293 GPT and initialize dos_part and bsd_part accordingly.
29294 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
29296 (main): Activate gpt module for use during partition identification,
29297 and deactivate it afterwards.
29298 * util/i386/pc/grub-install.in: Add gpt module to core.img.
29299 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
29300 partition identification, and deactivate it afterwards.
29302 2007-05-05 Robert Millan <rmh@aybabtu.com>
29304 * term/i386/pc/console.c (grub_console_fini): Call
29305 grub_term_set_current() before grub_term_unregister().
29307 2007-05-04 Robert Millan <rmh@aybabtu.com>
29309 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
29310 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
29311 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
29312 and update-grub_DATA.
29313 * conf/common.rmk: Build and install update-grub components.
29314 * conf/common.mk: Regenerate.
29315 * util/update-grub.in: New. Core of update-grub.
29316 * util/grub.d/00_header.in: New. Generates grub.cfg header.
29317 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
29318 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
29319 * util/grub.d/README: New. Document grub.d directory layout.
29321 2007-05-01 Robert Millan <rmh@aybabtu.com>
29323 * util/grub-emu.c: Move initialization functions
29324 grub_util_biosdisk_init() and grub_init_all() before
29325 grub_util_biosdisk_get_grub_dev(), which relies on them.
29327 2007-04-19 Robert Millan <rmh@aybabtu.com>
29329 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
29332 2007-04-18 Jerone Young <jerone@gmail.com>
29334 * kernel/elf.c: Add missing parenthesis for conditional statement
29337 2007-04-10 Jerone Young <jerone@gmail.com>
29339 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
29340 continue on and look for device node with real device name.
29342 2007-04-10 Jerone Young <jerone@gmail.com>
29344 * configure.ac: Add argument for autoconf to use transformation
29346 * Makefile.in: Add autoconf package transformation code.
29347 * util/i386/pc/grub-install.in: Likewise.
29348 * util/powerpc/ieee1275/grub-install.in: Likewise.
29350 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
29352 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
29353 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
29354 (EXT2_REVISION): Likewise.
29355 (EXT2_INODE_SIZE): Likewise.
29356 (struct grub_ext2_block_group): Added a missing member
29358 (grub_ext2_read_inode): Divide by the inode size in a superblock
29359 instead of 128 to obtain INODES_PER_BLOCK.
29360 Use the macro EXT2_INODE_SIZE instead of directly using
29361 SBLOCK->INODE_SIZE.
29363 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
29365 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
29366 superblock instead of the structure size to compute an
29367 offset. This fixes the problem that GRUB could not read a
29368 filesystem when inode size is different from 128-byte.
29370 2007-03-05 Marco Gerards <marco@gnu.org>
29372 * normal/main.c (read_config_file): When "menu" is not set, create
29373 an initial context.
29375 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29377 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
29378 (HEAP_LIMIT): New macro.
29379 (grub_claim_heap): Claim memory up to `heaplimit'.
29381 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29383 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
29384 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
29385 (_start): Likewise.
29386 (grub_arch_modules_addr): Return address after `_end'.
29387 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
29388 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
29389 (add_segments): Calculate `_end' from phdr size and location.
29390 (ALIGN_UP): Moved to ...
29391 * include/grub/misc.h: here.
29392 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
29394 (GRUB_IEEE1275_MODULE_BASE): Removed.
29396 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29398 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
29401 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29403 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
29405 (grub_elf64_load_hook_t): Likewise.
29406 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
29409 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29411 * kern/mm.c: Update copyright.
29412 (grub_mm_debug): Correct syntax error.
29413 (grub_mm_dump_free): New function.
29414 (grub_debug_free): Call `grub_free'.
29415 * include/grub/mm.h: Update copyright.
29416 (grub_mm_dump_free): Add declaration.
29418 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29420 * include/grub/ieee1275/ieee1275.h: Update copyright.
29421 * kern/powerpc/ieee1275/init.c: Likewise.
29422 * kern/powerpc/ieee1275/openfw.c: Likewise.
29424 * loader/powerpc/ieee1275/linux.c: Likewise.
29425 * include/grub/elfload.h: Likewise.
29426 * kern/elf.c: Likewise.
29427 (grub_elf32_load): Pass `base' and `size' parameters. Update all
29429 (grub_elf64_load): Likewise.
29430 (grub_elf32_load_segment): Move to a nested function.
29431 (grub_elf64_load_segment): Likewise.
29433 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29435 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
29437 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
29438 (grub_heap_len): Likewise.
29439 (HEAP_SIZE): New macro.
29440 (grub_claim_heap): New function.
29441 (grub_machine_init): Don't claim heap directly. Call
29443 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
29444 (grub_available_iterate): New function.
29446 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
29448 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
29449 * configure.ac: Use it for testing the HOST and TARGET compilers.
29451 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
29453 * Makefile.in (enable_grub_emu): New variable.
29454 * configure.ac (--enable-grub-emu): New option.
29455 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
29456 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
29457 * conf/i386-pc.rmk: Likewise.
29458 * conf/powerpc-ieee1275.rmk: Likewise.
29459 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
29461 2006-12-12 Marco Gerards <marco@gnu.org>
29463 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
29465 * kern/env.c (grub_env_unset): Don't free the member `value' when
29466 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
29469 * normal/main.c (current_menu): Removed.
29470 (free_menu): Unset the `menu' environment variable.
29471 (grub_normal_menu_addentry): Make use of the environment variable
29472 `menu', instead of using the global `current_menu'. Allocate
29473 memory for the sourcecode of this entry.
29474 (read_config_file): New argument `nested', changed all callers.
29475 Only in the case of a new context, initialize a new menu. Set the
29476 `menu' environment variable.
29477 (grub_normal_execute): Don't set and unset the environment
29478 variable `menu' here anymore. Only free the menu when leaving the
29481 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
29484 2006-12-11 Marco Gerards <marco@gnu.org>
29486 * normal/menu_entry.c (run): Fix off by one bug so the last line
29487 is executed. Move the loader check to outside the loop.
29489 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
29491 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
29493 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
29495 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
29496 the number of sectors. Reported by Andrey Shuvikov
29497 <mr_hyro@yahoo.com>.
29499 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
29501 * kern/disk.c (grub_disk_read): When there is a read error, always
29502 try to read only the necessary data.
29504 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
29506 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
29508 [GRUB_UTIL] (grub_raid_fini): Likewise.
29509 [GRUB_UTIL] (grub_lvm_init): Likewise.
29510 [GRUB_UTIL] (grub_lvm_fini): Likewise.
29511 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
29512 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
29513 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
29514 and grub_raid_fini().
29516 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
29518 * include/grub/types.h (__unused): Rename to UNUSED.
29519 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
29520 (grub_elf64_size): Likewise.
29522 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29524 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
29525 grub_error_push and grub_error_pop in the error-handling path.
29526 (grub_elf32_load_segment): Only call grub_file_read with non-zero
29529 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29531 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
29532 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29534 (kernel_elf_SOURCES): Likewise.
29535 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
29536 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
29537 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29538 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29539 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
29540 (elf_mod_SOURCES): New variable.
29541 (elf_mod_CFLAGS): Likewise.
29542 (elf_mod_LDFLAGS): Likewise.
29543 * include/grub/types.h (__unused): New macro.
29544 * include/grub/elfload.h: New file.
29545 * kern/elf.c: Likewise.
29546 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
29547 (ELF32_LOADMASK): New macro.
29548 (ELF64_LOADMASK): Likewise.
29549 (vmlinux): Removed.
29550 (grub_linux_load32): New function.
29551 (grub_linux_load64): Likewise.
29552 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
29553 Use grub_elf_t instead of grub_file_t.
29555 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
29557 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
29558 `catch_result' to struct set_color_args.
29560 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29562 * normal/menu.c: Include grub/script.h.
29563 * normal/menu_entry.c: Likewise.
29564 * include/grub/normal.h: Do not include grub/script.h.
29566 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29568 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
29570 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29572 * kern/disk.c (grub_disk_open): Print debug messages when opening a
29574 (grub_disk_close): Print debug messages when closing a disk.
29575 (grub_disk_read): Print debug messages when disk read fails.
29576 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
29578 * kern/partition.c: Include misc.h.
29579 (grub_partition_iterate): Print debug messages when detecting
29582 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29584 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
29586 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
29588 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
29590 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
29591 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
29593 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
29595 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
29596 instead of sizeof(lv). Patch by Michael Guntsche.
29598 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
29600 * disk/lvm.c: Rename VGS to VG_LIST.
29601 (grub_lvm_iterate): Change VGS->LV to VG-LV.
29602 (grub_lvm_open): Likewise.
29603 Thanks to Michael Guntsche for finding this bug.
29605 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29607 * configure.ac (AC_INIT): Bumped to 1.95.
29609 2006-10-14 Robert Millan <rmh@aybabtu.com>
29611 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
29612 with "/dev/.static/dev/md".
29614 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29616 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
29617 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
29618 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
29619 DRIVE_NAME are always freed.
29621 * util/i386/pc/biosdisk.c (make_device_name): Add one into
29622 DOS_PART, as a DOS partition is counted from one instead of zero
29623 now. Reported by Robert Millan.
29625 2006-10-14 Robert Millan <rmh@aybabtu.com>
29627 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
29628 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
29629 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
29630 string returned by grub_guess_root_device.
29631 * util/i386/pc/grub-setup.c: Likewise.
29632 * util/i386/pc/grub-probefs.c: Likewise.
29634 * util/i386/pc/grub-probefs.c: Rename to ...
29635 * util/i386/pc/grub-probe.c: ... this.
29636 * DISTLIST: Remove grub-probefs, add grub-probe.
29637 * conf/i386-efi.rmk: Likewise.
29638 * conf/i386-pc.rmk: Likewise.
29639 * util/i386/pc/grub-install.in: Likewise.
29641 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
29642 choose which information we want to print.
29644 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29646 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
29647 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
29648 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
29649 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
29650 video/readers/tga.c and video/i386/pc/vbeutil.c.
29652 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
29654 Added support for RAID and LVM.
29656 * disk/lvm.c: New file.
29657 * disk/raid.c: Likewise.
29658 * include/grub/lvm.h: Likewise.
29659 * include/grub/raid.h: Likewise.
29660 * include/grub/util/lvm.h: Likewise.
29661 * include/grub/util/raid.h: Likewise.
29662 * util/lvm.c: Likewise.
29663 * util/raid.c: Likewise.
29665 * include/grub/disk.h (grub_disk_dev_id): Add
29666 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
29667 (grub_disk_get_size): New prototype.
29668 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
29669 returns a partition.
29670 (grub_disk_get_size): New function.
29672 * kern/i386/pc/init.c (make_install_device): Copy the prefix
29673 verbatim if grub_install_dos_part is -2.
29675 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
29678 * util/i386/pc/grub-setup.c (setup): New argument
29679 MUST_EMBED. Force embedding of GRUB when the argument is
29680 true. Close FILE before returning.
29681 (main): Add support for RAID and LVM.
29683 * conf/common.rmk: Add RAID and LVM modules.
29684 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
29686 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
29688 * kern/misc.c (grub_strstr): New function.
29689 * include/grub/misc.h (grub_strstr): New prototype.
29691 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
29693 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
29695 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
29697 * kern/misc.c (grub_strtoull): Guess the base only if not
29700 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29702 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
29705 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29707 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
29709 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
29710 Remove `flags' argument. All callers changed.
29711 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
29712 (IEEE1275_IHANDLE_INVALID): New variable.
29713 (IEEE1275_CELL_INVALID): New variable.
29714 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
29715 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
29716 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
29717 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
29718 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
29719 codes from Open Firmware. All callers updated.
29720 (grub_ieee1275_next_property): Directly return Open Firmware return
29722 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
29723 Standardize error checking from `grub_ieee1275_get_property'.
29724 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
29725 `devalias' to `aliases'. Correct comments. Consolidate error paths.
29727 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
29729 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
29730 `instance_to_package_args' to `instance_to_path_args'.
29732 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
29733 `grub_ieee1275_chosen'.
29735 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
29736 `grub_ieee1275_interpret'.
29738 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
29740 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
29742 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
29744 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
29745 (__cmpdi): Likewise.
29747 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
29748 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
29751 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
29753 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
29754 to type `grub_ssize_t'.
29755 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
29757 2006-09-22 Marco Gerards <marco@gnu.org>
29759 * normal/script.c (grub_script_create_cmdmenu): Skip leading
29762 2006-09-22 Marco Gerards <marco@gnu.org>
29764 * commands/echo.c: New file.
29766 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
29768 * conf/common.rmk (echo_mod_SOURCES): New variable.
29769 (echo_mod_CFLAGS): Likewise.
29770 (echo_mod_LDFLAGS): Likewise.
29772 2006-09-22 Marco Gerards <marco@gnu.org>
29774 * normal/main.c (get_line): Malloc memory instead of using
29775 preallocated memory. Removed the arguments `cmdline' and
29776 `max_len'. Updated all callers.
29778 2006-09-22 Marco Gerards <marco@gnu.org>
29780 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
29781 (normal_mod_DEPENDENCIES): Likewise.
29783 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
29784 (normal_mod_DEPENDENCIES): Likewise.
29786 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
29788 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
29790 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
29792 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
29793 (normal_mod_DEPENDENCIES): Likewise.
29794 * conf/i386-pc.mk: Regenerate.
29795 * conf/i386-efi.mk: Likewise
29796 * conf/common.mk: Likewise.
29797 * conf/powerpc-ieee1275.mk: Likewise.
29798 * conf/sparc64-ieee1275.mk: Likewise.
29800 2006-09-22 Robert Millan <rmh@aybabtu.com>
29802 Sync with i386 version.
29803 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
29804 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
29806 2006-09-21 Robert Millan <rmh@aybabtu.com>
29808 Import from GRUB Legacy (lib/device.c):
29809 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
29810 (init_device_map) [__linux__]: Add support for I2O devices.
29812 2006-09-14 Marco Gerards <marco@gnu.org>
29814 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
29817 2006-09-14 Robert Millan <rmh@aybabtu.com>
29819 * util/i386/pc/grub-install.in: Skip menu.lst when removing
29822 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
29824 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
29825 before adding it to device.map.
29827 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
29829 * genmk.rb: Let GCC generate dependencies the first time it
29830 compiles a file; using the -MD option.
29831 * conf/common.mk: Regenerate.
29832 * conf/i386-pc.mk: Likewise.
29833 * conf/i386-efi.mk: Likewise.
29834 * conf/powerpc-ieee1275.mk: Likewise.
29835 * conf/sparc64-ieee1275.mk: Likewise.
29837 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
29839 Move the prototypes of grub_setjmp and grub_longjmp to
29840 cpu/setjmp.h, so that each architecture may specify different
29843 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
29844 (grub_longjmp): Likewise.
29845 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
29846 (grub_longjmp): Likewise.
29847 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
29848 (grub_longjmp): Likewise.
29850 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
29851 [!GRUB_UTIL] (grub_longjmp): Removed.
29853 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
29855 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
29856 "color!" method does not return any value.
29858 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
29860 * include/grub/bitmap.h: New file.
29862 * include/grub/i386/pc/vbeutil.h: Likewise.
29864 * video/bitmap.c: Likewise.
29866 * video/readers/tga.c: Likewise.
29868 * video/i386/pc/vbeutil.c: Likewise.
29870 * commands/videotest.c: Code cleanup and updated to reflect to new
29873 * term/gfxterm.c: Likewise.
29875 * video/video.c: Likewise.
29877 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
29878 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
29879 (bitmap_mod_SOURCES): New entry.
29880 (bitmap_mod_CFLAGS): Likewise.
29881 (bitmap_mod_LDFLAGS): Likewise.
29882 (tga_mod_SOURCES): Likewise.
29883 (tga_mod_CFLAGS): Likewise.
29884 (tga_mod_LDFLAGS): Likewise.
29886 * include/grub/video.h (grub_video_blit_operators): New enum type.
29887 (grub_video_render_target): Changed as forward declaration and moved
29888 actual definition to be video driver specific.
29889 (grub_video_adapter.blit_bitmap): Added blitting operator.
29890 (grub_video_adapter.blit_render_target): Likewise.
29891 (grub_video_blit_bitmap): Likewise.
29892 (grub_video_blit_render_target): Likewise.
29894 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
29895 driver specific render target definition.
29896 (grub_video_vbe_map_rgba): Added driver internal helper.
29897 (grub_video_vbe_unmap_color): Updated to use
29898 grub_video_i386_vbeblit_info.
29899 (grub_video_vbe_get_video_ptr): Likewise.
29901 * include/grub/i386/pc/vbeblit.h
29902 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
29903 grub_video_i386_vbeblit_info.
29904 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
29905 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
29906 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
29907 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
29908 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
29909 (grub_video_i386_vbeblit_index_index): Likewise.
29910 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
29911 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
29912 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
29913 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
29915 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
29918 * video/i386/pc/vbeblit.c: Updated to reflect changes on
29919 include/grub/i386/pc/vbeblit.h.
29921 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
29922 Updated to use grub_video_i386_vbeblit_info.
29923 (grub_video_i386_vbefill_R8G8B8): Likewise.
29924 (grub_video_i386_vbefill_index): Likewise.
29925 (grub_video_i386_vbefill): Added generic filler.
29927 * video/i386/pc/vbefill.c: Updated to reflect changes on
29928 include/grub/i386/pc/vbefill.h.
29930 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
29931 grub_video_i386_vbeblit_info.
29932 (grub_video_vbe_unmap_color): Likewise.
29933 (grub_video_vbe_blit_glyph): Likewise.
29934 (grub_video_vbe_scroll): Likewise.
29935 (grub_video_vbe_draw_pixel): Removed function.
29936 (grub_video_vbe_get_pixel): Likewise.
29937 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
29938 updated code to use it.
29939 (common_blitter): Added common blitter for render target and bitmap.
29940 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
29941 (grub_video_vbe_blit_render_target): Likewise.
29943 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
29945 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
29946 is in text mode if there is no console control protocol instance
29949 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
29951 * include/grub/video.h: Code cleanup.
29953 * include/grub/i386/pc/vbe.h: Likewise.
29955 * video/i386/pc/vbe.c: Likewise.
29957 * video/i386/pc/vbeblit.c: Likewise.
29959 * video/i386/pc/vbefill.c: Likewise.
29961 * video/video.c: Likewise. Also added more comments.
29963 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
29965 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
29966 (struct grub_biosdisk_dap): Likewise.
29968 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
29969 linkage settings for all functions.
29971 2006-07-12 Marco Gerards <marco@gnu.org>
29973 * configure.ac (--enable-mm-debug): Fix typo.
29975 * genkernsyms.sh.in: Use proper quoting for `CC'.
29977 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
29979 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
29980 (normal_mod_ASFLAGS): Remove "-m32".
29982 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
29984 * util/misc.c: Include config.h.
29985 [!HAVE_MEMALIGN]: Do not include malloc.h.
29986 (grub_memalign): Use posix_memalign, if present. Then, use
29987 memalign, if present. Otherwise, emit an error.
29989 * util/grub-emu.c: Do not include malloc.h.
29991 * include/grub/util/misc.h: Include unistd.h. This is required for
29992 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
29993 D. Eades III <hde@foobar-qux.org>.
29995 * configure.ac (AC_GNU_SOURCE): Added.
29996 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
29999 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
30001 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
30002 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
30004 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
30006 * include/grub/types.h (grub_host_addr_t): Rename to
30007 grub_target_addr_t.
30008 (grub_host_off_t): Rename to grub_target_off_t.
30009 (grub_host_size_t): Rename to grub_target_size_t.
30010 (grub_host_ssize_t): Rename to grub_target_ssize_t.
30011 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
30013 * include/grub/kernel.h (struct grub_module_header): Change type
30014 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
30015 (grub_module_info): Likewise.
30017 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30019 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
30020 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
30021 Velazquez <jesus.velazquez@gmail.com>.
30023 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30025 Count partitions from 1 instead of 0 in the string representation
30026 of partitions. Still use 0-based internally.
30028 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
30029 (sun_partition_map_iterate): Use grub_partition_t instead of
30030 struct grub_partition *. Cast DESC->START_CYLINDER to
30031 grub_uint64_t after converting the endian.
30032 (sun_partition_map_probe): Subtract 1 for PARTNUM.
30033 (sun_partition_map_get_name): Add 1 to P->INDEX.
30035 * partmap/pc.c (grub_partition_parse): Subtract 1 for
30037 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
30039 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
30040 zero instead of one.
30041 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
30042 (gpt_partition_map_get_name): Add 1 into P->INDEX.
30044 * partmap/apple.c (apple_partition_map_iterate): Change the type
30045 of POS to unsigned.
30046 (apple_partition_map_probe): Subtract 1 for PARTNUM.
30047 (apple_partition_map_get_name): Add 1 into P->INDEX.
30049 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
30050 of POS to unsigned.
30051 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
30052 calculate the offset of a partition.
30053 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
30054 (amiga_partition_map_get_name): Add 1 into P->INDEX.
30056 * partmap/acorn.c (acorn_partition_map_find): Change the type of
30057 SECTOR to grub_disk_addr_t.
30058 (acorn_partition_map_iterate): Likewise.
30059 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
30060 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
30062 (acorn_partition_map_get_name): Add 1 into P->INDEX.
30064 * kern/i386/pc/init.c (make_install_device): Add 1 into
30065 GRUB_INSTALL_DOS_PART.
30067 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
30070 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30072 Clean up the code to support 64-bit addressing in disks and
30073 files. This change is not enough for filesystems yet.
30075 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
30076 type of "start" to grub_uint64_t.
30077 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
30078 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
30079 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
30082 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
30083 to grub_disk_addr_t.
30085 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
30088 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30090 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
30093 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
30095 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
30097 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
30099 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
30100 to grub_off_t, to detect an error from grub_file_seek.
30101 (grub_multiboot_load_elf32): Likewise.
30103 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
30104 maximum unsigned long value when an overflow is detected.
30105 (grub_strtoull): New function.
30106 (grub_divmod64): Likewise.
30107 (grub_lltoa): use grub_divmod64.
30109 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
30111 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
30112 the pointer to next character. Use grub_strtoull instead of
30114 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
30115 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
30118 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
30119 return value is signed.
30120 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
30121 test if OFFSET is less than zero, as OFFSET is unsigned now.
30123 * kern/disk.c (struct grub_disk_cache): Change the type of
30124 "sector" to grub_disk_addr_t.
30125 (grub_disk_cache_get_index): Change the type of SECTOR to
30126 grub_disk_addr_t. Calculate the hash with SECTOR casted to
30127 unsigned after shifting.
30128 (grub_disk_cache_invalidate): Change the type of SECTOR to
30130 (grub_disk_cache_unlock): Likewise.
30131 (grub_disk_cache_store): Likewise.
30132 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
30133 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
30134 grub_disk_addr_t and grub_uint64_t, respectively.
30135 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
30136 body, as the value of OFFSET is tweaked by
30137 grub_disk_check_range. Change the types of START_SECTOR, LEN and
30138 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
30140 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
30141 body, as the value of OFFSET is tweaked by
30142 grub_disk_check_range. Change the types of LEN and N to
30145 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
30146 and "saved_offset" to grub_off_t.
30147 (test_header): Cast BUF to char *.
30148 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
30150 (grub_gzio_read): Change the types of OFFSET and SIZE to
30151 grub_off_t and grub_size_t, respectively.
30153 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
30155 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
30156 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
30157 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
30158 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
30159 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
30161 * include/grub/types.h (grub_off_t): Unconditionally set to
30163 (grub_disk_addr_t): Changed to grub_uint64_t.
30165 * include/grub/partition.h (struct grub_partition): Change the
30166 types of "start", "len" and "offset" to grub_disk_addr_t,
30167 grub_uint64_t and grub_disk_addr_t, respectively.
30168 (grub_partition_get_start): Return grub_disk_addr_t.
30169 (grub_partition_get_len): Return grub_uint64_t.
30171 * include/grub/misc.h (grub_strtoull): New prototype.
30172 (grub_divmod64): Likewise.
30174 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
30175 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
30176 grub_off_t, respectively.
30177 All callers and references changed.
30179 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
30180 grub_size_t in "read".
30181 All callers and references changed.
30183 * include/grub/file.h (struct grub_file): Change the types of
30184 "offset" and "size" to grub_off_t and grub_off_t,
30185 respectively. Change the type of SECTOR to grub_disk_addr_t in
30187 (grub_file_read): Change the type of LEN to grub_size_t.
30188 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
30190 (grub_file_size): Return grub_off_t.
30191 (grub_file_tell): Likewise.
30192 All callers and references changed.
30194 * include/grub/disk.h (struct grub_disk_dev): Change the types of
30195 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
30197 (struct grub_disk): Change the type of "total_sectors" to
30198 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
30200 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
30201 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
30202 (grub_disk_write): Likewise.
30203 All callers and references changed.
30205 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
30206 char * for grub_strncmp to silence gcc.
30207 (grub_iso9660_mount): Likewise.
30208 (grub_iso9660_mount): Likewise.
30209 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
30211 (grub_iso9660_iterate_dir): Likewise.
30212 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
30214 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
30215 LEN to grub_disk_addr_t and grub_size_t, respectively.
30217 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30219 * fs/jfs.c (grub_jfs_read_file): Likewise.
30221 * fs/minix.c (grub_jfs_read_file): Likewise.
30223 * fs/sfs.c (grub_jfs_read_file): Likewise.
30225 * fs/ufs.c (grub_jfs_read_file): Likewise.
30227 * fs/xfs.c (grub_jfs_read_file): Likewise.
30229 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
30230 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
30233 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
30234 BLKNR to -1 instead of returning GRUB_ERRNO.
30235 (grub_ext2_read_file): Change the types of SECTOR and
30236 LEN to grub_disk_addr_t and grub_size_t, respectively.
30238 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
30239 LEN to grub_disk_addr_t and grub_size_t, respectively.
30241 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
30244 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
30245 string. Do not cast SECTOR explicitly.
30247 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
30248 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
30249 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
30250 grub_disk_addr_t and grub_size_t, respectively. If the sector is
30251 over 2TB and LBA mode is not supported, raise an error.
30252 (get_safe_sectors): New function.
30253 (grub_biosdisk_read): Use get_safe_sectors.
30254 (grub_biosdisk_write): Likewise.
30256 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
30257 (grub_efidisk_write): Likewise.
30259 * disk/loopback.c (delete_loopback): Cosmetic changes.
30260 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
30262 (grub_loopback_open): Likewise.
30263 (grub_loopback_read): Likewise. Also, change the type of POS to
30264 grub_off_t, and fix the usage of grub_memset.
30266 * commands/i386/pc/play.c: Include grub/machine/time.h.
30268 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
30271 * commands/configfile.c: Include grub/env.h.
30273 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
30274 GRUB_ERRNO directly instead. Change the type of POS to
30275 grub_off_t. Follow the coding standard.
30277 * commands/blocklist.c: Include grub/partition.h.
30278 (grub_cmd_blocklist): Return an error if the underlying device is
30279 not a disk. Take the starting sector of a partition into account,
30280 if a partition is used.
30282 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
30284 (lba_mode): Support 64-bit addresses.
30285 (chs_mode): Likewise.
30286 (copy_buffer): Adapted to the new offsets of a length field and a
30288 (blocklist_default_start): Allocate 64-bit space.
30290 * boot/i386/pc/boot.S (force_lba): Removed.
30291 (boot_drive): Moved to under KERNEL_SECTOR.
30292 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
30294 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
30296 (lba_mode): Refactored to support a 64-bit address. More size
30298 (setup_sectors): Likewise.
30300 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30302 * DISTLIST: Added include/grub/i386/linux.h. Removed
30303 include/grub/i386/pc/linux.h
30305 * configure.ac (AC_INIT): Bumped to 1.94.
30307 * config.guess: Updated from gnulib.
30308 * config.sub: Likewise.
30309 * install-sh: Likewise.
30310 * mkinstalldirs: Likewise.
30312 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30314 * conf/common.rmk (grub_modules_init.lst): Depended on
30315 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
30318 * genmk.rb (PModule::rule): Reverted the previous change.
30320 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30322 * conf/common.rmk (grub_modules_init.lst): Depends on
30323 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
30324 that the target does not exist before producing.
30325 (grub_modules_init.h): Remove the target before generating.
30326 (grub_emu_init.c): Likewise.
30328 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
30330 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
30332 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
30333 for the target-specific tests. Make sure that we also have the
30334 up-to-date target variables for those tests.
30336 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30338 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
30339 (PModule::rule): Likewise.
30341 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30343 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
30344 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
30345 target-specific flags should be prefixed.
30346 (PModule::rule): Likewise.
30348 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
30350 * configure.ac (CMP): Check if cmp is available explicitly.
30352 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
30354 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
30355 (target_cpu): New variable.
30356 (pkglibdir): Use target_cpu instead of host_cpu.
30358 * util/i386/pc/grub-install.in (host_cpu): Removed.
30359 (target_cpu): New variable.
30360 (pkglibdir): Use target_cpu instead of host_cpu.
30362 * util/genmoddep.c: Removed.
30364 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
30365 instead of GRUB_HOST_SIZEOF_VOID_P.
30366 * kern/dl.c: Likewise.
30368 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
30370 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30371 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30372 (GRUB_TARGET_SIZEOF_LONG): ... this.
30373 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30374 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30375 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30377 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30378 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30379 (GRUB_TARGET_SIZEOF_LONG): ... this.
30380 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30381 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30382 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30384 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30385 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30386 (GRUB_TARGET_SIZEOF_LONG): ... this.
30387 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30388 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30390 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
30391 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
30392 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
30393 instead of GRUB_HOST_SIZEOF_LONG.
30394 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
30395 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
30396 GRUB_CPU_WORDS_BIGENDIAN.
30397 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
30398 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
30401 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
30402 (genmoddep_SOURCES): Likewise.
30403 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
30404 (genmoddep_SOURCES): Likewise.
30405 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
30406 (genmoddep_SOURCES): Likewise.
30407 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
30409 (genmoddep_SOURCES): Likewise.
30411 * genmoddep.awk: New file.
30413 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
30414 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
30415 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
30416 (PModule::rule): Likewise.
30417 (Program::rule): Likewise.
30418 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
30419 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
30422 * configure.ac: Rewritten intensively to use host and target
30423 instead of build and host, respectively.
30425 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
30426 (host_cpu): Removed.
30427 (target_cpu): New variable.
30428 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
30429 (BUILD_CC): Removed.
30430 (BUILD_CFLAGS): Likewise.
30431 (BUILD_CPPFLAGS): Likewise.
30432 (TARGET_CC): New variable.
30433 (TARGET_CFLAGS): Likewise.
30434 (TARGET_CPPFLAGS): Likewise.
30435 (TARGET_LDFLAGS): Likewise.
30437 (include): Use target_cpu instead of host_cpu.
30438 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
30440 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
30442 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
30444 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
30445 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
30446 field 'false' to 'exec_on_false'.
30447 (grub_script_create_cmdif): Renamed argument names to reflect above
30450 * normal/execute.c (grub_script_execute_cmdif): Likewise.
30452 * normal/script.c (grub_script_create_cmdif): Likewise.
30454 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
30456 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
30458 (grub_hfsplus_btree_recptr): Likewise.
30459 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
30460 FILEBLOCK both to pass a block number and store next block
30462 (grub_hfsplus_read_block): Rewritten heavily to support an extent
30463 overflow file correctly. Specify errors appropriately, because
30464 fshelp expects that GRUB_ERRNO is set when fails. Reuse
30465 grub_hfsplus_btree_recptr to get the pointer to a found key.
30466 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
30469 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
30471 (_linux_mod_SOURCES): New variable.
30472 (_linux_mod_CFLAGS): Likewise.
30473 (_linux_mod_LDFLAGS): Likewise.
30474 (linux_mod_SOURCES): Likewise.
30475 (linux_mod_CFLAGS): Likewise.
30476 (linux_mod_LDFLAGS): Likewise.
30478 * DISTLIST: Added loader/i386/efi/linux.c,
30479 loader/i386/efi/linux_normal.c and
30480 include/grub/i386/efi/loader.h.
30482 * loader/i386/efi/linux.c: New file.
30483 * loader/i386/efi/linux_normal.c: Likewise.
30484 * include/grub/i386/efi/loader.h: Likewise.
30486 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
30488 * commands/blocklist.c: New file.
30490 * DISTLIST: Added commands/blocklist.c.
30492 * term/efi/console.c (grub_console_highlight_color): Use a lighter
30493 color for the background, and a darker color for the foreground.
30494 (grub_console_checkkey): Return READ_KEY.
30495 (grub_console_cls): Set the background to
30496 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
30498 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
30500 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
30501 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
30503 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
30506 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
30507 BG. The spec is wrong again.
30509 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
30511 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
30513 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30514 commands/blocklist.c.
30515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30517 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
30518 (blocklist_mod_SOURCES): New variable.
30519 (blocklist_mod_CFLAGS): Likewise.
30520 (blocklist_mod_LDFLAGS): Likewise.
30522 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
30524 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
30526 (lba_mode): Use %eax more intensively to reduce the code size.
30528 2006-05-20 Marco Gerards <marco@gnu.org>
30530 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
30532 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
30534 (script): Accept leading newlines.
30535 (newlines): New rule to describe 0 or more newlines.
30536 (commands): Accept `command' with trailing newline. Fixed the
30537 order in which arguments were passed to `grub_script_add_cmd'.
30538 Accept commands separated by newlines.
30539 (function): Changed to accept newlines.
30540 (menuentry) Rewritten.
30542 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
30543 front of the list, instead of to the end.
30545 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
30547 * util/i386/pc/grub-install.in (bindir): New variable.
30548 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
30549 Shaver <lbgwjl@gmail.com>.
30551 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
30553 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
30554 grub/machine/linux.h
30555 * loader/i386/pc/linux.c: Likewise.
30557 * include/grub/i386/pc/linux.h: Moved to ...
30558 * include/grub/i386/linux.h: ... here.
30560 * include/grub/i386/linux.h (struct linux_kernel_params): New
30563 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
30565 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
30567 (grub_video_vbe_blit_glyph): Likewise.
30568 (grub_video_vbe_blit_bitmap): Likewise.
30569 (grub_video_vbe_blit_render_target): Likewise.
30571 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
30573 * configure.ac (--with-platform): Properly quote the square
30576 2006-05-08 Marco Gerards <marco@gnu.org>
30578 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
30580 (kernel_elf_HEADERS): ...to this. Updated all users.
30581 (grubof_symlist.c): Renamed from this...
30582 (kernel_elf_symlist.c): ...to this. Updated all users.
30583 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30584 (grubof_SOURCES): Renamed from this...
30585 (kernel_elf_SOURCES): ...to this.
30586 (grubof_HEADERS): Renamed from this...
30587 (kernel_elf_HEADERS): ...to this.
30588 (grubof_CFLAGS): Renamed from this...
30589 (kernel_elf_CFLAGS): ...to this.
30590 (grubof_ASFLAGS): Renamed from this...
30591 (kernel_elf_ASFLAGS): ...to this.
30592 (grubof_LDFLAGS): Renamed from this...
30593 (kernel_elf_LDFLAGS): ...to this.
30595 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
30597 (kernel_elf_HEADERS): ...to this. Updated all users.
30598 (grubof_symlist.c): Renamed from this...
30599 (kernel_elf_symlist.c): ...to this. Updated all users.
30600 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30601 (grubof_SOURCES): Renamed from this...
30602 (kernel_elf_SOURCES): ...to this.
30603 (grubof_HEADERS): Renamed from this...
30604 (kernel_elf_HEADERS): ...to this.
30605 (grubof_CFLAGS): Renamed from this...
30606 (kernel_elf_CFLAGS): ...to this.
30607 (grubof_ASFLAGS): Renamed from this...
30608 (kernel_elf_ASFLAGS): ...to this.
30609 (grubof_LDFLAGS): Renamed from this...
30610 (kernel_elf_LDFLAGS): ...to this.
30612 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
30613 `kernel.elf' instead of `grubof'.
30615 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
30617 Add --with-platform to configure. Use pkglibdir instead of
30618 pkgdatadir. This is reported by Roger Leigh.
30620 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
30621 (host_vendor): Likewise.
30622 (host_os): Likewise.
30623 (pkgdatadir): Likewise.
30624 (platform): New variable.
30625 (pkglibdir): Likewise.
30626 Use PKGLIBDIR instead of PKGDATADIR.
30628 * util/i386/pc/grub-install.in (datadir): Removed.
30629 (host_vendor): Likewise.
30630 (host_os): Likewise.
30631 (pkgdatadir): Likewise.
30632 (platform): New variable.
30633 (pkglibdir): Likewise.
30634 Use PKGLIBDIR instead of PKGDATADIR.
30636 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
30637 instead of GRUB_DATADIR.
30639 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30641 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30644 * configure.ac (--with-platform): New option.
30645 Use PLATFORM instead of HOST_VENDOR to specify a platform.
30647 * Makefile.in: Include a makefile based on PLATFORM instead of
30649 (pkgdatadir): Not appended by the machine type.
30650 (pkglibdir): Appended by the machine type.
30651 (host_vendor): Removed.
30652 (platform): New variable.
30653 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
30654 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
30655 (uninstall): Likewise.
30657 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
30659 Use the environment context in the menu. Remove the commands
30660 "default" and "timeout", and use variables instead.
30662 * normal/menu.c: Include grub/env.h.
30663 (print_entry): Cast TITLE to silence gcc.
30664 (get_timeout): New function.
30665 (set_timeout): Likewise.
30666 (get_entry_number): Likewise.
30667 (run_menu): Use a default entry, a fallback entry and a timeout
30668 in the environment variables "default", "fallback" and
30669 "timeout". Also, tweak the default entry if it is not within the
30670 current menu entries.
30671 (grub_menu_run): Use a fallback entry in the environment variable
30674 * normal/main.c (read_config_file): Do not initialize
30675 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
30677 (grub_normal_execute): Use a data slot to store the menu.
30679 * include/grub/normal.h (struct grub_menu): Removed default_entry,
30680 fallback_entry and timeout.
30681 (struct grub_menu_list): Removed.
30682 (grub_menu_list_t): Likewise.
30683 (struct grub_context): Likewise.
30684 (grub_context_t): Likewise.
30685 (grub_context_get): Likewise.
30686 (grub_context_get_current_menu): Likewise.
30687 (grub_context_push_menu): Likewise.
30688 (grub_context_pop_menu): Likewise.
30689 (grub_default_init): Likewise.
30690 (grub_default_fini): Likewise.
30691 (grub_timeout_init): Likewise.
30692 (grub_timeout_fini): Likewise.
30694 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
30696 (normal_mod_SOURCES): Removed normal/context.c.
30698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
30699 commands/default.c, commands/timeout.c and normal/context.c.
30700 (normal_mod_SOURCES): Removed normal/context.c.
30702 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
30703 commands/timeout.c and normal/context.c.
30704 (normal_mod_SOURCES): Removed normal/context.c.
30706 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
30707 commands/default.c, commands/timeout.c and normal/context.c.
30708 (normal_mod_SOURCES): Removed normal/context.c.
30710 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
30712 (default_mod_SOURCES): Removed.
30713 (default_mod_CFLAGS): Likewise.
30714 (default_mod_LDFLAGS): Likewise.
30715 (timeout_mod_SOURCES): Removed.
30716 (timeout_mod_CFLAGS): Likewise.
30717 (timeout_mod_LDFLAGS): Likewise.
30719 * DISTLIST: Removed commands/default.c, commands/timeout.c and
30722 * commands/default.c: Removed.
30723 * commands/timeout.c: Likewise.
30724 * normal/context.c: Likewise.
30726 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
30728 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
30730 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
30732 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
30733 "next" to "prev" for readability.
30734 (struct grub_env_sorted_var): New struct.
30735 (grub_env_context): Renamed to ...
30736 (initial_context): ... this.
30737 (grub_env_var_context): Renamed to ...
30738 (current_context): ... this.
30739 (grub_env_find): Look only at CURRENT_CONTEXT.
30740 (grub_env_context_open): Rewritten to copy exported variables from
30742 (grub_env_context_close): Rewritten according to the new
30743 scheme. Also, add an assertion to prevent the initial context from
30745 (grub_env_insert): Removed the code for the sorted list.
30746 (grub_env_remove): Likewise.
30747 (grub_env_export): Simply mark the variable with
30748 GRUB_ENV_VAR_GLOBAL.
30749 (grub_env_set): A cosmetic change for naming consistency.
30750 (grub_env_get): Likewise.
30751 (grub_env_unset): Likewise.
30752 (grub_env_iterate): Rewritten to sort variables within this
30754 (grub_register_variable_hook): Fixed for naming consistency. Call
30755 grub_env_find again, only if NAME is not found at the first time.
30756 (mangle_data_slot_name): New function.
30757 (grub_env_set_data_slot): Likewise.
30758 (grub_env_get_data_slot): Likewise.
30759 (grub_env_unset_data_slot): Likewise.
30761 * include/grub/env.h (grub_env_var_type): New enum.
30762 (GRUB_ENV_VAR_LOCAL): New constant.
30763 (GRUB_ENV_VAR_GLOBAL): Likewise.
30764 (GRUB_ENV_VAR_DATA): Likewise.
30765 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
30767 (grub_env_set): Replace VAR with NAME for consistency.
30768 (grub_register_variable_hook): Likewise.
30769 (grub_env_export): Specify the name of the argument.
30770 (grub_env_set_data_slot): New prototype.
30771 (grub_env_get_data_slot): Likewise.
30772 (grub_env_unset_data_slot): Likewise.
30774 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
30776 Extend the loader so that GRUB can accept a loader which comes
30777 back to GRUB when a loaded image exits. Also, this change adds
30778 support for a chainloader on EFI.
30780 * term/efi/console.c: Include grub/misc.h.
30781 (grub_console_checkkey): Display a scan code on the top for
30782 debugging. This will be removed once the EFI port gets stable.
30783 Correct the scan code mapping.
30785 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
30786 allocate memory from larger regions, in order to reduce the number
30787 of allocated regions. Otherwise, the MacOSX loader panics.
30788 (filter_memory_map): Avoid less than 1MB for compatibility with
30790 (add_memory_regions): Allocate from the tail of a region, if
30791 possible, to avoid allocating a region near to 1MB, for the MacOSX
30794 * kern/efi/init.c (grub_efi_set_prefix): Specify
30795 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
30797 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
30798 argument IMAGE_HANDLE and specify it to get a loaded image.
30799 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
30800 grub_efi_get_loaded_image.
30801 (grub_efi_get_filename): Divide the length by the size of
30803 (grub_efi_get_device_path): New function.
30804 (grub_efi_print_device_path): Print End Device Path nodes. Divide
30805 the length by the size of grub_efi_char16_t for a file path device
30808 * kern/loader.c (grub_loader_noreturn): New variable.
30809 (grub_loader_set): Accept a new argument NORETURN. Set
30810 GRUB_LOADER_NORETURN to NORETURN.
30811 All callers changed.
30812 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
30815 * include/grub/efi/efi.h (grub_efi_get_device_path): New
30817 (grub_efi_get_loaded_image): Take an argument to specify an image
30820 * include/grub/loader.h (grub_loader_set): Added one more argument
30823 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
30824 instead of grub_efi_open_protocol.
30825 (grub_efidisk_get_device_name): Likewise.
30826 (grub_efidisk_close): Print a newline.
30827 (grub_efidisk_get_device_handle): Fixed to use
30828 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
30829 GRUB_EFI_DEVICE_PATH_TYPE.
30831 * disk/efi/efidisk.c (device_path_guid): Moved to ...
30832 * kern/efi/efi.c (device_path_guid): ... here.
30834 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
30836 (kernel_mod_HEADERS): Added efi/disk.h.
30837 (_chain_mod_SOURCES): New variable.
30838 (_chain_mod_CFLAGS): Likewise.
30839 (_chain_mod_LDFLAGS): Likewise.
30840 (chain_mod_SOURCES): Likewise.
30841 (chain_mod_CFLAGS): Likewise.
30842 (chain_mod_LDFLAGS): Likewise.
30844 * DISTLIST: Added include/grub/efi/chainloader.h,
30845 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
30847 * include/grub/efi/chainloader.h: New file.
30848 * loader/efi/chainloader.c: Likewise.
30849 * loader/efi/chainloader_normal.c: Likewise.
30851 2006-04-30 Marco Gerards <marco@gnu.org>
30853 * commands/configfile.c (grub_cmd_source): New function.
30854 (GRUB_MOD_INIT): Register the commands `source' and `.'.
30855 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
30857 2006-04-30 Marco Gerards <marco@gnu.org>
30859 * normal/execute.c (grub_script_execute_cmd): Change the return
30860 type to `grub_err_t'. Correctly return the error.
30861 (grub_script_execute_cmdline): In case a command line is not a
30862 command or a function, try to interpret it as an assignment.
30864 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
30866 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
30867 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
30868 skip a node whose name is obviously invalid as UTF-16,
30869 i.e. contains a NUL character. Stop the iteration when the last
30870 directory entry is found. Instead of using the return value of
30871 grub_hfsplus_btree_iterate_node, store the value in RET and use
30872 it, because the iterator can be stopped by the last directory
30875 2006-04-30 Marco Gerards <marco@gnu.org>
30877 * include/grub/env.h (grub_env_export): New prototype. Reported
30878 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
30880 2006-04-30 Marco Gerards <marco@gnu.org>
30882 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
30883 size of the extents in a catalog file record.
30885 2006-04-29 Marco Gerards <marco@gnu.org>
30887 * commands/configfile.c (grub_cmd_configfile): Execute the
30888 configfile within its own context.
30890 * include/grub/env.h (grub_env_context_open): New prototype.
30891 (grub_env_context_close): Likewise.
30893 * kern/env.c (grub_env): Removed.
30894 (grub_env_sorted): Likewise.
30895 (grub_env_context): New variable.
30896 (grub_env_var_context): Likewise.
30897 (grub_env_find): Search both the active context and the global
30899 (grub_env_context_open): New function.
30900 (grub_env_context_close): Likewise.
30901 (grub_env_insert): Likewise.
30902 (grub_env_remove): Likewise.
30903 (grub_env_export): Likewise.
30904 (grub_env_set): Changed to use helper functions to avoid code
30906 (grub_env_iterate): Rewritten so both the current context and the
30907 global context are being used.
30909 * normal/command.c (export_command): New function.
30910 (grub_command_init): Register the `export' function.
30912 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
30914 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
30915 explicitly to suppress gcc's warnings.
30916 * fs/fat.c (grub_fat_find_dir): Likewise.
30917 (grub_fat_label): Likewise.
30918 * fs/xfs.c (grub_xfs_read_inode): Likewise.
30919 (grub_xfs_mount): Likewise.
30920 (grub_xfs_label): Likewise.
30921 * fs/affs.c (grub_affs_mount): Likewise.
30922 (grub_affs_label): Likewise.
30923 (grub_affs_iterate_dir): Likewise.
30924 * fs/sfs.c (grub_sfs_mount): Likewise.
30925 (grub_sfs_iterate_dir): Likewise.
30926 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
30927 * fs/hfs.c (grub_hfs_mount): Likewise.
30928 (grub_hfs_cmp_catkeys): Likewise.
30929 (grub_hfs_find_dir): Likewise.
30930 (grub_hfs_dir): Likewise.
30931 (grub_hfs_label): Likewise.
30932 * fs/jfs.c (grub_jfs_mount): Likewise.
30933 (grub_jfs_opendir): Likewise.
30934 (grub_jfs_getent): Likewise.
30935 (grub_jfs_lookup_symlink): Likewise.
30936 (grub_jfs_label): Likewise.
30937 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
30938 (grub_hfsplus_iterate_dir): Likewise.
30939 (grub_hfsplus_btree_iterate_node): Made static.
30941 * util/grub-emu.c (prefix): New variable.
30942 (grub_machine_set_prefix): New function.
30943 (main): Do not set the environment variable "prefix" here. Only
30944 set PREFIX, which is used later by grub_machine_set_prefix.
30946 * include/grub/video.h: Do not include grub/symbol.h.
30947 (grub_video_register): Not exported. This symbol is not defined in
30949 (grub_video_unregister): Likewise.
30950 (grub_video_iterate): Likewise.
30951 (grub_video_setup): Likewise.
30952 (grub_video_restore): Likewise.
30953 (grub_video_get_info): Likewise.
30954 (grub_video_get_blit_format): Likewise.
30955 (grub_video_set_palette): Likewise.
30956 (grub_video_get_palette): Likewise.
30957 (grub_video_set_viewport): Likewise.
30958 (grub_video_get_viewport): Likewise.
30959 (grub_video_map_color): Likewise.
30960 (grub_video_map_rgb): Likewise.
30961 (grub_video_map_rgba): Likewise.
30962 (grub_video_fill_rect): Likewise.
30963 (grub_video_blit_glyph): Likewise.
30964 (grub_video_blit_bitmap): Likewise.
30965 (grub_video_blit_render_target): Likewise.
30966 (grub_video_scroll): Likewise.
30967 (grub_video_swap_buffers): Likewise.
30968 (grub_video_create_render_target): Likewise.
30969 (grub_video_delete_render_target): Likewise.
30970 (grub_video_set_active_render_target): Likewise.
30972 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
30974 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
30976 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
30977 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
30978 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
30979 instead of $(srcdir)/genkernsyms.sh.
30981 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
30982 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
30983 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
30984 instead of $(srcdir)/genkernsyms.sh.
30986 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
30987 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
30988 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
30989 instead of $(srcdir)/genkernsyms.sh.
30991 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
30992 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
30993 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
30994 instead of $(srcdir)/genkernsyms.sh.
30996 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
30999 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
31001 (gensymlist.sh): New target.
31002 (genkernsyms.sh): Likewise.
31004 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
31005 genkernsyms.sh.in and gensymlist.sh.in.
31007 * genkernsyms.sh: Removed.
31008 * gensymlist.sh: Likewise.
31010 * genkernsyms.sh.in: New file.
31011 * gensymlist.sh.in: Likewise.
31013 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31015 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
31016 clobber "prefix", since we may have already set it manually.
31018 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31020 * kern/misc.c (abort): New alias for grub_abort.
31022 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
31024 A new machine-specific function "grub_machine_set_prefix" is
31025 defined. This is called after loading modules, so that a prefix
31026 initialization can use modules. Also, this change adds an
31027 intensive debugging feature for the memory manager via the
31028 configure option "--enable-mm-debug".
31030 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
31033 * kern/sparc64/ieee1275/init.c (abort): Removed.
31034 (grub_stop): Likewise.
31035 (grub_exit): New function.
31036 (grub_set_prefix): Renamed to ...
31037 (grub_machine_set_prefix): ... this.
31038 (grub_machine_init): Do not call grub_set_prefix.
31040 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
31041 (grub_machine_set_prefix): ... this.
31042 (grub_machine_init): Do not call grub_set_prefix.
31044 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
31045 (grub_machine_init): Do not set the prefix here.
31047 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
31049 * kern/efi/init.c: Include grub/mm.h.
31050 (grub_efi_set_prefix): New function.
31052 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
31053 (grub_efi_get_filename): New function.
31054 (grub_print_device_path): Renamed to ...
31055 (grub_efi_print_device_path): ... this.
31057 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
31058 [MM_DEBUG] (grub_realloc): Likewise.
31059 [MM_DEBUG] (grub_free): Likewise.
31060 [MM_DEBUG] (grub_memalign): Likewise.
31061 [MM_DEBUG] (grub_mm_debug): New variable.
31062 [MM_DEBUG] (grub_debug_malloc): New function.
31063 [MM_DEBUG] (grub_debug_free): New function.
31064 [MM_DEBUG] (grub_debug_realloc): New function.
31065 [MM_DEBUG] (grub_debug_memalign): New function.
31067 * kern/misc.c (grub_abort): Print a newline to distinguish
31070 * kern/main.c (grub_main): Call grub_machine_set_prefix and
31071 grub_set_root_dev after loading modules. This is necessary when
31072 setting a prefix depends on modules.
31074 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
31075 (grub_efi_print_device_path): ... this.
31076 (grub_efi_get_filename): New prototype.
31077 (grub_efi_set_prefix): Likewise.
31079 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
31081 (grub_efidisk_get_device_handle): New prototype.
31082 (grub_efidisk_get_device_name): Likewise.
31084 * include/grub/mm.h: Include config.h.
31085 (MM_DEBUG): Removed.
31086 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
31087 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
31088 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
31089 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
31090 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
31091 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
31092 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
31093 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
31094 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
31096 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
31098 * disk/efi/efidisk.c: Include grub/partition.h.
31099 (iterate_child_devices): New function.
31100 (add_device): First, compare only last device path nodes, so that
31101 devices are sorted by the types.
31102 (grub_efidisk_get_device_handle): New function.
31103 (grub_efidisk_get_device_name): Likewise.
31105 * configure.ac (--enable-mm-debug): New option to enable the
31106 memory manager debugging feature. This makes the binary much
31107 bigger, so is disabled by default.
31109 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
31111 Use grub_abort instead of grub_stop, and grub_exit must be
31112 define in each architecture now. Also, this change adds support
31115 * util/i386/pc/grub-probefs.c: Include grub/term.h.
31116 (grub_getkey): New function.
31117 (grub_term_get_current): Likewise.
31119 * util/i386/pc/grub-setup.c: Include grub/term.h.
31120 (grub_getkey): New function.
31121 (grub_term_get_current): Likewise.
31123 * util/misc.c (grub_stop): Renamed to ...
31124 (grub_exit): ... this.
31126 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
31127 (grub_exit): ... this.
31128 (grub_machine_init): Use grub_abort instead of abort.
31129 (grub_stop): Removed.
31131 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
31134 * kern/i386/pc/startup.S (grub_exit): New function.
31135 (cold_reboot): New label.
31137 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
31138 (grub_efi_init): Call grub_efidisk_init.
31139 (grub_efi_fini): Call grub_efidisk_fini.
31141 * kern/efi/efi.c: Include grub/mm.h.
31142 (grub_efi_console_control_guid): Renamed to ...
31143 (console_control_guid): ... this.
31144 (grub_efi_loaded_image_guid): Renamed to ...
31145 (loaded_image_guid): ... this.
31146 (grub_efi_locate_handle): New function.
31147 (grub_efi_open_protocol): Likewise.
31148 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
31149 GRUB_EFI_CONSOLE_CONTROL_GUID.
31150 (grub_efi_exit): Removed.
31151 (grub_stop): Likewise.
31152 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
31153 (grub_exit): New function.
31154 (grub_print_device_path): Likewise.
31156 * kern/rescue.c (grub_rescue_cmd_exit): New function.
31157 (grub_enter_rescue_mode): Register "exit".
31159 * kern/misc.c (grub_real_dprintf): A cosmetic change.
31160 (grub_abort): New function.
31162 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
31164 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
31166 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
31168 * include/grub/efi/efi.h (grub_efi_exit): Removed.
31169 (grub_print_device_path): New prototype.
31170 (grub_efi_locate_handle): Likewise.
31171 (grub_efi_open_protocol): Likewise.
31173 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
31174 * disk/efi/efidisk.c: Likewise.
31176 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
31178 * include/grub/efi/console_control.h
31179 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
31181 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
31182 last 8 bytes as an array.
31183 (GRUB_EFI_DISK_IO_GUID): New macro.
31184 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
31185 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
31186 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
31188 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
31189 (struct grub_efi_device_path): Rename the member "sub_type" to
31191 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
31192 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
31193 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
31194 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
31195 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
31196 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
31197 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
31198 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
31199 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
31200 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
31201 (struct grub_efi_pci_device_path): New structure.
31202 (grub_efi_pci_device_path_t): New type.
31203 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
31204 (struct grub_efi_pccard_device_path): New structure.
31205 (grub_efi_pccard_device_path_t): New type.
31206 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
31207 (struct grub_efi_memory_mapped_device_path): New structure.
31208 (grub_efi_memory_mapped_device_path_t): New type.
31209 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
31210 (struct grub_efi_vendor_device_path): New structure.
31211 (grub_efi_vendor_device_path_t): New type.
31212 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
31213 (struct grub_efi_controller_device_path): New structure.
31214 (grub_efi_controller_device_path_t): New type.
31215 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
31216 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
31217 (struct grub_efi_acpi_device_path): New structure.
31218 (grub_efi_acpi_device_path_t): New type.
31219 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
31220 (struct grub_efi_expanded_acpi_device_path): New structure.
31221 (grub_efi_expanded_acpi_device_path_t): New type.
31222 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
31223 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
31224 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
31225 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
31226 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
31227 (struct grub_efi_atapi_device_path): New structure.
31228 (grub_efi_atapi_device_path_t): New type.
31229 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
31230 (struct grub_efi_fibre_channel_device_path): New structure.
31231 (grub_efi_fibre_channel_device_path_t): New type.
31232 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
31233 (struct grub_efi_1394_device_path): New structure.
31234 (grub_efi_1394_device_path_t): New type.
31235 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
31236 (struct grub_efi_usb_device_path): New structure.
31237 (grub_efi_usb_device_path_t): New type.
31238 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
31239 (struct grub_efi_usb_class_device_path): New structure.
31240 (grub_efi_usb_class_device_path_t): New type.
31241 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
31242 (struct grub_efi_i2o_device_path): New structure.
31243 (grub_efi_i2o_device_path_t): New type.
31244 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
31245 (struct grub_efi_mac_address_device_path): New structure.
31246 (grub_efi_mac_address_device_path_t): New type.
31247 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
31248 (struct grub_efi_ipv4_device_path): New structure.
31249 (grub_efi_ipv4_device_path_t): New type.
31250 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
31251 (struct grub_efi_ipv6_device_path): New structure.
31252 (grub_efi_ipv6_device_path_t): New type.
31253 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
31254 (struct grub_efi_infiniband_device_path): New structure.
31255 (grub_efi_infiniband_device_path_t): New type.
31256 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
31257 (struct grub_efi_uart_device_path): New structure.
31258 (grub_efi_uart_device_path_t): New type.
31259 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
31260 (struct grub_efi_vendor_messaging_device_path): New structure.
31261 (grub_efi_vendor_messaging_device_path_t): New type.
31262 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
31263 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
31264 (struct grub_efi_hard_drive_device_path): New structure.
31265 (grub_efi_hard_drive_device_path_t): New type.
31266 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
31267 (struct grub_efi_cdrom_device_path): New structure.
31268 (grub_efi_cdrom_device_path_t): New type.
31269 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
31270 (struct grub_efi_vendor_media_device_path): New structure.
31271 (grub_efi_vendor_media_device_path_t): New type.
31272 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
31273 (struct grub_efi_file_path_device_path): New structure.
31274 (grub_efi_file_path_device_path_t): New type.
31275 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
31276 (struct grub_efi_protocol_device_path): New structure.
31277 (grub_efi_protocol_device_path_t): New type.
31278 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
31279 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
31280 (struct grub_efi_bios_device_path): New structure.
31281 (grub_efi_bios_device_path_t): New type.
31282 (struct grub_efi_disk_io): New structure.
31283 (grub_efi_disk_io_t): New type.
31284 (struct grub_efi_block_io_media): New structure.
31285 (grub_efi_block_io_media_t): New type.
31286 (struct grub_efi_block_io): New structure.
31287 (grub_efi_block_io_t): New type.
31289 * include/grub/misc.h (grub_stop): Removed.
31290 (grub_exit): New prototype.
31291 (grub_abort): Likewise.
31293 * include/grub/disk.h (enum grub_disk_dev_id): Added
31294 GRUB_DISK_DEVICE_EFIDISK_ID.
31296 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
31297 disk/efi/efidisk.c.
31298 (kernel_syms.lst): Remove the target if an error occurs.
31300 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
31302 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
31303 as it was simply too buggy.
31305 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
31307 * kern/misc.c (grub_lltoa): New function.
31308 (grub_vsprintf): Added support for the long long suffix,
31311 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
31313 * Makefile.in (LDFLAGS): Add variable.
31314 (LD): Remove variable.
31315 * configure.ac: Add -m32 to LDFLAGS.
31316 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
31317 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
31318 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
31319 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
31320 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
31322 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
31323 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
31324 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
31326 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
31328 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
31329 length for unknown glyph.
31331 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31333 Add support for pre-loaded modules into the EFI port.
31335 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
31336 completely. Accept one more argument DIR. The caller has changed.
31338 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
31340 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
31341 (grub_efi_loaded_image_guid): New variable.
31342 (grub_efi_get_loaded_image): New function.
31343 (grub_arch_modules_addr): Likewise.
31345 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
31348 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
31349 (struct grub_efi_loaded_image): New structure.
31350 (grub_efi_loaded_image_t): New type.
31352 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31354 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
31355 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
31356 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
31358 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
31360 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
31362 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
31364 * DISTLIST: Added include/grub/efi/console.h,
31365 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
31366 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31368 * include/grub/efi/console.h: New file.
31369 * include/grub/efi/time.h: Likewise.
31370 * include/grub/i386/efi/kernel.h: Likewise.
31371 * kern/efi/init.c: Likewise.
31372 * kern/efi/mm.c: Likewise.
31373 * term/efi/console.c: Likewise.
31375 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
31376 (grub_stop): Removed.
31377 (grub_get_rtc): Likewise.
31378 (grub_machine_init): Simply call grub_efi_init.
31379 (grub_machine_fini): Call grub_efi_fini.
31381 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
31382 (grub_efi_output_string): Removed.
31383 (grub_efi_stall): New function.
31384 (grub_stop): Likewise.
31385 (grub_get_rtc): Likewise.
31387 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
31388 (grub_efi_stall): New prototype.
31389 (grub_efi_allocate_pages): Likewise.
31390 (grub_efi_free_pages): Likewise.
31391 (grub_efi_get_memory_map): Likewise.
31392 (grub_efi_mm_init): Likewise.
31393 (grub_efi_mm_fini): Likewise.
31394 (grub_efi_init): Likewise.
31395 (grub_efi_fini): Likewise.
31397 * include/grub/i386/efi/time.h: Do not include
31398 grub/symbol.h. Include grub/efi/time.h.
31399 (GRUB_TICKS_PER_SECOND): Removed.
31400 (grub_get_rtc): Likewise.
31402 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
31403 Added padding. The EFI spec is buggy.
31404 (GRUB_EFI_BLACK): New macro.
31405 (GRUB_EFI_BLUE): Likewise.
31406 (GRUB_EFI_GREEN): Likewise.
31407 (GRUB_EFI_CYAN): Likewise.
31408 (GRUB_EFI_RED): Likewise.
31409 (GRUB_EFI_MAGENTA): Likewise.
31410 (GRUB_EFI_BROWN): Likewise.
31411 (GRUB_EFI_LIGHTGRAY): Likewise.
31412 (GRUB_EFI_BRIGHT): Likewise.
31413 (GRUB_EFI_DARKGRAY): Likewise.
31414 (GRUB_EFI_LIGHTBLUE): Likewise.
31415 (GRUB_EFI_LIGHTGREEN): Likewise.
31416 (GRUB_EFI_LIGHTCYAN): Likewise.
31417 (GRUB_EFI_LIGHTRED): Likewise.
31418 (GRUB_EFI_LIGHTMAGENTA): Likewise.
31419 (GRUB_EFI_YELLOW): Likewise.
31420 (GRUB_EFI_WHITE): Likewise.
31421 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
31422 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
31423 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
31424 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
31425 (GRUB_EFI_BACKGROUND_RED): Likewise.
31426 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
31427 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
31428 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
31429 (GRUB_EFI_TEXT_ATTR): Likewise.
31431 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
31432 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31433 (kernel_mod_HEADERS): Added efi/time.h.
31435 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
31437 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
31438 include/grub/efi/api.h, include/grub/efi/console_control.h,
31439 include/grub/efi/efi.h, include/grub/efi/pe32.h,
31440 include/grub/i386/efi/time.h, kern/efi/efi.c,
31441 kern/i386/efi/init.c, kern/i386/efi/startup.S,
31442 and util/i386/efi/grub-mkimage.c.
31444 * Makefile.in (RMKFILES): Added i386-efi.rmk.
31446 * genmk.rb (PModule#rule): Do not export symbols if
31447 #{prefix}_EXPORTS is set to "no".
31449 * conf/i386-efi.mk: New file.
31450 * conf/i386-efi.rmk: Likewise.
31451 * include/grub/efi/api.h: Likewise.
31452 * include/grub/efi/console_control.h: Likewise.
31453 * include/grub/efi/efi.h: Likewise.
31454 * include/grub/efi/pe32.h: Likewise.
31455 * include/grub/i386/efi/time.h: Likewise.
31456 * kern/efi/efi.c: Likewise.
31457 * kern/i386/efi/init.c: Likewise.
31458 * kern/i386/efi/startup.S: Likewise.
31459 * util/i386/efi/grub-mkimage.c: Likewise.
31461 2006-04-17 Marco Gerards <marco@gnu.org>
31463 * include/grub/script.h: Include <grub/parser.h> and
31464 "grub_script.tab.h".
31465 (struct grub_lexer_param): New struct.
31466 (struct grub_parser_param): Likewise.
31467 (grub_script_create_arglist): Pass the state in an argument.
31468 (grub_script_add_arglist): Likewise.
31469 (grub_script_create_cmdline): Likewise.
31470 (grub_script_create_cmdblock): Likewise.
31471 (grub_script_create_cmdif): Likewise.
31472 (grub_script_create_cmdmenu): Likewise.
31473 (grub_script_add_cmd): Likewise.
31474 (grub_script_arg_add): Likewise.
31475 (grub_script_lexer_ref): Likewise.
31476 (grub_script_lexer_deref): Likewise.
31477 (grub_script_lexer_record_start): Likewise.
31478 (grub_script_lexer_record_stop): Likewise.
31479 (grub_script_mem_record): Likewise.
31480 (grub_script_mem_record_stop): Likewise.
31481 (grub_script_malloc): Likewise.
31482 (grub_script_yylex): Likewise.
31483 (grub_script_yyparse): Likewise.
31484 (grub_script_yyerror): Likewise.
31485 (grub_script_yylex): Likewise.
31486 (grub_script_lexer_init): Return the state.
31488 * normal/lexer.c (grub_script_lexer_state): Removed variable.
31489 (grub_script_lexer_done): Likewise.
31490 (grub_script_lexer_getline): Likewise.
31491 (grub_script_lexer_refs): Likewise.
31492 (script): Likewise.
31493 (newscript): Likewise.
31494 (record): Likewise.
31495 (recording): Likewise.
31496 (recordpos): Likewise.
31497 (recordlen): Likewise.
31498 (grub_script_lexer_init): Return the state instead of setting
31500 (grub_script_lexer_ref): Use the newly added argument for state
31501 instead of globals.
31502 (grub_script_lexer_deref): Likewise.
31503 (grub_script_lexer_record_start): Likewise.
31504 (grub_script_lexer_record_stop): Likewise.
31505 (recordchar): Likewise.
31506 (nextchar): Likewise.
31507 (grub_script_yylex2): Likewise.
31508 (grub_script_yylex): Likewise.
31509 (grub_script_yyerror): Likewise.
31511 * normal/parser.y (func_mem): Removed variable.
31512 (menu_entry): Likewise.
31514 (%lex-param): New parser option.
31515 (%parse-param): Likewise.
31516 (script): Always return the AST.
31517 (argument): Pass the state around.
31518 (arguments): Likewise.
31519 (grubcmd): Likewise.
31520 (commands): Likewise.
31521 (function): Likewise.
31522 (menuentry): Likewise.
31523 (if_statement): Likewise.
31526 * normal/script.c (grub_script_memused): Removed variable.
31527 (grub_script_parsed): Likewise.
31528 (grub_script_malloc): Added a state argument. Use that instead of
31530 (grub_script_mem_record): Likewise.
31531 (grub_script_mem_record_stop): Likewise.
31532 (grub_script_arg_add): Likewise.
31533 (grub_script_add_arglist): Likewise.
31534 (grub_script_create_cmdline): Likewise.
31535 (grub_script_create_cmdif): Likewise.
31536 (grub_script_create_cmdmenu): Likewise.
31537 (grub_script_add_cmd): Likewise.
31538 (grub_script_parse): Setup the state before calling the parser.
31540 2006-04-16 Marco Gerards <marco@gnu.org>
31542 * normal/command.c (grub_command_init): Remove the title command.
31544 * normal/lexer.c (grub_script_yylex): Renamed from this...
31545 (grub_script_yylex2): ... to this.
31546 (grub_script_yylex): New function. Temporary
31547 introduced to filter some tokens.
31548 (grub_script_yyerror): Print a newline.
31550 * normal/main.c (read_config_file): Output information about the
31551 lines that contain errors. Wait for a key after all lines have
31552 been processed. Don't return an empty menu.
31554 * normal/parser.y (func_mem): Don't initialize.
31555 (menu_entry): Likewise.
31556 (err): New variable.
31557 (script): Don't return anything when an error was encountered.
31558 (ws, returns): Removed rules.
31559 (argument): Disabled concatenated variable support.
31560 (arguments): Remove explicit separators.
31561 (grubcmd): Likewise.
31562 (function): Likewise.
31563 (menuentry): Likewise.
31565 (commands): Likewise. Add error handling.
31567 * normal/script.c (grub_script_create_cmdline): If
31568 `grub_script_parsed' is 0, assume the parser encountered an error.
31570 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
31572 * configure.ac: Add support for EFI. Fix the typo
31573 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
31575 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31577 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
31578 foreign multibyte characters should be shown correctly.
31580 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31582 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
31584 (read_config_file): Made it to close file before returning.
31586 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
31588 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
31589 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
31590 video/i386/pc/vbefill.c.
31592 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
31593 video/i386/pc/vbefill.c.
31595 * include/grub/video.h (grub_video_blit_format): New enum.
31596 (grub_video_mode_info): Added new member blit_format.
31597 (grub_video_get_blit_format): New function prototype.
31599 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
31600 function prototype.
31601 (grub_video_vbe_map_rgb): Likewise.
31602 (grub_video_vbe_unmap_color): Likewise.
31604 * include/grub/i386/pc/vbeblit.h: New file.
31606 * include/grub/i386/pc/vbefill.h: New file.
31608 * video/video.c (grub_video_get_blit_format): New function.
31609 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
31610 (grub_video_vbe_map_rgb): Likewise.
31611 (grub_video_vbe_unmap_color): Likewise.
31613 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
31615 (grub_video_vbe_blit_render_target): Changed to use more optimized
31617 (grub_video_vbe_setup): Added detection for optimized settings.
31618 (grub_video_vbe_create_render_target): Likewise.
31620 * video/i386/pc/vbeblit.c: New file.
31622 * video/i386/pc/vbefill.c: New file.
31624 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
31626 * font/manager.c (grub_font_get_glyph): Removed font fixup from
31629 * util/unifont2pff.rb: ... and moved it to here. Improved argument
31630 parsing to support both hex and dec ranges. If filename was missing
31631 show usage information.
31633 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
31635 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
31636 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
31638 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
31639 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
31640 (video_mod_SOURCES): Added.
31641 (video_mod_CFLAGS): Likewise.
31642 (video_mod_LDFLAGS): Likewise.
31643 (gfxterm_mod_SOURCES): Likewise.
31644 (gfxterm_mod_CFLAGS): Likewise.
31645 (gfxterm_mod_LDFLAGS): Likewise.
31646 (videotest_mod_SOURCES): Likewise.
31647 (videotest_mod_CFLAGS): Likewise.
31648 (videotest_mod_LDFLAGS): Likewise.
31649 (vesafb_mod_SOURCES): Removed.
31650 (vesafb_mod_CFLAGS): Likewise.
31651 (vesafb_mod_LDFLAGS): Likewise.
31652 (vga_mod_SOURCES): Likewise.
31653 (vga_mod_CFLAGS): Likewise.
31654 (vga_mod_LDFLAGS): Likewise.
31656 * commands/videotest.c: New file.
31658 * font/manager.c (fill_with_default_glyph): Modified to use
31660 (grub_font_get_glyph): Likewise.
31661 (fontmanager): Renamed from this...
31662 (font_manager): ... to this.
31664 * include/grub/font.h (grub_font_glyph): Added new structure.
31665 (grub_font_get_glyph): Modified to use grub_font_glyph.
31667 * include/grub/misc.h (grub_abs): Added as inline function.
31669 * include/grub/video.h: New file.
31671 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
31672 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
31673 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
31674 (grub_vbe_get_controller_info): Renamed from this...
31675 (grub_vbe_bios_get_controller_info): ... to this.
31676 (grub_vbe_get_mode_info): Renamed from this...
31677 (grub_vbe_bios_get_mode_info): ... to this.
31678 (grub_vbe_set_mode): Renamed from this...
31679 (grub_vbe_bios_set_mode): ... to this.
31680 (grub_vbe_get_mode): Renamed from this...
31681 (grub_vbe_bios_get_mode): ... to this.
31682 (grub_vbe_set_memory_window): Renamed from this...
31683 (grub_vbe_bios_set_memory_window): ... to this.
31684 (grub_vbe_get_memory_window): Renamed from this...
31685 (grub_vbe_bios_get_memory_window): ... to this.
31686 (grub_vbe_set_scanline_length): Renamed from this...
31687 (grub_vbe_set_scanline_length): ... to this.
31688 (grub_vbe_get_scanline_length): Renamed from this...
31689 (grub_vbe_bios_get_scanline_length): ... to this.
31690 (grub_vbe_set_display_start): Renamed from this...
31691 (grub_vbe_bios_set_display_start): ... to this.
31692 (grub_vbe_get_display_start): Renamed from this...
31693 (grub_vbe_bios_get_display_start): ... to this.
31694 (grub_vbe_set_palette_data): Renamed from this...
31695 (grub_vbe_bios_set_palette_data): ... to this.
31696 (grub_vbe_set_pixel_rgb): Removed.
31697 (grub_vbe_set_pixel_index): Likewise.
31699 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
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_bios_get_controller_info): Fixed problem with registers
31723 getting corrupted after calling it. Added more pushes and pops.
31724 (grub_vbe_bios_set_mode): Likewise.
31725 (grub_vbe_bios_get_mode): Likewise.
31726 (grub_vbe_bios_get_memory_window): Likewise.
31727 (grub_vbe_bios_set_scanline_length): Likewise.
31728 (grub_vbe_bios_get_scanline_length): Likewise.
31729 (grub_vbe_bios_get_display_start): Likewise.
31730 (grub_vbe_bios_set_palette_data): Likewise.
31732 * normal/cmdline.c (cl_set_pos): Refresh the screen.
31733 (cl_insert): Likewise.
31734 (cl_delete): Likewise.
31736 * term/gfxterm.c: New file.
31738 * term/i386/pc/vesafb.c: Removed file.
31740 * video/video.c: New file.
31742 * video/i386/pc/vbe.c (real2pm): Added new function.
31743 (grub_video_vbe_draw_pixel): Likewise.
31744 (grub_video_vbe_get_video_ptr): Likewise.
31745 (grub_video_vbe_get_pixel): Likewise
31746 (grub_video_vbe_init): Likewise.
31747 (grub_video_vbe_fini): Likewise.
31748 (grub_video_vbe_setup): Likewise.
31749 (grub_video_vbe_get_info): Likewise.
31750 (grub_video_vbe_set_palette): Likewise.
31751 (grub_video_vbe_get_palette): Likewise.
31752 (grub_video_vbe_set_viewport): Likewise.
31753 (grub_video_vbe_get_viewport): Likewise.
31754 (grub_video_vbe_map_color): Likewise.
31755 (grub_video_vbe_map_rgb): Likewise.
31756 (grub_video_vbe_map_rgba): Likewise.
31757 (grub_video_vbe_unmap_color): Likewise.
31758 (grub_video_vbe_fill_rect): Likewise.
31759 (grub_video_vbe_blit_glyph): Likewise.
31760 (grub_video_vbe_blit_bitmap): Likewise.
31761 (grub_video_vbe_blit_render_target): Likewise.
31762 (grub_video_vbe_scroll): Likewise.
31763 (grub_video_vbe_swap_buffers): Likewise.
31764 (grub_video_vbe_create_render_target): Likewise.
31765 (grub_video_vbe_delete_render_target): Likewise.
31766 (grub_video_vbe_set_active_render_target): Likewise.
31767 (grub_vbe_set_pixel_rgb): Remove function.
31768 (grub_vbe_set_pixel_index): Likewise.
31769 (index_color_mode): Remove static variable.
31770 (active_mode): Likewise.
31771 (framebuffer): Likewise.
31772 (bytes_per_scan_line): Likewise.
31773 (grub_video_vbe_adapter): Added new static variable.
31774 (framebuffer): Likewise.
31775 (render_target): Likewise.
31776 (initial_mode): Likewise.
31777 (mode_in_use): Likewise.
31778 (mode_list): Likewise.
31780 2006-03-10 Marco Gerards <marco@gnu.org>
31782 * configure.ac (AC_INIT): Bumped to 1.93.
31784 * DISTLIST: Added `include/grub/hfs.h'.
31786 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
31788 * boot/i386/pc/boot.S (general_error): Before looping, try INT
31789 18H, which might help the BIOS falling back to next boot media.
31791 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
31793 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
31794 Poe Chen <poe.poechen@gmail.com>.
31796 2006-01-17 Marco Gerards <marco@gnu.org>
31798 * include/grub/normal.h: Include <grub/script.h>.
31799 (grub_command_list): Removed struct.
31800 (grub_command_list_t): Removed type.
31801 (grub_menu_entry): Remove members `num' and `command_list'. Add
31802 members `commands' and `sourcecode'.
31803 * include/grub/script.h: Add inclusion guards.
31804 (grub_script_cmd_menuentry): New struct.
31805 (grub_script_execute_menuentry): New prototype.
31806 (grub_script_lexer_record_start): Likewise.
31807 (grub_script_lexer_record_stop): Likewise.
31808 * normal/execute.c (grub_script_execute_menuentry): New function.
31809 * normal/lexer.c (record, recording, recordpos, recordlen): New
31811 (grub_script_lexer_record_start): New function.
31812 (grub_script_lexer_record_stop): Likewise.
31813 (recordchar): Likewise.
31814 (nextchar): Likewise.
31815 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
31816 2048 as the buffer size. Add the tokens `menuentry' and `@'.
31817 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
31818 (current_menu): New variable.
31819 (free_menu): Mainly rewritten.
31820 (grub_normal_menu_addentry): New function.
31821 (read_config_file): Rewritten.
31822 * normal/menu.c (run_menu_entry): Mainly rewritten.
31823 * normal/menu_entry.c (make_screen): Rewritten the code to insert
31825 (run): Mainly rewritten.
31826 * normal/parser.y (menu_entry): New variable.
31827 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
31828 (menuentry): New rule.
31829 (command): Add `menuentry'.
31830 (if_statement): Allow additional returns before `fi'.
31831 * normal/script.c (grub_script_create_cmdmenu): New function.
31833 2006-01-03 Marco Gerards <marco@gnu.org>
31835 * INSTALL: GNU Bison is required.
31836 * configure.ac: Rewritten the test to detect Bison.
31837 * Makefile.in (YACC): New variable. Reported by Xun Sun
31838 <xun.sun.cn@gmail.com>.
31840 2006-01-03 Marco Gerards <marco@gnu.org>
31842 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
31843 the HFS+ filesystem to filesystem blocks.
31844 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
31845 GCC warning is silenced.
31847 2006-01-03 Marco Gerards <marco@gnu.org>
31849 * partmap/apple.c (apple_partition_map_iterate): Convert the data
31850 read from disk from big endian to host byte order.
31852 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
31854 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
31856 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
31857 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
31858 embedded HFS+ filesystem.
31859 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
31860 (grub_hfs_sblock): Move from here...
31861 * include/grub/hfs.h: To here... New file.
31862 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
31864 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
31866 (grub_hfsplus_volheader): Change type of member `magic' to
31868 (grub_hfsplus_data): Add new member `embedded_offset'.
31869 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
31871 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
31872 Calculate the offset.
31874 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31876 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
31878 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
31880 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31882 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
31883 ENV->NAME is NULL after allocating ENV->VALUE.
31885 2005-12-25 Marco Gerards <marco@gnu.org>
31887 * kern/env.c (grub_env_set): Rewritten the error handling code.
31889 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31891 * geninit.sh: Made more robust, and more portable.
31893 2005-12-25 Marco Gerards <marco@gnu.org>
31895 Add support for Apple HFS+ filesystems.
31897 * fs/hfsplus.c: New file.
31899 * DISTLIST: Added `fs/hfsplus.c'.
31901 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
31902 (hfsplus_mod_SOURCES): New variable.
31903 (hfsplus_mod_CFLAGS): Likewise.
31904 (hfsplus_mod_LDFLAGS): Likewise.
31905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
31906 (grub_setup_SOURCES): Likewise.
31907 (grub_mkdevicemap_SOURCES): Likewise.
31908 (grub_emu_SOURCES): Likewise.
31909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31911 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
31913 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
31915 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
31917 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
31918 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
31919 include/grub/parser.h, include/grub/script.h, kern/parser.c,
31920 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
31921 normal/lexer.c, normal/parser.y, normal/script.c, and
31923 Removed kern/sparc64/cache.c.
31925 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
31926 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
31929 * configure.ac (AC_INIT): Bumped to 1.92.
31931 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
31933 * kern/err.c (grub_error_push): Added new function to support error
31935 (grub_error_pop): Likewise.
31936 (grub_error_stack_items): New local variable to support error stacks.
31937 (grub_error_stack_pos): Likewise.
31938 (grub_error_stack_assert): Likewise.
31939 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
31941 (grub_print_error): Added support to print errors from error stack.
31943 * include/grub/err.h (grub_error_push): Added function prototype.
31944 (grub_error_pop): Likewise.
31946 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
31948 * configure.ac: Accept `powerpc64' as host_cpu.
31949 (amd64): Rename to `biarch32'.
31951 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
31952 non-cacheline-aligned addresses.
31954 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
31955 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
31956 if `size' is non-zero.
31958 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
31960 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
31961 and `cd' to make sure the filename is not prefixed with a
31963 (pkgdata_MODULES): Add `gpt.mod'.
31964 (gpt_mod_SOURCES): New variable.
31965 (gpt_mod_CFLAGS): Likewise.
31966 (gpt_mod_LDFLAGS): Likewise.
31968 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
31970 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
31973 * partmap/gpt.c: New file.
31975 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
31976 GPT partition map is detected.
31978 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
31980 * commands/i386/pc/play.c: New file.
31981 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
31982 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
31985 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
31987 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
31988 ((unused))' to silence gcc warning.
31990 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
31992 * configure.ac: Correct `AC_PROG_YACC' test.
31994 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
31996 * util/powerpc/ieee1275/grub-install.in: Run the mount point
31997 check before installing files.
31999 2005-11-22 Mike Small <smallm@panix.com>
32001 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
32002 number regex so multidigit numbers are recognized correctly.
32004 2005-11-22 Mike Small <smallm@panix.com>
32006 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
32007 debugging message before attempting to claim memory.
32008 (grub_rescue_cmd_initrd): Add a claim debugging message and try
32009 multiple addresses in case of failure.
32011 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32013 * term/tparm.c (get_space): Remove empty `if' statement.
32015 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
32017 * kern/parser.c (check_varstate): Rename `state' to 's'.
32019 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32021 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
32022 variable definitions to the beginning of each function. Sort stack
32024 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
32025 `buf' argument to `char *'.
32027 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32029 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
32030 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32031 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32032 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32033 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32034 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32035 configfile.mod, search.mod, gzio.mod and test.mod.
32036 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32037 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32038 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32039 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32040 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32041 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32042 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32043 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32044 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32045 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32046 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32047 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32048 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32049 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32050 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32051 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32052 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32053 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32054 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32055 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32056 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32057 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32058 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
32060 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
32062 (pkgdata_MODULES): Add test.mod.
32064 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32066 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
32067 appending to variables with "+=".
32068 (PModule): Use full pathname to generate *.lst filenames.
32070 * Makefile.in: Fixed list rules moved from genmk.rb.
32071 (.DELETE_ON_ERROR): New special target.
32072 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
32074 * conf/i386-pc.rmk: Include conf/common.mk.
32075 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
32076 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
32077 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32078 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32079 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32080 configfile.mod, search.mod, gzio.mod and test.mod.
32081 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32082 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32083 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32084 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32085 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32086 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32087 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32088 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32089 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32090 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32091 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32092 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32093 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32094 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32095 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32096 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32097 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32098 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32099 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32100 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32101 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32102 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32103 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
32105 * conf/common.rmk: ... to here. New file.
32107 * conf/common.mk: New file.
32109 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
32111 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
32112 (grub_script.tab.c): ... here.
32114 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
32115 (grub_script.tab.c): ... here.
32117 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
32118 (grub_script.tab.c): ... here.
32120 * normal/command.c (grub_command_find): Fixed a memory leak of
32121 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
32123 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32125 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
32126 "@" which marks the start of a comment on ARM.
32127 (VARIABLE): Likewise.
32129 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32131 Add support for Linux/ADFS partition tables.
32133 * partmap/acorn.c: New file.
32135 * include/grub/acorn_filecore.h: Likewise.
32137 * DISTLIST: Added `partmap/acorn.c' and
32138 `include/grub/acorn_filecore.h'.
32140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32142 (pkgdata_MODULES): Add `acorn.mod'.
32143 (acorn_mod_SOURCES): New variable.
32144 (acorn_mod_CFLAGS): Likewise.
32146 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32148 (pkgdata_MODULES): Add `acorn.mod'.
32149 (acorn_mod_SOURCES): New variable.
32150 (acorn_mod_CFLAGS): Likewise.
32152 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
32153 (pkgdata_MODULES): Add `acorn.mod'.
32154 (acorn_mod_SOURCES): New variable.
32155 (acorn_mod_CFLAGS): Likewise.
32156 (acorn_mod_LDFLAGS): Likewise.
32158 * include/types.h (grub_disk_addr_t): New typedef.
32160 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
32162 * geninit.sh: New file.
32164 * geninitheader.sh: Likewise.
32166 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
32167 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
32168 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
32169 * commands/configfile.c (grub_configfile_init)
32170 (grub_configfile_fini): Likewise.
32171 * commands/default.c (grub_default_init, grub_default_fini):
32173 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
32174 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
32175 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
32176 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
32178 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
32179 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
32181 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
32182 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
32184 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
32186 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
32188 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
32189 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
32190 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
32191 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
32192 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
32193 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
32194 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
32195 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
32196 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
32197 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
32198 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
32199 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
32200 * partmap/amiga.c (grub_amiga_partition_map_init)
32201 (grub_amiga_partition_map_fini): Likewise.
32202 * partmap/apple.c (grub_apple_partition_map_init)
32203 (grub_apple_partition_map_fini): Likewise.
32204 * partmap/pc.c (grub_pc_partition_map_init)
32205 (grub_pc_partition_map_fini): Likewise.
32206 * partmap/sun.c (grub_sun_partition_map_init,
32207 grub_sun_partition_map_fini): Likewise.
32208 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
32211 * util/grub-emu.c: Include <grub_modules_init.h>.
32212 (main): Don't initialize and de-initialize any modules directly,
32213 use `grub_init_all' and `grub_fini_all' instead.
32215 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
32216 `grub_vesafb_mod_init'.
32217 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
32219 * term/i386/pc/vga.c (grub_vga_init): Renamed to
32220 `grub_vga_mod_init'. Updated all users.
32221 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
32223 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
32224 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
32227 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
32228 Generate a function to initialize the module in utilities.
32229 Updated all callers.
32230 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
32231 initialize the module in utilities. Updated all callers.
32233 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32235 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
32236 escape sequence and a literal ^L to clear the screen.
32238 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
32239 when returning from Open Firmware.
32241 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32243 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
32244 (grub_ofconsole_height): Likewise.
32245 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
32246 manually insert a '\n'.
32247 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
32248 `grub_ofconsole_height'. Return early if these are already set.
32250 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
32252 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32253 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
32254 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
32255 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
32256 and `normal/script.c'.
32257 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32258 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32259 (test_mod_SOURCES): New variable.
32260 (test_mod_CFLAGS): Likewise.
32261 (test_mod_LDFLAGS): Likewise.
32262 (pkgdata_MODULES): Add `test.mod'.
32263 (grub_script.tab.c): New rule.
32264 (grub_script.tab.h): Likewise.
32266 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
32268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32269 `commands/test.c', `normal/execute.c', `normal/lexer.c',
32270 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32271 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32272 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32273 (test_mod_SOURCES): New variable.
32274 (test_mod_CFLAGS): Likewise.
32275 (pkgdata_MODULES): Add `test.mod'.
32276 (grub_script.tab.c): New rule.
32277 (grub_script.tab.h): Likewise.
32279 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
32281 Add initial scripting support.
32283 * commands/test.c: New file.
32284 * include/grub/script.h: Likewise.
32285 * normal/execute.c: Likewise.
32286 * normal/function.c: Likewise.
32287 * normal/lexer.c: Likewise.
32288 * normal/parser.y: Likewise.
32289 * normal/script.c: Likewise.
32291 * configure.ac: Add `AC_PROG_YACC' test.
32293 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
32294 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
32295 `normal/function.c' and `normal/script.c'.
32296 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32297 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32298 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
32300 (pkgdata_MODULES): Add `test.mod'.
32301 (grub_script.tab.c): New rule.
32302 (grub_script.tab.h): Likewise.
32304 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
32306 * include/grub/normal.h (grub_test_init): New prototype.
32307 (grub_test_fini): Likewise.
32309 * normal/command.c: Include <grub/script.h>.
32310 (grub_command_execute): Rewritten.
32312 * util/grub-emu.c (main): Call `grub_test_init' and
32315 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32317 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
32319 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
32320 there are no pending characters.
32322 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32324 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
32325 `grub_strndup' to drop device arguments. Replace unnecessary
32326 `grub_strndup' with `grub_strdup'.
32328 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32330 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
32331 `debug' environment variable has been set.
32333 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
32335 * Makefile.in (install-local): Use $(DATA).
32336 (uninstall): Likewise.
32337 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
32338 (sbin_UTILITIES): ... to here.
32339 (sbin_SCRIPTS): New variable.
32340 (grub_install_SOURCES): New variable.
32341 * util/powerpc/ieee1275/grub-install.in: New file.
32342 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
32344 (add_segments): Call `grub_util_get_path'.
32346 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
32348 From Timothy Baldwin:
32349 * commands/ls.c (grub_ls_list_files): Close FILE with
32351 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
32353 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
32355 * include/grub/parser.h: New file.
32357 * kern/parser.c: Likewise.
32359 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
32360 (grub_setup_SOURCES): Likewise.
32361 (grub_probefs_SOURCES): Likewise.
32362 (grub_emu_SOURCES): Likewise.
32363 (kernel_img_HEADERS): Add `parser.h'.
32365 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32366 (grub_emu_SOURCES): Add `kern/parser.c'.
32367 (grubof_SOURCES): Likewise.
32369 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32370 (grubof_SOURCES): Add `kern/parser.c'.
32372 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
32374 * kern/misc.c (grub_split_cmdline): Removed function.
32376 * kern/rescue.c: Include <grub/parser.h>.
32377 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
32378 of `grub_split_cmdline'.
32380 * normal/command.c: Include <grub/parser.h>.
32381 (grub_command_execute): Use `grub_parser_split_cmdline' instead
32382 of `grub_split_cmdline'.
32384 * normal/completion.c: Include <grub/parser.h>.
32385 (cmdline_state): New variable.
32386 (iterate_dir): End the filename with a quote depending on the
32387 command line state.
32388 (get_state): new function.
32389 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
32390 split the arguments and determine the current argument. When the
32391 argument string is not quoted, escape all spaces.
32393 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32395 * normal/sparc64/setjmp.S: New file.
32397 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32399 * include/grub/sparc64/libgcc.h: New file.
32400 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
32401 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
32402 normal/sparc64/setjmp.c.
32404 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32406 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
32407 * kern/sparc64/cache.S: New file.
32408 * kern/sparc64/cache.c: Removed.
32409 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
32410 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
32412 (COMMON_LDFLAGS): Add -melf64_sparc.
32413 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
32414 (grubof_SOURCES): Use cache.S instead of cache.c.
32415 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
32416 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
32417 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
32419 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
32420 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
32421 (linux_mod_CFLAGS): Commented out.
32422 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
32423 out because module isn't built.
32424 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
32425 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
32426 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
32427 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
32428 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
32429 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32430 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32431 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
32432 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
32433 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
32434 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32435 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32436 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
32437 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
32439 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
32441 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
32442 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
32443 longer, because HFS should not be used on PC.
32445 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32447 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
32448 consistently within the loop.
32450 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
32452 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
32453 directory can not be read.
32455 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32457 * configure.ac (AC_INIT): Increase the version number to 1.91.
32459 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
32460 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
32461 term/i386/pc/serial.c.
32463 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32465 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
32466 file size must be permitted.
32468 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
32469 between %ah and %al.
32471 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32473 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
32475 Call the hook with a NUL-terminated filename.
32476 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
32479 * kern/term.c (cursor_state): New variable.
32480 (grub_term_set_current): Reset the cursor state on a new
32482 (grub_setcursor): Rewritten to use CURSOR_STATE.
32483 (grub_getcursor): New function.
32485 * include/grub/term.h (grub_getcursor): New prototype.
32487 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
32488 integers on ARM. Reported by Timothy Baldwin
32489 <T.E.Baldwin99@members.leeds.ac.uk>.
32491 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
32493 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
32495 (grub_sfs_dir): Likewise.
32497 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
32499 Add support for the SFS filesystem.
32501 * fs/sfs.c: New file.
32503 * DISTLIST: Added `fs/sfs.c'.
32505 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
32506 (grub_probefs_SOURCES): Likewise.
32507 (grub_emu_SOURCES): Likewise.
32508 (pkgdata_MODULES): Add `sfs.mod'.
32509 (sfs_mod_SOURCES): New variable.
32510 (sfs_mod_CFLAGS): Likewise.
32511 (sfs_mod_LDFLAGS): Likewise.
32513 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
32514 (pkgdata_MODULES): Add `sfs.mod'.
32515 (sfs_mod_SOURCES): New variable.
32516 (sfs_mod_CFLAGS): Likewise.
32518 * util/grub-emu.c (main): Call `grub_sfs_init' and
32521 * include/grub/fs.h (grub_sfs_init): New prototype.
32522 (grub_sfs_fini): Likewise.
32524 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
32526 Add support for the AFFS filesystem.
32528 * fs/affs.c: New file.
32530 * DISTLIST: Added `fs/affs.c'.
32532 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
32533 (grub_probefs_SOURCES): Likewise.
32534 (grub_emu_SOURCES): Likewise.
32535 (pkgdata_MODULES): Add `affs.mod'.
32536 (affs_mod_SOURCES): New variable.
32537 (affs_mod_CFLAGS): Likewise.
32538 (affs_mod_LDFLAGS): Likewise.
32540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
32541 (pkgdata_MODULES): Add `affs.mod'.
32542 (affs_mod_SOURCES): New variable.
32543 (affs_mod_CFLAGS): Likewise.
32545 * util/grub-emu.c (main): Call `grub_affs_init' and
32548 * include/grub/fs.h (grub_affs_init): New prototype.
32549 (grub_affs_fini): Likewise.
32551 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
32553 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
32555 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
32557 * configure.ac: Accept `x86_64' as host_cpu. In that case add
32560 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
32563 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
32564 (COMMON_LDFLAGS): New variable.
32565 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
32566 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
32567 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
32568 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
32569 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
32570 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
32571 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
32572 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
32573 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
32574 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
32575 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32576 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32577 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
32578 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
32579 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
32581 (normal_mod_ASFLAGS): Add `-m32'.
32583 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
32584 (grub_host_size_t, grub_host_ssize_t): New types.
32585 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
32586 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
32587 `GRUB_HOST_SIZEOF_VOID_P'.
32589 * include/grub/kernel.h (struct grub_module_header): Type of
32590 member offset changed to `grub_host_off_t'. Type of member size
32591 changed to `grub_host_size_t'.
32592 (struct grub_module_info): Type of member offset changed to
32593 `grub_host_off_t'. Type of member size changed to
32594 `grub_host_size_t'.
32596 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
32598 Make GRUB's kernel compliant to Multiboot Specification.
32600 * kern/i386/pc/startup.S (multiboot_header): New label.
32601 (multiboot_entry): Likewise.
32602 (multiboot_trampoline): Likewise.
32604 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32605 Increased to 0x4A0.
32607 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
32608 put parentheses after a question mark.
32609 [!GRUB_UTIL] (my_mod): New variable.
32611 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
32613 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
32615 Adds support for the XFS filesystem. Btrees are not supported
32618 * fs/xfs.c: New file.
32620 * DISTLIST: Added `fs/xfs.c'.
32622 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
32623 (grub_probefs_SOURCES): Likewise.
32624 (grub_emu_SOURCES): Likewise.
32625 (pkgdata_MODULES): Add `xfs.mod'.
32626 (xfs_mod_SOURCES): New variable.
32627 (xfs_mod_CFLAGS): Likewise.
32629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
32630 (pkgdata_MODULES): Add `xfs.mod'.
32631 (xfs_mod_SOURCES): New variable.
32632 (xfs_mod_CFLAGS): Likewise.
32634 * util/grub-emu.c (main): Call `grub_xfs_init' and
32637 * include/grub/fs.h (grub_xfs_init): New prototype.
32638 (grub_xfs_fini): Likewise.
32641 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
32643 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
32644 color modes, allow greater than 16 colors to be configured as
32647 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32649 * normal/completion.c (complete_arguments): Add the qualifier
32650 const into OPTIONS.
32652 From Omniflux <omniflux+lists@omniflux.com>:
32653 * include/grub/terminfo.h: New file.
32654 * include/grub/tparm.h: Likewise.
32655 * include/grub/i386/pc/serial.h: Likewise.
32656 * term/terminfo.c: Likewise.
32657 * term/tparm.c: Likewise.
32658 * term/i386/pc/serial.c: Likewise.
32659 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
32661 (terminfo_mod_SOURCES): New variable.
32662 (terminfo_mod_CFLAGS): Likewise.
32663 (serial_mod_SOURCES): Likewise.
32664 (serial_mod_CFLAGS): Likewise.
32666 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
32668 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
32669 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
32670 and kern/powerpc/ieee1275/cmain.c, respectively.
32672 * boot/powerpc/ieee1275/crt0.S: Moved to ...
32673 * kern/powerpc/ieee1275/crt0.S: ... here.
32675 * boot/powerpc/ieee1275/cmain.c: Moved to ...
32676 * kern/powerpc/ieee1275/cmain.c: ... here.
32678 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
32679 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
32680 instead of boot/powerpc/ieee1275/crt0.S and
32681 boot/powerpc/ieee1275/cmain.c, respectively.
32683 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
32684 sectors. It was not used anyway.
32686 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32688 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
32689 `unused parameter' warning.
32691 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32693 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
32695 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
32698 2005-08-28 Marco Gerards <metgerards@student.han.nl>
32700 * include/grub/normal.h (enum grub_completion_type): Added
32701 `GRUB_COMPLETION_TYPE_ARGUMENT'.
32703 * normal/cmdline.c (print_completion): Handle
32704 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
32705 * normal/menu_entry.c (store_completion): Likewise.
32707 * normal/completion.c (complete_arguments): New function.
32708 (grub_normal_do_completion): Call `complete_arguments' when the
32709 current words start with a dash.
32711 2005-08-27 Marco Gerards <metgerards@student.han.nl>
32713 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
32714 `gzio.mod' instead of `io.mod').
32716 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
32718 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
32719 (DISTDIRS): Added io and video.
32720 Rewrite the search routine to make an output consistently.
32722 * DISTLIST: Added conf/sparc64-ieee1275.mk,
32723 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
32724 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
32725 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
32726 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
32727 util/powerpc/ieee1275/misc.c.
32729 * include/grub/gzio.h: New file.
32730 * io/gzio.c: Likewise.
32732 * kern/file.c (grub_file_close): Call grub_device_close only if
32733 FILE->DEVICE is not NULL.
32735 * include/grub/mm.h [!NULL] (NULL): New macro.
32737 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
32739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
32740 (pkgdata_MODULES): Added gzio.mod.
32741 (gzio_mod_SOURCES): New variable.
32742 (gzio_mod_CFLAGS): Likewise.
32744 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
32745 (pkgdata_MODULES): Added gzio.mod.
32746 (gzio_mod_SOURCES): New variable.
32747 (gzio_mod_CFLAGS): Likewise.
32749 * commands/cat.c: Include grub/gzio.h.
32750 (grub_cmd_cat): Use grub_gzfile_open instead of
32753 * commands/cmp.c: Include grub/gzio.h.
32754 (grub_cmd_cmp): Use grub_gzfile_open instead of
32757 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
32758 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
32760 (grub_rescue_cmd_module): Likewise.
32762 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32764 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
32765 kern/sparc64/ieee1275/init.c because it contains _start.
32766 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
32768 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32770 * configure.ac: Add support for sparc64 host with ieee1275
32772 * configure: Generated from configure.ac.
32773 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
32775 (grub_ofdisk_read): Likewise.
32776 (grub_ofdisk_open): Use %p to print pointer values, and cast the
32777 pointers as (void *) to remove a warning.
32778 (grub_ofdisk_close): Likewise.
32779 (grub_ofdisk_read): Likewise.
32780 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
32781 returns, so make it return void to remove a warning.
32782 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
32783 Corresponding prototype change.
32784 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
32785 values, and cast the pointers as (void *) to remove a warning.
32786 (grub_mm_dump): Likewise.
32787 * conf/sparc64-ieee1275.mk: New file.
32788 * conf/sparc64-ieee1275.rmk: Likewise.
32789 * include/grub/sparc64/setjmp.h: Likewise.
32790 * include/grub/sparc64/types.h: Likewise.
32791 * include/grub/sparc64/ieee1275/console.h: Likewise.
32792 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32793 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32794 * include/grub/sparc64/ieee1275/time.h: Likewise.
32795 * kern/sparc64/cache.c: Likewise.
32796 * kern/sparc64/dl.c: Likewise.
32797 * kern/sparc64/ieee1275/init.c: Likewise.
32798 * kern/sparc64/ieee1275/openfw.c: Likewise.
32800 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
32802 * util/console.c (grub_ncurses_putchar): If C is greater than
32803 0x7f, set C to a question mark.
32804 (grub_ncurses_getcharwidth): New function.
32805 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
32808 * normal/menu.c (print_entry): Made aware of Unicode. First,
32809 convert TITLE to UCS-4, and predict the cursor position by
32812 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
32814 * kern/misc.c (grub_utf16_to_utf8): Likewise.
32816 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32818 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
32819 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
32822 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
32823 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
32824 grub_strcpy and grub_strlen. Take it into account that a space
32825 character is inserted as a delimiter.
32827 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32829 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
32830 invalid magic in the error.
32832 * commands/search.c: New file.
32834 * util/grub-emu.c (main): Call grub_search_init and
32837 * kern/rescue.c (grub_rescue_print_disks): Removed.
32838 (grub_rescue_print_devices): New function.
32839 (grub_rescue_cmd_ls): Use grub_device_iterate with
32840 grub_rescue_print_devices instead of grub_disk_dev_iterate with
32841 grub_rescue_print_disks.
32843 * kern/partition.c (grub_partition_iterate): Return the result of
32844 PARTMAP->ITERATE instead of GRUB_ERRNO.
32846 * kern/device.c: Include grub/partition.h.
32847 (grub_device_iterate): New function.
32849 * include/grub/partition.h (grub_partition_iterate): Return int
32850 instead of grub_err_t.
32852 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
32854 [GRUB_UTIL] (grub_search_fini): Likewise.
32856 * include/grub/device.h (grub_device_iterate): New prototype.
32858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
32860 (pkgdata_MODULES): Added search.mod.
32861 (search_mod_SOURCES): New variable.
32862 (search_mod_CFLAGS): Likewise.
32864 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
32865 (pkgdata_MODULES): Added search.mod.
32866 (search_mod_SOURCES): New variable.
32867 (search_mod_CFLAGS): Likewise.
32869 * commands/ls.c (grub_ls_list_disks): Renamed to ...
32870 (grub_ls_list_devices): ... this, and use grub_device_iterate.
32871 All callers changed.
32873 * DISTLIST: Added commands/search.c.
32875 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32877 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
32879 (grub_getcharwidth): New function.
32881 * kern/misc.c (grub_utf8_to_ucs4): New function.
32883 * include/grub/term.h (struct grub_term): Added a new member
32885 (grub_getcharwidth): New prototype.
32887 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
32889 * term/i386/pc/console.c (map_char): New function. Segregated from
32890 grub_console_putchar.
32891 (grub_console_putchar): Use map_char.
32892 (grub_console_getcharwidth): New function.
32893 (grub_console_term): Specified grub_console_getcharwidth as
32896 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
32897 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
32899 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
32901 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
32902 on grub_strtoul completely.
32903 (write_char): Declare local variables in the beginning of the
32905 (grub_vesafb_getcharwidth): New function.
32906 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
32909 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
32911 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
32912 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
32913 commands/i386/pc/vbetest.c.
32915 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
32916 call grub_vbe_get_controller_info again, because the returned
32917 information is volatile.
32918 (grub_vbe_set_video_mode): Mostly rewritten.
32919 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
32920 grub_vbe_status_t correctly.
32921 (grub_vbe_get_video_mode_info): Likewise.
32922 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
32923 several if statements.
32925 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
32926 * commands/i386/pc/vbeinfo.c: ... this.
32928 * commands/i386/pc/vbe_test.c: Renamed to ...
32929 * commands/i386/pc/vbetest.c: ... this.
32931 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
32933 (grub_cmd_vbeinfo): ... this. Save video modes before
32934 iterating. Skip a video mode, if it is not available, not enough
32935 information is given or it is monochrome. Show the memory
32936 model. Leave the interpretation of MODEVAR to grub_strtoul
32938 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
32939 (GRUB_MOD_FINI): Likewise.
32941 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
32942 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
32943 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
32944 duplicated grub_env_get. Leave the interpretation of MODEVAR to
32945 grub_strtoul completely.
32946 (real2pm): Removed.
32947 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
32948 (GRUB_MOD_FINI): Likewise.
32950 * normal/misc.c: Include grub/mm.h.
32952 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
32953 vbe_list_modes with vbetest.mod and vbeinfo.mod.
32954 (vbe_list_modes_mod_SOURCES): Removed.
32955 (vbe_list_modes_mod_CFLAGS): Likewise.
32956 (vbe_test_mod_SOURCES): Likewise.
32957 (vbe_test_mod_CFLAGS): Likewise.
32958 (vbeinfo_mod_SOURCES): New variable.
32959 (vbeinfo_mod_CFLAGS): Likewise.
32960 (vbetest_mod_SOURCES): Likewise.
32961 (vbetest_mod_CFLAGS): Likewise.
32963 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
32965 * normal/misc.c: New file.
32967 * DISTLIST: Added normal/misc.c.
32969 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
32970 DISK to HOOK. Call HOOK with DISK.
32971 * partmap/apple.c (apple_partition_map_iterate): Likewise.
32972 * partmap/pc.c (pc_partition_map_iterate): Likewise.
32973 * partmap/sun.c (sun_partition_map_iterate): Likewise.
32975 * normal/menu_entry.c (struct screen): Added a new member
32976 "completion_shown".
32977 (completion_buffer): New global variable.
32978 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
32979 (store_completion): New function.
32980 (complete): Likewise.
32981 (clear_completions): Likewise.
32982 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
32983 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
32984 a tab, call complete.
32986 * normal/completion.c (disk_dev): Removed.
32987 (print_simple_completion): Likewise.
32988 (print_partition_completion): Likewise.
32989 (print_func): New global variable.
32990 (add_completion): Do not take the arguments WHAT or PRINT any
32991 longer. Added a new argument TYPE. Instead of printing directly,
32992 call PRINT_FUNC if not NULL.
32993 All callers changed.
32994 (complete_device): Use a local variable DEV instead of
32995 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
32996 (grub_normal_do_completion): Take a new argument HOOK. Do not
32997 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
32998 empty string, return NULL instead.
32999 All callers changed.
33001 * normal/cmdline.c (print_completion): New function.
33003 * kern/partition.c (grub_partition_iterate): Add an argument DISK
33005 All callers changed.
33007 * kern/disk.c (grub_print_partinfo): Removed.
33009 * include/grub/partition.h (struct grub_partition_map): Add a new
33010 argument DISK into HOOK of ITERATE.
33011 (grub_partition_iterate): Add a new argument DISK to HOOK.
33013 * include/grub/normal.h (enum grub_completion_type): New enum.
33014 (grub_completion_type_t): New type.
33015 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
33016 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
33017 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
33018 (GRUB_COMPLETION_TYPE_FILE): Likewise.
33019 (grub_normal_do_completion): Added a new argument HOOK.
33020 (grub_normal_print_device_info): New prototype.
33022 * include/grub/disk.h (grub_print_partinfo): Removed.
33024 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
33025 (normal_mod_SOURCES): Likewise.
33026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33027 (normal_mod_SOURCES): Likewise.
33029 * commands/ls.c (grub_ls_list_disks): Use
33030 grub_normal_print_device_info instead of grub_print_partinfo. Free
33032 (grub_ls_list_files): Use grub_normal_print_device_info instead of
33033 duplicating the code.
33035 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33037 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
33038 follow GCS more precisely.
33039 * commands/i386/pc/vbe_test.c: Likewise.
33040 * include/grub/i386/pc/vbe.h: Likewise.
33041 * term/i386/pc/vesafb.c: Likewise.
33042 * video/i386/pc/vbe.c: Likewise.
33044 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33046 * DISTLIST: Added term/i386/pc/vesafb.c
33047 DISTLIST: Added video/i386/pc/vbe.c
33048 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
33049 DISTLIST: Added commands/i386/pc/vbe_test.c.
33050 * commands/i386/pc/vbe_list_modes.c: New file.
33051 * commands/i386/pc/vbe_test.c: Likewise.
33052 * term/i386/pc/vesafb.c: Likewise.
33053 * video/i386/pc/vbe.c: Likewise.
33054 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
33055 (grub_vbe_probe) Added prototype.
33056 (grub_vbe_set_video_mode) Likewise.
33057 (grub_vbe_get_video_mode) Likewise.
33058 (grub_vbe_get_video_mode_info) Likewise.
33059 (grub_vbe_set_pixel_rgb) Likewise.
33060 (grub_vbe_set_pixel_index) Likewise.
33061 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
33062 (pkgdata_MODULES): Added vesafb.mod.
33063 (pkgdata_MODULES): Added vbe_list_modes.mod.
33064 (pkgdata_MODULES): Added vbe_test.mod.
33065 (vbe_mod_SOURCES): Added.
33066 (vbe_mod_CFLAGS): Likewise.
33067 (vesafb_mod_SOURCES): Likewise.
33068 (vesafb_mod_CFLAGS): Likewise.
33069 (vbe_list_modes_mod_SOURCES): Likewise.
33070 (vbe_list_modes_mod_CFLAGS): Likewise.
33071 (vbe_test_mod_SOURCES): Likewise.
33072 (vbe_test_mod_CFLAGS): Likewise.
33074 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
33076 * normal/command.c (grub_command_execute): If INTERACTIVE is
33077 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
33078 CMDLINE. Disable the pager if INTERACTIVE is true.
33079 All callers are changed.
33081 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
33082 before reading a config file.
33083 * normal/main.c (read_config_file): Even if a command is not
33084 found, register it if it is within an entry.
33086 * util/grub-emu.c: Include sys/types.h and unistd.h.
33087 (options): Added --hold.
33088 (struct arguments): Added a new member "hold".
33089 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
33091 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
33092 cleared by a debugger, if it is not zero.
33094 * include/grub/normal.h (grub_command_execute): Add an argument
33097 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
33099 * DISTLIST: Added include/grub/i386/pc/vbe.h.
33101 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
33103 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
33104 program with another one, because the old one didn't detect a bug
33105 in gcc-3.4. Always use regparm 2, because the new test is still
33106 not enough for gcc-4.0. Someone must investigate a simple test
33107 case which detects a bug in gcc-4.0.
33109 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
33111 * DISTLIST: Added normal/completion.c.
33113 * normal/completion.c: New file.
33115 * term/i386/pc/console.c (grub_console_getwh): New function.
33116 (grub_console_term): Assign grub_console_getwh to getwh.
33118 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
33119 function is defined in normal/completion.c as
33120 grub_normal_do_completion.
33121 (grub_cmdline_get): Use grub_normal_do_completion instead of
33124 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
33125 returns non-zero, otherwise return 0.
33126 (grub_partition_iterate): First, probe the partition map. Then,
33127 call ITERATE only for this partition map.
33129 * kern/misc.c (grub_strncmp): Rewritten.
33131 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
33132 returns non-zero. Otherwise return 0.
33134 * include/grub/partition.h (grub_partition_map_iterate): Return
33135 int instead of void.
33137 * include/grub/normal.h (grub_normal_do_completion): New prototype.
33139 * include/grub/misc.h (grub_strncmp): Change the type of N to
33142 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
33145 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
33146 unsigned explicitly before comparing it with I.
33148 * kern/main.c (grub_env_write_root): Add the attribute unused into
33151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33152 normal/completion.c.
33153 (normal_mod_SOURCES): Likewise.
33154 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33155 (normal_mod_SOURCES): Likewise.
33157 * normal/command.c (grub_iterate_commands): If ITERATE returns
33158 non-zero, return one immediately.
33160 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
33162 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
33163 * kern/i386/pc/startup.S: Updated Global Descriptor table's
33165 (grub_vbe_get_controller_info): New function.
33166 (grub_vbe_get_mode_info): Likewise.
33167 (grub_vbe_set_mode): Likewise.
33168 (grub_vbe_get_mode): Likewise.
33169 (grub_vbe_set_memory_window): Likewise.
33170 (grub_vbe_get_memory_window): Likewise.
33171 (grub_vbe_set_scanline_length): Likewise.
33172 (grub_vbe_get_scanline_length): Likewise.
33173 (grub_vbe_set_display_start): Likewise.
33174 (grub_vbe_get_display_start): Likewise.
33175 (grub_vbe_set_palette_data): Likewise.
33176 * include/grub/i386/pc/vbe.h: New file.
33178 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33180 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33181 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
33182 * DISTLIST: Likewise.
33183 * kern/ieee1275/of.c: Moved to ...
33184 * kern/ieee1275/ieee1275.c: ... here.
33186 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33188 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
33189 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
33190 Pass 0 as `end' parameter to grub_strtoul().
33192 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33194 * include/grub/powerpc/ieee1275/console.h: Do not include
33195 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
33197 (grub_console_cur_color): Remove i386-specific prototype.
33198 (grub_console_real_putchar): Likewise.
33199 (grub_console_checkkey): Likewise.
33200 (grub_console_getkey): Likewise.
33201 (grub_console_getxy): Likewise.
33202 (grub_console_gotoxy): Likewise.
33203 (grub_console_cls): Likewise.
33204 (grub_console_setcursor): Likewise.
33205 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
33206 Include <grub/machine/console.h>.
33207 * term/ieee1275/ofconsole.c: Likewise.
33209 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
33211 * Makefile.in (LIBLZO): New variable.
33213 * configure.ac: Check for LZO version 2.
33215 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
33216 lzo/lzo1x.h instead of lzo1x.h.
33218 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
33221 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
33222 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
33224 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
33225 copying the data from PARTITION to P.
33227 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33229 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
33230 negative, unload the module.
33232 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
33233 map is "pc_partition_map" but not "pc".
33234 (usage): Fix the description. The options are --boot-image and
33235 --core-image but not --boot-file or --core-file.
33236 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
33237 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
33240 * util/i386/pc/grub-install.in: Do not specify --boot-file or
33241 --core-file. Specify INSTALL_DEVICE as an argument.
33243 * util/console.c: Include config.h.
33244 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
33245 [HAVE_NCURSES_H]: Include ncurses.h.
33246 [HAVE_CURSES_H]: Include curses.h.
33247 [!A_NORMAL] (A_NORMAL): Defined as zero.
33248 [!A_STANDOUT] (A_STANDOUT): Likewise.
33250 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
33252 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
33254 * configure.ac: Check for curses libraries and headers.
33256 * Makefile.in (LIBCURSES): New variable.
33258 * genmk.rb (Script::rule): Set the executable bits.
33260 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
33261 name of the PC partition map is "pc_partition_map" but not "pc".
33263 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33265 * util/i386/pc/grub-install.in (grub_probefs): New variable.
33266 (modules): Likewise.
33267 (usage): Added descriptions for --modules and --grub-probefs.
33268 Handle --modules and --grub-probefs. Save the arguments in MODULES
33269 and GRUB_PROBEFS, respectively.
33270 Auto-detect a filesystem module against GRUBDIR. If the result is
33271 empty and modules are not specified explicitly, abort the
33272 installation. Add the result to MODULES.
33274 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
33275 disk/powerpc/ieee1275/ofdisk.c,
33276 include/grub/powerpc/ieee1275/init.h and
33277 term/powerpc/ieee1275/ofconsole.c.
33278 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
33279 term/ieee1275/ofconsole.c.
33281 * include/grub/powerpc/ieee1275/console.h: Resurrected.
33283 * COPYING: Upgraded to the latest version. Only the address of the
33284 FSF office has changed.
33286 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33288 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33289 kern/ieee1275.c with kern/ieee1275/of.c.
33291 * kern/ieee1275.c: Moved to ...
33292 * kern/ieee1275/of.c: ... here.
33294 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
33296 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
33299 * config.guess: Updated to the latest version from gnulib.
33300 * config.sub: Likewise.
33301 * install.sh: Likewise.
33302 * mkinstalldirs: Likewise.
33304 * include/grub/console.h: Removed. This file is arch-specific. Do
33305 not put this in include/grub.
33307 * include/grub/i386/pc/console.h: Resurrected.
33309 * util/console.c: Include grub/machine/console.h instead of
33311 * util/grub-emu.c: Likewise.
33313 2005-08-04 Marco Gerards <metgerards@student.han.nl>
33315 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
33318 From Vincent Pelletier <subdino2004@yahoo.fr>
33319 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
33320 Redefined to use grub_getwh.
33321 (grub_term): New member named getwh.
33322 (grub_getwh): New prototype.
33323 * kern/term.c (grub_getwh): New function.
33324 * term/i386/pc/console.c (grub_console_getwh): New function.
33325 (grub_console_term): New member `getwh'.
33326 * term/i386/pc/vga.c (grub_vga_getwh): New function.
33327 (grub_vga_term): New member `getwh'.
33328 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
33330 (grub_ofconsole_getw): New function.
33331 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
33332 (grub_ofconsole_term): New field named getwh and new initial
33335 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
33337 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
33338 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
33339 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
33340 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
33341 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
33342 of <grub/machine/ieee1275.h>.
33343 * commands/ieee1275/reboot.c: Likewise.
33344 * boot/powerpc/ieee1275/ieee1275.c: Move ...
33345 * kern/ieee1275.c: ... to here. All users updated. Change all
33346 parameter structs to use new type `grub_ieee1275_cell_t'.
33347 * term/powerpc/ieee1275/ofconsole.c: Move ...
33348 * term/ieee1275/ofconsole.c: ... to here. All users updated.
33349 * disk/powerpc/ieee1275/ofdisk.c: Move ...
33350 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
33351 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
33353 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
33354 Remove unused prototypes. All users updated.
33355 * include/grub/powerpc/ieee1275/console.h: Removed.
33356 * include/grub/powerpc/ieee1275/ieee1275.h: Define
33357 `grub_ieee1275_cell_t'.
33358 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
33359 Cast comparisons with -1 to the correct type.
33360 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
33361 type to match `grub_ieee1275_entry_fn'.
33363 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
33365 * DISTLIST: Added util/i386/pc/grub-probefs.c.
33367 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
33368 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
33370 (grub_probefs_SOURCES): New variable.
33372 * util/i386/pc/grub-probefs.c: New file.
33374 * util/i386/pc/grub-setup.c (main): Call
33375 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
33376 grub_hfs_init and grub_jfs_init to initialize the system. Call
33377 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
33378 grub_pc_partition_map_fini to finish the system.
33380 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
33382 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
33384 (grub_multiboot_load_elf32): Likewise.
33385 (grub_multiboot_is_elf64): Likewise.
33386 (grub_multiboot_load_elf64): Likewise.
33387 (grub_multiboot_load_elf): Likewise.
33388 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
33389 an ELF32 or ELF64 file.
33390 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
33392 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
33393 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
33394 NULL before calling FS->LABEL.
33395 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
33396 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
33397 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
33398 before calling FS->LABEL.
33400 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
33402 * util/i386/pc/grub-install.in (datadir): New variable.
33404 (pkgdatadir): New variable.
33405 (pkglibdir): Removed.
33407 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
33409 * DISTLIST: Added util/i386/pc/grub-install.in.
33411 * util/i386/pc/grub-install.in: New file.
33413 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
33414 (grub_install_SOURCES): Likewise.
33416 * genmk.rb: Added support for scripts.
33417 (Script): New class.
33418 (scripts): New variable.
33420 * Makefile.in (install-local): Install sbin_SCRIPTS by
33422 (uninstall): Remove sbin_SCRIPTS.
33424 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
33425 device, try to get a GRUB device by
33426 grub_util_biosdisk_get_grub_dev.
33429 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
33430 description for --device-map.
33432 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33434 Change the semantics of variable hooks. They now return strings
33435 instead of error values.
33437 * util/i386/pc/grub-setup.c: Include grub/env.h.
33438 (setup): Use grub_device_set_root instead of grub_env_set.
33440 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
33441 grub_env_get instead of grub_device_set_root and
33442 grub_device_get_root, respectively.
33444 * kern/main.c (grub_env_write_root): New function.
33445 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
33446 grub_env_set instead of grub_device_set_root.
33448 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
33450 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
33451 rather than calling ENV->WRITE_HOOK afterwards.
33452 (grub_env_get): Return the result of ENV->READ_HOOK rather than
33453 passing a pointer of a pointer.
33454 (grub_register_variable_hook): Change the types of "read_hook" and
33455 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
33457 Allocate the default empty string on the heap, because this string
33458 may be freed later.
33460 * kern/device.c: Include grub/env.h.
33461 (grub_device_set_root): Removed.
33462 (grub_device_get_root): Likewise.
33463 (grub_device_open): Use grub_env_get instead of
33464 grub_device_get_root.
33466 * include/grub/env.h (grub_env_read_hook_t): New type.
33467 (grub_env_write_hook_t): Likewise.
33468 (grub_env_var): Change the types of "read_hook" and "write_hook"
33469 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
33470 (grub_register_variable_hook): Likewise.
33472 * include/grub/device.h (grub_device_set_root): Removed.
33473 (grub_device_set_root): Likewise.
33475 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
33476 make sure that DIRNAME terminates with '/', so that
33477 grub_fat_find_dir will fail if PATH is not a directory.
33479 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
33481 Use the qualifier auto for print_files and print_files_long.
33482 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
33484 Put a newline only if there is no error.
33485 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
33488 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33490 * kern/partition.c (grub_partition_probe): Initialize PART to
33491 NULL. Otherwise, when no partition map is registered, this returns
33494 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
33496 * partmap/apple.c (apple_partition_map_iterate): Check if POS
33497 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
33500 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
33502 * commands/ls.c (grub_ls_list_disks): Print the filesystem
33503 information on each device, if it does not have partitions. Print
33504 "Device" instead of "Disk", because this function is not specific
33507 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
33508 static to ensure that it is put on the memory rather than a
33511 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33513 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
33514 (grub_cat_init): Likewise.
33515 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
33516 (options): Likewise.
33517 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
33518 (grub_configfile_init): Likewise.
33519 * font/manager.c (GRUB_MOD_INIT): Likewise.
33520 * commands/help.c (GRUB_MOD_INIT): Likewise.
33521 (grub_help_init): Likewise.
33522 * normal/command.c (grub_command_init): Likewise.
33523 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
33524 * disk/loopback.c (grub_loop_init): Likewise.
33525 (GRUB_MOD_INIT): Likewise.
33526 * commands/ls.c (grub_ls_init): Likewise.
33527 (GRUB_MOD_INIT): Likewise.
33528 (options): Likewise.
33529 * commands/boot.c (grub_boot_init): Likewise.
33530 (GRUB_MOD_INIT): Likewise.
33531 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
33532 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
33533 (GRUB_MOD_INIT): Likewise.
33534 * commands/cmp.c (grub_cmp_init): Likewise.
33535 (GRUB_MOD_INIT): Likewise.
33537 * normal/arg.c: Use <> instead of "" to include header files.
33538 (SHORT_ARG_HELP): New macro.
33539 (SHORT_ARG_USAGE): Likewise.
33540 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
33541 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
33543 (find_short): Check if C is 'h' or 'u' explicitly.
33544 (grub_arg_show_help): Use space characters instead of tabs. Treat
33545 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
33546 are shown with --help and --usage only if they are not used for
33547 the command itself.
33548 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
33551 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
33552 const into "longarg". Change the type of "shortarg" to int.
33554 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33556 * boot/i386/pc/boot.S (boot_drive_check): New label.
33558 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
33561 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
33562 which do not pass a boot drive correctly. Copied from GRUB Legacy.
33564 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33566 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
33567 When turning off Gate A20, skip the check and return immediately,
33568 because this is not fatal usually.
33570 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
33572 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
33573 be 0x7C00 instead of 0x8000.
33575 * boot/i386/pc/pxeboot.S: Rewritten.
33577 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
33579 (gate_a20_check_state): Read a byte from 0x108000. Invert the
33582 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
33584 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
33585 robustness. This routine now supports a BIOS call and System
33586 Control Port A to modify the gate A20.
33588 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33589 Increased to 0x440.
33591 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
33593 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
33594 device path and resulting ihandle.
33595 (grub_ofdisk_close): dprintf the ihandle being closed.
33596 (grub_ofdisk_read): dprintf function parameters.
33597 * kern/mm.c (grub_mm_init_region): Likewise.
33598 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
33599 (grub_linux_boot): dprintf the Linux entry point, initrd address and
33600 size, and boot arguments.
33601 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
33602 before loading into memory.
33603 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
33604 before loading into memory.
33606 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
33608 * kern/mm.c: Added much documentation.
33609 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
33610 8, set to 5 instead of 8.
33612 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
33614 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
33616 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
33617 (grub_mkdevicemap_SOURCES): New variable.
33619 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
33620 lib/device.c of GRUB Legacy.
33622 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
33624 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
33625 instead of PATH is NULL.
33627 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
33629 * commands/cmp.c (BUFFER_SIZE): New macro.
33630 (grub_cmd_cmp): Close the right file at the right time. Compare
33631 only data just read. Don't report files of different size as
33632 identical. Dynamically allocate buffers. Move variable
33633 declarations at the beginning of function.
33635 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
33637 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
33640 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
33642 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
33643 when backspace is pressed at beginning of line.
33645 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
33647 * DISTLIST: Added genfslist.sh.
33649 * normal/main.c (fs_module_list): New variable.
33650 (autoload_fs_module): New function.
33651 (read_fs_list): Likewise.
33652 (grub_normal_execute): Call read_fs_list.
33654 * kern/fs.c (grub_fs_autoload_hook): New variable.
33655 (grub_fs_probe): Added support for auto-loading.
33657 * include/grub/normal.h (struct grub_fs_module_list): New struct.
33658 (grub_fs_module_list_t): New type.
33660 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
33661 (grub_fs_autoload_hook): New prototype.
33663 * genfslist.sh: New file.
33665 * genmk.rb: Added a rule to generate a filesystem list.
33667 2005-06-30 Marco Gerards <metgerards@student.han.nl>
33669 * configure.ac: Fix the test for cross-compiling.
33671 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
33672 define GRUB_UTIL anymore.
33674 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
33675 so this function works on other systems than just big endian.
33676 (load_modules): Likewise.
33677 (add_segments): Likewise.
33679 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
33681 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
33682 contains `l' modifier, get a long from va_arg().
33684 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
33686 * kern/mm.c (grub_free): If the next free block which is being
33687 merged is the first free block, set the first block to the block
33689 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
33691 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33693 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
33694 `grub_ieee1275_chosen'.
33696 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33698 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
33699 (grub_ieee1275_chosen): New variable.
33700 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
33702 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
33703 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33704 Rename first argument to `phandle' for consistency.
33705 (grub_ieee1275_get_property_length): Likewise.
33706 (grub_ieee1275_next_property): Likewise. Change type of first argument
33707 to grub_ieee1275_phandle_t.
33708 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
33709 Move export next to declaration.
33710 (grub_ieee1275_chosen): New variable.
33711 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
33712 Correct cosmetic typo.
33713 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
33714 `grub_ieee1275_chosen'.
33715 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
33716 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
33717 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
33718 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
33719 `grub_ieee1275_chosen'.
33721 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
33723 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
33725 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
33726 /chosen/bootargs as "variable=value" pairs.
33728 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
33730 * include/grub/misc.h (grub_dprintf): New macro.
33731 (grub_real_dprintf): New prototype.
33732 (grub_strword): Likewise.
33733 (grub_iswordseparator): Likewise.
33734 * kern/misc.c (grub_real_dprintf): New function.
33735 (grub_strword): Likewise.
33736 (grub_iswordseparator): Likewise.
33738 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
33740 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
33741 (roundup): Remove macro.
33742 (grub_ieee1275_flags): Make static.
33743 (grub_ieee1275_realmode): Remove.
33744 (grub_ieee1275_test_flag): New function.
33745 (grub_ieee1275_set_flag): Likewise.
33746 (find_options): Rename to `grub_ieee1275_find_options'; update
33747 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
33748 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
33749 (cmain): New prototype.
33750 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
33751 `grub_ieee1275_flags' directly.
33752 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
33753 machine/biosdisk.h.
33754 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
33755 Don't include grub/machine/init.h.
33756 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
33757 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
33759 (grub_ieee1275_realmode): Likewise.
33760 (grub_ieee1275_flag): New enum.
33761 (grub_ieee1275_test_flag): New prototype.
33762 (grub_ieee1275_set_flag): New prototype.
33763 * include/grub/powerpc/ieee1275/init.h: Remove file.
33764 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
33765 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
33766 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
33767 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
33769 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
33770 `grub_ieee1275_test_flag'.
33771 (grub_ieee1275_encode_devname): Likewise.
33773 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
33775 * include/grub/powerpc/ieee1275/ieee1275.h
33776 (grub_ieee1275_encode_devname): New prototype.
33777 (grub_ieee1275_get_filename): Likewise.
33778 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
33780 (grub_set_prefix): Likewise.
33781 (grub_machine_init): Call grub_set_prefix.
33782 * kern/powerpc/ieee1275/openfw.c: Fix typos.
33783 (grub_parse_type): New enum.
33784 (grub_ieee1275_get_devargs): New function.
33785 (grub_ieee1275_get_devname): Likewise.
33786 (grub_ieee1275_parse_args): Likewise.
33787 (grub_ieee1275_get_filename): Likewise.
33788 (grub_ieee1275_encode_devname): Likewise.
33790 2005-03-30 Marco Gerards <metgerards@student.han.nl>
33792 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
33793 `grub_loader_unset'.
33795 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
33797 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
33798 instead of grub_ieee1275_interpret.
33799 (grub_halt_init): New function.
33800 (grub_halt_fini): Likewise.
33801 (GRUB_MOD_INIT): Correct message grammar.
33802 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
33803 instead of grub_ieee1275_interpret.
33804 (grub_reboot_init): New function.
33805 (grub_reboot_fini): Likewise.
33806 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
33807 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
33808 util/i386/pc/misc.c with commands/ieee1275/halt.c,
33809 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
33810 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
33812 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
33814 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
33816 (grub_halt): Likewise.
33817 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
33818 (cmain): Remove __attribute__((unused)).
33819 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
33820 (grub_heap_len): Likewise.
33821 (grub_machine_fini): New function.
33822 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
33823 (grub_halt): Likewise.
33824 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
33826 * util/powerpc/ieee1275/misc.c: New file.
33828 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33830 * DISTLIST: New file.
33831 * gendistlist.sh: Likewise.
33833 * Makefile.in (COMMON_DISTFILES): Removed.
33834 (BOOT_DISTFILES): Likewise.
33835 (CONF_DISTFILES): Likewise.
33836 (DISK_DISTFILES): Likewise.
33837 (FS_DISTFILES): Likewise.
33838 (INCLUDE_DISTFILES): Likewise.
33839 (KERN_DISTFILES): Likewise.
33840 (LOADER_DISTFILES): Likewise.
33841 (TERM_DISTFILES): Likewise.
33842 (UTIL_DISTFILES): Likewise.
33843 (DISTFILES): Likewise.
33844 (uninstall): Uninstall files in $(pkgdata_DATA).
33845 (DISTLIST): New target.
33846 (distdir): Use the contents of the file DISTLIST to get a list of
33849 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33851 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
33852 descriptor. This is ported from GRUB Legacy.
33854 * gencmdlist.sh: Added an extra semicolon to make it work with
33855 old sed versions. Reported by Robert Bihlmeyer
33856 <robbe@orcus.priv.at>.
33858 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
33860 Automatic loading of commands is supported.
33862 * normal/main.c (read_command_list): New function.
33863 (grub_normal_execute): Call read_command_list.
33865 * normal/command.c (grub_register_command): Return zero or CMD.
33866 Allocate CMD->NAME from the heap.
33867 Initialize CMD->MODULE_NAME to zero.
33868 Find the same name as well. If the same command is found and it is
33869 a dummy command, overwrite members. If it is not a dummy command,
33871 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
33872 (grub_command_find): If a dummy command is found, load a module
33873 and retry to find a command only once.
33875 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
33876 make sure that each command is loaded.
33878 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
33880 (struct grub_command): Remove const from the member `name'.
33881 Add a new member `module_name'.
33882 (grub_register_command): Return grub_command_t.
33884 * commands/help.c (grub_cmd_help): Call grub_command_find to make
33885 sure that each command is loaded.
33887 * genmk.rb (PModule::rule): Specify a module name without the
33888 suffix ".mod" to gencmdlist.sh.
33890 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
33892 * gencmdlist.sh: New file.
33894 * genmk.rb (PModule::rule): Generate a rule for a command list.
33896 Generate command.lst from $(COMMANDFILES).
33898 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
33899 (DATA): Added $(pkgdata_DATA).
33900 (install-local): Install files in $(pkgdata_DATA).
33902 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
33904 * term/i386/pc/vga.c (debug_command): Removed.
33905 (GRUB_MOD_INIT): Do not register the command "debug".
33907 From Hollis Blanchard:
33908 * commands/configfile.c: New file.
33909 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
33910 commands/configfile.c.
33911 (pkgdata_MODULES): Added configfile.mod.
33912 (configfile_mod_SOURCES): New variable.
33913 (configfile_mod_CFLAGS): Likewise.
33914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33915 commands/configfile.c.
33916 (pkgdata_MODULES): Added configfile.mod.
33917 (configfile_mod_SOURCES): New variable.
33918 (configfile_mod_CFLAGS): Likewise.
33919 * util/grub-emu.c (main): Call grub_configfile_init and
33920 grub_configfile_fini.
33921 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
33923 [GRUB_UTIL] (grub_configfile_fini): Likewise.
33925 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
33927 * normal/arg.c (grub_arg_show_help): Do not show the bug report
33930 * commands/help.c (grub_cmd_help): Do not print newlines after
33931 the last command in print_command_help.
33933 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
33935 * commands/default.h: New file.
33936 * commands/timeout.h: Likewise.
33937 * normal/context.c: Likewise.
33939 * util/misc.c: Do not include sys/times.h.
33940 Include sys/time.h and grub/machine/time.h.
33941 (grub_get_rtc): Rewritten with gettimeofday.
33943 * util/grub-emu.c (main): Call grub_default_init and
33944 grub_timeout_init before grub_normal_init, and call
33945 grub_timeout_fini and grub_default_fini after grub_main.
33947 * util/console.c (grub_ncurses_checkkey): Return the read
33950 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
33953 * normal/main.c (read_config_file): Push MENU. If this fails,
33954 print an error and wait for a user input.
33955 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
33956 If a menu is empty or an error occurs, pop MENU.
33957 (grub_normal_execute): Pop and free MENU after grub_menu_run
33960 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
33962 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
33964 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
33966 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
33968 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
33971 * include/grub/normal.h (struct grub_menu_list): New struct.
33972 (grub_menu_list_t): New type.
33973 (struct grub_context): New struct.
33974 (grub_context_t): New type.
33975 (grub_register_command): Got rid of EXPORT_FUNC.
33976 (grub_unregister_command): Likewise.
33977 (grub_context_get): New prototype.
33978 (grub_context_get_current_menu): Likewise.
33979 (grub_context_push_menu): Likewise.
33980 (grub_context_pop_menu): Likewise.
33981 [GRUB_UTIL] (grub_default_init): Likewise.
33982 [GRUB_UTIL] (grub_default_fini): Likewise.
33983 [GRUB_UTIL] (grub_timeout_init): Likewise.
33984 [GRUB_UTIL] (grub_timeout_fini): Likewise.
33986 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
33987 commands/timeout.c and normal/context.c.
33988 (pkgdata_MODULES): Added default.mod and timeout.mod.
33989 (normal_mod_SOURCES): Added normal/context.c.
33990 (default_mod_SOURCES): New variable.
33991 (default_mod_CFLAGS): Likewise.
33992 (timeout_mod_SOURCES): Likewise.
33993 (timeout_mod_CFLAGS): Likewise.
33994 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
33996 (pkgdata_MODULES): Added default.mod and timeout.mod.
33997 (normal_mod_SOURCES): Added normal/context.c.
33998 (default_mod_SOURCES): New variable.
33999 (default_mod_CFLAGS): Likewise.
34000 (timeout_mod_SOURCES): Likewise.
34001 (timeout_mod_CFLAGS): Likewise.
34003 * Makefile.in (all-local): Added $(MKFILES).
34005 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
34007 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
34008 (grub_emu_SOURCES): Likewise.
34009 (pkgdata_MODULES): Add `sun.mod'.
34010 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34013 (pkgdata_MODULES): Add `sun.mod'.
34014 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34015 * include/grub/partition.h (grub_sun_partition_map_init): New
34017 (grub_sun_partition_map_fini): Likewise.
34018 * partmap/sun.c: New file.
34019 * util/grub-emu.c (main): Initialize and de-initialize the sun
34020 partitionmap support.
34022 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
34024 This implements an Emacs-like menu entry editor.
34026 * normal/menu_entry.c: New file.
34028 * util/console.c (grub_ncurses_putchar): Translate some Unicode
34029 characters to ASCII.
34030 (saved_char): New variable.
34031 (grub_ncurses_checkkey): Rewritten completely.
34032 (grub_ncurses_getkey): Likewise.
34033 (grub_ncurses_init): Call raw instead of cbreak.
34035 * normal/menu.c (print_entry): Do not put a space.
34036 (init_page): Renamed to ...
34037 (grub_menu_init_page): ... this. All callers changed.
34038 (edit_menu_entry): Removed.
34039 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
34041 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
34043 * kern/misc.c (grub_vprintf): Call grub_refresh.
34045 * normal/menu.c (DISP_LEFT): Renamed to ...
34046 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
34047 * normal/menu.c (DISP_UP): Renamed to ...
34048 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
34049 * normal/menu.c (DISP_RIGHT): Renamed to ...
34050 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
34051 * normal/menu.c (DISP_DOWN): Renamed to ...
34052 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
34053 * normal/menu.c (DISP_HLINE): Renamed to ...
34054 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
34055 * normal/menu.c (DISP_VLINE): Renamed to ...
34056 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
34057 * normal/menu.c (DISP_UL): Renamed to ...
34058 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
34059 * normal/menu.c (DISP_UR): Renamed to ...
34060 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
34061 * normal/menu.c (DISP_LL): Renamed to ...
34062 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
34063 * normal/menu.c (DISP_LR): Renamed to ...
34064 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
34065 * normal/menu.c (TERM_WIDTH): Renamed to ...
34066 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
34067 * normal/menu.c (TERM_HEIGHT): Renamed to ...
34068 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
34069 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
34070 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
34071 * normal/menu.c (TERM_MARGIN): Renamed to ...
34072 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
34073 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
34074 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
34075 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
34076 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
34077 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
34078 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
34079 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
34080 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
34081 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
34082 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
34083 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
34084 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
34085 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
34086 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
34087 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
34088 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
34089 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
34090 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
34091 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
34092 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
34093 All callers changed.
34095 * include/grub/normal.h: New prototype.
34097 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34098 normal/menu_entry.c.
34099 (normal_mod_SOURCES): Likewise.
34100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34101 (normal_mod_SOURCES): Likewise.
34103 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
34105 * include/grub/normal.h (grub_halt_init): New prototype.
34106 (grub_halt_fini): Likewise.
34107 (grub_reboot_init): Likewise.
34108 (grub_reboot_fini): Likewise.
34110 * util/grub-emu.c: Include signal.h.
34111 (main_env): New global variable.
34112 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
34114 (grub_machine_fini): New function.
34115 (main): Call grub_halt_init and grub_reboot_init before
34116 grub_main, and grub_reboot_fini and grub_halt_fini after it.
34117 Call setjmp with MAIN_ENV to go back afterwards.
34118 Call grub_machine_fini right before return.
34120 * include/grub/util/misc.h: Include setjmp.h.
34121 (main_env): New prototype.
34123 * include/grub/kernel.h (grub_machine_fini): New prototype.
34124 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
34125 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
34127 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
34128 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
34129 * term/i386/pc/console.c (grub_console_fini): Likewise.
34131 * util/i386/pc/misc.c: New file.
34133 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34134 util/i386/pc/misc.c, commands/i386/pc/halt.c and
34135 commands/i386/pc/reboot.c.
34137 2005-02-14 Guillem Jover <guillem@hadrons.org>
34139 * include/grub/dl.h (grub_dl_check_header): New prototype.
34140 (grub_arch_dl_check_header): Change return type to grub_err_t,
34141 remove size parameter and export function. Update all callers.
34142 * kern/dl.c (grub_dl_check_header): New function.
34143 (grub_dl_load_core): Use `grub_dl_check_header' instead of
34144 `grub_arch_dl_check_header'. Check ELF type. Check if sections
34145 are inside the core.
34146 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
34147 independent ELF header checks.
34148 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34149 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
34150 `grub_dl_check_header' instead of explicit checks. Check for the
34152 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
34153 `grub_dl_check_header' instead of explicit checks. Remove arch
34154 specific ELF header checks.
34156 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
34159 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
34161 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
34162 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
34164 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
34166 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
34167 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
34168 (part_map_iterate): Clear `grub_errno' and return 0 if
34169 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
34170 * partmap/amiga.c (amiga_partition_map_iterate): Return
34171 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
34172 * partmap/apple.c (apple_partition_map_iterate): Likewise.
34174 2005-02-01 Guillem Jover <guillem@hadrons.org>
34176 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
34179 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34181 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
34183 (grub_rescue_cmd_linux): New prototype.
34184 (grub_rescue_cmd_initrd): Likewise.
34185 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
34187 (grub_linux_release_mem): Release the memory for the initrd.
34188 (grub_load_linux): Renamed from this...
34189 (grub_rescue_cmd_linux): ...To this. Changed all callers.
34190 Changed `entry' not to be static. Loop over memory regions to
34191 find another one when the default fails.
34192 (grub_rescue_cmd_initrd): New function.
34193 (grub_linux_init): Remove function.
34194 (grub_linux_fini): Likewise.
34195 (GRUB_MOD_INIT): Register `initrd'.
34196 (GRUB_MOD_FINI): Unregister `initrd'.
34197 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
34199 (grub_linux_normal_fini): Likewise.
34200 (GRUB_MOD_INIT): Register `initrd'.
34201 (GRUB_MOD_FINI): Unregister `initrd'.
34203 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34205 * commands/help.c: New file.
34206 * normal/arg.c (show_help): Renamed to...
34207 (grub_arg_show_help): ... this.
34208 * commands/i386/pc/halt.c: New file.
34209 * commands/i386/pc/reboot.c: Likewise.
34210 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
34211 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
34212 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
34213 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
34215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34217 (pkgdata_MODULES): Add `help.mod'.
34218 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
34219 * grub/i386/pc/init.h (grub_reboot): New prototype.
34220 (grub_halt): Likewise.
34221 * include/grub/normal.h (grub_arg_show_help): New prototype.
34222 (grub_help_init): Likewise.
34223 (grub_help_fini): Likewise.
34224 * util/grub-emu.c (main): Initialize and deinitialize the help
34227 * normal/cmdline.c (grub_cmdline_get): Doc fix.
34229 * normal/command.c (grub_command_init): Fixed the description of
34230 the `set' and `unset' commands.
34232 2005-01-31 Marco Gerards <metgerards@student.han.nl>
34234 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
34236 * commands/ieee1275/halt.c: New file.
34237 * commands/ieee1275/reboot.c: Likewise.
34238 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
34239 `__attribute__ ((unused))'. Some GCS related fixed.
34240 (grub_suspend_init) [GRUB_UTIL]: Function removed.
34241 (grub_suspend_fini): Likewise.
34242 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
34244 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
34245 (halt_mod_CFLAGS): New variables.
34246 * include/grub/powerpc/ieee1275/ieee1275.h
34247 (grub_ieee1275_interpret): New prototype.
34249 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
34251 * include/grub/misc.h (memmove): New prototype.
34252 (memcpy): Likewise.
34254 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
34256 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
34257 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
34259 2005-01-22 Marco Gerards <metgerards@student.han.nl>
34261 * kern/misc.c (grub_strndup): Function rewritten.
34263 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
34265 * normal/menu.c (TERM_WIDTH): Macro redefined.
34266 (TERM_TOP_BORDER_Y): Likewise.
34267 (draw_border): Replaced while-loop by a for-loop. Make the number
34268 of lines consistent with the number of lines displayed in
34269 print_entries. Added a margin below the rectangle.
34270 (print_entry): Make the entry fit in the rectangle.
34271 (print_entries): Display the scroll arrows next to the right
34274 2005-01-21 Marco Gerards <metgerards@student.han.nl>
34276 * fs/minix.c (grub_minix_find_file): Reserve more space for
34277 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
34278 `grub_strncpy' to copy `path' into it.
34280 2005-01-21 Marco Gerards <metgerards@student.han.nl>
34282 Add the loopback device, a device via which files can be accessed
34285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
34286 (pkgdata_MODULES): Add loopback.mod.
34287 (loopback_mod_SOURCES): New variable.
34288 (loopback_mod_CFLAGS): Likewise.
34289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34291 (pkgdata_MODULES): Add loopback.mod.
34292 (loopback_mod_SOURCES): New variable.
34293 (loopback_mod_CFLAGS): Likewise.
34294 * disk/loopback.c: new file.
34295 * include/grub/normal.h (grub_loop_init): New prototype.
34296 (grub_loop_fini): New prototype.
34297 * util/grub-emu.c (main): Initialize and de-initialize loopback
34299 * include/grub/disk.h (grub_disk_dev_id): Add
34300 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
34302 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
34304 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
34306 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
34307 (suspend_mod_SOURCES): New variable.
34308 (suspend_mod_CFLAGS): Likewise.
34309 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
34311 * commands/ieee1275/suspend.c: New file.
34313 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34315 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
34316 ((unused))' to `__attribute__ ((used))'.
34317 (GRUB_MOD_FINI): Likewise.
34318 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
34319 * genmk.rb (PModule): Assign space to common symbols when linking
34322 2005-01-20 Marco Gerards <metgerards@student.han.nl>
34324 * include/grub/mm.h (grub_mm_init_region): Change the type of the
34325 `unsigned' arguments to `grub_size_t'.
34326 (grub_malloc): Likewise.
34327 (grub_realloc): Likewise.
34328 (grub_memalign): Likewise.
34329 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
34330 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34331 * util/misc.c (grub_malloc): Likewise.
34332 (grub_realloc): Likewise.
34333 * kern/mm.c (get_header_from_pointer): Change the casts to
34334 `unsigned' into a cast to `grub_size_t'.
34336 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
34337 point to `currnode' when `currnode' is changed.
34339 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
34340 Schottelius <nico-linux@schottelius.org>.
34342 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
34344 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
34345 (note_path): Remove variable.
34346 (GRUB_IEEE1275_NOTE_NAME): New macro.
34347 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
34348 (grub_ieee1275_note_hdr): New structure.
34349 (grub_ieee1275_note_desc): Likewise.
34350 (grub_ieee1275_note): Likewise.
34351 (load_note): Remove `dir' argument. All callers updated. Remove
34352 `note_img' and `path'. Do not load a file from `note_path'.
34353 Initialize a struct grub_ieee1275_note and write that to `out'.
34354 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
34356 2005-01-05 Marco Gerards <metgerards@student.han.nl>
34358 * util/misc.c (grub_util_read_image): Revert last change. It
34359 called `grub_util_read_at', which seeks from the beginning of the
34362 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
34364 * TODO: Add note about endianness in grub-mkimage.
34365 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
34367 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
34368 (grub_mkimage_SOURCES): New target.
34369 * include/grub/kernel.h (grub_start_addr): Remove variable.
34370 (grub_end_addr): Likewise.
34371 (grub_total_module_size): Likewise.
34372 (grub_kernel_image_size): Likewise.
34373 (GRUB_MODULE_MAGIC): New constant.
34374 (grub_module_info): New structure.
34375 (grub_arch_modules_addr): New prototype.
34376 (grub_get_end_addr): Remove prototype.
34377 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
34378 * include/grub/powerpc/ieee1275/kernel.h: New file.
34379 * include/grub/util/misc.h (grub_util_get_fp_size): New
34381 (grub_util_read_at): Likewise.
34382 (grub_util_write_image_at): Likewise.
34383 * kern/main.c (grub_get_end_addr): Remove function.
34384 (grub_load_modules): Call grub_arch_modules_addr instead of using
34385 grub_end_addr. Look for a grub_module_info struct in memory. Use
34386 the grub_module_info fields instead of calling grub_get_end_addr
34387 as loop conditions. Move grub_add_unused_region code here.
34388 (grub_add_unused_region): Remove function.
34389 * kern/i386/pc/init.c: Include grub/cache.h.
34390 (grub_machine_init): Remove call to grub_get_end_addr. Remove
34391 one call to add_mem_region.
34392 (grub_arch_modules_addr): New function.
34393 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
34394 (grub_total_module_size): Likewise.
34395 Include grub/machine/kernel.h.
34396 (grub_arch_modules_addr): New function.
34397 * util/grub-emu.c (grub_end_addr): Remove variable.
34398 (grub_total_module_size): Likewise.
34399 (grub_arch_modules_addr): New function.
34400 * util/misc.c: Include unistd.h.
34401 (grub_util_get_fp_size): New function.
34402 (grub_util_read_at): Likewise.
34403 (grub_util_write_image_at): Likewise.
34404 (grub_util_read_image): Call grub_util_read_at.
34405 (grub_util_write_image): Call grub_util_write_image_at.
34406 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
34407 additional memory in kernel_img for a struct grub_module_info.
34408 Fill in that grub_module_info.
34409 * util/powerpc/ieee1275/grub-mkimage.c: New file.
34411 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34413 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
34415 * include/grub/powerpc/ieee1275/ieee1275.h
34416 (grub_ieee1275_milliseconds): New prototype.
34417 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
34419 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
34420 grub_ieee1275_milliseconds.
34422 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34424 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
34426 (find_options): New function.
34427 (cmain): Call find_options.
34428 * include/grub/powerpc/ieee1275/ieee1275.h
34429 (grub_ieee1275_realmode): New extern variable.
34430 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
34431 grub_map if grub_ieee1275_realmode is false.
34433 2004-12-29 Marco Gerards <metgerards@student.han.nl>
34435 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
34436 lines are inserted and make it work like readline. Reported by
34437 Vincent Pelletier <subdino2004@yahoo.fr>.
34439 2004-12-28 Marco Gerards <metgerards@student.han.nl>
34441 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
34443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
34444 `kern/powerpc/cache.S'.
34446 2004-12-27 Marco Gerards <metgerards@student.han.nl>
34448 * genmk.rb: Handle the `Program' class in the main loop. Written
34449 by Johan Rydberg <jrydberg@gnu.org>.
34450 (Program): New class.
34451 (programs): New variable.
34452 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
34453 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
34454 instead of "grub/kernel.h". Include <grub/machine/init.h>.
34455 (help_arch): Function removed.
34456 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
34457 `powerpc/libgcc.h' and `loader.h'.
34458 (pkgdata_PROGRAMS): New variable.
34459 (sbin_UTILITIES): Variable removed.
34460 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
34461 (grubof_SOURCES): Variable re-defined so it only includes the
34462 core functionality.
34463 (grubof_CFLAGS): Remove `-DGRUBOF'.
34464 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
34465 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
34466 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
34467 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
34468 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
34469 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
34470 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
34471 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
34472 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
34473 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
34474 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34475 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
34476 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
34477 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
34478 (pc_mod_CFLAGS): New variables.
34479 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
34480 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
34481 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
34482 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
34484 * include/grub/i386/pc/init.h (grub_os_area_addr)
34485 (rub_os_area_size): ... to here.
34486 * include/grub/powerpc/ieee1275/ieee1275.h
34487 (grub_ieee1275_entry_fn): Export symbol.
34488 * include/grub/powerpc/ieee1275/init.h: New file.
34489 * include/grub/powerpc/libgcc.h: Likewise.
34490 * include/grub/cache.h: Likewise.
34491 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
34492 <hollis@penguinppc.org>.
34493 * kern/dl.c: Include <grub/cache.h>.
34494 (grub_dl_flush_cache): New function.
34495 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
34497 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
34498 (grub_console_init): Removed prototypes.
34499 (grub_machine_init): Don't initialize the modules anymore.
34500 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
34502 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
34503 Macro undef removed.
34504 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
34505 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
34506 relocation `R_PPC_REL32'. Return an error when the relocation is
34508 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
34509 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
34510 * util/misc.c (grub_arch_sync_caches): Likewise.
34512 2004-12-19 Marco Gerards <metgerards@student.han.nl>
34514 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
34515 `symlist.c', add `grubof_symlist.c'.
34516 (symlist.c): Variable removed.
34517 (grubof_HEADERS): Variable added.
34518 (grubof_symlist.c): New target.
34519 (kernel_syms.lst): Use `grubof_HEADERS' instead of
34520 `kernel_img_HEADERS'.
34521 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
34522 * kern/powerpc/dl.c: New file.
34523 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
34525 (grub_arch_dl_relocate_symbols): Likewise.
34526 (grub_register_exported_symbols): Likewise.
34528 2004-12-13 Marco Gerards <metgerards@student.han.nl>
34530 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
34531 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
34532 to fail instead. Reported by Vincent Pelletier
34533 <subdino2004@yahoo.fr>.
34535 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
34536 it is not allocated. Reported by Vincent Pelletier
34537 <subdino2004@yahoo.fr>.
34539 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
34540 output so the output looks better.
34542 2004-12-04 Marco Gerards <metgerards@student.han.nl>
34544 Modulize the partition map support and add support for the amiga
34547 * commands/ls.c: Include <grub/partition.h> instead of
34548 <grub/machine/partition.h>.
34549 * kern/disk.c: Likewise.
34550 * kern/rescue.c: Likewise.
34551 * loader/i386/pc/chainloader.c: Likewise.
34552 * normal/cmdline.c: Likewise.
34553 * kern/powerpc/ieee1275/init.c: Likewise.
34554 (grub_machine_init): Call `grub_pc_partition_map_init',
34555 `grub_amiga_partition_map_init' and
34556 `grub_apple_partition_map_init'.
34557 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
34558 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
34559 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
34560 `partition.h' and `pc_partition.h'.
34561 (grub_setup_SOURCES): Remove
34562 `disk/i386/pc/partition.c'. Add `kern/partition.c',
34563 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34564 (grub_emu_SOURCES): Likewise.
34565 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
34566 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
34567 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
34568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34569 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
34570 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34571 (grubof_SOURCES): Likewise.
34572 * disk/i386/pc/partition.c: File removed.
34573 * disk/powerpc/ieee1275/partition.c: Likewise.
34574 * include/grub/powerpc/ieee1275/partition.h: Likewise.
34575 * include/grub/i386/pc/partition.h: Likewise.
34576 * kern/partition.c: New file.
34577 * partmap/amiga.c: Likewise.
34578 * partmap/apple.c: Likewise.
34579 * partmap/pc.c: Likewise.
34580 * include/grub/partition.h: Likewise..
34581 * include/grub/pc_partition.h: Likewise.
34582 * util/grub-emu.c: Include <grub/partition.h> instead of
34583 <grub/machine/partition.h>.
34584 (main): Call `grub_pc_partition_map_init',
34585 `grub_amiga_partition_map_init' and
34586 `grub_apple_partition_map_init' and deinitialize afterwards.
34587 * util/i386/pc/biosdisk.c: Include `#include
34588 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34589 `<grub/machine/partition.h>'.
34590 * util/i386/pc/grub-setup.c: Likewise.
34591 * util/i386/pc/biosdisk.c: Likewise.
34592 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
34593 partition information in case of a PC partition.
34594 * util/i386/pc/grub-setup.c: Include `#include
34595 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34596 `<grub/machine/partition.h>'.
34597 (setup): Only access the PC specific partition information in case
34600 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
34602 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
34603 (grub_longjmp): Likewise.
34604 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
34606 * normal/powerpc/setjmp.S: New file.
34607 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
34608 `normal/powerpc/setjmp.S'.
34609 (grubof_CFLAGS): Add `-DGRUBOF'.
34610 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
34611 [GRUB_UTIL && !GRUBOF].
34613 2004-11-16 Marco Gerards <metgerards@student.han.nl>
34615 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
34616 property named `name'. Correctly handle the error returned by
34617 `grub_ieee1275_finddevice' if a device can not be opened.
34619 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
34621 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
34622 `actual' for negativity.
34623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34626 2004-11-01 Marco Gerards <metgerards@student.han.nl>
34628 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
34629 (PAGE_OFFSET): New macro.
34630 (CRTC_ADDR_PORT): Likewise.
34631 (CRTC_DATA_PORT): Likewise.
34632 (START_ADDR_HIGH_REGISTER): Likewise.
34633 (START_ADDR_LOW_REGISTER): Likewise.
34634 (GRAPHICS_ADDR_PORT): Likewise.
34635 (GRAPHICS_DATA_PORT): Likewise.
34636 (READ_MAP_REGISTER): Likewise.
34637 (INPUT_STATUS1_REGISTER): Likewise.
34638 (INPUT_STATUS1_VERTR_BIT): Likewise.
34639 (page): New variable.
34640 (wait_vretrace): New function.
34641 (set_read_map): Likewise.
34642 (set_start_address): Likewise.
34643 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
34645 (check_vga_mem): Take the page into account.
34646 (write_char): Likewise.
34647 (write_cursor): Likewise.
34648 (scroll_up): Likewise. Copy the page to the page that is not
34649 shown and switch between both pages.
34650 (grub_vga_putchar): Fix off by one error.
34651 (grub_vga_cls): Wait for the vertical retrace. Take the page into
34654 2004-11-01 Marco Gerards <metgerards@student.han.nl>
34656 Add support for iso9660 (including rockridge).
34658 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34659 (iso9660_mod_SOURCES): New variable.
34660 (iso9660_mod_CFLAGS): Likewise.
34661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34662 * include/grub/fs.h (grub_iso9660_init): New prototype.
34663 * util/grub-emu.c (main): Call `grub_iso9660_init'.
34664 * fs/iso9660.c: New file.
34666 * include/grub/misc.h (grub_strncat): New prototype.
34667 * kern/misc.c (grub_strncat): New function.
34669 * fs/hfs.c (grub_hfs_mount): Translate the error
34670 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
34671 * fs/jfs.c (grub_jfs_mount): Likewise.
34672 * fs/ufs.c (grub_ufs_mount): Likewise.
34674 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
34676 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
34677 which initialized BAT registers.
34678 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
34679 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34681 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
34682 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34684 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
34685 (grub_mapclaim): Likewise.
34686 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
34687 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
34690 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
34692 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
34693 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
34694 -ffreestanding and -msoft-float.
34696 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
34698 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
34699 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
34700 set in grub_ieee1275_flags.
34702 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
34704 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
34706 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
34707 grub_console_init first.
34708 Change the memory range used for grub_ieee1275_claim and
34709 grub_mm_init_region.
34710 Print an error message if the claim fails.
34711 Include <grub/misc.h>.
34713 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
34715 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
34716 Call grub_children_iterate for device nodes of type `scsi',
34718 (grub_ofdisk_open): Remove manual device alias resolution.
34719 Fix memory leak when device cannot be opened.
34720 * include/grub/powerpc/ieee1275/ieee1275.h
34721 (grub_children_iterate): New prototype.
34722 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
34724 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34725 Return -1 if args.size was -1.
34727 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34729 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
34730 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
34731 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
34732 Open Firmware's memory for it; claim memory from _start to _end.
34733 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
34734 (_end): New extern.
34735 (_start): Zero BSS from __bss_start to _end.
34736 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
34738 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
34740 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34742 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
34743 -1 if args.base was -1.
34745 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
34747 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
34748 escape sequence instead of a literal ^L. Also call
34749 grub_ofconsole_gotoxy.
34751 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
34753 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
34754 void * arguments to grub_addr_t. All callers updated. Also make
34755 the `result' argument optional.
34756 (grub_ieee1275_release): change void * arguments to grub_addr_t.
34757 All callers updated.
34759 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
34761 * commands/ls.c (grub_ls_list_files): Use the string following the
34762 initial ')', if present, as the filesystem path.
34763 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
34765 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
34767 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
34769 Make the source code of the menu interface more readable.
34771 * normal/menu.c: Include grub/mm.h.
34772 (TERM_WIDTH): New macro.
34773 (TERM_HEIGHT): Likewise.
34774 (TERM_INFO_HEIGHT): Likewise.
34775 (TERM_MARGIN): Likewise.
34776 (TERM_SCROLL_WIDTH): Likewise.
34777 (TERM_TOP_BORDER_Y): Likewise.
34778 (TERM_LEFT_BORDER_X): Likewise.
34779 (TERM_BORDER_WIDTH): Likewise.
34780 (TERM_MESSAGE_HEIGHT): Likewise.
34781 (TERM_BORDER_HEIGHT): Likewise.
34782 (TERM_NUM_ENTRIES): Likewise.
34783 (TERM_FIRST_ENTRY_Y): Likewise.
34784 (TERM_ENTRY_WIDTH): Likewise.
34785 (TERM_CURSOR_X): Likewise.
34786 (draw_border): Use macros instead of magic numbers.
34787 (print_entry): Likewise.
34788 (print_entries): Likewise.
34789 (run_menu): Likewise. Also, handle the key 'e'.
34790 (run_menu_entry): Ignore empty command lines.
34791 (print_message): Added a new argument EDIT. If EDIT is true,
34792 print a different message.
34793 (init_page): Likewise.
34794 (edit_menu_entry): New function. Not implemented yet.
34796 2004-09-17 Marco Gerards <metgerards@student.han.nl>
34798 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
34799 can be loaded from normal mode.
34801 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
34803 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
34804 (multiboot_mod_CFLAGS): New variables.
34805 * loader/i386/pc/linux_normal.c: New file.
34806 * loader/i386/pc/multiboot_normal.c: Likewise.
34808 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
34809 attribute `unused'.
34811 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
34812 `fdiro' to read the mode information from instead of `diro'.
34814 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
34815 looking up a symlink.
34817 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
34819 * normal/command.c (grub_command_execute): Don't parse the
34820 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
34821 flags of the command.
34823 * normal/menu.c (grub_menu_run): Fix typo.
34825 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
34827 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
34829 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
34830 `y + 1' instead of `y - 1'.
34832 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
34834 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
34836 From Hollis Blanchard <hollis@penguinppc.org>:
34837 * kern/misc.c (memmove): New alias for grub_memmove.
34838 (memcmp): New alias for grub_memcmp.
34839 (memset): New alias for grub_memset.
34840 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34841 Change "int handle" to "grub_ieee1275_phandle_t handle".
34842 * include/grub/powerpc/ieee1275/ieee1275.h
34843 (grub_ieee1275_get_property): Likewise.
34845 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
34847 Added normal mode command `chainloader' as module chain.mod, which
34848 depends on normal.mod and _chain.mod.
34850 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
34851 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
34852 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
34854 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
34855 but arguments parsing moved to ...
34856 (grub_chainloader_cmd): ... here. New function.
34857 * include/grub/i386/pc/chainloader.h: New file.
34858 * loader/i386/pc/chainloader_normal.c: Likewise.
34860 2004-09-11 Marco Gerards <metgerards@student.han.nl>
34862 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
34863 (grub_mkimage_LDFLAGS): Likewise.
34864 (grub_emu_SOURCES): Likewise.
34865 (kernel_img_HEADERS): Added fshelp.h.
34866 * fs/ext2.c: Include <grub/fshelp.h>.
34867 (FILETYPE_REG): New macro.
34868 (FILETYPE_INO_REG): Likewise.
34869 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
34871 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
34873 (grub_fshelp_node): New struct.
34874 (grub_ext2_data): Added member `diropen'. Changed member `inode'
34876 (grub_ext2_get_file_block): Removed function.
34877 (grub_ext2_read_block): New function.
34878 (grub_ext2_read_file): Replaced parameter `data' by `node'.
34879 This function was written.
34880 (grub_ext2_mount): Read the root inode. Create a diropen struct.
34881 (grub_ext2_find_file): Removed function.
34882 (grub_ext2_read_symlink): New function.
34883 (grub_ext2_iterate_dir): Likewise.
34884 (grub_ext2_open): Rewritten.
34885 (grub_ext2_dir): Rewritten.
34886 * include/grub/fshelp.h: New file.
34887 * fs/fshelp.c: Likewise.
34889 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
34891 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
34892 (print_message): Add a missing newline.
34893 (run_menu): Added timeout support.
34894 (run_menu_entry): New local function.
34895 (grub_menu_run): Added support for booting.
34897 * kern/loader.c (grub_loader_is_loaded): New function.
34899 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
34900 (grub_get_rtc): Exported.
34902 * include/grub/i386/pc/time.h: Include grub/symbol.h.
34903 (grub_get_rtc): Exported.
34905 * include/grub/normal.h (struct grub_command_list): Remove
34906 constant from the member `command'.
34908 * include/grub/loader.h (grub_loader_is_loaded): Declared.
34910 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
34912 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
34914 2004-08-28 Marco Gerards <metgerards@student.han.nl>
34916 Add support for the JFS filesystem.
34918 * fs/jfs.c: New file.
34919 * include/grub/fs.h (grub_jfs_init): New prototype.
34920 (grub_jfs_fini): New prototype.
34921 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
34922 (grub_emu_SOURCES): Likewise.
34923 (pkgdata_MODULES): Add jfs.mod.
34924 (jfs_mod_SOURCES): New variable.
34925 (jfs_mod_CFLAGS): Likewise.
34926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
34927 (grubof_SOURCES): Likewise.
34928 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
34930 * fs/fat.c (grub_fat_find_dir): Convert the filename little
34931 endian to the host endian.
34932 (grub_fat_utf16_to_utf8): Move function from there...
34933 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
34934 the endianness of the source string anymore.
34935 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
34937 2004-08-24 Marco Gerards <metgerards@student.han.nl>
34939 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
34940 (grub_boot_fini) [GRUB_UTIL]: Likewise.
34941 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
34942 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
34944 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
34945 (grub_hfs_iterate_dir): Make the function static. Add prototypes
34946 for `node_found' and `it_dir'.
34947 (grub_hfs_dir): Add prototype for `dir_hook'.
34949 * fs/minix.c (grub_minix_get_file_block): Add prototype for
34950 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
34951 and `indir32' to silence a gcc warning.
34953 * include/grub/fs.h (grub_hfs_init): New prototype.
34954 (grub_hfs_fini): Likewise.
34957 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
34959 Each disk device has its own id now. This is useful to make use
34960 of multiple disk devices.
34962 * include/grub/disk.h (grub_disk_dev_id): New enum.
34963 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
34964 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
34966 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
34967 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
34969 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
34970 GRUB_DISK_DEVICE_OFDISK_ID as an id.
34972 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
34973 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
34975 * include/grub/disk.h (struct grub_disk_dev): Added a new member
34976 "id" which is used by the cache manager.
34978 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
34981 2004-08-18 Marco Gerards <metgerards@student.han.nl>
34983 * fs/hfs.c: New file.
34984 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
34985 (grub_emu_SOURCES): Likewise.
34986 (pkgdata_MODULES): Add hfs.mod.
34987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
34988 (grubof_SOURCES): Likewise.
34989 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
34991 * include/grub/misc.h (grub_strncasecmp): Add prototype.
34992 * kern/misc.c (grub_strncasecmp): Add function.
34994 2004-08-14 Marco Gerards <metgerards@student.han.nl>
34996 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
34999 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
35000 (grub_ext2_dir): In case the directory entry type is unknown, read
35003 2004-08-02 Peter Bruin <pjbruin@dds.nl>
35005 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
35006 grub_load_linux instead of grub_rescue_cmd_linux as second
35007 argument of grub_rescue_register_command.
35009 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
35011 2004-07-27 Marco Gerards <metgerards@student.han.nl>
35013 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
35015 * commands/boot.c: Remove the check for `GRUB_UTIL'.
35016 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
35017 `loader/powerpc/ieee1275/linux.c',
35018 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
35019 * include/grub/powerpc/ieee1275/ieee1275.h
35020 (grub_ieee1275_release): New prototype.
35021 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
35022 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
35023 normal, boot, linux and linux_normal.
35024 * loader/powerpc/ieee1275/linux.c: New file.
35025 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35027 2004-07-12 Marco Gerards <metgerards@student.han.nl>
35029 * normal/arg.c (grub_arg_parse): Correct error handling after
35030 reallocating the argumentlist (check if `argl' is not null instead
35031 of checking if `args' is not null).
35032 * kern/mm.c (grub_realloc): Return the same pointer when using the
35033 same region, instead of returning the header address.
35035 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35037 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
35038 one block instead of two when looking for the initial partition.
35039 (grub_partition_probe): Initialize the local variable `p' with 0.
35040 Use base 10 for the grub_strtoul call.
35041 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
35042 need for one local variable.
35043 (grub_strtoul): Don't add the new value to `num', instead of that
35046 2004-07-11 Marco Gerards <metgerards@student.han.nl>
35048 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
35049 (pxeboot_img_SOURCES): New variable.
35050 (pxeboot_img_ASFLAGS): Likewise.
35051 (pxeboot_img_LDFLAGS): Likewise.
35052 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
35053 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
35054 <lode_leroy@hotmail.com>.
35056 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35058 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
35059 there was no input.
35061 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35063 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
35064 the history buffer logic.
35066 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35068 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
35069 (FILETYPE_INO_SYMLINK): New macros.
35070 (grub_ext2_find_file): Check if the node is a directory using the
35071 inode stat information instead of using the filetype in the
35072 dirent. Exclude the first character of an absolute symlink.
35073 (grub_ext2_dir): Mask out the filetype part of the mode member of
35076 2004-05-24 Marco Gerards <metgerards@student.han.nl>
35078 Add support for UFS version 1 and 2. Add support for the minix
35079 filesystem version 1 and 2, both the variants with 14 and 30 long
35082 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
35084 (grub_emu_SOURCES): Likewise.
35085 (pkgdata_MODULES): Add ufs.mod and minix.mod.
35086 (ufs_mod_SOURCES): New variable.
35087 (ufs_mod_CFLAGS): Likewise.
35088 (minix_mod_SOURCES): Likewise.
35089 (minix_mod_CFLAGS): Likewise.
35090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
35092 (grubof_SOURCES): Likewise.
35093 * fs/ufs.c: New file.
35094 * fs/minix.c: New file.
35095 * include/grub/fs.h (grub_ufs_init): New prototype.
35096 (grub_ufs_fini): Likewise.
35097 (grub_minix_init): Likewise.
35098 (grub_minix_fini): Likewise.
35099 * util/grub-emu.c (main): Initialize and deinitialize UFS and
35102 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
35104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
35105 commands/ls.c, commands/terminal.c, commands/boot.c,
35106 commands/cmp.c and commands/cat.c.
35107 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
35109 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
35112 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35114 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
35115 and grub_, respectively. Because the conversion is trivial and
35116 mechanical, I omit the details here. Please refer to the CVS
35117 if you need more information.
35119 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35121 * include/pupa: Renamed to ...
35122 * include/grub: ... this.
35123 * util/i386/pc/pupa-mkimage.c: Renamed to ...
35124 * util/i386/pc/grub-mkimage.c: ... this.
35125 * util/i386/pc/pupa-setup.c: Renamed to ...
35126 * util/i386/pc/grub-setup.c: ... this.
35127 * util/pupa-emu.c: Renamed to ...
35128 * util/grub-emu.c: ... this.
35130 2004-03-29 Marco Gerards <metgerards@student.han.nl>
35132 Add support for the newworld apple macintosh (PPC). This has been
35133 tested on the powerbook 2000 only. It only adds support for
35134 generic ieee1275 functions, console and disk support. This should
35135 be easy to port to other architectures with support for Open
35138 * configure.ac: Accept the powerpc as host_cpu. In the case of
35139 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
35140 specific tests are only executed while building for the i386.
35141 Inverse test for crosscompile.
35142 * genmk.rb (Utility): Allow assembler files.
35143 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
35144 * conf/powerpc-ieee1275.rmk: New file.
35145 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
35146 * disk/powerpc/ieee1275/partition.c: Likewise.
35147 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
35148 * include/pupa/powerpc/ieee1275/console.h: Likewise.
35149 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
35150 * include/pupa/powerpc/ieee1275/time.h: Likewise.
35151 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
35152 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
35153 * include/pupa/powerpc/ieee1275/loader.h
35154 * include/pupa/powerpc/setjmp.h: Likewise.
35155 * include/pupa/powerpc/types.h: Likewise.
35156 * kern/powerpc/ieee1275/init.c: Likewise.
35157 * kern/powerpc/ieee1275/openfw.c: Likewise.
35158 * term/powerpc/ieee1275/ofconsole.c: Likewise.
35160 These files were written by Johan Rydberg
35161 (jrydberg@night.trouble.net) and I only modified them slightly.
35163 * boot/powerpc/ieee1275/cmain.c: New file.
35164 * boot/powerpc/ieee1275/crt0.S: Likewise.
35165 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
35166 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
35168 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
35170 * Makefile.in: Update copyright.
35171 * genmodsrc.sh: Likewise.
35172 * gensymlist.sh: Likewise.
35173 * term/i386/pc/vga.c: Indent correctly.
35175 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
35176 bugreporting address.
35177 * util/i386/pc/pupa-setup.c (usage): Likewise,
35178 (main): Call pupa_ext2_init and pupa_ext2_fini.
35180 * fs/fat.c (log2): Renamed to ...
35181 (fat_log2): ... this.
35182 All callers changed.
35183 * kern/misc.c (memcpy): Alias to pupa_memmove.
35184 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
35186 * util/console.c (pupa_ncurses_fini): Return 0.
35188 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
35189 Move fail label here.
35190 [__GNU__]: Don't warn when using stat.
35191 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
35192 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
35193 long int. Use strtol instead of strtoul.
35195 2004-03-14 Marco Gerards <metgerards@student.han.nl>
35197 * commands/boot.c: New file.
35198 * commands/cat.c: Likewise.
35199 * commands/cmp.c: Likewise.
35200 * commands/ls.c: Likewise.
35201 * commands/terminal.c: Likewise.
35202 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
35203 (pupa_register_command): Changed interface to match the new
35205 (pupa_command_execute): Changed (almost rewritten) so it uses
35206 pupa_split_command. Added support for setting variables using the
35208 (rescue_command): Changed to work with the new argument parser.
35209 (terminal_command): Moved from here to commands/terminal.c.
35210 (set_command): New function.
35211 (unset_command): New function.
35212 (insmod_command): New function.
35213 (rmmod_command): New function.
35214 (lsmod_command): New function.
35215 (pupa_command_init): Don't initialize the command terminal
35216 anymore. Initialize the commands set, unset, insmod, rmmod and
35218 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
35219 (kernel_img_HEADERS): Add arg.h and env.h.
35220 (pupa_mkimage_LDFLAGS): Add kern/env.c.
35221 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
35222 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
35224 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
35226 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
35227 (boot_mod_SOURCES): New variable.
35228 (terminal_mod_SOURCES): Likewise.
35229 (ls_mod_SOURCES): Likewise.
35230 (cmp_mod_SOURCES): Likewise.
35231 (cat_mod_SOURCES): Likewise.
35233 * normal/arg.c: New file.
35234 * kern/env.c: Likewise.
35235 * include/pupa/arg.h: Likewise.
35236 * include/pupa/env.h: Likewise.
35237 * font/manager.c (font_command): Changed to match argument parsing
35239 (PUPA_MOD_INIT): Likewise.
35240 * hello/hello.c (pupa_cmd_hello): Likewise.
35241 (PUPA_MOD_INIT): Likewise.
35242 * include/pupa/disk.h: Include <pupa/device.h>.
35243 (pupa_print_partinfo): New prototype.
35244 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
35245 (pupa_dl_get_prefix): Likewise.
35246 * include/pupa/misc.h: Include <pupa/err.h>.
35247 (pupa_isgraph): New prototype.
35248 (pupa_isdigit): Likewise.
35249 (pupa_split_cmdline): Likewise.
35250 * include/pupa/normal.h: Include <pupa/arg.h>.
35251 (pupa_command): Changed the prototype of the member `func' to
35252 match the argument parsing interface. Added member `options'.
35253 (pupa_register_command): Updated to match function.
35254 (pupa_arg_parse): New prototype.
35255 (pupa_hello_init) [PUPA_UTIL]: New prototype.
35256 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
35257 (pupa_ls_init) [PUPA_UTIL]: Likewise.
35258 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
35259 (pupa_cat_init) [PUPA_UTIL]: Likewise.
35260 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
35261 (pupa_boot_init) [PUPA_UTIL]: Likewise.
35262 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
35263 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
35264 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
35265 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
35266 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
35267 * kern/disk.c: Include <pupa/file.h>.
35268 (pupa_print_partinfo): New function.
35269 * kern/dl.c: Include <pupa/env.h>.
35270 (pupa_dl_dir): Variable removed.
35271 (pupa_dl_load): Use the environment variable `prefix' instead of
35272 the variable pupa_dl_dir.
35273 (pupa_dl_set_prefix): Function removed.
35274 (pupa_dl_get_prefix): Likewise.
35275 * kern/i386/pc/init.c: Include <pupa/env.h>.
35276 (pupa_machine_init): Use the environment variable `prefix' instead of
35277 using pupa_dl_set_prefix to set the prefix.
35278 * kern/main.c: Include <pupa/env.h>.
35279 (pupa_set_root_dev): Use the environment variable `prefix' instead of
35280 using pupa_dl_get_prefix to get the prefix.
35281 * kern/misc.c: Include <pupa/env.h>.
35282 (pupa_isdigit): New function.
35283 (pupa_isgraph): Likewise.
35284 (pupa_ftoa): Likewise.
35285 (pupa_vsprintf): Added support for printing values of the type
35286 `double'. Make it possible to format variable output when using
35287 formatting like `%1.2%f'.
35288 (pupa_split_cmdline): New function.
35289 * kern/rescue.c: Include <pupa/env.h>.
35290 (next_word): Removed function.
35291 (pupa_rescue_cmd_prefix): Likewise.
35292 (pupa_rescue_cmd_set): New function.
35293 (pupa_rescue_cmd_unset): New function.
35294 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
35295 split the command line instead of splitting it here. Added
35296 support for setting variables using the syntax `foo=bar'. Don't
35297 initialize the prefix command anymore. Initialized the set and
35299 * normal/cmdline.c: Include <pupa/env.h>.
35300 (pupa_tab_complete): Added prototypes for print_simple_completion,
35301 print_partition_completion, add_completion, iterate_commands,
35302 iterate_dev, iterate_part and iterate_dir. Moved code to print
35303 partition information from here to kern/disk.c.
35304 (pupa_cmdline_run): Don't check if the function exists anymore.
35305 * normal/main.c: Include <pupa/env.h>.
35306 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
35307 instead of using pupa_dl_get_prefix to get the prefix.
35308 * term/i386/pc/vga.c: Include <pupa/arg.h>.
35309 (check_vga_mem): Cast pointers to `void *' to silence a gcc
35311 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
35312 (pupa_vga_setcolor): Declare unused variables with `__attribute__
35313 ((unused))' to silence a gcc warning.
35314 (pupa_vga_setcolor): Likewise.
35315 (debug_command): Changed to match argument parsing
35317 * util/pupa-emu.c: Include <pupa/env.h>.
35318 (options): Added 0's for unused fields to silence a gcc warning.
35320 (main): Use the environment variable `prefix' instead of using
35321 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
35322 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
35325 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
35326 * util/misc.c: Include <malloc.h>.
35327 (pupa_malloc): Rewritten so errors are correctly reported.
35328 (pupa_realloc): Likewise.
35329 (pupa_memalign): Likewise.
35330 (pupa_mm_init_region): Declare unused variables with
35331 `__attribute__ ((unused))' to silence a gcc warning.
35332 * normal/i386/setjmp.S: Remove tab at the end of the file to
35333 silence a gcc warning.
35334 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
35335 variables with `__attribute__ ((unused))' to silence a gcc
35337 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
35338 local variable i unsigned to silence a gcc warning.
35340 * kern/term.c: Include <pupa/misc.h>.
35341 (pupa_more_lines): New variable.
35342 (pupa_more): Likewise.
35343 (pupa_putcode): When the pager is active pause at the end of every
35345 (pupa_set_more): New function.
35346 * include/pupa/term.h (pupa_set_more): New prototype.
35349 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
35351 Now this project is GRUB 2 rather than PUPA. The location of
35352 the CVS repository was moved to GRUB's.
35354 * configure.ac: Use bug-grub as the reporting address.
35355 Use GRUB instead of PUPA.
35356 Change the version number to 1.90.
35358 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
35360 * genkernsyms.sh: Updated copyright information.
35361 * genmk.rb: Likewise.
35362 * genmodsrc.sh: Likewise.
35363 * gensymlist.sh: Likewise.
35364 * boot/i386/pc/boot.S: Likewise.
35365 * boot/i386/pc/diskboot.S: Likewise.
35366 * disk/i386/pc/biosdisk.c: Likewise.
35367 * disk/i386/pc/partition.c: Likewise.
35368 * font/manager.c: Likewise.
35369 * fs/ext2.c: Likewise.
35370 * fs/fat.c: Likewise.
35371 * include/pupa/boot.h: Likewise.
35372 * include/pupa/device.h: Likewise.
35373 * include/pupa/disk.h: Likewise.
35374 * include/pupa/dl.h: Likewise.
35375 * include/pupa/elf.h: Likewise.
35376 * include/pupa/err.h: Likewise.
35377 * include/pupa/file.h: Likewise.
35378 * include/pupa/font.h: Likewise.
35379 * include/pupa/fs.h: Likewise.
35380 * include/pupa/kernel.h: Likewise.
35381 * include/pupa/loader.h: Likewise.
35382 * include/pupa/misc.h: Likewise.
35383 * include/pupa/mm.h: Likewise.
35384 * include/pupa/net.h: Likewise.
35385 * include/pupa/normal.h: Likewise.
35386 * include/pupa/rescue.h: Likewise.
35387 * include/pupa/setjmp.h: Likewise.
35388 * include/pupa/symbol.h: Likewise.
35389 * include/pupa/term.h: Likewise.
35390 * include/pupa/types.h: Likewise.
35391 * include/pupa/i386/setjmp.h: Likewise.
35392 * include/pupa/i386/types.h: Likewise.
35393 * include/pupa/i386/pc/biosdisk.h: Likewise.
35394 * include/pupa/i386/pc/boot.h: Likewise.
35395 * include/pupa/i386/pc/console.h: Likewise.
35396 * include/pupa/i386/pc/init.h: Likewise.
35397 * include/pupa/i386/pc/kernel.h: Likewise.
35398 * include/pupa/i386/pc/linux.h: Likewise.
35399 * include/pupa/i386/pc/loader.h: Likewise.
35400 * include/pupa/i386/pc/memory.h: Likewise.
35401 * include/pupa/i386/pc/multiboot.h: Likewise.
35402 * include/pupa/i386/pc/partition.h: Likewise.
35403 * include/pupa/i386/pc/time.h: Likewise.
35404 * include/pupa/i386/pc/vga.h: Likewise.
35405 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
35406 * include/pupa/util/getroot.h: Likewise.
35407 * include/pupa/util/misc.h: Likewise.
35408 * include/pupa/util/resolve.h: Likewise.
35409 * kern/device.c: Likewise.
35410 * kern/disk.c: Likewise.
35411 * kern/dl.c: Likewise.
35412 * kern/err.c: Likewise.
35413 * kern/file.c: Likewise.
35414 * kern/fs.c: Likewise.
35415 * kern/loader.c: Likewise.
35416 * kern/main.c: Likewise.
35417 * kern/misc.c: Likewise.
35418 * kern/mm.c: Likewise.
35419 * kern/rescue.c: Likewise.
35420 * kern/term.c: Likewise.
35421 * kern/i386/dl.c: Likewise.
35422 * kern/i386/pc/init.c: Likewise.
35423 * kern/i386/pc/lzo1x.S: Likewise.
35424 * kern/i386/pc/startup.S: Likewise.
35425 * loader/i386/pc/chainloader.c: Likewise.
35426 * loader/i386/pc/linux.c: Likewise.
35427 * loader/i386/pc/multiboot.c: Likewise.
35428 * normal/cmdline.c: Likewise.
35429 * normal/command.c: Likewise.
35430 * normal/main.c: Likewise.
35431 * normal/menu.c: Likewise.
35432 * normal/i386/setjmp.S: Likewise.
35433 * term/i386/pc/console.c: Likewise.
35434 * term/i386/pc/vga.c: Likewise.
35435 * util/console.c: Likewise.
35436 * util/genmoddep.c: Likewise.
35437 * util/misc.c: Likewise.
35438 * util/pupa-emu.c: Likewise.
35439 * util/resolve.c: Likewise.
35440 * util/unifont2pff.rb: Likewise.
35441 * util/i386/pc/biosdisk.c: Likewise.
35442 * util/i386/pc/getroot.c: Likewise.
35443 * util/i386/pc/pupa-mkimage.c: Likewise.
35444 * util/i386/pc/pupa-setup.c: Likewise.
35446 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
35448 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
35449 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
35450 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
35451 reading and reset it after reading.
35452 (pupa_ext2_close): Return PUPA_ERR_NONE.
35454 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
35456 (struct linux_kernel_header): Add kernel_version and
35458 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
35459 pupa_file_read succeeds.
35460 (pupa_rescue_cmd_initrd): Implement.
35462 2003-12-03 Marco Gerards <metgerards@student.han.nl>
35464 * fs/ext2.c (pupa_ext2_label): New function.
35465 (pupa_ext2_fs): Added label.
35466 * fs/fat.c (pupa_fat_label): New function.
35467 (pupa_fat_fs): Added label.
35468 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
35470 * kern/misc.c (pupa_strndup): New function.
35471 * include/pupa/misc.h (pupa_strndup): New prototype.
35473 * include/pupa/normal.h: Include <pupa/err.h>.
35474 (pupa_set_history): New prototype.
35475 (pupa_iterate_commands): New prototype.
35476 * normal/cmdline.c: Include <pupa/machine/partition.h>,
35477 <pupa/disk.h>, <pupa/file.h>.
35478 (hist_size): New variable.
35479 (hist_lines): Likewise.
35480 (hist_end): Likewise.
35481 (hist_used): Likewise.
35482 (pupa_set_history): New function.
35483 (pupa_history_get): Likewise.
35484 (pupa_history_add): Likewise.
35485 (pupa_history_replace): Likewise.
35486 (pupa_tab_complete): Likewise.
35487 (pupa_cmdline_run): Added tab completion and history buffer. Tab
35488 completion shows partitionnames while completing partitions, this
35489 feature was suggested by Jeff Bailey.
35490 * normal/command.c (pupa_iterate_commands): New function.
35491 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
35492 (pupa_normal_init): Initialize history buffer.
35493 (PUPA_MOD_INIT): Likewise.
35494 (pupa_normal_fini): Free the history buffer.
35495 (PUPA_MOD_FINI): Likewise.
35497 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
35500 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
35501 * configure.ac [i386]: Check for regparam bug.
35502 (NESTED_FUNC_ATTR) [! i386]: Defined.
35504 2003-11-17 Marco Gerards <metgerards@student.han.nl>
35506 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
35507 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
35508 (pupa_emu_SOURCES): New variable.
35509 (pupa_emu_LDFLAGS): Likewise.
35510 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
35511 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
35512 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
35513 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35514 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
35515 (pupa_jmp_buf): New typedef.
35516 (pupa_setjmp) [PUPA_UTIL]: New macro.
35517 (pupa_longjmp) [PUPA_UTIL]: Likewise.
35518 * include/pupa/term.h (struct pupa_term): New member `refresh'.
35519 (pupa_refresh): New prototype.
35520 * include/pupa/util/getroot.h: New file.
35521 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
35523 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
35524 (pupa_rescue_cmd_cat): Likewise.
35525 (pupa_rescue_cmd_ls): Likewise.
35526 (pupa_rescue_cmd_testload): Likewise.
35527 (pupa_rescue_cmd_lsmod): Likewise.
35528 * normal/cmdline.c (pupa_cmdline_get): Likewise.
35529 * normal/menu.c (run_menu): Likewise.
35530 * kern/term.c (pupa_cls): Likewise.
35531 (pupa_refresh): New function.
35532 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
35533 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35534 * util/console.c: New file.
35536 * util/i386/pc/getroot.c: New file.
35537 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
35538 (pupa_putchar): New function.
35539 (pupa_refresh): Likewise.
35540 (xgetcwd): Function moved to ...
35541 (strip_extra_slashes): Likewise.
35542 (get_prefix): Likewise.
35543 * util/i386/pc/getroot.c: ... here.
35544 (find_root_device): Function moved and renamed to...
35545 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
35546 Changed all callers.
35547 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
35549 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
35550 Changed all callers.
35551 * util/misc.c (pupa_memalign): New function.
35552 (pupa_mm_init_region): Likewise.
35553 (pupa_register_exported_symbols): Likewise.
35554 (pupa_putchar): Function removed.
35555 * util/pupa-emu.c: New file.
35557 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
35559 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
35560 (_multiboot_mod_SOURCES): New variable.
35561 (_multiboot_mod_CFLAGS): Likewise.
35562 * loader/i386/pc/multiboot.c: New file.
35563 * include/pupa/i386/pc/multiboot.h: Likewise.
35564 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
35565 (pupa_multiboot_real_boot): New function.
35566 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
35567 (pupa_multiboot_real_boot): New prototype.
35568 (pupa_rescue_cmd_multiboot): Likewise
35569 (pupa_rescue_cmd_module): Likewise.
35571 * kern/loader.c (pupa_loader_set): Continue when
35572 pupa_loader_unload_func() fails.
35573 (pupa_loader_unset): New function.
35574 * include/pupa/loader.h (pupa_loader_unset): New prototype.
35576 * kern/misc.c (pupa_stpcpy): New function.
35577 * include/pupa/misc.h (pupa_stpcpy): New prototype.
35579 2003-11-12 Marco Gerards <metgerards@student.han.nl>
35581 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
35582 for available extensions.
35584 * include/pupa/i386/pc/time.h: New file.
35585 * kern/disk.c: Include <pupa/machine/time.h>.
35586 (PUPA_CACHE_TIMEOUT): New macro.
35587 (pupa_last_time): New variable.
35588 (pupa_disk_open): Flush the cache when there was a timeout.
35589 (pupa_disk_close): Reset the timer.
35590 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
35592 * util/misc.c: Include <sys/times.h>
35593 (pupa_get_rtc): New function.
35595 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
35597 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
35599 (pupa_ext2_get_file_block): Use blocks member.
35601 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
35602 first block. Return -1 instead of pupa_errno on error.
35604 2003-10-27 Marco Gerards <metgerards@student.han.nl>
35606 * README: In the pupa-mkimage example use _chain instead of chain
35607 and ext2 instead of fat.
35608 * TODO: Replace ext2fs with jfs as an example. Add an item for
35609 adding journal playback for ext2fs.
35610 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
35611 (pkgdata_MODULES): Added ext2.mod.
35612 (ext2_mod_SOURCES): New variable.
35613 (ext2_mod_CFLAGS): Likewise.
35614 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
35615 * include/pupa/misc.h (pupa_strncpy): New prototype.
35616 (pupa_strcat): Likewise.
35617 (pupa_strncmp): Likewise.
35618 * kern/misc.c (pupa_strcat): Enable function.
35619 (pupa_strncpy): New function.
35620 (pupa_strncmp): Likewise.
35621 * fs/ext2.c: New file.
35623 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
35624 when the read failed before retrying.
35625 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
35626 (_FILE_OFFSET_BITS): Likewise.
35627 * configure.ac: Added AC_SYS_LARGEFILE.
35629 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35631 * genmk.rb (PModule#rule): Make sure to get only symbol names
35632 from the output of nm.
35633 Reported by Robert Millan <rmh.grub@aybabtu.com>.
35635 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35637 I forgot to check in these changes for a long time. This adds
35638 incomplete support for VGA console, and this is still very
35639 buggy. Also, a lot of consideration is required for I18N,
35640 UNICODE, and VGA font issues. Therefore, assume that this is
35641 such that "better than nothing".
35643 * font/manager.c: New file.
35644 * include/pupa/font.h: Likewise.
35645 * include/pupa/i386/pc/vga.h: Likewise.
35646 * term/i386/pc/vga.c: Likewise.
35647 * util/unifont2pff.rb: Likewise.
35649 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
35650 (pkgdata_MODULES): Added vga.mod and font.mod.
35651 (vga_mod_SOURCES): New variables.
35652 (vga_mod_CFLAGS): Likewise.
35653 (font_mod_SOURCES): Likewise.
35654 (font_mod_CFLAGS): Likewise.
35656 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
35658 * include/pupa/term.h: Include pupa/err.h.
35659 (struct pupa_term): Added init and fini.
35660 Changed the argument of putchar to pupa_uint32_t.
35662 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
35663 (pupa_console_real_putchar): New prototype.
35664 (pupa_console_putchar): Removed.
35665 (pupa_console_checkkey): Exported.
35666 (pupa_console_getkey): Likewise.
35668 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
35671 * kern/term.c (pupa_term_set_current): Rewritten.
35672 (pupa_putchar): Likewise.
35673 (pupa_putcode): New function.
35675 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
35676 (pupa_console_real_putchar): ... this.
35677 (pupa_vga_set_mode): New function.
35678 (pupa_vga_get_font): Likewise.
35680 * normal/command.c: Include pupa/term.h.
35681 (terminal_command): New function.
35682 (pupa_command_init): Register the command "terminal".
35684 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
35685 (DISP_UP): Likewise.
35686 (DISP_RIGHT): Likewise.
35687 (DISP_DOWN): Likewise.
35688 (DISP_HLINE): Likewise.
35689 (DISP_VLINE): Likewise.
35690 (DISP_UL): Likewise.
35691 (DISP_UR): Likewise.
35692 (DISP_LL): Likewise.
35693 (DISP_LR): Likewise.
35695 * term/i386/pc/console.c (pupa_console_putchar): New function.
35697 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
35699 * util/resolve.c (pupa_util_resolve_dependencies): BUG
35700 FIX. Reverse the path_list.
35702 * include/pupa/normal.h: Export pupa_register_command and
35703 pupa_unregister_command.
35705 * hello/hello.c (pupa_cmd_hello): New module.
35706 * conf/i386-pc.rmk: Added hello.mod.
35708 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
35710 * kern/i386/pc/lzo1x.S: New file.
35712 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
35713 (compress_kernel): New variable.
35714 (generate_image): Heavily modified to support compressing a
35715 large part of the core image.
35717 * util/misc.c (pupa_util_read_image): Fix a file descriptor
35719 (pupa_util_load_image): New function.
35721 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
35722 (pupa_compressed_size): New variable.
35723 (codestart): Enable Gate A20 here.
35724 Decompress the compressed part of the core image.
35725 Rearrange the code to put functions and variables which are
35726 required for initialization in the non-compressed part.
35729 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
35732 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
35734 * include/pupa/i386/pc/kernel.h
35735 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
35736 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
35737 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
35738 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
35739 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
35741 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
35743 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
35744 (Utility#rule): Likewise.
35746 * configure.ac: Check if LZO is available.
35748 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
35750 * include/pupa/normal.h: New file.
35751 * include/pupa/setjmp.h: Likewise.
35752 * include/pupa/i386/setjmp.h: Likewise.
35753 * normal/cmdline.c: Likewise.
35754 * normal/command.c: Likewise.
35755 * normal/main.c: Likewise.
35756 * normal/menu.c: Likewise.
35757 * normal/i386/setjmp.S: Likewise.
35759 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
35760 (pupa_rescue_cmd_initrd): Likewise.
35762 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
35765 * kern/i386/pc/startup.S (translation_table): New variable.
35766 (translate_keycode): New function.
35767 (pupa_console_getkey): Call translate_keycode.
35769 * kern/rescue.c (attempt_normal_mode): New function.
35770 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
35771 it failed, print a message.
35773 * kern/mm.c (pupa_real_malloc): Print more information when a
35774 free magic is broken.
35775 (pupa_free): If the first free header is not free actually, set
35778 * kern/main.c (pupa_load_normal_mode): Just load the module
35780 (pupa_main): Don't print the message
35781 "Entering into rescue mode..." here.
35783 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
35785 (pupa_rescue_cmd_initrd): Likewise.
35786 (pupa_rescue_cmd_initrd): Likewise.
35788 * include/pupa/symbol.h (FUNCTION): Specify the type.
35789 (VARIABLE): Likewise.
35791 * include/pupa/err.h (pupa_err_t): Added
35792 PUPA_ERR_UNKNOWN_COMMAND.
35794 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
35795 (pupa_dl_get_prefix): Likewise.
35797 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
35798 Added _chain.mod and _linux.mod instead of chain.mod and
35800 (chain_mod_SOURCES): Renamed to ...
35801 (_chain_mod_SOURCES): ... this.
35802 (chain_mod_CFLAGS): Renamed to ...
35803 (_chain_mod_CFLAGS): ... this.
35804 (linux_mod_SOURCES): Renamed to ...
35805 (_linux_mod_SOURCES): ... this.
35806 (linux_mod_CFLAGS): Renamed to ...
35807 (_linux_mod_CFLAGS): ... this.
35808 (normal_mod_SOURCES): New variable.
35809 (normal_mod_CFLAGS): Likewise.
35810 (normal_mod_ASFLAGS): Likewise.
35812 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
35814 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
35817 * kern/dl.c (pupa_dl_ref): Refer depending modules
35819 (pupa_dl_unref): Unrefer depending modules recursively.
35820 Don't call pupa_dl_unload implicitly, because PUPA can crash if
35821 a module is unloaded before one depending on that module is
35823 (pupa_dl_unload): Unload depending modules explicitly,
35826 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
35828 * include/pupa/i386/pc/linux.h: New file.
35829 * loader/i386/pc/linux.c: Likewise.
35831 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
35833 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
35834 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
35835 of PUPA_CHAINLOADER_BOOT_SECTOR.
35837 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
35838 (pupa_linux_prot_size): New variable.
35839 (pupa_linux_tmp_addr): Likewise.
35840 (pupa_linux_real_addr): Likewise.
35841 (pupa_linux_boot_zimage): New function.
35842 (pupa_linux_boot_bzimage): Likewise.
35844 * kern/i386/pc/init.c (struct mem_region): New structure.
35845 (MAX_REGIONS): New macro.
35846 (mem_regions): New variable.
35847 (num_regions): Likewise.
35848 (pupa_os_area_addr): Likewise.
35849 (pupa_os_area_size): Likewise.
35850 (pupa_lower_mem): Likewise.
35851 (pupa_upper_mem): Likewise.
35852 (add_mem_region): New function.
35853 (compact_mem_regions): Likewise.
35854 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
35855 the size of the conventional memory and that of so-called upper
35856 memory (before the first memory hole).
35857 Instead of adding each found region to free memory, use
35858 add_mem_region and add them after removing overlaps.
35859 Also, add only 1/4 of the upper memory to free memory. The rest
35860 is used for loading OS images. Maybe this is ad hoc, but this
35861 makes it much easier to relocate OS images when booting.
35863 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
35864 (pupa_enter_rescue_mode): Don't register initrd and module.
35866 * kern/mm.c: Include pupa/dl.h.
35868 * kern/main.c: Include pupa/file.h and pupa/device.h.
35870 * kern/loader.c (pupa_loader_load_module_func): Removed.
35871 (pupa_loader_load_module): Likewise.
35873 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
35876 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
35877 (pupa_linux_tmp_addr): Likewise.
35878 (pupa_linux_real_addr): Likewise.
35879 (pupa_linux_boot_zimage): Likewise.
35880 (pupa_linux_boot_bzimage): Likewise.
35882 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
35883 (pupa_upper_mem): Likewise.
35884 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
35885 module is too dangerous.
35887 * include/pupa/loader.h (pupa_os_area_addr): Declared.
35888 (pupa_os_area_size): Likewise.
35889 (pupa_loader_set): Remove the first argument. Loader doesn't
35890 manage modules or initrd any longer.
35891 (pupa_loader_load_module): Removed.
35893 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
35894 (linux_mod_SOURCES): New variable.
35895 (linux_mod_CFLAGS): Likewise.
35897 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
35899 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
35900 the length of a blocklist correctly.
35902 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
35903 Use ioctl only if the OS file is a block device.
35904 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
35905 not very useful for normal files.
35907 * kern/main.c (pupa_set_root_dev): New function.
35908 (pupa_load_normal_mode): Likewise.
35909 (pupa_main): Call those above.
35911 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
35914 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
35916 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
35918 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
35919 (setup): Configure the installed partition information and the
35922 * loader/i386/pc/chainloader.c (my_mod): New variable.
35923 (pupa_chainloader_unload): New function.
35924 (pupa_rescue_cmd_chainloader): Refer itself.
35925 (PUPA_MOD_INIT): Save its own module in MY_MOD.
35927 * kern/i386/pc/startup.S (install_partition): Removed.
35928 (version_string): Likewise.
35929 (config_file): Likewise.
35930 (pupa_install_dos_part): New variable.
35931 (pupa_install_bsd_part): Likewise.
35932 (pupa_prefix): Likewise.
35933 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
35935 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
35937 (make_install_device): New function.
35938 (pupa_machine_init): Set the dl prefix.
35940 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
35941 (buf): Renamed to ...
35942 (linebuf): ... this.
35943 (pupa_rescue_cmd_prefix): New function.
35944 (pupa_rescue_cmd_insmod): Likewise.
35945 (pupa_rescue_cmd_rmmod): Likewise.
35946 (pupa_rescue_cmd_lsmod): Likewise.
35947 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
35950 * kern/mm.c (pupa_memalign): If failed even after invalidating
35951 disk caches, unload unneeded modules and retry.
35953 * kern/misc.c (pupa_memmove): New function.
35954 (pupa_memcpy): Removed.
35955 (pupa_strcpy): New function.
35956 (pupa_itoa): Made static.
35958 * kern/dl.c (pupa_dl_iterate): New function.
35959 (pupa_dl_ref): Likewise.
35960 (pupa_dl_unref): Likewise.
35961 (pupa_dl_unload): Return if succeeded or not.
35962 (pupa_dl_unload_unneeded): New function.
35963 (pupa_dl_unload_all): Likewise.
35964 (pupa_dl_init): Renamed to ...
35965 (pupa_dl_set_prefix): ... this.
35966 (pupa_dl_get_prefix): New function.
35968 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
35969 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
35970 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
35971 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
35972 (pupa_install_dos_part): Declared.
35973 (pupa_install_bsd_part): Likewise.
35974 (pupa_prefix): Likewise.
35975 (pupa_boot_drive): Likewise.
35977 * include/pupa/types.h: Fix a typo.
35979 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
35981 (pupa_memmove): Declared.
35982 (pupa_strcpy): Likewise.
35984 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
35985 pupa_mod_init takes one argument, its own module.
35986 (pupa_dl_unload_unneeded): Declared.
35987 (pupa_dl_unload_all): Likewise.
35988 (pupa_dl_ref): Likewise.
35989 (pupa_dl_unref): Likewise.
35990 (pupa_dl_iterate): Likewise.
35991 (pupa_dl_init): Renamed to ...
35992 (pupa_dl_set_prefix): ... this.
35993 (pupa_dl_get_prefix): Declared.
35995 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
35996 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
35998 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
35999 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
36001 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
36002 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
36004 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36006 * util/i386/pc/pupa-setup.c (setup): Define the internal
36007 function find_first_partition_start at the top level, because GCC
36008 3.0.x cannot compile internal functions in deeper scopes
36010 (find_root_device): Use lstat instead of stat.
36011 Don't follow symbolic links.
36012 Fix the path-constructing code.
36014 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
36015 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
36016 by a BLKGETSIZE ioctl first, because block devices don't fill
36017 the member st_mode of the structure stat on Linux.
36018 [__linux__] (linux_find_partition): Use a temporary buffer
36019 REAL_DEV for the working space. Copy it to DEV before returning.
36020 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
36021 buffer cache consistent.
36022 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
36023 strncmp. The previous value was merely wrong.
36024 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
36026 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
36027 FAT size is 12. The previous value was merely wrong.
36029 * kern/main.c (pupa_main): Don't split the starting message from
36032 * kern/term.c (pupa_putchar): Put CR after LF instead of before
36033 LF, because BIOS goes crazy about character attributes in this
36036 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36038 * include/i386/pc/util/biosdisk.h: New file.
36039 * util/i386/pc/biosdisk.c: Likewise.
36040 * util/i386/pc/pupa-setup.c: Likewise.
36042 * Makefile.in (INCLUDE_DISTFILES): Added
36043 include/pupa/i386/pc/util/biosdisk.h.
36044 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
36045 directory util/i386/pc.
36046 (install-local): Added a rule for sbin_UTILITIES.
36047 (uninstall): Likewise.
36049 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
36051 * util/misc.c (xrealloc): New function.
36052 (pupa_malloc): Likewise.
36053 (pupa_free): Likewise.
36054 (pupa_realloc): Likewise.
36055 (pupa_stop): Likewise.
36056 (pupa_putchar): Likewise.
36058 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
36060 * include/pupa/util/misc.h (xrealloc): Declared.
36062 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
36064 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
36065 (PUPA_BOOT_MACHINE_BPB_END): ... this.
36067 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
36068 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36070 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
36071 way should be implemented.
36072 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36074 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
36075 the size of NAME for safety.
36076 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
36079 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
36080 (pupa_setup_SOURCES): Likewise.
36082 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
36084 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36086 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
36087 bunch of pushl's from pusha, because this destroys the return
36090 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36092 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
36093 This means that any missing prototypes could be fatal. Also, you
36094 must take care when writing assembly code. See the comments at
36095 the beginning of startup.S, for more details.
36097 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
36098 compilation mechanism.
36099 (pupa_chainloader_real_boot): Likewise.
36100 (pupa_biosdisk_rw_int13_extensions): Likewise.
36101 (pupa_biosdisk_rw_standard): Likewise.
36102 (pupa_biosdisk_check_int13_extensions): Likewise.
36103 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
36104 (pupa_biosdisk_get_diskinfo_standard): Likewise.
36105 (pupa_get_memsize): Likewise.
36106 (pupa_get_mmap_entry): Likewise.
36107 (pupa_console_putchar): Likewise.
36108 (pupa_console_setcursor): Likewise.
36109 (pupa_getrtsecs): Use pushl instead of push.
36111 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
36112 memory instead of the stack for a mmap entry, because some
36113 BIOSes may ignore the maximum size and overflow.
36115 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
36117 * genmk.rb (PModule#rule): Compile automatically generated
36118 sources with module-specific CFLAGS as well as other sources.
36120 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36122 * configure.ac: Check ld.
36123 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
36124 respectively, before checking endianness and sizes.
36126 * Makefile.in (LD): New variable.
36128 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36130 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
36132 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36134 * Changelog: New file.